Skip to content

Commit deafd0e

Browse files
committed
refactor: extends json schema interface
1 parent 310ff9e commit deafd0e

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/Providers/Http/Contracts/RequestAuthenticationInterface.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44

55
namespace WordPress\AiClient\Providers\Http\Contracts;
66

7+
use WordPress\AiClient\Common\Contracts\WithJsonSchemaInterface;
78
use WordPress\AiClient\Providers\Http\DTO\Request;
89

910
/**
1011
* Interface for HTTP request authentication.
1112
*
1213
* @since n.e.x.t
1314
*/
14-
interface RequestAuthenticationInterface
15+
interface RequestAuthenticationInterface extends WithJsonSchemaInterface
1516
{
1617
/**
1718
* Authenticates an HTTP request.
@@ -22,13 +23,4 @@ interface RequestAuthenticationInterface
2223
* @return void
2324
*/
2425
public function authenticate(Request $request): void;
25-
26-
/**
27-
* Returns the JSON schema for this authentication.
28-
*
29-
* @since n.e.x.t
30-
*
31-
* @return array<string, mixed> The JSON schema.
32-
*/
33-
public static function getJsonSchema(): array;
3426
}

0 commit comments

Comments
 (0)