(value: unknown)
| 511 | // rather than re-running the strict table decoder — which would demand an |
| 512 | // enabledModelIds argument the item does not carry. |
| 513 | function decodeRelayProfile(value: unknown): RelayModelProfile { |
| 514 | const sanitized = normalizeRelayModelProfiles({ m: value })?.m; |
| 515 | if (sanitized === undefined) { |
| 516 | throw invalidProtocolFrame('Invalid enabled model id relay profile'); |
| 517 | } |
| 518 | return sanitized; |
| 519 | } |
| 520 | |
| 521 | function catalogPageItem(value: unknown): ConnectionCatalogPageItem { |
| 522 | const item = requireRecord(value, 'connection catalog page item'); |
no test coverage detected