Anchorage API reference
    Preparing search index...
    interface SubscriptionRouterOptions {
        audit?: SignalProviderAuditSink;
        authorizeMutation?: (
            input: {
                context: ActorContext;
                externalResourceId: string;
                method: "DELETE" | "POST";
                providerId: string;
                resourceKey?: string;
                threadId: string;
            },
        ) => void
        | Promise<void>;
        basePath?: string;
        knownProviders?: readonly string[];
        maxBodyBytes?: number;
        reconcilePolling?: ReconcileSignalProviderPolling;
        resolve: ActorResolver;
        roles?: readonly ApprovalRole[];
        subscriptions: SubscriptionStoreFactory;
        validateThreadTarget: BoundThreadTargetValidator;
    }
    Index

    Properties

    authorizeMutation?: (
        input: {
            context: ActorContext;
            externalResourceId: string;
            method: "DELETE" | "POST";
            providerId: string;
            resourceKey?: string;
            threadId: string;
        },
    ) => void
    | Promise<void>

    Deployment policy applied after bounded parse and thread authorization.

    basePath?: string

    Route prefix. Default '/api/threads'. Routes: <base>/:threadId/subscriptions.

    knownProviders?: readonly string[]

    The provider ids a subscription may name. Absent ⇒ any PROVIDER_ID_PATTERN slug.

    maxBodyBytes?: number

    Max request body in bytes. Must be a nonnegative safe integer; zero denies every non-empty mutation body. Default 4096.

    Reconcile the deployment provider-host alarm after a row commits. Absent preserves the original row-only behavior.

    resolve: ActorResolver

    Authenticate and validate the actor; undefined means 401.

    roles?: readonly ApprovalRole[]

    Who may manage subscriptions. Default RUN_START_ROLES (operator/admin).

    Deployment-wide subscription store factory.

    validateThreadTarget: BoundThreadTargetValidator

    Prove subscriptions target durable bound memory, not ephemeral run ids.