@ramme-io/shared 4.0.0 → 4.1.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 +30 -1
- package/dist/index.d.cts +43 -3
- package/dist/index.d.ts +43 -3
- package/dist/index.js +28 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -107,6 +107,7 @@ __export(index_exports, {
|
|
|
107
107
|
DEVICE_TTL_SECONDS: () => DEVICE_TTL_SECONDS,
|
|
108
108
|
DEVICE_UNKNOWN_GLYPH: () => DEVICE_UNKNOWN_GLYPH,
|
|
109
109
|
DEVICE_VITALS_FIELDS: () => DEVICE_VITALS_FIELDS,
|
|
110
|
+
DEVICE_VOICE_CLIP: () => DEVICE_VOICE_CLIP,
|
|
110
111
|
DISPLAY_FACE_MIN_PX: () => DISPLAY_FACE_MIN_PX,
|
|
111
112
|
DISPLAY_NAME_MAX: () => DISPLAY_NAME_MAX,
|
|
112
113
|
DeliveredAppSchema: () => DeliveredAppSchema,
|
|
@@ -128,6 +129,7 @@ __export(index_exports, {
|
|
|
128
129
|
DeviceStatusSchema: () => DeviceStatusSchema,
|
|
129
130
|
DeviceThemeSchema: () => DeviceThemeSchema,
|
|
130
131
|
DeviceVitalsSchema: () => DeviceVitalsSchema,
|
|
132
|
+
DeviceVoiceReplySchema: () => DeviceVoiceReplySchema,
|
|
131
133
|
DisplayNameSchema: () => DisplayNameSchema,
|
|
132
134
|
EdgeSchema: () => EdgeSchema,
|
|
133
135
|
EmblemSchema: () => EmblemSchema,
|
|
@@ -1515,8 +1517,33 @@ var DEVICE_PROTOCOL = {
|
|
|
1515
1517
|
* GET `?id=&hash=<sha256>` → 200 raw bytes, 404 for anything it may not
|
|
1516
1518
|
* have. Only a hash an app on the board names; the board keeps the file.
|
|
1517
1519
|
*/
|
|
1518
|
-
photo: { method: "GET", path: "/api/device/photo" }
|
|
1520
|
+
photo: { method: "GET", path: "/api/device/photo" },
|
|
1521
|
+
/**
|
|
1522
|
+
* POST `?id=` with a clip (`DEVICE_VOICE_CLIP`) as the raw body → 200
|
|
1523
|
+
* `DeviceVoiceReply`. Only while the talk button is held: a board never
|
|
1524
|
+
* listens on its own. 501 means this server has no transcriber, which a
|
|
1525
|
+
* board shows as "voice is off here" rather than an error; 403 that this
|
|
1526
|
+
* board may not use it; 413 a clip over the limit.
|
|
1527
|
+
*
|
|
1528
|
+
* Which machine turns speech into text is the server's business, not the
|
|
1529
|
+
* board's (docs/superpowers/specs/ramme-lab.md, "Voice"): a home server runs
|
|
1530
|
+
* a local model, ramme.io a metered cloud one. The board sends the same clip
|
|
1531
|
+
* to either.
|
|
1532
|
+
*/
|
|
1533
|
+
voice: { method: "POST", path: "/api/device/voice" }
|
|
1519
1534
|
};
|
|
1535
|
+
var DEVICE_VOICE_CLIP = {
|
|
1536
|
+
contentType: "audio/wav",
|
|
1537
|
+
sampleRate: 16e3,
|
|
1538
|
+
bitsPerSample: 16,
|
|
1539
|
+
channels: 1,
|
|
1540
|
+
maxSeconds: 15,
|
|
1541
|
+
/** The 44-byte header plus fifteen seconds of samples. */
|
|
1542
|
+
maxBytes: 44 + 16e3 * 2 * 15
|
|
1543
|
+
};
|
|
1544
|
+
var DeviceVoiceReplySchema = import_zod12.z.object({
|
|
1545
|
+
text: import_zod12.z.string().max(2e3)
|
|
1546
|
+
});
|
|
1520
1547
|
var DEVICE_POLL_QUERY = {
|
|
1521
1548
|
id: "the board id (required)",
|
|
1522
1549
|
since: "the revision on the glass now",
|
|
@@ -2492,6 +2519,7 @@ var NewAccessTokenSchema = import_zod18.z.object({
|
|
|
2492
2519
|
DEVICE_TTL_SECONDS,
|
|
2493
2520
|
DEVICE_UNKNOWN_GLYPH,
|
|
2494
2521
|
DEVICE_VITALS_FIELDS,
|
|
2522
|
+
DEVICE_VOICE_CLIP,
|
|
2495
2523
|
DISPLAY_FACE_MIN_PX,
|
|
2496
2524
|
DISPLAY_NAME_MAX,
|
|
2497
2525
|
DeliveredAppSchema,
|
|
@@ -2513,6 +2541,7 @@ var NewAccessTokenSchema = import_zod18.z.object({
|
|
|
2513
2541
|
DeviceStatusSchema,
|
|
2514
2542
|
DeviceThemeSchema,
|
|
2515
2543
|
DeviceVitalsSchema,
|
|
2544
|
+
DeviceVoiceReplySchema,
|
|
2516
2545
|
DisplayNameSchema,
|
|
2517
2546
|
EdgeSchema,
|
|
2518
2547
|
EmblemSchema,
|
package/dist/index.d.cts
CHANGED
|
@@ -31460,7 +31460,7 @@ type ShelfEdit = z.infer<typeof ShelfEditSchema>;
|
|
|
31460
31460
|
* ARCHITECTURAL ROLE:
|
|
31461
31461
|
* A board talks to ramme.io, or to a Ramme someone runs at home — whichever
|
|
31462
31462
|
* address its setup page names (hardware/ramme-device/src/ServerHost.h). For
|
|
31463
|
-
* that to work, both servers must answer the same
|
|
31463
|
+
* that to work, both servers must answer the same five calls the same way,
|
|
31464
31464
|
* and the firmware must ask nothing else. This file is that agreement:
|
|
31465
31465
|
* docs/superpowers/specs/home-device-protocol.md made concrete, and step 2 of
|
|
31466
31466
|
* "Ramme local" in docs/superpowers/community-platform-plan.md.
|
|
@@ -31480,7 +31480,7 @@ type ShelfEdit = z.infer<typeof ShelfEditSchema>;
|
|
|
31480
31480
|
* Zod schemas, inferred types and const registries only. No functions.
|
|
31481
31481
|
*/
|
|
31482
31482
|
/**
|
|
31483
|
-
* The
|
|
31483
|
+
* The five addresses, relative to the server a board is pointed at. Every one
|
|
31484
31484
|
* takes the board's id as `?id=`, except register, which carries it in the
|
|
31485
31485
|
* body. Nothing here needs an account: a board proves presence with the code
|
|
31486
31486
|
* on its screen, and only a sender has to present that.
|
|
@@ -31513,7 +31513,47 @@ declare const DEVICE_PROTOCOL: {
|
|
|
31513
31513
|
readonly method: "GET";
|
|
31514
31514
|
readonly path: "/api/device/photo";
|
|
31515
31515
|
};
|
|
31516
|
+
/**
|
|
31517
|
+
* POST `?id=` with a clip (`DEVICE_VOICE_CLIP`) as the raw body → 200
|
|
31518
|
+
* `DeviceVoiceReply`. Only while the talk button is held: a board never
|
|
31519
|
+
* listens on its own. 501 means this server has no transcriber, which a
|
|
31520
|
+
* board shows as "voice is off here" rather than an error; 403 that this
|
|
31521
|
+
* board may not use it; 413 a clip over the limit.
|
|
31522
|
+
*
|
|
31523
|
+
* Which machine turns speech into text is the server's business, not the
|
|
31524
|
+
* board's (docs/superpowers/specs/ramme-lab.md, "Voice"): a home server runs
|
|
31525
|
+
* a local model, ramme.io a metered cloud one. The board sends the same clip
|
|
31526
|
+
* to either.
|
|
31527
|
+
*/
|
|
31528
|
+
readonly voice: {
|
|
31529
|
+
readonly method: "POST";
|
|
31530
|
+
readonly path: "/api/device/voice";
|
|
31531
|
+
};
|
|
31516
31532
|
};
|
|
31533
|
+
/**
|
|
31534
|
+
* The clip a board sends to `voice`: a WAV file, 16 kHz, 16-bit, mono — what
|
|
31535
|
+
* the black board's codec records (proven 2026-10-25) and what speech models
|
|
31536
|
+
* take without resampling. Capped at fifteen seconds, which is a sentence or
|
|
31537
|
+
* two of prompt; anything longer is a recording, not a command.
|
|
31538
|
+
*/
|
|
31539
|
+
declare const DEVICE_VOICE_CLIP: {
|
|
31540
|
+
readonly contentType: "audio/wav";
|
|
31541
|
+
readonly sampleRate: 16000;
|
|
31542
|
+
readonly bitsPerSample: 16;
|
|
31543
|
+
readonly channels: 1;
|
|
31544
|
+
readonly maxSeconds: 15;
|
|
31545
|
+
/** The 44-byte header plus fifteen seconds of samples. */
|
|
31546
|
+
readonly maxBytes: number;
|
|
31547
|
+
};
|
|
31548
|
+
/** What a board reads back from `voice`: the words it heard, to show and to act on. */
|
|
31549
|
+
declare const DeviceVoiceReplySchema: z.ZodObject<{
|
|
31550
|
+
text: z.ZodString;
|
|
31551
|
+
}, "strip", z.ZodTypeAny, {
|
|
31552
|
+
text: string;
|
|
31553
|
+
}, {
|
|
31554
|
+
text: string;
|
|
31555
|
+
}>;
|
|
31556
|
+
type DeviceVoiceReply = z.infer<typeof DeviceVoiceReplySchema>;
|
|
31517
31557
|
/**
|
|
31518
31558
|
* What a board says about itself on the poll's query string. All optional —
|
|
31519
31559
|
* older firmware sends fewer — and a server reads them loosely: a malformed
|
|
@@ -54349,4 +54389,4 @@ type AccessTokenRecord = z.infer<typeof AccessTokenRecordSchema>;
|
|
|
54349
54389
|
type PublicAccessToken = z.infer<typeof PublicAccessTokenSchema>;
|
|
54350
54390
|
type NewAccessToken = z.infer<typeof NewAccessTokenSchema>;
|
|
54351
54391
|
|
|
54352
|
-
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, 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, 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 };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -31460,7 +31460,7 @@ type ShelfEdit = z.infer<typeof ShelfEditSchema>;
|
|
|
31460
31460
|
* ARCHITECTURAL ROLE:
|
|
31461
31461
|
* A board talks to ramme.io, or to a Ramme someone runs at home — whichever
|
|
31462
31462
|
* address its setup page names (hardware/ramme-device/src/ServerHost.h). For
|
|
31463
|
-
* that to work, both servers must answer the same
|
|
31463
|
+
* that to work, both servers must answer the same five calls the same way,
|
|
31464
31464
|
* and the firmware must ask nothing else. This file is that agreement:
|
|
31465
31465
|
* docs/superpowers/specs/home-device-protocol.md made concrete, and step 2 of
|
|
31466
31466
|
* "Ramme local" in docs/superpowers/community-platform-plan.md.
|
|
@@ -31480,7 +31480,7 @@ type ShelfEdit = z.infer<typeof ShelfEditSchema>;
|
|
|
31480
31480
|
* Zod schemas, inferred types and const registries only. No functions.
|
|
31481
31481
|
*/
|
|
31482
31482
|
/**
|
|
31483
|
-
* The
|
|
31483
|
+
* The five addresses, relative to the server a board is pointed at. Every one
|
|
31484
31484
|
* takes the board's id as `?id=`, except register, which carries it in the
|
|
31485
31485
|
* body. Nothing here needs an account: a board proves presence with the code
|
|
31486
31486
|
* on its screen, and only a sender has to present that.
|
|
@@ -31513,7 +31513,47 @@ declare const DEVICE_PROTOCOL: {
|
|
|
31513
31513
|
readonly method: "GET";
|
|
31514
31514
|
readonly path: "/api/device/photo";
|
|
31515
31515
|
};
|
|
31516
|
+
/**
|
|
31517
|
+
* POST `?id=` with a clip (`DEVICE_VOICE_CLIP`) as the raw body → 200
|
|
31518
|
+
* `DeviceVoiceReply`. Only while the talk button is held: a board never
|
|
31519
|
+
* listens on its own. 501 means this server has no transcriber, which a
|
|
31520
|
+
* board shows as "voice is off here" rather than an error; 403 that this
|
|
31521
|
+
* board may not use it; 413 a clip over the limit.
|
|
31522
|
+
*
|
|
31523
|
+
* Which machine turns speech into text is the server's business, not the
|
|
31524
|
+
* board's (docs/superpowers/specs/ramme-lab.md, "Voice"): a home server runs
|
|
31525
|
+
* a local model, ramme.io a metered cloud one. The board sends the same clip
|
|
31526
|
+
* to either.
|
|
31527
|
+
*/
|
|
31528
|
+
readonly voice: {
|
|
31529
|
+
readonly method: "POST";
|
|
31530
|
+
readonly path: "/api/device/voice";
|
|
31531
|
+
};
|
|
31516
31532
|
};
|
|
31533
|
+
/**
|
|
31534
|
+
* The clip a board sends to `voice`: a WAV file, 16 kHz, 16-bit, mono — what
|
|
31535
|
+
* the black board's codec records (proven 2026-10-25) and what speech models
|
|
31536
|
+
* take without resampling. Capped at fifteen seconds, which is a sentence or
|
|
31537
|
+
* two of prompt; anything longer is a recording, not a command.
|
|
31538
|
+
*/
|
|
31539
|
+
declare const DEVICE_VOICE_CLIP: {
|
|
31540
|
+
readonly contentType: "audio/wav";
|
|
31541
|
+
readonly sampleRate: 16000;
|
|
31542
|
+
readonly bitsPerSample: 16;
|
|
31543
|
+
readonly channels: 1;
|
|
31544
|
+
readonly maxSeconds: 15;
|
|
31545
|
+
/** The 44-byte header plus fifteen seconds of samples. */
|
|
31546
|
+
readonly maxBytes: number;
|
|
31547
|
+
};
|
|
31548
|
+
/** What a board reads back from `voice`: the words it heard, to show and to act on. */
|
|
31549
|
+
declare const DeviceVoiceReplySchema: z.ZodObject<{
|
|
31550
|
+
text: z.ZodString;
|
|
31551
|
+
}, "strip", z.ZodTypeAny, {
|
|
31552
|
+
text: string;
|
|
31553
|
+
}, {
|
|
31554
|
+
text: string;
|
|
31555
|
+
}>;
|
|
31556
|
+
type DeviceVoiceReply = z.infer<typeof DeviceVoiceReplySchema>;
|
|
31517
31557
|
/**
|
|
31518
31558
|
* What a board says about itself on the poll's query string. All optional —
|
|
31519
31559
|
* older firmware sends fewer — and a server reads them loosely: a malformed
|
|
@@ -54349,4 +54389,4 @@ type AccessTokenRecord = z.infer<typeof AccessTokenRecordSchema>;
|
|
|
54349
54389
|
type PublicAccessToken = z.infer<typeof PublicAccessTokenSchema>;
|
|
54350
54390
|
type NewAccessToken = z.infer<typeof NewAccessTokenSchema>;
|
|
54351
54391
|
|
|
54352
|
-
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, 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, 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 };
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -1290,8 +1290,33 @@ var DEVICE_PROTOCOL = {
|
|
|
1290
1290
|
* GET `?id=&hash=<sha256>` → 200 raw bytes, 404 for anything it may not
|
|
1291
1291
|
* have. Only a hash an app on the board names; the board keeps the file.
|
|
1292
1292
|
*/
|
|
1293
|
-
photo: { method: "GET", path: "/api/device/photo" }
|
|
1293
|
+
photo: { method: "GET", path: "/api/device/photo" },
|
|
1294
|
+
/**
|
|
1295
|
+
* POST `?id=` with a clip (`DEVICE_VOICE_CLIP`) as the raw body → 200
|
|
1296
|
+
* `DeviceVoiceReply`. Only while the talk button is held: a board never
|
|
1297
|
+
* listens on its own. 501 means this server has no transcriber, which a
|
|
1298
|
+
* board shows as "voice is off here" rather than an error; 403 that this
|
|
1299
|
+
* board may not use it; 413 a clip over the limit.
|
|
1300
|
+
*
|
|
1301
|
+
* Which machine turns speech into text is the server's business, not the
|
|
1302
|
+
* board's (docs/superpowers/specs/ramme-lab.md, "Voice"): a home server runs
|
|
1303
|
+
* a local model, ramme.io a metered cloud one. The board sends the same clip
|
|
1304
|
+
* to either.
|
|
1305
|
+
*/
|
|
1306
|
+
voice: { method: "POST", path: "/api/device/voice" }
|
|
1294
1307
|
};
|
|
1308
|
+
var DEVICE_VOICE_CLIP = {
|
|
1309
|
+
contentType: "audio/wav",
|
|
1310
|
+
sampleRate: 16e3,
|
|
1311
|
+
bitsPerSample: 16,
|
|
1312
|
+
channels: 1,
|
|
1313
|
+
maxSeconds: 15,
|
|
1314
|
+
/** The 44-byte header plus fifteen seconds of samples. */
|
|
1315
|
+
maxBytes: 44 + 16e3 * 2 * 15
|
|
1316
|
+
};
|
|
1317
|
+
var DeviceVoiceReplySchema = z12.object({
|
|
1318
|
+
text: z12.string().max(2e3)
|
|
1319
|
+
});
|
|
1295
1320
|
var DEVICE_POLL_QUERY = {
|
|
1296
1321
|
id: "the board id (required)",
|
|
1297
1322
|
since: "the revision on the glass now",
|
|
@@ -2266,6 +2291,7 @@ export {
|
|
|
2266
2291
|
DEVICE_TTL_SECONDS,
|
|
2267
2292
|
DEVICE_UNKNOWN_GLYPH,
|
|
2268
2293
|
DEVICE_VITALS_FIELDS,
|
|
2294
|
+
DEVICE_VOICE_CLIP,
|
|
2269
2295
|
DISPLAY_FACE_MIN_PX,
|
|
2270
2296
|
DISPLAY_NAME_MAX,
|
|
2271
2297
|
DeliveredAppSchema,
|
|
@@ -2287,6 +2313,7 @@ export {
|
|
|
2287
2313
|
DeviceStatusSchema,
|
|
2288
2314
|
DeviceThemeSchema,
|
|
2289
2315
|
DeviceVitalsSchema,
|
|
2316
|
+
DeviceVoiceReplySchema,
|
|
2290
2317
|
DisplayNameSchema,
|
|
2291
2318
|
EdgeSchema,
|
|
2292
2319
|
EmblemSchema,
|