@ramme-io/shared 4.5.0 → 4.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -76,9 +76,17 @@ __export(index_exports, {
76
76
  AppTextSizeSchema: () => AppTextSizeSchema,
77
77
  AssetHashSchema: () => AssetHashSchema,
78
78
  AuthStrategySchema: () => AuthStrategySchema,
79
+ BOARD_REMOTE_COMMANDS: () => BOARD_REMOTE_COMMANDS,
80
+ BOARD_REMOTE_PENDING_MAX: () => BOARD_REMOTE_PENDING_MAX,
81
+ BOARD_REMOTE_TTL_MS: () => BOARD_REMOTE_TTL_MS,
82
+ BOARD_SLEEP_MINUTES: () => BOARD_SLEEP_MINUTES,
83
+ BOARD_SLEEP_MINUTES_DEFAULT: () => BOARD_SLEEP_MINUTES_DEFAULT,
79
84
  BlockSchema: () => BlockSchema,
80
85
  BoardFontSchema: () => BoardFontSchema,
81
86
  BoardPaletteHexSchema: () => BoardPaletteHexSchema,
87
+ BoardRemoteCommandSchema: () => BoardRemoteCommandSchema,
88
+ BoardRemotePressSchema: () => BoardRemotePressSchema,
89
+ BoardSleepMinutesSchema: () => BoardSleepMinutesSchema,
82
90
  Bodewell: () => schema_exports,
83
91
  CLAIMED_DEVICE_TTL_SECONDS: () => CLAIMED_DEVICE_TTL_SECONDS,
84
92
  CONTROL_STATES: () => CONTROL_STATES,
@@ -1440,6 +1448,26 @@ var ShelfSchema = import_zod10.z.object({
1440
1448
  */
1441
1449
  added: import_zod10.z.array(import_zod10.z.number().int().nonnegative()).max(SHELF_MAX_APPS).optional()
1442
1450
  });
1451
+ var BOARD_SLEEP_MINUTES = [10, 30, 60, 0];
1452
+ var BOARD_SLEEP_MINUTES_DEFAULT = 10;
1453
+ var BoardSleepMinutesSchema = import_zod10.z.union([import_zod10.z.literal(10), import_zod10.z.literal(30), import_zod10.z.literal(60), import_zod10.z.literal(0)]);
1454
+ var BOARD_REMOTE_COMMANDS = [
1455
+ "podcasts",
1456
+ "radio",
1457
+ "music",
1458
+ "snake",
1459
+ "menu",
1460
+ "settings",
1461
+ "home",
1462
+ "next",
1463
+ "quieter",
1464
+ "louder",
1465
+ "sleep"
1466
+ ];
1467
+ var BoardRemoteCommandSchema = import_zod10.z.enum(BOARD_REMOTE_COMMANDS);
1468
+ var BOARD_REMOTE_PENDING_MAX = 8;
1469
+ var BOARD_REMOTE_TTL_MS = 10 * 6e4;
1470
+ var BoardRemotePressSchema = import_zod10.z.object({ n: import_zod10.z.number().int().positive(), do: BoardRemoteCommandSchema });
1443
1471
  var ShelfEditSchema = import_zod10.z.discriminatedUnion("op", [
1444
1472
  import_zod10.z.object({ op: import_zod10.z.literal("show"), deviceId: DeviceIdSchema, index: import_zod10.z.number().int().min(0) }),
1445
1473
  import_zod10.z.object({ op: import_zod10.z.literal("remove"), deviceId: DeviceIdSchema, index: import_zod10.z.number().int().min(0) }),
@@ -1458,6 +1486,14 @@ var ShelfEditSchema = import_zod10.z.discriminatedUnion("op", [
1458
1486
  * per-board setting rather than a build.
1459
1487
  */
1460
1488
  import_zod10.z.object({ op: import_zod10.z.literal("screen"), deviceId: DeviceIdSchema, invert: import_zod10.z.boolean() }),
1489
+ /**
1490
+ * How long the board may be left alone on its battery before it sleeps,
1491
+ * 0 for never. Beside the panel setting, and for the same reason: it is
1492
+ * about one board, not the apps on it.
1493
+ */
1494
+ import_zod10.z.object({ op: import_zod10.z.literal("sleep"), deviceId: DeviceIdSchema, minutes: BoardSleepMinutesSchema }),
1495
+ /** A press from the page's Remote; see BOARD_REMOTE_COMMANDS. */
1496
+ import_zod10.z.object({ op: import_zod10.z.literal("remote"), deviceId: DeviceIdSchema, do: BoardRemoteCommandSchema }),
1461
1497
  /**
1462
1498
  * Remove one entry from the list of apps sent to this board, by the revision
1463
1499
  * it was sent as. The record only: what the board holds is the shelf's
@@ -1549,7 +1585,14 @@ var DEVICE_PROTOCOL = {
1549
1585
  * a local model, ramme.io a metered cloud one. The board sends the same clip
1550
1586
  * to either.
1551
1587
  */
1552
- voice: { method: "POST", path: "/api/device/voice" }
1588
+ voice: { method: "POST", path: "/api/device/voice" },
1589
+ /**
1590
+ * GET `?id=` → 200 `{ shows: [{ t, e: [{ i, t, m }] }] }`: the newest
1591
+ * episodes of each podcast the board follows, `i` naming one and `m` its
1592
+ * minutes. GET `?id=&ep=<i>` → 302 to that episode's MP3, which the board
1593
+ * plays as it plays a station. 404 for an episode it does not follow.
1594
+ */
1595
+ podcasts: { method: "GET", path: "/api/device/podcasts" }
1553
1596
  };
1554
1597
  var DEVICE_VOICE_CLIP = {
1555
1598
  contentType: "audio/wav",
@@ -1573,7 +1616,10 @@ var DEVICE_POLL_QUERY = {
1573
1616
  rot: "which way it stands, 0\u20133",
1574
1617
  pl: "the palette it draws in, as 42 hex digits",
1575
1618
  fn: "the lettering it draws in",
1619
+ ha: 'the firmware apps it has switched off, ids joined by commas, "-" for none',
1576
1620
  bt: "battery millivolts",
1621
+ sl: 'minutes left alone on battery before it sleeps, "0" for never',
1622
+ rc: 'the number of the last press from its page it carried out, "0" for none',
1577
1623
  u: "what happened to the last update it was asked to install"
1578
1624
  };
1579
1625
  var BoardPaletteHexSchema = import_zod13.z.string().regex(/^[0-9a-f]{42}$/);
@@ -1584,9 +1630,11 @@ var DevicePollReplySchema = import_zod13.z.object({
1584
1630
  document: AppDocumentSchema.optional(),
1585
1631
  shelf: ShelfSchema.optional(),
1586
1632
  update: FirmwareUpdateSchema.optional(),
1587
- screen: import_zod13.z.object({ invert: import_zod13.z.boolean() }).optional(),
1633
+ screen: import_zod13.z.object({ invert: import_zod13.z.boolean(), sleepMinutes: BoardSleepMinutesSchema.optional() }).optional(),
1588
1634
  palette: BoardPaletteHexSchema.optional(),
1589
- font: BoardFontSchema.optional()
1635
+ font: BoardFontSchema.optional(),
1636
+ hiddenApps: import_zod13.z.string().regex(/^([a-z]+(,[a-z]+)*)?$/).optional(),
1637
+ remote: import_zod13.z.array(BoardRemotePressSchema).max(BOARD_REMOTE_PENDING_MAX).optional()
1590
1638
  });
1591
1639
 
1592
1640
  // src/apps/deviceFonts.generated.ts
@@ -2512,9 +2560,17 @@ var NewAccessTokenSchema = import_zod19.z.object({
2512
2560
  AppTextSizeSchema,
2513
2561
  AssetHashSchema,
2514
2562
  AuthStrategySchema,
2563
+ BOARD_REMOTE_COMMANDS,
2564
+ BOARD_REMOTE_PENDING_MAX,
2565
+ BOARD_REMOTE_TTL_MS,
2566
+ BOARD_SLEEP_MINUTES,
2567
+ BOARD_SLEEP_MINUTES_DEFAULT,
2515
2568
  BlockSchema,
2516
2569
  BoardFontSchema,
2517
2570
  BoardPaletteHexSchema,
2571
+ BoardRemoteCommandSchema,
2572
+ BoardRemotePressSchema,
2573
+ BoardSleepMinutesSchema,
2518
2574
  Bodewell,
2519
2575
  CLAIMED_DEVICE_TTL_SECONDS,
2520
2576
  CONTROL_STATES,
package/dist/index.d.cts CHANGED
@@ -31372,6 +31372,42 @@ declare const ShelfSchema: z.ZodObject<{
31372
31372
  rotateMinutes?: number | undefined;
31373
31373
  added?: number[] | undefined;
31374
31374
  }>;
31375
+ /**
31376
+ * How long a board on battery may be left alone before it sleeps, in minutes,
31377
+ * as its page offers them; 0 is never. Ten until its owner chooses. The
31378
+ * firmware holds the same list (hardware/weather-display/PowerSave.h).
31379
+ */
31380
+ declare const BOARD_SLEEP_MINUTES: readonly [10, 30, 60, 0];
31381
+ declare const BOARD_SLEEP_MINUTES_DEFAULT = 10;
31382
+ declare const BoardSleepMinutesSchema: z.ZodUnion<[z.ZodLiteral<10>, z.ZodLiteral<30>, z.ZodLiteral<60>, z.ZodLiteral<0>]>;
31383
+ type BoardSleepMinutes = z.infer<typeof BoardSleepMinutesSchema>;
31384
+ /**
31385
+ * Presses sent from a board's page: open an app, step through what it plays,
31386
+ * louder or quieter, back to the slides, sleep. Each acts as the tap it
31387
+ * stands for on the glass. A press waits on the board's row for its next
31388
+ * check, which is within half a minute when it was used lately and five
31389
+ * minutes when not. The firmware holds the same names
31390
+ * (hardware/weather-display/Remote.h).
31391
+ */
31392
+ declare const BOARD_REMOTE_COMMANDS: readonly ["podcasts", "radio", "music", "snake", "menu", "settings", "home", "next", "quieter", "louder", "sleep"];
31393
+ declare const BoardRemoteCommandSchema: z.ZodEnum<["podcasts", "radio", "music", "snake", "menu", "settings", "home", "next", "quieter", "louder", "sleep"]>;
31394
+ type BoardRemoteCommand = z.infer<typeof BoardRemoteCommandSchema>;
31395
+ /** Presses kept waiting at once; a further one drops the oldest. */
31396
+ declare const BOARD_REMOTE_PENDING_MAX = 8;
31397
+ /** A press not carried out by then is dropped: a board that was off should not wake to a queue of old ones. */
31398
+ declare const BOARD_REMOTE_TTL_MS: number;
31399
+ /** A press as the board reads it: its number, never reused, and what to do. */
31400
+ declare const BoardRemotePressSchema: z.ZodObject<{
31401
+ n: z.ZodNumber;
31402
+ do: z.ZodEnum<["podcasts", "radio", "music", "snake", "menu", "settings", "home", "next", "quieter", "louder", "sleep"]>;
31403
+ }, "strip", z.ZodTypeAny, {
31404
+ n: number;
31405
+ do: "podcasts" | "radio" | "music" | "snake" | "menu" | "settings" | "home" | "next" | "quieter" | "louder" | "sleep";
31406
+ }, {
31407
+ n: number;
31408
+ do: "podcasts" | "radio" | "music" | "snake" | "menu" | "settings" | "home" | "next" | "quieter" | "louder" | "sleep";
31409
+ }>;
31410
+ type BoardRemotePress = z.infer<typeof BoardRemotePressSchema>;
31375
31411
  /** One change to a board's shelf, from its page. Indexes are positions on the shelf. */
31376
31412
  declare const ShelfEditSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
31377
31413
  op: z.ZodLiteral<"show">;
@@ -31436,6 +31472,30 @@ declare const ShelfEditSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
31436
31472
  deviceId: string;
31437
31473
  op: "screen";
31438
31474
  invert: boolean;
31475
+ }>, z.ZodObject<{
31476
+ op: z.ZodLiteral<"sleep">;
31477
+ deviceId: z.ZodString;
31478
+ minutes: z.ZodUnion<[z.ZodLiteral<10>, z.ZodLiteral<30>, z.ZodLiteral<60>, z.ZodLiteral<0>]>;
31479
+ }, "strip", z.ZodTypeAny, {
31480
+ deviceId: string;
31481
+ minutes: 0 | 10 | 30 | 60;
31482
+ op: "sleep";
31483
+ }, {
31484
+ deviceId: string;
31485
+ minutes: 0 | 10 | 30 | 60;
31486
+ op: "sleep";
31487
+ }>, z.ZodObject<{
31488
+ op: z.ZodLiteral<"remote">;
31489
+ deviceId: z.ZodString;
31490
+ do: z.ZodEnum<["podcasts", "radio", "music", "snake", "menu", "settings", "home", "next", "quieter", "louder", "sleep"]>;
31491
+ }, "strip", z.ZodTypeAny, {
31492
+ deviceId: string;
31493
+ op: "remote";
31494
+ do: "podcasts" | "radio" | "music" | "snake" | "menu" | "settings" | "home" | "next" | "quieter" | "louder" | "sleep";
31495
+ }, {
31496
+ deviceId: string;
31497
+ op: "remote";
31498
+ do: "podcasts" | "radio" | "music" | "snake" | "menu" | "settings" | "home" | "next" | "quieter" | "louder" | "sleep";
31439
31499
  }>, z.ZodObject<{
31440
31500
  op: z.ZodLiteral<"forget">;
31441
31501
  deviceId: z.ZodString;
@@ -40312,6 +40372,16 @@ declare const DEVICE_PROTOCOL: {
40312
40372
  readonly method: "POST";
40313
40373
  readonly path: "/api/device/voice";
40314
40374
  };
40375
+ /**
40376
+ * GET `?id=` → 200 `{ shows: [{ t, e: [{ i, t, m }] }] }`: the newest
40377
+ * episodes of each podcast the board follows, `i` naming one and `m` its
40378
+ * minutes. GET `?id=&ep=<i>` → 302 to that episode's MP3, which the board
40379
+ * plays as it plays a station. 404 for an episode it does not follow.
40380
+ */
40381
+ readonly podcasts: {
40382
+ readonly method: "GET";
40383
+ readonly path: "/api/device/podcasts";
40384
+ };
40315
40385
  };
40316
40386
  /**
40317
40387
  * The clip a board sends to `voice`: a WAV file, 16 kHz, 16-bit, mono — what
@@ -40352,7 +40422,10 @@ declare const DEVICE_POLL_QUERY: {
40352
40422
  readonly rot: "which way it stands, 0–3";
40353
40423
  readonly pl: "the palette it draws in, as 42 hex digits";
40354
40424
  readonly fn: "the lettering it draws in";
40425
+ readonly ha: "the firmware apps it has switched off, ids joined by commas, \"-\" for none";
40355
40426
  readonly bt: "battery millivolts";
40427
+ readonly sl: "minutes left alone on battery before it sleeps, \"0\" for never";
40428
+ readonly rc: "the number of the last press from its page it carried out, \"0\" for none";
40356
40429
  readonly u: "what happened to the last update it was asked to install";
40357
40430
  };
40358
40431
  /** An owner's colours for the board: the seven theme colours as RGB, 42 hex digits. */
@@ -40367,9 +40440,14 @@ declare const BoardFontSchema: z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodEnum<["int
40367
40440
  * `document` to a board that said `sh=1`
40368
40441
  * update a firmware build its owner asked it to install; a board takes
40369
40442
  * it only from FIRMWARE_UPDATE_PREFIX, whatever server it polls
40370
- * screen the panel's light/dark setting
40443
+ * screen the panel's light/dark setting, and how long the board
40444
+ * sleeps after on battery (`sleepMinutes`, absent until chosen)
40371
40445
  * palette its owner's colours
40372
40446
  * font its owner's lettering
40447
+ * hiddenApps the firmware apps its owner switched off, ids joined by
40448
+ * commas, "" for none; the ids are the firmware's own
40449
+ * remote presses from its page it has not carried out, oldest first,
40450
+ * sent only to a board that reports `rc`
40373
40451
  *
40374
40452
  * A reply may carry settings and no app at all (`revision` 0, or a revision
40375
40453
  * the board already has): the board applies them and keeps what it shows.
@@ -56499,21 +56577,40 @@ declare const DevicePollReplySchema: z.ZodObject<{
56499
56577
  }>>;
56500
56578
  screen: z.ZodOptional<z.ZodObject<{
56501
56579
  invert: z.ZodBoolean;
56580
+ sleepMinutes: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<10>, z.ZodLiteral<30>, z.ZodLiteral<60>, z.ZodLiteral<0>]>>;
56502
56581
  }, "strip", z.ZodTypeAny, {
56503
56582
  invert: boolean;
56583
+ sleepMinutes?: 0 | 10 | 30 | 60 | undefined;
56504
56584
  }, {
56505
56585
  invert: boolean;
56586
+ sleepMinutes?: 0 | 10 | 30 | 60 | undefined;
56506
56587
  }>>;
56507
56588
  palette: z.ZodOptional<z.ZodString>;
56508
56589
  font: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodEnum<["inter", "tay", "pixel"]>]>>;
56590
+ hiddenApps: z.ZodOptional<z.ZodString>;
56591
+ remote: z.ZodOptional<z.ZodArray<z.ZodObject<{
56592
+ n: z.ZodNumber;
56593
+ do: z.ZodEnum<["podcasts", "radio", "music", "snake", "menu", "settings", "home", "next", "quieter", "louder", "sleep"]>;
56594
+ }, "strip", z.ZodTypeAny, {
56595
+ n: number;
56596
+ do: "podcasts" | "radio" | "music" | "snake" | "menu" | "settings" | "home" | "next" | "quieter" | "louder" | "sleep";
56597
+ }, {
56598
+ n: number;
56599
+ do: "podcasts" | "radio" | "music" | "snake" | "menu" | "settings" | "home" | "next" | "quieter" | "louder" | "sleep";
56600
+ }>, "many">>;
56509
56601
  }, "strip", z.ZodTypeAny, {
56510
56602
  revision: number;
56511
56603
  palette?: string | undefined;
56512
56604
  screen?: {
56513
56605
  invert: boolean;
56606
+ sleepMinutes?: 0 | 10 | 30 | 60 | undefined;
56514
56607
  } | undefined;
56515
56608
  font?: "inter" | "pixel" | "tay" | "auto" | undefined;
56516
56609
  sentAt?: number | undefined;
56610
+ remote?: {
56611
+ n: number;
56612
+ do: "podcasts" | "radio" | "music" | "snake" | "menu" | "settings" | "home" | "next" | "quieter" | "louder" | "sleep";
56613
+ }[] | undefined;
56517
56614
  document?: {
56518
56615
  id: string;
56519
56616
  name: string;
@@ -57932,14 +58029,20 @@ declare const DevicePollReplySchema: z.ZodObject<{
57932
58029
  sha256: string;
57933
58030
  requestedAt: number;
57934
58031
  } | undefined;
58032
+ hiddenApps?: string | undefined;
57935
58033
  }, {
57936
58034
  revision: number;
57937
58035
  palette?: string | undefined;
57938
58036
  screen?: {
57939
58037
  invert: boolean;
58038
+ sleepMinutes?: 0 | 10 | 30 | 60 | undefined;
57940
58039
  } | undefined;
57941
58040
  font?: "inter" | "pixel" | "tay" | "auto" | undefined;
57942
58041
  sentAt?: number | undefined;
58042
+ remote?: {
58043
+ n: number;
58044
+ do: "podcasts" | "radio" | "music" | "snake" | "menu" | "settings" | "home" | "next" | "quieter" | "louder" | "sleep";
58045
+ }[] | undefined;
57943
58046
  document?: {
57944
58047
  id: string;
57945
58048
  name: string;
@@ -59358,6 +59461,7 @@ declare const DevicePollReplySchema: z.ZodObject<{
59358
59461
  sha256: string;
59359
59462
  requestedAt: number;
59360
59463
  } | undefined;
59464
+ hiddenApps?: string | undefined;
59361
59465
  }>;
59362
59466
  type DevicePollReply = z.infer<typeof DevicePollReplySchema>;
59363
59467
  type DeviceProtocolCall = keyof typeof DEVICE_PROTOCOL;
@@ -63220,4 +63324,4 @@ type AccessTokenRecord = z.infer<typeof AccessTokenRecordSchema>;
63220
63324
  type PublicAccessToken = z.infer<typeof PublicAccessTokenSchema>;
63221
63325
  type NewAccessToken = z.infer<typeof NewAccessTokenSchema>;
63222
63326
 
63223
- export { ACCESS_REQUEST_TTL_SECONDS, ACCESS_TOKEN_LIFETIMES_DAYS, ACCESS_TOKEN_MAX_PER_ACCOUNT, ACCESS_TOKEN_PREFIX, ACCESS_TOKEN_RATE_PER_MINUTE, ACCESS_TOKEN_SCOPES, ACCESS_TOKEN_SCOPE_LABELS, ACCOUNT_TTL_SECONDS, type AIKeyManifest, AIKeyManifestSchema, type AITheme, AIThemeSchema, AI_ROSTER, AI_TOOLS, APP_DOCUMENT_EDIT_PREFIX, APP_DOCUMENT_SYSTEM_PROMPT, ASSISTANT_MODEL, ASSISTANT_PROVIDER, type AccessRequest, type AccessRequestRecord, AccessRequestRecordSchema, AccessRequestSchema, type AccessRequestStatus, AccessRequestStatusSchema, type AccessTokenRecord, AccessTokenRecordSchema, type AccessTokenScope, AccessTokenScopeSchema, type AccountId, AccountIdSchema, type AccountRecord, AccountRecordSchema, type AccountRole, AccountRoleSchema, type AccountStatus, AccountStatusSchema, type AccountTheme, AccountThemeSchema, type ActionDefinition, ActionSchema, type AgentRoleConfig, type AgentRoleKey, AircraftAppConfigSchema, type AppAlign, AppAlignSchema, AppBarSchema, type AppBinding, AppBindingSchema, type AppBlock, AppBlockSchema, type AppColor, AppColorSchema, type AppColorToken, AppColorTokenSchema, type AppCompute, AppComputeSchema, type AppCondition, AppConditionSchema, AppDialSchema, type AppDocument, AppDocumentSchema, type AppGroup, AppGroupSchema, type AppIcon, AppIconSchema, type AppImage, AppImageSchema, type AppLeaf, AppLeafSchema, type AppOperand, AppOperandSchema, AppRgbSchema, type AppScreenSize, AppScreenSizeSchema, AppSignalSchema, type AppSource, AppSourceSchema, AppSparklineSchema, type AppSpecification, AppSpecificationSchema, AppSpriteSchema, AppStatusSchema, type AppStyleRule, AppStyleRuleSchema, AppTextSchema, type AppTextSize, AppTextSizeSchema, AssetHashSchema, AuthStrategySchema, type Block, BlockSchema, BoardFontSchema, BoardPaletteHexSchema, schema as Bodewell, CLAIMED_DEVICE_TTL_SECONDS, CONTROL_STATES, CONTROL_STATE_MEANINGS, type CaseFamily, CaseFamilySchema, ClockAppConfigSchema, ComponentSchema, type ControlState, DEFAULT_CHAT_MODEL, DEFAULT_DEVICE_CONFIG, DEFAULT_PRO_MODEL, DEFAULT_SCHEMA_MODEL, DEFAULT_THEME_TOKENS, DEVICE_AP_SSID_PREFIX, DEVICE_ENDPOINTS, DEVICE_FEATURES, DEVICE_FEATURE_STATE_LABELS, DEVICE_FRESH_MS, DEVICE_GLYPHS, DEVICE_LABEL_MAX, DEVICE_PALETTE, DEVICE_POLL_QUERY, DEVICE_PROTOCOL, DEVICE_STALE_MS, DEVICE_TIMEZONES, DEVICE_TIMEZONE_FALLBACK, DEVICE_TTL_SECONDS, DEVICE_UNKNOWN_GLYPH, DEVICE_VITALS_FIELDS, DEVICE_VOICE_CLIP, DISPLAY_FACE_MIN_PX, DISPLAY_NAME_MAX, type DeliveredApp, DeliveredAppSchema, type DeviceAppId, DeviceAppIdSchema, DeviceAppsSchema, type DeviceConfig, DeviceConfigSchema, DeviceDisplayConfigSchema, DeviceFeatureKeySchema, type DeviceFeatureState, DeviceFeatureStateSchema, type DeviceFeatures, DeviceFeaturesSchema, type DeviceGlyph, type DeviceId, DeviceIdSchema, type DeviceKind, DeviceKindSchema, type DevicePollReply, DevicePollReplySchema, type DeviceProtocolCall, type DeviceReading, DeviceReadingSchema, type DeviceRecord, DeviceRecordSchema, type DeviceRegistration, DeviceRegistrationSchema, type DeviceReport, DeviceReportSchema, type DeviceSeen, DeviceSeenSchema, type DeviceStatus, DeviceStatusSchema, DeviceThemeSchema, type DeviceTimeZone, type DeviceVitals, DeviceVitalsSchema, type DeviceVoiceReply, DeviceVoiceReplySchema, DisplayNameSchema, EdgeSchema, EmblemSchema, type EntityDefinition, EntitySchema, FIRMWARE_UPDATE_ATTEMPTS, FIRMWARE_UPDATE_PREFIX, FULL_COLOUR_FRAME_MAX, FULL_RENDITION, type FamilyChoice, FamilyChoiceSchema, FamilyOptionSchema, type FieldDefinition, FieldSchema, type FirmwareUpdate, FirmwareUpdateSchema, FlexButtonSchema, type FloraTelemetry, FloraTelemetrySchema, GENESIS_LIBRARY_CONTEXT, GENESIS_VALID_COMPONENTS, type GenesisComponentType, type HardwareManifest, HardwareManifestSchema, ICON_GRID, ICON_SIZE_PX, ICON_STROKE, IMAGE_MAX_DRAWN, IMAGE_MAX_SCALE, INVITE_TTL_SECONDS, InterfaceSchema, type InviteRecord, InviteRecordSchema, MAX_PASSWORD_LENGTH, MIN_PASSWORD_LENGTH, type ManifestComponent, type ManifestEdge, type ManifestEmblem, type ManifestFlexButton, type ManifestInterface, type ManifestMountHoles, type ManifestPlacement, MountHolesSchema, type NewAccessToken, NewAccessTokenSchema, ORIGINAL_MAX_BYTES, ORIGINAL_MAX_SIDE, type OwnedSendRequest, OwnedSendRequestSchema, PANEL_SIZE, PHOTOS_PER_ACCOUNT, PHOTO_UPLOADS_PER_HOUR, PROVIDER_DEFAULT_MODEL, type PageDefinition, PageSchema, type PageSection, PageSectionSchema, type PairCode, PairCodeSchema, type PanelOrientation, PanelOrientationSchema, type PhotoCrop, PhotoCropSchema, PhotoFullSchema, type PhotoSummary, PhotoSummarySchema, type PhotoUpload, PhotoUploadSchema, PlacementSchema, type PrinterProfile, PrinterProfileSchema, type ProviderDefaultModelKey, type ProvisioningState, ProvisioningStateSchema, type PublicAccessToken, PublicAccessTokenSchema, type PublicAccount, PublicAccountSchema, RETRO_RENDITION, type ResourceDefinition, ResourceSchema, SAVED_APPS_MAX, SCRYPT_PARAMS, SESSION_COOKIE_NAME, SESSION_TTL_SECONDS, SHELF_MAX_APPS, SHELF_MAX_BYTES, SHELF_ROTATE_MINUTES, SIGNAL_DOMAINS, SIGNAL_KINDS, SIGNAL_KIND_LABELS, SIGNAL_SOURCES, SMOOTH_FACES, SMOOTH_FONT_ADVANCES, SPRITE_MAX_BASE64, SPRITE_MAX_ROW_BYTES, SPRITE_MAX_SIDE, SPR_FORMAT, SPR_MAX_BYTES, type SavedApp, SavedAppSchema, type SavedAppSummary, type ScryptHash, ScryptHashSchema, type SendRequest, SendRequestSchema, SensorAppConfigSchema, type SessionRecord, SessionRecordSchema, type Shelf, type ShelfEdit, ShelfEditSchema, ShelfSchema, type Signal, type SignalArray, SignalArraySchema, type SignalDefinition, type SignalDomain, type SignalKind, SignalKindSchema, type SignalPacket, SignalPacketSchema, SignalSchema, type SignalSource, SignalSourceSchema, type SmoothFace, THEME_PALETTE_TOKENS, THEME_PRESETS, THEME_RADII, THEME_SYSTEM_PROMPT, type TelemetryGraphParams, type ThemeFonts, ThemeFontsSchema, type ThemeLettering, ThemeLetteringSchema, type ThemeOverrides, ThemeOverridesSchema, type ThemePalette7, ThemePaletteSchema, type ThemePreset, ThemeRgbSchema, type ThemeTokens, ThemeTokensSchema, type ThemeWebFonts, ThemeWebFontsSchema, type ToolCall, type ToolDefinition, TriggerSchema, type User, UserSchema, type VitalSource, VitalSourceSchema, WEATHER_CODES, WEATHER_ICONS, WEATHER_ICON_NAMES, WeatherAppConfigSchema, type WeatherIcon, WebFontFamilySchema, type WorkflowDefinition, WorkflowSchema, telemetryGraphParameters };
63327
+ export { ACCESS_REQUEST_TTL_SECONDS, ACCESS_TOKEN_LIFETIMES_DAYS, ACCESS_TOKEN_MAX_PER_ACCOUNT, ACCESS_TOKEN_PREFIX, ACCESS_TOKEN_RATE_PER_MINUTE, ACCESS_TOKEN_SCOPES, ACCESS_TOKEN_SCOPE_LABELS, ACCOUNT_TTL_SECONDS, type AIKeyManifest, AIKeyManifestSchema, type AITheme, AIThemeSchema, AI_ROSTER, AI_TOOLS, APP_DOCUMENT_EDIT_PREFIX, APP_DOCUMENT_SYSTEM_PROMPT, ASSISTANT_MODEL, ASSISTANT_PROVIDER, type AccessRequest, type AccessRequestRecord, AccessRequestRecordSchema, AccessRequestSchema, type AccessRequestStatus, AccessRequestStatusSchema, type AccessTokenRecord, AccessTokenRecordSchema, type AccessTokenScope, AccessTokenScopeSchema, type AccountId, AccountIdSchema, type AccountRecord, AccountRecordSchema, type AccountRole, AccountRoleSchema, type AccountStatus, AccountStatusSchema, type AccountTheme, AccountThemeSchema, type ActionDefinition, ActionSchema, type AgentRoleConfig, type AgentRoleKey, AircraftAppConfigSchema, type AppAlign, AppAlignSchema, AppBarSchema, type AppBinding, AppBindingSchema, type AppBlock, AppBlockSchema, type AppColor, AppColorSchema, type AppColorToken, AppColorTokenSchema, type AppCompute, AppComputeSchema, type AppCondition, AppConditionSchema, AppDialSchema, type AppDocument, AppDocumentSchema, type AppGroup, AppGroupSchema, type AppIcon, AppIconSchema, type AppImage, AppImageSchema, type AppLeaf, AppLeafSchema, type AppOperand, AppOperandSchema, AppRgbSchema, type AppScreenSize, AppScreenSizeSchema, AppSignalSchema, type AppSource, AppSourceSchema, AppSparklineSchema, type AppSpecification, AppSpecificationSchema, AppSpriteSchema, AppStatusSchema, type AppStyleRule, AppStyleRuleSchema, AppTextSchema, type AppTextSize, AppTextSizeSchema, AssetHashSchema, AuthStrategySchema, BOARD_REMOTE_COMMANDS, BOARD_REMOTE_PENDING_MAX, BOARD_REMOTE_TTL_MS, BOARD_SLEEP_MINUTES, BOARD_SLEEP_MINUTES_DEFAULT, type Block, BlockSchema, BoardFontSchema, BoardPaletteHexSchema, type BoardRemoteCommand, BoardRemoteCommandSchema, type BoardRemotePress, BoardRemotePressSchema, type BoardSleepMinutes, BoardSleepMinutesSchema, schema as Bodewell, CLAIMED_DEVICE_TTL_SECONDS, CONTROL_STATES, CONTROL_STATE_MEANINGS, type CaseFamily, CaseFamilySchema, ClockAppConfigSchema, ComponentSchema, type ControlState, DEFAULT_CHAT_MODEL, DEFAULT_DEVICE_CONFIG, DEFAULT_PRO_MODEL, DEFAULT_SCHEMA_MODEL, DEFAULT_THEME_TOKENS, DEVICE_AP_SSID_PREFIX, DEVICE_ENDPOINTS, DEVICE_FEATURES, DEVICE_FEATURE_STATE_LABELS, DEVICE_FRESH_MS, DEVICE_GLYPHS, DEVICE_LABEL_MAX, DEVICE_PALETTE, DEVICE_POLL_QUERY, DEVICE_PROTOCOL, DEVICE_STALE_MS, DEVICE_TIMEZONES, DEVICE_TIMEZONE_FALLBACK, DEVICE_TTL_SECONDS, DEVICE_UNKNOWN_GLYPH, DEVICE_VITALS_FIELDS, DEVICE_VOICE_CLIP, DISPLAY_FACE_MIN_PX, DISPLAY_NAME_MAX, type DeliveredApp, DeliveredAppSchema, type DeviceAppId, DeviceAppIdSchema, DeviceAppsSchema, type DeviceConfig, DeviceConfigSchema, DeviceDisplayConfigSchema, DeviceFeatureKeySchema, type DeviceFeatureState, DeviceFeatureStateSchema, type DeviceFeatures, DeviceFeaturesSchema, type DeviceGlyph, type DeviceId, DeviceIdSchema, type DeviceKind, DeviceKindSchema, type DevicePollReply, DevicePollReplySchema, type DeviceProtocolCall, type DeviceReading, DeviceReadingSchema, type DeviceRecord, DeviceRecordSchema, type DeviceRegistration, DeviceRegistrationSchema, type DeviceReport, DeviceReportSchema, type DeviceSeen, DeviceSeenSchema, type DeviceStatus, DeviceStatusSchema, DeviceThemeSchema, type DeviceTimeZone, type DeviceVitals, DeviceVitalsSchema, type DeviceVoiceReply, DeviceVoiceReplySchema, DisplayNameSchema, EdgeSchema, EmblemSchema, type EntityDefinition, EntitySchema, FIRMWARE_UPDATE_ATTEMPTS, FIRMWARE_UPDATE_PREFIX, FULL_COLOUR_FRAME_MAX, FULL_RENDITION, type FamilyChoice, FamilyChoiceSchema, FamilyOptionSchema, type FieldDefinition, FieldSchema, type FirmwareUpdate, FirmwareUpdateSchema, FlexButtonSchema, type FloraTelemetry, FloraTelemetrySchema, GENESIS_LIBRARY_CONTEXT, GENESIS_VALID_COMPONENTS, type GenesisComponentType, type HardwareManifest, HardwareManifestSchema, ICON_GRID, ICON_SIZE_PX, ICON_STROKE, IMAGE_MAX_DRAWN, IMAGE_MAX_SCALE, INVITE_TTL_SECONDS, InterfaceSchema, type InviteRecord, InviteRecordSchema, MAX_PASSWORD_LENGTH, MIN_PASSWORD_LENGTH, type ManifestComponent, type ManifestEdge, type ManifestEmblem, type ManifestFlexButton, type ManifestInterface, type ManifestMountHoles, type ManifestPlacement, MountHolesSchema, type NewAccessToken, NewAccessTokenSchema, ORIGINAL_MAX_BYTES, ORIGINAL_MAX_SIDE, type OwnedSendRequest, OwnedSendRequestSchema, PANEL_SIZE, PHOTOS_PER_ACCOUNT, PHOTO_UPLOADS_PER_HOUR, PROVIDER_DEFAULT_MODEL, type PageDefinition, PageSchema, type PageSection, PageSectionSchema, type PairCode, PairCodeSchema, type PanelOrientation, PanelOrientationSchema, type PhotoCrop, PhotoCropSchema, PhotoFullSchema, type PhotoSummary, PhotoSummarySchema, type PhotoUpload, PhotoUploadSchema, PlacementSchema, type PrinterProfile, PrinterProfileSchema, type ProviderDefaultModelKey, type ProvisioningState, ProvisioningStateSchema, type PublicAccessToken, PublicAccessTokenSchema, type PublicAccount, PublicAccountSchema, RETRO_RENDITION, type ResourceDefinition, ResourceSchema, SAVED_APPS_MAX, SCRYPT_PARAMS, SESSION_COOKIE_NAME, SESSION_TTL_SECONDS, SHELF_MAX_APPS, SHELF_MAX_BYTES, SHELF_ROTATE_MINUTES, SIGNAL_DOMAINS, SIGNAL_KINDS, SIGNAL_KIND_LABELS, SIGNAL_SOURCES, SMOOTH_FACES, SMOOTH_FONT_ADVANCES, SPRITE_MAX_BASE64, SPRITE_MAX_ROW_BYTES, SPRITE_MAX_SIDE, SPR_FORMAT, SPR_MAX_BYTES, type SavedApp, SavedAppSchema, type SavedAppSummary, type ScryptHash, ScryptHashSchema, type SendRequest, SendRequestSchema, SensorAppConfigSchema, type SessionRecord, SessionRecordSchema, type Shelf, type ShelfEdit, ShelfEditSchema, ShelfSchema, type Signal, type SignalArray, SignalArraySchema, type SignalDefinition, type SignalDomain, type SignalKind, SignalKindSchema, type SignalPacket, SignalPacketSchema, SignalSchema, type SignalSource, SignalSourceSchema, type SmoothFace, THEME_PALETTE_TOKENS, THEME_PRESETS, THEME_RADII, THEME_SYSTEM_PROMPT, type TelemetryGraphParams, type ThemeFonts, ThemeFontsSchema, type ThemeLettering, ThemeLetteringSchema, type ThemeOverrides, ThemeOverridesSchema, type ThemePalette7, ThemePaletteSchema, type ThemePreset, ThemeRgbSchema, type ThemeTokens, ThemeTokensSchema, type ThemeWebFonts, ThemeWebFontsSchema, type ToolCall, type ToolDefinition, TriggerSchema, type User, UserSchema, type VitalSource, VitalSourceSchema, WEATHER_CODES, WEATHER_ICONS, WEATHER_ICON_NAMES, WeatherAppConfigSchema, type WeatherIcon, WebFontFamilySchema, type WorkflowDefinition, WorkflowSchema, telemetryGraphParameters };
package/dist/index.d.ts CHANGED
@@ -31372,6 +31372,42 @@ declare const ShelfSchema: z.ZodObject<{
31372
31372
  rotateMinutes?: number | undefined;
31373
31373
  added?: number[] | undefined;
31374
31374
  }>;
31375
+ /**
31376
+ * How long a board on battery may be left alone before it sleeps, in minutes,
31377
+ * as its page offers them; 0 is never. Ten until its owner chooses. The
31378
+ * firmware holds the same list (hardware/weather-display/PowerSave.h).
31379
+ */
31380
+ declare const BOARD_SLEEP_MINUTES: readonly [10, 30, 60, 0];
31381
+ declare const BOARD_SLEEP_MINUTES_DEFAULT = 10;
31382
+ declare const BoardSleepMinutesSchema: z.ZodUnion<[z.ZodLiteral<10>, z.ZodLiteral<30>, z.ZodLiteral<60>, z.ZodLiteral<0>]>;
31383
+ type BoardSleepMinutes = z.infer<typeof BoardSleepMinutesSchema>;
31384
+ /**
31385
+ * Presses sent from a board's page: open an app, step through what it plays,
31386
+ * louder or quieter, back to the slides, sleep. Each acts as the tap it
31387
+ * stands for on the glass. A press waits on the board's row for its next
31388
+ * check, which is within half a minute when it was used lately and five
31389
+ * minutes when not. The firmware holds the same names
31390
+ * (hardware/weather-display/Remote.h).
31391
+ */
31392
+ declare const BOARD_REMOTE_COMMANDS: readonly ["podcasts", "radio", "music", "snake", "menu", "settings", "home", "next", "quieter", "louder", "sleep"];
31393
+ declare const BoardRemoteCommandSchema: z.ZodEnum<["podcasts", "radio", "music", "snake", "menu", "settings", "home", "next", "quieter", "louder", "sleep"]>;
31394
+ type BoardRemoteCommand = z.infer<typeof BoardRemoteCommandSchema>;
31395
+ /** Presses kept waiting at once; a further one drops the oldest. */
31396
+ declare const BOARD_REMOTE_PENDING_MAX = 8;
31397
+ /** A press not carried out by then is dropped: a board that was off should not wake to a queue of old ones. */
31398
+ declare const BOARD_REMOTE_TTL_MS: number;
31399
+ /** A press as the board reads it: its number, never reused, and what to do. */
31400
+ declare const BoardRemotePressSchema: z.ZodObject<{
31401
+ n: z.ZodNumber;
31402
+ do: z.ZodEnum<["podcasts", "radio", "music", "snake", "menu", "settings", "home", "next", "quieter", "louder", "sleep"]>;
31403
+ }, "strip", z.ZodTypeAny, {
31404
+ n: number;
31405
+ do: "podcasts" | "radio" | "music" | "snake" | "menu" | "settings" | "home" | "next" | "quieter" | "louder" | "sleep";
31406
+ }, {
31407
+ n: number;
31408
+ do: "podcasts" | "radio" | "music" | "snake" | "menu" | "settings" | "home" | "next" | "quieter" | "louder" | "sleep";
31409
+ }>;
31410
+ type BoardRemotePress = z.infer<typeof BoardRemotePressSchema>;
31375
31411
  /** One change to a board's shelf, from its page. Indexes are positions on the shelf. */
31376
31412
  declare const ShelfEditSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
31377
31413
  op: z.ZodLiteral<"show">;
@@ -31436,6 +31472,30 @@ declare const ShelfEditSchema: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
31436
31472
  deviceId: string;
31437
31473
  op: "screen";
31438
31474
  invert: boolean;
31475
+ }>, z.ZodObject<{
31476
+ op: z.ZodLiteral<"sleep">;
31477
+ deviceId: z.ZodString;
31478
+ minutes: z.ZodUnion<[z.ZodLiteral<10>, z.ZodLiteral<30>, z.ZodLiteral<60>, z.ZodLiteral<0>]>;
31479
+ }, "strip", z.ZodTypeAny, {
31480
+ deviceId: string;
31481
+ minutes: 0 | 10 | 30 | 60;
31482
+ op: "sleep";
31483
+ }, {
31484
+ deviceId: string;
31485
+ minutes: 0 | 10 | 30 | 60;
31486
+ op: "sleep";
31487
+ }>, z.ZodObject<{
31488
+ op: z.ZodLiteral<"remote">;
31489
+ deviceId: z.ZodString;
31490
+ do: z.ZodEnum<["podcasts", "radio", "music", "snake", "menu", "settings", "home", "next", "quieter", "louder", "sleep"]>;
31491
+ }, "strip", z.ZodTypeAny, {
31492
+ deviceId: string;
31493
+ op: "remote";
31494
+ do: "podcasts" | "radio" | "music" | "snake" | "menu" | "settings" | "home" | "next" | "quieter" | "louder" | "sleep";
31495
+ }, {
31496
+ deviceId: string;
31497
+ op: "remote";
31498
+ do: "podcasts" | "radio" | "music" | "snake" | "menu" | "settings" | "home" | "next" | "quieter" | "louder" | "sleep";
31439
31499
  }>, z.ZodObject<{
31440
31500
  op: z.ZodLiteral<"forget">;
31441
31501
  deviceId: z.ZodString;
@@ -40312,6 +40372,16 @@ declare const DEVICE_PROTOCOL: {
40312
40372
  readonly method: "POST";
40313
40373
  readonly path: "/api/device/voice";
40314
40374
  };
40375
+ /**
40376
+ * GET `?id=` → 200 `{ shows: [{ t, e: [{ i, t, m }] }] }`: the newest
40377
+ * episodes of each podcast the board follows, `i` naming one and `m` its
40378
+ * minutes. GET `?id=&ep=<i>` → 302 to that episode's MP3, which the board
40379
+ * plays as it plays a station. 404 for an episode it does not follow.
40380
+ */
40381
+ readonly podcasts: {
40382
+ readonly method: "GET";
40383
+ readonly path: "/api/device/podcasts";
40384
+ };
40315
40385
  };
40316
40386
  /**
40317
40387
  * The clip a board sends to `voice`: a WAV file, 16 kHz, 16-bit, mono — what
@@ -40352,7 +40422,10 @@ declare const DEVICE_POLL_QUERY: {
40352
40422
  readonly rot: "which way it stands, 0–3";
40353
40423
  readonly pl: "the palette it draws in, as 42 hex digits";
40354
40424
  readonly fn: "the lettering it draws in";
40425
+ readonly ha: "the firmware apps it has switched off, ids joined by commas, \"-\" for none";
40355
40426
  readonly bt: "battery millivolts";
40427
+ readonly sl: "minutes left alone on battery before it sleeps, \"0\" for never";
40428
+ readonly rc: "the number of the last press from its page it carried out, \"0\" for none";
40356
40429
  readonly u: "what happened to the last update it was asked to install";
40357
40430
  };
40358
40431
  /** An owner's colours for the board: the seven theme colours as RGB, 42 hex digits. */
@@ -40367,9 +40440,14 @@ declare const BoardFontSchema: z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodEnum<["int
40367
40440
  * `document` to a board that said `sh=1`
40368
40441
  * update a firmware build its owner asked it to install; a board takes
40369
40442
  * it only from FIRMWARE_UPDATE_PREFIX, whatever server it polls
40370
- * screen the panel's light/dark setting
40443
+ * screen the panel's light/dark setting, and how long the board
40444
+ * sleeps after on battery (`sleepMinutes`, absent until chosen)
40371
40445
  * palette its owner's colours
40372
40446
  * font its owner's lettering
40447
+ * hiddenApps the firmware apps its owner switched off, ids joined by
40448
+ * commas, "" for none; the ids are the firmware's own
40449
+ * remote presses from its page it has not carried out, oldest first,
40450
+ * sent only to a board that reports `rc`
40373
40451
  *
40374
40452
  * A reply may carry settings and no app at all (`revision` 0, or a revision
40375
40453
  * the board already has): the board applies them and keeps what it shows.
@@ -56499,21 +56577,40 @@ declare const DevicePollReplySchema: z.ZodObject<{
56499
56577
  }>>;
56500
56578
  screen: z.ZodOptional<z.ZodObject<{
56501
56579
  invert: z.ZodBoolean;
56580
+ sleepMinutes: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<10>, z.ZodLiteral<30>, z.ZodLiteral<60>, z.ZodLiteral<0>]>>;
56502
56581
  }, "strip", z.ZodTypeAny, {
56503
56582
  invert: boolean;
56583
+ sleepMinutes?: 0 | 10 | 30 | 60 | undefined;
56504
56584
  }, {
56505
56585
  invert: boolean;
56586
+ sleepMinutes?: 0 | 10 | 30 | 60 | undefined;
56506
56587
  }>>;
56507
56588
  palette: z.ZodOptional<z.ZodString>;
56508
56589
  font: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodEnum<["inter", "tay", "pixel"]>]>>;
56590
+ hiddenApps: z.ZodOptional<z.ZodString>;
56591
+ remote: z.ZodOptional<z.ZodArray<z.ZodObject<{
56592
+ n: z.ZodNumber;
56593
+ do: z.ZodEnum<["podcasts", "radio", "music", "snake", "menu", "settings", "home", "next", "quieter", "louder", "sleep"]>;
56594
+ }, "strip", z.ZodTypeAny, {
56595
+ n: number;
56596
+ do: "podcasts" | "radio" | "music" | "snake" | "menu" | "settings" | "home" | "next" | "quieter" | "louder" | "sleep";
56597
+ }, {
56598
+ n: number;
56599
+ do: "podcasts" | "radio" | "music" | "snake" | "menu" | "settings" | "home" | "next" | "quieter" | "louder" | "sleep";
56600
+ }>, "many">>;
56509
56601
  }, "strip", z.ZodTypeAny, {
56510
56602
  revision: number;
56511
56603
  palette?: string | undefined;
56512
56604
  screen?: {
56513
56605
  invert: boolean;
56606
+ sleepMinutes?: 0 | 10 | 30 | 60 | undefined;
56514
56607
  } | undefined;
56515
56608
  font?: "inter" | "pixel" | "tay" | "auto" | undefined;
56516
56609
  sentAt?: number | undefined;
56610
+ remote?: {
56611
+ n: number;
56612
+ do: "podcasts" | "radio" | "music" | "snake" | "menu" | "settings" | "home" | "next" | "quieter" | "louder" | "sleep";
56613
+ }[] | undefined;
56517
56614
  document?: {
56518
56615
  id: string;
56519
56616
  name: string;
@@ -57932,14 +58029,20 @@ declare const DevicePollReplySchema: z.ZodObject<{
57932
58029
  sha256: string;
57933
58030
  requestedAt: number;
57934
58031
  } | undefined;
58032
+ hiddenApps?: string | undefined;
57935
58033
  }, {
57936
58034
  revision: number;
57937
58035
  palette?: string | undefined;
57938
58036
  screen?: {
57939
58037
  invert: boolean;
58038
+ sleepMinutes?: 0 | 10 | 30 | 60 | undefined;
57940
58039
  } | undefined;
57941
58040
  font?: "inter" | "pixel" | "tay" | "auto" | undefined;
57942
58041
  sentAt?: number | undefined;
58042
+ remote?: {
58043
+ n: number;
58044
+ do: "podcasts" | "radio" | "music" | "snake" | "menu" | "settings" | "home" | "next" | "quieter" | "louder" | "sleep";
58045
+ }[] | undefined;
57943
58046
  document?: {
57944
58047
  id: string;
57945
58048
  name: string;
@@ -59358,6 +59461,7 @@ declare const DevicePollReplySchema: z.ZodObject<{
59358
59461
  sha256: string;
59359
59462
  requestedAt: number;
59360
59463
  } | undefined;
59464
+ hiddenApps?: string | undefined;
59361
59465
  }>;
59362
59466
  type DevicePollReply = z.infer<typeof DevicePollReplySchema>;
59363
59467
  type DeviceProtocolCall = keyof typeof DEVICE_PROTOCOL;
@@ -63220,4 +63324,4 @@ type AccessTokenRecord = z.infer<typeof AccessTokenRecordSchema>;
63220
63324
  type PublicAccessToken = z.infer<typeof PublicAccessTokenSchema>;
63221
63325
  type NewAccessToken = z.infer<typeof NewAccessTokenSchema>;
63222
63326
 
63223
- export { ACCESS_REQUEST_TTL_SECONDS, ACCESS_TOKEN_LIFETIMES_DAYS, ACCESS_TOKEN_MAX_PER_ACCOUNT, ACCESS_TOKEN_PREFIX, ACCESS_TOKEN_RATE_PER_MINUTE, ACCESS_TOKEN_SCOPES, ACCESS_TOKEN_SCOPE_LABELS, ACCOUNT_TTL_SECONDS, type AIKeyManifest, AIKeyManifestSchema, type AITheme, AIThemeSchema, AI_ROSTER, AI_TOOLS, APP_DOCUMENT_EDIT_PREFIX, APP_DOCUMENT_SYSTEM_PROMPT, ASSISTANT_MODEL, ASSISTANT_PROVIDER, type AccessRequest, type AccessRequestRecord, AccessRequestRecordSchema, AccessRequestSchema, type AccessRequestStatus, AccessRequestStatusSchema, type AccessTokenRecord, AccessTokenRecordSchema, type AccessTokenScope, AccessTokenScopeSchema, type AccountId, AccountIdSchema, type AccountRecord, AccountRecordSchema, type AccountRole, AccountRoleSchema, type AccountStatus, AccountStatusSchema, type AccountTheme, AccountThemeSchema, type ActionDefinition, ActionSchema, type AgentRoleConfig, type AgentRoleKey, AircraftAppConfigSchema, type AppAlign, AppAlignSchema, AppBarSchema, type AppBinding, AppBindingSchema, type AppBlock, AppBlockSchema, type AppColor, AppColorSchema, type AppColorToken, AppColorTokenSchema, type AppCompute, AppComputeSchema, type AppCondition, AppConditionSchema, AppDialSchema, type AppDocument, AppDocumentSchema, type AppGroup, AppGroupSchema, type AppIcon, AppIconSchema, type AppImage, AppImageSchema, type AppLeaf, AppLeafSchema, type AppOperand, AppOperandSchema, AppRgbSchema, type AppScreenSize, AppScreenSizeSchema, AppSignalSchema, type AppSource, AppSourceSchema, AppSparklineSchema, type AppSpecification, AppSpecificationSchema, AppSpriteSchema, AppStatusSchema, type AppStyleRule, AppStyleRuleSchema, AppTextSchema, type AppTextSize, AppTextSizeSchema, AssetHashSchema, AuthStrategySchema, type Block, BlockSchema, BoardFontSchema, BoardPaletteHexSchema, schema as Bodewell, CLAIMED_DEVICE_TTL_SECONDS, CONTROL_STATES, CONTROL_STATE_MEANINGS, type CaseFamily, CaseFamilySchema, ClockAppConfigSchema, ComponentSchema, type ControlState, DEFAULT_CHAT_MODEL, DEFAULT_DEVICE_CONFIG, DEFAULT_PRO_MODEL, DEFAULT_SCHEMA_MODEL, DEFAULT_THEME_TOKENS, DEVICE_AP_SSID_PREFIX, DEVICE_ENDPOINTS, DEVICE_FEATURES, DEVICE_FEATURE_STATE_LABELS, DEVICE_FRESH_MS, DEVICE_GLYPHS, DEVICE_LABEL_MAX, DEVICE_PALETTE, DEVICE_POLL_QUERY, DEVICE_PROTOCOL, DEVICE_STALE_MS, DEVICE_TIMEZONES, DEVICE_TIMEZONE_FALLBACK, DEVICE_TTL_SECONDS, DEVICE_UNKNOWN_GLYPH, DEVICE_VITALS_FIELDS, DEVICE_VOICE_CLIP, DISPLAY_FACE_MIN_PX, DISPLAY_NAME_MAX, type DeliveredApp, DeliveredAppSchema, type DeviceAppId, DeviceAppIdSchema, DeviceAppsSchema, type DeviceConfig, DeviceConfigSchema, DeviceDisplayConfigSchema, DeviceFeatureKeySchema, type DeviceFeatureState, DeviceFeatureStateSchema, type DeviceFeatures, DeviceFeaturesSchema, type DeviceGlyph, type DeviceId, DeviceIdSchema, type DeviceKind, DeviceKindSchema, type DevicePollReply, DevicePollReplySchema, type DeviceProtocolCall, type DeviceReading, DeviceReadingSchema, type DeviceRecord, DeviceRecordSchema, type DeviceRegistration, DeviceRegistrationSchema, type DeviceReport, DeviceReportSchema, type DeviceSeen, DeviceSeenSchema, type DeviceStatus, DeviceStatusSchema, DeviceThemeSchema, type DeviceTimeZone, type DeviceVitals, DeviceVitalsSchema, type DeviceVoiceReply, DeviceVoiceReplySchema, DisplayNameSchema, EdgeSchema, EmblemSchema, type EntityDefinition, EntitySchema, FIRMWARE_UPDATE_ATTEMPTS, FIRMWARE_UPDATE_PREFIX, FULL_COLOUR_FRAME_MAX, FULL_RENDITION, type FamilyChoice, FamilyChoiceSchema, FamilyOptionSchema, type FieldDefinition, FieldSchema, type FirmwareUpdate, FirmwareUpdateSchema, FlexButtonSchema, type FloraTelemetry, FloraTelemetrySchema, GENESIS_LIBRARY_CONTEXT, GENESIS_VALID_COMPONENTS, type GenesisComponentType, type HardwareManifest, HardwareManifestSchema, ICON_GRID, ICON_SIZE_PX, ICON_STROKE, IMAGE_MAX_DRAWN, IMAGE_MAX_SCALE, INVITE_TTL_SECONDS, InterfaceSchema, type InviteRecord, InviteRecordSchema, MAX_PASSWORD_LENGTH, MIN_PASSWORD_LENGTH, type ManifestComponent, type ManifestEdge, type ManifestEmblem, type ManifestFlexButton, type ManifestInterface, type ManifestMountHoles, type ManifestPlacement, MountHolesSchema, type NewAccessToken, NewAccessTokenSchema, ORIGINAL_MAX_BYTES, ORIGINAL_MAX_SIDE, type OwnedSendRequest, OwnedSendRequestSchema, PANEL_SIZE, PHOTOS_PER_ACCOUNT, PHOTO_UPLOADS_PER_HOUR, PROVIDER_DEFAULT_MODEL, type PageDefinition, PageSchema, type PageSection, PageSectionSchema, type PairCode, PairCodeSchema, type PanelOrientation, PanelOrientationSchema, type PhotoCrop, PhotoCropSchema, PhotoFullSchema, type PhotoSummary, PhotoSummarySchema, type PhotoUpload, PhotoUploadSchema, PlacementSchema, type PrinterProfile, PrinterProfileSchema, type ProviderDefaultModelKey, type ProvisioningState, ProvisioningStateSchema, type PublicAccessToken, PublicAccessTokenSchema, type PublicAccount, PublicAccountSchema, RETRO_RENDITION, type ResourceDefinition, ResourceSchema, SAVED_APPS_MAX, SCRYPT_PARAMS, SESSION_COOKIE_NAME, SESSION_TTL_SECONDS, SHELF_MAX_APPS, SHELF_MAX_BYTES, SHELF_ROTATE_MINUTES, SIGNAL_DOMAINS, SIGNAL_KINDS, SIGNAL_KIND_LABELS, SIGNAL_SOURCES, SMOOTH_FACES, SMOOTH_FONT_ADVANCES, SPRITE_MAX_BASE64, SPRITE_MAX_ROW_BYTES, SPRITE_MAX_SIDE, SPR_FORMAT, SPR_MAX_BYTES, type SavedApp, SavedAppSchema, type SavedAppSummary, type ScryptHash, ScryptHashSchema, type SendRequest, SendRequestSchema, SensorAppConfigSchema, type SessionRecord, SessionRecordSchema, type Shelf, type ShelfEdit, ShelfEditSchema, ShelfSchema, type Signal, type SignalArray, SignalArraySchema, type SignalDefinition, type SignalDomain, type SignalKind, SignalKindSchema, type SignalPacket, SignalPacketSchema, SignalSchema, type SignalSource, SignalSourceSchema, type SmoothFace, THEME_PALETTE_TOKENS, THEME_PRESETS, THEME_RADII, THEME_SYSTEM_PROMPT, type TelemetryGraphParams, type ThemeFonts, ThemeFontsSchema, type ThemeLettering, ThemeLetteringSchema, type ThemeOverrides, ThemeOverridesSchema, type ThemePalette7, ThemePaletteSchema, type ThemePreset, ThemeRgbSchema, type ThemeTokens, ThemeTokensSchema, type ThemeWebFonts, ThemeWebFontsSchema, type ToolCall, type ToolDefinition, TriggerSchema, type User, UserSchema, type VitalSource, VitalSourceSchema, WEATHER_CODES, WEATHER_ICONS, WEATHER_ICON_NAMES, WeatherAppConfigSchema, type WeatherIcon, WebFontFamilySchema, type WorkflowDefinition, WorkflowSchema, telemetryGraphParameters };
63327
+ export { ACCESS_REQUEST_TTL_SECONDS, ACCESS_TOKEN_LIFETIMES_DAYS, ACCESS_TOKEN_MAX_PER_ACCOUNT, ACCESS_TOKEN_PREFIX, ACCESS_TOKEN_RATE_PER_MINUTE, ACCESS_TOKEN_SCOPES, ACCESS_TOKEN_SCOPE_LABELS, ACCOUNT_TTL_SECONDS, type AIKeyManifest, AIKeyManifestSchema, type AITheme, AIThemeSchema, AI_ROSTER, AI_TOOLS, APP_DOCUMENT_EDIT_PREFIX, APP_DOCUMENT_SYSTEM_PROMPT, ASSISTANT_MODEL, ASSISTANT_PROVIDER, type AccessRequest, type AccessRequestRecord, AccessRequestRecordSchema, AccessRequestSchema, type AccessRequestStatus, AccessRequestStatusSchema, type AccessTokenRecord, AccessTokenRecordSchema, type AccessTokenScope, AccessTokenScopeSchema, type AccountId, AccountIdSchema, type AccountRecord, AccountRecordSchema, type AccountRole, AccountRoleSchema, type AccountStatus, AccountStatusSchema, type AccountTheme, AccountThemeSchema, type ActionDefinition, ActionSchema, type AgentRoleConfig, type AgentRoleKey, AircraftAppConfigSchema, type AppAlign, AppAlignSchema, AppBarSchema, type AppBinding, AppBindingSchema, type AppBlock, AppBlockSchema, type AppColor, AppColorSchema, type AppColorToken, AppColorTokenSchema, type AppCompute, AppComputeSchema, type AppCondition, AppConditionSchema, AppDialSchema, type AppDocument, AppDocumentSchema, type AppGroup, AppGroupSchema, type AppIcon, AppIconSchema, type AppImage, AppImageSchema, type AppLeaf, AppLeafSchema, type AppOperand, AppOperandSchema, AppRgbSchema, type AppScreenSize, AppScreenSizeSchema, AppSignalSchema, type AppSource, AppSourceSchema, AppSparklineSchema, type AppSpecification, AppSpecificationSchema, AppSpriteSchema, AppStatusSchema, type AppStyleRule, AppStyleRuleSchema, AppTextSchema, type AppTextSize, AppTextSizeSchema, AssetHashSchema, AuthStrategySchema, BOARD_REMOTE_COMMANDS, BOARD_REMOTE_PENDING_MAX, BOARD_REMOTE_TTL_MS, BOARD_SLEEP_MINUTES, BOARD_SLEEP_MINUTES_DEFAULT, type Block, BlockSchema, BoardFontSchema, BoardPaletteHexSchema, type BoardRemoteCommand, BoardRemoteCommandSchema, type BoardRemotePress, BoardRemotePressSchema, type BoardSleepMinutes, BoardSleepMinutesSchema, schema as Bodewell, CLAIMED_DEVICE_TTL_SECONDS, CONTROL_STATES, CONTROL_STATE_MEANINGS, type CaseFamily, CaseFamilySchema, ClockAppConfigSchema, ComponentSchema, type ControlState, DEFAULT_CHAT_MODEL, DEFAULT_DEVICE_CONFIG, DEFAULT_PRO_MODEL, DEFAULT_SCHEMA_MODEL, DEFAULT_THEME_TOKENS, DEVICE_AP_SSID_PREFIX, DEVICE_ENDPOINTS, DEVICE_FEATURES, DEVICE_FEATURE_STATE_LABELS, DEVICE_FRESH_MS, DEVICE_GLYPHS, DEVICE_LABEL_MAX, DEVICE_PALETTE, DEVICE_POLL_QUERY, DEVICE_PROTOCOL, DEVICE_STALE_MS, DEVICE_TIMEZONES, DEVICE_TIMEZONE_FALLBACK, DEVICE_TTL_SECONDS, DEVICE_UNKNOWN_GLYPH, DEVICE_VITALS_FIELDS, DEVICE_VOICE_CLIP, DISPLAY_FACE_MIN_PX, DISPLAY_NAME_MAX, type DeliveredApp, DeliveredAppSchema, type DeviceAppId, DeviceAppIdSchema, DeviceAppsSchema, type DeviceConfig, DeviceConfigSchema, DeviceDisplayConfigSchema, DeviceFeatureKeySchema, type DeviceFeatureState, DeviceFeatureStateSchema, type DeviceFeatures, DeviceFeaturesSchema, type DeviceGlyph, type DeviceId, DeviceIdSchema, type DeviceKind, DeviceKindSchema, type DevicePollReply, DevicePollReplySchema, type DeviceProtocolCall, type DeviceReading, DeviceReadingSchema, type DeviceRecord, DeviceRecordSchema, type DeviceRegistration, DeviceRegistrationSchema, type DeviceReport, DeviceReportSchema, type DeviceSeen, DeviceSeenSchema, type DeviceStatus, DeviceStatusSchema, DeviceThemeSchema, type DeviceTimeZone, type DeviceVitals, DeviceVitalsSchema, type DeviceVoiceReply, DeviceVoiceReplySchema, DisplayNameSchema, EdgeSchema, EmblemSchema, type EntityDefinition, EntitySchema, FIRMWARE_UPDATE_ATTEMPTS, FIRMWARE_UPDATE_PREFIX, FULL_COLOUR_FRAME_MAX, FULL_RENDITION, type FamilyChoice, FamilyChoiceSchema, FamilyOptionSchema, type FieldDefinition, FieldSchema, type FirmwareUpdate, FirmwareUpdateSchema, FlexButtonSchema, type FloraTelemetry, FloraTelemetrySchema, GENESIS_LIBRARY_CONTEXT, GENESIS_VALID_COMPONENTS, type GenesisComponentType, type HardwareManifest, HardwareManifestSchema, ICON_GRID, ICON_SIZE_PX, ICON_STROKE, IMAGE_MAX_DRAWN, IMAGE_MAX_SCALE, INVITE_TTL_SECONDS, InterfaceSchema, type InviteRecord, InviteRecordSchema, MAX_PASSWORD_LENGTH, MIN_PASSWORD_LENGTH, type ManifestComponent, type ManifestEdge, type ManifestEmblem, type ManifestFlexButton, type ManifestInterface, type ManifestMountHoles, type ManifestPlacement, MountHolesSchema, type NewAccessToken, NewAccessTokenSchema, ORIGINAL_MAX_BYTES, ORIGINAL_MAX_SIDE, type OwnedSendRequest, OwnedSendRequestSchema, PANEL_SIZE, PHOTOS_PER_ACCOUNT, PHOTO_UPLOADS_PER_HOUR, PROVIDER_DEFAULT_MODEL, type PageDefinition, PageSchema, type PageSection, PageSectionSchema, type PairCode, PairCodeSchema, type PanelOrientation, PanelOrientationSchema, type PhotoCrop, PhotoCropSchema, PhotoFullSchema, type PhotoSummary, PhotoSummarySchema, type PhotoUpload, PhotoUploadSchema, PlacementSchema, type PrinterProfile, PrinterProfileSchema, type ProviderDefaultModelKey, type ProvisioningState, ProvisioningStateSchema, type PublicAccessToken, PublicAccessTokenSchema, type PublicAccount, PublicAccountSchema, RETRO_RENDITION, type ResourceDefinition, ResourceSchema, SAVED_APPS_MAX, SCRYPT_PARAMS, SESSION_COOKIE_NAME, SESSION_TTL_SECONDS, SHELF_MAX_APPS, SHELF_MAX_BYTES, SHELF_ROTATE_MINUTES, SIGNAL_DOMAINS, SIGNAL_KINDS, SIGNAL_KIND_LABELS, SIGNAL_SOURCES, SMOOTH_FACES, SMOOTH_FONT_ADVANCES, SPRITE_MAX_BASE64, SPRITE_MAX_ROW_BYTES, SPRITE_MAX_SIDE, SPR_FORMAT, SPR_MAX_BYTES, type SavedApp, SavedAppSchema, type SavedAppSummary, type ScryptHash, ScryptHashSchema, type SendRequest, SendRequestSchema, SensorAppConfigSchema, type SessionRecord, SessionRecordSchema, type Shelf, type ShelfEdit, ShelfEditSchema, ShelfSchema, type Signal, type SignalArray, SignalArraySchema, type SignalDefinition, type SignalDomain, type SignalKind, SignalKindSchema, type SignalPacket, SignalPacketSchema, SignalSchema, type SignalSource, SignalSourceSchema, type SmoothFace, THEME_PALETTE_TOKENS, THEME_PRESETS, THEME_RADII, THEME_SYSTEM_PROMPT, type TelemetryGraphParams, type ThemeFonts, ThemeFontsSchema, type ThemeLettering, ThemeLetteringSchema, type ThemeOverrides, ThemeOverridesSchema, type ThemePalette7, ThemePaletteSchema, type ThemePreset, ThemeRgbSchema, type ThemeTokens, ThemeTokensSchema, type ThemeWebFonts, ThemeWebFontsSchema, type ToolCall, type ToolDefinition, TriggerSchema, type User, UserSchema, type VitalSource, VitalSourceSchema, WEATHER_CODES, WEATHER_ICONS, WEATHER_ICON_NAMES, WeatherAppConfigSchema, type WeatherIcon, WebFontFamilySchema, type WorkflowDefinition, WorkflowSchema, telemetryGraphParameters };
package/dist/index.js CHANGED
@@ -1209,6 +1209,26 @@ var ShelfSchema = z10.object({
1209
1209
  */
1210
1210
  added: z10.array(z10.number().int().nonnegative()).max(SHELF_MAX_APPS).optional()
1211
1211
  });
1212
+ var BOARD_SLEEP_MINUTES = [10, 30, 60, 0];
1213
+ var BOARD_SLEEP_MINUTES_DEFAULT = 10;
1214
+ var BoardSleepMinutesSchema = z10.union([z10.literal(10), z10.literal(30), z10.literal(60), z10.literal(0)]);
1215
+ var BOARD_REMOTE_COMMANDS = [
1216
+ "podcasts",
1217
+ "radio",
1218
+ "music",
1219
+ "snake",
1220
+ "menu",
1221
+ "settings",
1222
+ "home",
1223
+ "next",
1224
+ "quieter",
1225
+ "louder",
1226
+ "sleep"
1227
+ ];
1228
+ var BoardRemoteCommandSchema = z10.enum(BOARD_REMOTE_COMMANDS);
1229
+ var BOARD_REMOTE_PENDING_MAX = 8;
1230
+ var BOARD_REMOTE_TTL_MS = 10 * 6e4;
1231
+ var BoardRemotePressSchema = z10.object({ n: z10.number().int().positive(), do: BoardRemoteCommandSchema });
1212
1232
  var ShelfEditSchema = z10.discriminatedUnion("op", [
1213
1233
  z10.object({ op: z10.literal("show"), deviceId: DeviceIdSchema, index: z10.number().int().min(0) }),
1214
1234
  z10.object({ op: z10.literal("remove"), deviceId: DeviceIdSchema, index: z10.number().int().min(0) }),
@@ -1227,6 +1247,14 @@ var ShelfEditSchema = z10.discriminatedUnion("op", [
1227
1247
  * per-board setting rather than a build.
1228
1248
  */
1229
1249
  z10.object({ op: z10.literal("screen"), deviceId: DeviceIdSchema, invert: z10.boolean() }),
1250
+ /**
1251
+ * How long the board may be left alone on its battery before it sleeps,
1252
+ * 0 for never. Beside the panel setting, and for the same reason: it is
1253
+ * about one board, not the apps on it.
1254
+ */
1255
+ z10.object({ op: z10.literal("sleep"), deviceId: DeviceIdSchema, minutes: BoardSleepMinutesSchema }),
1256
+ /** A press from the page's Remote; see BOARD_REMOTE_COMMANDS. */
1257
+ z10.object({ op: z10.literal("remote"), deviceId: DeviceIdSchema, do: BoardRemoteCommandSchema }),
1230
1258
  /**
1231
1259
  * Remove one entry from the list of apps sent to this board, by the revision
1232
1260
  * it was sent as. The record only: what the board holds is the shelf's
@@ -1318,7 +1346,14 @@ var DEVICE_PROTOCOL = {
1318
1346
  * a local model, ramme.io a metered cloud one. The board sends the same clip
1319
1347
  * to either.
1320
1348
  */
1321
- voice: { method: "POST", path: "/api/device/voice" }
1349
+ voice: { method: "POST", path: "/api/device/voice" },
1350
+ /**
1351
+ * GET `?id=` → 200 `{ shows: [{ t, e: [{ i, t, m }] }] }`: the newest
1352
+ * episodes of each podcast the board follows, `i` naming one and `m` its
1353
+ * minutes. GET `?id=&ep=<i>` → 302 to that episode's MP3, which the board
1354
+ * plays as it plays a station. 404 for an episode it does not follow.
1355
+ */
1356
+ podcasts: { method: "GET", path: "/api/device/podcasts" }
1322
1357
  };
1323
1358
  var DEVICE_VOICE_CLIP = {
1324
1359
  contentType: "audio/wav",
@@ -1342,7 +1377,10 @@ var DEVICE_POLL_QUERY = {
1342
1377
  rot: "which way it stands, 0\u20133",
1343
1378
  pl: "the palette it draws in, as 42 hex digits",
1344
1379
  fn: "the lettering it draws in",
1380
+ ha: 'the firmware apps it has switched off, ids joined by commas, "-" for none',
1345
1381
  bt: "battery millivolts",
1382
+ sl: 'minutes left alone on battery before it sleeps, "0" for never',
1383
+ rc: 'the number of the last press from its page it carried out, "0" for none',
1346
1384
  u: "what happened to the last update it was asked to install"
1347
1385
  };
1348
1386
  var BoardPaletteHexSchema = z13.string().regex(/^[0-9a-f]{42}$/);
@@ -1353,9 +1391,11 @@ var DevicePollReplySchema = z13.object({
1353
1391
  document: AppDocumentSchema.optional(),
1354
1392
  shelf: ShelfSchema.optional(),
1355
1393
  update: FirmwareUpdateSchema.optional(),
1356
- screen: z13.object({ invert: z13.boolean() }).optional(),
1394
+ screen: z13.object({ invert: z13.boolean(), sleepMinutes: BoardSleepMinutesSchema.optional() }).optional(),
1357
1395
  palette: BoardPaletteHexSchema.optional(),
1358
- font: BoardFontSchema.optional()
1396
+ font: BoardFontSchema.optional(),
1397
+ hiddenApps: z13.string().regex(/^([a-z]+(,[a-z]+)*)?$/).optional(),
1398
+ remote: z13.array(BoardRemotePressSchema).max(BOARD_REMOTE_PENDING_MAX).optional()
1359
1399
  });
1360
1400
 
1361
1401
  // src/apps/deviceFonts.generated.ts
@@ -2280,9 +2320,17 @@ export {
2280
2320
  AppTextSizeSchema,
2281
2321
  AssetHashSchema,
2282
2322
  AuthStrategySchema,
2323
+ BOARD_REMOTE_COMMANDS,
2324
+ BOARD_REMOTE_PENDING_MAX,
2325
+ BOARD_REMOTE_TTL_MS,
2326
+ BOARD_SLEEP_MINUTES,
2327
+ BOARD_SLEEP_MINUTES_DEFAULT,
2283
2328
  BlockSchema,
2284
2329
  BoardFontSchema,
2285
2330
  BoardPaletteHexSchema,
2331
+ BoardRemoteCommandSchema,
2332
+ BoardRemotePressSchema,
2333
+ BoardSleepMinutesSchema,
2286
2334
  schema_exports as Bodewell,
2287
2335
  CLAIMED_DEVICE_TTL_SECONDS,
2288
2336
  CONTROL_STATES,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ramme-io/shared",
3
- "version": "4.5.0",
3
+ "version": "4.6.0",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "type": "module",