Initial commit: AuroraX
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace WordPress\AiClient\Providers\Http\Contracts;
|
||||
|
||||
use WordPress\AiClient\Common\Contracts\WithJsonSchemaInterface;
|
||||
use WordPress\AiClient\Providers\Http\DTO\Request;
|
||||
/**
|
||||
* Interface for HTTP request authentication.
|
||||
*
|
||||
* @since 0.1.0
|
||||
*/
|
||||
interface RequestAuthenticationInterface extends WithJsonSchemaInterface
|
||||
{
|
||||
/**
|
||||
* Authenticates an HTTP request.
|
||||
*
|
||||
* @since 0.1.0
|
||||
*
|
||||
* @param Request $request The request to authenticate.
|
||||
* @return Request The authenticated request.
|
||||
*/
|
||||
public function authenticateRequest(Request $request): Request;
|
||||
}
|
||||
Reference in New Issue
Block a user