Optional$comment?: stringComments are ignored when interpreting the schema.
Optional$defs?: {Optional$id?: stringIdentifier for this schema. This schema might be referenced by $ref clause in other schemas.
Optional$ref?: stringReference to another schema.
Optional$schema?: stringSchema of this schema. Set to "https://json-schema.org/draft-07/schema".
OptionaladditionalItems?: OptionaladditionalProperties?: OptionalallOf?: (Optionalannotations?: {ECHO-specific annotations.
Optionalannotations?: { [key: string]: any }OptionalformInline?: booleanRender a referenced object's fields inline in forms. Mapped from FormInlineAnnotationId.
Optionalgenerator?: Generator function for this schema.
Mapped from GeneratorAnnotationId; mirrors GeneratorAnnotationValue, whose object
form ({ generator, args }) is used by schemas like Task — a narrower contract here makes
those schemas unserializable (Operation.serialize fails on any operation referencing them).
OptionallabelProp?: JsonPath | JsonPath[]Label for this schema. Mapped from LabelAnnotationId.
Optionalmeta?: { [key: string]: any }PropertyMeta annotations get serialized here.
Optionaltype?: { schemaId?: string; typename: string; version: string }OptionalanyOf?: (Optionalconst?: anyThis schema only matches values that are equal to this value.
Optionalcontains?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...OptionalcontentEncoding?: stringOptionalcontentMediaType?: stringOptionalcurrency?: stringOptionaldefault?: anyDefault value for this schema.
Optionaldefinitions?: {Optionaldependencies?: {Optionaldescription?: stringDescription of this schema.
Optionalecho?: {Optionalannotations?: { [key: string]: any }OptionalformInline?: booleanRender a referenced object's fields inline in forms. Mapped from FormInlineAnnotationId.
Optionalgenerator?: Generator function for this schema.
Mapped from GeneratorAnnotationId; mirrors GeneratorAnnotationValue, whose object
form ({ generator, args }) is used by schemas like Task — a narrower contract here makes
those schemas unserializable (Operation.serialize fails on any operation referencing them).
OptionallabelProp?: JsonPath | JsonPath[]Label for this schema. Mapped from LabelAnnotationId.
Optionalmeta?: { [key: string]: any }PropertyMeta annotations get serialized here.
Optionaltype?: { schemaId?: string; typename: string; version: string }Optionalelse?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...OptionalentityKind?: Object | Relation | TypeDefines whether this schema is an object schema or a relation schema.
Optionalenum?: any[]This schema only matches one of the values in this array.
Optionalexamples?: any[]Examples of instances of this schema.
OptionalexclusiveMaximum?: numberOptionalexclusiveMinimum?: numberOptionalformat?: stringSerialized from FormatAnnotationId.
Optionalif?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...Optionalitems?: Optionalmaximum?: numberOptionalmaxItems?: numberOptionalmaxLength?: numberOptionalmaxProperties?: numberOptionalminimum?: numberOptionalminItems?: numberOptionalminLength?: numberOptionalminProperties?: numberOptionalmultipleOf?: numberOptionalnot?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...OptionaloneOf?: (Optionalpattern?: stringRegex pattern for strings.
OptionalpatternProperties?: {Optionalproperties?: {OptionalpropertyNames?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...OptionalpropertyOrder?: string[]Non-standard JSON Schema extension. Defines the order of properties in the object. The unmentioned properties are placed at the end.
Related: https://github.com/json-schema/json-schema/issues/119
OptionalreadOnly?: booleanWhether this schema is read-only.
Optionalreference?: {OptionalrelationSource?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...Source of this relation. Only for relation schemas. The referenced schema must be an object schema.
OptionalrelationTarget?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...Target of this relation. Only for relation schemas. The referenced schema must be an object schema.
Optionalrequired?: string[]Optionalthen?: { required?: string[] | undefined; then?: ... | undefined; version?: string | undefined; annotations?: { annotations?: { [x: string]: any; } | undefined; labelProp?: JsonPath | JsonPath[] | undefined; generator?: string | ... 2 more ... | undefined; meta?: { ...; } | undefined; formInline?: boolean | undefined; type...Optionaltitle?: stringTitle of this schema.
Optionaltype?: Base type of the schema.
Optionaltypename?: stringTypename of this schema. Only on schema representing an ECHO object.
OptionaluniqueItems?: booleanOptionalversion?: stringVersion of this schema. Custom dialect for ECHO.
OptionalwriteOnly?: booleanWhether this schema is write-only.
Optionalname
Mutable view of a
Type.Type— the shape passed to theType.updatecallback. OutsideType.update,Type.Typefields are read-only (both at the type level and at runtime — direct assignment throws). Use this to constrain mutation to the change context, analogous toObj.update(obj, (draft) => ...).NOTE:
typenameandversionare intentionally absent — they live inEntityMeta(key/version— the canonical registry-provenance pair). Read them via getTypename / getVersion / getMeta;typenameis treated as immutable on persisted entities.Unlike
Obj.update— whose mutable view is inferred asMutable<A>over the whole instance type because every data field is editable — aType.Typeexposes onlynameandjsonSchemafor mutation. The rest of its shape (id, the[KindId]/[SchemaKindId]brands, andtypename/versionin meta) is immutable, so this view is declared explicitly rather than derived fromInstanceType<Type.Type>.