moritzbrantner-runtime-core 0.1.2

Domain-neutral runtime surface contracts and adapter helpers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
use serde::{Deserialize, Serialize};

/// Stable identifier for a curated type in the package landscape.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[serde(transparent)]
pub struct LandscapeTypeId(pub String);

impl LandscapeTypeId {
    pub fn new(value: impl Into<String>) -> Self {
        Self(value.into())
    }

    pub fn as_str(&self) -> &str {
        &self.0
    }
}

impl From<&str> for LandscapeTypeId {
    fn from(value: &str) -> Self {
        Self(value.to_string())
    }
}

impl From<String> for LandscapeTypeId {
    fn from(value: String) -> Self {
        Self(value)
    }
}

/// Stable identifier for a curated function in the package landscape.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[serde(transparent)]
pub struct LandscapeFunctionId(pub String);

impl LandscapeFunctionId {
    pub fn new(value: impl Into<String>) -> Self {
        Self(value.into())
    }

    pub fn as_str(&self) -> &str {
        &self.0
    }
}

impl From<&str> for LandscapeFunctionId {
    fn from(value: &str) -> Self {
        Self(value.to_string())
    }
}

impl From<String> for LandscapeFunctionId {
    fn from(value: String) -> Self {
        Self(value)
    }
}

/// Reference to a curated type without depending on the owning domain crate.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct LandscapeTypeRef {
    pub id: LandscapeTypeId,
    pub owner: String,
    pub rust_type: Option<String>,
    pub schema_ref: Option<String>,
}

impl LandscapeTypeRef {
    pub fn new(id: impl Into<LandscapeTypeId>, owner: impl Into<String>) -> Self {
        Self {
            id: id.into(),
            owner: owner.into(),
            rust_type: None,
            schema_ref: None,
        }
    }

    pub fn rust_type(mut self, value: impl Into<String>) -> Self {
        self.rust_type = Some(value.into());
        self
    }

    pub fn schema_ref(mut self, value: impl Into<String>) -> Self {
        self.schema_ref = Some(value.into());
        self
    }
}

/// A curated function input or output.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct LandscapePort {
    pub name: String,
    #[serde(rename = "typeRef")]
    pub type_ref: LandscapeTypeRef,
    pub required: bool,
    pub cardinality: LandscapeCardinality,
}

impl LandscapePort {
    pub fn new(name: impl Into<String>, type_ref: LandscapeTypeRef) -> Self {
        Self {
            name: name.into(),
            type_ref,
            required: true,
            cardinality: LandscapeCardinality::One,
        }
    }

    pub fn optional(mut self) -> Self {
        self.required = false;
        self.cardinality = LandscapeCardinality::Optional;
        self
    }

    pub fn many(mut self) -> Self {
        self.cardinality = LandscapeCardinality::Many;
        self
    }
}

/// Cardinality of a curated function input or output.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub enum LandscapeCardinality {
    One,
    Optional,
    Many,
}

/// Curated function metadata for one operation.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct LandscapeFunction {
    pub id: LandscapeFunctionId,
    pub owner: String,
    pub inputs: Vec<LandscapePort>,
    pub outputs: Vec<LandscapePort>,
    pub stability: LandscapeStability,
}

impl LandscapeFunction {
    pub fn new(id: impl Into<LandscapeFunctionId>, owner: impl Into<String>) -> Self {
        Self {
            id: id.into(),
            owner: owner.into(),
            inputs: Vec::new(),
            outputs: Vec::new(),
            stability: LandscapeStability::Stable,
        }
    }

    pub fn input(mut self, port: LandscapePort) -> Self {
        self.inputs.push(port);
        self
    }

    pub fn output(mut self, port: LandscapePort) -> Self {
        self.outputs.push(port);
        self
    }

    pub fn stability(mut self, stability: LandscapeStability) -> Self {
        self.stability = stability;
        self
    }
}

/// Release stability for curated landscape metadata.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub enum LandscapeStability {
    Stable,
    Experimental,
    Internal,
}

/// Landscape metadata attached to one surface operation.
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct LandscapeOperationContract {
    pub function: LandscapeFunction,
}

impl LandscapeOperationContract {
    pub fn new(function: LandscapeFunction) -> Self {
        Self { function }
    }
}

/// Returns known package owners for curated landscape metadata.
pub fn known_owner_packages() -> &'static [&'static str] {
    well_known::known_owner_packages()
}

