(value: unknown)
| 133 | } |
| 134 | |
| 135 | export function isPlatform(value: unknown): value is Platform { |
| 136 | // Internal device-platform membership derived from the canonical PLATFORMS tuple. |
| 137 | return (PLATFORMS as readonly unknown[]).includes(value); |
| 138 | } |
| 139 | |
| 140 | export function isPublicPlatform(value: unknown): value is PublicPlatform { |
| 141 | // The PUBLIC leaf strings a daemon response carries (approach b). Used by the client |