Cotal TypeScript packages
    Preparing search index...

    Function registerRemoteManagerAuthority

    • Run registration with host-issued prepare authority, scoped to one manager instance. Fresh prepare authority can resume the same frozen operation after the broker expires its executor.

      Parameters

      • args: {
            evict: (principals: readonly string[]) => Promise<boolean[]>;
            instanceId: string;
            owner: string;
            prepareCreds: string;
            reconcileForeignRegistration?: (instanceId: string) => Promise<void>;
            refreshPrepareCreds?: () => Promise<string>;
            serveActor: string;
            server: string;
            space: string;
            tlsRequired: boolean;
        }
        • evict: (principals: readonly string[]) => Promise<boolean[]>
        • instanceId: string
        • owner: string
        • prepareCreds: string
        • OptionalreconcileForeignRegistration?: (instanceId: string) => Promise<void>

          Host-side guarded repair for a foreign manager slot holder, used once before a retry.

        • OptionalrefreshPrepareCreds?: () => Promise<string>

          Reissue prepare authority for the same lifecycle and held executor nkey after expiry. Host refusals propagate. Registration resumes its existing frozen operation.

        • serveActor: string
        • server: string
        • space: string
        • tlsRequired: boolean

          Whether the registered broker REQUIRES TLS, carried from the mesh record rather than decided here. A participant reaches its host through whatever the record says, so this can be a wss:// edge; hardcoding false would send the prepare credential to it in the clear.

      Returns Promise<
          {
              processEpoch: number;
              registrationRevision: number;
              serveGrant: EpServeGrant;
          },
      >