/// Validates a curated landscape contract without checking domain semantics.
pub fn validate_landscape_contract(contract: &LandscapeOperationContract) -> Result<(), String> {
    validate_landscape_function(&contract.function)
}

/// Validates one curated function declaration.
pub fn validate_landscape_function(function: &LandscapeFunction) -> Result<(), String> {
    if function.id.as_str().trim().is_empty() {
        return Err("curated function id must not be empty".to_string());
    }
    validate_owner("curated function", &function.owner)?;
    if !matches!(function.stability, LandscapeStability::Internal) {
        if function.inputs.is_empty() {
            return Err(format!(
                "curated function `{}` must declare at least one input",
                function.id.as_str()
            ));
        }
        if function.outputs.is_empty() {
            return Err(format!(
                "curated function `{}` must declare at least one output",
                function.id.as_str()
            ));
        }
    }
    for port in function.inputs.iter().chain(function.outputs.iter()) {
        validate_port(function.id.as_str(), port)?;
    }
    Ok(())
}

fn validate_port(function_id: &str, port: &LandscapePort) -> Result<(), String> {
    if port.name.trim().is_empty() {
        return Err(format!(
            "curated function `{function_id}` has a port with an empty name"
        ));
    }
    if port.type_ref.id.as_str().trim().is_empty() {
        return Err(format!(
            "curated function `{function_id}` port `{}` has an empty type id",
            port.name
        ));
    }
    validate_owner(
        &format!("curated function `{function_id}` port `{}`", port.name),
        &port.type_ref.owner,
    )
}

fn validate_owner(context: &str, owner: &str) -> Result<(), String> {
    if owner.trim().is_empty() {
        return Err(format!("{context} owner must not be empty"));
    }
    if !known_owner_packages().contains(&owner) {
        return Err(format!("{context} owner `{owner}` is not known"));
    }
    Ok(())
}

/// Well-known curated type references for foundational contract owners.
pub mod well_known {
    use super::{LandscapeTypeId, LandscapeTypeRef};

    pub const OWNER_RUNTIME_CORE: &str = "moritzbrantner-runtime-core";
    pub const OWNER_TEXT_CORE: &str = "moritzbrantner-text-core";
    pub const OWNER_TEXT_TRANSCRIPTS: &str = "moritzbrantner-text-transcripts";
    pub const OWNER_TEXT_ANALYSIS: &str = "moritzbrantner-text-analysis";
    pub const OWNER_TEXT_RETRIEVAL: &str = "moritzbrantner-text-retrieval";
    pub const OWNER_IMAGE_ANALYSIS_CORE: &str = "moritzbrantner-image-analysis-core";
    pub const OWNER_IMAGE_ANALYSIS_DETECTION: &str = "moritzbrantner-image-analysis-detection";
    pub const OWNER_AUDIO_ANALYSIS_CORE: &str = "moritzbrantner-audio-analysis-core";
    pub const OWNER_AUDIO_ANALYSIS_TRANSCRIPTION: &str =
        "moritzbrantner-audio-analysis-transcription";
    pub const OWNER_VISION_CORE: &str = "moritzbrantner-vision-core";
    pub const OWNER_VECTOR_ANALYSIS_CORE: &str = "moritzbrantner-vector-analysis-core";
    pub const OWNER_TENSOR_DATA: &str = "moritzbrantner-tensor-data";
    pub const OWNER_NUMBERS_CORE: &str = "moritzbrantner-numbers-core";
    pub const OWNER_MATH_GEOMETRY_2D: &str = "moritzbrantner-math-geometry-2d";
    pub const OWNER_VIDEO_ANALYSIS_CORE: &str = "moritzbrantner-video-analysis-core";
    pub const OWNER_VIDEO_ANALYSIS_DETECTORS: &str = "moritzbrantner-video-analysis-detectors";
    pub const OWNER_VIDEO_ANALYSIS_OUTPUT: &str = "moritzbrantner-video-analysis-output";
    pub const OWNER_VIDEO_ANALYSIS_RECONSTRUCTION: &str =
        "moritzbrantner-video-analysis-reconstruction";
    pub const OWNER_VIDEO_ANALYSIS_SFM: &str = "moritzbrantner-video-analysis-sfm";
    pub const OWNER_VIDEO_ANALYSIS_RADIANCE_FIELDS: &str =
        "moritzbrantner-video-analysis-radiance-fields";
    pub const OWNER_VIDEO_ANALYSIS_RADIANCE_PIPELINE: &str =
        "moritzbrantner-video-analysis-radiance-pipeline";

