| 1: | <?php |
| 2: | |
| 3: | declare(strict_types=1); |
| 4: | |
| 5: | /** |
| 6: | * This file is part of the Nexus MCP SDK package. |
| 7: | * |
| 8: | * (c) 2026 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\Core\Schema\Enum; |
| 15: | |
| 16: | /** |
| 17: | * Indicates the intended scope of the cached response, analogous to HTTP |
| 18: | * `Cache-Control: public` vs `Cache-Control: private`. |
| 19: | * |
| 20: | * @see https://github.com/modelcontextprotocol/modelcontextprotocol/blob/main/schema/draft/schema.ts |
| 21: | */ |
| 22: | enum CacheScope: string |
| 23: | { |
| 24: | /** |
| 25: | * Any client or intermediary (e.g., shared gateway, proxy) MAY cache the response and serve it to any user. |
| 26: | */ |
| 27: | case Public = 'public'; |
| 28: | |
| 29: | /** |
| 30: | * Only the requesting user's client MAY cache the response. Shared caches (e.g., multi-tenant |
| 31: | * gateways) MUST NOT serve a cached copy to a different user. |
| 32: | */ |
| 33: | case Private = 'private'; |
| 34: | } |
| 35: |