bot/src/boards.ts
openaliro/openaliro
Module

boards.ts

@file The enums a contributor picks from: board, radio, NFC front-end, and…

bot/src/boards.ts

Overview

@file The enums a contributor picks from: board, radio, NFC front-end, and UTC offset. Taken from the hardware axes in the spec this bot follows and from CLAUDE.md's own target table. Board, radio and nfc are enforced as Discord command choices, so a well-behaved client never sends anything outside the list. They are re-validated here anyway: choices are a client-side convenience, not a server-side guarantee, and every one of these values reaches a bound SQL parameter and a modal custom_id.

used by context.ts forget.ts help-me.ts ihave.ts test-request.ts test-result.ts who-has.ts matrix.ts render.ts testRequestContainer.ts

flowchart TD
  boardLabel --> label
Undocumented (11)

values, isKnownBoard, isKnownRadio, isKnownNfc, label, boardLabel, radioLabel, nfcLabel, isKnownUtcOffsetMinutes, isValidIosVersion, parseAwakeWindow