Anchorage API reference
    Preparing search index...

    Interface CreatePrincipalActorContextOptions

    interface CreatePrincipalActorContextOptions {
        buildService: (
            store: ApprovalStore,
            actor: ApprovalActor,
        ) => ApprovalService;
        canSelfDecide?: (role: ApprovalRole) => boolean;
        deploymentTag?: string;
        mutationEpoch?: unknown;
        newRunId?: () => string;
        principal: ExecutionPrincipal;
        storeFactory: ApprovalStoreFactory;
    }
    Index

    Properties

    buildService: (store: ApprovalStore, actor: ApprovalActor) => ApprovalService
    canSelfDecide?: (role: ApprovalRole) => boolean
    deploymentTag?: string
    mutationEpoch?: unknown
    newRunId?: () => string

    Run-id generator, which also mints thread ids; every value must be unique for the deployment's lifetime, as for CreateActorResolverOptions.newRunId.

    Trusted execution identity; canonicalized once before any async work.

    storeFactory: ApprovalStoreFactory