    pub const RUNTIME_SURFACE_REQUEST: &str = "runtime.surfaceRequest";
    pub const RUNTIME_SURFACE_RESPONSE: &str = "runtime.surfaceResponse";
    pub const TEXT_DOCUMENT: &str = "text.document";
    pub const TEXT_SEGMENT: &str = "text.segment";
    pub const TEXT_TRANSCRIPT_SEGMENT: &str = "text.transcriptSegment";
    pub const TEXT_ANALYSIS_REPORT: &str = "text.analysisReport";
    pub const TEXT_RETRIEVAL_QUERY: &str = "text.retrievalQuery";
    pub const TEXT_SEARCH_RESULT: &str = "text.searchResult";
    pub const IMAGE_IMAGE: &str = "image.image";
    pub const IMAGE_DETECTION_REQUEST: &str = "image.detectionRequest";
    pub const AUDIO_FRAME: &str = "audio.frame";
    pub const AUDIO_SOURCE: &str = "audio.source";
    pub const AUDIO_TRANSCRIPTION_CONFIG: &str = "audio.transcriptionConfig";
    pub const VISION_DETECTION: &str = "vision.detection";
    pub const VISION_EMBEDDING: &str = "vision.embedding";
    pub const VECTOR_VECTOR: &str = "vector.vector";
    pub const TENSOR_F32_TENSOR: &str = "tensor.f32Tensor";
    pub const NUMBERS_SUMMARY: &str = "numbers.summary";
    pub const GEOMETRY_RECT_U32: &str = "geometry.rectU32";
    pub const GEOMETRY_POINT2F: &str = "geometry.point2f";
    pub const VIDEO_TIMECODE: &str = "video.timecode";
    pub const VIDEO_FRAME: &str = "video.frame";
    pub const VIDEO_SCENE: &str = "video.scene";
    pub const VIDEO_SCENE_LIST: &str = "video.sceneList";
    pub const VIDEO_DETECTOR_CONFIG: &str = "video.detectorConfig";
    pub const VIDEO_CAMERA: &str = "video.camera";
    pub const VIDEO_CAMERA_PATH: &str = "video.cameraPath";
    pub const VIDEO_RECONSTRUCTION: &str = "video.reconstruction";
    pub const VIDEO_SFM_MATCH_PLAN: &str = "video.sfmMatchPlan";
    pub const VIDEO_RADIANCE_ASSET: &str = "video.radianceAsset";

    pub fn runtime_surface_request() -> LandscapeTypeRef {
        type_ref(
            RUNTIME_SURFACE_REQUEST,
            OWNER_RUNTIME_CORE,
            "runtime_core::SurfaceRequest",
        )
    }

    pub fn runtime_surface_response() -> LandscapeTypeRef {
        type_ref(
            RUNTIME_SURFACE_RESPONSE,
            OWNER_RUNTIME_CORE,
            "runtime_core::SurfaceResponse",
        )
    }

    pub fn text_document() -> LandscapeTypeRef {
        type_ref(
            TEXT_DOCUMENT,
            OWNER_TEXT_CORE,
            "text_core::TextDocumentContract",
        )
    }

    pub fn text_segment() -> LandscapeTypeRef {
        type_ref(
            TEXT_SEGMENT,
            OWNER_TEXT_CORE,
            "text_core::TextSegmentContract",
        )
    }

    pub fn text_transcript_segment() -> LandscapeTypeRef {
        type_ref(
            TEXT_TRANSCRIPT_SEGMENT,
            OWNER_TEXT_TRANSCRIPTS,
            "text_transcripts::TranscriptSegmentContract",
        )
    }

    pub fn text_analysis_report() -> LandscapeTypeRef {
        type_ref(
            TEXT_ANALYSIS_REPORT,
            OWNER_TEXT_ANALYSIS,
            "text_analysis::DocumentAnalysisReport",
        )
    }

    pub fn text_retrieval_query() -> LandscapeTypeRef {
        type_ref(
            TEXT_RETRIEVAL_QUERY,
            OWNER_TEXT_RETRIEVAL,
            "text_retrieval::SearchQuery",
        )
    }

