@ramme-io/shared 4.1.0 → 4.3.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 +14 -3
- package/dist/index.d.cts +60 -14
- package/dist/index.d.ts +60 -14
- package/dist/index.js +12 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -219,6 +219,7 @@ __export(index_exports, {
|
|
|
219
219
|
ThemePaletteSchema: () => ThemePaletteSchema,
|
|
220
220
|
ThemeRgbSchema: () => ThemeRgbSchema,
|
|
221
221
|
ThemeTokensSchema: () => ThemeTokensSchema,
|
|
222
|
+
ThemeWebFontsSchema: () => ThemeWebFontsSchema,
|
|
222
223
|
TriggerSchema: () => TriggerSchema,
|
|
223
224
|
UserSchema: () => UserSchema,
|
|
224
225
|
VitalSourceSchema: () => VitalSourceSchema,
|
|
@@ -226,6 +227,7 @@ __export(index_exports, {
|
|
|
226
227
|
WEATHER_ICONS: () => WEATHER_ICONS,
|
|
227
228
|
WEATHER_ICON_NAMES: () => WEATHER_ICON_NAMES,
|
|
228
229
|
WeatherAppConfigSchema: () => WeatherAppConfigSchema,
|
|
230
|
+
WebFontFamilySchema: () => WebFontFamilySchema,
|
|
229
231
|
WorkflowSchema: () => WorkflowSchema,
|
|
230
232
|
telemetryGraphParameters: () => telemetryGraphParameters
|
|
231
233
|
});
|
|
@@ -1491,6 +1493,11 @@ var THEME_PALETTE_TOKENS = [
|
|
|
1491
1493
|
];
|
|
1492
1494
|
var ThemeLetteringSchema = import_zod11.z.enum(["inter", "tay", "pixel"]);
|
|
1493
1495
|
var THEME_RADII = ["0rem", "0.25rem", "0.5rem", "0.75rem", "1rem"];
|
|
1496
|
+
var WebFontFamilySchema = import_zod11.z.string().trim().min(1).max(60).regex(/^[A-Za-z0-9 ]+$/);
|
|
1497
|
+
var ThemeWebFontsSchema = import_zod11.z.object({
|
|
1498
|
+
heading: WebFontFamilySchema.optional(),
|
|
1499
|
+
body: WebFontFamilySchema.optional()
|
|
1500
|
+
});
|
|
1494
1501
|
var AccountThemeSchema = import_zod11.z.object({
|
|
1495
1502
|
name: import_zod11.z.string().trim().min(1).max(40),
|
|
1496
1503
|
/** The preset it started from, when it started from one. */
|
|
@@ -1498,7 +1505,8 @@ var AccountThemeSchema = import_zod11.z.object({
|
|
|
1498
1505
|
light: ThemePaletteSchema,
|
|
1499
1506
|
dark: ThemePaletteSchema,
|
|
1500
1507
|
lettering: ThemeLetteringSchema,
|
|
1501
|
-
radius: import_zod11.z.enum(THEME_RADII)
|
|
1508
|
+
radius: import_zod11.z.enum(THEME_RADII),
|
|
1509
|
+
fonts: ThemeWebFontsSchema.optional()
|
|
1502
1510
|
});
|
|
1503
1511
|
|
|
1504
1512
|
// src/apps/protocol.ts
|
|
@@ -2402,11 +2410,12 @@ var ACCESS_REQUEST_TTL_SECONDS = 60 * 60 * 24 * 90;
|
|
|
2402
2410
|
|
|
2403
2411
|
// src/auth/accessTokens.ts
|
|
2404
2412
|
var import_zod18 = require("zod");
|
|
2405
|
-
var ACCESS_TOKEN_SCOPES = ["boards:read", "boards:send"];
|
|
2413
|
+
var ACCESS_TOKEN_SCOPES = ["boards:read", "boards:send", "boards:configure"];
|
|
2406
2414
|
var AccessTokenScopeSchema = import_zod18.z.enum(ACCESS_TOKEN_SCOPES);
|
|
2407
2415
|
var ACCESS_TOKEN_SCOPE_LABELS = {
|
|
2408
2416
|
"boards:read": "See my boards",
|
|
2409
|
-
"boards:send": "Send apps to my boards"
|
|
2417
|
+
"boards:send": "Send apps to my boards",
|
|
2418
|
+
"boards:configure": "Change my boards\u2019 settings"
|
|
2410
2419
|
};
|
|
2411
2420
|
var ACCESS_TOKEN_PREFIX = "rmk_";
|
|
2412
2421
|
var ACCESS_TOKEN_LIFETIMES_DAYS = [7, 30, 90, 365];
|
|
@@ -2631,6 +2640,7 @@ var NewAccessTokenSchema = import_zod18.z.object({
|
|
|
2631
2640
|
ThemePaletteSchema,
|
|
2632
2641
|
ThemeRgbSchema,
|
|
2633
2642
|
ThemeTokensSchema,
|
|
2643
|
+
ThemeWebFontsSchema,
|
|
2634
2644
|
TriggerSchema,
|
|
2635
2645
|
UserSchema,
|
|
2636
2646
|
VitalSourceSchema,
|
|
@@ -2638,6 +2648,7 @@ var NewAccessTokenSchema = import_zod18.z.object({
|
|
|
2638
2648
|
WEATHER_ICONS,
|
|
2639
2649
|
WEATHER_ICON_NAMES,
|
|
2640
2650
|
WeatherAppConfigSchema,
|
|
2651
|
+
WebFontFamilySchema,
|
|
2641
2652
|
WorkflowSchema,
|
|
2642
2653
|
telemetryGraphParameters
|
|
2643
2654
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -51262,6 +51262,26 @@ declare const THEME_PALETTE_TOKENS: readonly ["background", "foreground", "muted
|
|
|
51262
51262
|
/** The board's typefaces, in the same words as AppDocument's `font`. */
|
|
51263
51263
|
declare const ThemeLetteringSchema: z.ZodEnum<["inter", "tay", "pixel"]>;
|
|
51264
51264
|
declare const THEME_RADII: readonly ["0rem", "0.25rem", "0.5rem", "0.75rem", "1rem"];
|
|
51265
|
+
/**
|
|
51266
|
+
* A Google Fonts family, by name. Letters, digits and spaces are all any
|
|
51267
|
+
* family name uses, and all that may reach the stylesheet URL it loads from.
|
|
51268
|
+
*/
|
|
51269
|
+
declare const WebFontFamilySchema: z.ZodString;
|
|
51270
|
+
/**
|
|
51271
|
+
* The site's typefaces. Web only: a board can draw only the lettering built
|
|
51272
|
+
* into its firmware, so `lettering` still decides what the boards show. Left
|
|
51273
|
+
* out, headings follow the lettering and body text is Roboto.
|
|
51274
|
+
*/
|
|
51275
|
+
declare const ThemeWebFontsSchema: z.ZodObject<{
|
|
51276
|
+
heading: z.ZodOptional<z.ZodString>;
|
|
51277
|
+
body: z.ZodOptional<z.ZodString>;
|
|
51278
|
+
}, "strip", z.ZodTypeAny, {
|
|
51279
|
+
heading?: string | undefined;
|
|
51280
|
+
body?: string | undefined;
|
|
51281
|
+
}, {
|
|
51282
|
+
heading?: string | undefined;
|
|
51283
|
+
body?: string | undefined;
|
|
51284
|
+
}>;
|
|
51265
51285
|
declare const AccountThemeSchema: z.ZodObject<{
|
|
51266
51286
|
name: z.ZodString;
|
|
51267
51287
|
/** The preset it started from, when it started from one. */
|
|
@@ -51324,6 +51344,16 @@ declare const AccountThemeSchema: z.ZodObject<{
|
|
|
51324
51344
|
}>;
|
|
51325
51345
|
lettering: z.ZodEnum<["inter", "tay", "pixel"]>;
|
|
51326
51346
|
radius: z.ZodEnum<["0rem", "0.25rem", "0.5rem", "0.75rem", "1rem"]>;
|
|
51347
|
+
fonts: z.ZodOptional<z.ZodObject<{
|
|
51348
|
+
heading: z.ZodOptional<z.ZodString>;
|
|
51349
|
+
body: z.ZodOptional<z.ZodString>;
|
|
51350
|
+
}, "strip", z.ZodTypeAny, {
|
|
51351
|
+
heading?: string | undefined;
|
|
51352
|
+
body?: string | undefined;
|
|
51353
|
+
}, {
|
|
51354
|
+
heading?: string | undefined;
|
|
51355
|
+
body?: string | undefined;
|
|
51356
|
+
}>>;
|
|
51327
51357
|
}, "strip", z.ZodTypeAny, {
|
|
51328
51358
|
name: string;
|
|
51329
51359
|
light: {
|
|
@@ -51347,6 +51377,10 @@ declare const AccountThemeSchema: z.ZodObject<{
|
|
|
51347
51377
|
lettering: "inter" | "pixel" | "tay";
|
|
51348
51378
|
radius: "0rem" | "0.25rem" | "0.5rem" | "0.75rem" | "1rem";
|
|
51349
51379
|
base?: string | undefined;
|
|
51380
|
+
fonts?: {
|
|
51381
|
+
heading?: string | undefined;
|
|
51382
|
+
body?: string | undefined;
|
|
51383
|
+
} | undefined;
|
|
51350
51384
|
}, {
|
|
51351
51385
|
name: string;
|
|
51352
51386
|
light: {
|
|
@@ -51370,9 +51404,14 @@ declare const AccountThemeSchema: z.ZodObject<{
|
|
|
51370
51404
|
lettering: "inter" | "pixel" | "tay";
|
|
51371
51405
|
radius: "0rem" | "0.25rem" | "0.5rem" | "0.75rem" | "1rem";
|
|
51372
51406
|
base?: string | undefined;
|
|
51407
|
+
fonts?: {
|
|
51408
|
+
heading?: string | undefined;
|
|
51409
|
+
body?: string | undefined;
|
|
51410
|
+
} | undefined;
|
|
51373
51411
|
}>;
|
|
51374
51412
|
type ThemePalette7 = z.infer<typeof ThemePaletteSchema>;
|
|
51375
51413
|
type ThemeLettering = z.infer<typeof ThemeLetteringSchema>;
|
|
51414
|
+
type ThemeWebFonts = z.infer<typeof ThemeWebFontsSchema>;
|
|
51376
51415
|
type AccountTheme = z.infer<typeof AccountThemeSchema>;
|
|
51377
51416
|
|
|
51378
51417
|
/**
|
|
@@ -54296,11 +54335,18 @@ declare const ACCESS_REQUEST_TTL_SECONDS: number;
|
|
|
54296
54335
|
* What a token may do. Each route names the one it needs; a token without it
|
|
54297
54336
|
* is refused, whatever else it can do.
|
|
54298
54337
|
*
|
|
54299
|
-
* boards:read
|
|
54300
|
-
* boards:send
|
|
54338
|
+
* boards:read list your boards and read each one's vitals and history
|
|
54339
|
+
* boards:send send an app to one of your boards
|
|
54340
|
+
* boards:configure rename a board, swap its light and dark, choose which of
|
|
54341
|
+
* its apps is on show and how often they rotate
|
|
54342
|
+
*
|
|
54343
|
+
* What no scope reaches, on purpose: claiming or releasing a board, and
|
|
54344
|
+
* installing firmware. Those stay with the owner on the board's page — new
|
|
54345
|
+
* firmware is new code on a device in somebody's house, and an agent may
|
|
54346
|
+
* suggest it but never press Install.
|
|
54301
54347
|
*/
|
|
54302
|
-
declare const ACCESS_TOKEN_SCOPES: readonly ["boards:read", "boards:send"];
|
|
54303
|
-
declare const AccessTokenScopeSchema: z.ZodEnum<["boards:read", "boards:send"]>;
|
|
54348
|
+
declare const ACCESS_TOKEN_SCOPES: readonly ["boards:read", "boards:send", "boards:configure"];
|
|
54349
|
+
declare const AccessTokenScopeSchema: z.ZodEnum<["boards:read", "boards:send", "boards:configure"]>;
|
|
54304
54350
|
/** What a scope is for, in the words the settings page uses. */
|
|
54305
54351
|
declare const ACCESS_TOKEN_SCOPE_LABELS: Record<z.infer<typeof AccessTokenScopeSchema>, string>;
|
|
54306
54352
|
/**
|
|
@@ -54321,7 +54367,7 @@ declare const AccessTokenRecordSchema: z.ZodObject<{
|
|
|
54321
54367
|
accountId: z.ZodString;
|
|
54322
54368
|
/** What the owner called it: "laptop", "Claude Code". */
|
|
54323
54369
|
name: z.ZodString;
|
|
54324
|
-
scopes: z.ZodArray<z.ZodEnum<["boards:read", "boards:send"]>, "many">;
|
|
54370
|
+
scopes: z.ZodArray<z.ZodEnum<["boards:read", "boards:send", "boards:configure"]>, "many">;
|
|
54325
54371
|
createdAt: z.ZodNumber;
|
|
54326
54372
|
expiresAt: z.ZodNumber;
|
|
54327
54373
|
/** Moved forward at most once a day, so using a token is not a write per request. */
|
|
@@ -54332,7 +54378,7 @@ declare const AccessTokenRecordSchema: z.ZodObject<{
|
|
|
54332
54378
|
accountId: string;
|
|
54333
54379
|
expiresAt: number;
|
|
54334
54380
|
tokenId: string;
|
|
54335
|
-
scopes: ("boards:read" | "boards:send")[];
|
|
54381
|
+
scopes: ("boards:read" | "boards:send" | "boards:configure")[];
|
|
54336
54382
|
lastUsedAt: number | null;
|
|
54337
54383
|
}, {
|
|
54338
54384
|
name: string;
|
|
@@ -54340,7 +54386,7 @@ declare const AccessTokenRecordSchema: z.ZodObject<{
|
|
|
54340
54386
|
accountId: string;
|
|
54341
54387
|
expiresAt: number;
|
|
54342
54388
|
tokenId: string;
|
|
54343
|
-
scopes: ("boards:read" | "boards:send")[];
|
|
54389
|
+
scopes: ("boards:read" | "boards:send" | "boards:configure")[];
|
|
54344
54390
|
lastUsedAt?: number | null | undefined;
|
|
54345
54391
|
}>;
|
|
54346
54392
|
/** What the owner is shown about a token: never the token, never its hash. */
|
|
@@ -54350,7 +54396,7 @@ declare const PublicAccessTokenSchema: z.ZodObject<Omit<{
|
|
|
54350
54396
|
accountId: z.ZodString;
|
|
54351
54397
|
/** What the owner called it: "laptop", "Claude Code". */
|
|
54352
54398
|
name: z.ZodString;
|
|
54353
|
-
scopes: z.ZodArray<z.ZodEnum<["boards:read", "boards:send"]>, "many">;
|
|
54399
|
+
scopes: z.ZodArray<z.ZodEnum<["boards:read", "boards:send", "boards:configure"]>, "many">;
|
|
54354
54400
|
createdAt: z.ZodNumber;
|
|
54355
54401
|
expiresAt: z.ZodNumber;
|
|
54356
54402
|
/** Moved forward at most once a day, so using a token is not a write per request. */
|
|
@@ -54360,28 +54406,28 @@ declare const PublicAccessTokenSchema: z.ZodObject<Omit<{
|
|
|
54360
54406
|
createdAt: number;
|
|
54361
54407
|
expiresAt: number;
|
|
54362
54408
|
tokenId: string;
|
|
54363
|
-
scopes: ("boards:read" | "boards:send")[];
|
|
54409
|
+
scopes: ("boards:read" | "boards:send" | "boards:configure")[];
|
|
54364
54410
|
lastUsedAt: number | null;
|
|
54365
54411
|
}, {
|
|
54366
54412
|
name: string;
|
|
54367
54413
|
createdAt: number;
|
|
54368
54414
|
expiresAt: number;
|
|
54369
54415
|
tokenId: string;
|
|
54370
|
-
scopes: ("boards:read" | "boards:send")[];
|
|
54416
|
+
scopes: ("boards:read" | "boards:send" | "boards:configure")[];
|
|
54371
54417
|
lastUsedAt?: number | null | undefined;
|
|
54372
54418
|
}>;
|
|
54373
54419
|
/** A request to make one. */
|
|
54374
54420
|
declare const NewAccessTokenSchema: z.ZodObject<{
|
|
54375
54421
|
name: z.ZodString;
|
|
54376
|
-
scopes: z.ZodArray<z.ZodEnum<["boards:read", "boards:send"]>, "many">;
|
|
54422
|
+
scopes: z.ZodArray<z.ZodEnum<["boards:read", "boards:send", "boards:configure"]>, "many">;
|
|
54377
54423
|
days: z.ZodUnion<[z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>, z.ZodLiteral<365>]>;
|
|
54378
54424
|
}, "strip", z.ZodTypeAny, {
|
|
54379
54425
|
name: string;
|
|
54380
|
-
scopes: ("boards:read" | "boards:send")[];
|
|
54426
|
+
scopes: ("boards:read" | "boards:send" | "boards:configure")[];
|
|
54381
54427
|
days: 90 | 30 | 7 | 365;
|
|
54382
54428
|
}, {
|
|
54383
54429
|
name: string;
|
|
54384
|
-
scopes: ("boards:read" | "boards:send")[];
|
|
54430
|
+
scopes: ("boards:read" | "boards:send" | "boards:configure")[];
|
|
54385
54431
|
days: 90 | 30 | 7 | 365;
|
|
54386
54432
|
}>;
|
|
54387
54433
|
type AccessTokenScope = z.infer<typeof AccessTokenScopeSchema>;
|
|
@@ -54389,4 +54435,4 @@ type AccessTokenRecord = z.infer<typeof AccessTokenRecordSchema>;
|
|
|
54389
54435
|
type PublicAccessToken = z.infer<typeof PublicAccessTokenSchema>;
|
|
54390
54436
|
type NewAccessToken = z.infer<typeof NewAccessTokenSchema>;
|
|
54391
54437
|
|
|
54392
|
-
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, 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 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 ToolCall, type ToolDefinition, TriggerSchema, type User, UserSchema, type VitalSource, VitalSourceSchema, WEATHER_CODES, WEATHER_ICONS, WEATHER_ICON_NAMES, WeatherAppConfigSchema, type WeatherIcon, type WorkflowDefinition, WorkflowSchema, telemetryGraphParameters };
|
|
54438
|
+
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, 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 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
|
@@ -51262,6 +51262,26 @@ declare const THEME_PALETTE_TOKENS: readonly ["background", "foreground", "muted
|
|
|
51262
51262
|
/** The board's typefaces, in the same words as AppDocument's `font`. */
|
|
51263
51263
|
declare const ThemeLetteringSchema: z.ZodEnum<["inter", "tay", "pixel"]>;
|
|
51264
51264
|
declare const THEME_RADII: readonly ["0rem", "0.25rem", "0.5rem", "0.75rem", "1rem"];
|
|
51265
|
+
/**
|
|
51266
|
+
* A Google Fonts family, by name. Letters, digits and spaces are all any
|
|
51267
|
+
* family name uses, and all that may reach the stylesheet URL it loads from.
|
|
51268
|
+
*/
|
|
51269
|
+
declare const WebFontFamilySchema: z.ZodString;
|
|
51270
|
+
/**
|
|
51271
|
+
* The site's typefaces. Web only: a board can draw only the lettering built
|
|
51272
|
+
* into its firmware, so `lettering` still decides what the boards show. Left
|
|
51273
|
+
* out, headings follow the lettering and body text is Roboto.
|
|
51274
|
+
*/
|
|
51275
|
+
declare const ThemeWebFontsSchema: z.ZodObject<{
|
|
51276
|
+
heading: z.ZodOptional<z.ZodString>;
|
|
51277
|
+
body: z.ZodOptional<z.ZodString>;
|
|
51278
|
+
}, "strip", z.ZodTypeAny, {
|
|
51279
|
+
heading?: string | undefined;
|
|
51280
|
+
body?: string | undefined;
|
|
51281
|
+
}, {
|
|
51282
|
+
heading?: string | undefined;
|
|
51283
|
+
body?: string | undefined;
|
|
51284
|
+
}>;
|
|
51265
51285
|
declare const AccountThemeSchema: z.ZodObject<{
|
|
51266
51286
|
name: z.ZodString;
|
|
51267
51287
|
/** The preset it started from, when it started from one. */
|
|
@@ -51324,6 +51344,16 @@ declare const AccountThemeSchema: z.ZodObject<{
|
|
|
51324
51344
|
}>;
|
|
51325
51345
|
lettering: z.ZodEnum<["inter", "tay", "pixel"]>;
|
|
51326
51346
|
radius: z.ZodEnum<["0rem", "0.25rem", "0.5rem", "0.75rem", "1rem"]>;
|
|
51347
|
+
fonts: z.ZodOptional<z.ZodObject<{
|
|
51348
|
+
heading: z.ZodOptional<z.ZodString>;
|
|
51349
|
+
body: z.ZodOptional<z.ZodString>;
|
|
51350
|
+
}, "strip", z.ZodTypeAny, {
|
|
51351
|
+
heading?: string | undefined;
|
|
51352
|
+
body?: string | undefined;
|
|
51353
|
+
}, {
|
|
51354
|
+
heading?: string | undefined;
|
|
51355
|
+
body?: string | undefined;
|
|
51356
|
+
}>>;
|
|
51327
51357
|
}, "strip", z.ZodTypeAny, {
|
|
51328
51358
|
name: string;
|
|
51329
51359
|
light: {
|
|
@@ -51347,6 +51377,10 @@ declare const AccountThemeSchema: z.ZodObject<{
|
|
|
51347
51377
|
lettering: "inter" | "pixel" | "tay";
|
|
51348
51378
|
radius: "0rem" | "0.25rem" | "0.5rem" | "0.75rem" | "1rem";
|
|
51349
51379
|
base?: string | undefined;
|
|
51380
|
+
fonts?: {
|
|
51381
|
+
heading?: string | undefined;
|
|
51382
|
+
body?: string | undefined;
|
|
51383
|
+
} | undefined;
|
|
51350
51384
|
}, {
|
|
51351
51385
|
name: string;
|
|
51352
51386
|
light: {
|
|
@@ -51370,9 +51404,14 @@ declare const AccountThemeSchema: z.ZodObject<{
|
|
|
51370
51404
|
lettering: "inter" | "pixel" | "tay";
|
|
51371
51405
|
radius: "0rem" | "0.25rem" | "0.5rem" | "0.75rem" | "1rem";
|
|
51372
51406
|
base?: string | undefined;
|
|
51407
|
+
fonts?: {
|
|
51408
|
+
heading?: string | undefined;
|
|
51409
|
+
body?: string | undefined;
|
|
51410
|
+
} | undefined;
|
|
51373
51411
|
}>;
|
|
51374
51412
|
type ThemePalette7 = z.infer<typeof ThemePaletteSchema>;
|
|
51375
51413
|
type ThemeLettering = z.infer<typeof ThemeLetteringSchema>;
|
|
51414
|
+
type ThemeWebFonts = z.infer<typeof ThemeWebFontsSchema>;
|
|
51376
51415
|
type AccountTheme = z.infer<typeof AccountThemeSchema>;
|
|
51377
51416
|
|
|
51378
51417
|
/**
|
|
@@ -54296,11 +54335,18 @@ declare const ACCESS_REQUEST_TTL_SECONDS: number;
|
|
|
54296
54335
|
* What a token may do. Each route names the one it needs; a token without it
|
|
54297
54336
|
* is refused, whatever else it can do.
|
|
54298
54337
|
*
|
|
54299
|
-
* boards:read
|
|
54300
|
-
* boards:send
|
|
54338
|
+
* boards:read list your boards and read each one's vitals and history
|
|
54339
|
+
* boards:send send an app to one of your boards
|
|
54340
|
+
* boards:configure rename a board, swap its light and dark, choose which of
|
|
54341
|
+
* its apps is on show and how often they rotate
|
|
54342
|
+
*
|
|
54343
|
+
* What no scope reaches, on purpose: claiming or releasing a board, and
|
|
54344
|
+
* installing firmware. Those stay with the owner on the board's page — new
|
|
54345
|
+
* firmware is new code on a device in somebody's house, and an agent may
|
|
54346
|
+
* suggest it but never press Install.
|
|
54301
54347
|
*/
|
|
54302
|
-
declare const ACCESS_TOKEN_SCOPES: readonly ["boards:read", "boards:send"];
|
|
54303
|
-
declare const AccessTokenScopeSchema: z.ZodEnum<["boards:read", "boards:send"]>;
|
|
54348
|
+
declare const ACCESS_TOKEN_SCOPES: readonly ["boards:read", "boards:send", "boards:configure"];
|
|
54349
|
+
declare const AccessTokenScopeSchema: z.ZodEnum<["boards:read", "boards:send", "boards:configure"]>;
|
|
54304
54350
|
/** What a scope is for, in the words the settings page uses. */
|
|
54305
54351
|
declare const ACCESS_TOKEN_SCOPE_LABELS: Record<z.infer<typeof AccessTokenScopeSchema>, string>;
|
|
54306
54352
|
/**
|
|
@@ -54321,7 +54367,7 @@ declare const AccessTokenRecordSchema: z.ZodObject<{
|
|
|
54321
54367
|
accountId: z.ZodString;
|
|
54322
54368
|
/** What the owner called it: "laptop", "Claude Code". */
|
|
54323
54369
|
name: z.ZodString;
|
|
54324
|
-
scopes: z.ZodArray<z.ZodEnum<["boards:read", "boards:send"]>, "many">;
|
|
54370
|
+
scopes: z.ZodArray<z.ZodEnum<["boards:read", "boards:send", "boards:configure"]>, "many">;
|
|
54325
54371
|
createdAt: z.ZodNumber;
|
|
54326
54372
|
expiresAt: z.ZodNumber;
|
|
54327
54373
|
/** Moved forward at most once a day, so using a token is not a write per request. */
|
|
@@ -54332,7 +54378,7 @@ declare const AccessTokenRecordSchema: z.ZodObject<{
|
|
|
54332
54378
|
accountId: string;
|
|
54333
54379
|
expiresAt: number;
|
|
54334
54380
|
tokenId: string;
|
|
54335
|
-
scopes: ("boards:read" | "boards:send")[];
|
|
54381
|
+
scopes: ("boards:read" | "boards:send" | "boards:configure")[];
|
|
54336
54382
|
lastUsedAt: number | null;
|
|
54337
54383
|
}, {
|
|
54338
54384
|
name: string;
|
|
@@ -54340,7 +54386,7 @@ declare const AccessTokenRecordSchema: z.ZodObject<{
|
|
|
54340
54386
|
accountId: string;
|
|
54341
54387
|
expiresAt: number;
|
|
54342
54388
|
tokenId: string;
|
|
54343
|
-
scopes: ("boards:read" | "boards:send")[];
|
|
54389
|
+
scopes: ("boards:read" | "boards:send" | "boards:configure")[];
|
|
54344
54390
|
lastUsedAt?: number | null | undefined;
|
|
54345
54391
|
}>;
|
|
54346
54392
|
/** What the owner is shown about a token: never the token, never its hash. */
|
|
@@ -54350,7 +54396,7 @@ declare const PublicAccessTokenSchema: z.ZodObject<Omit<{
|
|
|
54350
54396
|
accountId: z.ZodString;
|
|
54351
54397
|
/** What the owner called it: "laptop", "Claude Code". */
|
|
54352
54398
|
name: z.ZodString;
|
|
54353
|
-
scopes: z.ZodArray<z.ZodEnum<["boards:read", "boards:send"]>, "many">;
|
|
54399
|
+
scopes: z.ZodArray<z.ZodEnum<["boards:read", "boards:send", "boards:configure"]>, "many">;
|
|
54354
54400
|
createdAt: z.ZodNumber;
|
|
54355
54401
|
expiresAt: z.ZodNumber;
|
|
54356
54402
|
/** Moved forward at most once a day, so using a token is not a write per request. */
|
|
@@ -54360,28 +54406,28 @@ declare const PublicAccessTokenSchema: z.ZodObject<Omit<{
|
|
|
54360
54406
|
createdAt: number;
|
|
54361
54407
|
expiresAt: number;
|
|
54362
54408
|
tokenId: string;
|
|
54363
|
-
scopes: ("boards:read" | "boards:send")[];
|
|
54409
|
+
scopes: ("boards:read" | "boards:send" | "boards:configure")[];
|
|
54364
54410
|
lastUsedAt: number | null;
|
|
54365
54411
|
}, {
|
|
54366
54412
|
name: string;
|
|
54367
54413
|
createdAt: number;
|
|
54368
54414
|
expiresAt: number;
|
|
54369
54415
|
tokenId: string;
|
|
54370
|
-
scopes: ("boards:read" | "boards:send")[];
|
|
54416
|
+
scopes: ("boards:read" | "boards:send" | "boards:configure")[];
|
|
54371
54417
|
lastUsedAt?: number | null | undefined;
|
|
54372
54418
|
}>;
|
|
54373
54419
|
/** A request to make one. */
|
|
54374
54420
|
declare const NewAccessTokenSchema: z.ZodObject<{
|
|
54375
54421
|
name: z.ZodString;
|
|
54376
|
-
scopes: z.ZodArray<z.ZodEnum<["boards:read", "boards:send"]>, "many">;
|
|
54422
|
+
scopes: z.ZodArray<z.ZodEnum<["boards:read", "boards:send", "boards:configure"]>, "many">;
|
|
54377
54423
|
days: z.ZodUnion<[z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>, z.ZodLiteral<365>]>;
|
|
54378
54424
|
}, "strip", z.ZodTypeAny, {
|
|
54379
54425
|
name: string;
|
|
54380
|
-
scopes: ("boards:read" | "boards:send")[];
|
|
54426
|
+
scopes: ("boards:read" | "boards:send" | "boards:configure")[];
|
|
54381
54427
|
days: 90 | 30 | 7 | 365;
|
|
54382
54428
|
}, {
|
|
54383
54429
|
name: string;
|
|
54384
|
-
scopes: ("boards:read" | "boards:send")[];
|
|
54430
|
+
scopes: ("boards:read" | "boards:send" | "boards:configure")[];
|
|
54385
54431
|
days: 90 | 30 | 7 | 365;
|
|
54386
54432
|
}>;
|
|
54387
54433
|
type AccessTokenScope = z.infer<typeof AccessTokenScopeSchema>;
|
|
@@ -54389,4 +54435,4 @@ type AccessTokenRecord = z.infer<typeof AccessTokenRecordSchema>;
|
|
|
54389
54435
|
type PublicAccessToken = z.infer<typeof PublicAccessTokenSchema>;
|
|
54390
54436
|
type NewAccessToken = z.infer<typeof NewAccessTokenSchema>;
|
|
54391
54437
|
|
|
54392
|
-
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, 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 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 ToolCall, type ToolDefinition, TriggerSchema, type User, UserSchema, type VitalSource, VitalSourceSchema, WEATHER_CODES, WEATHER_ICONS, WEATHER_ICON_NAMES, WeatherAppConfigSchema, type WeatherIcon, type WorkflowDefinition, WorkflowSchema, telemetryGraphParameters };
|
|
54438
|
+
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, 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 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
|
@@ -1264,6 +1264,11 @@ var THEME_PALETTE_TOKENS = [
|
|
|
1264
1264
|
];
|
|
1265
1265
|
var ThemeLetteringSchema = z11.enum(["inter", "tay", "pixel"]);
|
|
1266
1266
|
var THEME_RADII = ["0rem", "0.25rem", "0.5rem", "0.75rem", "1rem"];
|
|
1267
|
+
var WebFontFamilySchema = z11.string().trim().min(1).max(60).regex(/^[A-Za-z0-9 ]+$/);
|
|
1268
|
+
var ThemeWebFontsSchema = z11.object({
|
|
1269
|
+
heading: WebFontFamilySchema.optional(),
|
|
1270
|
+
body: WebFontFamilySchema.optional()
|
|
1271
|
+
});
|
|
1267
1272
|
var AccountThemeSchema = z11.object({
|
|
1268
1273
|
name: z11.string().trim().min(1).max(40),
|
|
1269
1274
|
/** The preset it started from, when it started from one. */
|
|
@@ -1271,7 +1276,8 @@ var AccountThemeSchema = z11.object({
|
|
|
1271
1276
|
light: ThemePaletteSchema,
|
|
1272
1277
|
dark: ThemePaletteSchema,
|
|
1273
1278
|
lettering: ThemeLetteringSchema,
|
|
1274
|
-
radius: z11.enum(THEME_RADII)
|
|
1279
|
+
radius: z11.enum(THEME_RADII),
|
|
1280
|
+
fonts: ThemeWebFontsSchema.optional()
|
|
1275
1281
|
});
|
|
1276
1282
|
|
|
1277
1283
|
// src/apps/protocol.ts
|
|
@@ -2175,11 +2181,12 @@ var ACCESS_REQUEST_TTL_SECONDS = 60 * 60 * 24 * 90;
|
|
|
2175
2181
|
|
|
2176
2182
|
// src/auth/accessTokens.ts
|
|
2177
2183
|
import { z as z18 } from "zod";
|
|
2178
|
-
var ACCESS_TOKEN_SCOPES = ["boards:read", "boards:send"];
|
|
2184
|
+
var ACCESS_TOKEN_SCOPES = ["boards:read", "boards:send", "boards:configure"];
|
|
2179
2185
|
var AccessTokenScopeSchema = z18.enum(ACCESS_TOKEN_SCOPES);
|
|
2180
2186
|
var ACCESS_TOKEN_SCOPE_LABELS = {
|
|
2181
2187
|
"boards:read": "See my boards",
|
|
2182
|
-
"boards:send": "Send apps to my boards"
|
|
2188
|
+
"boards:send": "Send apps to my boards",
|
|
2189
|
+
"boards:configure": "Change my boards\u2019 settings"
|
|
2183
2190
|
};
|
|
2184
2191
|
var ACCESS_TOKEN_PREFIX = "rmk_";
|
|
2185
2192
|
var ACCESS_TOKEN_LIFETIMES_DAYS = [7, 30, 90, 365];
|
|
@@ -2403,6 +2410,7 @@ export {
|
|
|
2403
2410
|
ThemePaletteSchema,
|
|
2404
2411
|
ThemeRgbSchema,
|
|
2405
2412
|
ThemeTokensSchema,
|
|
2413
|
+
ThemeWebFontsSchema,
|
|
2406
2414
|
TriggerSchema,
|
|
2407
2415
|
UserSchema,
|
|
2408
2416
|
VitalSourceSchema,
|
|
@@ -2410,6 +2418,7 @@ export {
|
|
|
2410
2418
|
WEATHER_ICONS,
|
|
2411
2419
|
WEATHER_ICON_NAMES,
|
|
2412
2420
|
WeatherAppConfigSchema,
|
|
2421
|
+
WebFontFamilySchema,
|
|
2413
2422
|
WorkflowSchema,
|
|
2414
2423
|
telemetryGraphParameters
|
|
2415
2424
|
};
|