Skip to main content

postproject_core/
lib.rs

1//! Application-neutral domain types and service contracts for `PostProject`.
2//!
3//! This crate deliberately has no persistence, FFI, or application-framework
4//! dependencies. Backends and adapters depend on this crate, never the reverse.
5
6#![forbid(unsafe_code)]
7
8mod artifact;
9mod cancel;
10mod commit;
11mod conflict;
12mod content;
13mod dependency;
14mod error;
15mod id;
16mod identifier;
17mod identifier_registry;
18mod job;
19mod job_lease;
20mod metadata;
21mod metadata_registry;
22mod model;
23mod provenance;
24mod query;
25mod read;
26mod resolution;
27mod resource;
28mod revision;
29mod storage;
30mod time;
31mod transaction;
32mod uri;
33
34pub use artifact::{
35    ArtifactDependencyIssue, ArtifactDependencyPathSegment, ArtifactEdgeKind, ArtifactEvaluation,
36    ArtifactEvaluationLimits, ArtifactKnowledgeReason, ArtifactKnowledgeState,
37    ArtifactReproducibilityIssue, ArtifactReproducibilityReport, ArtifactTraversalLimitKind,
38};
39pub use cancel::CancellationToken;
40pub use commit::CommitReceipt;
41pub use conflict::{
42    ConcurrencyClassification, ConflictKeyKind, SemanticConflictKey, TransactionConflict,
43};
44pub use content::{
45    ContentStructure, ContentStructureKind, FrameRange, ImageSequenceDescriptor,
46    MAX_CONTENT_MEMBERS, MAX_FRAME_PADDING, MAX_RESOURCE_ROLE_BYTES, MAX_SEQUENCE_EXCEPTIONS,
47    MAX_SEQUENCE_NAMING_BYTES, ResourceMember, ResourceRole, SequenceNaming,
48};
49pub use dependency::{
50    Dependency, DependencyKind, DependencyQueryMatch, DependencySet, DependencySetStatus,
51    DependencyTarget, MAX_AUTHORED_REFERENCE_BYTES, MAX_DEPENDENCIES_PER_SET,
52    MAX_DEPENDENCY_KIND_BYTES,
53};
54pub use error::{Error, ErrorKind, Result};
55pub use id::{
56    ActivityId, AssetId, HostObjectBinding, JobClaimId, JobId, LocatorId, MediaRootId, ObjectRef,
57    ProductionId, RepresentationId, ResourceId, RevisionId, TransactionId,
58};
59pub use identifier::{
60    ExternalIdentifier, IdentifierScheme, MAX_IDENTIFIER_QUALIFIER_BYTES,
61    MAX_IDENTIFIER_SCHEME_BYTES, MAX_IDENTIFIER_VALUE_BYTES,
62};
63pub use identifier_registry::{
64    EIDR_SCHEME, IDENTIFIER_SCHEMES, ISAN_SCHEME, IdentifierSchemeDefinition,
65    IdentifierValidationKind, POSTPROJECT_APPLICATION_SCHEME, SMPTE_UMID_SCHEME,
66    identifier_scheme_definition, validate_known_identifier,
67};
68pub use job::{
69    Job, JobClaim, JobCompletion, JobFailure, JobKind, JobQuery, JobState, JobStateKind,
70    MAX_JOB_DIAGNOSTIC_BYTES, MAX_JOB_INPUTS, MAX_JOB_KIND_BYTES, MAX_REGENERATION_PLANS,
71    RegenerationJobPlan, RequestedJobOutput,
72};
73pub use job_lease::{JobLease, JobLeaseState, MAX_JOB_LEASE_DURATION, validate_job_lease_duration};
74pub use metadata::{
75    DecimalValue, MAX_LANGUAGE_TAG_BYTES, MAX_METADATA_BINARY_BYTES, MAX_METADATA_COLLECTION_ITEMS,
76    MAX_METADATA_DECIMAL_SCALE, MAX_METADATA_NESTING_DEPTH, MAX_METADATA_TEXT_BYTES,
77    MAX_METADATA_TOTAL_BYTES, MAX_METADATA_URI_BYTES, MAX_PROPERTY_ID_BYTES,
78    MAX_VOCABULARY_ID_BYTES, MetadataAssertion, MetadataField, MetadataMatch, MetadataProperty,
79    MetadataValue, MetadataValueKind, PropertyId, RationalValue, VocabularyId,
80};
81pub use metadata_registry::{
82    DUBLIN_CORE_ELEMENTS_VOCABULARY, EBUCORE_VOCABULARY, IPTC_VMH_JSON_VOCABULARY,
83    METADATA_VOCABULARIES, MetadataCardinality, MetadataPropertyAlias, MetadataPropertyDefinition,
84    MetadataVocabularyDefinition, POSTPROJECT_METADATA_VOCABULARY, XMP_BASIC_VOCABULARY,
85    metadata_property_definition, metadata_vocabulary_definition,
86};
87pub use model::{
88    Asset, MediaRoot, OriginalMediaImport, Production, Representation, RepresentationImport,
89    RepresentationKind, Timestamp,
90};
91pub use provenance::{
92    Activity, ActivityEdgeSnapshot, ActivityInput, ActivityKind, ActivityOutput, ActivityRole,
93    AgentIdentity, MAX_ACTIVITY_EDGES, MAX_ACTIVITY_KIND_BYTES, MAX_ACTIVITY_ROLE_BYTES,
94    MAX_PROVENANCE_NAME_BYTES, MAX_PROVENANCE_URI_BYTES, MAX_TOOL_VERSION_BYTES, ToolIdentity,
95};
96pub use query::{
97    ActivityOutputQuery, DependencyQueryLimits, MAX_DEPENDENCY_QUERY_DEPTH,
98    MAX_DEPENDENCY_QUERY_REPRESENTATIONS, MAX_PROVENANCE_QUERY_DEPTH,
99    MAX_PROVENANCE_QUERY_REPRESENTATIONS, MAX_QUERY_CURSOR_BYTES, MAX_QUERY_PAGE_SIZE,
100    MetadataQuery, ProvenanceQueryLimits, ProvenanceQueryMatch, QueryCursor, QueryPage,
101    QueryPageRequest, StaleArtifactQuery,
102};
103pub use read::{DecisionBase, ProductionReadSession};
104pub use resolution::{
105    AvailabilityIssue, AvailabilityIssueKind, Confidence, EvidenceKind, RelinkSelection,
106    RepresentationAvailability, RepresentationResolution, ResolutionCandidate, ResolutionEvidence,
107    ResourceResolution, ResourceResolutionState,
108};
109pub use resource::{
110    FileFacts, FingerprintSnapshot, KnownMediaMatch, Locator, LocatorAvailability, LocatorIdentity,
111    RepresentationFingerprint, Resource, ResourceFingerprint,
112};
113pub use revision::{
114    FilteredRevisionPage, MAX_REVISION_MESSAGE_BYTES, MAX_REVISION_PAGE_SIZE, MAX_REVISION_WAIT,
115    OriginIdentity, Revision, RevisionContext, RevisionEvent, RevisionEventFilter,
116    RevisionEventKind, RevisionEventType, RevisionWaitOutcome, RevisionWaiter,
117    validate_revision_wait,
118};
119pub use storage::{ProductionRead, ProductionStore, ProductionStoreTransaction};
120pub use time::{RationalRate, RationalTime, TimeRange};
121pub use transaction::{TransactionLifecycle, TransactionState};