Skip to main content

plexus_core/plexus/
mod.rs

1// Guidance system removed during caller-wraps streaming architecture refactor
2// pub mod guidance;
3
4pub mod auth;
5/// AUTH-5: the `auth` activation and what a service supplies it.
6pub mod auth_activation;
7/// AUTH-5: a reference in-memory backend and stores for the `auth` activation.
8pub mod auth_memory;
9pub mod test_validator;
10pub mod bidirectional;
11pub mod context;
12pub mod credential_envelope;
13pub mod dispatch;
14pub mod errors;
15pub mod forward_registry;
16/// AUTH-2: the grant gate in dispatch, and the task-local reach.
17pub mod grant_gate;
18pub mod hub_context;
19// MACRO-2.B3: the in-process transport for the macro-generated typed client.
20pub mod in_process;
21pub mod method_enum;
22pub mod middleware;
23pub mod path;
24pub mod plexus;
25pub mod schema;
26pub(crate) mod scope_gate;
27pub mod streaming;
28pub mod types;
29/// AUTH-4: the caller's view of a gated hub.
30pub mod view;
31
32// AuthContext + SessionValidator + the sealed Principal / VerifiedUser /
33// ServiceIdentity types are re-exported from plexus-auth-core via
34// plexus::auth. New code should import directly from plexus_auth_core.
35pub use auth::{AuthContext, Principal, ServiceIdentity, SessionValidator, VerifiedUser, Anonymous, CallSite, ForwardDerivation, ForwardPolicy, ForwardPolicyName, IdentityOnly, MethodPath, MethodPathError, PassThrough, ANONYMOUS_NAME, IDENTITY_ONLY_NAME, PASS_THROUGH_NAME};
36pub use test_validator::TestSessionValidator;
37pub use bidirectional::{BidirChannel, BidirError, SelectOption, StandardBidirChannel, StandardRequest, StandardResponse};
38pub use context::PlexusContext;
39pub use in_process::InProcessTransport;
40#[deprecated(note = "Use GuidanceErrorType and GuidanceSuggestion from stream events instead")]
41pub use errors::{GuidedError, GuidedErrorData, TryRequest};
42pub use forward_registry::ForwardPolicyRegistry;
43pub use grant_gate::{current_reach, with_reach, ForbiddenItem};
44pub use view::View;
45pub use auth_activation::{
46    Auth, AuthBackend, AuthEvent, AuthFailure, AuthSetup, LoginAnswer, LoginFlow, MembershipEntry, MembershipStore,
47    Provider, ProviderKind, Requirement, RoleStore, Session, SignupAnswer, StoreError, Waiting, SIGNED_IN_GRANTS,
48};
49pub use auth_memory::{MemoryAuthBackend, MemoryMemberships, MemoryRoles};
50// AUTH-2: the grant model, re-exported so an activation needs only plexus-core.
51pub use plexus_auth_core::grants::{
52    Ceiling, Gate, Grant, GrantSet, Membership, Memberships, Reach, Refusal, Resolve, RoleOrGrant,
53    RoleTable, Roles, ScopeRef, ADMIN, CEILING_KEY,
54};
55#[deprecated(note = "Middleware removed - guidance provided via PlexusStreamEvent::Guidance")]
56pub use middleware::{ActivationRegistry, GuidedErrorMiddleware};
57pub use path::Provenance;
58#[allow(deprecated)]
59pub use plexus::{error_item, Activation, ActivationInfo, AuthzDenyReason, ChildCapabilities, ChildRouter, DynamicHub, PlexusError, TransportErrorKind, route_to_child, PLEXUS_NOTIF_METHOD};
60pub use crate::types::Handle;
61pub use schema::{
62    AuthPosture, ChildHashes, ChildSummary, DeprecationInfo, MethodExample, MethodRole, MethodSchema,
63    ParamSchema, PluginHashes, PluginSchema, RequiredCredential, ReturnShape, Schema,
64    SchemaProperty, SchemaResult, SchemaType, ViewKind, X_PLEXUS_VALUES,
65};
66pub use types::{PlexusStreamItem, StreamMetadata};
67pub use method_enum::MethodEnumSchema;
68pub use streaming::{PlexusStream, wrap_stream, wrap_stream_with_bidir, create_bidir_stream, error_stream, done_stream, progress_stream};
69// Note: Method enum is auto-generated by hub_macro and exported from plexus module
70pub use dispatch::{HubDispatch, StreamItem, from_dispatch_stream};
71pub use crate::request::PlexusRequestField;
72pub use hub_context::{HubContext, ParentAware, NoParent};