Cotal TypeScript packages
    Preparing search index...

    Function remoteManagedAgentEnrollmentRequest

    • Build one host-owned managed-agent enrollment request (#1972). The request carries the DIGEST of the standing actor token, never the token: the participant has already written the plaintext at 0600, and the host's copy is a hash it can only compare against.

      Parameters

      • state: remoteManagerClient.RemoteManagerIdentityState
      • actor: string
      • registrationProof: string
      • serveEpoch: number
      • target: {
            actor: string;
            allowPublish?: string[];
            allowSubscribe?: string[];
            capabilities?: string[];
            eventPayloads?: false;
            label?: string;
            role?: string;
            subscribe?: string[];
            tokenHash: string;
        }
        • actor: string
        • OptionalallowPublish?: string[]
        • OptionalallowSubscribe?: string[]
        • Optionalcapabilities?: string[]
        • OptionaleventPayloads?: false
        • Optionallabel?: string
        • Optionalrole?: string
        • Optionalsubscribe?: string[]
        • tokenHash: string

          SHA-256 hash of the locally generated actorToken. Plaintext never leaves the participant.

      • Optionalspawn: { runId?: string; served: string }
      • requestId: string = ...

      Returns RemoteManagedAgentEnrollmentRequest