Variable: W3CAnnotationSchema
@ghentcdh/annotated-text / W3CAnnotationSchema
Variable: W3CAnnotationSchema
const
W3CAnnotationSchema:ZodObject
<{@context
:ZodDefault
<ZodString
>;body
:ZodUnion
<[ZodArray
<ZodUnion
<[ZodUnion
<[ZodUnion
<[..., ...]>,ZodObject
<{purpose
: ...;type
: ...;value
: ...; },$strip
>]>,ZodObject
<{id
:ZodOptional
<ZodString
>;purpose
:ZodDefault
<ZodEnum
<...>>;source
:ZodOptional
<ZodString
>;type
:ZodDefault
<ZodEnum
<...>>;value
:ZodAny
; },$strip
>]>>,ZodUnion
<[ZodUnion
<[ZodUnion
<[ZodObject
<..., ...>,ZodObject
<..., ...>]>,ZodObject
<{purpose
:ZodDefault
<...>;type
:ZodDefault
<...>;value
:ZodOptional
<...>; },$strip
>]>,ZodObject
<{id
:ZodOptional
<ZodString
>;purpose
:ZodDefault
<ZodEnum
<{describing
: ...; }>>;source
:ZodOptional
<ZodString
>;type
:ZodDefault
<ZodEnum
<{SpecificResource
: ...; }>>;value
:ZodAny
; },$strip
>]>]>;id
:ZodString
;motivation
:ZodDefault
<ZodEnum
<{classifying
:"classifying"
;tagging
:"tagging"
; }>>;target
:ZodUnion
<[ZodArray
<ZodObject
<{processingLanguage
:ZodOptional
<ZodString
>;selector
:ZodOptional
<ZodObject
<{end
:ZodNumber
;start
:ZodNumber
;type
:ZodDefault
<...>; },$strip
>>;source
:ZodOptional
<ZodString
>;textDirection
:ZodOptional
<ZodEnum
<{ltr
:"ltr"
;rtl
:"rtl"
; }>>;type
:ZodDefault
<ZodEnum
<{Text
:"Text"
; }>>; },$strip
>>,ZodObject
<{processingLanguage
:ZodOptional
<ZodString
>;selector
:ZodOptional
<ZodObject
<{end
:ZodNumber
;start
:ZodNumber
;type
:ZodDefault
<ZodEnum
<...>>; },$strip
>>;source
:ZodOptional
<ZodString
>;textDirection
:ZodOptional
<ZodEnum
<{ltr
:"ltr"
;rtl
:"rtl"
; }>>;type
:ZodDefault
<ZodEnum
<{Text
:"Text"
; }>>; },$strip
>]>; },$strip
>
Defined in: libs/core/src/lib/adapter/annotation/w3c/model/w3c-annotation.model.ts:69