2026-07-15 02:09:18 +09:00
|
|
|
use super::{
|
2026-07-15 17:54:46 +09:00
|
|
|
AddressFamily, AddressFamilyDisposition, ArtifactLease, ArtifactState, ClientEnrollmentRequest,
|
|
|
|
|
ClientEnrollmentResponse, ConfigurationFingerprintRecordV1, ControlRequest, ControlResponse,
|
|
|
|
|
DefaultAction, DeniedDestinationObservation, DerivedNetworkPolicy, DeveloperDecision,
|
2026-07-19 04:33:43 +09:00
|
|
|
DeveloperDecisionKind, DnsObservation, Domain, DomainStore, DomainStoreMetadata,
|
|
|
|
|
EnvironmentReference, EscalationOutcome, Generation, GenerationIdentity, GitRoutingOwnership,
|
|
|
|
|
GuestProcessIdentity, HelperOwnership, HostProcessIdentity, HostProcessOwnershipSlot,
|
|
|
|
|
InteractiveSessionBatch, InteractiveSessionEvent, InteractiveSessionMessage,
|
|
|
|
|
InteractiveSessionRequest, Mailbox, MailboxCancellation, MailboxRequest, MailboxResult,
|
|
|
|
|
MailboxResultAck, MailboxResultChunk, MountIdentity, NamespaceIdentity, NetworkObservation,
|
|
|
|
|
NetworkOwnership, NetworkReachabilityProbe, NetworkReadinessAttestation,
|
|
|
|
|
NetworkReadinessEvidence, NetworkReadinessIdentity, NonInteractiveOutput,
|
|
|
|
|
NonInteractiveSessionMessage, NonInteractiveSessionRequest, Participant, ParticipantOwnership,
|
|
|
|
|
ParticipantState, PermittedDestinationObservation, PersistedHostProcessOwnership,
|
|
|
|
|
PidfsProcessAuthorityV1, PidfsProcessIdentityV1, PolicyAction, PolicyDelivery, PrefixRule,
|
|
|
|
|
PrepareOperation, PrepareStageState, PreparedArtifact, PreparedLowerOwnership,
|
|
|
|
|
ProcessOwnershipCommitAck, ProcessOwnershipMessageVersion, ProtocolCredential,
|
|
|
|
|
ProtocolCredentialRole, ProtocolPublicationIdentity, PtyIdentity, PublicationOwnership,
|
|
|
|
|
ResolvedAutoApprovalRule, ResolvedNetworkReadinessV1, ResolvedVolume, Resolver, ResultStream,
|
|
|
|
|
SandboxCredentialBundle, SandboxOwnership, Session, SessionBinding, SessionClose, SessionExit,
|
|
|
|
|
SessionExitOutcome, SessionRegistrationRequest, SessionRegistrationResponse,
|
|
|
|
|
SessionRequestCapability, SessionTerminal, SessionTerminalEvent, SessionTerminalMessage,
|
|
|
|
|
SessionTerminalState, SignedProtocolRecord, StagedProcessOwnership, StateAnchorOwnership,
|
|
|
|
|
StateAnchorReleaseEvidence, StorageCatalog, StorageCatalogMetadata, StoreMetadata,
|
|
|
|
|
TerminalInput, TerminalOutput, TerminalPrompt, TerminalResize, TerminalSignal,
|
|
|
|
|
TerminalSignalKind, TlsCredential, TlsRole, TrustManifest, TrustedHostConfigurationV1,
|
2026-07-15 02:09:18 +09:00
|
|
|
};
|
2026-07-19 04:33:43 +09:00
|
|
|
use crate::protocol::{BootstrapWaitOutcome, BootstrapWaitRequest};
|
2026-07-15 02:09:18 +09:00
|
|
|
|
|
|
|
|
pub trait SchemaType {
|
|
|
|
|
const NAME: &'static str;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
macro_rules! schema_types {
|
2026-07-19 02:45:32 +09:00
|
|
|
($($name:literal => $record:ty),+ $(,)?) => {
|
2026-07-15 02:09:18 +09:00
|
|
|
$(
|
|
|
|
|
impl SchemaType for $record {
|
|
|
|
|
const NAME: &'static str = $name;
|
|
|
|
|
}
|
|
|
|
|
)+
|
|
|
|
|
|
2026-07-19 02:45:32 +09:00
|
|
|
pub const SERIALIZED_RECORD_TYPE_NAMES: &[&str] = &[$($name),+];
|
2026-07-15 02:09:18 +09:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
schema_types!(
|
|
|
|
|
"StoreMetadata" => StoreMetadata,
|
2026-07-19 04:33:43 +09:00
|
|
|
"DomainStoreMetadata" => DomainStoreMetadata,
|
|
|
|
|
"StorageCatalogMetadata" => StorageCatalogMetadata,
|
2026-07-15 02:09:18 +09:00
|
|
|
"Domain" => Domain,
|
|
|
|
|
"Generation" => Generation,
|
|
|
|
|
"Participant" => Participant,
|
|
|
|
|
"ParticipantState" => ParticipantState,
|
|
|
|
|
"ParticipantOwnership" => ParticipantOwnership,
|
|
|
|
|
"Session" => Session,
|
|
|
|
|
"SessionTerminal" => SessionTerminal,
|
|
|
|
|
"SessionTerminalState" => SessionTerminalState,
|
|
|
|
|
"Mailbox" => Mailbox,
|
|
|
|
|
"PtyIdentity" => PtyIdentity,
|
|
|
|
|
"PidfsProcessAuthorityV1" => PidfsProcessAuthorityV1,
|
|
|
|
|
"PidfsProcessIdentityV1" => PidfsProcessIdentityV1,
|
|
|
|
|
"HostProcessIdentity" => HostProcessIdentity,
|
|
|
|
|
"PersistedHostProcessOwnership" => PersistedHostProcessOwnership,
|
|
|
|
|
"HostProcessOwnershipSlot" => HostProcessOwnershipSlot,
|
|
|
|
|
"ProcessOwnershipMessageVersion" => ProcessOwnershipMessageVersion,
|
|
|
|
|
"StagedProcessOwnership" => StagedProcessOwnership,
|
|
|
|
|
"ProcessOwnershipCommitAck" => ProcessOwnershipCommitAck,
|
|
|
|
|
"GuestProcessIdentity" => GuestProcessIdentity,
|
|
|
|
|
"SessionTerminalEvent" => SessionTerminalEvent,
|
|
|
|
|
"TerminalInput" => TerminalInput,
|
|
|
|
|
"TerminalResize" => TerminalResize,
|
|
|
|
|
"TerminalSignal" => TerminalSignal,
|
|
|
|
|
"TerminalSignalKind" => TerminalSignalKind,
|
|
|
|
|
"SessionClose" => SessionClose,
|
|
|
|
|
"SessionTerminalMessage" => SessionTerminalMessage,
|
2026-07-17 06:59:39 +09:00
|
|
|
"InteractiveSessionRequest" => InteractiveSessionRequest,
|
|
|
|
|
"InteractiveSessionEvent" => InteractiveSessionEvent,
|
|
|
|
|
"InteractiveSessionMessage" => InteractiveSessionMessage,
|
|
|
|
|
"InteractiveSessionBatch" => InteractiveSessionBatch,
|
|
|
|
|
"TerminalPrompt" => TerminalPrompt,
|
2026-07-16 16:28:18 +09:00
|
|
|
"NonInteractiveSessionRequest" => NonInteractiveSessionRequest,
|
|
|
|
|
"NonInteractiveOutput" => NonInteractiveOutput,
|
|
|
|
|
"NonInteractiveSessionMessage" => NonInteractiveSessionMessage,
|
2026-07-15 02:09:18 +09:00
|
|
|
"TerminalOutput" => TerminalOutput,
|
|
|
|
|
"SessionExit" => SessionExit,
|
|
|
|
|
"SessionExitOutcome" => SessionExitOutcome,
|
|
|
|
|
"GenerationIdentity" => GenerationIdentity,
|
|
|
|
|
"TrustManifest" => TrustManifest,
|
|
|
|
|
"TlsCredential" => TlsCredential,
|
|
|
|
|
"ProtocolPublicationIdentity" => ProtocolPublicationIdentity,
|
2026-07-15 17:54:46 +09:00
|
|
|
"ClientEnrollmentRequest" => ClientEnrollmentRequest,
|
|
|
|
|
"ClientEnrollmentResponse" => ClientEnrollmentResponse,
|
|
|
|
|
"SessionRegistrationRequest" => SessionRegistrationRequest,
|
|
|
|
|
"SessionRegistrationResponse" => SessionRegistrationResponse,
|
|
|
|
|
"ControlRequest" => ControlRequest,
|
|
|
|
|
"ControlResponse" => ControlResponse,
|
2026-07-15 02:09:18 +09:00
|
|
|
"SandboxCredentialBundle" => SandboxCredentialBundle,
|
|
|
|
|
"TlsRole" => TlsRole,
|
|
|
|
|
"ProtocolCredential" => ProtocolCredential,
|
|
|
|
|
"ProtocolCredentialRole" => ProtocolCredentialRole,
|
|
|
|
|
"SessionBinding" => SessionBinding,
|
|
|
|
|
"SessionRequestCapability" => SessionRequestCapability,
|
|
|
|
|
"SignedProtocolRecord" => SignedProtocolRecord,
|
|
|
|
|
"MailboxRequest" => MailboxRequest,
|
|
|
|
|
"MailboxCancellation" => MailboxCancellation,
|
|
|
|
|
"MailboxResultAck" => MailboxResultAck,
|
|
|
|
|
"DeveloperDecision" => DeveloperDecision,
|
|
|
|
|
"DeveloperDecisionKind" => DeveloperDecisionKind,
|
|
|
|
|
"MailboxResult" => MailboxResult,
|
|
|
|
|
"MailboxResultChunk" => MailboxResultChunk,
|
|
|
|
|
"ResultStream" => ResultStream,
|
|
|
|
|
"EscalationOutcome" => EscalationOutcome,
|
|
|
|
|
"NamespaceIdentity" => NamespaceIdentity,
|
|
|
|
|
"MountIdentity" => MountIdentity,
|
|
|
|
|
"PreparedLowerOwnership" => PreparedLowerOwnership,
|
2026-07-17 06:15:18 +09:00
|
|
|
"StateAnchorReleaseEvidence" => StateAnchorReleaseEvidence,
|
2026-07-15 02:09:18 +09:00
|
|
|
"StateAnchorOwnership" => StateAnchorOwnership,
|
|
|
|
|
"GitRoutingOwnership" => GitRoutingOwnership,
|
|
|
|
|
"NetworkOwnership" => NetworkOwnership,
|
|
|
|
|
"HelperOwnership" => HelperOwnership,
|
|
|
|
|
"SandboxOwnership" => SandboxOwnership,
|
|
|
|
|
"PublicationOwnership" => PublicationOwnership,
|
|
|
|
|
"PreparedArtifact" => PreparedArtifact,
|
|
|
|
|
"ArtifactState" => ArtifactState,
|
|
|
|
|
"ArtifactLease" => ArtifactLease,
|
|
|
|
|
"PrepareOperation" => PrepareOperation,
|
|
|
|
|
"AddressFamilyDisposition" => AddressFamilyDisposition,
|
|
|
|
|
"DefaultAction" => DefaultAction,
|
|
|
|
|
"PrefixRule" => PrefixRule,
|
|
|
|
|
"Resolver" => Resolver,
|
|
|
|
|
"AddressFamily" => AddressFamily,
|
|
|
|
|
"PolicyAction" => PolicyAction,
|
|
|
|
|
"DerivedNetworkPolicy" => DerivedNetworkPolicy,
|
|
|
|
|
"NetworkReadinessEvidence" => NetworkReadinessEvidence,
|
|
|
|
|
"NetworkReadinessAttestation" => NetworkReadinessAttestation,
|
|
|
|
|
"NetworkObservation" => NetworkObservation,
|
|
|
|
|
"PolicyDelivery" => PolicyDelivery,
|
|
|
|
|
"NetworkReadinessIdentity" => NetworkReadinessIdentity,
|
|
|
|
|
"NetworkReachabilityProbe" => NetworkReachabilityProbe,
|
|
|
|
|
"DeniedDestinationObservation" => DeniedDestinationObservation,
|
|
|
|
|
"PermittedDestinationObservation" => PermittedDestinationObservation,
|
|
|
|
|
"DnsObservation" => DnsObservation,
|
|
|
|
|
"TrustedHostConfigurationV1" => TrustedHostConfigurationV1,
|
|
|
|
|
"ConfigurationFingerprintRecordV1" => ConfigurationFingerprintRecordV1,
|
|
|
|
|
"EnvironmentReference" => EnvironmentReference,
|
|
|
|
|
"ResolvedVolume" => ResolvedVolume,
|
|
|
|
|
"ResolvedAutoApprovalRule" => ResolvedAutoApprovalRule,
|
2026-07-16 20:41:13 +09:00
|
|
|
"ResolvedNetworkReadinessV1" => ResolvedNetworkReadinessV1,
|
2026-07-15 02:09:18 +09:00
|
|
|
"DomainStore" => DomainStore,
|
2026-07-15 15:22:02 +09:00
|
|
|
"StorageCatalog" => StorageCatalog,
|
2026-07-19 02:45:32 +09:00
|
|
|
"PrepareStageState" => PrepareStageState,
|
2026-07-19 04:33:43 +09:00
|
|
|
"BootstrapWaitRequest" => BootstrapWaitRequest,
|
|
|
|
|
"BootstrapWaitOutcome" => BootstrapWaitOutcome,
|
2026-07-15 02:09:18 +09:00
|
|
|
);
|