    pub fn text_search_result() -> LandscapeTypeRef {
        type_ref(
            TEXT_SEARCH_RESULT,
            OWNER_TEXT_RETRIEVAL,
            "text_retrieval::SearchResult",
        )
    }

    pub fn image_image() -> LandscapeTypeRef {
        type_ref(
            IMAGE_IMAGE,
            OWNER_IMAGE_ANALYSIS_CORE,
            "image_analysis_core::OwnedImage",
        )
    }

    pub fn image_detection_request() -> LandscapeTypeRef {
        type_ref(
            IMAGE_DETECTION_REQUEST,
            OWNER_IMAGE_ANALYSIS_DETECTION,
            "image_analysis_detection::ImageDetectionRequest",
        )
    }

    pub fn audio_frame() -> LandscapeTypeRef {
        type_ref(
            AUDIO_FRAME,
            OWNER_AUDIO_ANALYSIS_CORE,
            "video_analysis_core::OwnedAudioFrame",
        )
    }

    pub fn audio_source() -> LandscapeTypeRef {
        type_ref(
            AUDIO_SOURCE,
            OWNER_AUDIO_ANALYSIS_TRANSCRIPTION,
            "audio_analysis_transcription::TranscriptionSource",
        )
    }

    pub fn audio_transcription_config() -> LandscapeTypeRef {
        type_ref(
            AUDIO_TRANSCRIPTION_CONFIG,
            OWNER_AUDIO_ANALYSIS_TRANSCRIPTION,
            "audio_analysis_transcription::TranscriptionPipelineRequest",
        )
    }

    pub fn vision_detection() -> LandscapeTypeRef {
        type_ref(
            VISION_DETECTION,
            OWNER_VISION_CORE,
            "vision_core::VisualDetection",
        )
    }

    pub fn vision_embedding() -> LandscapeTypeRef {
        type_ref(
            VISION_EMBEDDING,
            OWNER_VISION_CORE,
            "vision_core::VisualEmbedding",
        )
    }

    pub fn vector_vector() -> LandscapeTypeRef {
        type_ref(
            VECTOR_VECTOR,
            OWNER_VECTOR_ANALYSIS_CORE,
            "vector_analysis_core::DenseVector",
        )
    }

    pub fn tensor_f32_tensor() -> LandscapeTypeRef {
        type_ref(
            TENSOR_F32_TENSOR,
            OWNER_TENSOR_DATA,
            "tensor_data::F32Tensor",
        )
    }

    pub fn numbers_summary() -> LandscapeTypeRef {
        type_ref(
            NUMBERS_SUMMARY,
            OWNER_NUMBERS_CORE,
            "numbers_core::NumberSummary",
        )
    }

    pub fn geometry_rect_u32() -> LandscapeTypeRef {
        type_ref(
            GEOMETRY_RECT_U32,
            OWNER_MATH_GEOMETRY_2D,
            "math_geometry_2d::RectU32",
        )
    }

    pub fn geometry_point2f() -> LandscapeTypeRef {
        type_ref(
            GEOMETRY_POINT2F,
            OWNER_MATH_GEOMETRY_2D,
            "math_geometry_2d::Point2f",
        )
    }

    pub fn video_timecode() -> LandscapeTypeRef {
        type_ref(
            VIDEO_TIMECODE,
            OWNER_VIDEO_ANALYSIS_CORE,
            "video_analysis_core::FrameTimecode",
        )
    }

    pub fn video_frame() -> LandscapeTypeRef {
        type_ref(
            VIDEO_FRAME,
            OWNER_VIDEO_ANALYSIS_CORE,
            "video_analysis_core::VideoFrame",
        )
    }

    pub fn video_scene() -> LandscapeTypeRef {
        type_ref(
            VIDEO_SCENE,
            OWNER_VIDEO_ANALYSIS_CORE,
            "video_analysis_core::Scene",
        )
    }

    pub fn video_scene_list() -> LandscapeTypeRef {
        type_ref(
            VIDEO_SCENE_LIST,
            OWNER_VIDEO_ANALYSIS_OUTPUT,
            "video_analysis_output::SceneList",
        )
    }

    pub fn video_detector_config() -> LandscapeTypeRef {
        type_ref(
            VIDEO_DETECTOR_CONFIG,
            OWNER_VIDEO_ANALYSIS_DETECTORS,
            "video_analysis_detectors::WeightedCompositeDetector",
        )
    }

