$query * * @return array */ public function get(string $method, array $query = [], ?XrpcOptions $options = NULL): array { return $this->xrpc->get($method, $query, $options); } /** * Sends a POST XRPC request and returns decoded data. * * @param array $payload * * @return array */ public function post(string $method, array $payload = [], ?XrpcOptions $options = NULL): array { return $this->xrpc->post($method, $payload, $options); } /** * Sends a POST XRPC request with a caller-provided raw body. * * @return array */ public function postRaw( string $method, string|StreamInterface $body, string $contentType = 'application/octet-stream', ?XrpcOptions $options = NULL, ): array { return $this->xrpc->postRaw($method, $body, $contentType, $options); } /** * Sends an XRPC request and returns decoded data with response metadata. * * @param array $data */ public function request( string $httpMethod, string $method, array $data = [], ?XrpcOptions $options = NULL, ): XrpcResponse { return $this->xrpc->request($httpMethod, $method, $data, $options); } /** * Sends an XRPC request without a body. * * @param array $query */ public function requestWithoutBody( string $httpMethod, string $method, array $query = [], ?XrpcOptions $options = NULL, ): XrpcResponse { return $this->xrpc->requestWithoutBody($httpMethod, $method, $query, $options); } /** * Sends an XRPC request with a caller-provided raw body. * * @param array $query */ public function requestWithBody( string $httpMethod, string $method, string|StreamInterface $body, string $contentType = 'application/octet-stream', array $query = [], ?XrpcOptions $options = NULL, ): XrpcResponse { return $this->xrpc->requestWithBody($httpMethod, $method, $body, $contentType, $query, $options); } /** * Sends an XRPC request and returns the raw response body. * * @param array $data */ public function requestRaw( string $httpMethod, string $method, array $data = [], ?XrpcOptions $options = NULL, ): RawXrpcResponse { return $this->xrpc->requestRaw($httpMethod, $method, $data, $options); } /** * Sends an XRPC request without a body and returns the raw response body. * * @param array $query */ public function requestRawWithoutBody( string $httpMethod, string $method, array $query = [], ?XrpcOptions $options = NULL, ): RawXrpcResponse { return $this->xrpc->requestRawWithoutBody($httpMethod, $method, $query, $options); } /** * Sends an XRPC request with a raw body and returns the raw response body. * * @param array $query */ public function requestRawWithBody( string $httpMethod, string $method, string|StreamInterface $body, string $contentType = 'application/octet-stream', array $query = [], ?XrpcOptions $options = NULL, ): RawXrpcResponse { return $this->xrpc->requestRawWithBody($httpMethod, $method, $body, $contentType, $query, $options); } /** * Returns the default service url. */ public function getDefaultServiceUrl(): ?string { return $this->xrpc->getDefaultServiceUrl(); } /** * Creates a Lexicon-aware XRPC client for the repository. */ public function lexicons(LexiconRepositoryInterface $repository): LexiconXrpcClient { return new LexiconXrpcClient($this->xrpc, new \Wotnak\Atproto\Lexicon\SchemaCompiler($repository)); } /** * Returns the configured handle resolver. */ public function handles(): HandleResolver { return $this->handles; } /** * Returns the configured DID resolver. */ public function dids(): DidResolver { return $this->dids; } }