@ramme-io/shared 4.2.0 → 4.4.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 +15 -3
- package/dist/index.d.cts +48 -9
- package/dist/index.d.ts +48 -9
- package/dist/index.js +13 -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
|
});
|
|
@@ -349,7 +351,7 @@ var AppSpecificationSchema = import_zod.z.object({
|
|
|
349
351
|
createdAt: import_zod.z.string().optional()
|
|
350
352
|
}),
|
|
351
353
|
config: import_zod.z.object({
|
|
352
|
-
theme: import_zod.z.enum(["light", "dark", "system", "corporate", "midnight", "blueprint"]).default("system"),
|
|
354
|
+
theme: import_zod.z.enum(["light", "dark", "system", "corporate", "midnight", "blueprint", "markets"]).default("system"),
|
|
353
355
|
layout: import_zod.z.enum(["dashboard", "explorer", "studio", "focus"]).default("dashboard"),
|
|
354
356
|
mockMode: import_zod.z.boolean().default(true),
|
|
355
357
|
brokerUrl: import_zod.z.string().optional(),
|
|
@@ -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
|
|
@@ -1756,6 +1764,7 @@ Your goal is to design a complete software solution: Data, Logic, and Interface.
|
|
|
1756
1764
|
- 'corporate' \u2192 finance, HR, professional services (green/amber)
|
|
1757
1765
|
- 'midnight' \u2192 analytics, creative tools, AI apps (indigo/purple)
|
|
1758
1766
|
- 'blueprint' \u2192 engineering, technical, IoT, infrastructure (blue/sharp)
|
|
1767
|
+
- 'markets' \u2192 trading, portfolios, prices, credit (black/blue, green up, orange down)
|
|
1759
1768
|
- 'system' \u2192 follow OS preference (default if unsure)
|
|
1760
1769
|
- Only populate 'themeOverrides' when the user explicitly asks for a custom color.
|
|
1761
1770
|
|
|
@@ -1776,6 +1785,7 @@ the user changes from 'light' to 'dark' or 'midnight'. Raw colors BREAK this.
|
|
|
1776
1785
|
ring-ring \u2192 focus rings on inputs and interactive elements
|
|
1777
1786
|
bg-success \u2192 positive status indicators
|
|
1778
1787
|
bg-warning \u2192 caution/warning indicators
|
|
1788
|
+
text-gain-strong / text-loss-strong \u2192 a price or figure moving up / down (never success/destructive)
|
|
1779
1789
|
bg-destructive \u2192 error/danger indicators
|
|
1780
1790
|
|
|
1781
1791
|
\u274C BANNED \u2014 Never use these raw Tailwind palette classes:
|
|
@@ -2016,7 +2026,7 @@ var AIThemeSchema = import_zod14.z.object({
|
|
|
2016
2026
|
*/
|
|
2017
2027
|
cssVars: ThemeOverridesSchema
|
|
2018
2028
|
});
|
|
2019
|
-
var THEME_PRESETS = ["light", "dark", "system", "corporate", "midnight", "blueprint"];
|
|
2029
|
+
var THEME_PRESETS = ["light", "dark", "system", "corporate", "midnight", "blueprint", "markets"];
|
|
2020
2030
|
var ThemeTokensSchema = import_zod14.z.object({
|
|
2021
2031
|
primary: RGBString,
|
|
2022
2032
|
neutral: RGBString,
|
|
@@ -2632,6 +2642,7 @@ var NewAccessTokenSchema = import_zod18.z.object({
|
|
|
2632
2642
|
ThemePaletteSchema,
|
|
2633
2643
|
ThemeRgbSchema,
|
|
2634
2644
|
ThemeTokensSchema,
|
|
2645
|
+
ThemeWebFontsSchema,
|
|
2635
2646
|
TriggerSchema,
|
|
2636
2647
|
UserSchema,
|
|
2637
2648
|
VitalSourceSchema,
|
|
@@ -2639,6 +2650,7 @@ var NewAccessTokenSchema = import_zod18.z.object({
|
|
|
2639
2650
|
WEATHER_ICONS,
|
|
2640
2651
|
WEATHER_ICON_NAMES,
|
|
2641
2652
|
WeatherAppConfigSchema,
|
|
2653
|
+
WebFontFamilySchema,
|
|
2642
2654
|
WorkflowSchema,
|
|
2643
2655
|
telemetryGraphParameters
|
|
2644
2656
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -591,7 +591,7 @@ declare const AppSpecificationSchema: z.ZodObject<{
|
|
|
591
591
|
createdAt?: string | undefined;
|
|
592
592
|
}>;
|
|
593
593
|
config: z.ZodObject<{
|
|
594
|
-
theme: z.ZodDefault<z.ZodEnum<["light", "dark", "system", "corporate", "midnight", "blueprint"]>>;
|
|
594
|
+
theme: z.ZodDefault<z.ZodEnum<["light", "dark", "system", "corporate", "midnight", "blueprint", "markets"]>>;
|
|
595
595
|
layout: z.ZodDefault<z.ZodEnum<["dashboard", "explorer", "studio", "focus"]>>;
|
|
596
596
|
mockMode: z.ZodDefault<z.ZodBoolean>;
|
|
597
597
|
brokerUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -607,7 +607,7 @@ declare const AppSpecificationSchema: z.ZodObject<{
|
|
|
607
607
|
}>>;
|
|
608
608
|
}, "strip", z.ZodTypeAny, {
|
|
609
609
|
layout: "dashboard" | "explorer" | "studio" | "focus";
|
|
610
|
-
theme: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint";
|
|
610
|
+
theme: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint" | "markets";
|
|
611
611
|
mockMode: boolean;
|
|
612
612
|
brokerUrl?: string | undefined;
|
|
613
613
|
aiKeyManifest?: {
|
|
@@ -616,7 +616,7 @@ declare const AppSpecificationSchema: z.ZodObject<{
|
|
|
616
616
|
} | undefined;
|
|
617
617
|
}, {
|
|
618
618
|
layout?: "dashboard" | "explorer" | "studio" | "focus" | undefined;
|
|
619
|
-
theme?: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint" | undefined;
|
|
619
|
+
theme?: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint" | "markets" | undefined;
|
|
620
620
|
mockMode?: boolean | undefined;
|
|
621
621
|
brokerUrl?: string | undefined;
|
|
622
622
|
aiKeyManifest?: {
|
|
@@ -1084,7 +1084,7 @@ declare const AppSpecificationSchema: z.ZodObject<{
|
|
|
1084
1084
|
}, "strip", z.ZodTypeAny, {
|
|
1085
1085
|
config: {
|
|
1086
1086
|
layout: "dashboard" | "explorer" | "studio" | "focus";
|
|
1087
|
-
theme: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint";
|
|
1087
|
+
theme: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint" | "markets";
|
|
1088
1088
|
mockMode: boolean;
|
|
1089
1089
|
brokerUrl?: string | undefined;
|
|
1090
1090
|
aiKeyManifest?: {
|
|
@@ -1193,7 +1193,7 @@ declare const AppSpecificationSchema: z.ZodObject<{
|
|
|
1193
1193
|
}, {
|
|
1194
1194
|
config: {
|
|
1195
1195
|
layout?: "dashboard" | "explorer" | "studio" | "focus" | undefined;
|
|
1196
|
-
theme?: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint" | undefined;
|
|
1196
|
+
theme?: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint" | "markets" | undefined;
|
|
1197
1197
|
mockMode?: boolean | undefined;
|
|
1198
1198
|
brokerUrl?: string | undefined;
|
|
1199
1199
|
aiKeyManifest?: {
|
|
@@ -51170,7 +51170,7 @@ declare const AIThemeSchema: z.ZodObject<{
|
|
|
51170
51170
|
}>;
|
|
51171
51171
|
type AITheme = z.infer<typeof AIThemeSchema>;
|
|
51172
51172
|
/** All built-in theme preset CSS class names. */
|
|
51173
|
-
declare const THEME_PRESETS: readonly ["light", "dark", "system", "corporate", "midnight", "blueprint"];
|
|
51173
|
+
declare const THEME_PRESETS: readonly ["light", "dark", "system", "corporate", "midnight", "blueprint", "markets"];
|
|
51174
51174
|
type ThemePreset = typeof THEME_PRESETS[number];
|
|
51175
51175
|
/**
|
|
51176
51176
|
* ThemeTokensSchema — the 5-token palette + radius contract for the Settings
|
|
@@ -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
|
/**
|
|
@@ -54385,15 +54424,15 @@ declare const NewAccessTokenSchema: z.ZodObject<{
|
|
|
54385
54424
|
}, "strip", z.ZodTypeAny, {
|
|
54386
54425
|
name: string;
|
|
54387
54426
|
scopes: ("boards:read" | "boards:send" | "boards:configure")[];
|
|
54388
|
-
days:
|
|
54427
|
+
days: 7 | 90 | 30 | 365;
|
|
54389
54428
|
}, {
|
|
54390
54429
|
name: string;
|
|
54391
54430
|
scopes: ("boards:read" | "boards:send" | "boards:configure")[];
|
|
54392
|
-
days:
|
|
54431
|
+
days: 7 | 90 | 30 | 365;
|
|
54393
54432
|
}>;
|
|
54394
54433
|
type AccessTokenScope = z.infer<typeof AccessTokenScopeSchema>;
|
|
54395
54434
|
type AccessTokenRecord = z.infer<typeof AccessTokenRecordSchema>;
|
|
54396
54435
|
type PublicAccessToken = z.infer<typeof PublicAccessTokenSchema>;
|
|
54397
54436
|
type NewAccessToken = z.infer<typeof NewAccessTokenSchema>;
|
|
54398
54437
|
|
|
54399
|
-
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
|
@@ -591,7 +591,7 @@ declare const AppSpecificationSchema: z.ZodObject<{
|
|
|
591
591
|
createdAt?: string | undefined;
|
|
592
592
|
}>;
|
|
593
593
|
config: z.ZodObject<{
|
|
594
|
-
theme: z.ZodDefault<z.ZodEnum<["light", "dark", "system", "corporate", "midnight", "blueprint"]>>;
|
|
594
|
+
theme: z.ZodDefault<z.ZodEnum<["light", "dark", "system", "corporate", "midnight", "blueprint", "markets"]>>;
|
|
595
595
|
layout: z.ZodDefault<z.ZodEnum<["dashboard", "explorer", "studio", "focus"]>>;
|
|
596
596
|
mockMode: z.ZodDefault<z.ZodBoolean>;
|
|
597
597
|
brokerUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -607,7 +607,7 @@ declare const AppSpecificationSchema: z.ZodObject<{
|
|
|
607
607
|
}>>;
|
|
608
608
|
}, "strip", z.ZodTypeAny, {
|
|
609
609
|
layout: "dashboard" | "explorer" | "studio" | "focus";
|
|
610
|
-
theme: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint";
|
|
610
|
+
theme: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint" | "markets";
|
|
611
611
|
mockMode: boolean;
|
|
612
612
|
brokerUrl?: string | undefined;
|
|
613
613
|
aiKeyManifest?: {
|
|
@@ -616,7 +616,7 @@ declare const AppSpecificationSchema: z.ZodObject<{
|
|
|
616
616
|
} | undefined;
|
|
617
617
|
}, {
|
|
618
618
|
layout?: "dashboard" | "explorer" | "studio" | "focus" | undefined;
|
|
619
|
-
theme?: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint" | undefined;
|
|
619
|
+
theme?: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint" | "markets" | undefined;
|
|
620
620
|
mockMode?: boolean | undefined;
|
|
621
621
|
brokerUrl?: string | undefined;
|
|
622
622
|
aiKeyManifest?: {
|
|
@@ -1084,7 +1084,7 @@ declare const AppSpecificationSchema: z.ZodObject<{
|
|
|
1084
1084
|
}, "strip", z.ZodTypeAny, {
|
|
1085
1085
|
config: {
|
|
1086
1086
|
layout: "dashboard" | "explorer" | "studio" | "focus";
|
|
1087
|
-
theme: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint";
|
|
1087
|
+
theme: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint" | "markets";
|
|
1088
1088
|
mockMode: boolean;
|
|
1089
1089
|
brokerUrl?: string | undefined;
|
|
1090
1090
|
aiKeyManifest?: {
|
|
@@ -1193,7 +1193,7 @@ declare const AppSpecificationSchema: z.ZodObject<{
|
|
|
1193
1193
|
}, {
|
|
1194
1194
|
config: {
|
|
1195
1195
|
layout?: "dashboard" | "explorer" | "studio" | "focus" | undefined;
|
|
1196
|
-
theme?: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint" | undefined;
|
|
1196
|
+
theme?: "light" | "dark" | "system" | "corporate" | "midnight" | "blueprint" | "markets" | undefined;
|
|
1197
1197
|
mockMode?: boolean | undefined;
|
|
1198
1198
|
brokerUrl?: string | undefined;
|
|
1199
1199
|
aiKeyManifest?: {
|
|
@@ -51170,7 +51170,7 @@ declare const AIThemeSchema: z.ZodObject<{
|
|
|
51170
51170
|
}>;
|
|
51171
51171
|
type AITheme = z.infer<typeof AIThemeSchema>;
|
|
51172
51172
|
/** All built-in theme preset CSS class names. */
|
|
51173
|
-
declare const THEME_PRESETS: readonly ["light", "dark", "system", "corporate", "midnight", "blueprint"];
|
|
51173
|
+
declare const THEME_PRESETS: readonly ["light", "dark", "system", "corporate", "midnight", "blueprint", "markets"];
|
|
51174
51174
|
type ThemePreset = typeof THEME_PRESETS[number];
|
|
51175
51175
|
/**
|
|
51176
51176
|
* ThemeTokensSchema — the 5-token palette + radius contract for the Settings
|
|
@@ -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
|
/**
|
|
@@ -54385,15 +54424,15 @@ declare const NewAccessTokenSchema: z.ZodObject<{
|
|
|
54385
54424
|
}, "strip", z.ZodTypeAny, {
|
|
54386
54425
|
name: string;
|
|
54387
54426
|
scopes: ("boards:read" | "boards:send" | "boards:configure")[];
|
|
54388
|
-
days:
|
|
54427
|
+
days: 7 | 90 | 30 | 365;
|
|
54389
54428
|
}, {
|
|
54390
54429
|
name: string;
|
|
54391
54430
|
scopes: ("boards:read" | "boards:send" | "boards:configure")[];
|
|
54392
|
-
days:
|
|
54431
|
+
days: 7 | 90 | 30 | 365;
|
|
54393
54432
|
}>;
|
|
54394
54433
|
type AccessTokenScope = z.infer<typeof AccessTokenScopeSchema>;
|
|
54395
54434
|
type AccessTokenRecord = z.infer<typeof AccessTokenRecordSchema>;
|
|
54396
54435
|
type PublicAccessToken = z.infer<typeof PublicAccessTokenSchema>;
|
|
54397
54436
|
type NewAccessToken = z.infer<typeof NewAccessTokenSchema>;
|
|
54398
54437
|
|
|
54399
|
-
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
|
@@ -122,7 +122,7 @@ var AppSpecificationSchema = z.object({
|
|
|
122
122
|
createdAt: z.string().optional()
|
|
123
123
|
}),
|
|
124
124
|
config: z.object({
|
|
125
|
-
theme: z.enum(["light", "dark", "system", "corporate", "midnight", "blueprint"]).default("system"),
|
|
125
|
+
theme: z.enum(["light", "dark", "system", "corporate", "midnight", "blueprint", "markets"]).default("system"),
|
|
126
126
|
layout: z.enum(["dashboard", "explorer", "studio", "focus"]).default("dashboard"),
|
|
127
127
|
mockMode: z.boolean().default(true),
|
|
128
128
|
brokerUrl: z.string().optional(),
|
|
@@ -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
|
|
@@ -1529,6 +1535,7 @@ Your goal is to design a complete software solution: Data, Logic, and Interface.
|
|
|
1529
1535
|
- 'corporate' \u2192 finance, HR, professional services (green/amber)
|
|
1530
1536
|
- 'midnight' \u2192 analytics, creative tools, AI apps (indigo/purple)
|
|
1531
1537
|
- 'blueprint' \u2192 engineering, technical, IoT, infrastructure (blue/sharp)
|
|
1538
|
+
- 'markets' \u2192 trading, portfolios, prices, credit (black/blue, green up, orange down)
|
|
1532
1539
|
- 'system' \u2192 follow OS preference (default if unsure)
|
|
1533
1540
|
- Only populate 'themeOverrides' when the user explicitly asks for a custom color.
|
|
1534
1541
|
|
|
@@ -1549,6 +1556,7 @@ the user changes from 'light' to 'dark' or 'midnight'. Raw colors BREAK this.
|
|
|
1549
1556
|
ring-ring \u2192 focus rings on inputs and interactive elements
|
|
1550
1557
|
bg-success \u2192 positive status indicators
|
|
1551
1558
|
bg-warning \u2192 caution/warning indicators
|
|
1559
|
+
text-gain-strong / text-loss-strong \u2192 a price or figure moving up / down (never success/destructive)
|
|
1552
1560
|
bg-destructive \u2192 error/danger indicators
|
|
1553
1561
|
|
|
1554
1562
|
\u274C BANNED \u2014 Never use these raw Tailwind palette classes:
|
|
@@ -1789,7 +1797,7 @@ var AIThemeSchema = z14.object({
|
|
|
1789
1797
|
*/
|
|
1790
1798
|
cssVars: ThemeOverridesSchema
|
|
1791
1799
|
});
|
|
1792
|
-
var THEME_PRESETS = ["light", "dark", "system", "corporate", "midnight", "blueprint"];
|
|
1800
|
+
var THEME_PRESETS = ["light", "dark", "system", "corporate", "midnight", "blueprint", "markets"];
|
|
1793
1801
|
var ThemeTokensSchema = z14.object({
|
|
1794
1802
|
primary: RGBString,
|
|
1795
1803
|
neutral: RGBString,
|
|
@@ -2404,6 +2412,7 @@ export {
|
|
|
2404
2412
|
ThemePaletteSchema,
|
|
2405
2413
|
ThemeRgbSchema,
|
|
2406
2414
|
ThemeTokensSchema,
|
|
2415
|
+
ThemeWebFontsSchema,
|
|
2407
2416
|
TriggerSchema,
|
|
2408
2417
|
UserSchema,
|
|
2409
2418
|
VitalSourceSchema,
|
|
@@ -2411,6 +2420,7 @@ export {
|
|
|
2411
2420
|
WEATHER_ICONS,
|
|
2412
2421
|
WEATHER_ICON_NAMES,
|
|
2413
2422
|
WeatherAppConfigSchema,
|
|
2423
|
+
WebFontFamilySchema,
|
|
2414
2424
|
WorkflowSchema,
|
|
2415
2425
|
telemetryGraphParameters
|
|
2416
2426
|
};
|