@fideus-labs/ngff-zarr 0.0.1 → 0.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.
Files changed (174) hide show
  1. package/README.md +9 -2
  2. package/esm/io/from_ngff_zarr.d.ts +4 -1
  3. package/esm/io/from_ngff_zarr.d.ts.map +1 -1
  4. package/esm/io/from_ngff_zarr.js +94 -27
  5. package/esm/io/hcs.d.ts +18 -0
  6. package/esm/io/hcs.d.ts.map +1 -0
  7. package/esm/io/hcs.js +51 -0
  8. package/esm/io/itk_image_to_ngff_image.d.ts +25 -0
  9. package/esm/io/itk_image_to_ngff_image.d.ts.map +1 -0
  10. package/esm/io/itk_image_to_ngff_image.js +127 -0
  11. package/esm/io/ngff_image_to_itk_image.d.ts +30 -0
  12. package/esm/io/ngff_image_to_itk_image.d.ts.map +1 -0
  13. package/esm/io/ngff_image_to_itk_image.js +216 -0
  14. package/esm/io/to_multiscales.d.ts +18 -0
  15. package/esm/io/to_multiscales.d.ts.map +1 -0
  16. package/esm/io/to_multiscales.js +62 -0
  17. package/esm/io/to_ngff_image.d.ts +17 -0
  18. package/esm/io/to_ngff_image.d.ts.map +1 -0
  19. package/esm/io/to_ngff_image.js +136 -0
  20. package/esm/io/to_ngff_zarr.d.ts +3 -2
  21. package/esm/io/to_ngff_zarr.d.ts.map +1 -1
  22. package/esm/io/to_ngff_zarr.js +273 -26
  23. package/esm/methods/itkwasm.d.ts +6 -0
  24. package/esm/methods/itkwasm.d.ts.map +1 -0
  25. package/esm/methods/itkwasm.js +816 -0
  26. package/esm/mod.d.ts +9 -2
  27. package/esm/mod.d.ts.map +1 -1
  28. package/esm/mod.js +10 -2
  29. package/esm/schemas/coordinate_systems.d.ts +644 -0
  30. package/esm/schemas/coordinate_systems.d.ts.map +1 -0
  31. package/esm/schemas/coordinate_systems.js +140 -0
  32. package/esm/schemas/index.d.ts +9 -0
  33. package/esm/schemas/index.d.ts.map +1 -0
  34. package/esm/schemas/index.js +38 -0
  35. package/esm/schemas/methods.d.ts.map +1 -1
  36. package/esm/schemas/methods.js +2 -0
  37. package/esm/schemas/multiscales.d.ts.map +1 -1
  38. package/esm/schemas/multiscales.js +2 -0
  39. package/esm/schemas/ngff_image.d.ts +9 -2
  40. package/esm/schemas/ngff_image.d.ts.map +1 -1
  41. package/esm/schemas/ngff_image.js +11 -2
  42. package/esm/schemas/ome_zarr.d.ts +581 -0
  43. package/esm/schemas/ome_zarr.d.ts.map +1 -0
  44. package/esm/schemas/ome_zarr.js +208 -0
  45. package/esm/schemas/rfc4.d.ts +439 -0
  46. package/esm/schemas/rfc4.d.ts.map +1 -0
  47. package/esm/schemas/rfc4.js +129 -0
  48. package/esm/schemas/units.d.ts.map +1 -1
  49. package/esm/schemas/units.js +5 -0
  50. package/esm/schemas/zarr_metadata.d.ts +302 -9
  51. package/esm/schemas/zarr_metadata.d.ts.map +1 -1
  52. package/esm/schemas/zarr_metadata.js +22 -1
  53. package/esm/types/array_interface.d.ts +7 -0
  54. package/esm/types/array_interface.d.ts.map +1 -0
  55. package/esm/types/array_interface.js +1 -0
  56. package/esm/types/hcs.d.ts +70 -0
  57. package/esm/types/hcs.d.ts.map +1 -0
  58. package/esm/types/hcs.js +204 -0
  59. package/esm/types/methods.d.ts.map +1 -1
  60. package/esm/types/methods.js +2 -0
  61. package/esm/types/multiscales.d.ts.map +1 -1
  62. package/esm/types/ngff_image.d.ts +6 -3
  63. package/esm/types/ngff_image.d.ts.map +1 -1
  64. package/esm/types/ngff_image.js +13 -1
  65. package/esm/types/rfc4.d.ts +94 -0
  66. package/esm/types/rfc4.d.ts.map +1 -0
  67. package/esm/types/rfc4.js +135 -0
  68. package/esm/types/units.d.ts +1 -1
  69. package/esm/types/units.d.ts.map +1 -1
  70. package/esm/types/zarr_metadata.d.ts +14 -5
  71. package/esm/types/zarr_metadata.d.ts.map +1 -1
  72. package/esm/utils/create_queue.d.ts +6 -0
  73. package/esm/utils/create_queue.d.ts.map +1 -0
  74. package/esm/utils/create_queue.js +11 -0
  75. package/esm/utils/factory.d.ts +1 -1
  76. package/esm/utils/factory.d.ts.map +1 -1
  77. package/esm/utils/factory.js +16 -7
  78. package/esm/utils/method_metadata.d.ts +10 -0
  79. package/esm/utils/method_metadata.d.ts.map +1 -0
  80. package/esm/utils/method_metadata.js +37 -0
  81. package/esm/utils/validation.d.ts.map +1 -1
  82. package/package.json +7 -1
  83. package/script/io/from_ngff_zarr.d.ts +4 -1
  84. package/script/io/from_ngff_zarr.d.ts.map +1 -1
  85. package/script/io/from_ngff_zarr.js +94 -27
  86. package/script/io/hcs.d.ts +18 -0
  87. package/script/io/hcs.d.ts.map +1 -0
  88. package/script/io/hcs.js +55 -0
  89. package/script/io/itk_image_to_ngff_image.d.ts +25 -0
  90. package/script/io/itk_image_to_ngff_image.d.ts.map +1 -0
  91. package/script/io/itk_image_to_ngff_image.js +153 -0
  92. package/script/io/ngff_image_to_itk_image.d.ts +30 -0
  93. package/script/io/ngff_image_to_itk_image.d.ts.map +1 -0
  94. package/script/io/ngff_image_to_itk_image.js +242 -0
  95. package/script/io/to_multiscales.d.ts +18 -0
  96. package/script/io/to_multiscales.d.ts.map +1 -0
  97. package/script/io/to_multiscales.js +67 -0
  98. package/script/io/to_ngff_image.d.ts +17 -0
  99. package/script/io/to_ngff_image.d.ts.map +1 -0
  100. package/script/io/to_ngff_image.js +162 -0
  101. package/script/io/to_ngff_zarr.d.ts +3 -2
  102. package/script/io/to_ngff_zarr.d.ts.map +1 -1
  103. package/script/io/to_ngff_zarr.js +273 -26
  104. package/script/methods/itkwasm.d.ts +6 -0
  105. package/script/methods/itkwasm.d.ts.map +1 -0
  106. package/script/methods/itkwasm.js +842 -0
  107. package/script/mod.d.ts +9 -2
  108. package/script/mod.d.ts.map +1 -1
  109. package/script/mod.js +12 -3
  110. package/script/schemas/coordinate_systems.d.ts +644 -0
  111. package/script/schemas/coordinate_systems.d.ts.map +1 -0
  112. package/script/schemas/coordinate_systems.js +143 -0
  113. package/script/schemas/index.d.ts +9 -0
  114. package/script/schemas/index.d.ts.map +1 -0
  115. package/script/schemas/index.js +101 -0
  116. package/script/schemas/methods.d.ts.map +1 -1
  117. package/script/schemas/methods.js +2 -0
  118. package/script/schemas/multiscales.d.ts.map +1 -1
  119. package/script/schemas/multiscales.js +2 -0
  120. package/script/schemas/ngff_image.d.ts +9 -2
  121. package/script/schemas/ngff_image.d.ts.map +1 -1
  122. package/script/schemas/ngff_image.js +11 -2
  123. package/script/schemas/ome_zarr.d.ts +581 -0
  124. package/script/schemas/ome_zarr.d.ts.map +1 -0
  125. package/script/schemas/ome_zarr.js +211 -0
  126. package/script/schemas/rfc4.d.ts +439 -0
  127. package/script/schemas/rfc4.d.ts.map +1 -0
  128. package/script/schemas/rfc4.js +132 -0
  129. package/script/schemas/units.d.ts.map +1 -1
  130. package/script/schemas/units.js +5 -0
  131. package/script/schemas/zarr_metadata.d.ts +302 -9
  132. package/script/schemas/zarr_metadata.d.ts.map +1 -1
  133. package/script/schemas/zarr_metadata.js +23 -2
  134. package/script/types/array_interface.d.ts +7 -0
  135. package/script/types/array_interface.d.ts.map +1 -0
  136. package/script/types/array_interface.js +2 -0
  137. package/script/types/hcs.d.ts +70 -0
  138. package/script/types/hcs.d.ts.map +1 -0
  139. package/script/types/hcs.js +233 -0
  140. package/script/types/methods.d.ts.map +1 -1
  141. package/script/types/methods.js +2 -0
  142. package/script/types/multiscales.d.ts.map +1 -1
  143. package/script/types/ngff_image.d.ts +6 -3
  144. package/script/types/ngff_image.d.ts.map +1 -1
  145. package/script/types/ngff_image.js +13 -1
  146. package/script/types/rfc4.d.ts +94 -0
  147. package/script/types/rfc4.d.ts.map +1 -0
  148. package/script/types/rfc4.js +143 -0
  149. package/script/types/units.d.ts +1 -1
  150. package/script/types/units.d.ts.map +1 -1
  151. package/script/types/zarr_metadata.d.ts +14 -5
  152. package/script/types/zarr_metadata.d.ts.map +1 -1
  153. package/script/utils/create_queue.d.ts +6 -0
  154. package/script/utils/create_queue.d.ts.map +1 -0
  155. package/script/utils/create_queue.js +17 -0
  156. package/script/utils/factory.d.ts +1 -1
  157. package/script/utils/factory.d.ts.map +1 -1
  158. package/script/utils/factory.js +39 -7
  159. package/script/utils/method_metadata.d.ts +10 -0
  160. package/script/utils/method_metadata.d.ts.map +1 -0
  161. package/script/utils/method_metadata.js +40 -0
  162. package/script/utils/validation.d.ts.map +1 -1
  163. package/esm/schemas/lazy_array.d.ts +0 -8
  164. package/esm/schemas/lazy_array.d.ts.map +0 -1
  165. package/esm/schemas/lazy_array.js +0 -7
  166. package/esm/types/lazy_array.d.ts +0 -18
  167. package/esm/types/lazy_array.d.ts.map +0 -1
  168. package/esm/types/lazy_array.js +0 -27
  169. package/script/schemas/lazy_array.d.ts +0 -8
  170. package/script/schemas/lazy_array.d.ts.map +0 -1
  171. package/script/schemas/lazy_array.js +0 -10
  172. package/script/types/lazy_array.d.ts +0 -18
  173. package/script/types/lazy_array.d.ts.map +0 -1
  174. package/script/types/lazy_array.js +0 -31
