Something went wrong. Try again.
Parse and validate AT Protocol Lexicons with DTO generation for Laravel
Something went wrong. Try again.
641 B · 28 lines
PHP
at dev
1234567891011121314151617181920212223242526272829<?php
namespace SocialDept\AtpSchema\Contracts;
use SocialDept\AtpSchema\Data\LexiconDocument;
interface LexiconResolver{ /** * Resolve NSID to Lexicon schema via DNS and XRPC. */ public function resolve(string $nsid): LexiconDocument;
/** * Perform DNS TXT lookup for _lexicon.{authority}. */ public function lookupDns(string $authority): ?string;
/** * Retrieve schema via XRPC from PDS. */ public function retrieveSchema(string $pdsEndpoint, string $did, string $nsid): array;
/** * Check if DNS resolution is enabled. */ public function isEnabled(): bool;}