| 1 |
<?php |
| 2 |
|
| 3 |
namespace Yoast\WP\SEO\AI_Generator\Domain; |
| 4 |
|
| 5 |
/** |
| 6 |
* Helper class to get the URLs needed for the AI Generator API. |
| 7 |
*/ |
| 8 |
interface URLs_Interface { |
| 9 |
|
| 10 |
/** |
| 11 |
* Gets the licence URL. |
| 12 |
* |
| 13 |
* @return string The license URL. |
| 14 |
*/ |
| 15 |
public function get_license_url(): string; |
| 16 |
|
| 17 |
/** |
| 18 |
* Gets the callback URL to be used by the API to send back the access token, refresh token and code challenge. |
| 19 |
* |
| 20 |
* @return string The callback URL. |
| 21 |
*/ |
| 22 |
public function get_callback_url(): string; |
| 23 |
|
| 24 |
/** |
| 25 |
* Gets the callback URL to be used by the API to send back the refreshed JWTs once they expire. |
| 26 |
* |
| 27 |
* @return string The refresh callback URL. |
| 28 |
*/ |
| 29 |
public function get_refresh_callback_url(): string; |
| 30 |
} |
| 31 |
|