@@ -0,0 +1,208 @@
1
+ // SPDX-FileCopyrightText: Copyright (c) Fideus Labs LLC
2
+ // SPDX-License-Identifier: MIT
3
+ import { z } from "zod";
4
+ // Version schemas for different OME-Zarr specification versions
5
+ export const OmeZarrVersion01Schema = z.literal("0.1");
6
+ export const OmeZarrVersion02Schema = z.literal("0.2");
7
+ export const OmeZarrVersion03Schema = z.literal("0.3");
8
+ export const OmeZarrVersion04Schema = z.literal("0.4");
9
+ export const OmeZarrVersion05Schema = z.literal("0.5");
10
+ export const OmeZarrVersionSchema = z.union([
11
+ OmeZarrVersion01Schema,
12
+ OmeZarrVersion02Schema,
13
+ OmeZarrVersion03Schema,
14
+ OmeZarrVersion04Schema,
15
+ OmeZarrVersion05Schema,
16
+ ]);
17
+ // Common schemas used across versions
18
+ export const OmeroWindowSchema = z.object({
19
+ start: z.number(),
20
+ min: z.number(),
21
+ end: z.number(),
22
+ max: z.number(),
23
+ });
24
+ export const OmeroChannelSchema = z.object({
25
+ window: OmeroWindowSchema,
26
+ label: z.string().optional(),
27
+ family: z.string().optional(),
28
+ color: z.string(),
29
+ active: z.boolean().optional(),
30
+ });
31
+ export const OmeroChannelSchemaV01 = z.object({
32
+ window: OmeroWindowSchema,
33
+ label: z.string().optional(),
34
+ family: z.string().optional(),
35
+ color: z.string(),
36
+ active: z.boolean().optional(),
37
+ });
38
+ export const OmeroSchema = z.object({
39
+ channels: z.array(OmeroChannelSchema),
40
+ });
41
+ // Dataset schemas for different versions
42
+ export const DatasetSchemaV01 = z.object({
43
+ path: z.string(),
44
+ });
45
+ export const OmeZarrCoordinateTransformationSchema = z.union([
46
+ z.object({
47
+ type: z.literal("scale"),
48
+ scale: z.array(z.number()).min(2),
49
+ }),
50
+ z.object({
51
+ type: z.literal("translation"),
52
+ translation: z.array(z.number()).min(2),
53
+ }),
54
+ ]);
55
+ export const DatasetSchemaV05 = z.object({
56
+ path: z.string(),
57
+ coordinateTransformations: z
58
+ .array(OmeZarrCoordinateTransformationSchema)
59
+ .min(1),
60
+ });
61
+ // Axis schemas for different versions
62
+ export const AxisSchemaV05 = z.union([
63
+ z.object({
64
+ name: z.string(),
65
+ type: z.enum(["channel", "time", "space"]),
66
+ unit: z.string().optional(),
67
+ }),
68
+ z.object({
69
+ name: z.string(),
70
+ type: z
71
+ .string()
72
+ .refine((val) => !["space", "time", "channel"].includes(val)),
73
+ }),
74
+ ]);
75
+ // Multiscales schemas for different versions
76
+ export const MultiscalesSchemaV01 = z.object({
77
+ name: z.string().optional(),
78
+ datasets: z.array(DatasetSchemaV01).min(1),
79
+ version: OmeZarrVersion01Schema.optional(),
80
+ metadata: z
81
+ .object({
82
+ method: z.string().optional(),
83
+ version: z.string().optional(),
84
+ })
85
+ .optional(),
86
+ });
87
+ export const MultiscalesSchemaV05 = z.object({
88
+ name: z.string().optional(),
89
+ datasets: z.array(DatasetSchemaV05).min(1),
90
+ axes: z
91
+ .array(AxisSchemaV05)
92
+ .min(2)
93
+ .max(5)
94
+ .refine((axes) => {
95
+ const spaceAxes = axes.filter((axis) => typeof axis.type === "string" && axis.type === "space");
96
+ return spaceAxes.length >= 2 && spaceAxes.length <= 3;
97
+ }, {
98
+ message: "Must contain 2-3 space axes",
99
+ }),
100
+ coordinateTransformations: z
101
+ .array(OmeZarrCoordinateTransformationSchema)
102
+ .optional(),
103
+ });
104
+ // Image schemas for different versions
105
+ export const ImageSchemaV01 = z.object({
106
+ multiscales: z.array(MultiscalesSchemaV01).min(1),
107
+ omero: OmeroSchema.optional(),
108
+ });
109
+ export const ImageSchemaV05 = z.object({
110
+ ome: z.object({
111
+ multiscales: z.array(MultiscalesSchemaV05).min(1),
112
+ omero: OmeroSchema.optional(),
113
+ version: OmeZarrVersion05Schema,
114
+ }),
115
+ });
116
+ // Label schemas
117
+ export const LabelColorSchema = z.object({
118
+ "label-value": z.number(),
119
+ rgba: z.array(z.number().min(0).max(255)).length(4).optional(),
120
+ });
121
+ export const LabelPropertySchema = z.object({
122
+ "label-value": z.number(),
123
+ });
124
+ export const LabelSchemaV04 = z.object({
125
+ "image-label": z
126
+ .object({
127
+ colors: z.array(LabelColorSchema).min(1).optional(),
128
+ properties: z.array(LabelPropertySchema).min(1).optional(),
129
+ source: z
130
+ .object({
131
+ image: z.string().optional(),
132
+ })
133
+ .optional(),
134
+ version: OmeZarrVersion04Schema.optional(),
135
+ })
136
+ .optional(),
137
+ });
138
+ // Plate schemas
139
+ export const PlateAcquisitionSchema = z.object({
140
+ id: z.number().min(0),
141
+ maximumfieldcount: z.number().positive().optional(),
142
+ name: z.string().optional(),
143
+ description: z.string().optional(),
144
+ starttime: z.number().min(0).optional(),
145
+ endtime: z.number().min(0).optional(),
146
+ });
147
+ export const PlateColumnSchema = z.object({
148
+ name: z.string().regex(/^[A-Za-z0-9]+$/),
149
+ });
150
+ export const PlateRowSchema = z.object({
151
+ name: z.string().regex(/^[A-Za-z0-9]+$/),
152
+ });
153
+ export const PlateWellSchema = z.object({
154
+ path: z.string().regex(/^[A-Za-z0-9]+\/[A-Za-z0-9]+$/),
155
+ rowIndex: z.number().min(0),
156
+ columnIndex: z.number().min(0),
157
+ });
158
+ export const PlateSchemaV05 = z.object({
159
+ ome: z.object({
160
+ plate: z.object({
161
+ acquisitions: z.array(PlateAcquisitionSchema).optional(),
162
+ field_count: z.number().positive().optional(),
163
+ name: z.string().optional(),
164
+ columns: z.array(PlateColumnSchema).min(1),
165
+ rows: z.array(PlateRowSchema).min(1),
166
+ wells: z.array(PlateWellSchema).min(1),
167
+ }),
168
+ version: OmeZarrVersion05Schema,
169
+ }),
170
+ });
171
+ // Well schemas
172
+ export const WellImageSchema = z.object({
173
+ acquisition: z.number().optional(),
174
+ path: z.string().regex(/^[A-Za-z0-9]+$/),
175
+ });
176
+ export const WellSchemaV05 = z.object({
177
+ ome: z.object({
178
+ well: z.object({
179
+ images: z.array(WellImageSchema).min(1),
180
+ }),
181
+ version: OmeZarrVersion05Schema,
182
+ }),
183
+ });
184
+ // OME metadata schema (for ome.schema)
185
+ export const OmeSeriesSchema = z.object({
186
+ image: z.string(),
187
+ });
188
+ export const OmeMetadataSchema = z.object({
189
+ ome: z.object({
190
+ series: z.array(OmeSeriesSchema),
191
+ version: OmeZarrVersionSchema,
192
+ }),
193
+ });
194
+ // Union schemas for version-agnostic usage
195
+ export const ImageSchema = z.union([ImageSchemaV01, ImageSchemaV05]);
196
+ export const MultiscalesSchema = z.union([
197
+ MultiscalesSchemaV01,
198
+ MultiscalesSchemaV05,
199
+ ]);
200
+ // Comprehensive OME-Zarr metadata schema that can handle any version
201
+ export const OmeZarrMetadataSchema = z.union([
202
+ ImageSchemaV01,
203
+ ImageSchemaV05,
204
+ LabelSchemaV04,
205
+ PlateSchemaV05,
206
+ WellSchemaV05,
207
+ OmeMetadataSchema,
208
+ ]);
@@ -0,0 +1,439 @@
1
+ import { z } from "zod";
2
+ export declare const AnatomicalOrientationValuesSchema: z.ZodEnum<{
3
+ "left-to-right": "left-to-right";
4
+ "right-to-left": "right-to-left";
5
+ "anterior-to-posterior": "anterior-to-posterior";
6
+ "posterior-to-anterior": "posterior-to-anterior";
7
+ "inferior-to-superior": "inferior-to-superior";
8
+ "superior-to-inferior": "superior-to-inferior";
9
+ "dorsal-to-ventral": "dorsal-to-ventral";
10
+ "ventral-to-dorsal": "ventral-to-dorsal";
11
+ "dorsal-to-palmar": "dorsal-to-palmar";
12
+ "palmar-to-dorsal": "palmar-to-dorsal";
13
+ "dorsal-to-plantar": "dorsal-to-plantar";
14
+ "plantar-to-dorsal": "plantar-to-dorsal";
15
+ "rostral-to-caudal": "rostral-to-caudal";
16
+ "caudal-to-rostral": "caudal-to-rostral";
17
+ "cranial-to-caudal": "cranial-to-caudal";
18
+ "caudal-to-cranial": "caudal-to-cranial";
19
+ "proximal-to-distal": "proximal-to-distal";
20
+ "distal-to-proximal": "distal-to-proximal";
21
+ }>;
22
+ export declare const AnatomicalOrientationSchema: z.ZodObject<{
23
+ type: z.ZodLiteral<"anatomical">;
24
+ value: z.ZodEnum<{
25
+ "left-to-right": "left-to-right";
26
+ "right-to-left": "right-to-left";
27
+ "anterior-to-posterior": "anterior-to-posterior";
28
+ "posterior-to-anterior": "posterior-to-anterior";
29
+ "inferior-to-superior": "inferior-to-superior";
30
+ "superior-to-inferior": "superior-to-inferior";
31
+ "dorsal-to-ventral": "dorsal-to-ventral";
32
+ "ventral-to-dorsal": "ventral-to-dorsal";
33
+ "dorsal-to-palmar": "dorsal-to-palmar";
34
+ "palmar-to-dorsal": "palmar-to-dorsal";
35
+ "dorsal-to-plantar": "dorsal-to-plantar";
36
+ "plantar-to-dorsal": "plantar-to-dorsal";
37
+ "rostral-to-caudal": "rostral-to-caudal";
38
+ "caudal-to-rostral": "caudal-to-rostral";
39
+ "cranial-to-caudal": "cranial-to-caudal";
40
+ "caudal-to-cranial": "caudal-to-cranial";
41
+ "proximal-to-distal": "proximal-to-distal";
42
+ "distal-to-proximal": "distal-to-proximal";
43
+ }>;
44
+ }, z.core.$strip>;
45
+ export declare const OrientationTypeSchema: z.ZodEnum<{
46
+ anatomical: "anatomical";
47
+ }>;
48
+ export declare const OrientationSchema: z.ZodObject<{
49
+ type: z.ZodEnum<{
50
+ anatomical: "anatomical";
51
+ }>;
52
+ value: z.ZodEnum<{
53
+ "left-to-right": "left-to-right";
54
+ "right-to-left": "right-to-left";
55
+ "anterior-to-posterior": "anterior-to-posterior";
56
+ "posterior-to-anterior": "posterior-to-anterior";
57
+ "inferior-to-superior": "inferior-to-superior";
58
+ "superior-to-inferior": "superior-to-inferior";
59
+ "dorsal-to-ventral": "dorsal-to-ventral";
60
+ "ventral-to-dorsal": "ventral-to-dorsal";
61
+ "dorsal-to-palmar": "dorsal-to-palmar";
62
+ "palmar-to-dorsal": "palmar-to-dorsal";
63
+ "dorsal-to-plantar": "dorsal-to-plantar";
64
+ "plantar-to-dorsal": "plantar-to-dorsal";
65
+ "rostral-to-caudal": "rostral-to-caudal";
66
+ "caudal-to-rostral": "caudal-to-rostral";
67
+ "cranial-to-caudal": "cranial-to-caudal";
68
+ "caudal-to-cranial": "caudal-to-cranial";
69
+ "proximal-to-distal": "proximal-to-distal";
70
+ "distal-to-proximal": "distal-to-proximal";
71
+ }>;
72
+ }, z.core.$strip>;
73
+ export declare const AxesNamesSchema: z.ZodEnum<{
74
+ c: "c";
75
+ x: "x";
76
+ y: "y";
77
+ z: "z";
78
+ t: "t";
79
+ }>;
80
+ export declare const SpaceAxesNamesSchema: z.ZodEnum<{
81
+ x: "x";
82
+ y: "y";
83
+ z: "z";
84
+ }>;
85
+ export declare const AxisTypeSchema: z.ZodEnum<{
86
+ time: "time";
87
+ space: "space";
88
+ channel: "channel";
89
+ }>;
90
+ export declare const SpaceUnitSchema: z.ZodEnum<{
91
+ angstrom: "angstrom";
92
+ attometer: "attometer";
93
+ centimeter: "centimeter";
94
+ decimeter: "decimeter";
95
+ exameter: "exameter";
96
+ femtometer: "femtometer";
97
+ foot: "foot";
98
+ gigameter: "gigameter";
99
+ hectometer: "hectometer";
100
+ inch: "inch";
101
+ kilometer: "kilometer";
102
+ megameter: "megameter";
103
+ meter: "meter";
104
+ micrometer: "micrometer";
105
+ mile: "mile";
106
+ millimeter: "millimeter";
107
+ nanometer: "nanometer";
108
+ parsec: "parsec";
109
+ petameter: "petameter";
110
+ picometer: "picometer";
111
+ terameter: "terameter";
112
+ yard: "yard";
113
+ yoctometer: "yoctometer";
114
+ yottameter: "yottameter";
115
+ zeptometer: "zeptometer";
116
+ zettameter: "zettameter";
117
+ }>;
118
+ export declare const TimeUnitSchema: z.ZodEnum<{
119
+ attosecond: "attosecond";
120
+ centisecond: "centisecond";
121
+ day: "day";
122
+ decisecond: "decisecond";
123
+ exasecond: "exasecond";
124
+ femtosecond: "femtosecond";
125
+ gigasecond: "gigasecond";
126
+ hectosecond: "hectosecond";
127
+ hour: "hour";
128
+ kilosecond: "kilosecond";
129
+ megasecond: "megasecond";
130
+ microsecond: "microsecond";
131
+ millisecond: "millisecond";
132
+ minute: "minute";
133
+ nanosecond: "nanosecond";
134
+ petasecond: "petasecond";
135
+ picosecond: "picosecond";
136
+ second: "second";
137
+ terasecond: "terasecond";
138
+ yoctosecond: "yoctosecond";
139
+ yottasecond: "yottasecond";
140
+ zeptosecond: "zeptosecond";
141
+ zettasecond: "zettasecond";
142
+ }>;
143
+ export declare const BaseAxisSchema: z.ZodObject<{
144
+ name: z.ZodString;
145
+ type: z.ZodEnum<{
146
+ time: "time";
147
+ space: "space";
148
+ channel: "channel";
149
+ }>;
150
+ }, z.core.$strip>;
151
+ export declare const ChannelAxisSchema: z.ZodObject<{
152
+ name: z.ZodLiteral<"c">;
153
+ type: z.ZodLiteral<"channel">;
154
+ }, z.core.$strip>;
155
+ export declare const SpaceAxisSchema: z.ZodObject<{
156
+ name: z.ZodEnum<{
157
+ x: "x";
158
+ y: "y";
159
+ z: "z";
160
+ }>;
161
+ type: z.ZodLiteral<"space">;
162
+ unit: z.ZodEnum<{
163
+ angstrom: "angstrom";
164
+ attometer: "attometer";
165
+ centimeter: "centimeter";
166
+ decimeter: "decimeter";
167
+ exameter: "exameter";
168
+ femtometer: "femtometer";
169
+ foot: "foot";
170
+ gigameter: "gigameter";
171
+ hectometer: "hectometer";
172
+ inch: "inch";
173
+ kilometer: "kilometer";
174
+ megameter: "megameter";
175
+ meter: "meter";
176
+ micrometer: "micrometer";
177
+ mile: "mile";
178
+ millimeter: "millimeter";
179
+ nanometer: "nanometer";
180
+ parsec: "parsec";
181
+ petameter: "petameter";
182
+ picometer: "picometer";
183
+ terameter: "terameter";
184
+ yard: "yard";
185
+ yoctometer: "yoctometer";
186
+ yottameter: "yottameter";
187
+ zeptometer: "zeptometer";
188
+ zettameter: "zettameter";
189
+ }>;
190
+ orientation: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
191
+ type: z.ZodLiteral<"anatomical">;
192
+ value: z.ZodEnum<{
193
+ "left-to-right": "left-to-right";
194
+ "right-to-left": "right-to-left";
195
+ "anterior-to-posterior": "anterior-to-posterior";
196
+ "posterior-to-anterior": "posterior-to-anterior";
197
+ "inferior-to-superior": "inferior-to-superior";
198
+ "superior-to-inferior": "superior-to-inferior";
199
+ "dorsal-to-ventral": "dorsal-to-ventral";
200
+ "ventral-to-dorsal": "ventral-to-dorsal";
201
+ "dorsal-to-palmar": "dorsal-to-palmar";
202
+ "palmar-to-dorsal": "palmar-to-dorsal";
203
+ "dorsal-to-plantar": "dorsal-to-plantar";
204
+ "plantar-to-dorsal": "plantar-to-dorsal";
205
+ "rostral-to-caudal": "rostral-to-caudal";
206
+ "caudal-to-rostral": "caudal-to-rostral";
207
+ "cranial-to-caudal": "cranial-to-caudal";
208
+ "caudal-to-cranial": "caudal-to-cranial";
209
+ "proximal-to-distal": "proximal-to-distal";
210
+ "distal-to-proximal": "distal-to-proximal";
211
+ }>;
212
+ }, z.core.$strip>, z.ZodNull]>>;
213
+ }, z.core.$strip>;
214
+ export declare const TimeAxisSchema: z.ZodObject<{
215
+ name: z.ZodLiteral<"t">;
216
+ type: z.ZodLiteral<"time">;
217
+ unit: z.ZodEnum<{
218
+ attosecond: "attosecond";
219
+ centisecond: "centisecond";
220
+ day: "day";
221
+ decisecond: "decisecond";
222
+ exasecond: "exasecond";
223
+ femtosecond: "femtosecond";
224
+ gigasecond: "gigasecond";
225
+ hectosecond: "hectosecond";
226
+ hour: "hour";
227
+ kilosecond: "kilosecond";
228
+ megasecond: "megasecond";
229
+ microsecond: "microsecond";
230
+ millisecond: "millisecond";
231
+ minute: "minute";
232
+ nanosecond: "nanosecond";
233
+ petasecond: "petasecond";
234
+ picosecond: "picosecond";
235
+ second: "second";
236
+ terasecond: "terasecond";
237
+ yoctosecond: "yoctosecond";
238
+ yottasecond: "yottasecond";
239
+ zeptosecond: "zeptosecond";
240
+ zettasecond: "zettasecond";
241
+ }>;
242
+ }, z.core.$strip>;
243
+ export declare const AxisSchema: z.ZodUnion<readonly [z.ZodObject<{
244
+ name: z.ZodLiteral<"c">;
245
+ type: z.ZodLiteral<"channel">;
246
+ }, z.core.$strip>, z.ZodObject<{
247
+ name: z.ZodEnum<{
248
+ x: "x";
249
+ y: "y";
250
+ z: "z";
251
+ }>;
252
+ type: z.ZodLiteral<"space">;
253
+ unit: z.ZodEnum<{
254
+ angstrom: "angstrom";
255
+ attometer: "attometer";
256
+ centimeter: "centimeter";
257
+ decimeter: "decimeter";
258
+ exameter: "exameter";
259
+ femtometer: "femtometer";
260
+ foot: "foot";
261
+ gigameter: "gigameter";
262
+ hectometer: "hectometer";
263
+ inch: "inch";
264
+ kilometer: "kilometer";
265
+ megameter: "megameter";
266
+ meter: "meter";
267
+ micrometer: "micrometer";
268
+ mile: "mile";
269
+ millimeter: "millimeter";
270
+ nanometer: "nanometer";
271
+ parsec: "parsec";
272
+ petameter: "petameter";
273
+ picometer: "picometer";
274
+ terameter: "terameter";
275
+ yard: "yard";
276
+ yoctometer: "yoctometer";
277
+ yottameter: "yottameter";
278
+ zeptometer: "zeptometer";
279
+ zettameter: "zettameter";
280
+ }>;
281
+ orientation: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
282
+ type: z.ZodLiteral<"anatomical">;
283
+ value: z.ZodEnum<{
284
+ "left-to-right": "left-to-right";
285
+ "right-to-left": "right-to-left";
286
+ "anterior-to-posterior": "anterior-to-posterior";
287
+ "posterior-to-anterior": "posterior-to-anterior";
288
+ "inferior-to-superior": "inferior-to-superior";
289
+ "superior-to-inferior": "superior-to-inferior";
290
+ "dorsal-to-ventral": "dorsal-to-ventral";
291
+ "ventral-to-dorsal": "ventral-to-dorsal";
292
+ "dorsal-to-palmar": "dorsal-to-palmar";
293
+ "palmar-to-dorsal": "palmar-to-dorsal";
294
+ "dorsal-to-plantar": "dorsal-to-plantar";
295
+ "plantar-to-dorsal": "plantar-to-dorsal";
296
+ "rostral-to-caudal": "rostral-to-caudal";
297
+ "caudal-to-rostral": "caudal-to-rostral";
298
+ "cranial-to-caudal": "cranial-to-caudal";
299
+ "caudal-to-cranial": "caudal-to-cranial";
300
+ "proximal-to-distal": "proximal-to-distal";
301
+ "distal-to-proximal": "distal-to-proximal";
302
+ }>;
303
+ }, z.core.$strip>, z.ZodNull]>>;
304
+ }, z.core.$strip>, z.ZodObject<{
305
+ name: z.ZodLiteral<"t">;
306
+ type: z.ZodLiteral<"time">;
307
+ unit: z.ZodEnum<{
308
+ attosecond: "attosecond";
309
+ centisecond: "centisecond";
310
+ day: "day";
311
+ decisecond: "decisecond";
312
+ exasecond: "exasecond";
313
+ femtosecond: "femtosecond";
314
+ gigasecond: "gigasecond";
315
+ hectosecond: "hectosecond";
316
+ hour: "hour";
317
+ kilosecond: "kilosecond";
318
+ megasecond: "megasecond";
319
+ microsecond: "microsecond";
320
+ millisecond: "millisecond";
321
+ minute: "minute";
322
+ nanosecond: "nanosecond";
323
+ petasecond: "petasecond";
324
+ picosecond: "picosecond";
325
+ second: "second";
326
+ terasecond: "terasecond";
327
+ yoctosecond: "yoctosecond";
328
+ yottasecond: "yottasecond";
329
+ zeptosecond: "zeptosecond";
330
+ zettasecond: "zettasecond";
331
+ }>;
332
+ }, z.core.$strip>]>;
333
+ export declare const AxesSchema: z.ZodObject<{
334
+ axes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
335
+ name: z.ZodLiteral<"c">;
336
+ type: z.ZodLiteral<"channel">;
337
+ }, z.core.$strip>, z.ZodObject<{
338
+ name: z.ZodEnum<{
339
+ x: "x";
340
+ y: "y";
341
+ z: "z";
342
+ }>;
343
+ type: z.ZodLiteral<"space">;
344
+ unit: z.ZodEnum<{
345
+ angstrom: "angstrom";
346
+ attometer: "attometer";
347
+ centimeter: "centimeter";
348
+ decimeter: "decimeter";
349
+ exameter: "exameter";
350
+ femtometer: "femtometer";
351
+ foot: "foot";
352
+ gigameter: "gigameter";
353
+ hectometer: "hectometer";
354
+ inch: "inch";
355
+ kilometer: "kilometer";
356
+ megameter: "megameter";
357
+ meter: "meter";
358
+ micrometer: "micrometer";
359
+ mile: "mile";
360
+ millimeter: "millimeter";
361
+ nanometer: "nanometer";
362
+ parsec: "parsec";
363
+ petameter: "petameter";
364
+ picometer: "picometer";
365
+ terameter: "terameter";
366
+ yard: "yard";
367
+ yoctometer: "yoctometer";
368
+ yottameter: "yottameter";
369
+ zeptometer: "zeptometer";
370
+ zettameter: "zettameter";
371
+ }>;
372
+ orientation: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
373
+ type: z.ZodLiteral<"anatomical">;
374
+ value: z.ZodEnum<{
375
+ "left-to-right": "left-to-right";
376
+ "right-to-left": "right-to-left";
377
+ "anterior-to-posterior": "anterior-to-posterior";
378
+ "posterior-to-anterior": "posterior-to-anterior";
379
+ "inferior-to-superior": "inferior-to-superior";
380
+ "superior-to-inferior": "superior-to-inferior";
381
+ "dorsal-to-ventral": "dorsal-to-ventral";
382
+ "ventral-to-dorsal": "ventral-to-dorsal";
383
+ "dorsal-to-palmar": "dorsal-to-palmar";
384
+ "palmar-to-dorsal": "palmar-to-dorsal";
385
+ "dorsal-to-plantar": "dorsal-to-plantar";
386
+ "plantar-to-dorsal": "plantar-to-dorsal";
387
+ "rostral-to-caudal": "rostral-to-caudal";
388
+ "caudal-to-rostral": "caudal-to-rostral";
389
+ "cranial-to-caudal": "cranial-to-caudal";
390
+ "caudal-to-cranial": "caudal-to-cranial";
391
+ "proximal-to-distal": "proximal-to-distal";
392
+ "distal-to-proximal": "distal-to-proximal";
393
+ }>;
394
+ }, z.core.$strip>, z.ZodNull]>>;
395
+ }, z.core.$strip>, z.ZodObject<{
396
+ name: z.ZodLiteral<"t">;
397
+ type: z.ZodLiteral<"time">;
398
+ unit: z.ZodEnum<{
399
+ attosecond: "attosecond";
400
+ centisecond: "centisecond";
401
+ day: "day";
402
+ decisecond: "decisecond";
403
+ exasecond: "exasecond";
404
+ femtosecond: "femtosecond";
405
+ gigasecond: "gigasecond";
406
+ hectosecond: "hectosecond";
407
+ hour: "hour";
408
+ kilosecond: "kilosecond";
409
+ megasecond: "megasecond";
410
+ microsecond: "microsecond";
411
+ millisecond: "millisecond";
412
+ minute: "minute";
413
+ nanosecond: "nanosecond";
414
+ petasecond: "petasecond";
415
+ picosecond: "picosecond";
416
+ second: "second";
417
+ terasecond: "terasecond";
418
+ yoctosecond: "yoctosecond";
419
+ yottasecond: "yottasecond";
420
+ zeptosecond: "zeptosecond";
421
+ zettasecond: "zettasecond";
422
+ }>;
423
+ }, z.core.$strip>]>>>>;
424
+ }, z.core.$strip>;
425
+ export type AnatomicalOrientationValues = z.infer<typeof AnatomicalOrientationValuesSchema>;
426
+ export type AnatomicalOrientation = z.infer<typeof AnatomicalOrientationSchema>;
427
+ export type Orientation = z.infer<typeof OrientationSchema>;
428
+ export type AxesNames = z.infer<typeof AxesNamesSchema>;
429
+ export type SpaceAxesNames = z.infer<typeof SpaceAxesNamesSchema>;
430
+ export type AxisType = z.infer<typeof AxisTypeSchema>;
431
+ export type SpaceUnit = z.infer<typeof SpaceUnitSchema>;
432
+ export type TimeUnit = z.infer<typeof TimeUnitSchema>;
433
+ export type BaseAxis = z.infer<typeof BaseAxisSchema>;
434
+ export type ChannelAxis = z.infer<typeof ChannelAxisSchema>;
435
+ export type SpaceAxis = z.infer<typeof SpaceAxisSchema>;
436
+ export type TimeAxis = z.infer<typeof TimeAxisSchema>;
437
+ export type Axis = z.infer<typeof AxisSchema>;
438
+ export type Axes = z.infer<typeof AxesSchema>;
439
+ //# sourceMappingURL=rfc4.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rfc4.d.ts","sourceRoot":"","sources":["../../src/schemas/rfc4.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;EAmB5C,CAAC;AAGH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;iBAGtC,CAAC;AAGH,eAAO,MAAM,qBAAqB;;EAAyB,CAAC;AAC5D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;iBAG5B,CAAC;AAGH,eAAO,MAAM,eAAe;;;;;;EAAoC,CAAC;AAGjE,eAAO,MAAM,oBAAoB;;;;EAA0B,CAAC;AAG5D,eAAO,MAAM,cAAc;;;;EAAuC,CAAC;AAGnE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2B1B,CAAC;AAGH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;EAwBzB,CAAC;AAGH,eAAO,MAAM,cAAc;;;;;;;iBAGzB,CAAC;AAGH,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC;AAGH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK1B,CAAC;AAGH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIzB,CAAC;AAGH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAIrB,CAAC;AAGH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAErB,CAAC;AAGH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,iCAAiC,CACzC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAC9C,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}