| 1: | <?php |
| 2: | |
| 3: | declare(strict_types=1); |
| 4: | |
| 5: | /** |
| 6: | * This file is part of the Nexus MCP SDK package. |
| 7: | * |
| 8: | * (c) 2025 John Paul E. Balandan, CPA <paulbalandan@gmail.com> |
| 9: | * |
| 10: | * For the full copyright and license information, please view |
| 11: | * the LICENSE file that was distributed with this source code. |
| 12: | */ |
| 13: | |
| 14: | namespace Nexus\Mcp\Schema\Request; |
| 15: | |
| 16: | use Nexus\Mcp\Schema\Message\RequestId; |
| 17: | |
| 18: | /** |
| 19: | * Sent from the client to request a list of resource templates the server has. |
| 20: | * |
| 21: | * @extends PaginatedRequest<array{ |
| 22: | * jsonrpc: '2.0', |
| 23: | * id: int|non-empty-string, |
| 24: | * method: 'resources/templates/list', |
| 25: | * params?: array{ |
| 26: | * _meta?: array<string, mixed>, |
| 27: | * cursor?: non-empty-string, |
| 28: | * } |
| 29: | * }> |
| 30: | */ |
| 31: | final readonly class ListResourceTemplatesRequest extends PaginatedRequest implements ClientRequest |
| 32: | { |
| 33: | public function __construct(RequestId $id, ?string $cursor = null, ?array $meta = null) |
| 34: | { |
| 35: | parent::__construct($id, 'resources/templates/list', $cursor, $meta); |
| 36: | } |
| 37: | } |
| 38: |