Anchorage API reference
    Preparing search index...

    Interface CreateActorResolverOptions

    interface CreateActorResolverOptions {
        allowSelfDecision?: SelfDecisionPolicy;
        authenticate: (
            request: Request,
        ) => ApprovalActor | Promise<ApprovalActor | undefined> | undefined;
        buildService: (
            store: ApprovalStore,
            actor: ApprovalActor,
        ) => ApprovalService;
        deploymentTag?: string;
        mutationEpoch?: unknown;
        newRunId?: () => string;
        storeFactory: ApprovalStoreFactory;
    }
    Index

    Properties

    allowSelfDecision?: SelfDecisionPolicy

    The same self-decision policy supplied to ApprovalService.

    authenticate: (
        request: Request,
    ) => ApprovalActor | Promise<ApprovalActor | undefined> | undefined

    The host's authentication seam.

    buildService: (store: ApprovalStore, actor: ApprovalActor) => ApprovalService

    Host-specific service assembly, called lazily at most once per request.

    deploymentTag?: string

    Infrastructure-configured deployment tag, never derived from claims.

    mutationEpoch?: unknown
    newRunId?: () => string

    Run-id generator, which also mints thread ids. Every call must return a value it never returned before in this deployment, because a run id is single-use and a thread id names one thread for the deployment's lifetime. Default: crypto.randomUUID.

    storeFactory: ApprovalStoreFactory

    The deployment approval-store factory.