@adcp/sdk API Reference - v7.9.0
    Preparing search index...

    Class PropertyRegistry

    Local authorization cache with synchronous queries.

    Wraps RegistrySync internally, subscribing to its events and maintaining indexed Maps for O(1) synchronous lookups. The key difference from using RegistrySync directly is that all query methods are synchronous.

    const registry = new PropertyRegistry({
    registryClient: new RegistryClient({ apiKey: 'sk_...' }),
    });
    await registry.start();

    // Synchronous lookups - no await needed
    const authorized = registry.isAuthorized('https://ads.example.com', 'publisher.com');
    const agents = registry.findAgentsByDomain('publisher.com');

    registry.stop();
    Index

    Constructors

    Methods

    • Check if an agent has any authorization for a publisher domain.

      Parameters

      • agentUrl: string
      • domain: string

      Returns boolean

    • Get all authorizations for a publisher domain.

      Parameters

      • domain: string

      Returns AuthorizationEntry[]

    • Get all authorizations for an agent.

      Parameters

      • agentUrl: string

      Returns AuthorizationEntry[]

    • Find agents that are authorized for a given domain.

      Parameters

      • domain: string

      Returns AgentSearchResult[]