@standards/constants 1.0.0-alpha.415 → 1.0.0-alpha.418
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/README.md +16 -58
- package/dist/index.d.mts +33 -346
- package/dist/index.d.ts +33 -346
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
import { ClassValue } from "clsx";
|
|
3
|
-
//#region src/aiChat.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* AI Chat constants shared between frontend and backend.
|
|
6
5
|
*
|
|
@@ -20,21 +19,12 @@ export declare const AI_CHAT_SUPPORTED_IMAGES: readonly ["image/jpeg", "image/pn
|
|
|
20
19
|
* never served as a live page, and its preview runs no script.
|
|
21
20
|
*/
|
|
22
21
|
export declare const AI_CHAT_SUPPORTED_DOCUMENTS: readonly ["application/pdf", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "text/plain", "text/markdown", "text/csv", "text/javascript", "application/javascript", "text/html", "application/xhtml+xml"];
|
|
23
|
-
/**
|
|
24
|
-
* Audio MIME types supported by AI chat: a voice memo attaches like any file
|
|
25
|
-
* (#5804) and reaches every model as its transcript, so none needs to hear it.
|
|
26
|
-
* Every audio type the transcription reads — all but raw AAC — and
|
|
27
|
-
* `audio/x-m4a`, how Safari and macOS report an M4A.
|
|
28
|
-
*/
|
|
29
|
-
export declare const AI_CHAT_SUPPORTED_AUDIO: readonly [...("audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/flac" | "audio/mp4" | "audio/webm")[], "audio/x-m4a"];
|
|
30
|
-
/** All MIME types supported by AI chat */
|
|
31
|
-
export declare const AI_CHAT_SUPPORTED_MIME_TYPES: readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/svg+xml", "image/heic", "image/heif", "application/pdf", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "text/plain", "text/markdown", "text/csv", "text/javascript", "application/javascript", "text/html", "application/xhtml+xml", ...("audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/flac" | "audio/mp4" | "audio/webm")[], "audio/x-m4a"];
|
|
32
22
|
/**
|
|
33
23
|
* What the composer takes: the MIME types, and the extensions of files the OS
|
|
34
24
|
* maps to no type — the file picker offers them, and the composer's own check
|
|
35
25
|
* reads the same list, so a file it offers is never refused.
|
|
36
26
|
*/
|
|
37
|
-
export declare const AI_CHAT_ACCEPTED_PATTERNS: readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/svg+xml", "image/heic", "image/heif", "application/pdf", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "text/plain", "text/markdown", "text/csv", "text/javascript", "application/javascript", "text/html", "application/xhtml+xml", ...("audio/
|
|
27
|
+
export declare const AI_CHAT_ACCEPTED_PATTERNS: readonly ["image/jpeg", "image/png", "image/webp", "image/gif", "image/svg+xml", "image/heic", "image/heif", "application/pdf", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "text/plain", "text/markdown", "text/csv", "text/javascript", "application/javascript", "text/html", "application/xhtml+xml", ...("audio/flac" | "audio/mp4" | "audio/mpeg" | "audio/ogg" | "audio/wav" | "audio/webm")[], "audio/x-m4a", ".heic", ".heif", ".m4a"];
|
|
38
28
|
/** Comma-separated accept string for file inputs */
|
|
39
29
|
export declare const AI_CHAT_ACCEPTED_TYPES: string;
|
|
40
30
|
/** Maximum file size for AI chat attachments (50 MB) */
|
|
@@ -45,12 +35,8 @@ export declare const AI_CHAT_MAX_FILE_SIZE: number;
|
|
|
45
35
|
* reads the same constant, so the two cannot drift.
|
|
46
36
|
*/
|
|
47
37
|
export declare const AI_CHAT_MAX_FILES = 10;
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region src/icons.d.ts
|
|
50
38
|
export declare const ICONS: readonly ["a-arrow-down", "a-arrow-up", "academic-hat", "accessibility", "activity-square", "activity", "add-queue", "aeroplane", "air-conditioner", "airplay", "airpods", "alarm-check", "alarm-minus", "alarm-plus", "alarm-smoke", "alarm-snooze", "alarm-x", "alarm", "album", "align-bottom", "align-horizontal", "align-left", "align-right", "align-top", "align-vertical", "alt", "ambulance", "ampersand-square", "ampersand", "ampersands", "anchor", "angry-circle", "angry-ghost", "angry-square", "annoyed-circle", "annoyed-ghost", "annoyed-square", "aperture", "api", "ar", "archive", "arrow-diagonal-one", "arrow-diagonal-two", "arrow-down-circle", "arrow-down-left-circle", "arrow-down-left-square", "arrow-down-left-waves", "arrow-down-left", "arrow-down-right-circle", "arrow-down-right-square", "arrow-down-right-waves", "arrow-down-right", "arrow-down-square", "arrow-down-waves", "arrow-down", "arrow-left-circle", "arrow-left-right", "arrow-left-square", "arrow-left-waves", "arrow-left", "arrow-long-down-left", "arrow-long-down-right", "arrow-long-down", "arrow-long-left", "arrow-long-right", "arrow-long-up-left", "arrow-long-up-right", "arrow-long-up", "arrow-right-circle", "arrow-right-square", "arrow-right-waves", "arrow-right", "arrow-up-circle", "arrow-up-down", "arrow-up-left-circle", "arrow-up-left-square", "arrow-up-left-waves", "arrow-up-left", "arrow-up-right-circle", "arrow-up-right-square", "arrow-up-right-waves", "arrow-up-right", "arrow-up-square", "arrow-up-waves", "arrow-up", "asterisk-circle", "asterisk-diamond", "asterisk-hexagon", "asterisk-octagon", "asterisk-square", "asterisk-waves", "at", "atom", "baby", "backpack", "badge", "baggage-claim", "ban", "bank", "baseball", "bath", "battery-charging-four", "battery-charging-one", "battery-charging-three", "battery-charging-two", "battery-charging", "battery-check", "battery-empty", "battery-full", "battery-minus", "battery-plus", "battery-x", "bell-check", "bell-home", "bell-minus", "bell-on", "bell-plus", "bell-slash", "bell-snooze", "bell-user", "bell-x", "bell", "binoculars", "bitcoin-circle", "bitcoin-diamond", "bitcoin-hexagon", "bitcoin-octagon", "bitcoin-square", "bitcoin-waves", "bitcoin", "bluetooth", "boat", "book-check", "book-dot", "book-home", "book-image", "book-minus", "book-open", "book-plus", "book-slash", "book-snooze", "book-user", "book-x", "book", "bookmark-check", "bookmark-dot", "bookmark-home", "bookmark-minus", "bookmark-plus", "bookmark-slash", "bookmark-snooze", "bookmark-user", "bookmark-x", "bookmark", "bounding-box", "bowl", "box", "brand-chrome", "brand-codepen", "brand-codesandbox", "brand-dribbble", "brand-facebook", "brand-figma", "brand-framer", "brand-github", "brand-gitlab", "brand-google", "brand-instagram", "brand-linkedin", "brand-pinterest", "brand-pocket", "brand-slack", "brand-spotify", "brand-telegram", "brand-threads", "brand-trello", "brand-twitch", "brand-twitter", "brand-x", "brand-youtube", "briefcase-conveyor-belt", "briefcase", "brightness-high", "brightness-low", "bubbles", "building-one", "building", "cable-car", "cake", "calendar-check", "calendar-down", "calendar-minus", "calendar-plus", "calendar-slash", "calendar-up", "calendar-x", "calendar", "camera-slash", "camera", "campfire", "cannabis", "caravan", "cart-check", "cart-minus", "cart-plus", "cart-x", "cart", "cast-screen", "center-focus", "chart-area", "chart-bar-big", "chart-bar-decreasing", "chart-bar-increasing", "chart-bar-one", "chart-bar-stacked", "chart-bar", "chart-bubble", "chart-candlestick", "chart-column-big", "chart-column-decreasing", "chart-column-increasing", "chart-column-stacked", "chart-column", "chart-gantt", "chart-graph", "chart-line", "chart-network", "chart-no-axes-column-decreasing", "chart-no-axes-column-increasing", "chart-no-axes-column", "chart-no-axes-combined", "chart-no-axes-gantt", "chart-pie-one", "chart-pie-two", "chart-pie", "chart-scatter", "chart-spline", "chat-check", "chat-dots", "chat-messages", "chat-minus", "chat-plus", "chat-x", "chat", "check-circle-one", "check-circle", "check-diamond", "check-hexagon", "check-octagon", "check-square-one", "check-square", "check-waves", "check", "chevron-double-down-left", "chevron-double-down-right", "chevron-double-down", "chevron-double-left", "chevron-double-right", "chevron-double-up-left", "chevron-double-up-right", "chevron-double-up", "chevron-down-circle", "chevron-down-left-circle", "chevron-down-left-square", "chevron-down-left-waves", "chevron-down-left", "chevron-down-right-circle", "chevron-down-right-square", "chevron-down-right-waves", "chevron-down-right", "chevron-down-square", "chevron-down-waves", "chevron-down", "chevron-left-circle", "chevron-left-square", "chevron-left-waves", "chevron-left", "chevron-right-circle", "chevron-right-square", "chevron-right-waves", "chevron-right", "chevron-up-circle", "chevron-up-down", "chevron-up-left-circle", "chevron-up-left-square", "chevron-up-left-waves", "chevron-up-left", "chevron-up-right-circle", "chevron-up-right-square", "chevron-up-right-waves", "chevron-up-right", "chevron-up-square", "chevron-up-waves", "chevron-up", "chip", "cigarette-off", "cigarette", "circle-dashed", "circle-half-circle", "circle-half", "circle-notch", "circle", "click", "clipboard", "clock-circle", "clock-diamond", "clock-eight", "clock-eleven", "clock-five", "clock-four", "clock-hand", "clock-hexagon", "clock-nine", "clock-octagon", "clock-one", "clock-seven", "clock-six", "clock-square", "clock-ten", "clock-three", "clock-twelve", "clock-two", "clock-waves", "cloud-download", "cloud-drizzle", "cloud-fog", "cloud-hail", "cloud-lightning", "cloud-moon-rain", "cloud-moon", "cloud-off", "cloud-rain-wind", "cloud-rain", "cloud-snow", "cloud-sun-rain", "cloud-sun", "cloud-upload", "cloud", "cloudy", "cocktail", "code-circle", "code-diamond", "code-hexagon", "code-octagon", "code-square", "code-waves", "code", "coffee", "cog-four", "cog-one", "cog-three", "cog-two", "cog", "columns", "command", "compass", "components", "confetti", "config-vertical", "config", "contactless-circle", "contactless", "controller", "cookie", "copy", "copyleft", "copyright-slash", "copyright", "corner-down-left", "corner-down-right", "corner-left-down", "corner-left-up", "corner-right-down", "corner-right-up", "corner-up-left", "corner-up-right", "credit-card-check", "credit-card-minus", "credit-card-plus", "credit-card-x", "credit-card", "croissant", "crop", "crosshair", "cupcake", "danger-circle", "danger-diamond", "danger-hexagon", "danger-octagon", "danger-square", "danger-triangle", "danger-waves", "danger", "database", "daze-circle", "daze-ghost", "daze-square", "delete", "desktop", "diamond", "dice-five", "dice-four", "dice-one", "dice-six", "dice-three", "dice-two", "dislike", "divide", "dollar-circle", "dollar-diamond", "dollar-hexagon", "dollar-octagon", "dollar-square", "dollar-waves", "dollar", "door-closed-locked", "door-closed", "door-open", "dots-circle", "dots-diamond", "dots-hexagon", "dots-octagon", "dots-square", "dots-vertical-circle", "dots-vertical-diamond", "dots-vertical-hexagon", "dots-vertical-octagon", "dots-vertical-square", "dots-vertical-waves", "dots-vertical", "dots-waves", "dots", "download", "drop", "droplet-off", "droplet", "droplets", "ear-slash", "ear", "earth", "eclipse", "edit-one", "edit", "egg", "eight-circle", "eight-diamond", "eight-hexagon", "eight-octagon", "eight-square", "eight-waves", "eight", "elevator", "envelope-open", "envelope", "euro-circle", "euro-diamond", "euro-hexagon", "euro-octagon", "euro-square", "euro-waves", "euro", "exclude", "external-link", "eye-slash", "eye", "face-id", "fat-arrow-down-left", "fat-arrow-down-right", "fat-arrow-down", "fat-arrow-left", "fat-arrow-right", "fat-arrow-up-left", "fat-arrow-up-right", "fat-arrow-up", "fat-corner-down-left", "fat-corner-down-right", "fat-corner-left-down", "fat-corner-left-up", "fat-corner-right-down", "fat-corner-right-up", "fat-corner-up-left", "fat-corner-up-right", "female", "file-check", "file-minus", "file-plus", "file-text", "file-x", "file", "film", "filter-one", "filter", "fine-tune", "fire", "five-circle", "five-diamond", "five-hexagon", "five-octagon", "five-square", "five-waves", "five", "flag-one", "flag", "flame-kindling", "flame", "flask", "flower-2", "flower", "folder-check", "folder-heart", "folder-kanban", "folder-minus", "folder-one", "folder-plus", "folder-slash", "folder-two", "folder-x", "folder", "forward-circle", "forward-diamond", "forward-hexagon", "forward-octagon", "forward-square", "forward-waves", "forward", "four-circle", "four-diamond", "four-hexagon", "four-octagon", "four-square", "four-waves", "four", "frame", "funny-circle", "funny-ghost", "funny-square", "gift", "git-branch", "git-circle", "git-commit", "git-diamond", "git-diff", "git-hexagon", "git-merge", "git-octagon", "git-pull-request", "git-square", "git-waves", "glasses", "globe", "grid-one", "grid", "hand", "hard-drive", "hash-circle", "hash-diamond", "hash-hexagon", "hash-octagon", "hash-square", "hash-waves", "hash", "haze", "heading-five", "heading-four", "heading-one", "heading-six", "heading-three", "heading-two", "heading", "headphones", "heart-broken", "heart-check", "heart-circle", "heart-diamond", "heart-dot", "heart-hexagon", "heart-home", "heart-minus", "heart-octagon", "heart-plus", "heart-slash", "heart-snooze", "heart-square", "heart-user", "heart-waves", "heart-x", "heart", "hexagon", "home-check", "home-minus", "home-plus", "home-smile", "home-x", "home", "image-circle", "image-rectangle", "image", "inbox-archive", "inbox-check", "inbox-down", "inbox-minus", "inbox-plus", "inbox-up", "inbox-x", "inbox", "incognito", "indifferent-circle", "indifferent-ghost", "indifferent-square", "infinity", "info-circle", "info-diamond", "info-hexagon", "info-octagon", "info-square", "info-triangle", "info-waves", "info", "intersect", "kanban", "key", "keyboard-brightness-high", "keyboard-brightness-low", "keyboard", "label", "lamp", "layers-one", "layers-three", "layers-two", "layout", "leaf", "leaves", "letter-a-circle", "letter-a-diamond", "letter-a-hexagon", "letter-a-octagon", "letter-a-square", "letter-a-waves", "letter-a", "letter-b-circle", "letter-b-diamond", "letter-b-hexagon", "letter-b-octagon", "letter-b-square", "letter-b-waves", "letter-b", "letter-c-circle", "letter-c-diamond", "letter-c-hexagon", "letter-c-octagon", "letter-c-square", "letter-c-waves", "letter-c", "letter-d-circle", "letter-d-diamond", "letter-d-hexagon", "letter-d-octagon", "letter-d-square", "letter-d-waves", "letter-d", "letter-e-circle", "letter-e-diamond", "letter-e-hexagon", "letter-e-octagon", "letter-e-square", "letter-e-waves", "letter-e", "letter-f-circle", "letter-f-diamond", "letter-f-hexagon", "letter-f-octagon", "letter-f-square", "letter-f-waves", "letter-f", "letter-g-circle", "letter-g-diamond", "letter-g-hexagon", "letter-g-octagon", "letter-g-square", "letter-g-waves", "letter-g", "letter-h-circle", "letter-h-diamond", "letter-h-hexagon", "letter-h-octagon", "letter-h-square", "letter-h-waves", "letter-h", "letter-i-circle", "letter-i-diamond", "letter-i-hexagon", "letter-i-octagon", "letter-i-square", "letter-i-waves", "letter-i", "letter-j-circle", "letter-j-diamond", "letter-j-hexagon", "letter-j-octagon", "letter-j-square", "letter-j-waves", "letter-j", "letter-k-circle", "letter-k-diamond", "letter-k-hexagon", "letter-k-octagon", "letter-k-square", "letter-k-waves", "letter-k", "letter-l-circle", "letter-l-diamond", "letter-l-hexagon", "letter-l-octagon", "letter-l-square", "letter-l-waves", "letter-l", "letter-m-circle", "letter-m-diamond", "letter-m-hexagon", "letter-m-octagon", "letter-m-square", "letter-m-waves", "letter-m", "letter-n-circle", "letter-n-diamond", "letter-n-hexagon", "letter-n-octagon", "letter-n-square", "letter-n-waves", "letter-n", "letter-o-circle", "letter-o-diamond", "letter-o-hexagon", "letter-o-octagon", "letter-o-square", "letter-o-waves", "letter-o", "letter-p-circle", "letter-p-diamond", "letter-p-hexagon", "letter-p-octagon", "letter-p-square", "letter-p-waves", "letter-p", "letter-q-circle", "letter-q-diamond", "letter-q-hexagon", "letter-q-octagon", "letter-q-square", "letter-q-waves", "letter-q", "letter-r-circle", "letter-r-diamond", "letter-r-hexagon", "letter-r-octagon", "letter-r-square", "letter-r-waves", "letter-r", "letter-s-circle", "letter-s-diamond", "letter-s-hexagon", "letter-s-octagon", "letter-s-square", "letter-s-waves", "letter-s", "letter-t-circle", "letter-t-diamond", "letter-t-hexagon", "letter-t-octagon", "letter-t-square", "letter-t-waves", "letter-t", "letter-u-circle", "letter-u-diamond", "letter-u-hexagon", "letter-u-octagon", "letter-u-square", "letter-u-waves", "letter-u", "letter-v-circle", "letter-v-diamond", "letter-v-hexagon", "letter-v-octagon", "letter-v-square", "letter-v-waves", "letter-v", "letter-w-circle", "letter-w-diamond", "letter-w-hexagon", "letter-w-octagon", "letter-w-square", "letter-w-waves", "letter-w", "letter-x-circle", "letter-x-diamond", "letter-x-hexagon", "letter-x-octagon", "letter-x-square", "letter-x-waves", "letter-x", "letter-y-circle", "letter-y-diamond", "letter-y-hexagon", "letter-y-octagon", "letter-y-square", "letter-y-waves", "letter-y", "letter-z-circle", "letter-z-diamond", "letter-z-hexagon", "letter-z-octagon", "letter-z-square", "letter-z-waves", "letter-z", "lightning-off", "lightning", "like", "line-chart-circle", "line-chart-diamond", "line-chart-hexagon", "line-chart-octagon", "line-chart-square", "line-chart-waves", "link-one", "link-two", "link", "list-check", "list-number", "list", "location-check", "location-home", "location-minus", "location-plus", "location-selected", "location-slash", "location-snooze", "location-user", "location-x", "location", "lock-circle", "lock-diamond", "lock-hexagon", "lock-keyhole", "lock-octagon", "lock-open-keyhole", "lock-open-password", "lock-open", "lock-password", "lock-square", "lock-waves", "lock", "login", "logout", "magnet", "male", "map", "mask", "math-square", "math", "maximize-one", "maximize", "menu", "message-check", "message-dots", "message-minus", "message-plus", "message-reply", "message-x", "message", "microphone-slash", "microphone", "minimize-one", "minimize", "minus-circle", "minus-diamond", "minus-hexagon", "minus-octagon", "minus-square", "minus-waves", "minus", "mobile-signal-five", "mobile-signal-four", "mobile-signal-one", "mobile-signal-three", "mobile-signal-two", "mobile", "moon-star", "moon", "mountain-snow", "mountain", "mouse-pointer", "move-diagonal-one", "move-diagonal", "move-horizontal", "move-vertical", "move", "music-circle", "music-diamond", "music-hexagon", "music-octagon", "music-square", "music-waves", "music", "myna", "navigation-one", "navigation", "nine-circle", "nine-diamond", "nine-hexagon", "nine-octagon", "nine-square", "nine-waves", "nine", "notification", "octagon", "one-circle", "one-diamond", "one-hexagon", "one-octagon", "one-square", "one-waves", "one", "option", "package", "paint", "panel-bottom-close", "panel-bottom-inactive", "panel-bottom-open", "panel-bottom", "panel-left-close", "panel-left-inactive", "panel-left-open", "panel-left", "panel-right-close", "panel-right-inactive", "panel-right-open", "panel-right", "panel-top-close", "panel-top-inactive", "panel-top-open", "panel-top", "paperclip", "parking", "password", "path", "pause-circle", "pause-diamond", "pause-hexagon", "pause-octagon", "pause-square", "pause-waves", "pause", "pen", "pencil", "percentage-circle", "percentage-diamond", "percentage-hexagon", "percentage-octagon", "percentage-square", "percentage-waves", "percentage", "pin", "pizza", "planet", "play-circle", "play-diamond", "play-hexagon", "play-octagon", "play-square", "play-waves", "play", "plus-circle", "plus-diamond", "plus-hexagon", "plus-octagon", "plus-square", "plus-waves", "plus", "pokeball", "power", "presentation", "printer", "puzzle", "question-circle", "question-diamond", "question-hexagon", "question-octagon", "question-square", "question-waves", "question", "radio", "rainbow", "reception-bell", "record", "rectangle-vertical", "rectangle", "redo", "refresh-alt", "refresh", "repeat", "rewind-circle", "rewind-diamond", "rewind-hexagon", "rewind-octagon", "rewind-square", "rewind-waves", "rewind", "rhombus", "ribbon", "rocket", "room-service", "rows", "rss", "ruler", "rupee-circle", "rupee-diamond", "rupee-hexagon", "rupee-octagon", "rupee-square", "rupee-waves", "rupee", "sad-circle", "sad-ghost", "sad-square", "save", "scan", "scissors", "sea-waves", "search-check", "search-circle", "search-diamond", "search-dot", "search-hexagon", "search-home", "search-minus", "search-octagon", "search-plus", "search-slash", "search-snooze", "search-square", "search-user", "search-waves", "search-x", "search", "select-multiple", "send", "servers", "seven-circle", "seven-diamond", "seven-hexagon", "seven-octagon", "seven-square", "seven-waves", "seven", "share", "shell", "shield-check", "shield-crossed", "shield-minus", "shield-one", "shield-plus", "shield-slash", "shield-two", "shield-x", "shield", "shooting-star", "shopping-bag", "shovel", "shrub", "shuffle-alt", "shuffle", "sidebar-alt", "sidebar", "signal-circle", "signal-diamond", "signal-hexagon", "signal-octagon", "signal-square", "signal-waves", "signal", "six-circle", "six-diamond", "six-hexagon", "six-octagon", "six-square", "six-waves", "six", "skip-back", "skip-forward", "slash-circle", "slash-diamond", "slash-hexagon", "slash-octagon", "slash-square", "slash-waves", "smile-circle", "smile-ghost", "smile-square", "snow", "snowflake", "sofa", "sort", "sparkles", "speaker", "spinner-one", "spinner", "sprout", "square-chart-gantt", "square-dashed-kanban", "square-dashed", "square-half", "square-kanban", "square", "star", "stop-circle", "stop-diamond", "stop-hexagon", "stop-octagon", "stop-square", "stop-waves", "stop", "store", "subtract", "sun-dim", "sun-medium", "sun-snow", "sun", "sunrise", "sunset", "support", "swatches", "table", "tablet", "tag-plus", "tag", "tally-five", "tally-four", "tally-one", "tally-three", "tally-two", "target", "telephone-call", "telephone-forward", "telephone-in", "telephone-missed", "telephone-out", "telephone-slash", "telephone", "tent-tree", "tent", "terminal", "text-align-center", "text-align-left", "text-align-right", "text-justify", "thermometer-snowflake", "thermometer-sun", "thermometer", "three-circle", "three-diamond", "three-hexagon", "three-octagon", "three-square", "three-waves", "three", "ticket-slash", "ticket", "toggle-left", "toggle-right", "tool", "tornado", "train", "trash-one", "trash-two", "trash", "tree-deciduous", "tree-palm", "tree-pine", "tree", "trees", "trending-down", "trending-up-down", "trending-up", "triangle", "truck", "tv", "two-circle", "two-diamond", "two-hexagon", "two-octagon", "two-square", "two-waves", "two", "type-bold", "type-italic", "type-text", "type-underline", "umbrella-off", "umbrella", "undo", "union", "unlink", "upload", "user-check", "user-circle", "user-diamond", "user-hexagon", "user-minus", "user-octagon", "user-plus", "user-settings", "user-square", "user-waves", "user-x", "user", "users-group", "users", "video-slash", "video", "volume-check", "volume-high", "volume-low", "volume-minus", "volume-none", "volume-plus", "volume-slash", "volume-x", "watch", "waves", "webcam", "wheel", "wheelchair", "wifi-check", "wifi-low", "wifi-medium", "wifi-minus", "wifi-plus", "wifi-slash", "wifi-x", "wifi", "wind-arrow-down", "wind", "winds", "wine", "wink-circle", "wink-ghost", "wink-square", "wrench", "x-circle", "x-diamond", "x-hexagon", "x-octagon", "x-square", "x-triangle", "x-waves", "x", "yen-circle", "yen-diamond", "yen-hexagon", "yen-octagon", "yen-square", "yen-waves", "yen", "zap-off", "zap", "zero-circle", "zero-diamond", "zero-hexagon", "zero-octagon", "zero-square", "zero-waves", "zero"];
|
|
51
39
|
export type IconName = (typeof ICONS)[number];
|
|
52
|
-
//#endregion
|
|
53
|
-
//#region src/attribute-icons.d.ts
|
|
54
40
|
/**
|
|
55
41
|
* Default icons for each attribute type
|
|
56
42
|
*/
|
|
@@ -61,8 +47,6 @@ export declare const DEFAULT_ATTRIBUTE_ICONS: Record<string, IconName>;
|
|
|
61
47
|
* @returns The icon name, or "circle" as fallback
|
|
62
48
|
*/
|
|
63
49
|
export declare function getDefaultAttributeIcon(type: string): IconName;
|
|
64
|
-
//#endregion
|
|
65
|
-
//#region src/tab-icons.d.ts
|
|
66
50
|
/**
|
|
67
51
|
* Default icons for each detail-view tab type.
|
|
68
52
|
*
|
|
@@ -104,15 +88,11 @@ export declare const DEFAULT_LAYOUT_ICONS: Record<string, IconName>;
|
|
|
104
88
|
* @returns The icon name, or "table" as fallback
|
|
105
89
|
*/
|
|
106
90
|
export declare function getDefaultLayoutIcon(layout: string): IconName;
|
|
107
|
-
//#endregion
|
|
108
|
-
//#region src/cn.d.ts
|
|
109
91
|
/**
|
|
110
92
|
* Merge class names with Tailwind CSS classes.
|
|
111
93
|
* Uses clsx for conditional classes and tailwind-merge to handle conflicts.
|
|
112
94
|
*/
|
|
113
95
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
114
|
-
//#endregion
|
|
115
|
-
//#region src/colors.d.ts
|
|
116
96
|
/**
|
|
117
97
|
* One Standards colour. Every role is a `light-dark(<light>, <dark>)` CSS
|
|
118
98
|
* value (requires `color-scheme` on the document root, see packages/ui
|
|
@@ -170,31 +150,16 @@ export declare const COLORS: {
|
|
|
170
150
|
peony: Color;
|
|
171
151
|
};
|
|
172
152
|
export type ColorId = keyof typeof COLORS;
|
|
173
|
-
/** OKLCH hue (degrees) of each non-neutral colour, for nearest-free-hue picks. */
|
|
174
|
-
export declare const PALETTE_HUES: Record<Exclude<ColorId, "stone">, number>;
|
|
175
|
-
/** Get color configuration by ID */
|
|
176
|
-
export declare const getColor: (id: string) => Color | undefined;
|
|
177
153
|
/** Get all color IDs */
|
|
178
154
|
export declare const getColorIds: () => ColorId[];
|
|
179
155
|
/** Whether a value is a palette id. Own keys only: `"constructor" in COLORS` is true. */
|
|
180
156
|
export declare const isValidColorId: (id: unknown) => id is ColorId;
|
|
181
|
-
/** Color groups for semantic usage */
|
|
182
|
-
export declare const COLOR_GROUPS: {
|
|
183
|
-
readonly neutral: readonly ["stone"];
|
|
184
|
-
readonly warm: readonly ["clay", "brick", "terra", "ochre"];
|
|
185
|
-
readonly green: readonly ["moss", "sage", "lagoon"];
|
|
186
|
-
readonly cool: readonly ["ink", "iris", "peony"];
|
|
187
|
-
};
|
|
188
|
-
export type ColorGroup = keyof typeof COLOR_GROUPS;
|
|
189
|
-
export type ColorGroupColors<T extends ColorGroup> = (typeof COLOR_GROUPS)[T][number];
|
|
190
157
|
/**
|
|
191
158
|
* The colours an agent avatar may take: every hue, never the neutral (a grey
|
|
192
159
|
* agent reads as disabled). Non-empty by construction (10 hues), which is what
|
|
193
160
|
* `z.enum` needs.
|
|
194
161
|
*/
|
|
195
162
|
export declare const AVATAR_COLOR_IDS: readonly [ColorId, ...ColorId[]];
|
|
196
|
-
//#endregion
|
|
197
|
-
//#region src/countries.d.ts
|
|
198
163
|
export interface Country {
|
|
199
164
|
name: string;
|
|
200
165
|
iso2: string;
|
|
@@ -2085,10 +2050,6 @@ export declare const getCountryByIso3: (iso3: string) => Country | undefined;
|
|
|
2085
2050
|
export declare const getAllCountries: () => Country[];
|
|
2086
2051
|
export declare const getPhoneMaxDigits: (iso2: string) => number;
|
|
2087
2052
|
export declare const getPhoneTrunkPrefix: (iso2: string) => string;
|
|
2088
|
-
/**
|
|
2089
|
-
* Type guard to check if a string is a valid ISO2 country code
|
|
2090
|
-
*/
|
|
2091
|
-
export declare const isValidIso2: (code: string) => code is CountryIso2;
|
|
2092
2053
|
/**
|
|
2093
2054
|
* Type guard to check if a string is a valid ISO3 country code
|
|
2094
2055
|
*/
|
|
@@ -2146,8 +2107,6 @@ export declare function narrowCountries<T>(list: readonly T[], allowed: readonly
|
|
|
2146
2107
|
* stripTrunkPrefix("06301234567", "06") // "301234567" (Hungary)
|
|
2147
2108
|
*/
|
|
2148
2109
|
export declare function stripTrunkPrefix(phoneNumber: string, trunkPrefix: string): string;
|
|
2149
|
-
//#endregion
|
|
2150
|
-
//#region src/currencies.d.ts
|
|
2151
2110
|
export interface Currency {
|
|
2152
2111
|
code: string;
|
|
2153
2112
|
name: string;
|
|
@@ -2505,17 +2464,11 @@ export declare const CURRENCIES: {
|
|
|
2505
2464
|
};
|
|
2506
2465
|
};
|
|
2507
2466
|
export type CurrencyCode = keyof typeof CURRENCIES;
|
|
2508
|
-
export type CurrencySymbol = (typeof CURRENCIES)[CurrencyCode]["symbol"];
|
|
2509
|
-
export type CurrencyName = (typeof CURRENCIES)[CurrencyCode]["name"];
|
|
2510
|
-
export declare const getCurrency: (code: string) => Currency | undefined;
|
|
2511
2467
|
export declare const getAllCurrencies: () => Currency[];
|
|
2512
|
-
export declare const getCurrencySymbol: (code: string) => string;
|
|
2513
2468
|
/**
|
|
2514
2469
|
* Type guard to check if a string is a valid currency code
|
|
2515
2470
|
*/
|
|
2516
2471
|
export declare const isValidCurrencyCode: (code: string) => code is CurrencyCode;
|
|
2517
|
-
//#endregion
|
|
2518
|
-
//#region src/file-kinds.d.ts
|
|
2519
2472
|
/**
|
|
2520
2473
|
* What a file looks like to a person, independent of how it is stored.
|
|
2521
2474
|
*
|
|
@@ -2580,16 +2533,10 @@ export declare function fileKindOf(file: {
|
|
|
2580
2533
|
}): FileKind;
|
|
2581
2534
|
/** The kind a published artifact wears. An unrecognised string is `unknown`. */
|
|
2582
2535
|
export declare function fileKindFromArtifactKind(kind: string): FileKind;
|
|
2583
|
-
//#endregion
|
|
2584
|
-
//#region src/hash.d.ts
|
|
2585
|
-
/** The colour an avatar may take: one element of `AVATAR_COLOR_IDS`. */
|
|
2586
|
-
export type AvatarColorId = (typeof AVATAR_COLOR_IDS)[number];
|
|
2587
2536
|
/** FNV-1a (32-bit, unsigned): small, stable, well spread for short strings. */
|
|
2588
2537
|
export declare function fnv1a32(value: string): number;
|
|
2589
2538
|
/** A stable avatar hue (one of the 10 non-neutral colours) derived from a string, e.g. an object type slug. */
|
|
2590
|
-
export declare function colorIdFromString(value: string):
|
|
2591
|
-
//#endregion
|
|
2592
|
-
//#region src/fileSizes.d.ts
|
|
2539
|
+
export declare function colorIdFromString(value: string): ColorId;
|
|
2593
2540
|
/**
|
|
2594
2541
|
* File size constants in bytes for intuitive file size validation
|
|
2595
2542
|
*
|
|
@@ -2628,38 +2575,6 @@ export declare const KILOBYTES: {
|
|
|
2628
2575
|
/** 500 KB (512,000 bytes) */
|
|
2629
2576
|
readonly KB_500: number;
|
|
2630
2577
|
};
|
|
2631
|
-
export declare const MEGABYTES: {
|
|
2632
|
-
/** 1 MB (1,048,576 bytes) */
|
|
2633
|
-
readonly MB_1: number;
|
|
2634
|
-
/** 2 MB (2,097,152 bytes) */
|
|
2635
|
-
readonly MB_2: number;
|
|
2636
|
-
/** 5 MB (5,242,880 bytes) */
|
|
2637
|
-
readonly MB_5: number;
|
|
2638
|
-
/** 10 MB (10,485,760 bytes) */
|
|
2639
|
-
readonly MB_10: number;
|
|
2640
|
-
/** 20 MB (20,971,520 bytes) */
|
|
2641
|
-
readonly MB_20: number;
|
|
2642
|
-
/** 25 MB (26,214,400 bytes) */
|
|
2643
|
-
readonly MB_25: number;
|
|
2644
|
-
/** 50 MB (52,428,800 bytes) */
|
|
2645
|
-
readonly MB_50: number;
|
|
2646
|
-
/** 100 MB (104,857,600 bytes) */
|
|
2647
|
-
readonly MB_100: number;
|
|
2648
|
-
/** 200 MB (209,715,200 bytes) */
|
|
2649
|
-
readonly MB_200: number;
|
|
2650
|
-
/** 500 MB (524,288,000 bytes) */
|
|
2651
|
-
readonly MB_500: number;
|
|
2652
|
-
};
|
|
2653
|
-
export declare const GIGABYTES: {
|
|
2654
|
-
/** 1 GB (1,073,741,824 bytes) */
|
|
2655
|
-
readonly GB_1: number;
|
|
2656
|
-
/** 2 GB (2,147,483,648 bytes) */
|
|
2657
|
-
readonly GB_2: number;
|
|
2658
|
-
/** 5 GB (5,368,709,120 bytes) */
|
|
2659
|
-
readonly GB_5: number;
|
|
2660
|
-
/** 10 GB (10,737,418,240 bytes) */
|
|
2661
|
-
readonly GB_10: number;
|
|
2662
|
-
};
|
|
2663
2578
|
/**
|
|
2664
2579
|
* All file size constants
|
|
2665
2580
|
*
|
|
@@ -2678,14 +2593,28 @@ export declare const GIGABYTES: {
|
|
|
2678
2593
|
* ```
|
|
2679
2594
|
*/
|
|
2680
2595
|
export declare const FILE_SIZE: {
|
|
2681
|
-
/** 1
|
|
2682
|
-
readonly
|
|
2683
|
-
/**
|
|
2684
|
-
readonly
|
|
2685
|
-
/**
|
|
2686
|
-
readonly
|
|
2687
|
-
/**
|
|
2688
|
-
readonly
|
|
2596
|
+
/** 1 byte */
|
|
2597
|
+
readonly B_1: 1;
|
|
2598
|
+
/** 10 bytes */
|
|
2599
|
+
readonly B_10: 10;
|
|
2600
|
+
/** 100 bytes */
|
|
2601
|
+
readonly B_100: 100;
|
|
2602
|
+
/** 512 bytes */
|
|
2603
|
+
readonly B_512: 512;
|
|
2604
|
+
/** 1 KB (1,024 bytes) */
|
|
2605
|
+
readonly KB_1: 1024;
|
|
2606
|
+
/** 2 KB (2,048 bytes) */
|
|
2607
|
+
readonly KB_2: number;
|
|
2608
|
+
/** 5 KB (5,120 bytes) */
|
|
2609
|
+
readonly KB_5: number;
|
|
2610
|
+
/** 10 KB (10,240 bytes) */
|
|
2611
|
+
readonly KB_10: number;
|
|
2612
|
+
/** 50 KB (51,200 bytes) */
|
|
2613
|
+
readonly KB_50: number;
|
|
2614
|
+
/** 100 KB (102,400 bytes) */
|
|
2615
|
+
readonly KB_100: number;
|
|
2616
|
+
/** 500 KB (512,000 bytes) */
|
|
2617
|
+
readonly KB_500: number;
|
|
2689
2618
|
/** 1 MB (1,048,576 bytes) */
|
|
2690
2619
|
readonly MB_1: number;
|
|
2691
2620
|
/** 2 MB (2,097,152 bytes) */
|
|
@@ -2706,96 +2635,15 @@ export declare const FILE_SIZE: {
|
|
|
2706
2635
|
readonly MB_200: number;
|
|
2707
2636
|
/** 500 MB (524,288,000 bytes) */
|
|
2708
2637
|
readonly MB_500: number;
|
|
2709
|
-
/** 1
|
|
2710
|
-
readonly
|
|
2711
|
-
/** 2
|
|
2712
|
-
readonly
|
|
2713
|
-
/** 5
|
|
2714
|
-
readonly
|
|
2715
|
-
/** 10
|
|
2716
|
-
readonly
|
|
2717
|
-
/** 50 KB (51,200 bytes) */
|
|
2718
|
-
readonly KB_50: number;
|
|
2719
|
-
/** 100 KB (102,400 bytes) */
|
|
2720
|
-
readonly KB_100: number;
|
|
2721
|
-
/** 500 KB (512,000 bytes) */
|
|
2722
|
-
readonly KB_500: number;
|
|
2723
|
-
/** 1 byte */
|
|
2724
|
-
readonly B_1: 1;
|
|
2725
|
-
/** 10 bytes */
|
|
2726
|
-
readonly B_10: 10;
|
|
2727
|
-
/** 100 bytes */
|
|
2728
|
-
readonly B_100: 100;
|
|
2729
|
-
/** 512 bytes */
|
|
2730
|
-
readonly B_512: 512;
|
|
2731
|
-
};
|
|
2732
|
-
/**
|
|
2733
|
-
* Recommended max sizes for common file types
|
|
2734
|
-
*/
|
|
2735
|
-
export declare const RECOMMENDED_MAX_SIZES: {
|
|
2736
|
-
/** Avatar/Profile pictures: 2 MB */
|
|
2737
|
-
readonly AVATAR: number;
|
|
2738
|
-
/** General images: 5 MB */
|
|
2739
|
-
readonly IMAGE: number;
|
|
2740
|
-
/** Documents (PDF, Word, etc.): 10 MB */
|
|
2741
|
-
readonly DOCUMENT: number;
|
|
2742
|
-
/** Presentations: 25 MB */
|
|
2743
|
-
readonly PRESENTATION: number;
|
|
2744
|
-
/** Audio files: 50 MB */
|
|
2745
|
-
readonly AUDIO: number;
|
|
2746
|
-
/** Video files: 500 MB */
|
|
2747
|
-
readonly VIDEO: number;
|
|
2748
|
-
/** Large archives: 1 GB */
|
|
2749
|
-
readonly ARCHIVE: number;
|
|
2638
|
+
/** 1 GB (1,073,741,824 bytes) */
|
|
2639
|
+
readonly GB_1: number;
|
|
2640
|
+
/** 2 GB (2,147,483,648 bytes) */
|
|
2641
|
+
readonly GB_2: number;
|
|
2642
|
+
/** 5 GB (5,368,709,120 bytes) */
|
|
2643
|
+
readonly GB_5: number;
|
|
2644
|
+
/** 10 GB (10,737,418,240 bytes) */
|
|
2645
|
+
readonly GB_10: number;
|
|
2750
2646
|
};
|
|
2751
|
-
/**
|
|
2752
|
-
* Convert megabytes to bytes
|
|
2753
|
-
*
|
|
2754
|
-
* @example
|
|
2755
|
-
* ```typescript
|
|
2756
|
-
* mbToBytes(5) // 5242880 (5 MB in bytes)
|
|
2757
|
-
* ```
|
|
2758
|
-
*/
|
|
2759
|
-
export declare const mbToBytes: (mb: number) => number;
|
|
2760
|
-
/**
|
|
2761
|
-
* Convert gigabytes to bytes
|
|
2762
|
-
*
|
|
2763
|
-
* @example
|
|
2764
|
-
* ```typescript
|
|
2765
|
-
* gbToBytes(1) // 1073741824 (1 GB in bytes)
|
|
2766
|
-
* ```
|
|
2767
|
-
*/
|
|
2768
|
-
export declare const gbToBytes: (gb: number) => number;
|
|
2769
|
-
/**
|
|
2770
|
-
* Convert bytes to megabytes
|
|
2771
|
-
*
|
|
2772
|
-
* @example
|
|
2773
|
-
* ```typescript
|
|
2774
|
-
* bytesToMb(5242880) // 5
|
|
2775
|
-
* ```
|
|
2776
|
-
*/
|
|
2777
|
-
export declare const bytesToMb: (bytes: number) => number;
|
|
2778
|
-
/**
|
|
2779
|
-
* Convert bytes to gigabytes
|
|
2780
|
-
*
|
|
2781
|
-
* @example
|
|
2782
|
-
* ```typescript
|
|
2783
|
-
* bytesToGb(1073741824) // 1
|
|
2784
|
-
* ```
|
|
2785
|
-
*/
|
|
2786
|
-
export declare const bytesToGb: (bytes: number) => number;
|
|
2787
|
-
/**
|
|
2788
|
-
* Check if file size is within limit
|
|
2789
|
-
*
|
|
2790
|
-
* @example
|
|
2791
|
-
* ```typescript
|
|
2792
|
-
* isWithinSizeLimit(1048576, FILE_SIZE.MB_5) // true
|
|
2793
|
-
* isWithinSizeLimit(6291456, FILE_SIZE.MB_5) // false
|
|
2794
|
-
* ```
|
|
2795
|
-
*/
|
|
2796
|
-
export declare const isWithinSizeLimit: (bytes: number, maxBytes: number) => boolean;
|
|
2797
|
-
//#endregion
|
|
2798
|
-
//#region src/memories.d.ts
|
|
2799
2647
|
/**
|
|
2800
2648
|
* Maximum length of a memory `name`. Memory names double as the identifier
|
|
2801
2649
|
* in a `memory:<name>` reference, so they stay short and slug-like.
|
|
@@ -2807,14 +2655,10 @@ export declare const MEMORY_NAME_MAX_LENGTH = 100;
|
|
|
2807
2655
|
* bounded to keep the whole memories block within a fixed ceiling.
|
|
2808
2656
|
*/
|
|
2809
2657
|
export declare const MEMORY_DESCRIPTION_MAX_LENGTH = 160;
|
|
2810
|
-
//#endregion
|
|
2811
|
-
//#region src/record-depth.d.ts
|
|
2812
2658
|
/** The deepest a record may sit in a hierarchy: a root is at depth 0. */
|
|
2813
2659
|
export declare const MAX_RECORD_DEPTH = 32;
|
|
2814
2660
|
/** The deepest a record drive's folders nest, and so a skill folder's files. */
|
|
2815
2661
|
export declare const RECORD_DRIVE_MAX_DEPTH = 5;
|
|
2816
|
-
//#endregion
|
|
2817
|
-
//#region src/mimeTypes.d.ts
|
|
2818
2662
|
/**
|
|
2819
2663
|
* Common MIME types for file validation
|
|
2820
2664
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
|
|
@@ -2831,7 +2675,6 @@ export declare const IMAGE_MIME_TYPES: {
|
|
|
2831
2675
|
readonly HEIC: "image/heic";
|
|
2832
2676
|
readonly HEIF: "image/heif";
|
|
2833
2677
|
};
|
|
2834
|
-
export declare const IMAGE_MIME_TYPES_ARRAY: ("image/jpeg" | "image/png" | "image/gif" | "image/webp" | "image/svg+xml" | "image/bmp" | "image/tiff" | "image/x-icon" | "image/heic" | "image/heif")[];
|
|
2835
2678
|
/**
|
|
2836
2679
|
* The images served INLINE to a browser, from a storage origin every tenant
|
|
2837
2680
|
* shares: a profile avatar, a record's image, a meeting bot's picture. Raster
|
|
@@ -2861,16 +2704,6 @@ export declare const DOCUMENT_MIME_TYPES: {
|
|
|
2861
2704
|
readonly CSV: "text/csv";
|
|
2862
2705
|
readonly MARKDOWN: "text/markdown";
|
|
2863
2706
|
};
|
|
2864
|
-
export declare const DOCUMENT_MIME_TYPES_ARRAY: ("application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/vnd.oasis.opendocument.text" | "application/vnd.oasis.opendocument.spreadsheet" | "application/vnd.oasis.opendocument.presentation" | "application/rtf" | "text/plain" | "text/csv" | "text/markdown")[];
|
|
2865
|
-
export declare const ARCHIVE_MIME_TYPES: {
|
|
2866
|
-
readonly ZIP: "application/zip";
|
|
2867
|
-
readonly RAR: "application/vnd.rar";
|
|
2868
|
-
readonly TAR: "application/x-tar";
|
|
2869
|
-
readonly GZIP: "application/gzip";
|
|
2870
|
-
readonly "7Z": "application/x-7z-compressed";
|
|
2871
|
-
readonly BZ2: "application/x-bzip2";
|
|
2872
|
-
};
|
|
2873
|
-
export declare const ARCHIVE_MIME_TYPES_ARRAY: ("application/zip" | "application/vnd.rar" | "application/x-tar" | "application/gzip" | "application/x-7z-compressed" | "application/x-bzip2")[];
|
|
2874
2707
|
export declare const AUDIO_MIME_TYPES: {
|
|
2875
2708
|
readonly MP3: "audio/mpeg";
|
|
2876
2709
|
readonly WAV: "audio/wav";
|
|
@@ -2880,19 +2713,6 @@ export declare const AUDIO_MIME_TYPES: {
|
|
|
2880
2713
|
readonly M4A: "audio/mp4";
|
|
2881
2714
|
readonly WEBM: "audio/webm";
|
|
2882
2715
|
};
|
|
2883
|
-
export declare const AUDIO_MIME_TYPES_ARRAY: ("audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/aac" | "audio/flac" | "audio/mp4" | "audio/webm")[];
|
|
2884
|
-
export declare const VIDEO_MIME_TYPES: {
|
|
2885
|
-
readonly MP4: "video/mp4";
|
|
2886
|
-
readonly WEBM: "video/webm";
|
|
2887
|
-
readonly OGG: "video/ogg";
|
|
2888
|
-
readonly AVI: "video/x-msvideo";
|
|
2889
|
-
readonly MOV: "video/quicktime";
|
|
2890
|
-
readonly MKV: "video/x-matroska";
|
|
2891
|
-
readonly FLV: "video/x-flv";
|
|
2892
|
-
readonly WMV: "video/x-ms-wmv";
|
|
2893
|
-
readonly MPEG: "video/mpeg";
|
|
2894
|
-
};
|
|
2895
|
-
export declare const VIDEO_MIME_TYPES_ARRAY: ("video/mp4" | "video/webm" | "video/ogg" | "video/x-msvideo" | "video/quicktime" | "video/x-matroska" | "video/x-flv" | "video/x-ms-wmv" | "video/mpeg")[];
|
|
2896
2716
|
export declare const CODE_MIME_TYPES: {
|
|
2897
2717
|
readonly JAVASCRIPT: "text/javascript";
|
|
2898
2718
|
/**
|
|
@@ -2914,136 +2734,12 @@ export declare const CODE_MIME_TYPES: {
|
|
|
2914
2734
|
readonly YAML: "application/x-yaml";
|
|
2915
2735
|
readonly SQL: "application/sql";
|
|
2916
2736
|
};
|
|
2917
|
-
export declare const CODE_MIME_TYPES_ARRAY: ("text/javascript" | "application/javascript" | "text/typescript" | "application/json" | "application/xml" | "text/html" | "application/xhtml+xml" | "text/css" | "text/x-python" | "text/x-java-source" | "text/x-c" | "text/x-c++" | "application/x-yaml" | "application/sql")[];
|
|
2918
2737
|
export declare const EMAIL_MIME_TYPES: {
|
|
2919
2738
|
/** Outlook message (`.msg`), a Compound File Binary container. */
|
|
2920
2739
|
readonly OUTLOOK: "application/vnd.ms-outlook";
|
|
2921
2740
|
/** RFC 822 message (`.eml`). */
|
|
2922
2741
|
readonly EML: "message/rfc822";
|
|
2923
2742
|
};
|
|
2924
|
-
export declare const EMAIL_MIME_TYPES_ARRAY: ("application/vnd.ms-outlook" | "message/rfc822")[];
|
|
2925
|
-
export declare const FONT_MIME_TYPES: {
|
|
2926
|
-
readonly TTF: "font/ttf";
|
|
2927
|
-
readonly OTF: "font/otf";
|
|
2928
|
-
readonly WOFF: "font/woff";
|
|
2929
|
-
readonly WOFF2: "font/woff2";
|
|
2930
|
-
readonly EOT: "application/vnd.ms-fontobject";
|
|
2931
|
-
};
|
|
2932
|
-
export declare const FONT_MIME_TYPES_ARRAY: ("font/ttf" | "font/otf" | "font/woff" | "font/woff2" | "application/vnd.ms-fontobject")[];
|
|
2933
|
-
/**
|
|
2934
|
-
* All image MIME types
|
|
2935
|
-
*/
|
|
2936
|
-
export declare const IMAGES: ("image/jpeg" | "image/png" | "image/gif" | "image/webp" | "image/svg+xml" | "image/bmp" | "image/tiff" | "image/x-icon" | "image/heic" | "image/heif")[];
|
|
2937
|
-
/**
|
|
2938
|
-
* All document MIME types
|
|
2939
|
-
*/
|
|
2940
|
-
export declare const DOCUMENTS: ("application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/vnd.oasis.opendocument.text" | "application/vnd.oasis.opendocument.spreadsheet" | "application/vnd.oasis.opendocument.presentation" | "application/rtf" | "text/plain" | "text/csv" | "text/markdown")[];
|
|
2941
|
-
/**
|
|
2942
|
-
* All archive MIME types
|
|
2943
|
-
*/
|
|
2944
|
-
export declare const ARCHIVES: ("application/zip" | "application/vnd.rar" | "application/x-tar" | "application/gzip" | "application/x-7z-compressed" | "application/x-bzip2")[];
|
|
2945
|
-
/**
|
|
2946
|
-
* All audio MIME types
|
|
2947
|
-
*/
|
|
2948
|
-
export declare const AUDIO: ("audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/aac" | "audio/flac" | "audio/mp4" | "audio/webm")[];
|
|
2949
|
-
/**
|
|
2950
|
-
* All video MIME types
|
|
2951
|
-
*/
|
|
2952
|
-
export declare const VIDEO: ("video/mp4" | "video/webm" | "video/ogg" | "video/x-msvideo" | "video/quicktime" | "video/x-matroska" | "video/x-flv" | "video/x-ms-wmv" | "video/mpeg")[];
|
|
2953
|
-
/**
|
|
2954
|
-
* All code MIME types
|
|
2955
|
-
*/
|
|
2956
|
-
export declare const CODE: ("text/javascript" | "application/javascript" | "text/typescript" | "application/json" | "application/xml" | "text/html" | "application/xhtml+xml" | "text/css" | "text/x-python" | "text/x-java-source" | "text/x-c" | "text/x-c++" | "application/x-yaml" | "application/sql")[];
|
|
2957
|
-
/**
|
|
2958
|
-
* All font MIME types
|
|
2959
|
-
*/
|
|
2960
|
-
export declare const FONTS: ("font/ttf" | "font/otf" | "font/woff" | "font/woff2" | "application/vnd.ms-fontobject")[];
|
|
2961
|
-
/**
|
|
2962
|
-
* All email message MIME types
|
|
2963
|
-
*/
|
|
2964
|
-
export declare const EMAILS: ("application/vnd.ms-outlook" | "message/rfc822")[];
|
|
2965
|
-
/**
|
|
2966
|
-
* Common web-safe image formats (JPEG, PNG, GIF, WebP)
|
|
2967
|
-
*/
|
|
2968
|
-
export declare const WEB_IMAGES: readonly ["image/jpeg", "image/png", "image/gif", "image/webp"];
|
|
2969
|
-
/**
|
|
2970
|
-
* Common office document formats (PDF, Word, Excel, PowerPoint)
|
|
2971
|
-
*/
|
|
2972
|
-
export declare const OFFICE_DOCUMENTS: readonly ["application/pdf", "application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/vnd.ms-powerpoint", "application/vnd.openxmlformats-officedocument.presentationml.presentation"];
|
|
2973
|
-
/**
|
|
2974
|
-
* Media files (images, audio, video)
|
|
2975
|
-
*/
|
|
2976
|
-
export declare const MEDIA: readonly ("image/jpeg" | "image/png" | "image/gif" | "image/webp" | "image/svg+xml" | "image/bmp" | "image/tiff" | "image/x-icon" | "image/heic" | "image/heif" | "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/aac" | "audio/flac" | "audio/mp4" | "audio/webm" | "video/mp4" | "video/webm" | "video/ogg" | "video/x-msvideo" | "video/quicktime" | "video/x-matroska" | "video/x-flv" | "video/x-ms-wmv" | "video/mpeg")[];
|
|
2977
|
-
/**
|
|
2978
|
-
* All MIME types combined
|
|
2979
|
-
*/
|
|
2980
|
-
export declare const ALL_MIME_TYPES: readonly ("image/jpeg" | "image/png" | "image/gif" | "image/webp" | "image/svg+xml" | "image/bmp" | "image/tiff" | "image/x-icon" | "image/heic" | "image/heif" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/vnd.oasis.opendocument.text" | "application/vnd.oasis.opendocument.spreadsheet" | "application/vnd.oasis.opendocument.presentation" | "application/rtf" | "text/plain" | "text/csv" | "text/markdown" | "text/javascript" | "application/javascript" | "text/typescript" | "application/json" | "application/xml" | "text/html" | "application/xhtml+xml" | "text/css" | "text/x-python" | "text/x-java-source" | "text/x-c" | "text/x-c++" | "application/x-yaml" | "application/sql" | "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/aac" | "audio/flac" | "audio/mp4" | "audio/webm" | "application/zip" | "application/vnd.rar" | "application/x-tar" | "application/gzip" | "application/x-7z-compressed" | "application/x-bzip2" | "video/mp4" | "video/webm" | "video/ogg" | "video/x-msvideo" | "video/quicktime" | "video/x-matroska" | "video/x-flv" | "video/x-ms-wmv" | "video/mpeg" | "application/vnd.ms-outlook" | "message/rfc822" | "font/ttf" | "font/otf" | "font/woff" | "font/woff2" | "application/vnd.ms-fontobject")[];
|
|
2981
|
-
/**
|
|
2982
|
-
* Union type of all valid MIME types
|
|
2983
|
-
*/
|
|
2984
|
-
export type MimeType = (typeof ALL_MIME_TYPES)[number];
|
|
2985
|
-
/**
|
|
2986
|
-
* Union type of all image MIME types
|
|
2987
|
-
*/
|
|
2988
|
-
export type ImageMimeType = (typeof IMAGE_MIME_TYPES_ARRAY)[number];
|
|
2989
|
-
/**
|
|
2990
|
-
* Union type of all document MIME types
|
|
2991
|
-
*/
|
|
2992
|
-
export type DocumentMimeType = (typeof DOCUMENT_MIME_TYPES_ARRAY)[number];
|
|
2993
|
-
/**
|
|
2994
|
-
* Union type of all archive MIME types
|
|
2995
|
-
*/
|
|
2996
|
-
export type ArchiveMimeType = (typeof ARCHIVE_MIME_TYPES_ARRAY)[number];
|
|
2997
|
-
/**
|
|
2998
|
-
* Union type of all audio MIME types
|
|
2999
|
-
*/
|
|
3000
|
-
export type AudioMimeType = (typeof AUDIO_MIME_TYPES_ARRAY)[number];
|
|
3001
|
-
/**
|
|
3002
|
-
* Union type of all video MIME types
|
|
3003
|
-
*/
|
|
3004
|
-
export type VideoMimeType = (typeof VIDEO_MIME_TYPES_ARRAY)[number];
|
|
3005
|
-
/**
|
|
3006
|
-
* Union type of all code MIME types
|
|
3007
|
-
*/
|
|
3008
|
-
export type CodeMimeType = (typeof CODE_MIME_TYPES_ARRAY)[number];
|
|
3009
|
-
/**
|
|
3010
|
-
* Union type of all font MIME types
|
|
3011
|
-
*/
|
|
3012
|
-
export type FontMimeType = (typeof FONT_MIME_TYPES_ARRAY)[number];
|
|
3013
|
-
/**
|
|
3014
|
-
* Union type of all email message MIME types
|
|
3015
|
-
*/
|
|
3016
|
-
export type EmailMimeType = (typeof EMAIL_MIME_TYPES_ARRAY)[number];
|
|
3017
|
-
/**
|
|
3018
|
-
* Check if a MIME type is an image
|
|
3019
|
-
*/
|
|
3020
|
-
export declare const isImageMimeType: (mimeType: string) => boolean;
|
|
3021
|
-
/**
|
|
3022
|
-
* Check if a MIME type is a document
|
|
3023
|
-
*/
|
|
3024
|
-
export declare const isDocumentMimeType: (mimeType: string) => boolean;
|
|
3025
|
-
/**
|
|
3026
|
-
* Check if a MIME type is an archive
|
|
3027
|
-
*/
|
|
3028
|
-
export declare const isArchiveMimeType: (mimeType: string) => boolean;
|
|
3029
|
-
/**
|
|
3030
|
-
* Check if a MIME type is audio
|
|
3031
|
-
*/
|
|
3032
|
-
export declare const isAudioMimeType: (mimeType: string) => boolean;
|
|
3033
|
-
/**
|
|
3034
|
-
* Check if a MIME type is video
|
|
3035
|
-
*/
|
|
3036
|
-
export declare const isVideoMimeType: (mimeType: string) => boolean;
|
|
3037
|
-
/**
|
|
3038
|
-
* Check if a MIME type is code
|
|
3039
|
-
*/
|
|
3040
|
-
export declare const isCodeMimeType: (mimeType: string) => boolean;
|
|
3041
|
-
/**
|
|
3042
|
-
* Check if a MIME type is an email message
|
|
3043
|
-
*/
|
|
3044
|
-
export declare const isEmailMimeType: (mimeType: string) => boolean;
|
|
3045
|
-
//#endregion
|
|
3046
|
-
//#region src/record-mentions.d.ts
|
|
3047
2743
|
/**
|
|
3048
2744
|
* The scheme a record mention's markdown link carries (#3413).
|
|
3049
2745
|
*
|
|
@@ -3082,8 +2778,6 @@ export declare const RECORD_MENTION_LINK: RegExp;
|
|
|
3082
2778
|
* ours, or is malformed, is skipped like any other link.
|
|
3083
2779
|
*/
|
|
3084
2780
|
export declare function extractRecordMentions(markdown: string): RecordMention[];
|
|
3085
|
-
//#endregion
|
|
3086
|
-
//#region src/skills.d.ts
|
|
3087
2781
|
/**
|
|
3088
2782
|
* Maximum length of a skill `name`: the Agent Skills standard's 64. A name is
|
|
3089
2783
|
* also the skill's folder name and its `skill:<name>` reference.
|
|
@@ -3127,12 +2821,8 @@ export declare function isControlCharacter(character: string): boolean;
|
|
|
3127
2821
|
export declare function isSafeSkillFilePath(path: string): boolean;
|
|
3128
2822
|
/** A skill file's text: its bytes as UTF-8 holding no NUL, or undefined for any other bytes. */
|
|
3129
2823
|
export declare function skillFileText(bytes: Uint8Array): string | undefined;
|
|
3130
|
-
//#endregion
|
|
3131
|
-
//#region src/tenant.d.ts
|
|
3132
2824
|
/** The shared single-tenant / master-tenant UUID used across web and api wiring. */
|
|
3133
2825
|
export declare const DEFAULT_TENANT_ID = "00000000-0000-0000-0000-000000000000";
|
|
3134
|
-
//#endregion
|
|
3135
|
-
//#region src/text-format-presets.d.ts
|
|
3136
2826
|
export type FormatPresetGroup = "communication" | "identifiants" | "business_fr" | "design";
|
|
3137
2827
|
export type FormatPreset = {
|
|
3138
2828
|
/** Stable identifier — referenced in tests and selection logic. */
|
|
@@ -3149,8 +2839,6 @@ export type FormatPreset = {
|
|
|
3149
2839
|
};
|
|
3150
2840
|
};
|
|
3151
2841
|
export declare const TEXT_FORMAT_PRESETS: readonly FormatPreset[];
|
|
3152
|
-
//#endregion
|
|
3153
|
-
//#region src/user-mentions.d.ts
|
|
3154
2842
|
/**
|
|
3155
2843
|
* The scheme a mention of a PERSON carries (#4228).
|
|
3156
2844
|
*
|
|
@@ -3182,5 +2870,4 @@ export declare const USER_MENTION_LINK: RegExp;
|
|
|
3182
2870
|
* each. A link whose href is not a user mention, or is malformed, is skipped
|
|
3183
2871
|
* like any other link.
|
|
3184
2872
|
*/
|
|
3185
|
-
export declare function extractUserMentionIds(markdown: string): string[];
|
|
3186
|
-
//#endregion
|
|
2873
|
+
export declare function extractUserMentionIds(markdown: string): string[];
|