You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
128 lines
2.5 KiB
128 lines
2.5 KiB
// Public surface of the sium artifact. The sub-barrels (`core`, `types`,
|
|
// `langs`) are already named — this file enumerates them at the top level for
|
|
// ergonomic single-import use. Consumers who want a tighter import surface
|
|
// can reach the sub-barrels directly via `$sium/core`, `$sium/types`,
|
|
// `$sium/langs`.
|
|
|
|
export { createEngineSium } from './engine-sium';
|
|
export type { EngineSium, EngineSiumOptions } from './engine-sium';
|
|
export { createSiumDiagnostics, emitSiumDiagnostic, issueDiagnosticMeta } from './diagnostics';
|
|
|
|
export { SIUM_MODULE, SIUM_DIAGNOSTIC_EVENTS } from './consts';
|
|
export {
|
|
SIUM_ERR,
|
|
SIUM_ERR_ASYNC_SCHEMA,
|
|
SIUM_ERR_DISCRIMINATED_UNION,
|
|
SIUM_ERR_DISCRIMINATED_UNION_MEMBER_MISSING_KEY,
|
|
SIUM_ERR_DISCRIMINATED_UNION_MEMBER_NOT_LITERAL,
|
|
SIUM_ERR_DISCRIMINATED_UNION_MEMBER_NOT_OBJECT,
|
|
SIUM_ERR_ENCODE,
|
|
SIUM_ERR_ENCODE_EXPECTS_ARRAY,
|
|
SIUM_ERR_ENCODE_EXPECTS_OBJECT,
|
|
SIUM_ERR_ENCODE_NO_MATCH,
|
|
SIUM_ERR_LAZY_RESOLVING,
|
|
SIUM_ERR_VALIDATION,
|
|
SIUM_ERROR_MESSAGES,
|
|
SIUM_ERRORS,
|
|
SIUM_LOG_MSG_RESOLVE_FALLBACK,
|
|
SiumAsyncSchemaError,
|
|
SiumDiscriminatedUnionError,
|
|
SiumEncodeExpectsArrayError,
|
|
SiumEncodeExpectsObjectError,
|
|
SiumEncodeNoMatchError,
|
|
SiumLazyResolvingError,
|
|
SiumValidationError,
|
|
isSiumAsyncSchemaError,
|
|
isSiumDiscriminatedUnionError,
|
|
isSiumEncodeExpectsArrayError,
|
|
isSiumEncodeExpectsObjectError,
|
|
isSiumEncodeNoMatchError,
|
|
isSiumLazyResolvingError,
|
|
isSiumValidationError
|
|
} from './errors';
|
|
export type { SiumDiscriminatedUnionFault } from './errors';
|
|
|
|
// core
|
|
export {
|
|
string,
|
|
number,
|
|
boolean,
|
|
literal,
|
|
enumOf,
|
|
optional,
|
|
nullable,
|
|
defaulted,
|
|
object,
|
|
array,
|
|
union,
|
|
discriminated,
|
|
lazy,
|
|
serializeSchema,
|
|
countLeafFields,
|
|
walkSchema,
|
|
pipe,
|
|
refine,
|
|
transform,
|
|
codec,
|
|
meta,
|
|
min,
|
|
max,
|
|
length,
|
|
regex,
|
|
email,
|
|
url,
|
|
integer
|
|
} from './core';
|
|
export type {
|
|
SerializedSchema,
|
|
SerializedShape,
|
|
StandardSchemaV1,
|
|
Schema,
|
|
Step,
|
|
Issue,
|
|
Result,
|
|
Ctx,
|
|
SchemaKind,
|
|
SchemaWrapper,
|
|
SchemaEffect,
|
|
SiumIntrospection,
|
|
SiumShape,
|
|
MetaAnnotations,
|
|
RefineFailure
|
|
} from './core';
|
|
|
|
// types (domain values)
|
|
export {
|
|
timeValue,
|
|
timeRange,
|
|
hour,
|
|
minute,
|
|
second,
|
|
dayPeriod,
|
|
dateValue,
|
|
dateRange,
|
|
year,
|
|
month,
|
|
day,
|
|
coerceDate,
|
|
colorValue,
|
|
red,
|
|
green,
|
|
blue,
|
|
hue,
|
|
saturation,
|
|
lightness,
|
|
brightness,
|
|
alpha
|
|
} from './types';
|
|
|
|
// langs
|
|
export { ISSUE_CODES, resolve, siumLangs } from './langs';
|
|
export type { IssueCode } from './langs';
|
|
export type {
|
|
SiumDiagnosticEvent,
|
|
SiumDiagnosticMeta,
|
|
SiumDiagnostics,
|
|
SiumDiagnosticType
|
|
} from './diagnostics';
|