Member Junction
    Preparing search index...

    Class RealtimeSessionVerificationWorkflow

    The decisions and their order. See the module header for the contract.

    Index

    Constructors

    Accessors

    Methods

    • Reads the session's verification state. This is the durable counterpart of the identity.verified event: a subscriber that was disconnected when the event fired recovers by asking here.

      Parameters

      • input: { AgentSessionID: string }
      • caller: {
            ClientIp?: string;
            ContextUser: UserInfo;
            Kind: "principal";
            Provider: IMetadataProvider;
        }
        • OptionalClientIp?: string

          The caller's network address, for abuse limits only.

        • ContextUser: UserInfo

          The authenticated user the server built from the caller's token — the source of truth for ownership.

        • Kind: "principal"
        • Provider: IMetadataProvider

          The request-scoped provider.

      Returns Promise<VerificationOperationResult>

    • Asks to verify Email for the caller's session: validates, applies policy and limits, stores a pending verification (hashes only) and emails a one-time link plus a typed code.

      Nothing is consumed unless the email is actually sent: a delivery failure rolls the stored state back.

      Parameters

      • input: { AgentSessionID: string; Email: string; Name: string }
      • caller: {
            ClientIp?: string;
            ContextUser: UserInfo;
            Kind: "principal";
            Provider: IMetadataProvider;
        }
        • OptionalClientIp?: string

          The caller's network address, for abuse limits only.

        • ContextUser: UserInfo

          The authenticated user the server built from the caller's token — the source of truth for ownership.

        • Kind: "principal"
        • Provider: IMetadataProvider

          The request-scoped provider.

      Returns Promise<VerificationOperationResult>

    • Redeems the typed code for the caller's session. Wrong entries are counted against the pending verification and void it at maxCodeAttempts; submissions are also rate limited per session.

      Parameters

      • input: { AgentSessionID: string; Code: string }
      • caller: {
            ClientIp?: string;
            ContextUser: UserInfo;
            Kind: "principal";
            Provider: IMetadataProvider;
        }
        • OptionalClientIp?: string

          The caller's network address, for abuse limits only.

        • ContextUser: UserInfo

          The authenticated user the server built from the caller's token — the source of truth for ownership.

        • Kind: "principal"
        • Provider: IMetadataProvider

          The request-scoped provider.

      Returns Promise<VerificationOperationResult>