    pub fn video_camera() -> LandscapeTypeRef {
        type_ref(
            VIDEO_CAMERA,
            OWNER_VIDEO_ANALYSIS_RADIANCE_FIELDS,
            "video_analysis_radiance_fields::CameraView",
        )
    }

    pub fn video_camera_path() -> LandscapeTypeRef {
        type_ref(
            VIDEO_CAMERA_PATH,
            OWNER_VIDEO_ANALYSIS_RADIANCE_FIELDS,
            "video_analysis_radiance_fields::CameraPath",
        )
    }

    pub fn video_reconstruction() -> LandscapeTypeRef {
        type_ref(
            VIDEO_RECONSTRUCTION,
            OWNER_VIDEO_ANALYSIS_RECONSTRUCTION,
            "video_analysis_reconstruction::Reconstruction",
        )
    }

    pub fn video_sfm_match_plan() -> LandscapeTypeRef {
        type_ref(
            VIDEO_SFM_MATCH_PLAN,
            OWNER_VIDEO_ANALYSIS_SFM,
            "video_analysis_sfm::SfmRequest",
        )
    }

    pub fn video_radiance_asset() -> LandscapeTypeRef {
        type_ref(
            VIDEO_RADIANCE_ASSET,
            OWNER_VIDEO_ANALYSIS_RADIANCE_PIPELINE,
            "video_analysis_radiance_pipeline::RadianceAsset",
        )
    }

    pub fn known_owner_packages() -> &'static [&'static str] {
        &[
            OWNER_RUNTIME_CORE,
            OWNER_TEXT_CORE,
            OWNER_TEXT_TRANSCRIPTS,
            OWNER_TEXT_ANALYSIS,
            OWNER_TEXT_RETRIEVAL,
            OWNER_IMAGE_ANALYSIS_CORE,
            OWNER_IMAGE_ANALYSIS_DETECTION,
            OWNER_AUDIO_ANALYSIS_CORE,
            OWNER_AUDIO_ANALYSIS_TRANSCRIPTION,
            OWNER_VISION_CORE,
            OWNER_VECTOR_ANALYSIS_CORE,
            OWNER_TENSOR_DATA,
            OWNER_NUMBERS_CORE,
            OWNER_MATH_GEOMETRY_2D,
            OWNER_VIDEO_ANALYSIS_CORE,
            OWNER_VIDEO_ANALYSIS_DETECTORS,
            OWNER_VIDEO_ANALYSIS_OUTPUT,
            OWNER_VIDEO_ANALYSIS_RECONSTRUCTION,
            OWNER_VIDEO_ANALYSIS_SFM,
            OWNER_VIDEO_ANALYSIS_RADIANCE_FIELDS,
            OWNER_VIDEO_ANALYSIS_RADIANCE_PIPELINE,
        ]
    }

    pub fn known_type_ids() -> &'static [&'static str] {
        &[
            RUNTIME_SURFACE_REQUEST,
            RUNTIME_SURFACE_RESPONSE,
            TEXT_DOCUMENT,
            TEXT_SEGMENT,
            TEXT_TRANSCRIPT_SEGMENT,
            TEXT_ANALYSIS_REPORT,
            TEXT_RETRIEVAL_QUERY,
            TEXT_SEARCH_RESULT,
            IMAGE_IMAGE,
            IMAGE_DETECTION_REQUEST,
            AUDIO_FRAME,
            AUDIO_SOURCE,
            AUDIO_TRANSCRIPTION_CONFIG,
            VISION_DETECTION,
            VISION_EMBEDDING,
            VECTOR_VECTOR,
            TENSOR_F32_TENSOR,
            NUMBERS_SUMMARY,
            GEOMETRY_RECT_U32,
            GEOMETRY_POINT2F,
            VIDEO_TIMECODE,
            VIDEO_FRAME,
            VIDEO_SCENE,
            VIDEO_SCENE_LIST,
            VIDEO_DETECTOR_CONFIG,
            VIDEO_CAMERA,
            VIDEO_CAMERA_PATH,
            VIDEO_RECONSTRUCTION,
            VIDEO_SFM_MATCH_PLAN,
            VIDEO_RADIANCE_ASSET,
        ]
    }

    fn type_ref(
        id: &'static str,
        owner: &'static str,
        rust_type: &'static str,
    ) -> LandscapeTypeRef {
        LandscapeTypeRef::new(LandscapeTypeId::new(id), owner).rust_type(rust_type)
    }
}