@disclosureos/schema 2.0.0-beta.2 → 2.0.0-beta.4

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 (26) hide show
  1. package/CHANGELOG.md +101 -0
  2. package/README.md +95 -10
  3. package/dist/experimental/v2/index.d.ts +4431 -81
  4. package/dist/experimental/v2/index.js +8010 -322
  5. package/dist/experimental/v2/index.js.map +1 -1
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.js +1 -1
  8. package/dist/index.js.map +1 -1
  9. package/package.json +34 -6
  10. package/schema/enriched-observation.schema.json +16 -16
  11. package/schema/experimental/archival-case-presentation-0.1.0.schema.json +742 -0
  12. package/schema/experimental/case-presentation-0.1.0.schema.json +431 -0
  13. package/schema/experimental/context-case-presentation-0.1.0.schema.json +697 -0
  14. package/schema/experimental/lidar-point-cloud-profile-0.1.0.schema.json +416 -0
  15. package/schema/experimental/material-case-presentation-0.1.0.schema.json +802 -0
  16. package/schema/experimental/passive-sonar-profile-0.1.0.schema.json +238 -0
  17. package/schema/experimental/product-source-selection-0.1.0.schema.json +673 -0
  18. package/schema/experimental/radar-profile-0.1.0.schema.json +1232 -0
  19. package/schema/experimental/satellite-raster-profile-0.1.0.schema.json +406 -0
  20. package/schema/experimental/secondary-radar-profile-0.1.0.schema.json +154 -0
  21. package/schema/experimental/sonar-profile-0.1.0.schema.json +197 -0
  22. package/schema/experimental/steered-radar-profile-0.1.0.schema.json +214 -0
  23. package/schema/experimental/testimony-case-presentation-0.1.0.schema.json +682 -0
  24. package/schema/experimental/vocabulary-bindings-0.1.0.schema.json +167 -0
  25. package/schema/experimental/vocabulary-catalog-0.1.0.schema.json +155 -0
  26. package/schema/experimental/vocabulary-term-reference-0.1.0.schema.json +61 -0
@@ -1,4 +1,5 @@
1
- import { ClaimHistoryIssueCode, parseExperimentalClaimHistory, ClaimSubject, ContextIssue, DocumentSnapshotRef } from '@disclosureos/records/experimental/v2';
1
+ import { ClaimHistoryIssueCode, parseExperimentalClaimHistory, ClaimSubject, ContextIssue, DocumentSnapshotRef, VocabularyBinding, VocabularyTermReference, VocabularyCatalogTerm, VocabularyIssue } from '@disclosureos/records/experimental/v2';
2
+ export { VOCABULARY_BINDINGS_SCHEMA_ID, VOCABULARY_CATALOG_SCHEMA_ID, VOCABULARY_TERM_REFERENCE_SCHEMA_ID, VocabularyBinding, VocabularyBindingSchema, VocabularyBindings, VocabularyBindingsSchema, VocabularyCatalog, VocabularyCatalogSchema, VocabularyCatalogTerm, VocabularyCatalogTermSchema, VocabularyTermReference, VocabularyTermReferenceSchema, parseVocabularyBindings, parseVocabularyCatalog, vocabularyBindingsJsonSchema, vocabularyCatalogJsonSchema, vocabularyTermReferenceJsonSchema } from '@disclosureos/records/experimental/v2';
2
3
  import { z } from 'zod';
3
4
  import { parseAcquisitionContext, AcquisitionContextIssueCode } from '@disclosureos/instruments/experimental/v2';
4
5
 
@@ -7,7 +8,7 @@ declare const ASSESSMENT_DOCUMENTATION_PROFILE: Readonly<{
7
8
  readonly version: "0.1.0";
8
9
  readonly scope: "documentary_only";
9
10
  }>;
10
- type Status$b = 'passed' | 'failed' | 'not_checked';
11
+ type Status$d = 'passed' | 'failed' | 'not_checked';
11
12
  type DocumentationIssueCode = ClaimHistoryIssueCode | 'PROFILE.NO_ASSESSMENTS' | 'PROFILE.UNASSESSED' | 'PROFILE.INPUTS_REQUIRED' | 'PROFILE.METHOD_CONTEXT' | 'PROFILE.LOCATOR_REQUIRED' | 'PROFILE.DIGEST_REQUIRED' | 'PROFILE.MEASUREMENT_REQUIRED' | 'PROFILE.MEASUREMENT_UNCERTAINTY' | 'PROFILE.INSTRUMENT_PRODUCT_REQUIRED' | 'PROFILE.EVENT_TIME' | 'PROFILE.FRAME_CONTEXT' | 'EXTERNAL.ASSET_UNAVAILABLE' | 'EXTERNAL.DIGEST_MISMATCH' | 'EXTERNAL.HASH_UNAVAILABLE' | 'EXTERNAL.EMPTY_ASSET';
12
13
  interface DocumentationIssue {
13
14
  code: DocumentationIssueCode;
@@ -18,13 +19,13 @@ interface DocumentationIssue {
18
19
  }
19
20
  interface AssetCheck {
20
21
  ref: string;
21
- status: Status$b;
22
+ status: Status$d;
22
23
  expectedSha256?: string;
23
24
  actualSha256?: string;
24
25
  }
25
26
  interface AssessmentDocumentation {
26
27
  claimRef: string;
27
- status: Status$b;
28
+ status: Status$d;
28
29
  inputRefs: string[];
29
30
  sourceRefs: string[];
30
31
  productRefs: string[];
@@ -41,10 +42,10 @@ interface DocumentationResult {
41
42
  profile: typeof ASSESSMENT_DOCUMENTATION_PROFILE;
42
43
  contract: ReturnType<typeof parseExperimentalClaimHistory>['contract'];
43
44
  checks: {
44
- structural: Status$b;
45
- semantic: Status$b;
46
- profile: Status$b;
47
- external: Status$b;
45
+ structural: Status$d;
46
+ semantic: Status$d;
47
+ profile: Status$d;
48
+ external: Status$d;
48
49
  };
49
50
  scientific: 'not_checked';
50
51
  locatorContents: 'not_checked';
@@ -81,7 +82,7 @@ declare const ACQUISITION_BINDINGS_PROFILE: Readonly<{
81
82
  readonly version: "0.1.0";
82
83
  readonly scope: "product_identity_and_declared_context";
83
84
  }>;
84
- type Status$a = 'passed' | 'failed' | 'not_checked';
85
+ type Status$c = 'passed' | 'failed' | 'not_checked';
85
86
  type BindingIssueCode = ClaimHistoryIssueCode | AcquisitionContextIssueCode | 'BINDING.DOCUMENT_ID' | 'BINDING.SOURCE_KIND' | 'BINDING.RAW_REQUIRED' | 'BINDING.DIGEST_MISMATCH' | 'BINDING.FORMAT_MISMATCH' | 'BINDING.SOURCE_IDENTITY' | 'BINDING.PRODUCT_REQUIRED' | 'BINDING.SOURCE_REQUIRED' | 'BINDING.DIGEST_REQUIRED' | 'BINDING.CONTEXT_INCOMPLETE' | 'BINDING.NO_INSTRUMENT_PRODUCTS' | 'EXTERNAL.ASSET_UNAVAILABLE' | 'EXTERNAL.DIGEST_MISMATCH' | 'EXTERNAL.SIZE_MISMATCH' | 'EXTERNAL.HASH_UNAVAILABLE' | 'EXTERNAL.EMPTY_ASSET';
86
87
  interface BindingIssue {
87
88
  code: BindingIssueCode;
@@ -92,7 +93,7 @@ interface BindingIssue {
92
93
  }
93
94
  interface BindingAssetCheck {
94
95
  ref: string;
95
- status: Status$a;
96
+ status: Status$c;
96
97
  pointer: string;
97
98
  expectedSha256: string;
98
99
  expectedByteLength: number;
@@ -105,7 +106,7 @@ interface ProductBindingCheck {
105
106
  acquisitionRef: string;
106
107
  instrumentRef: string;
107
108
  assetRefs: string[];
108
- status: Status$a;
109
+ status: Status$c;
109
110
  issues: BindingIssue[];
110
111
  }
111
112
  interface AcquisitionBindingOptions {
@@ -124,10 +125,10 @@ interface AcquisitionBindingResult {
124
125
  };
125
126
  };
126
127
  checks: {
127
- structural: Status$a;
128
- semantic: Status$a;
129
- profile: Status$a;
130
- external: Status$a;
128
+ structural: Status$c;
129
+ semantic: Status$c;
130
+ profile: Status$c;
131
+ external: Status$c;
131
132
  };
132
133
  scientific: 'not_checked';
133
134
  identityAuthenticity: 'not_checked';
@@ -177,7 +178,7 @@ declare const MeasurementBindingsSchema: z.ZodObject<{
177
178
  }, z.core.$strict>;
178
179
  type MeasurementBindings = z.infer<typeof MeasurementBindingsSchema>;
179
180
  declare function measurementBindingsJsonSchema(): Record<string, unknown>;
180
- type Status$9 = "passed" | "failed" | "not_checked";
181
+ type Status$b = "passed" | "failed" | "not_checked";
181
182
  interface MeasurementBindingIssue {
182
183
  code: string;
183
184
  stage: "structural" | "semantic" | "profile" | "external";
@@ -193,10 +194,10 @@ interface MeasurementBindingResult {
193
194
  rulesetVersion: "0.1.0";
194
195
  };
195
196
  checks: {
196
- structural: Status$9;
197
- semantic: Status$9;
198
- profile: Status$9;
199
- external: Status$9;
197
+ structural: Status$b;
198
+ semantic: Status$b;
199
+ profile: Status$b;
200
+ external: Status$b;
200
201
  };
201
202
  issues: MeasurementBindingIssue[];
202
203
  acquisition: AcquisitionBindingResult | null;
@@ -330,7 +331,7 @@ declare const InstrumentResearchReviewSchema: z.ZodObject<{
330
331
  }, z.core.$strict>;
331
332
  type InstrumentResearchReview = z.infer<typeof InstrumentResearchReviewSchema>;
332
333
  declare function instrumentResearchReviewJsonSchema(): Record<string, unknown>;
333
- type Status$8 = "passed" | "failed" | "not_checked";
334
+ type Status$a = "passed" | "failed" | "not_checked";
334
335
  interface InstrumentResearchOptions {
335
336
  observationAssets?: ReadonlyMap<string, Uint8Array>;
336
337
  contextAssets?: ReadonlyMap<string, Uint8Array>;
@@ -339,7 +340,7 @@ interface InstrumentResearchOptions {
339
340
  }
340
341
  interface ResearchReviewAssetCheck {
341
342
  ref: string;
342
- status: Status$8;
343
+ status: Status$a;
343
344
  expectedSha256: string;
344
345
  expectedByteLength: number;
345
346
  actualSha256?: string;
@@ -353,10 +354,10 @@ interface InstrumentResearchResult {
353
354
  rulesetVersion: "0.1.0";
354
355
  };
355
356
  checks: {
356
- structural: Status$8;
357
- semantic: Status$8;
358
- profile: Status$8;
359
- external: Status$8;
357
+ structural: Status$a;
358
+ semantic: Status$a;
359
+ profile: Status$a;
360
+ external: Status$a;
360
361
  };
361
362
  review: {
362
363
  id: string;
@@ -429,10 +430,10 @@ declare const ReproductionPacketSchema: z.ZodObject<{
429
430
  }, z.core.$strict>;
430
431
  type ReproductionPacket = z.infer<typeof ReproductionPacketSchema>;
431
432
  declare function reproductionPacketJsonSchema(): Record<string, unknown>;
432
- type Status$7 = "passed" | "failed" | "not_checked";
433
+ type Status$9 = "passed" | "failed" | "not_checked";
433
434
  interface ReproductionFileCheck {
434
435
  id: string;
435
- status: Status$7;
436
+ status: Status$9;
436
437
  expectedSha256: string;
437
438
  expectedByteLength: number;
438
439
  actualSha256?: string;
@@ -446,10 +447,10 @@ interface ReproductionPacketResult {
446
447
  rulesetVersion: "0.1.0";
447
448
  };
448
449
  checks: {
449
- structural: Status$7;
450
- semantic: Status$7;
451
- profile: Status$7;
452
- external: Status$7;
450
+ structural: Status$9;
451
+ semantic: Status$9;
452
+ profile: Status$9;
453
+ external: Status$9;
453
454
  };
454
455
  packetId?: string;
455
456
  method?: ReproductionPacket["method"];
@@ -526,7 +527,7 @@ interface DatasetPacketInput {
526
527
  manifest: Uint8Array;
527
528
  files: ReadonlyMap<string, Uint8Array>;
528
529
  }
529
- type Status$6 = "passed" | "failed" | "not_checked";
530
+ type Status$8 = "passed" | "failed" | "not_checked";
530
531
  interface DatasetIssue {
531
532
  code: string;
532
533
  pointer: string;
@@ -541,10 +542,10 @@ interface DatasetReleaseResult {
541
542
  rulesetVersion: "0.1.0";
542
543
  };
543
544
  checks: {
544
- structural: Status$6;
545
- semantic: Status$6;
546
- profile: Status$6;
547
- external: Status$6;
545
+ structural: Status$8;
546
+ semantic: Status$8;
547
+ profile: Status$8;
548
+ external: Status$8;
548
549
  };
549
550
  release?: {
550
551
  id: string;
@@ -553,7 +554,7 @@ interface DatasetReleaseResult {
553
554
  issues: DatasetIssue[];
554
555
  packets: {
555
556
  packetRef: string;
556
- manifestStatus: Status$6;
557
+ manifestStatus: Status$8;
557
558
  expectedSha256: string;
558
559
  expectedByteLength: number;
559
560
  actualSha256?: string;
@@ -562,12 +563,12 @@ interface DatasetReleaseResult {
562
563
  }[];
563
564
  sessions: {
564
565
  sessionRef: string;
565
- status: Status$6;
566
+ status: Status$8;
566
567
  members: {
567
568
  packetRef: string;
568
569
  acquisitionRef: string;
569
570
  classification?: string;
570
- status: Status$6;
571
+ status: Status$8;
571
572
  }[];
572
573
  }[];
573
574
  scientificEligibility: "not_checked";
@@ -674,7 +675,7 @@ declare const SourceIntakeSchema: z.ZodObject<{
674
675
  }, z.core.$strict>;
675
676
  type SourceIntake = z.infer<typeof SourceIntakeSchema>;
676
677
  declare function sourceIntakeJsonSchema(): Record<string, unknown>;
677
- type Status$5 = "passed" | "failed" | "not_checked";
678
+ type Status$7 = "passed" | "failed" | "not_checked";
678
679
  interface SourceIntakeResult {
679
680
  success: boolean;
680
681
  profile: typeof SOURCE_INTAKE_PROFILE;
@@ -683,10 +684,10 @@ interface SourceIntakeResult {
683
684
  rulesetVersion: "0.1.0";
684
685
  };
685
686
  checks: {
686
- structural: Status$5;
687
- semantic: Status$5;
688
- profile: Status$5;
689
- external: Status$5;
687
+ structural: Status$7;
688
+ semantic: Status$7;
689
+ profile: Status$7;
690
+ external: Status$7;
690
691
  };
691
692
  issues: {
692
693
  code: string;
@@ -701,7 +702,7 @@ interface SourceIntakeResult {
701
702
  }[];
702
703
  files: {
703
704
  id: string;
704
- status: Status$5;
705
+ status: Status$7;
705
706
  expectedSha256: string;
706
707
  expectedByteLength: number;
707
708
  actualSha256?: string;
@@ -888,7 +889,7 @@ declare const ResearchEvaluationSchema: z.ZodObject<{
888
889
  }, z.core.$strict>;
889
890
  type ResearchEvaluation = z.infer<typeof ResearchEvaluationSchema>;
890
891
  declare function researchEvaluationJsonSchema(): Record<string, unknown>;
891
- type Status$4 = "passed" | "failed" | "not_checked";
892
+ type Status$6 = "passed" | "failed" | "not_checked";
892
893
  interface ResearchEvaluationOptions {
893
894
  packetBytes?: Uint8Array;
894
895
  files?: ReadonlyMap<string, Uint8Array>;
@@ -917,11 +918,11 @@ interface ResearchEvaluationResult {
917
918
  success: boolean;
918
919
  policy: typeof RESEARCH_EVALUATION_POLICY;
919
920
  checks: {
920
- structural: Status$4;
921
- semantic: Status$4;
922
- external: Status$4;
923
- evaluation: Status$4;
924
- receipt: Status$4;
921
+ structural: Status$6;
922
+ semantic: Status$6;
923
+ external: Status$6;
924
+ evaluation: Status$6;
925
+ receipt: Status$6;
925
926
  };
926
927
  issues: {
927
928
  code: string;
@@ -1001,7 +1002,7 @@ declare const RELEASED_DOCUMENT_REQUIREMENTS: readonly Readonly<{
1001
1002
  readonly label: "Source-side attribution for supplied direct extractions";
1002
1003
  }>[];
1003
1004
  type ReleasedDocumentRequirementId = (typeof RELEASED_DOCUMENT_REQUIREMENTS)[number]["id"];
1004
- type Status$3 = "passed" | "failed" | "not_checked";
1005
+ type Status$5 = "passed" | "failed" | "not_checked";
1005
1006
  type ReleasedDocumentCompletionStatus = "satisfied" | "missing" | "failed" | "not_checked" | "not_applicable";
1006
1007
  interface ReleasedDocumentIssue {
1007
1008
  code: string;
@@ -1022,11 +1023,11 @@ interface ReleasedDocumentRequirement {
1022
1023
  }
1023
1024
  interface ReleasedDocumentReport {
1024
1025
  sourceRef: string;
1025
- status: Status$3;
1026
+ status: Status$5;
1026
1027
  requirements: ReleasedDocumentRequirement[];
1027
1028
  extractionRefs: string[];
1028
1029
  asset: {
1029
- status: Status$3;
1030
+ status: Status$5;
1030
1031
  expectedSha256?: string;
1031
1032
  actualSha256?: string;
1032
1033
  byteLength?: number;
@@ -1038,10 +1039,10 @@ interface ReleasedDocumentResult {
1038
1039
  selection: ReleasedDocumentSelection | null;
1039
1040
  validation: ReturnType<typeof parseExperimentalClaimHistory>;
1040
1041
  checks: {
1041
- structural: Status$3;
1042
- semantic: Status$3;
1043
- profile: Status$3;
1044
- external: Status$3;
1042
+ structural: Status$5;
1043
+ semantic: Status$5;
1044
+ profile: Status$5;
1045
+ external: Status$5;
1045
1046
  };
1046
1047
  documents: ReleasedDocumentReport[];
1047
1048
  issues: ReleasedDocumentIssue[];
@@ -1114,7 +1115,7 @@ declare const HISTORICAL_TESTIMONY_REQUIREMENTS: readonly Readonly<{
1114
1115
  readonly label: "Source retrieval reference";
1115
1116
  }>[];
1116
1117
  type HistoricalTestimonyRequirementId = (typeof HISTORICAL_TESTIMONY_REQUIREMENTS)[number]["id"];
1117
- type Status$2 = "passed" | "failed" | "not_checked";
1118
+ type Status$4 = "passed" | "failed" | "not_checked";
1118
1119
  type HistoricalTestimonyCompletionStatus = "satisfied" | "missing" | "failed" | "not_checked" | "not_applicable";
1119
1120
  interface HistoricalTestimonyIssue {
1120
1121
  code: string;
@@ -1135,11 +1136,11 @@ interface HistoricalTestimonyRequirement {
1135
1136
  }
1136
1137
  interface HistoricalTestimonyReport {
1137
1138
  sourceRef: string;
1138
- status: Status$2;
1139
+ status: Status$4;
1139
1140
  requirements: HistoricalTestimonyRequirement[];
1140
1141
  extractionRefs: string[];
1141
1142
  asset: {
1142
- status: Status$2;
1143
+ status: Status$4;
1143
1144
  expectedSha256?: string;
1144
1145
  actualSha256?: string;
1145
1146
  byteLength?: number;
@@ -1151,10 +1152,10 @@ interface HistoricalTestimonyResult {
1151
1152
  selection: HistoricalTestimonySelection | null;
1152
1153
  validation: ReturnType<typeof parseExperimentalClaimHistory>;
1153
1154
  checks: {
1154
- structural: Status$2;
1155
- semantic: Status$2;
1156
- profile: Status$2;
1157
- external: Status$2;
1155
+ structural: Status$4;
1156
+ semantic: Status$4;
1157
+ profile: Status$4;
1158
+ external: Status$4;
1158
1159
  };
1159
1160
  accounts: HistoricalTestimonyReport[];
1160
1161
  issues: HistoricalTestimonyIssue[];
@@ -1265,7 +1266,7 @@ declare const PHYSICAL_SAMPLE_REQUIREMENTS: readonly Readonly<{
1265
1266
  readonly label: "External catalog identifier";
1266
1267
  }>[];
1267
1268
  type PhysicalSampleRequirementId = (typeof PHYSICAL_SAMPLE_REQUIREMENTS)[number]["id"];
1268
- type Status$1 = "passed" | "failed" | "not_checked";
1269
+ type Status$3 = "passed" | "failed" | "not_checked";
1269
1270
  interface PhysicalSampleIssue {
1270
1271
  code: string;
1271
1272
  stage: "structural" | "semantic" | "profile" | "external" | "recommendation";
@@ -1285,14 +1286,14 @@ interface PhysicalSampleRequirement {
1285
1286
  }
1286
1287
  interface PhysicalSampleRecordCheck {
1287
1288
  sourceRef: string;
1288
- status: Status$1;
1289
+ status: Status$3;
1289
1290
  expectedSha256?: string;
1290
1291
  actualSha256?: string;
1291
1292
  byteLength?: number;
1292
1293
  }
1293
1294
  interface PhysicalSampleReport {
1294
1295
  sampleId: string;
1295
- status: Status$1;
1296
+ status: Status$3;
1296
1297
  requirements: PhysicalSampleRequirement[];
1297
1298
  records: PhysicalSampleRecordCheck[];
1298
1299
  }
@@ -1302,10 +1303,10 @@ interface PhysicalSampleResult {
1302
1303
  selection: PhysicalSampleSelection | null;
1303
1304
  validation: ReturnType<typeof parseExperimentalClaimHistory>;
1304
1305
  checks: {
1305
- structural: Status$1;
1306
- semantic: Status$1;
1307
- profile: Status$1;
1308
- external: Status$1;
1306
+ structural: Status$3;
1307
+ semantic: Status$3;
1308
+ profile: Status$3;
1309
+ external: Status$3;
1309
1310
  };
1310
1311
  samples: PhysicalSampleReport[];
1311
1312
  issues: PhysicalSampleIssue[];
@@ -1388,7 +1389,7 @@ interface ProfileEvaluationOptions {
1388
1389
  assetFiles?: ReadonlyMap<string, Uint8Array>;
1389
1390
  dependencyFiles?: ReadonlyMap<string, Uint8Array>;
1390
1391
  }
1391
- type Status = "passed" | "failed" | "not_checked";
1392
+ type Status$2 = "passed" | "failed" | "not_checked";
1392
1393
  interface ProfileEvaluationReceipt {
1393
1394
  format: "disclosureos-profile-evaluation-receipt:0.1.0";
1394
1395
  serialization: "sorted-json-utf8:0.1.0";
@@ -1407,11 +1408,11 @@ interface ProfileEvaluationResult {
1407
1408
  success: boolean;
1408
1409
  policy: typeof PROFILE_EVALUATION_POLICY;
1409
1410
  checks: {
1410
- structural: Status;
1411
- semantic: Status;
1412
- external: Status;
1413
- profile: Status;
1414
- receipt: Status;
1411
+ structural: Status$2;
1412
+ semantic: Status$2;
1413
+ external: Status$2;
1414
+ profile: Status$2;
1415
+ receipt: Status$2;
1415
1416
  };
1416
1417
  issues: {
1417
1418
  code: string;
@@ -1420,7 +1421,7 @@ interface ProfileEvaluationResult {
1420
1421
  }[];
1421
1422
  files: {
1422
1423
  ref: string;
1423
- status: Status;
1424
+ status: Status$2;
1424
1425
  expectedSha256: string;
1425
1426
  expectedByteLength: number;
1426
1427
  actualSha256?: string;
@@ -1725,6 +1726,4355 @@ interface ResearchReviewResult {
1725
1726
  scientificInterpretation: "not_checked";
1726
1727
  multiSensorFusion: "not_checked";
1727
1728
  }
1729
+
1728
1730
  declare function evaluateResearchClaimHistory(input: unknown, options: ResearchReviewOptions): Promise<ResearchReviewResult>;
1729
1731
 
1730
- export { ACQUISITION_BINDINGS_PROFILE, ACQUISITION_BINDINGS_SCHEMA_ID, ASSESSMENT_DOCUMENTATION_PROFILE, type AcquisitionBindingOptions, type AcquisitionBindingResult, type AcquisitionBindings, AcquisitionBindingsSchema, type AssessmentDocumentation, type AssessmentDocumentationCompletion, type AssetCheck, type BindingAssetCheck, type BindingIssue, type BindingIssueCode, CONTEXT_MEASUREMENT_ROLES, type CompletionStatus, type ContextReviewOptions, type ContextReviewResult, DATASET_RELEASE_PROFILE, DATASET_RELEASE_SCHEMA_ID, DOCUMENTATION_COMPLETION_POLICY, DOCUMENTATION_REQUIREMENTS, type DatasetIssue, type DatasetPacketInput, type DatasetRelease, type DatasetReleaseResult, DatasetReleaseSchema, type DocumentationAction, type DocumentationCompletionResult, type DocumentationIssue, type DocumentationIssueCode, type DocumentationOptions, type DocumentationRequirement, type DocumentationRequirementId, type DocumentationResult, HISTORICAL_TESTIMONY_PROFILE, HISTORICAL_TESTIMONY_REQUIREMENTS, HISTORICAL_TESTIMONY_SELECTION_SCHEMA_ID, type HistoricalTestimonyCompletionStatus, type HistoricalTestimonyIssue, type HistoricalTestimonyReport, type HistoricalTestimonyRequirement, type HistoricalTestimonyRequirementId, type HistoricalTestimonyResult, type HistoricalTestimonySelection, HistoricalTestimonySelectionSchema, INSTRUMENT_RESEARCH_COMPLETION_POLICY, INSTRUMENT_RESEARCH_PREREQUISITES_PROFILE, INSTRUMENT_RESEARCH_REQUIREMENTS, INSTRUMENT_RESEARCH_REVIEW_SCHEMA_ID, type InstrumentResearchCompletionResult, type InstrumentResearchOptions, type InstrumentResearchResult, type InstrumentResearchReview, InstrumentResearchReviewSchema, MEASUREMENT_BINDINGS_PROFILE, MEASUREMENT_BINDINGS_SCHEMA_ID, MIGRATION_COMPATIBILITY_SCHEMA_ID, MIGRATION_LEGACY_SCORES_SCHEMA_ID, MIGRATION_RESOLUTION_SCHEMA_ID, MIGRATION_REVIEW_SCHEMA_ID, type MeasurementBindingIssue, type MeasurementBindingResult, type MeasurementBindings, MeasurementBindingsSchema, type MigrationCompatibility, MigrationCompatibilitySchema, type MigrationLegacyScores, MigrationLegacyScoresSchema, type MigrationResolution, MigrationResolutionSchema, type MigrationReview, MigrationReviewSchema, PHYSICAL_SAMPLE_PROFILE, PHYSICAL_SAMPLE_REQUIREMENTS, PHYSICAL_SAMPLE_SELECTION_SCHEMA_ID, PROFILE_EVALUATION_POLICY, PROFILE_EVALUATION_SCHEMA_ID, PROFILE_PREPARATION_SCHEMA_ID, type PhysicalSampleIssue, type PhysicalSampleRecordCheck, type PhysicalSampleReport, type PhysicalSampleRequirement, type PhysicalSampleRequirementId, type PhysicalSampleResult, type PhysicalSampleSelection, PhysicalSampleSelectionSchema, type ProductBindingCheck, type ProfileEvaluation, type ProfileEvaluationOptions, type ProfileEvaluationReceipt, type ProfileEvaluationResult, ProfileEvaluationSchema, type ProfilePreparation, ProfilePreparationSchema, RELEASED_DOCUMENT_PROFILE, RELEASED_DOCUMENT_REQUIREMENTS, RELEASED_DOCUMENT_SELECTION_SCHEMA_ID, REPRODUCTION_PACKET_PROFILE, REPRODUCTION_PACKET_SCHEMA_ID, RESEARCH_EVALUATION_POLICY, RESEARCH_EVALUATION_SCHEMA_ID, type ReleasedDocumentCompletionStatus, type ReleasedDocumentIssue, type ReleasedDocumentReport, type ReleasedDocumentRequirement, type ReleasedDocumentRequirementId, type ReleasedDocumentResult, type ReleasedDocumentSelection, ReleasedDocumentSelectionSchema, type ReproductionFileCheck, type ReproductionPacket, type ReproductionPacketResult, ReproductionPacketSchema, type ResearchCompletionAction, type ResearchCompletionRequirement, type ResearchCompletionStatus, type ResearchEvaluation, type ResearchEvaluationOptions, type ResearchEvaluationOutput, type ResearchEvaluationReceipt, type ResearchEvaluationResult, ResearchEvaluationSchema, type ResearchRequirementId, type ResearchReviewAssetCheck, type ResearchReviewOptions, type ResearchReviewResult, SOURCE_INTAKE_PROFILE, SOURCE_INTAKE_SCHEMA_ID, type SourceIntake, type SourceIntakeResult, SourceIntakeSchema, acquisitionBindingsJsonSchema, datasetReleaseJsonSchema, evaluateAcquisitionBindings, evaluateAssessmentDocumentation, evaluateContextClaimHistory, evaluateDatasetRelease, evaluateDocumentationCompletion, evaluateHistoricalTestimony, evaluateInstrumentResearchCompletion, evaluateInstrumentResearchPrerequisites, evaluateMeasurementBindings, evaluatePhysicalSamples, evaluateProfileEvaluation, evaluateReleasedDocuments, evaluateReproductionPacket, evaluateResearchClaimHistory, evaluateResearchEvaluation, evaluateSourceIntake, historicalTestimonySelectionJsonSchema, instrumentResearchReviewJsonSchema, measurementBindingsJsonSchema, migrationCompatibilityJsonSchema, migrationLegacyScoresJsonSchema, migrationResolutionJsonSchema, migrationReviewJsonSchema, physicalSampleSelectionJsonSchema, profileEvaluationJsonSchema, profilePreparationJsonSchema, releasedDocumentSelectionJsonSchema, reproductionPacketJsonSchema, researchEvaluationJsonSchema, sourceIntakeJsonSchema };
1732
+ type ArchivalReviewOptions = ResearchReviewOptions;
1733
+ type ArchivalReviewResult = ResearchReviewResult;
1734
+ /** Checks 0.4 histories and exact 0.2 entity snapshots; never fetches source files or authenticates them. */
1735
+ declare function evaluateArchivalClaimHistory(input: unknown, options: ArchivalReviewOptions): Promise<ArchivalReviewResult>;
1736
+
1737
+ type LaboratoryReviewOptions = ResearchReviewOptions;
1738
+ type LaboratoryReviewResult = Omit<ResearchReviewResult, "integrityScope"> & {
1739
+ integrityScope: "supplied_entities_context_observation_acquisition_and_specimen_selection_snapshot_bytes";
1740
+ };
1741
+ /** Explicit 0.5 history and 0.4 entities. Snapshot checks do not validate physical specimens, laboratory execution or source artifact bytes. */
1742
+ declare function evaluateLaboratoryClaimHistory(input: unknown, options: LaboratoryReviewOptions): Promise<LaboratoryReviewResult>;
1743
+
1744
+ interface CaseReviewOptions {
1745
+ /** Exact UTF-8 document bytes keyed by SHA-256. Only explicitly scoped snapshots are read. */
1746
+ documents: ReadonlyMap<string, Uint8Array>;
1747
+ }
1748
+ interface CaseReviewResult {
1749
+ success: boolean;
1750
+ issues: ContextIssue[];
1751
+ snapshots: Array<DocumentSnapshotRef & {
1752
+ status: "passed" | "failed" | "unavailable";
1753
+ }>;
1754
+ checks: {
1755
+ structural: "passed" | "failed";
1756
+ semantic: "passed" | "failed" | "not_checked";
1757
+ external: "passed" | "failed" | "not_checked";
1758
+ profile: "not_checked";
1759
+ };
1760
+ declaredChronology: "acyclic" | "failed" | "incomplete" | "not_checked";
1761
+ integrityScope: "supplied_observation_snapshot_bytes";
1762
+ sourceArtifactIntegrity: "not_checked";
1763
+ scientificInterpretation: "not_checked";
1764
+ temporalNormalization: "not_checked";
1765
+ }
1766
+ /** Resolves the case's closed observation scope. Does not fetch URLs, authenticate sources or assess relationships. */
1767
+ declare function evaluateCaseRecord(input: unknown, options: CaseReviewOptions): Promise<CaseReviewResult>;
1768
+
1769
+ interface CaseHistoryReviewResult {
1770
+ success: boolean;
1771
+ issues: ContextIssue[];
1772
+ snapshots: Array<DocumentSnapshotRef & {
1773
+ status: "passed" | "failed" | "unavailable";
1774
+ }>;
1775
+ checks: {
1776
+ structural: "passed" | "failed";
1777
+ semantic: "passed" | "failed" | "not_checked";
1778
+ external: "passed" | "failed" | "not_checked";
1779
+ profile: "not_checked";
1780
+ };
1781
+ currentClaimRefs: string[];
1782
+ integrityScope: "supplied_case_and_observation_snapshot_bytes";
1783
+ sourceArtifactIntegrity: "not_checked";
1784
+ scientificInterpretation: "not_checked";
1785
+ temporalNormalization: "not_checked";
1786
+ lifecycleChanges: "not_performed";
1787
+ }
1788
+ /** Validates declared assessments and their inputs, not the scientific truth of their outcomes. */
1789
+ declare function evaluateCaseClaimHistory(input: unknown, options: CaseReviewOptions): Promise<CaseHistoryReviewResult>;
1790
+
1791
+ interface CaseLinksReviewResult {
1792
+ success: boolean;
1793
+ issues: ContextIssue[];
1794
+ snapshots: Array<DocumentSnapshotRef & {
1795
+ status: "passed" | "failed" | "unavailable";
1796
+ }>;
1797
+ checks: {
1798
+ structural: "passed" | "failed";
1799
+ semantic: "passed" | "failed" | "not_checked";
1800
+ external: "passed" | "failed" | "not_checked";
1801
+ profile: "not_checked";
1802
+ };
1803
+ resolvedLinkIds: string[];
1804
+ supplements: Array<{
1805
+ linkId: string;
1806
+ uncheckedRefs: string[];
1807
+ referenceValidation: "not_checked";
1808
+ }>;
1809
+ integrityScope: "supplied_case_observation_and_linked_document_bytes";
1810
+ supplementReferenceValidation: "not_checked";
1811
+ sourceArtifactIntegrity: "not_checked";
1812
+ authorization: "not_checked";
1813
+ scientificInterpretation: "not_checked";
1814
+ }
1815
+ /** Association integrity only. Linked research documents retain their own full reference/profile checks. */
1816
+ declare function evaluateCaseLinks(input: unknown, options: CaseReviewOptions): Promise<CaseLinksReviewResult>;
1817
+
1818
+ declare const CASE_PRESENTATION_SCHEMA_ID = "urn:disclosureos:experimental:case-presentation:0.1.0";
1819
+ /** An editorial selection, not a public-safe research document or an access grant. */
1820
+ declare const CasePresentationSchema: z.ZodObject<{
1821
+ kind: z.ZodLiteral<"case_presentation">;
1822
+ schemaVersion: z.ZodLiteral<"0.1.0">;
1823
+ publicId: z.ZodString;
1824
+ caseRef: z.ZodObject<{
1825
+ documentId: z.ZodString;
1826
+ sha256: z.ZodString;
1827
+ schemaId: z.ZodLiteral<"urn:disclosureos:experimental:case-record:0.1.0">;
1828
+ }, z.core.$strict>;
1829
+ linksRef: z.ZodOptional<z.ZodObject<{
1830
+ documentId: z.ZodString;
1831
+ sha256: z.ZodString;
1832
+ schemaId: z.ZodLiteral<"urn:disclosureos:experimental:case-links:0.1.0">;
1833
+ }, z.core.$strict>>;
1834
+ title: z.ZodString;
1835
+ summary: z.ZodString;
1836
+ updatedAt: z.ZodISODateTime;
1837
+ status: z.ZodEnum<{
1838
+ draft: "draft";
1839
+ published: "published";
1840
+ withdrawn: "withdrawn";
1841
+ archived: "archived";
1842
+ }>;
1843
+ citations: z.ZodArray<z.ZodObject<{
1844
+ id: z.ZodString;
1845
+ label: z.ZodString;
1846
+ description: z.ZodOptional<z.ZodString>;
1847
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
1848
+ kind: z.ZodLiteral<"case">;
1849
+ }, z.core.$strict>, z.ZodObject<{
1850
+ kind: z.ZodLiteral<"artifact">;
1851
+ observationId: z.ZodString;
1852
+ ref: z.ZodString;
1853
+ }, z.core.$strict>, z.ZodObject<{
1854
+ kind: z.ZodLiteral<"supplement">;
1855
+ linkId: z.ZodString;
1856
+ }, z.core.$strict>], "kind">;
1857
+ }, z.core.$strict>>;
1858
+ blocks: z.ZodArray<z.ZodObject<{
1859
+ id: z.ZodString;
1860
+ heading: z.ZodOptional<z.ZodString>;
1861
+ text: z.ZodString;
1862
+ citationIds: z.ZodArray<z.ZodString>;
1863
+ }, z.core.$strict>>;
1864
+ findings: z.ZodArray<z.ZodObject<{
1865
+ id: z.ZodString;
1866
+ historyRef: z.ZodObject<{
1867
+ documentId: z.ZodString;
1868
+ sha256: z.ZodString;
1869
+ schemaId: z.ZodLiteral<"urn:disclosureos:experimental:case-claim-history:0.1.0">;
1870
+ }, z.core.$strict>;
1871
+ claimId: z.ZodString;
1872
+ title: z.ZodString;
1873
+ summary: z.ZodString;
1874
+ reviewerLabel: z.ZodString;
1875
+ citationIds: z.ZodArray<z.ZodString>;
1876
+ }, z.core.$strict>>;
1877
+ attachments: z.ZodArray<z.ZodObject<{
1878
+ id: z.ZodString;
1879
+ kind: z.ZodEnum<{
1880
+ document: "document";
1881
+ image: "image";
1882
+ video: "video";
1883
+ audio: "audio";
1884
+ data: "data";
1885
+ }>;
1886
+ role: z.ZodEnum<{
1887
+ primary: "primary";
1888
+ supporting: "supporting";
1889
+ thumbnail: "thumbnail";
1890
+ }>;
1891
+ observationId: z.ZodString;
1892
+ ref: z.ZodString;
1893
+ sha256: z.ZodString;
1894
+ caption: z.ZodString;
1895
+ credit: z.ZodString;
1896
+ rights: z.ZodString;
1897
+ alt: z.ZodOptional<z.ZodString>;
1898
+ dimensions: z.ZodOptional<z.ZodObject<{
1899
+ width: z.ZodNumber;
1900
+ height: z.ZodNumber;
1901
+ }, z.core.$strict>>;
1902
+ durationSeconds: z.ZodOptional<z.ZodNumber>;
1903
+ citationIds: z.ZodArray<z.ZodString>;
1904
+ mimeType: z.ZodOptional<z.ZodString>;
1905
+ fileSizeBytes: z.ZodOptional<z.ZodNumber>;
1906
+ thumbnailAttachmentId: z.ZodOptional<z.ZodString>;
1907
+ }, z.core.$strict>>;
1908
+ featuredAttachmentId: z.ZodOptional<z.ZodString>;
1909
+ notices: z.ZodArray<z.ZodObject<{
1910
+ id: z.ZodString;
1911
+ kind: z.ZodEnum<{
1912
+ scope: "scope";
1913
+ rights: "rights";
1914
+ correction: "correction";
1915
+ archive: "archive";
1916
+ withdrawal: "withdrawal";
1917
+ }>;
1918
+ text: z.ZodString;
1919
+ }, z.core.$strict>>;
1920
+ }, z.core.$strict>;
1921
+ type CasePresentation = z.infer<typeof CasePresentationSchema>;
1922
+ declare function casePresentationJsonSchema(): Record<string, unknown>;
1923
+ declare function parseCasePresentation(input: unknown): {
1924
+ success: false;
1925
+ data?: never;
1926
+ } | {
1927
+ success: true;
1928
+ data: {
1929
+ kind: "case_presentation";
1930
+ schemaVersion: "0.1.0";
1931
+ publicId: string;
1932
+ caseRef: {
1933
+ documentId: string;
1934
+ sha256: string;
1935
+ schemaId: "urn:disclosureos:experimental:case-record:0.1.0";
1936
+ };
1937
+ title: string;
1938
+ summary: string;
1939
+ updatedAt: string;
1940
+ status: "draft" | "published" | "withdrawn" | "archived";
1941
+ citations: {
1942
+ id: string;
1943
+ label: string;
1944
+ target: {
1945
+ kind: "case";
1946
+ } | {
1947
+ kind: "artifact";
1948
+ observationId: string;
1949
+ ref: string;
1950
+ } | {
1951
+ kind: "supplement";
1952
+ linkId: string;
1953
+ };
1954
+ description?: string | undefined;
1955
+ }[];
1956
+ blocks: {
1957
+ id: string;
1958
+ text: string;
1959
+ citationIds: string[];
1960
+ heading?: string | undefined;
1961
+ }[];
1962
+ findings: {
1963
+ id: string;
1964
+ historyRef: {
1965
+ documentId: string;
1966
+ sha256: string;
1967
+ schemaId: "urn:disclosureos:experimental:case-claim-history:0.1.0";
1968
+ };
1969
+ claimId: string;
1970
+ title: string;
1971
+ summary: string;
1972
+ reviewerLabel: string;
1973
+ citationIds: string[];
1974
+ }[];
1975
+ attachments: {
1976
+ id: string;
1977
+ kind: "document" | "image" | "video" | "audio" | "data";
1978
+ role: "primary" | "supporting" | "thumbnail";
1979
+ observationId: string;
1980
+ ref: string;
1981
+ sha256: string;
1982
+ caption: string;
1983
+ credit: string;
1984
+ rights: string;
1985
+ citationIds: string[];
1986
+ alt?: string | undefined;
1987
+ dimensions?: {
1988
+ width: number;
1989
+ height: number;
1990
+ } | undefined;
1991
+ durationSeconds?: number | undefined;
1992
+ mimeType?: string | undefined;
1993
+ fileSizeBytes?: number | undefined;
1994
+ thumbnailAttachmentId?: string | undefined;
1995
+ }[];
1996
+ notices: {
1997
+ id: string;
1998
+ kind: "scope" | "rights" | "correction" | "archive" | "withdrawal";
1999
+ text: string;
2000
+ }[];
2001
+ linksRef?: {
2002
+ documentId: string;
2003
+ sha256: string;
2004
+ schemaId: "urn:disclosureos:experimental:case-links:0.1.0";
2005
+ } | undefined;
2006
+ featuredAttachmentId?: string | undefined;
2007
+ };
2008
+ };
2009
+ /** Trusted server decision, supplied separately after reviewing exact presentation and media bytes.
2010
+ * Never accept this object from an anonymous request, a record, or its access labels. */
2011
+ interface CasePublicationApproval {
2012
+ presentationSha256: string;
2013
+ policyVersion: string;
2014
+ }
2015
+ interface PublicCasePayload {
2016
+ kind: 'public_case';
2017
+ schemaVersion: '0.1.0';
2018
+ publicId: string;
2019
+ title: string;
2020
+ summary: string;
2021
+ updatedAt: string;
2022
+ status: 'published' | 'archived';
2023
+ citations: Array<{
2024
+ id: string;
2025
+ label: string;
2026
+ description?: string;
2027
+ }>;
2028
+ blocks: Array<{
2029
+ id: string;
2030
+ heading?: string;
2031
+ text: string;
2032
+ citationIds: string[];
2033
+ }>;
2034
+ findings: Array<{
2035
+ id: string;
2036
+ title: string;
2037
+ summary: string;
2038
+ reviewerLabel: string;
2039
+ citationIds: string[];
2040
+ status: 'assessed' | 'unassessed';
2041
+ outcome?: 'reported' | 'confirmed' | 'absent' | 'inconclusive';
2042
+ revision: 'current' | 'superseded';
2043
+ }>;
2044
+ attachments: Array<{
2045
+ id: string;
2046
+ kind: CasePresentation['attachments'][number]['kind'];
2047
+ role: CasePresentation['attachments'][number]['role'];
2048
+ href: string;
2049
+ caption: string;
2050
+ credit: string;
2051
+ rights: string;
2052
+ alt?: string;
2053
+ dimensions?: {
2054
+ width: number;
2055
+ height: number;
2056
+ };
2057
+ durationSeconds?: number;
2058
+ mimeType?: string;
2059
+ fileSizeBytes?: number;
2060
+ thumbnailAttachmentId?: string;
2061
+ citationIds: string[];
2062
+ }>;
2063
+ featuredAttachmentId?: string;
2064
+ assessmentNotice?: string;
2065
+ notices: Array<{
2066
+ id: string;
2067
+ kind: CasePresentation['notices'][number]['kind'];
2068
+ text: string;
2069
+ }>;
2070
+ }
2071
+ type PublicCaseResult = {
2072
+ success: true;
2073
+ data: PublicCasePayload;
2074
+ } | {
2075
+ success: false;
2076
+ code: 'APPROVAL_REQUIRED' | 'INVALID_PRESENTATION' | 'NOT_PUBLISHED' | 'INVALID_REFERENCES';
2077
+ };
2078
+ /** Fail-closed public projection. It never returns source documents or diagnostic values.
2079
+ * Approval authenticity, publication revocation, cache invalidation and asset delivery remain server responsibilities. */
2080
+ declare function buildPublicCase(presentationBytes: Uint8Array, options: {
2081
+ documents: ReadonlyMap<string, Uint8Array>;
2082
+ approval?: CasePublicationApproval;
2083
+ }): Promise<PublicCaseResult>;
2084
+ /** One projection supplies all text outputs. Use data for text-node rendering;
2085
+ * never interpolate these strings into raw HTML, script tags or Markdown. */
2086
+ declare function buildPublicCaseOutputs(presentationBytes: Uint8Array, options: Parameters<typeof buildPublicCase>[1]): Promise<{
2087
+ success: false;
2088
+ code: "APPROVAL_REQUIRED" | "INVALID_PRESENTATION" | "NOT_PUBLISHED" | "INVALID_REFERENCES";
2089
+ } | {
2090
+ success: true;
2091
+ data: PublicCasePayload;
2092
+ json: string;
2093
+ markdown: string;
2094
+ search: {
2095
+ publicId: string;
2096
+ title: string;
2097
+ text: string;
2098
+ };
2099
+ metadata: {
2100
+ title: string;
2101
+ description: string;
2102
+ };
2103
+ }>;
2104
+ /** Text formatting over an already approved public allowlist; this function does not grant approval. */
2105
+ declare function formatPublicCaseOutputs<T extends Omit<PublicCasePayload, 'schemaVersion'> & {
2106
+ schemaVersion: string;
2107
+ }>(d: T, additionalLines?: string[], additionalSearch?: string[]): {
2108
+ success: true;
2109
+ data: T;
2110
+ json: string;
2111
+ markdown: string;
2112
+ search: {
2113
+ publicId: string;
2114
+ title: string;
2115
+ text: string;
2116
+ };
2117
+ metadata: {
2118
+ title: string;
2119
+ description: string;
2120
+ };
2121
+ };
2122
+
2123
+ declare const CONTEXT_CASE_PRESENTATION_SCHEMA_ID = "urn:disclosureos:experimental:context-case-presentation:0.1.0";
2124
+ /** Explicit, bounded context selection around the existing editorial presentation. */
2125
+ declare const ContextCasePresentationSchema: z.ZodObject<{
2126
+ kind: z.ZodLiteral<"context_case_presentation">;
2127
+ schemaVersion: z.ZodLiteral<"0.1.0">;
2128
+ presentation: z.ZodObject<{
2129
+ kind: z.ZodLiteral<"case_presentation">;
2130
+ schemaVersion: z.ZodLiteral<"0.1.0">;
2131
+ publicId: z.ZodString;
2132
+ caseRef: z.ZodObject<{
2133
+ documentId: z.ZodString;
2134
+ sha256: z.ZodString;
2135
+ schemaId: z.ZodLiteral<"urn:disclosureos:experimental:case-record:0.1.0">;
2136
+ }, z.core.$strict>;
2137
+ linksRef: z.ZodOptional<z.ZodObject<{
2138
+ documentId: z.ZodString;
2139
+ sha256: z.ZodString;
2140
+ schemaId: z.ZodLiteral<"urn:disclosureos:experimental:case-links:0.1.0">;
2141
+ }, z.core.$strict>>;
2142
+ title: z.ZodString;
2143
+ summary: z.ZodString;
2144
+ updatedAt: z.ZodISODateTime;
2145
+ status: z.ZodEnum<{
2146
+ draft: "draft";
2147
+ published: "published";
2148
+ withdrawn: "withdrawn";
2149
+ archived: "archived";
2150
+ }>;
2151
+ citations: z.ZodArray<z.ZodObject<{
2152
+ id: z.ZodString;
2153
+ label: z.ZodString;
2154
+ description: z.ZodOptional<z.ZodString>;
2155
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
2156
+ kind: z.ZodLiteral<"case">;
2157
+ }, z.core.$strict>, z.ZodObject<{
2158
+ kind: z.ZodLiteral<"artifact">;
2159
+ observationId: z.ZodString;
2160
+ ref: z.ZodString;
2161
+ }, z.core.$strict>, z.ZodObject<{
2162
+ kind: z.ZodLiteral<"supplement">;
2163
+ linkId: z.ZodString;
2164
+ }, z.core.$strict>], "kind">;
2165
+ }, z.core.$strict>>;
2166
+ blocks: z.ZodArray<z.ZodObject<{
2167
+ id: z.ZodString;
2168
+ heading: z.ZodOptional<z.ZodString>;
2169
+ text: z.ZodString;
2170
+ citationIds: z.ZodArray<z.ZodString>;
2171
+ }, z.core.$strict>>;
2172
+ findings: z.ZodArray<z.ZodObject<{
2173
+ id: z.ZodString;
2174
+ historyRef: z.ZodObject<{
2175
+ documentId: z.ZodString;
2176
+ sha256: z.ZodString;
2177
+ schemaId: z.ZodLiteral<"urn:disclosureos:experimental:case-claim-history:0.1.0">;
2178
+ }, z.core.$strict>;
2179
+ claimId: z.ZodString;
2180
+ title: z.ZodString;
2181
+ summary: z.ZodString;
2182
+ reviewerLabel: z.ZodString;
2183
+ citationIds: z.ZodArray<z.ZodString>;
2184
+ }, z.core.$strict>>;
2185
+ attachments: z.ZodArray<z.ZodObject<{
2186
+ id: z.ZodString;
2187
+ kind: z.ZodEnum<{
2188
+ document: "document";
2189
+ image: "image";
2190
+ video: "video";
2191
+ audio: "audio";
2192
+ data: "data";
2193
+ }>;
2194
+ role: z.ZodEnum<{
2195
+ primary: "primary";
2196
+ supporting: "supporting";
2197
+ thumbnail: "thumbnail";
2198
+ }>;
2199
+ observationId: z.ZodString;
2200
+ ref: z.ZodString;
2201
+ sha256: z.ZodString;
2202
+ caption: z.ZodString;
2203
+ credit: z.ZodString;
2204
+ rights: z.ZodString;
2205
+ alt: z.ZodOptional<z.ZodString>;
2206
+ dimensions: z.ZodOptional<z.ZodObject<{
2207
+ width: z.ZodNumber;
2208
+ height: z.ZodNumber;
2209
+ }, z.core.$strict>>;
2210
+ durationSeconds: z.ZodOptional<z.ZodNumber>;
2211
+ citationIds: z.ZodArray<z.ZodString>;
2212
+ mimeType: z.ZodOptional<z.ZodString>;
2213
+ fileSizeBytes: z.ZodOptional<z.ZodNumber>;
2214
+ thumbnailAttachmentId: z.ZodOptional<z.ZodString>;
2215
+ }, z.core.$strict>>;
2216
+ featuredAttachmentId: z.ZodOptional<z.ZodString>;
2217
+ notices: z.ZodArray<z.ZodObject<{
2218
+ id: z.ZodString;
2219
+ kind: z.ZodEnum<{
2220
+ scope: "scope";
2221
+ rights: "rights";
2222
+ correction: "correction";
2223
+ archive: "archive";
2224
+ withdrawal: "withdrawal";
2225
+ }>;
2226
+ text: z.ZodString;
2227
+ }, z.core.$strict>>;
2228
+ }, z.core.$strict>;
2229
+ context: z.ZodObject<{
2230
+ document: z.ZodObject<{
2231
+ documentId: z.ZodString;
2232
+ schemaId: z.ZodLiteral<string>;
2233
+ sha256: z.ZodString;
2234
+ }, z.core.$strict>;
2235
+ history: z.ZodObject<{
2236
+ documentId: z.ZodString;
2237
+ schemaId: z.ZodLiteral<string>;
2238
+ sha256: z.ZodString;
2239
+ }, z.core.$strict>;
2240
+ fields: z.ZodArray<z.ZodObject<{
2241
+ id: z.ZodString;
2242
+ label: z.ZodString;
2243
+ entityId: z.ZodString;
2244
+ field: z.ZodEnum<{
2245
+ name: "name";
2246
+ shape: "shape";
2247
+ alignmentDescription: "alignmentDescription";
2248
+ }>;
2249
+ assertions: z.ZodArray<z.ZodObject<{
2250
+ assertionId: z.ZodString;
2251
+ attributionLabel: z.ZodString;
2252
+ citationIds: z.ZodArray<z.ZodString>;
2253
+ }, z.core.$strict>>;
2254
+ }, z.core.$strict>>;
2255
+ measurements: z.ZodArray<z.ZodObject<{
2256
+ id: z.ZodString;
2257
+ label: z.ZodString;
2258
+ entityId: z.ZodString;
2259
+ bindingId: z.ZodString;
2260
+ citationIds: z.ZodArray<z.ZodString>;
2261
+ }, z.core.$strict>>;
2262
+ tracks: z.ZodArray<z.ZodObject<{
2263
+ id: z.ZodString;
2264
+ label: z.ZodString;
2265
+ collectionId: z.ZodString;
2266
+ assertionId: z.ZodString;
2267
+ productId: z.ZodString;
2268
+ citationIds: z.ZodArray<z.ZodString>;
2269
+ }, z.core.$strict>>;
2270
+ reviews: z.ZodArray<z.ZodObject<{
2271
+ id: z.ZodString;
2272
+ claimId: z.ZodString;
2273
+ fieldId: z.ZodString;
2274
+ title: z.ZodString;
2275
+ summary: z.ZodString;
2276
+ reviewerLabel: z.ZodString;
2277
+ methodLabel: z.ZodString;
2278
+ citationIds: z.ZodArray<z.ZodString>;
2279
+ }, z.core.$strict>>;
2280
+ }, z.core.$strict>;
2281
+ }, z.core.$strict>;
2282
+ type ContextCasePresentation = z.infer<typeof ContextCasePresentationSchema>;
2283
+ declare function contextCasePresentationJsonSchema(): Record<string, unknown>;
2284
+ declare function parseContextCasePresentation(input: unknown): {
2285
+ success: false;
2286
+ data?: never;
2287
+ } | {
2288
+ success: true;
2289
+ data: {
2290
+ kind: "context_case_presentation";
2291
+ schemaVersion: "0.1.0";
2292
+ presentation: {
2293
+ kind: "case_presentation";
2294
+ schemaVersion: "0.1.0";
2295
+ publicId: string;
2296
+ caseRef: {
2297
+ documentId: string;
2298
+ sha256: string;
2299
+ schemaId: "urn:disclosureos:experimental:case-record:0.1.0";
2300
+ };
2301
+ title: string;
2302
+ summary: string;
2303
+ updatedAt: string;
2304
+ status: "draft" | "published" | "withdrawn" | "archived";
2305
+ citations: {
2306
+ id: string;
2307
+ label: string;
2308
+ target: {
2309
+ kind: "case";
2310
+ } | {
2311
+ kind: "artifact";
2312
+ observationId: string;
2313
+ ref: string;
2314
+ } | {
2315
+ kind: "supplement";
2316
+ linkId: string;
2317
+ };
2318
+ description?: string | undefined;
2319
+ }[];
2320
+ blocks: {
2321
+ id: string;
2322
+ text: string;
2323
+ citationIds: string[];
2324
+ heading?: string | undefined;
2325
+ }[];
2326
+ findings: {
2327
+ id: string;
2328
+ historyRef: {
2329
+ documentId: string;
2330
+ sha256: string;
2331
+ schemaId: "urn:disclosureos:experimental:case-claim-history:0.1.0";
2332
+ };
2333
+ claimId: string;
2334
+ title: string;
2335
+ summary: string;
2336
+ reviewerLabel: string;
2337
+ citationIds: string[];
2338
+ }[];
2339
+ attachments: {
2340
+ id: string;
2341
+ kind: "document" | "image" | "video" | "audio" | "data";
2342
+ role: "primary" | "supporting" | "thumbnail";
2343
+ observationId: string;
2344
+ ref: string;
2345
+ sha256: string;
2346
+ caption: string;
2347
+ credit: string;
2348
+ rights: string;
2349
+ citationIds: string[];
2350
+ alt?: string | undefined;
2351
+ dimensions?: {
2352
+ width: number;
2353
+ height: number;
2354
+ } | undefined;
2355
+ durationSeconds?: number | undefined;
2356
+ mimeType?: string | undefined;
2357
+ fileSizeBytes?: number | undefined;
2358
+ thumbnailAttachmentId?: string | undefined;
2359
+ }[];
2360
+ notices: {
2361
+ id: string;
2362
+ kind: "scope" | "rights" | "correction" | "archive" | "withdrawal";
2363
+ text: string;
2364
+ }[];
2365
+ linksRef?: {
2366
+ documentId: string;
2367
+ sha256: string;
2368
+ schemaId: "urn:disclosureos:experimental:case-links:0.1.0";
2369
+ } | undefined;
2370
+ featuredAttachmentId?: string | undefined;
2371
+ };
2372
+ context: {
2373
+ document: {
2374
+ documentId: string;
2375
+ schemaId: string;
2376
+ sha256: string;
2377
+ };
2378
+ history: {
2379
+ documentId: string;
2380
+ schemaId: string;
2381
+ sha256: string;
2382
+ };
2383
+ fields: {
2384
+ id: string;
2385
+ label: string;
2386
+ entityId: string;
2387
+ field: "name" | "shape" | "alignmentDescription";
2388
+ assertions: {
2389
+ assertionId: string;
2390
+ attributionLabel: string;
2391
+ citationIds: string[];
2392
+ }[];
2393
+ }[];
2394
+ measurements: {
2395
+ id: string;
2396
+ label: string;
2397
+ entityId: string;
2398
+ bindingId: string;
2399
+ citationIds: string[];
2400
+ }[];
2401
+ tracks: {
2402
+ id: string;
2403
+ label: string;
2404
+ collectionId: string;
2405
+ assertionId: string;
2406
+ productId: string;
2407
+ citationIds: string[];
2408
+ }[];
2409
+ reviews: {
2410
+ id: string;
2411
+ claimId: string;
2412
+ fieldId: string;
2413
+ title: string;
2414
+ summary: string;
2415
+ reviewerLabel: string;
2416
+ methodLabel: string;
2417
+ citationIds: string[];
2418
+ }[];
2419
+ };
2420
+ };
2421
+ };
2422
+ interface PublicContextSelection {
2423
+ fields: Array<{
2424
+ id: string;
2425
+ label: string;
2426
+ assertions: Array<{
2427
+ id: string;
2428
+ state: string;
2429
+ value?: string;
2430
+ reason?: string;
2431
+ attributionLabel: string;
2432
+ citationIds: string[];
2433
+ }>;
2434
+ reviewIds: string[];
2435
+ }>;
2436
+ measurements: Array<{
2437
+ id: string;
2438
+ label: string;
2439
+ value: number;
2440
+ unit: string;
2441
+ uncertainty: string;
2442
+ method: string;
2443
+ citationIds: string[];
2444
+ }>;
2445
+ tracks: Array<{
2446
+ id: string;
2447
+ label: string;
2448
+ format: string;
2449
+ citationIds: string[];
2450
+ }>;
2451
+ reviews: Array<{
2452
+ id: string;
2453
+ fieldId: string;
2454
+ title: string;
2455
+ summary: string;
2456
+ reviewerLabel: string;
2457
+ status: "assessed" | "unassessed";
2458
+ outcome?: string;
2459
+ revision: "current" | "superseded";
2460
+ method: string;
2461
+ citationIds: string[];
2462
+ }>;
2463
+ limitations: string[];
2464
+ }
2465
+ type PublicContextCasePayload = Omit<PublicCasePayload, "schemaVersion"> & {
2466
+ schemaVersion: "0.2.0";
2467
+ context: PublicContextSelection;
2468
+ };
2469
+ /** No fetching. Approval covers exact envelope bytes, including selected snapshot identities.
2470
+ * Access labels do not grant disclosure. Only selected primitives and approved editorial labels leave this function. */
2471
+ declare function buildPublicContextCase(input: Uint8Array, options: {
2472
+ documents: ReadonlyMap<string, Uint8Array>;
2473
+ approval?: CasePublicationApproval;
2474
+ }): Promise<{
2475
+ success: false;
2476
+ code: "APPROVAL_REQUIRED" | "INVALID_PRESENTATION" | "NOT_PUBLISHED" | "INVALID_REFERENCES";
2477
+ } | {
2478
+ success: true;
2479
+ data: {
2480
+ schemaVersion: "0.2.0";
2481
+ assessmentNotice: string;
2482
+ context: PublicContextSelection;
2483
+ kind: "public_case";
2484
+ publicId: string;
2485
+ title: string;
2486
+ summary: string;
2487
+ updatedAt: string;
2488
+ status: "published" | "archived";
2489
+ citations: Array<{
2490
+ id: string;
2491
+ label: string;
2492
+ description?: string;
2493
+ }>;
2494
+ blocks: Array<{
2495
+ id: string;
2496
+ heading?: string;
2497
+ text: string;
2498
+ citationIds: string[];
2499
+ }>;
2500
+ findings: Array<{
2501
+ id: string;
2502
+ title: string;
2503
+ summary: string;
2504
+ reviewerLabel: string;
2505
+ citationIds: string[];
2506
+ status: "assessed" | "unassessed";
2507
+ outcome?: "reported" | "confirmed" | "absent" | "inconclusive";
2508
+ revision: "current" | "superseded";
2509
+ }>;
2510
+ attachments: Array<{
2511
+ id: string;
2512
+ kind: CasePresentation["attachments"][number]["kind"];
2513
+ role: CasePresentation["attachments"][number]["role"];
2514
+ href: string;
2515
+ caption: string;
2516
+ credit: string;
2517
+ rights: string;
2518
+ alt?: string;
2519
+ dimensions?: {
2520
+ width: number;
2521
+ height: number;
2522
+ };
2523
+ durationSeconds?: number;
2524
+ mimeType?: string;
2525
+ fileSizeBytes?: number;
2526
+ thumbnailAttachmentId?: string;
2527
+ citationIds: string[];
2528
+ }>;
2529
+ featuredAttachmentId?: string;
2530
+ notices: Array<{
2531
+ id: string;
2532
+ kind: CasePresentation["notices"][number]["kind"];
2533
+ text: string;
2534
+ }>;
2535
+ };
2536
+ }>;
2537
+ declare function buildPublicContextCaseOutputs(input: Uint8Array, options: Parameters<typeof buildPublicContextCase>[1]): Promise<{
2538
+ success: false;
2539
+ code: "APPROVAL_REQUIRED" | "INVALID_PRESENTATION" | "NOT_PUBLISHED" | "INVALID_REFERENCES";
2540
+ } | {
2541
+ success: true;
2542
+ data: {
2543
+ schemaVersion: "0.2.0";
2544
+ assessmentNotice: string;
2545
+ context: PublicContextSelection;
2546
+ kind: "public_case";
2547
+ publicId: string;
2548
+ title: string;
2549
+ summary: string;
2550
+ updatedAt: string;
2551
+ status: "published" | "archived";
2552
+ citations: Array<{
2553
+ id: string;
2554
+ label: string;
2555
+ description?: string;
2556
+ }>;
2557
+ blocks: Array<{
2558
+ id: string;
2559
+ heading?: string;
2560
+ text: string;
2561
+ citationIds: string[];
2562
+ }>;
2563
+ findings: Array<{
2564
+ id: string;
2565
+ title: string;
2566
+ summary: string;
2567
+ reviewerLabel: string;
2568
+ citationIds: string[];
2569
+ status: "assessed" | "unassessed";
2570
+ outcome?: "reported" | "confirmed" | "absent" | "inconclusive";
2571
+ revision: "current" | "superseded";
2572
+ }>;
2573
+ attachments: Array<{
2574
+ id: string;
2575
+ kind: CasePresentation["attachments"][number]["kind"];
2576
+ role: CasePresentation["attachments"][number]["role"];
2577
+ href: string;
2578
+ caption: string;
2579
+ credit: string;
2580
+ rights: string;
2581
+ alt?: string;
2582
+ dimensions?: {
2583
+ width: number;
2584
+ height: number;
2585
+ };
2586
+ durationSeconds?: number;
2587
+ mimeType?: string;
2588
+ fileSizeBytes?: number;
2589
+ thumbnailAttachmentId?: string;
2590
+ citationIds: string[];
2591
+ }>;
2592
+ featuredAttachmentId?: string;
2593
+ notices: Array<{
2594
+ id: string;
2595
+ kind: CasePresentation["notices"][number]["kind"];
2596
+ text: string;
2597
+ }>;
2598
+ };
2599
+ json: string;
2600
+ markdown: string;
2601
+ search: {
2602
+ publicId: string;
2603
+ title: string;
2604
+ text: string;
2605
+ };
2606
+ metadata: {
2607
+ title: string;
2608
+ description: string;
2609
+ };
2610
+ }>;
2611
+
2612
+ declare const TESTIMONY_CASE_PRESENTATION_SCHEMA_ID = "urn:disclosureos:experimental:testimony-case-presentation:0.1.0";
2613
+ /** A bounded selection of a public pseudonym, recorded accounts and a qualification review. */
2614
+ declare const TestimonyCasePresentationSchema: z.ZodObject<{
2615
+ kind: z.ZodLiteral<"testimony_case_presentation">;
2616
+ schemaVersion: z.ZodLiteral<"0.1.0">;
2617
+ presentation: z.ZodObject<{
2618
+ kind: z.ZodLiteral<"case_presentation">;
2619
+ schemaVersion: z.ZodLiteral<"0.1.0">;
2620
+ publicId: z.ZodString;
2621
+ caseRef: z.ZodObject<{
2622
+ documentId: z.ZodString;
2623
+ sha256: z.ZodString;
2624
+ schemaId: z.ZodLiteral<"urn:disclosureos:experimental:case-record:0.1.0">;
2625
+ }, z.core.$strict>;
2626
+ linksRef: z.ZodOptional<z.ZodObject<{
2627
+ documentId: z.ZodString;
2628
+ sha256: z.ZodString;
2629
+ schemaId: z.ZodLiteral<"urn:disclosureos:experimental:case-links:0.1.0">;
2630
+ }, z.core.$strict>>;
2631
+ title: z.ZodString;
2632
+ summary: z.ZodString;
2633
+ updatedAt: z.ZodISODateTime;
2634
+ status: z.ZodEnum<{
2635
+ draft: "draft";
2636
+ published: "published";
2637
+ withdrawn: "withdrawn";
2638
+ archived: "archived";
2639
+ }>;
2640
+ citations: z.ZodArray<z.ZodObject<{
2641
+ id: z.ZodString;
2642
+ label: z.ZodString;
2643
+ description: z.ZodOptional<z.ZodString>;
2644
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
2645
+ kind: z.ZodLiteral<"case">;
2646
+ }, z.core.$strict>, z.ZodObject<{
2647
+ kind: z.ZodLiteral<"artifact">;
2648
+ observationId: z.ZodString;
2649
+ ref: z.ZodString;
2650
+ }, z.core.$strict>, z.ZodObject<{
2651
+ kind: z.ZodLiteral<"supplement">;
2652
+ linkId: z.ZodString;
2653
+ }, z.core.$strict>], "kind">;
2654
+ }, z.core.$strict>>;
2655
+ blocks: z.ZodArray<z.ZodObject<{
2656
+ id: z.ZodString;
2657
+ heading: z.ZodOptional<z.ZodString>;
2658
+ text: z.ZodString;
2659
+ citationIds: z.ZodArray<z.ZodString>;
2660
+ }, z.core.$strict>>;
2661
+ findings: z.ZodArray<z.ZodObject<{
2662
+ id: z.ZodString;
2663
+ historyRef: z.ZodObject<{
2664
+ documentId: z.ZodString;
2665
+ sha256: z.ZodString;
2666
+ schemaId: z.ZodLiteral<"urn:disclosureos:experimental:case-claim-history:0.1.0">;
2667
+ }, z.core.$strict>;
2668
+ claimId: z.ZodString;
2669
+ title: z.ZodString;
2670
+ summary: z.ZodString;
2671
+ reviewerLabel: z.ZodString;
2672
+ citationIds: z.ZodArray<z.ZodString>;
2673
+ }, z.core.$strict>>;
2674
+ attachments: z.ZodArray<z.ZodObject<{
2675
+ id: z.ZodString;
2676
+ kind: z.ZodEnum<{
2677
+ document: "document";
2678
+ image: "image";
2679
+ video: "video";
2680
+ audio: "audio";
2681
+ data: "data";
2682
+ }>;
2683
+ role: z.ZodEnum<{
2684
+ primary: "primary";
2685
+ supporting: "supporting";
2686
+ thumbnail: "thumbnail";
2687
+ }>;
2688
+ observationId: z.ZodString;
2689
+ ref: z.ZodString;
2690
+ sha256: z.ZodString;
2691
+ caption: z.ZodString;
2692
+ credit: z.ZodString;
2693
+ rights: z.ZodString;
2694
+ alt: z.ZodOptional<z.ZodString>;
2695
+ dimensions: z.ZodOptional<z.ZodObject<{
2696
+ width: z.ZodNumber;
2697
+ height: z.ZodNumber;
2698
+ }, z.core.$strict>>;
2699
+ durationSeconds: z.ZodOptional<z.ZodNumber>;
2700
+ citationIds: z.ZodArray<z.ZodString>;
2701
+ mimeType: z.ZodOptional<z.ZodString>;
2702
+ fileSizeBytes: z.ZodOptional<z.ZodNumber>;
2703
+ thumbnailAttachmentId: z.ZodOptional<z.ZodString>;
2704
+ }, z.core.$strict>>;
2705
+ featuredAttachmentId: z.ZodOptional<z.ZodString>;
2706
+ notices: z.ZodArray<z.ZodObject<{
2707
+ id: z.ZodString;
2708
+ kind: z.ZodEnum<{
2709
+ scope: "scope";
2710
+ rights: "rights";
2711
+ correction: "correction";
2712
+ archive: "archive";
2713
+ withdrawal: "withdrawal";
2714
+ }>;
2715
+ text: z.ZodString;
2716
+ }, z.core.$strict>>;
2717
+ }, z.core.$strict>;
2718
+ testimony: z.ZodObject<{
2719
+ document: z.ZodObject<{
2720
+ documentId: z.ZodString;
2721
+ schemaId: z.ZodLiteral<`urn:disclosureos:experimental:${string}`>;
2722
+ sha256: z.ZodString;
2723
+ }, z.core.$strict>;
2724
+ context: z.ZodObject<{
2725
+ documentId: z.ZodString;
2726
+ schemaId: z.ZodLiteral<`urn:disclosureos:experimental:${string}`>;
2727
+ sha256: z.ZodString;
2728
+ }, z.core.$strict>;
2729
+ history: z.ZodObject<{
2730
+ documentId: z.ZodString;
2731
+ schemaId: z.ZodLiteral<`urn:disclosureos:experimental:${string}`>;
2732
+ sha256: z.ZodString;
2733
+ }, z.core.$strict>;
2734
+ event: z.ZodObject<{
2735
+ entityId: z.ZodString;
2736
+ assertionId: z.ZodString;
2737
+ citationIds: z.ZodArray<z.ZodString>;
2738
+ }, z.core.$strict>;
2739
+ witness: z.ZodObject<{
2740
+ entityId: z.ZodString;
2741
+ identityAssertionId: z.ZodString;
2742
+ experienceAssertionId: z.ZodString;
2743
+ citationIds: z.ZodArray<z.ZodString>;
2744
+ }, z.core.$strict>;
2745
+ accounts: z.ZodArray<z.ZodObject<{
2746
+ id: z.ZodString;
2747
+ label: z.ZodString;
2748
+ entityId: z.ZodString;
2749
+ speakerAssertionId: z.ZodString;
2750
+ recordedAssertionId: z.ZodString;
2751
+ sourceAssertionId: z.ZodString;
2752
+ contentAssertionId: z.ZodOptional<z.ZodString>;
2753
+ eventAssertionId: z.ZodOptional<z.ZodString>;
2754
+ oathAssertionId: z.ZodOptional<z.ZodString>;
2755
+ citationIds: z.ZodArray<z.ZodString>;
2756
+ }, z.core.$strict>>;
2757
+ review: z.ZodObject<{
2758
+ id: z.ZodString;
2759
+ claimId: z.ZodString;
2760
+ title: z.ZodString;
2761
+ summary: z.ZodString;
2762
+ reviewerLabel: z.ZodString;
2763
+ methodLabel: z.ZodString;
2764
+ citationIds: z.ZodArray<z.ZodString>;
2765
+ }, z.core.$strict>;
2766
+ }, z.core.$strict>;
2767
+ }, z.core.$strict>;
2768
+ declare function testimonyCasePresentationJsonSchema(): Record<string, unknown>;
2769
+ declare function parseTestimonyCasePresentation(input: unknown): {
2770
+ success: false;
2771
+ data?: never;
2772
+ } | {
2773
+ success: true;
2774
+ data: {
2775
+ kind: "testimony_case_presentation";
2776
+ schemaVersion: "0.1.0";
2777
+ presentation: {
2778
+ kind: "case_presentation";
2779
+ schemaVersion: "0.1.0";
2780
+ publicId: string;
2781
+ caseRef: {
2782
+ documentId: string;
2783
+ sha256: string;
2784
+ schemaId: "urn:disclosureos:experimental:case-record:0.1.0";
2785
+ };
2786
+ title: string;
2787
+ summary: string;
2788
+ updatedAt: string;
2789
+ status: "draft" | "published" | "withdrawn" | "archived";
2790
+ citations: {
2791
+ id: string;
2792
+ label: string;
2793
+ target: {
2794
+ kind: "case";
2795
+ } | {
2796
+ kind: "artifact";
2797
+ observationId: string;
2798
+ ref: string;
2799
+ } | {
2800
+ kind: "supplement";
2801
+ linkId: string;
2802
+ };
2803
+ description?: string | undefined;
2804
+ }[];
2805
+ blocks: {
2806
+ id: string;
2807
+ text: string;
2808
+ citationIds: string[];
2809
+ heading?: string | undefined;
2810
+ }[];
2811
+ findings: {
2812
+ id: string;
2813
+ historyRef: {
2814
+ documentId: string;
2815
+ sha256: string;
2816
+ schemaId: "urn:disclosureos:experimental:case-claim-history:0.1.0";
2817
+ };
2818
+ claimId: string;
2819
+ title: string;
2820
+ summary: string;
2821
+ reviewerLabel: string;
2822
+ citationIds: string[];
2823
+ }[];
2824
+ attachments: {
2825
+ id: string;
2826
+ kind: "document" | "image" | "video" | "audio" | "data";
2827
+ role: "primary" | "supporting" | "thumbnail";
2828
+ observationId: string;
2829
+ ref: string;
2830
+ sha256: string;
2831
+ caption: string;
2832
+ credit: string;
2833
+ rights: string;
2834
+ citationIds: string[];
2835
+ alt?: string | undefined;
2836
+ dimensions?: {
2837
+ width: number;
2838
+ height: number;
2839
+ } | undefined;
2840
+ durationSeconds?: number | undefined;
2841
+ mimeType?: string | undefined;
2842
+ fileSizeBytes?: number | undefined;
2843
+ thumbnailAttachmentId?: string | undefined;
2844
+ }[];
2845
+ notices: {
2846
+ id: string;
2847
+ kind: "scope" | "rights" | "correction" | "archive" | "withdrawal";
2848
+ text: string;
2849
+ }[];
2850
+ linksRef?: {
2851
+ documentId: string;
2852
+ sha256: string;
2853
+ schemaId: "urn:disclosureos:experimental:case-links:0.1.0";
2854
+ } | undefined;
2855
+ featuredAttachmentId?: string | undefined;
2856
+ };
2857
+ testimony: {
2858
+ document: {
2859
+ documentId: string;
2860
+ schemaId: `urn:disclosureos:experimental:${string}`;
2861
+ sha256: string;
2862
+ };
2863
+ context: {
2864
+ documentId: string;
2865
+ schemaId: `urn:disclosureos:experimental:${string}`;
2866
+ sha256: string;
2867
+ };
2868
+ history: {
2869
+ documentId: string;
2870
+ schemaId: `urn:disclosureos:experimental:${string}`;
2871
+ sha256: string;
2872
+ };
2873
+ event: {
2874
+ entityId: string;
2875
+ assertionId: string;
2876
+ citationIds: string[];
2877
+ };
2878
+ witness: {
2879
+ entityId: string;
2880
+ identityAssertionId: string;
2881
+ experienceAssertionId: string;
2882
+ citationIds: string[];
2883
+ };
2884
+ accounts: {
2885
+ id: string;
2886
+ label: string;
2887
+ entityId: string;
2888
+ speakerAssertionId: string;
2889
+ recordedAssertionId: string;
2890
+ sourceAssertionId: string;
2891
+ citationIds: string[];
2892
+ contentAssertionId?: string | undefined;
2893
+ eventAssertionId?: string | undefined;
2894
+ oathAssertionId?: string | undefined;
2895
+ }[];
2896
+ review: {
2897
+ id: string;
2898
+ claimId: string;
2899
+ title: string;
2900
+ summary: string;
2901
+ reviewerLabel: string;
2902
+ methodLabel: string;
2903
+ citationIds: string[];
2904
+ };
2905
+ };
2906
+ };
2907
+ };
2908
+ interface PublicTestimonySelection {
2909
+ event: {
2910
+ label: string;
2911
+ precision: "quarter";
2912
+ year: number;
2913
+ quarter: number;
2914
+ citationIds: string[];
2915
+ };
2916
+ witness: {
2917
+ id: string;
2918
+ label: string;
2919
+ identityKind: "pseudonym";
2920
+ experienceYears: number;
2921
+ relevantTime: string;
2922
+ citationIds: string[];
2923
+ };
2924
+ accounts: Array<{
2925
+ id: string;
2926
+ label: string;
2927
+ witnessId: string;
2928
+ recordedYear: string;
2929
+ eventPeriod?: string;
2930
+ content?: string;
2931
+ contentNotice?: string;
2932
+ oath: string;
2933
+ citationIds: string[];
2934
+ }>;
2935
+ review: {
2936
+ id: string;
2937
+ title: string;
2938
+ summary: string;
2939
+ reviewerLabel: string;
2940
+ status: "assessed";
2941
+ outcome: string;
2942
+ revision: "current" | "superseded";
2943
+ independence: string;
2944
+ method: string;
2945
+ citationIds: string[];
2946
+ };
2947
+ limitations: string[];
2948
+ }
2949
+ type PublicTestimonyCasePayload = Omit<PublicCasePayload, "schemaVersion"> & {
2950
+ schemaVersion: "0.3.0";
2951
+ testimony: PublicTestimonySelection;
2952
+ };
2953
+ /** Approval pins the entire selection. Only allowlisted primitives leave this builder. No fetches. */
2954
+ declare function buildPublicTestimonyCase(input: Uint8Array, options: {
2955
+ documents: ReadonlyMap<string, Uint8Array>;
2956
+ approval?: CasePublicationApproval;
2957
+ }): Promise<{
2958
+ success: false;
2959
+ code: "APPROVAL_REQUIRED" | "INVALID_PRESENTATION" | "NOT_PUBLISHED" | "INVALID_REFERENCES";
2960
+ } | {
2961
+ success: true;
2962
+ data: {
2963
+ schemaVersion: "0.3.0";
2964
+ assessmentNotice: string;
2965
+ testimony: PublicTestimonySelection;
2966
+ kind: "public_case";
2967
+ publicId: string;
2968
+ title: string;
2969
+ summary: string;
2970
+ updatedAt: string;
2971
+ status: "published" | "archived";
2972
+ citations: Array<{
2973
+ id: string;
2974
+ label: string;
2975
+ description?: string;
2976
+ }>;
2977
+ blocks: Array<{
2978
+ id: string;
2979
+ heading?: string;
2980
+ text: string;
2981
+ citationIds: string[];
2982
+ }>;
2983
+ findings: Array<{
2984
+ id: string;
2985
+ title: string;
2986
+ summary: string;
2987
+ reviewerLabel: string;
2988
+ citationIds: string[];
2989
+ status: "assessed" | "unassessed";
2990
+ outcome?: "reported" | "confirmed" | "absent" | "inconclusive";
2991
+ revision: "current" | "superseded";
2992
+ }>;
2993
+ attachments: Array<{
2994
+ id: string;
2995
+ kind: CasePresentation["attachments"][number]["kind"];
2996
+ role: CasePresentation["attachments"][number]["role"];
2997
+ href: string;
2998
+ caption: string;
2999
+ credit: string;
3000
+ rights: string;
3001
+ alt?: string;
3002
+ dimensions?: {
3003
+ width: number;
3004
+ height: number;
3005
+ };
3006
+ durationSeconds?: number;
3007
+ mimeType?: string;
3008
+ fileSizeBytes?: number;
3009
+ thumbnailAttachmentId?: string;
3010
+ citationIds: string[];
3011
+ }>;
3012
+ featuredAttachmentId?: string;
3013
+ notices: Array<{
3014
+ id: string;
3015
+ kind: CasePresentation["notices"][number]["kind"];
3016
+ text: string;
3017
+ }>;
3018
+ };
3019
+ }>;
3020
+ declare function buildPublicTestimonyCaseOutputs(input: Uint8Array, options: Parameters<typeof buildPublicTestimonyCase>[1]): Promise<{
3021
+ success: false;
3022
+ code: "APPROVAL_REQUIRED" | "INVALID_PRESENTATION" | "NOT_PUBLISHED" | "INVALID_REFERENCES";
3023
+ } | {
3024
+ success: true;
3025
+ data: {
3026
+ schemaVersion: "0.3.0";
3027
+ assessmentNotice: string;
3028
+ testimony: PublicTestimonySelection;
3029
+ kind: "public_case";
3030
+ publicId: string;
3031
+ title: string;
3032
+ summary: string;
3033
+ updatedAt: string;
3034
+ status: "published" | "archived";
3035
+ citations: Array<{
3036
+ id: string;
3037
+ label: string;
3038
+ description?: string;
3039
+ }>;
3040
+ blocks: Array<{
3041
+ id: string;
3042
+ heading?: string;
3043
+ text: string;
3044
+ citationIds: string[];
3045
+ }>;
3046
+ findings: Array<{
3047
+ id: string;
3048
+ title: string;
3049
+ summary: string;
3050
+ reviewerLabel: string;
3051
+ citationIds: string[];
3052
+ status: "assessed" | "unassessed";
3053
+ outcome?: "reported" | "confirmed" | "absent" | "inconclusive";
3054
+ revision: "current" | "superseded";
3055
+ }>;
3056
+ attachments: Array<{
3057
+ id: string;
3058
+ kind: CasePresentation["attachments"][number]["kind"];
3059
+ role: CasePresentation["attachments"][number]["role"];
3060
+ href: string;
3061
+ caption: string;
3062
+ credit: string;
3063
+ rights: string;
3064
+ alt?: string;
3065
+ dimensions?: {
3066
+ width: number;
3067
+ height: number;
3068
+ };
3069
+ durationSeconds?: number;
3070
+ mimeType?: string;
3071
+ fileSizeBytes?: number;
3072
+ thumbnailAttachmentId?: string;
3073
+ citationIds: string[];
3074
+ }>;
3075
+ featuredAttachmentId?: string;
3076
+ notices: Array<{
3077
+ id: string;
3078
+ kind: CasePresentation["notices"][number]["kind"];
3079
+ text: string;
3080
+ }>;
3081
+ };
3082
+ json: string;
3083
+ markdown: string;
3084
+ search: {
3085
+ publicId: string;
3086
+ title: string;
3087
+ text: string;
3088
+ };
3089
+ metadata: {
3090
+ title: string;
3091
+ description: string;
3092
+ };
3093
+ }>;
3094
+
3095
+ declare const ARCHIVAL_CASE_PRESENTATION_SCHEMA_ID = "urn:disclosureos:experimental:archival-case-presentation:0.1.0";
3096
+ declare const ArchivalCasePresentationSchema: z.ZodObject<{
3097
+ kind: z.ZodLiteral<"archival_case_presentation">;
3098
+ schemaVersion: z.ZodLiteral<"0.1.0">;
3099
+ presentation: z.ZodObject<{
3100
+ kind: z.ZodLiteral<"case_presentation">;
3101
+ schemaVersion: z.ZodLiteral<"0.1.0">;
3102
+ publicId: z.ZodString;
3103
+ caseRef: z.ZodObject<{
3104
+ documentId: z.ZodString;
3105
+ sha256: z.ZodString;
3106
+ schemaId: z.ZodLiteral<"urn:disclosureos:experimental:case-record:0.1.0">;
3107
+ }, z.core.$strict>;
3108
+ linksRef: z.ZodOptional<z.ZodObject<{
3109
+ documentId: z.ZodString;
3110
+ sha256: z.ZodString;
3111
+ schemaId: z.ZodLiteral<"urn:disclosureos:experimental:case-links:0.1.0">;
3112
+ }, z.core.$strict>>;
3113
+ title: z.ZodString;
3114
+ summary: z.ZodString;
3115
+ updatedAt: z.ZodISODateTime;
3116
+ status: z.ZodEnum<{
3117
+ draft: "draft";
3118
+ published: "published";
3119
+ withdrawn: "withdrawn";
3120
+ archived: "archived";
3121
+ }>;
3122
+ citations: z.ZodArray<z.ZodObject<{
3123
+ id: z.ZodString;
3124
+ label: z.ZodString;
3125
+ description: z.ZodOptional<z.ZodString>;
3126
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
3127
+ kind: z.ZodLiteral<"case">;
3128
+ }, z.core.$strict>, z.ZodObject<{
3129
+ kind: z.ZodLiteral<"artifact">;
3130
+ observationId: z.ZodString;
3131
+ ref: z.ZodString;
3132
+ }, z.core.$strict>, z.ZodObject<{
3133
+ kind: z.ZodLiteral<"supplement">;
3134
+ linkId: z.ZodString;
3135
+ }, z.core.$strict>], "kind">;
3136
+ }, z.core.$strict>>;
3137
+ blocks: z.ZodArray<z.ZodObject<{
3138
+ id: z.ZodString;
3139
+ heading: z.ZodOptional<z.ZodString>;
3140
+ text: z.ZodString;
3141
+ citationIds: z.ZodArray<z.ZodString>;
3142
+ }, z.core.$strict>>;
3143
+ findings: z.ZodArray<z.ZodObject<{
3144
+ id: z.ZodString;
3145
+ historyRef: z.ZodObject<{
3146
+ documentId: z.ZodString;
3147
+ sha256: z.ZodString;
3148
+ schemaId: z.ZodLiteral<"urn:disclosureos:experimental:case-claim-history:0.1.0">;
3149
+ }, z.core.$strict>;
3150
+ claimId: z.ZodString;
3151
+ title: z.ZodString;
3152
+ summary: z.ZodString;
3153
+ reviewerLabel: z.ZodString;
3154
+ citationIds: z.ZodArray<z.ZodString>;
3155
+ }, z.core.$strict>>;
3156
+ attachments: z.ZodArray<z.ZodObject<{
3157
+ id: z.ZodString;
3158
+ kind: z.ZodEnum<{
3159
+ document: "document";
3160
+ image: "image";
3161
+ video: "video";
3162
+ audio: "audio";
3163
+ data: "data";
3164
+ }>;
3165
+ role: z.ZodEnum<{
3166
+ primary: "primary";
3167
+ supporting: "supporting";
3168
+ thumbnail: "thumbnail";
3169
+ }>;
3170
+ observationId: z.ZodString;
3171
+ ref: z.ZodString;
3172
+ sha256: z.ZodString;
3173
+ caption: z.ZodString;
3174
+ credit: z.ZodString;
3175
+ rights: z.ZodString;
3176
+ alt: z.ZodOptional<z.ZodString>;
3177
+ dimensions: z.ZodOptional<z.ZodObject<{
3178
+ width: z.ZodNumber;
3179
+ height: z.ZodNumber;
3180
+ }, z.core.$strict>>;
3181
+ durationSeconds: z.ZodOptional<z.ZodNumber>;
3182
+ citationIds: z.ZodArray<z.ZodString>;
3183
+ mimeType: z.ZodOptional<z.ZodString>;
3184
+ fileSizeBytes: z.ZodOptional<z.ZodNumber>;
3185
+ thumbnailAttachmentId: z.ZodOptional<z.ZodString>;
3186
+ }, z.core.$strict>>;
3187
+ featuredAttachmentId: z.ZodOptional<z.ZodString>;
3188
+ notices: z.ZodArray<z.ZodObject<{
3189
+ id: z.ZodString;
3190
+ kind: z.ZodEnum<{
3191
+ scope: "scope";
3192
+ rights: "rights";
3193
+ correction: "correction";
3194
+ archive: "archive";
3195
+ withdrawal: "withdrawal";
3196
+ }>;
3197
+ text: z.ZodString;
3198
+ }, z.core.$strict>>;
3199
+ }, z.core.$strict>;
3200
+ archival: z.ZodObject<{
3201
+ document: z.ZodObject<{
3202
+ documentId: z.ZodString;
3203
+ schemaId: z.ZodLiteral<`urn:disclosureos:experimental:${string}`>;
3204
+ sha256: z.ZodString;
3205
+ }, z.core.$strict>;
3206
+ history: z.ZodObject<{
3207
+ documentId: z.ZodString;
3208
+ schemaId: z.ZodLiteral<`urn:disclosureos:experimental:${string}`>;
3209
+ sha256: z.ZodString;
3210
+ }, z.core.$strict>;
3211
+ editions: z.ZodArray<z.ZodObject<{
3212
+ id: z.ZodString;
3213
+ label: z.ZodString;
3214
+ entityId: z.ZodString;
3215
+ titleAssertionId: z.ZodString;
3216
+ pageCountAssertionId: z.ZodString;
3217
+ attachmentId: z.ZodOptional<z.ZodString>;
3218
+ citationIds: z.ZodArray<z.ZodString>;
3219
+ fields: z.ZodArray<z.ZodObject<{
3220
+ field: z.ZodEnum<{
3221
+ originalClassification: "originalClassification";
3222
+ classificationLevel: "classificationLevel";
3223
+ redactionLevel: "redactionLevel";
3224
+ redactionDescription: "redactionDescription";
3225
+ redactionPercent: "redactionPercent";
3226
+ }>;
3227
+ assertionId: z.ZodString;
3228
+ }, z.core.$strict>>;
3229
+ events: z.ZodArray<z.ZodObject<{
3230
+ id: z.ZodString;
3231
+ entityId: z.ZodString;
3232
+ typeAssertionId: z.ZodString;
3233
+ dateAssertionId: z.ZodString;
3234
+ citationIds: z.ZodArray<z.ZodString>;
3235
+ }, z.core.$strict>>;
3236
+ digital: z.ZodObject<{
3237
+ entityId: z.ZodString;
3238
+ custodyStatusAssertionId: z.ZodOptional<z.ZodString>;
3239
+ declaredHashesAssertionId: z.ZodOptional<z.ZodString>;
3240
+ actions: z.ZodArray<z.ZodObject<{
3241
+ id: z.ZodString;
3242
+ entityId: z.ZodString;
3243
+ actionAssertionId: z.ZodString;
3244
+ dateAssertionId: z.ZodString;
3245
+ citationIds: z.ZodArray<z.ZodString>;
3246
+ }, z.core.$strict>>;
3247
+ }, z.core.$strict>;
3248
+ }, z.core.$strict>>;
3249
+ passages: z.ZodArray<z.ZodObject<{
3250
+ id: z.ZodString;
3251
+ claimId: z.ZodString;
3252
+ attributionLabel: z.ZodString;
3253
+ citationIds: z.ZodArray<z.ZodString>;
3254
+ }, z.core.$strict>>;
3255
+ review: z.ZodObject<{
3256
+ id: z.ZodString;
3257
+ claimId: z.ZodString;
3258
+ title: z.ZodString;
3259
+ summary: z.ZodString;
3260
+ reviewerLabel: z.ZodString;
3261
+ methodLabel: z.ZodString;
3262
+ citationIds: z.ZodArray<z.ZodString>;
3263
+ }, z.core.$strict>;
3264
+ }, z.core.$strict>;
3265
+ }, z.core.$strict>;
3266
+ declare function archivalCasePresentationJsonSchema(): Record<string, unknown>;
3267
+ declare function parseArchivalCasePresentation(input: unknown): {
3268
+ success: false;
3269
+ data?: never;
3270
+ } | {
3271
+ success: true;
3272
+ data: {
3273
+ kind: "archival_case_presentation";
3274
+ schemaVersion: "0.1.0";
3275
+ presentation: {
3276
+ kind: "case_presentation";
3277
+ schemaVersion: "0.1.0";
3278
+ publicId: string;
3279
+ caseRef: {
3280
+ documentId: string;
3281
+ sha256: string;
3282
+ schemaId: "urn:disclosureos:experimental:case-record:0.1.0";
3283
+ };
3284
+ title: string;
3285
+ summary: string;
3286
+ updatedAt: string;
3287
+ status: "draft" | "published" | "withdrawn" | "archived";
3288
+ citations: {
3289
+ id: string;
3290
+ label: string;
3291
+ target: {
3292
+ kind: "case";
3293
+ } | {
3294
+ kind: "artifact";
3295
+ observationId: string;
3296
+ ref: string;
3297
+ } | {
3298
+ kind: "supplement";
3299
+ linkId: string;
3300
+ };
3301
+ description?: string | undefined;
3302
+ }[];
3303
+ blocks: {
3304
+ id: string;
3305
+ text: string;
3306
+ citationIds: string[];
3307
+ heading?: string | undefined;
3308
+ }[];
3309
+ findings: {
3310
+ id: string;
3311
+ historyRef: {
3312
+ documentId: string;
3313
+ sha256: string;
3314
+ schemaId: "urn:disclosureos:experimental:case-claim-history:0.1.0";
3315
+ };
3316
+ claimId: string;
3317
+ title: string;
3318
+ summary: string;
3319
+ reviewerLabel: string;
3320
+ citationIds: string[];
3321
+ }[];
3322
+ attachments: {
3323
+ id: string;
3324
+ kind: "document" | "image" | "video" | "audio" | "data";
3325
+ role: "primary" | "supporting" | "thumbnail";
3326
+ observationId: string;
3327
+ ref: string;
3328
+ sha256: string;
3329
+ caption: string;
3330
+ credit: string;
3331
+ rights: string;
3332
+ citationIds: string[];
3333
+ alt?: string | undefined;
3334
+ dimensions?: {
3335
+ width: number;
3336
+ height: number;
3337
+ } | undefined;
3338
+ durationSeconds?: number | undefined;
3339
+ mimeType?: string | undefined;
3340
+ fileSizeBytes?: number | undefined;
3341
+ thumbnailAttachmentId?: string | undefined;
3342
+ }[];
3343
+ notices: {
3344
+ id: string;
3345
+ kind: "scope" | "rights" | "correction" | "archive" | "withdrawal";
3346
+ text: string;
3347
+ }[];
3348
+ linksRef?: {
3349
+ documentId: string;
3350
+ sha256: string;
3351
+ schemaId: "urn:disclosureos:experimental:case-links:0.1.0";
3352
+ } | undefined;
3353
+ featuredAttachmentId?: string | undefined;
3354
+ };
3355
+ archival: {
3356
+ document: {
3357
+ documentId: string;
3358
+ schemaId: `urn:disclosureos:experimental:${string}`;
3359
+ sha256: string;
3360
+ };
3361
+ history: {
3362
+ documentId: string;
3363
+ schemaId: `urn:disclosureos:experimental:${string}`;
3364
+ sha256: string;
3365
+ };
3366
+ editions: {
3367
+ id: string;
3368
+ label: string;
3369
+ entityId: string;
3370
+ titleAssertionId: string;
3371
+ pageCountAssertionId: string;
3372
+ citationIds: string[];
3373
+ fields: {
3374
+ field: "originalClassification" | "classificationLevel" | "redactionLevel" | "redactionDescription" | "redactionPercent";
3375
+ assertionId: string;
3376
+ }[];
3377
+ events: {
3378
+ id: string;
3379
+ entityId: string;
3380
+ typeAssertionId: string;
3381
+ dateAssertionId: string;
3382
+ citationIds: string[];
3383
+ }[];
3384
+ digital: {
3385
+ entityId: string;
3386
+ actions: {
3387
+ id: string;
3388
+ entityId: string;
3389
+ actionAssertionId: string;
3390
+ dateAssertionId: string;
3391
+ citationIds: string[];
3392
+ }[];
3393
+ custodyStatusAssertionId?: string | undefined;
3394
+ declaredHashesAssertionId?: string | undefined;
3395
+ };
3396
+ attachmentId?: string | undefined;
3397
+ }[];
3398
+ passages: {
3399
+ id: string;
3400
+ claimId: string;
3401
+ attributionLabel: string;
3402
+ citationIds: string[];
3403
+ }[];
3404
+ review: {
3405
+ id: string;
3406
+ claimId: string;
3407
+ title: string;
3408
+ summary: string;
3409
+ reviewerLabel: string;
3410
+ methodLabel: string;
3411
+ citationIds: string[];
3412
+ };
3413
+ };
3414
+ };
3415
+ };
3416
+ type PublicValue$1 = {
3417
+ state: "known" | "unknown";
3418
+ value: string;
3419
+ };
3420
+ interface PublicArchivalSelection {
3421
+ editions: Array<{
3422
+ id: string;
3423
+ label: string;
3424
+ title: string;
3425
+ pages: number;
3426
+ sourceCitationId: string;
3427
+ citationIds: string[];
3428
+ fields: Array<PublicValue$1 & {
3429
+ id: string;
3430
+ label: string;
3431
+ }>;
3432
+ events: Array<PublicValue$1 & {
3433
+ id: string;
3434
+ type: string;
3435
+ citationIds: string[];
3436
+ }>;
3437
+ digital: {
3438
+ sha256: string;
3439
+ attachmentId?: string;
3440
+ custodyStatus?: PublicValue$1;
3441
+ declaredHashes: Array<{
3442
+ algorithm: string;
3443
+ value: string;
3444
+ scope: "unavailable_original";
3445
+ }>;
3446
+ actions: Array<{
3447
+ id: string;
3448
+ action: string;
3449
+ occurredAt: PublicValue$1;
3450
+ predecessor: {
3451
+ kind: "action";
3452
+ id: string;
3453
+ } | {
3454
+ kind: "start";
3455
+ } | {
3456
+ kind: "unknown";
3457
+ };
3458
+ citationIds: string[];
3459
+ }>;
3460
+ };
3461
+ }>;
3462
+ passages: Array<{
3463
+ id: string;
3464
+ text: string;
3465
+ attributionLabel: string;
3466
+ editionId: string;
3467
+ page: number;
3468
+ citationIds: string[];
3469
+ }>;
3470
+ review: {
3471
+ id: string;
3472
+ title: string;
3473
+ summary: string;
3474
+ reviewerLabel: string;
3475
+ status: "assessed";
3476
+ outcome: string;
3477
+ revision: "current" | "superseded";
3478
+ method: string;
3479
+ inputs: Array<{
3480
+ editionId: string;
3481
+ page: number;
3482
+ }>;
3483
+ citationIds: string[];
3484
+ };
3485
+ limitations: string[];
3486
+ }
3487
+ type PublicArchivalCasePayload = Omit<PublicCasePayload, "schemaVersion"> & {
3488
+ schemaVersion: "0.4.0";
3489
+ archival: PublicArchivalSelection;
3490
+ };
3491
+ /** Only selected edition declarations, page-bound passages and attributed review details are public. No fetching. */
3492
+ declare function buildPublicArchivalCase(input: Uint8Array, options: {
3493
+ documents: ReadonlyMap<string, Uint8Array>;
3494
+ approval?: CasePublicationApproval;
3495
+ }): Promise<{
3496
+ success: false;
3497
+ code: "APPROVAL_REQUIRED" | "INVALID_PRESENTATION" | "NOT_PUBLISHED" | "INVALID_REFERENCES";
3498
+ } | {
3499
+ success: true;
3500
+ data: {
3501
+ schemaVersion: "0.4.0";
3502
+ assessmentNotice: string;
3503
+ archival: PublicArchivalSelection;
3504
+ kind: "public_case";
3505
+ publicId: string;
3506
+ title: string;
3507
+ summary: string;
3508
+ updatedAt: string;
3509
+ status: "published" | "archived";
3510
+ citations: Array<{
3511
+ id: string;
3512
+ label: string;
3513
+ description?: string;
3514
+ }>;
3515
+ blocks: Array<{
3516
+ id: string;
3517
+ heading?: string;
3518
+ text: string;
3519
+ citationIds: string[];
3520
+ }>;
3521
+ findings: Array<{
3522
+ id: string;
3523
+ title: string;
3524
+ summary: string;
3525
+ reviewerLabel: string;
3526
+ citationIds: string[];
3527
+ status: "assessed" | "unassessed";
3528
+ outcome?: "reported" | "confirmed" | "absent" | "inconclusive";
3529
+ revision: "current" | "superseded";
3530
+ }>;
3531
+ attachments: Array<{
3532
+ id: string;
3533
+ kind: CasePresentation["attachments"][number]["kind"];
3534
+ role: CasePresentation["attachments"][number]["role"];
3535
+ href: string;
3536
+ caption: string;
3537
+ credit: string;
3538
+ rights: string;
3539
+ alt?: string;
3540
+ dimensions?: {
3541
+ width: number;
3542
+ height: number;
3543
+ };
3544
+ durationSeconds?: number;
3545
+ mimeType?: string;
3546
+ fileSizeBytes?: number;
3547
+ thumbnailAttachmentId?: string;
3548
+ citationIds: string[];
3549
+ }>;
3550
+ featuredAttachmentId?: string;
3551
+ notices: Array<{
3552
+ id: string;
3553
+ kind: CasePresentation["notices"][number]["kind"];
3554
+ text: string;
3555
+ }>;
3556
+ };
3557
+ }>;
3558
+ declare function buildPublicArchivalCaseOutputs(input: Uint8Array, options: Parameters<typeof buildPublicArchivalCase>[1]): Promise<{
3559
+ success: false;
3560
+ code: "APPROVAL_REQUIRED" | "INVALID_PRESENTATION" | "NOT_PUBLISHED" | "INVALID_REFERENCES";
3561
+ } | {
3562
+ success: true;
3563
+ data: {
3564
+ schemaVersion: "0.4.0";
3565
+ assessmentNotice: string;
3566
+ archival: PublicArchivalSelection;
3567
+ kind: "public_case";
3568
+ publicId: string;
3569
+ title: string;
3570
+ summary: string;
3571
+ updatedAt: string;
3572
+ status: "published" | "archived";
3573
+ citations: Array<{
3574
+ id: string;
3575
+ label: string;
3576
+ description?: string;
3577
+ }>;
3578
+ blocks: Array<{
3579
+ id: string;
3580
+ heading?: string;
3581
+ text: string;
3582
+ citationIds: string[];
3583
+ }>;
3584
+ findings: Array<{
3585
+ id: string;
3586
+ title: string;
3587
+ summary: string;
3588
+ reviewerLabel: string;
3589
+ citationIds: string[];
3590
+ status: "assessed" | "unassessed";
3591
+ outcome?: "reported" | "confirmed" | "absent" | "inconclusive";
3592
+ revision: "current" | "superseded";
3593
+ }>;
3594
+ attachments: Array<{
3595
+ id: string;
3596
+ kind: CasePresentation["attachments"][number]["kind"];
3597
+ role: CasePresentation["attachments"][number]["role"];
3598
+ href: string;
3599
+ caption: string;
3600
+ credit: string;
3601
+ rights: string;
3602
+ alt?: string;
3603
+ dimensions?: {
3604
+ width: number;
3605
+ height: number;
3606
+ };
3607
+ durationSeconds?: number;
3608
+ mimeType?: string;
3609
+ fileSizeBytes?: number;
3610
+ thumbnailAttachmentId?: string;
3611
+ citationIds: string[];
3612
+ }>;
3613
+ featuredAttachmentId?: string;
3614
+ notices: Array<{
3615
+ id: string;
3616
+ kind: CasePresentation["notices"][number]["kind"];
3617
+ text: string;
3618
+ }>;
3619
+ };
3620
+ json: string;
3621
+ markdown: string;
3622
+ search: {
3623
+ publicId: string;
3624
+ title: string;
3625
+ text: string;
3626
+ };
3627
+ metadata: {
3628
+ title: string;
3629
+ description: string;
3630
+ };
3631
+ }>;
3632
+
3633
+ declare const MATERIAL_CASE_PRESENTATION_SCHEMA_ID = "urn:disclosureos:experimental:material-case-presentation:0.1.0";
3634
+ declare const MaterialCasePresentationSchema: z.ZodObject<{
3635
+ kind: z.ZodLiteral<"material_case_presentation">;
3636
+ schemaVersion: z.ZodLiteral<"0.1.0">;
3637
+ presentation: z.ZodObject<{
3638
+ kind: z.ZodLiteral<"case_presentation">;
3639
+ schemaVersion: z.ZodLiteral<"0.1.0">;
3640
+ publicId: z.ZodString;
3641
+ caseRef: z.ZodObject<{
3642
+ documentId: z.ZodString;
3643
+ sha256: z.ZodString;
3644
+ schemaId: z.ZodLiteral<"urn:disclosureos:experimental:case-record:0.1.0">;
3645
+ }, z.core.$strict>;
3646
+ linksRef: z.ZodOptional<z.ZodObject<{
3647
+ documentId: z.ZodString;
3648
+ sha256: z.ZodString;
3649
+ schemaId: z.ZodLiteral<"urn:disclosureos:experimental:case-links:0.1.0">;
3650
+ }, z.core.$strict>>;
3651
+ title: z.ZodString;
3652
+ summary: z.ZodString;
3653
+ updatedAt: z.ZodISODateTime;
3654
+ status: z.ZodEnum<{
3655
+ draft: "draft";
3656
+ published: "published";
3657
+ withdrawn: "withdrawn";
3658
+ archived: "archived";
3659
+ }>;
3660
+ citations: z.ZodArray<z.ZodObject<{
3661
+ id: z.ZodString;
3662
+ label: z.ZodString;
3663
+ description: z.ZodOptional<z.ZodString>;
3664
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
3665
+ kind: z.ZodLiteral<"case">;
3666
+ }, z.core.$strict>, z.ZodObject<{
3667
+ kind: z.ZodLiteral<"artifact">;
3668
+ observationId: z.ZodString;
3669
+ ref: z.ZodString;
3670
+ }, z.core.$strict>, z.ZodObject<{
3671
+ kind: z.ZodLiteral<"supplement">;
3672
+ linkId: z.ZodString;
3673
+ }, z.core.$strict>], "kind">;
3674
+ }, z.core.$strict>>;
3675
+ blocks: z.ZodArray<z.ZodObject<{
3676
+ id: z.ZodString;
3677
+ heading: z.ZodOptional<z.ZodString>;
3678
+ text: z.ZodString;
3679
+ citationIds: z.ZodArray<z.ZodString>;
3680
+ }, z.core.$strict>>;
3681
+ findings: z.ZodArray<z.ZodObject<{
3682
+ id: z.ZodString;
3683
+ historyRef: z.ZodObject<{
3684
+ documentId: z.ZodString;
3685
+ sha256: z.ZodString;
3686
+ schemaId: z.ZodLiteral<"urn:disclosureos:experimental:case-claim-history:0.1.0">;
3687
+ }, z.core.$strict>;
3688
+ claimId: z.ZodString;
3689
+ title: z.ZodString;
3690
+ summary: z.ZodString;
3691
+ reviewerLabel: z.ZodString;
3692
+ citationIds: z.ZodArray<z.ZodString>;
3693
+ }, z.core.$strict>>;
3694
+ attachments: z.ZodArray<z.ZodObject<{
3695
+ id: z.ZodString;
3696
+ kind: z.ZodEnum<{
3697
+ document: "document";
3698
+ image: "image";
3699
+ video: "video";
3700
+ audio: "audio";
3701
+ data: "data";
3702
+ }>;
3703
+ role: z.ZodEnum<{
3704
+ primary: "primary";
3705
+ supporting: "supporting";
3706
+ thumbnail: "thumbnail";
3707
+ }>;
3708
+ observationId: z.ZodString;
3709
+ ref: z.ZodString;
3710
+ sha256: z.ZodString;
3711
+ caption: z.ZodString;
3712
+ credit: z.ZodString;
3713
+ rights: z.ZodString;
3714
+ alt: z.ZodOptional<z.ZodString>;
3715
+ dimensions: z.ZodOptional<z.ZodObject<{
3716
+ width: z.ZodNumber;
3717
+ height: z.ZodNumber;
3718
+ }, z.core.$strict>>;
3719
+ durationSeconds: z.ZodOptional<z.ZodNumber>;
3720
+ citationIds: z.ZodArray<z.ZodString>;
3721
+ mimeType: z.ZodOptional<z.ZodString>;
3722
+ fileSizeBytes: z.ZodOptional<z.ZodNumber>;
3723
+ thumbnailAttachmentId: z.ZodOptional<z.ZodString>;
3724
+ }, z.core.$strict>>;
3725
+ featuredAttachmentId: z.ZodOptional<z.ZodString>;
3726
+ notices: z.ZodArray<z.ZodObject<{
3727
+ id: z.ZodString;
3728
+ kind: z.ZodEnum<{
3729
+ scope: "scope";
3730
+ rights: "rights";
3731
+ correction: "correction";
3732
+ archive: "archive";
3733
+ withdrawal: "withdrawal";
3734
+ }>;
3735
+ text: z.ZodString;
3736
+ }, z.core.$strict>>;
3737
+ }, z.core.$strict>;
3738
+ material: z.ZodObject<{
3739
+ document: z.ZodObject<{
3740
+ documentId: z.ZodString;
3741
+ schemaId: z.ZodLiteral<`urn:disclosureos:experimental:${string}`>;
3742
+ sha256: z.ZodString;
3743
+ }, z.core.$strict>;
3744
+ history: z.ZodObject<{
3745
+ documentId: z.ZodString;
3746
+ schemaId: z.ZodLiteral<`urn:disclosureos:experimental:${string}`>;
3747
+ sha256: z.ZodString;
3748
+ }, z.core.$strict>;
3749
+ traces: z.ZodArray<z.ZodObject<{
3750
+ descriptionAssertionId: z.ZodString;
3751
+ id: z.ZodString;
3752
+ entityId: z.ZodString;
3753
+ label: z.ZodString;
3754
+ citationIds: z.ZodArray<z.ZodString>;
3755
+ }, z.core.$strict>>;
3756
+ specimens: z.ZodArray<z.ZodObject<{
3757
+ fields: z.ZodArray<z.ZodObject<{
3758
+ field: z.ZodEnum<{
3759
+ description: "description";
3760
+ type: "type";
3761
+ collectionTime: "collectionTime";
3762
+ reportedCustodyStatus: "reportedCustodyStatus";
3763
+ }>;
3764
+ assertionId: z.ZodString;
3765
+ }, z.core.$strict>>;
3766
+ actions: z.ZodArray<z.ZodObject<{
3767
+ id: z.ZodString;
3768
+ entityId: z.ZodString;
3769
+ actionAssertionId: z.ZodString;
3770
+ dateAssertionId: z.ZodString;
3771
+ citationIds: z.ZodArray<z.ZodString>;
3772
+ }, z.core.$strict>>;
3773
+ id: z.ZodString;
3774
+ entityId: z.ZodString;
3775
+ label: z.ZodString;
3776
+ citationIds: z.ZodArray<z.ZodString>;
3777
+ }, z.core.$strict>>;
3778
+ preparations: z.ZodArray<z.ZodObject<{
3779
+ methodAssertionId: z.ZodString;
3780
+ dateAssertionId: z.ZodString;
3781
+ id: z.ZodString;
3782
+ entityId: z.ZodString;
3783
+ label: z.ZodString;
3784
+ citationIds: z.ZodArray<z.ZodString>;
3785
+ }, z.core.$strict>>;
3786
+ analyses: z.ZodArray<z.ZodObject<{
3787
+ methodAssertionId: z.ZodString;
3788
+ methodLabel: z.ZodString;
3789
+ dateAssertionId: z.ZodString;
3790
+ id: z.ZodString;
3791
+ entityId: z.ZodString;
3792
+ label: z.ZodString;
3793
+ citationIds: z.ZodArray<z.ZodString>;
3794
+ }, z.core.$strict>>;
3795
+ results: z.ZodArray<z.ZodObject<{
3796
+ resultAssertionId: z.ZodString;
3797
+ analyteAssertionId: z.ZodOptional<z.ZodString>;
3798
+ id: z.ZodString;
3799
+ entityId: z.ZodString;
3800
+ label: z.ZodString;
3801
+ citationIds: z.ZodArray<z.ZodString>;
3802
+ }, z.core.$strict>>;
3803
+ review: z.ZodObject<{
3804
+ id: z.ZodString;
3805
+ claimId: z.ZodString;
3806
+ title: z.ZodString;
3807
+ summary: z.ZodString;
3808
+ reviewerLabel: z.ZodString;
3809
+ methodLabel: z.ZodString;
3810
+ citationIds: z.ZodArray<z.ZodString>;
3811
+ }, z.core.$strict>;
3812
+ }, z.core.$strict>;
3813
+ }, z.core.$strict>;
3814
+ declare function materialCasePresentationJsonSchema(): Record<string, unknown>;
3815
+ declare function parseMaterialCasePresentation(input: unknown): {
3816
+ success: false;
3817
+ data?: never;
3818
+ } | {
3819
+ success: true;
3820
+ data: {
3821
+ kind: "material_case_presentation";
3822
+ schemaVersion: "0.1.0";
3823
+ presentation: {
3824
+ kind: "case_presentation";
3825
+ schemaVersion: "0.1.0";
3826
+ publicId: string;
3827
+ caseRef: {
3828
+ documentId: string;
3829
+ sha256: string;
3830
+ schemaId: "urn:disclosureos:experimental:case-record:0.1.0";
3831
+ };
3832
+ title: string;
3833
+ summary: string;
3834
+ updatedAt: string;
3835
+ status: "draft" | "published" | "withdrawn" | "archived";
3836
+ citations: {
3837
+ id: string;
3838
+ label: string;
3839
+ target: {
3840
+ kind: "case";
3841
+ } | {
3842
+ kind: "artifact";
3843
+ observationId: string;
3844
+ ref: string;
3845
+ } | {
3846
+ kind: "supplement";
3847
+ linkId: string;
3848
+ };
3849
+ description?: string | undefined;
3850
+ }[];
3851
+ blocks: {
3852
+ id: string;
3853
+ text: string;
3854
+ citationIds: string[];
3855
+ heading?: string | undefined;
3856
+ }[];
3857
+ findings: {
3858
+ id: string;
3859
+ historyRef: {
3860
+ documentId: string;
3861
+ sha256: string;
3862
+ schemaId: "urn:disclosureos:experimental:case-claim-history:0.1.0";
3863
+ };
3864
+ claimId: string;
3865
+ title: string;
3866
+ summary: string;
3867
+ reviewerLabel: string;
3868
+ citationIds: string[];
3869
+ }[];
3870
+ attachments: {
3871
+ id: string;
3872
+ kind: "document" | "image" | "video" | "audio" | "data";
3873
+ role: "primary" | "supporting" | "thumbnail";
3874
+ observationId: string;
3875
+ ref: string;
3876
+ sha256: string;
3877
+ caption: string;
3878
+ credit: string;
3879
+ rights: string;
3880
+ citationIds: string[];
3881
+ alt?: string | undefined;
3882
+ dimensions?: {
3883
+ width: number;
3884
+ height: number;
3885
+ } | undefined;
3886
+ durationSeconds?: number | undefined;
3887
+ mimeType?: string | undefined;
3888
+ fileSizeBytes?: number | undefined;
3889
+ thumbnailAttachmentId?: string | undefined;
3890
+ }[];
3891
+ notices: {
3892
+ id: string;
3893
+ kind: "scope" | "rights" | "correction" | "archive" | "withdrawal";
3894
+ text: string;
3895
+ }[];
3896
+ linksRef?: {
3897
+ documentId: string;
3898
+ sha256: string;
3899
+ schemaId: "urn:disclosureos:experimental:case-links:0.1.0";
3900
+ } | undefined;
3901
+ featuredAttachmentId?: string | undefined;
3902
+ };
3903
+ material: {
3904
+ document: {
3905
+ documentId: string;
3906
+ schemaId: `urn:disclosureos:experimental:${string}`;
3907
+ sha256: string;
3908
+ };
3909
+ history: {
3910
+ documentId: string;
3911
+ schemaId: `urn:disclosureos:experimental:${string}`;
3912
+ sha256: string;
3913
+ };
3914
+ traces: {
3915
+ descriptionAssertionId: string;
3916
+ id: string;
3917
+ entityId: string;
3918
+ label: string;
3919
+ citationIds: string[];
3920
+ }[];
3921
+ specimens: {
3922
+ fields: {
3923
+ field: "description" | "type" | "collectionTime" | "reportedCustodyStatus";
3924
+ assertionId: string;
3925
+ }[];
3926
+ actions: {
3927
+ id: string;
3928
+ entityId: string;
3929
+ actionAssertionId: string;
3930
+ dateAssertionId: string;
3931
+ citationIds: string[];
3932
+ }[];
3933
+ id: string;
3934
+ entityId: string;
3935
+ label: string;
3936
+ citationIds: string[];
3937
+ }[];
3938
+ preparations: {
3939
+ methodAssertionId: string;
3940
+ dateAssertionId: string;
3941
+ id: string;
3942
+ entityId: string;
3943
+ label: string;
3944
+ citationIds: string[];
3945
+ }[];
3946
+ analyses: {
3947
+ methodAssertionId: string;
3948
+ methodLabel: string;
3949
+ dateAssertionId: string;
3950
+ id: string;
3951
+ entityId: string;
3952
+ label: string;
3953
+ citationIds: string[];
3954
+ }[];
3955
+ results: {
3956
+ resultAssertionId: string;
3957
+ id: string;
3958
+ entityId: string;
3959
+ label: string;
3960
+ citationIds: string[];
3961
+ analyteAssertionId?: string | undefined;
3962
+ }[];
3963
+ review: {
3964
+ id: string;
3965
+ claimId: string;
3966
+ title: string;
3967
+ summary: string;
3968
+ reviewerLabel: string;
3969
+ methodLabel: string;
3970
+ citationIds: string[];
3971
+ };
3972
+ };
3973
+ };
3974
+ };
3975
+ type PublicValue = {
3976
+ state: "known" | "unknown";
3977
+ value: string;
3978
+ };
3979
+ type PublicItem = {
3980
+ id: string;
3981
+ label: string;
3982
+ citationIds: string[];
3983
+ };
3984
+ type Limit = {
3985
+ kind: "detection" | "quantification";
3986
+ magnitude: number;
3987
+ unit: string;
3988
+ basis: string;
3989
+ };
3990
+ type Uncertainty = {
3991
+ kind: "unknown";
3992
+ reason: string;
3993
+ } | {
3994
+ kind: "standard" | "bound" | "expanded";
3995
+ magnitude: number;
3996
+ unit: string;
3997
+ coverageFactor?: number;
3998
+ coverageProbability?: number;
3999
+ };
4000
+ interface PublicMaterialSelection {
4001
+ traces: Array<PublicItem & {
4002
+ description: string;
4003
+ }>;
4004
+ specimens: Array<PublicItem & {
4005
+ lineage: {
4006
+ kind: "collected" | "unknown";
4007
+ } | {
4008
+ kind: "derived";
4009
+ preparationId: string;
4010
+ };
4011
+ fields: Array<PublicValue & {
4012
+ id: string;
4013
+ label: string;
4014
+ }>;
4015
+ actions: Array<{
4016
+ id: string;
4017
+ action: string;
4018
+ occurredAt: PublicValue;
4019
+ predecessor: {
4020
+ kind: "start" | "unknown";
4021
+ } | {
4022
+ kind: "action";
4023
+ id: string;
4024
+ };
4025
+ citationIds: string[];
4026
+ }>;
4027
+ }>;
4028
+ preparations: Array<PublicItem & {
4029
+ operation: string;
4030
+ inputs: string[];
4031
+ outputs: string[];
4032
+ method: string;
4033
+ occurredAt: PublicValue;
4034
+ }>;
4035
+ analyses: Array<PublicItem & {
4036
+ inputs: string[];
4037
+ preparations: string[];
4038
+ resultIds: string[];
4039
+ method: string;
4040
+ occurredAt: PublicValue;
4041
+ }>;
4042
+ results: Array<PublicItem & {
4043
+ analysisId: string;
4044
+ materialId: string;
4045
+ analyte?: PublicValue;
4046
+ value: {
4047
+ kind: "quantitative";
4048
+ quantity: string;
4049
+ magnitude: number;
4050
+ unit: string;
4051
+ uncertainty: Uncertainty;
4052
+ limit: {
4053
+ state: "reported";
4054
+ value: Limit;
4055
+ } | {
4056
+ state: "unknown" | "not_applicable";
4057
+ };
4058
+ } | {
4059
+ kind: "below_limit";
4060
+ limit: Limit;
4061
+ } | {
4062
+ kind: "qualitative";
4063
+ text: string;
4064
+ };
4065
+ }>;
4066
+ review: {
4067
+ id: string;
4068
+ title: string;
4069
+ summary: string;
4070
+ reviewerLabel: string;
4071
+ status: "assessed";
4072
+ outcome: string;
4073
+ revision: "current" | "superseded";
4074
+ method: string;
4075
+ resultIds: string[];
4076
+ citationIds: string[];
4077
+ };
4078
+ limitations: string[];
4079
+ }
4080
+ type PublicMaterialCasePayload = Omit<PublicCasePayload, "schemaVersion"> & {
4081
+ schemaVersion: "0.5.0";
4082
+ material: PublicMaterialSelection;
4083
+ };
4084
+ /** Explicit public projection of specimen lineage and selected results. No source-file fetching or scientific validation. */
4085
+ declare function buildPublicMaterialCase(input: Uint8Array, options: {
4086
+ documents: ReadonlyMap<string, Uint8Array>;
4087
+ approval?: CasePublicationApproval;
4088
+ }): Promise<{
4089
+ success: false;
4090
+ code: "APPROVAL_REQUIRED" | "INVALID_PRESENTATION" | "NOT_PUBLISHED" | "INVALID_REFERENCES";
4091
+ } | {
4092
+ success: true;
4093
+ data: {
4094
+ schemaVersion: "0.5.0";
4095
+ assessmentNotice: string;
4096
+ material: PublicMaterialSelection;
4097
+ kind: "public_case";
4098
+ publicId: string;
4099
+ title: string;
4100
+ summary: string;
4101
+ updatedAt: string;
4102
+ status: "published" | "archived";
4103
+ citations: Array<{
4104
+ id: string;
4105
+ label: string;
4106
+ description?: string;
4107
+ }>;
4108
+ blocks: Array<{
4109
+ id: string;
4110
+ heading?: string;
4111
+ text: string;
4112
+ citationIds: string[];
4113
+ }>;
4114
+ findings: Array<{
4115
+ id: string;
4116
+ title: string;
4117
+ summary: string;
4118
+ reviewerLabel: string;
4119
+ citationIds: string[];
4120
+ status: "assessed" | "unassessed";
4121
+ outcome?: "reported" | "confirmed" | "absent" | "inconclusive";
4122
+ revision: "current" | "superseded";
4123
+ }>;
4124
+ attachments: Array<{
4125
+ id: string;
4126
+ kind: CasePresentation["attachments"][number]["kind"];
4127
+ role: CasePresentation["attachments"][number]["role"];
4128
+ href: string;
4129
+ caption: string;
4130
+ credit: string;
4131
+ rights: string;
4132
+ alt?: string;
4133
+ dimensions?: {
4134
+ width: number;
4135
+ height: number;
4136
+ };
4137
+ durationSeconds?: number;
4138
+ mimeType?: string;
4139
+ fileSizeBytes?: number;
4140
+ thumbnailAttachmentId?: string;
4141
+ citationIds: string[];
4142
+ }>;
4143
+ featuredAttachmentId?: string;
4144
+ notices: Array<{
4145
+ id: string;
4146
+ kind: CasePresentation["notices"][number]["kind"];
4147
+ text: string;
4148
+ }>;
4149
+ };
4150
+ }>;
4151
+ declare function buildPublicMaterialCaseOutputs(input: Uint8Array, options: Parameters<typeof buildPublicMaterialCase>[1]): Promise<{
4152
+ success: false;
4153
+ code: "APPROVAL_REQUIRED" | "INVALID_PRESENTATION" | "NOT_PUBLISHED" | "INVALID_REFERENCES";
4154
+ } | {
4155
+ success: true;
4156
+ data: {
4157
+ schemaVersion: "0.5.0";
4158
+ assessmentNotice: string;
4159
+ material: PublicMaterialSelection;
4160
+ kind: "public_case";
4161
+ publicId: string;
4162
+ title: string;
4163
+ summary: string;
4164
+ updatedAt: string;
4165
+ status: "published" | "archived";
4166
+ citations: Array<{
4167
+ id: string;
4168
+ label: string;
4169
+ description?: string;
4170
+ }>;
4171
+ blocks: Array<{
4172
+ id: string;
4173
+ heading?: string;
4174
+ text: string;
4175
+ citationIds: string[];
4176
+ }>;
4177
+ findings: Array<{
4178
+ id: string;
4179
+ title: string;
4180
+ summary: string;
4181
+ reviewerLabel: string;
4182
+ citationIds: string[];
4183
+ status: "assessed" | "unassessed";
4184
+ outcome?: "reported" | "confirmed" | "absent" | "inconclusive";
4185
+ revision: "current" | "superseded";
4186
+ }>;
4187
+ attachments: Array<{
4188
+ id: string;
4189
+ kind: CasePresentation["attachments"][number]["kind"];
4190
+ role: CasePresentation["attachments"][number]["role"];
4191
+ href: string;
4192
+ caption: string;
4193
+ credit: string;
4194
+ rights: string;
4195
+ alt?: string;
4196
+ dimensions?: {
4197
+ width: number;
4198
+ height: number;
4199
+ };
4200
+ durationSeconds?: number;
4201
+ mimeType?: string;
4202
+ fileSizeBytes?: number;
4203
+ thumbnailAttachmentId?: string;
4204
+ citationIds: string[];
4205
+ }>;
4206
+ featuredAttachmentId?: string;
4207
+ notices: Array<{
4208
+ id: string;
4209
+ kind: CasePresentation["notices"][number]["kind"];
4210
+ text: string;
4211
+ }>;
4212
+ };
4213
+ json: string;
4214
+ markdown: string;
4215
+ search: {
4216
+ publicId: string;
4217
+ title: string;
4218
+ text: string;
4219
+ };
4220
+ metadata: {
4221
+ title: string;
4222
+ description: string;
4223
+ };
4224
+ }>;
4225
+
4226
+ /** Dependency-free reference reader. Validate declarations with the canonical
4227
+ * evaluator before relying on them. No rendering, network or media decoder. */
4228
+ type Rational = {
4229
+ numerator: number;
4230
+ denominator: number;
4231
+ };
4232
+ type SourceAxis = {
4233
+ kind: "index";
4234
+ name: string;
4235
+ length: number;
4236
+ firstIndex: number;
4237
+ } | {
4238
+ kind: "regular";
4239
+ name: string;
4240
+ length: number;
4241
+ origin: number;
4242
+ step: number;
4243
+ unit: string;
4244
+ } | {
4245
+ kind: "time";
4246
+ name: string;
4247
+ length: number;
4248
+ start: string;
4249
+ stepSeconds: Rational;
4250
+ };
4251
+ type CommonLayout = {
4252
+ id: string;
4253
+ productRef: string;
4254
+ digest: {
4255
+ algorithm: "sha256";
4256
+ value: string;
4257
+ };
4258
+ byteLength: number;
4259
+ mediaType: string;
4260
+ };
4261
+ type ProductSourceLayout = CommonLayout & ({
4262
+ kind: "binary_array";
4263
+ elementType: "float32" | "float64" | "int16" | "uint16" | "uint8";
4264
+ byteOrder: "little" | "big";
4265
+ order: "row_major";
4266
+ byteOffset: number;
4267
+ axes: SourceAxis[];
4268
+ quantity: string;
4269
+ unit: string;
4270
+ } | {
4271
+ kind: "csv_table";
4272
+ encoding: "utf-8";
4273
+ delimiter: ",";
4274
+ header: true;
4275
+ rowCount: number;
4276
+ columns: string[];
4277
+ partition?: {
4278
+ column: string;
4279
+ equals: string;
4280
+ } | undefined;
4281
+ sample?: {
4282
+ valueColumn: string;
4283
+ unitColumn: string;
4284
+ quantityColumn: string;
4285
+ timeColumn: string;
4286
+ } | undefined;
4287
+ } | {
4288
+ kind: "video";
4289
+ frameCount: number;
4290
+ framesPerSecond: Rational;
4291
+ start: string;
4292
+ });
4293
+ type ProductSourceSelector = {
4294
+ kind: "array_element";
4295
+ indices: number[];
4296
+ } | {
4297
+ kind: "table_row";
4298
+ row: number;
4299
+ } | {
4300
+ kind: "video_frame";
4301
+ frame: number;
4302
+ };
4303
+ type RelativeSourceTime = {
4304
+ start: string;
4305
+ offsetSeconds: Rational;
4306
+ durationSeconds?: Rational;
4307
+ };
4308
+ type ProductSourceRead = {
4309
+ byteOffset?: number;
4310
+ byteLength?: number;
4311
+ coordinates?: Record<string, number | {
4312
+ value: number;
4313
+ unit: string;
4314
+ } | RelativeSourceTime>;
4315
+ time?: RelativeSourceTime | string;
4316
+ value?: number;
4317
+ unit?: string;
4318
+ quantity?: string;
4319
+ cells?: Record<string, string>;
4320
+ frame?: number;
4321
+ mediaDecoding: "not_applicable" | "not_checked";
4322
+ };
4323
+ declare const sourceElementBytes: {
4324
+ readonly float32: 4;
4325
+ readonly float64: 8;
4326
+ readonly int16: 2;
4327
+ readonly uint16: 2;
4328
+ readonly uint8: 1;
4329
+ };
4330
+ /** RFC 4180-style comma records, UTF-8, with LF or CRLF; row indices exclude the
4331
+ * header and count logical records, not physical lines. No whitespace coercion. */
4332
+ declare function readSourceCsv(bytes: Uint8Array): string[][];
4333
+ /** Locate a selected source sample and, when bytes are provided, read it.
4334
+ * Video output is only a declared frame interval; it never claims decoding. */
4335
+ declare function readProductSourceSelection(layout: ProductSourceLayout, selector: ProductSourceSelector, bytes?: Uint8Array): ProductSourceRead;
4336
+
4337
+ declare const ProductSourceLayoutSchema: z.ZodUnion<readonly [z.ZodObject<{
4338
+ kind: z.ZodLiteral<"binary_array">;
4339
+ elementType: z.ZodEnum<{
4340
+ float32: "float32";
4341
+ float64: "float64";
4342
+ int16: "int16";
4343
+ uint16: "uint16";
4344
+ uint8: "uint8";
4345
+ }>;
4346
+ byteOrder: z.ZodEnum<{
4347
+ little: "little";
4348
+ big: "big";
4349
+ }>;
4350
+ order: z.ZodLiteral<"row_major">;
4351
+ byteOffset: z.ZodNumber;
4352
+ axes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4353
+ kind: z.ZodLiteral<"index">;
4354
+ name: z.ZodString;
4355
+ length: z.ZodNumber;
4356
+ firstIndex: z.ZodNumber;
4357
+ }, z.core.$strict>, z.ZodObject<{
4358
+ kind: z.ZodLiteral<"regular">;
4359
+ name: z.ZodString;
4360
+ length: z.ZodNumber;
4361
+ origin: z.ZodNumber;
4362
+ step: z.ZodNumber;
4363
+ unit: z.ZodString;
4364
+ }, z.core.$strict>, z.ZodObject<{
4365
+ kind: z.ZodLiteral<"time">;
4366
+ name: z.ZodString;
4367
+ length: z.ZodNumber;
4368
+ start: z.ZodString;
4369
+ stepSeconds: z.ZodObject<{
4370
+ numerator: z.ZodNumber;
4371
+ denominator: z.ZodNumber;
4372
+ }, z.core.$strict>;
4373
+ }, z.core.$strict>], "kind">>;
4374
+ quantity: z.ZodString;
4375
+ unit: z.ZodString;
4376
+ id: z.ZodString;
4377
+ productRef: z.ZodString;
4378
+ digest: z.ZodObject<{
4379
+ algorithm: z.ZodLiteral<"sha256">;
4380
+ value: z.ZodString;
4381
+ }, z.core.$strict>;
4382
+ byteLength: z.ZodNumber;
4383
+ mediaType: z.ZodString;
4384
+ }, z.core.$strict>, z.ZodObject<{
4385
+ kind: z.ZodLiteral<"csv_table">;
4386
+ encoding: z.ZodLiteral<"utf-8">;
4387
+ delimiter: z.ZodLiteral<",">;
4388
+ header: z.ZodLiteral<true>;
4389
+ rowCount: z.ZodNumber;
4390
+ columns: z.ZodArray<z.ZodString>;
4391
+ partition: z.ZodOptional<z.ZodObject<{
4392
+ column: z.ZodString;
4393
+ equals: z.ZodString;
4394
+ }, z.core.$strict>>;
4395
+ sample: z.ZodOptional<z.ZodObject<{
4396
+ valueColumn: z.ZodString;
4397
+ unitColumn: z.ZodString;
4398
+ quantityColumn: z.ZodString;
4399
+ timeColumn: z.ZodString;
4400
+ }, z.core.$strict>>;
4401
+ id: z.ZodString;
4402
+ productRef: z.ZodString;
4403
+ digest: z.ZodObject<{
4404
+ algorithm: z.ZodLiteral<"sha256">;
4405
+ value: z.ZodString;
4406
+ }, z.core.$strict>;
4407
+ byteLength: z.ZodNumber;
4408
+ mediaType: z.ZodString;
4409
+ }, z.core.$strict>, z.ZodObject<{
4410
+ kind: z.ZodLiteral<"csv_table">;
4411
+ encoding: z.ZodLiteral<"utf-8">;
4412
+ delimiter: z.ZodLiteral<",">;
4413
+ header: z.ZodLiteral<true>;
4414
+ columns: z.ZodArray<z.ZodString>;
4415
+ id: z.ZodString;
4416
+ productRef: z.ZodString;
4417
+ digest: z.ZodObject<{
4418
+ algorithm: z.ZodLiteral<"sha256">;
4419
+ value: z.ZodString;
4420
+ }, z.core.$strict>;
4421
+ byteLength: z.ZodNumber;
4422
+ mediaType: z.ZodString;
4423
+ rowCount: z.ZodLiteral<0>;
4424
+ partition: z.ZodOptional<z.ZodNever>;
4425
+ sample: z.ZodOptional<z.ZodNever>;
4426
+ }, z.core.$strict>, z.ZodObject<{
4427
+ kind: z.ZodLiteral<"video">;
4428
+ frameCount: z.ZodNumber;
4429
+ framesPerSecond: z.ZodObject<{
4430
+ numerator: z.ZodNumber;
4431
+ denominator: z.ZodNumber;
4432
+ }, z.core.$strict>;
4433
+ start: z.ZodString;
4434
+ id: z.ZodString;
4435
+ productRef: z.ZodString;
4436
+ digest: z.ZodObject<{
4437
+ algorithm: z.ZodLiteral<"sha256">;
4438
+ value: z.ZodString;
4439
+ }, z.core.$strict>;
4440
+ byteLength: z.ZodNumber;
4441
+ mediaType: z.ZodString;
4442
+ }, z.core.$strict>]>;
4443
+ declare const ProductSourceSelectorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4444
+ kind: z.ZodLiteral<"array_element">;
4445
+ indices: z.ZodArray<z.ZodNumber>;
4446
+ }, z.core.$strict>, z.ZodObject<{
4447
+ kind: z.ZodLiteral<"table_row">;
4448
+ row: z.ZodNumber;
4449
+ }, z.core.$strict>, z.ZodObject<{
4450
+ kind: z.ZodLiteral<"video_frame">;
4451
+ frame: z.ZodNumber;
4452
+ }, z.core.$strict>], "kind">;
4453
+ declare const PRODUCT_SOURCE_SELECTION_SCHEMA_ID = "urn:disclosureos:experimental:product-source-selection:0.1.0";
4454
+ declare const PRODUCT_SOURCE_SELECTION_PROFILE: Readonly<{
4455
+ readonly id: "urn:disclosureos:experimental:profile:product-source-selection";
4456
+ readonly version: "0.1.0";
4457
+ readonly scope: "declared_layout_and_selected_source_content";
4458
+ }>;
4459
+ declare const ProductSourceSelectionSchema: z.ZodObject<{
4460
+ kind: z.ZodLiteral<"product_source_selection">;
4461
+ schemaVersion: z.ZodLiteral<"0.1.0">;
4462
+ id: z.ZodString;
4463
+ observationId: z.ZodString;
4464
+ layouts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
4465
+ kind: z.ZodLiteral<"binary_array">;
4466
+ elementType: z.ZodEnum<{
4467
+ float32: "float32";
4468
+ float64: "float64";
4469
+ int16: "int16";
4470
+ uint16: "uint16";
4471
+ uint8: "uint8";
4472
+ }>;
4473
+ byteOrder: z.ZodEnum<{
4474
+ little: "little";
4475
+ big: "big";
4476
+ }>;
4477
+ order: z.ZodLiteral<"row_major">;
4478
+ byteOffset: z.ZodNumber;
4479
+ axes: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4480
+ kind: z.ZodLiteral<"index">;
4481
+ name: z.ZodString;
4482
+ length: z.ZodNumber;
4483
+ firstIndex: z.ZodNumber;
4484
+ }, z.core.$strict>, z.ZodObject<{
4485
+ kind: z.ZodLiteral<"regular">;
4486
+ name: z.ZodString;
4487
+ length: z.ZodNumber;
4488
+ origin: z.ZodNumber;
4489
+ step: z.ZodNumber;
4490
+ unit: z.ZodString;
4491
+ }, z.core.$strict>, z.ZodObject<{
4492
+ kind: z.ZodLiteral<"time">;
4493
+ name: z.ZodString;
4494
+ length: z.ZodNumber;
4495
+ start: z.ZodString;
4496
+ stepSeconds: z.ZodObject<{
4497
+ numerator: z.ZodNumber;
4498
+ denominator: z.ZodNumber;
4499
+ }, z.core.$strict>;
4500
+ }, z.core.$strict>], "kind">>;
4501
+ quantity: z.ZodString;
4502
+ unit: z.ZodString;
4503
+ id: z.ZodString;
4504
+ productRef: z.ZodString;
4505
+ digest: z.ZodObject<{
4506
+ algorithm: z.ZodLiteral<"sha256">;
4507
+ value: z.ZodString;
4508
+ }, z.core.$strict>;
4509
+ byteLength: z.ZodNumber;
4510
+ mediaType: z.ZodString;
4511
+ }, z.core.$strict>, z.ZodObject<{
4512
+ kind: z.ZodLiteral<"csv_table">;
4513
+ encoding: z.ZodLiteral<"utf-8">;
4514
+ delimiter: z.ZodLiteral<",">;
4515
+ header: z.ZodLiteral<true>;
4516
+ rowCount: z.ZodNumber;
4517
+ columns: z.ZodArray<z.ZodString>;
4518
+ partition: z.ZodOptional<z.ZodObject<{
4519
+ column: z.ZodString;
4520
+ equals: z.ZodString;
4521
+ }, z.core.$strict>>;
4522
+ sample: z.ZodOptional<z.ZodObject<{
4523
+ valueColumn: z.ZodString;
4524
+ unitColumn: z.ZodString;
4525
+ quantityColumn: z.ZodString;
4526
+ timeColumn: z.ZodString;
4527
+ }, z.core.$strict>>;
4528
+ id: z.ZodString;
4529
+ productRef: z.ZodString;
4530
+ digest: z.ZodObject<{
4531
+ algorithm: z.ZodLiteral<"sha256">;
4532
+ value: z.ZodString;
4533
+ }, z.core.$strict>;
4534
+ byteLength: z.ZodNumber;
4535
+ mediaType: z.ZodString;
4536
+ }, z.core.$strict>, z.ZodObject<{
4537
+ kind: z.ZodLiteral<"csv_table">;
4538
+ encoding: z.ZodLiteral<"utf-8">;
4539
+ delimiter: z.ZodLiteral<",">;
4540
+ header: z.ZodLiteral<true>;
4541
+ columns: z.ZodArray<z.ZodString>;
4542
+ id: z.ZodString;
4543
+ productRef: z.ZodString;
4544
+ digest: z.ZodObject<{
4545
+ algorithm: z.ZodLiteral<"sha256">;
4546
+ value: z.ZodString;
4547
+ }, z.core.$strict>;
4548
+ byteLength: z.ZodNumber;
4549
+ mediaType: z.ZodString;
4550
+ rowCount: z.ZodLiteral<0>;
4551
+ partition: z.ZodOptional<z.ZodNever>;
4552
+ sample: z.ZodOptional<z.ZodNever>;
4553
+ }, z.core.$strict>, z.ZodObject<{
4554
+ kind: z.ZodLiteral<"video">;
4555
+ frameCount: z.ZodNumber;
4556
+ framesPerSecond: z.ZodObject<{
4557
+ numerator: z.ZodNumber;
4558
+ denominator: z.ZodNumber;
4559
+ }, z.core.$strict>;
4560
+ start: z.ZodString;
4561
+ id: z.ZodString;
4562
+ productRef: z.ZodString;
4563
+ digest: z.ZodObject<{
4564
+ algorithm: z.ZodLiteral<"sha256">;
4565
+ value: z.ZodString;
4566
+ }, z.core.$strict>;
4567
+ byteLength: z.ZodNumber;
4568
+ mediaType: z.ZodString;
4569
+ }, z.core.$strict>]>>;
4570
+ selections: z.ZodArray<z.ZodObject<{
4571
+ id: z.ZodString;
4572
+ layoutRef: z.ZodString;
4573
+ selector: z.ZodDiscriminatedUnion<[z.ZodObject<{
4574
+ kind: z.ZodLiteral<"array_element">;
4575
+ indices: z.ZodArray<z.ZodNumber>;
4576
+ }, z.core.$strict>, z.ZodObject<{
4577
+ kind: z.ZodLiteral<"table_row">;
4578
+ row: z.ZodNumber;
4579
+ }, z.core.$strict>, z.ZodObject<{
4580
+ kind: z.ZodLiteral<"video_frame">;
4581
+ frame: z.ZodNumber;
4582
+ }, z.core.$strict>], "kind">;
4583
+ measurementRef: z.ZodOptional<z.ZodString>;
4584
+ }, z.core.$strict>>;
4585
+ }, z.core.$strict>;
4586
+ type ProductSourceSelection = z.infer<typeof ProductSourceSelectionSchema>;
4587
+ declare function productSourceSelectionJsonSchema(): Record<string, unknown>;
4588
+ type Status$1 = "passed" | "failed" | "not_checked";
4589
+ interface ProductSourceSelectionIssue {
4590
+ code: string;
4591
+ stage: "structural" | "semantic" | "external";
4592
+ pointer: string;
4593
+ message: string;
4594
+ }
4595
+ interface ProductSourceSelectionResult {
4596
+ success: boolean;
4597
+ profile: typeof PRODUCT_SOURCE_SELECTION_PROFILE;
4598
+ checks: {
4599
+ structural: Status$1;
4600
+ semantic: Status$1;
4601
+ external: Status$1;
4602
+ content: Status$1;
4603
+ };
4604
+ issues: ProductSourceSelectionIssue[];
4605
+ selections: {
4606
+ id: string;
4607
+ productRef: string;
4608
+ status: Status$1;
4609
+ content?: ProductSourceRead;
4610
+ }[];
4611
+ scientific: "not_checked";
4612
+ calibration: "not_checked";
4613
+ mediaDecoding: "not_checked";
4614
+ }
4615
+ declare function evaluateProductSourceSelection(observationInput: unknown, selectionInput: unknown, options?: {
4616
+ assets?: ReadonlyMap<string, Uint8Array>;
4617
+ }): Promise<ProductSourceSelectionResult>;
4618
+
4619
+ declare const RadarProfileSchema: z.ZodUnion<readonly [z.ZodObject<{
4620
+ kind: z.ZodLiteral<"radar_profile">;
4621
+ schemaVersion: z.ZodLiteral<"0.1.0">;
4622
+ id: z.ZodString;
4623
+ observationId: z.ZodString;
4624
+ contextId: z.ZodString;
4625
+ sourceSelectionId: z.ZodString;
4626
+ acquisitionRef: z.ZodString;
4627
+ acquisitionProductRef: z.ZodString;
4628
+ channelId: z.ZodString;
4629
+ frameRef: z.ZodString;
4630
+ origin: z.ZodObject<{
4631
+ eastM: z.ZodNumber;
4632
+ northM: z.ZodNumber;
4633
+ }, z.core.$strict>;
4634
+ timeOrigin: z.ZodISODateTime;
4635
+ mode: z.ZodLiteral<"rotating_scan">;
4636
+ dataOrigin: z.ZodEnum<{
4637
+ instrument: "instrument";
4638
+ synthetic: "synthetic";
4639
+ }>;
4640
+ bearingConvention: z.ZodLiteral<"clockwise_from_north">;
4641
+ rangeConvention: z.ZodLiteral<"horizontal_range">;
4642
+ beamReference: z.ZodOptional<z.ZodLiteral<"north">>;
4643
+ platform: z.ZodOptional<z.ZodNever>;
4644
+ preprocessing: z.ZodOptional<z.ZodNever>;
4645
+ projection: z.ZodOptional<z.ZodNever>;
4646
+ beamWidthConvention: z.ZodLiteral<"full_width_half_maximum_power">;
4647
+ processingAvailability: z.ZodLiteral<"scan_end">;
4648
+ detectionPosition: z.ZodDiscriminatedUnion<[z.ZodObject<{
4649
+ kind: z.ZodLiteral<"cell_center">;
4650
+ }, z.core.$strict>, z.ZodObject<{
4651
+ kind: z.ZodLiteral<"power_weighted_neighborhood">;
4652
+ azimuthRadius: z.ZodNumber;
4653
+ rangeRadius: z.ZodNumber;
4654
+ backgroundPower: z.ZodNumber;
4655
+ }, z.core.$strict>], "kind">;
4656
+ products: z.ZodObject<{
4657
+ scanSchedule: z.ZodString;
4658
+ returns: z.ZodString;
4659
+ thresholds: z.ZodString;
4660
+ detections: z.ZodString;
4661
+ tracks: z.ZodString;
4662
+ associations: z.ZodString;
4663
+ truth: z.ZodOptional<z.ZodString>;
4664
+ platformPose: z.ZodOptional<z.ZodNever>;
4665
+ siteFeatures: z.ZodOptional<z.ZodString>;
4666
+ }, z.core.$strict>;
4667
+ uncertainty: z.ZodObject<{
4668
+ kind: z.ZodLiteral<"gaussian_position_covariance">;
4669
+ axes: z.ZodTuple<[z.ZodLiteral<"east">, z.ZodLiteral<"north">], null>;
4670
+ unit: z.ZodLiteral<"m2">;
4671
+ confidenceProbability: z.ZodNumber;
4672
+ conditioning: z.ZodOptional<z.ZodNever>;
4673
+ }, z.core.$strict>;
4674
+ }, z.core.$strict>, z.ZodObject<{
4675
+ kind: z.ZodLiteral<"radar_profile">;
4676
+ schemaVersion: z.ZodLiteral<"0.1.0">;
4677
+ id: z.ZodString;
4678
+ observationId: z.ZodString;
4679
+ contextId: z.ZodString;
4680
+ sourceSelectionId: z.ZodString;
4681
+ acquisitionRef: z.ZodString;
4682
+ acquisitionProductRef: z.ZodString;
4683
+ channelId: z.ZodString;
4684
+ frameRef: z.ZodString;
4685
+ origin: z.ZodObject<{
4686
+ eastM: z.ZodNumber;
4687
+ northM: z.ZodNumber;
4688
+ }, z.core.$strict>;
4689
+ timeOrigin: z.ZodISODateTime;
4690
+ mode: z.ZodLiteral<"rotating_scan">;
4691
+ dataOrigin: z.ZodEnum<{
4692
+ instrument: "instrument";
4693
+ synthetic: "synthetic";
4694
+ }>;
4695
+ bearingConvention: z.ZodLiteral<"clockwise_from_north">;
4696
+ rangeConvention: z.ZodLiteral<"horizontal_range">;
4697
+ beamReference: z.ZodOptional<z.ZodLiteral<"north">>;
4698
+ platform: z.ZodOptional<z.ZodNever>;
4699
+ projection: z.ZodOptional<z.ZodNever>;
4700
+ beamWidthConvention: z.ZodLiteral<"full_width_half_maximum_power">;
4701
+ processingAvailability: z.ZodLiteral<"scan_end">;
4702
+ detectionPosition: z.ZodDiscriminatedUnion<[z.ZodObject<{
4703
+ kind: z.ZodLiteral<"cell_center">;
4704
+ }, z.core.$strict>, z.ZodObject<{
4705
+ kind: z.ZodLiteral<"power_weighted_neighborhood">;
4706
+ azimuthRadius: z.ZodNumber;
4707
+ rangeRadius: z.ZodNumber;
4708
+ backgroundPower: z.ZodNumber;
4709
+ }, z.core.$strict>], "kind">;
4710
+ uncertainty: z.ZodObject<{
4711
+ kind: z.ZodLiteral<"gaussian_position_covariance">;
4712
+ axes: z.ZodTuple<[z.ZodLiteral<"east">, z.ZodLiteral<"north">], null>;
4713
+ unit: z.ZodLiteral<"m2">;
4714
+ confidenceProbability: z.ZodNumber;
4715
+ conditioning: z.ZodOptional<z.ZodNever>;
4716
+ }, z.core.$strict>;
4717
+ preprocessing: z.ZodObject<{
4718
+ kind: z.ZodLiteral<"reference_mean_subtraction">;
4719
+ referenceAcquisitionRef: z.ZodString;
4720
+ referenceAcquisitionProductRef: z.ZodString;
4721
+ referenceChannelId: z.ZodString;
4722
+ arithmetic: z.ZodLiteral<"float32_outputs">;
4723
+ exclusionMeaning: z.ZodLiteral<"detector_policy">;
4724
+ }, z.core.$strict>;
4725
+ products: z.ZodObject<{
4726
+ scanSchedule: z.ZodString;
4727
+ returns: z.ZodString;
4728
+ thresholds: z.ZodString;
4729
+ detections: z.ZodString;
4730
+ tracks: z.ZodString;
4731
+ associations: z.ZodString;
4732
+ truth: z.ZodOptional<z.ZodString>;
4733
+ platformPose: z.ZodOptional<z.ZodNever>;
4734
+ siteFeatures: z.ZodOptional<z.ZodString>;
4735
+ referenceCapture: z.ZodString;
4736
+ backgroundPower: z.ZodString;
4737
+ eligibility: z.ZodString;
4738
+ processedReturns: z.ZodString;
4739
+ }, z.core.$strict>;
4740
+ }, z.core.$strict>, z.ZodObject<{
4741
+ kind: z.ZodLiteral<"radar_profile">;
4742
+ schemaVersion: z.ZodLiteral<"0.1.0">;
4743
+ id: z.ZodString;
4744
+ observationId: z.ZodString;
4745
+ contextId: z.ZodString;
4746
+ sourceSelectionId: z.ZodString;
4747
+ acquisitionRef: z.ZodString;
4748
+ acquisitionProductRef: z.ZodString;
4749
+ channelId: z.ZodString;
4750
+ frameRef: z.ZodString;
4751
+ origin: z.ZodObject<{
4752
+ eastM: z.ZodNumber;
4753
+ northM: z.ZodNumber;
4754
+ }, z.core.$strict>;
4755
+ timeOrigin: z.ZodISODateTime;
4756
+ mode: z.ZodLiteral<"rotating_scan">;
4757
+ dataOrigin: z.ZodEnum<{
4758
+ instrument: "instrument";
4759
+ synthetic: "synthetic";
4760
+ }>;
4761
+ bearingConvention: z.ZodLiteral<"clockwise_from_north">;
4762
+ rangeConvention: z.ZodLiteral<"horizontal_range">;
4763
+ preprocessing: z.ZodOptional<z.ZodNever>;
4764
+ projection: z.ZodOptional<z.ZodNever>;
4765
+ beamWidthConvention: z.ZodLiteral<"full_width_half_maximum_power">;
4766
+ processingAvailability: z.ZodLiteral<"scan_end">;
4767
+ detectionPosition: z.ZodDiscriminatedUnion<[z.ZodObject<{
4768
+ kind: z.ZodLiteral<"cell_center">;
4769
+ }, z.core.$strict>, z.ZodObject<{
4770
+ kind: z.ZodLiteral<"power_weighted_neighborhood">;
4771
+ azimuthRadius: z.ZodNumber;
4772
+ rangeRadius: z.ZodNumber;
4773
+ backgroundPower: z.ZodNumber;
4774
+ }, z.core.$strict>], "kind">;
4775
+ platform: z.ZodObject<{
4776
+ kind: z.ZodLiteral<"moving">;
4777
+ environment: z.ZodEnum<{
4778
+ airborne: "airborne";
4779
+ shipborne: "shipborne";
4780
+ }>;
4781
+ poseSampling: z.ZodLiteral<"dwell_midpoint">;
4782
+ attitudeModel: z.ZodLiteral<"level_yaw_only">;
4783
+ }, z.core.$strict>;
4784
+ beamReference: z.ZodEnum<{
4785
+ north: "north";
4786
+ platform_heading: "platform_heading";
4787
+ }>;
4788
+ products: z.ZodObject<{
4789
+ scanSchedule: z.ZodString;
4790
+ returns: z.ZodString;
4791
+ thresholds: z.ZodString;
4792
+ detections: z.ZodString;
4793
+ tracks: z.ZodString;
4794
+ associations: z.ZodString;
4795
+ truth: z.ZodOptional<z.ZodString>;
4796
+ siteFeatures: z.ZodOptional<z.ZodString>;
4797
+ platformPose: z.ZodString;
4798
+ }, z.core.$strict>;
4799
+ uncertainty: z.ZodObject<{
4800
+ kind: z.ZodLiteral<"gaussian_position_covariance">;
4801
+ axes: z.ZodTuple<[z.ZodLiteral<"east">, z.ZodLiteral<"north">], null>;
4802
+ unit: z.ZodLiteral<"m2">;
4803
+ confidenceProbability: z.ZodNumber;
4804
+ conditioning: z.ZodLiteral<"declared_pose_and_projection">;
4805
+ }, z.core.$strict>;
4806
+ }, z.core.$strict>, z.ZodObject<{
4807
+ kind: z.ZodLiteral<"radar_profile">;
4808
+ schemaVersion: z.ZodLiteral<"0.1.0">;
4809
+ id: z.ZodString;
4810
+ observationId: z.ZodString;
4811
+ contextId: z.ZodString;
4812
+ sourceSelectionId: z.ZodString;
4813
+ acquisitionRef: z.ZodString;
4814
+ acquisitionProductRef: z.ZodString;
4815
+ channelId: z.ZodString;
4816
+ frameRef: z.ZodString;
4817
+ origin: z.ZodObject<{
4818
+ eastM: z.ZodNumber;
4819
+ northM: z.ZodNumber;
4820
+ }, z.core.$strict>;
4821
+ timeOrigin: z.ZodISODateTime;
4822
+ mode: z.ZodLiteral<"rotating_scan">;
4823
+ dataOrigin: z.ZodEnum<{
4824
+ instrument: "instrument";
4825
+ synthetic: "synthetic";
4826
+ }>;
4827
+ bearingConvention: z.ZodLiteral<"clockwise_from_north">;
4828
+ preprocessing: z.ZodOptional<z.ZodNever>;
4829
+ beamWidthConvention: z.ZodLiteral<"full_width_half_maximum_power">;
4830
+ processingAvailability: z.ZodLiteral<"scan_end">;
4831
+ detectionPosition: z.ZodDiscriminatedUnion<[z.ZodObject<{
4832
+ kind: z.ZodLiteral<"cell_center">;
4833
+ }, z.core.$strict>, z.ZodObject<{
4834
+ kind: z.ZodLiteral<"power_weighted_neighborhood">;
4835
+ azimuthRadius: z.ZodNumber;
4836
+ rangeRadius: z.ZodNumber;
4837
+ backgroundPower: z.ZodNumber;
4838
+ }, z.core.$strict>], "kind">;
4839
+ platform: z.ZodObject<{
4840
+ kind: z.ZodLiteral<"moving">;
4841
+ environment: z.ZodEnum<{
4842
+ airborne: "airborne";
4843
+ shipborne: "shipborne";
4844
+ }>;
4845
+ poseSampling: z.ZodLiteral<"dwell_midpoint">;
4846
+ attitudeModel: z.ZodLiteral<"level_yaw_only">;
4847
+ }, z.core.$strict>;
4848
+ beamReference: z.ZodEnum<{
4849
+ north: "north";
4850
+ platform_heading: "platform_heading";
4851
+ }>;
4852
+ products: z.ZodObject<{
4853
+ scanSchedule: z.ZodString;
4854
+ returns: z.ZodString;
4855
+ thresholds: z.ZodString;
4856
+ detections: z.ZodString;
4857
+ tracks: z.ZodString;
4858
+ associations: z.ZodString;
4859
+ truth: z.ZodOptional<z.ZodString>;
4860
+ siteFeatures: z.ZodOptional<z.ZodString>;
4861
+ platformPose: z.ZodString;
4862
+ }, z.core.$strict>;
4863
+ uncertainty: z.ZodObject<{
4864
+ kind: z.ZodLiteral<"gaussian_position_covariance">;
4865
+ axes: z.ZodTuple<[z.ZodLiteral<"east">, z.ZodLiteral<"north">], null>;
4866
+ unit: z.ZodLiteral<"m2">;
4867
+ confidenceProbability: z.ZodNumber;
4868
+ conditioning: z.ZodLiteral<"declared_pose_and_projection">;
4869
+ }, z.core.$strict>;
4870
+ rangeConvention: z.ZodLiteral<"slant_range">;
4871
+ projection: z.ZodObject<{
4872
+ kind: z.ZodLiteral<"declared_horizontal_plane">;
4873
+ upM: z.ZodNumber;
4874
+ assumption: z.ZodLiteral<"all_returns_on_plane">;
4875
+ }, z.core.$strict>;
4876
+ }, z.core.$strict>]>;
4877
+ declare const RADAR_PROFILE_SCHEMA_ID = "urn:disclosureos:experimental:radar-profile:0.1.0";
4878
+ declare const RADAR_PROFILE: Readonly<{
4879
+ readonly id: "urn:disclosureos:experimental:profile:rotating-radar";
4880
+ readonly version: "0.1.0";
4881
+ readonly scope: "retained_rotating_scan_products_and_declared_processing";
4882
+ }>;
4883
+ type RadarProfile = z.infer<typeof RadarProfileSchema>;
4884
+ declare function radarProfileJsonSchema(): Record<string, unknown>;
4885
+
4886
+ declare const RADAR_TABLE_COLUMNS: Readonly<{
4887
+ readonly scanSchedule: readonly ["scan_index", "azimuth_index", "start_s", "end_s", "beam_azimuth_deg", "beam_width_deg"];
4888
+ readonly platformPose: readonly ["scan_index", "azimuth_index", "time_s", "east_m", "north_m", "up_m", "heading_deg"];
4889
+ readonly detections: readonly ["detection_id", "scan_index", "azimuth_index", "range_index", "time_s", "east_m", "north_m", "power"];
4890
+ readonly tracks: readonly ["track_id", "scan_index", "time_s", "state", "east_m", "north_m", "velocity_east_m_s", "velocity_north_m_s", "cov_ee_m2", "cov_en_m2", "cov_nn_m2"];
4891
+ readonly associations: readonly ["track_id", "scan_index", "detection_id"];
4892
+ readonly truth: readonly ["target_id", "scan_index", "time_s", "east_m", "north_m"];
4893
+ readonly siteFeatures: readonly ["feature_id", "kind", "label", "vertex_index", "east_m", "north_m", "closed"];
4894
+ }>;
4895
+ interface RadarDwell {
4896
+ scan_index: number;
4897
+ azimuth_index: number;
4898
+ start_s: number;
4899
+ end_s: number;
4900
+ beam_azimuth_deg: number;
4901
+ beam_width_deg: number;
4902
+ }
4903
+ interface RadarPlatformPose {
4904
+ scan_index: number;
4905
+ azimuth_index: number;
4906
+ time_s: number;
4907
+ east_m: number;
4908
+ north_m: number;
4909
+ up_m: number;
4910
+ heading_deg: number;
4911
+ }
4912
+ /** Minimal geometry declaration, usable without a schema runtime in a browser. */
4913
+ interface RadarGeometry {
4914
+ origin: {
4915
+ eastM: number;
4916
+ northM: number;
4917
+ };
4918
+ platform?: {
4919
+ kind: "moving";
4920
+ } | undefined;
4921
+ beamReference?: "north" | "platform_heading" | undefined;
4922
+ rangeConvention: "horizontal_range" | "slant_range";
4923
+ projection?: {
4924
+ kind: "declared_horizontal_plane";
4925
+ upM: number;
4926
+ } | undefined;
4927
+ }
4928
+ /** Project a cell using its own retained dwell pose. A null means that the
4929
+ * declared slant range cannot reach the plane; it must never become a zero-range hit.
4930
+ * This is a conditional geometric calculation, not measured target height. */
4931
+ declare function radarCellPosition(profile: RadarGeometry, pose: RadarPlatformPose | undefined, beamAzimuthDeg: number, rangeM: number): {
4932
+ eastM: number;
4933
+ northM: number;
4934
+ horizontalRangeM: number;
4935
+ bearingDeg: number;
4936
+ } | null;
4937
+ interface RadarDetection {
4938
+ detection_id: string;
4939
+ scan_index: number;
4940
+ azimuth_index: number;
4941
+ range_index: number;
4942
+ time_s: number;
4943
+ east_m: number;
4944
+ north_m: number;
4945
+ power: number;
4946
+ }
4947
+ interface RadarTrack {
4948
+ track_id: string;
4949
+ scan_index: number;
4950
+ time_s: number;
4951
+ state: "tentative" | "confirmed" | "coasting";
4952
+ east_m: number;
4953
+ north_m: number;
4954
+ velocity_east_m_s: number;
4955
+ velocity_north_m_s: number;
4956
+ cov_ee_m2: number;
4957
+ cov_en_m2: number;
4958
+ cov_nn_m2: number;
4959
+ }
4960
+ interface RadarAssociation {
4961
+ track_id: string;
4962
+ scan_index: number;
4963
+ detection_id: string;
4964
+ }
4965
+ interface RadarTruth {
4966
+ target_id: string;
4967
+ scan_index: number;
4968
+ time_s: number;
4969
+ east_m: number;
4970
+ north_m: number;
4971
+ }
4972
+ interface RadarSiteFeatureVertex {
4973
+ feature_id: string;
4974
+ kind: "runway" | "taxiway" | "apron" | "structure" | "reference";
4975
+ label: string;
4976
+ vertex_index: number;
4977
+ east_m: number;
4978
+ north_m: number;
4979
+ closed: 0 | 1;
4980
+ }
4981
+ interface RadarDecodedProducts {
4982
+ scanSchedule: RadarDwell[];
4983
+ platformPose: RadarPlatformPose[];
4984
+ detections: RadarDetection[];
4985
+ tracks: RadarTrack[];
4986
+ associations: RadarAssociation[];
4987
+ truth: RadarTruth[];
4988
+ returns: number[];
4989
+ thresholds: number[];
4990
+ referenceCapture: number[];
4991
+ backgroundPower: number[];
4992
+ eligibility: number[];
4993
+ processedReturns: number[];
4994
+ siteFeatures: RadarSiteFeatureVertex[];
4995
+ }
4996
+ type RadarProductRoles = Record<"scanSchedule" | "returns" | "thresholds" | "detections" | "tracks" | "associations", string> & {
4997
+ truth?: string | undefined;
4998
+ platformPose?: string | undefined;
4999
+ referenceCapture?: string | undefined;
5000
+ backgroundPower?: string | undefined;
5001
+ eligibility?: string | undefined;
5002
+ processedReturns?: string | undefined;
5003
+ siteFeatures?: string | undefined;
5004
+ };
5005
+ /** Byte decoder only. Call the profile evaluator first or verify the same pinned bytes externally.
5006
+ * This function does not hash assets, certify calibration, validate associations or fit tracks. */
5007
+ declare function readRadarProducts(layouts: readonly ProductSourceLayout[], products: RadarProductRoles, assets: ReadonlyMap<string, Uint8Array>): RadarDecodedProducts;
5008
+ /** 2-D Gaussian probability contour multiplier. This is not a calibrated error bound. */
5009
+ declare function radarCovarianceScaleSquared(probability: number): number;
5010
+
5011
+ interface RadarProfileIssue {
5012
+ code: string;
5013
+ pointer: string;
5014
+ message: string;
5015
+ }
5016
+ interface RadarProfileResult {
5017
+ success: boolean;
5018
+ profile: typeof RADAR_PROFILE;
5019
+ issues: RadarProfileIssue[];
5020
+ checks: {
5021
+ structure: "passed" | "failed";
5022
+ sources: "passed" | "failed" | "not_checked";
5023
+ semantics: "passed" | "failed" | "not_checked";
5024
+ };
5025
+ scientific: "not_checked";
5026
+ physicalCalibration: "not_checked";
5027
+ trackingPerformance: "not_checked";
5028
+ data?: {
5029
+ declaration: RadarProfile;
5030
+ layouts: ProductSourceLayout[];
5031
+ products: RadarDecodedProducts;
5032
+ };
5033
+ }
5034
+ /** Validates a fixed or declared moving-platform full-rotation product profile.
5035
+ * It checks declared lineage and retained numerical consistency, not detector performance,
5036
+ * target identity, physical calibration, antenna adequacy or Gaussian error coverage. */
5037
+ declare function evaluateRadarProfile(observationInput: unknown, contextInput: unknown, selectionInput: unknown, profileInput: unknown, options?: {
5038
+ assets?: ReadonlyMap<string, Uint8Array>;
5039
+ }): Promise<RadarProfileResult>;
5040
+
5041
+ /** Sector-beam scheduling and retained processing, not a military capability assertion. */
5042
+ declare const SteeredRadarProfileSchema: z.ZodObject<{
5043
+ kind: z.ZodLiteral<"steered_radar_profile">;
5044
+ mode: z.ZodLiteral<"electronically_steered_sector">;
5045
+ rangeConvention: z.ZodLiteral<"horizontal_range">;
5046
+ beamWidthConvention: z.ZodLiteral<"full_width_half_maximum_power">;
5047
+ processingAvailability: z.ZodLiteral<"dwell_end">;
5048
+ detectionPosition: z.ZodObject<{
5049
+ kind: z.ZodLiteral<"cell_center">;
5050
+ }, z.core.$strict>;
5051
+ products: z.ZodObject<{
5052
+ beamSchedule: z.ZodString;
5053
+ returns: z.ZodString;
5054
+ thresholds: z.ZodString;
5055
+ detections: z.ZodString;
5056
+ tracks: z.ZodString;
5057
+ associations: z.ZodString;
5058
+ truth: z.ZodOptional<z.ZodString>;
5059
+ }, z.core.$strict>;
5060
+ uncertainty: z.ZodObject<{
5061
+ kind: z.ZodLiteral<"gaussian_position_covariance">;
5062
+ axes: z.ZodTuple<[z.ZodLiteral<"east">, z.ZodLiteral<"north">], null>;
5063
+ unit: z.ZodLiteral<"m2">;
5064
+ confidenceProbability: z.ZodNumber;
5065
+ }, z.core.$strict>;
5066
+ schemaVersion: z.ZodLiteral<"0.1.0">;
5067
+ id: z.ZodString;
5068
+ observationId: z.ZodString;
5069
+ contextId: z.ZodString;
5070
+ sourceSelectionId: z.ZodString;
5071
+ acquisitionRef: z.ZodString;
5072
+ acquisitionProductRef: z.ZodString;
5073
+ channelId: z.ZodString;
5074
+ frameRef: z.ZodString;
5075
+ origin: z.ZodObject<{
5076
+ eastM: z.ZodNumber;
5077
+ northM: z.ZodNumber;
5078
+ }, z.core.$strict>;
5079
+ timeOrigin: z.ZodISODateTime;
5080
+ dataOrigin: z.ZodEnum<{
5081
+ instrument: "instrument";
5082
+ synthetic: "synthetic";
5083
+ }>;
5084
+ bearingConvention: z.ZodLiteral<"clockwise_from_north">;
5085
+ }, z.core.$strict>;
5086
+ /** Decoded cooperative replies remain distinct from reflections and geometric height. */
5087
+ declare const SecondaryRadarProfileSchema: z.ZodObject<{
5088
+ kind: z.ZodLiteral<"secondary_radar_profile">;
5089
+ mode: z.ZodLiteral<"mode_a_mode_c">;
5090
+ rangeConvention: z.ZodLiteral<"slant_range">;
5091
+ positionRepresentation: z.ZodLiteral<"polar_only">;
5092
+ altitudeConvention: z.ZodLiteral<"pressure_altitude_1013_25_hpa">;
5093
+ identitySemantics: z.ZodLiteral<"reported_code_not_verified_identity">;
5094
+ processingAvailability: z.ZodLiteral<"explicit_available_time">;
5095
+ products: z.ZodObject<{
5096
+ interrogations: z.ZodString;
5097
+ decodedReplies: z.ZodString;
5098
+ reports: z.ZodString;
5099
+ truth: z.ZodOptional<z.ZodString>;
5100
+ }, z.core.$strict>;
5101
+ schemaVersion: z.ZodLiteral<"0.1.0">;
5102
+ id: z.ZodString;
5103
+ observationId: z.ZodString;
5104
+ contextId: z.ZodString;
5105
+ sourceSelectionId: z.ZodString;
5106
+ acquisitionRef: z.ZodString;
5107
+ acquisitionProductRef: z.ZodString;
5108
+ channelId: z.ZodString;
5109
+ frameRef: z.ZodString;
5110
+ origin: z.ZodObject<{
5111
+ eastM: z.ZodNumber;
5112
+ northM: z.ZodNumber;
5113
+ }, z.core.$strict>;
5114
+ timeOrigin: z.ZodISODateTime;
5115
+ dataOrigin: z.ZodEnum<{
5116
+ instrument: "instrument";
5117
+ synthetic: "synthetic";
5118
+ }>;
5119
+ bearingConvention: z.ZodLiteral<"clockwise_from_north">;
5120
+ }, z.core.$strict>;
5121
+ declare const STEERED_RADAR_PROFILE_SCHEMA_ID = "urn:disclosureos:experimental:steered-radar-profile:0.1.0";
5122
+ declare const SECONDARY_RADAR_PROFILE_SCHEMA_ID = "urn:disclosureos:experimental:secondary-radar-profile:0.1.0";
5123
+ declare const STEERED_RADAR_PROFILE: Readonly<{
5124
+ readonly id: "urn:disclosureos:experimental:profile:steered-radar";
5125
+ readonly version: "0.1.0";
5126
+ readonly scope: "retained_sector_beams_and_declared_processing";
5127
+ }>;
5128
+ declare const SECONDARY_RADAR_PROFILE: Readonly<{
5129
+ readonly id: "urn:disclosureos:experimental:profile:secondary-radar";
5130
+ readonly version: "0.1.0";
5131
+ readonly scope: "retained_cooperative_interrogations_and_decoded_replies";
5132
+ }>;
5133
+ type SteeredRadarProfile = z.infer<typeof SteeredRadarProfileSchema>;
5134
+ type SecondaryRadarProfile = z.infer<typeof SecondaryRadarProfileSchema>;
5135
+ declare function steeredRadarProfileJsonSchema(): Record<string, unknown>;
5136
+ declare function secondaryRadarProfileJsonSchema(): Record<string, unknown>;
5137
+
5138
+ declare const STEERED_RADAR_TABLE_COLUMNS: Readonly<{
5139
+ readonly beamSchedule: readonly ["dwell_index", "cycle_index", "start_s", "end_s", "beam_azimuth_deg", "beam_width_deg", "purpose"];
5140
+ readonly detections: readonly ["detection_id", "dwell_index", "range_index", "time_s", "east_m", "north_m", "power"];
5141
+ readonly tracks: readonly ["track_id", "dwell_index", "time_s", "state", "east_m", "north_m", "velocity_east_m_s", "velocity_north_m_s", "cov_ee_m2", "cov_en_m2", "cov_nn_m2"];
5142
+ readonly associations: readonly ["track_id", "dwell_index", "detection_id"];
5143
+ readonly truth: readonly ["target_id", "dwell_index", "time_s", "east_m", "north_m"];
5144
+ }>;
5145
+ declare const SECONDARY_RADAR_TABLE_COLUMNS: Readonly<{
5146
+ readonly interrogations: readonly ["interrogation_id", "start_s", "end_s", "beam_azimuth_deg", "beam_width_deg", "mode"];
5147
+ readonly decodedReplies: readonly ["reply_id", "interrogation_id", "time_s", "available_s", "slant_range_m", "bearing_deg", "validity", "mode_a_code", "pressure_altitude_ft"];
5148
+ readonly reports: readonly ["report_id", "reply_id", "interrogation_id", "time_s", "available_s", "slant_range_m", "bearing_deg", "validity", "mode_a_code", "pressure_altitude_ft"];
5149
+ readonly truth: readonly ["target_id", "interrogation_id", "time_s", "east_m", "north_m", "up_m", "transponder"];
5150
+ }>;
5151
+ interface SteeredRadarDwell {
5152
+ dwell_index: number;
5153
+ cycle_index: number;
5154
+ start_s: number;
5155
+ end_s: number;
5156
+ beam_azimuth_deg: number;
5157
+ beam_width_deg: number;
5158
+ purpose: "search" | "revisit";
5159
+ }
5160
+ interface SteeredRadarDetection {
5161
+ detection_id: string;
5162
+ dwell_index: number;
5163
+ range_index: number;
5164
+ time_s: number;
5165
+ east_m: number;
5166
+ north_m: number;
5167
+ power: number;
5168
+ }
5169
+ interface SteeredRadarTrack {
5170
+ track_id: string;
5171
+ dwell_index: number;
5172
+ time_s: number;
5173
+ state: "tentative" | "confirmed" | "coasting";
5174
+ east_m: number;
5175
+ north_m: number;
5176
+ velocity_east_m_s: number;
5177
+ velocity_north_m_s: number;
5178
+ cov_ee_m2: number;
5179
+ cov_en_m2: number;
5180
+ cov_nn_m2: number;
5181
+ }
5182
+ interface SteeredRadarAssociation {
5183
+ track_id: string;
5184
+ dwell_index: number;
5185
+ detection_id: string;
5186
+ }
5187
+ interface SteeredRadarTruth {
5188
+ target_id: string;
5189
+ dwell_index: number;
5190
+ time_s: number;
5191
+ east_m: number;
5192
+ north_m: number;
5193
+ }
5194
+ interface SteeredRadarDecodedProducts {
5195
+ beamSchedule: SteeredRadarDwell[];
5196
+ detections: SteeredRadarDetection[];
5197
+ tracks: SteeredRadarTrack[];
5198
+ associations: SteeredRadarAssociation[];
5199
+ truth: SteeredRadarTruth[];
5200
+ returns: number[];
5201
+ thresholds: number[];
5202
+ }
5203
+ type SteeredRadarProductRoles = Record<"beamSchedule" | "returns" | "thresholds" | "detections" | "tracks" | "associations", string> & {
5204
+ truth?: string | undefined;
5205
+ };
5206
+ interface SecondaryRadarInterrogation {
5207
+ interrogation_id: string;
5208
+ start_s: number;
5209
+ end_s: number;
5210
+ beam_azimuth_deg: number;
5211
+ beam_width_deg: number;
5212
+ mode: "mode_a" | "mode_c";
5213
+ }
5214
+ interface SecondaryRadarReply {
5215
+ reply_id: string;
5216
+ interrogation_id: string;
5217
+ time_s: number;
5218
+ available_s: number;
5219
+ slant_range_m: number | null;
5220
+ bearing_deg: number | null;
5221
+ validity: "valid" | "invalid";
5222
+ mode_a_code: string | null;
5223
+ pressure_altitude_ft: number | null;
5224
+ }
5225
+ interface SecondaryRadarReport extends SecondaryRadarReply {
5226
+ report_id: string;
5227
+ }
5228
+ interface SecondaryRadarTruth {
5229
+ target_id: string;
5230
+ interrogation_id: string;
5231
+ time_s: number;
5232
+ east_m: number;
5233
+ north_m: number;
5234
+ up_m: number;
5235
+ transponder: "enabled" | "disabled";
5236
+ }
5237
+ interface SecondaryRadarDecodedProducts {
5238
+ interrogations: SecondaryRadarInterrogation[];
5239
+ decodedReplies: SecondaryRadarReply[];
5240
+ reports: SecondaryRadarReport[];
5241
+ truth: SecondaryRadarTruth[];
5242
+ }
5243
+ type SecondaryRadarProductRoles = Record<"interrogations" | "decodedReplies" | "reports", string> & {
5244
+ truth?: string | undefined;
5245
+ };
5246
+ /** Decoder only. Verify pinned source bytes with evaluateSteeredRadarProfile before scientific use. */
5247
+ declare function readSteeredRadarProducts(layouts: readonly ProductSourceLayout[], products: SteeredRadarProductRoles, assets: ReadonlyMap<string, Uint8Array>): SteeredRadarDecodedProducts;
5248
+ /** Decoder only. Empty optional fields stay null; Mode A codes retain leading zeros. */
5249
+ declare function readSecondaryRadarProducts(layouts: readonly ProductSourceLayout[], products: SecondaryRadarProductRoles, assets: ReadonlyMap<string, Uint8Array>): SecondaryRadarDecodedProducts;
5250
+
5251
+ interface AdvancedRadarProfileIssue {
5252
+ code: string;
5253
+ pointer: string;
5254
+ message: string;
5255
+ }
5256
+ interface AdvancedRadarProfileResult<P, D> {
5257
+ success: boolean;
5258
+ profile: typeof STEERED_RADAR_PROFILE | typeof SECONDARY_RADAR_PROFILE;
5259
+ issues: AdvancedRadarProfileIssue[];
5260
+ checks: {
5261
+ structure: "passed" | "failed";
5262
+ sources: "passed" | "failed" | "not_checked";
5263
+ semantics: "passed" | "failed" | "not_checked";
5264
+ };
5265
+ scientific: "not_checked";
5266
+ physicalCalibration: "not_checked";
5267
+ trackingPerformance: "not_checked";
5268
+ identityVerification: "not_checked";
5269
+ data?: {
5270
+ declaration: P;
5271
+ layouts: ProductSourceLayout[];
5272
+ products: D;
5273
+ };
5274
+ }
5275
+ type SteeredRadarProfileResult = AdvancedRadarProfileResult<SteeredRadarProfile, SteeredRadarDecodedProducts>;
5276
+ type SecondaryRadarProfileResult = AdvancedRadarProfileResult<SecondaryRadarProfile, SecondaryRadarDecodedProducts>;
5277
+ /** Validates retained sector-beam products. It does not certify antenna performance or operational capability. */
5278
+ declare function evaluateSteeredRadarProfile(observation: unknown, context: unknown, selection: unknown, profileInput: unknown, options?: {
5279
+ assets?: ReadonlyMap<string, Uint8Array>;
5280
+ }): Promise<SteeredRadarProfileResult>;
5281
+ /** Validates cooperative report provenance, not transponder authenticity, geometric height or target identity. */
5282
+ declare function evaluateSecondaryRadarProfile(observation: unknown, context: unknown, selection: unknown, profileInput: unknown, options?: {
5283
+ assets?: ReadonlyMap<string, Uint8Array>;
5284
+ }): Promise<SecondaryRadarProfileResult>;
5285
+
5286
+ /** An optional interpretation of retained monostatic envelopes, not an instrument capability claim. */
5287
+ declare const SonarProfileSchema: z.ZodObject<{
5288
+ kind: z.ZodLiteral<"sonar_profile">;
5289
+ schemaVersion: z.ZodLiteral<"0.1.0">;
5290
+ id: z.ZodString;
5291
+ observationId: z.ZodString;
5292
+ contextId: z.ZodString;
5293
+ sourceSelectionId: z.ZodString;
5294
+ acquisitionRef: z.ZodString;
5295
+ acquisitionProductRef: z.ZodString;
5296
+ receiveMaskAcquisitionProductRef: z.ZodString;
5297
+ channelId: z.ZodString;
5298
+ timeOrigin: z.ZodISODateTime;
5299
+ mode: z.ZodLiteral<"monostatic_echo_envelope">;
5300
+ dataOrigin: z.ZodEnum<{
5301
+ instrument: "instrument";
5302
+ synthetic: "synthetic";
5303
+ }>;
5304
+ amplitudeRepresentation: z.ZodLiteral<"normalized_envelope">;
5305
+ sampling: z.ZodObject<{
5306
+ pings: z.ZodNumber;
5307
+ delayBins: z.ZodNumber;
5308
+ delayStartSeconds: z.ZodNumber;
5309
+ delayStepSeconds: z.ZodNumber;
5310
+ pingStepSeconds: z.ZodNumber;
5311
+ }, z.core.$strict>;
5312
+ propagation: z.ZodObject<{
5313
+ kind: z.ZodLiteral<"constant_assumed_sound_speed">;
5314
+ soundSpeedMps: z.ZodNumber;
5315
+ travelPath: z.ZodLiteral<"two_way">;
5316
+ distanceMeaning: z.ZodLiteral<"modeled_one_way_path_length">;
5317
+ }, z.core.$strict>;
5318
+ availability: z.ZodObject<{
5319
+ kind: z.ZodLiteral<"receive_retention_mask">;
5320
+ unavailable: z.ZodLiteral<0>;
5321
+ available: z.ZodLiteral<1>;
5322
+ missingAmplitude: z.ZodLiteral<"zero_storage_placeholder">;
5323
+ }, z.core.$strict>;
5324
+ products: z.ZodObject<{
5325
+ amplitudes: z.ZodString;
5326
+ receiveMask: z.ZodString;
5327
+ }, z.core.$strict>;
5328
+ }, z.core.$strict>;
5329
+ declare const SONAR_PROFILE_SCHEMA_ID = "urn:disclosureos:experimental:sonar-profile:0.1.0";
5330
+ declare const SONAR_PROFILE: Readonly<{
5331
+ readonly id: "urn:disclosureos:experimental:profile:monostatic-echo-envelope";
5332
+ readonly version: "0.1.0";
5333
+ readonly scope: "retained_echo_envelope_and_assumed_two_way_distance";
5334
+ }>;
5335
+ type SonarProfile = z.infer<typeof SonarProfileSchema>;
5336
+ declare function sonarProfileJsonSchema(): Record<string, unknown>;
5337
+
5338
+ /** Minimal browser declaration. Use evaluateSonarProfile for document bindings and digests. */
5339
+ interface SonarDeclaration {
5340
+ timeOrigin: string;
5341
+ sampling: {
5342
+ pings: number;
5343
+ delayBins: number;
5344
+ delayStartSeconds: number;
5345
+ delayStepSeconds: number;
5346
+ pingStepSeconds: number;
5347
+ };
5348
+ propagation: {
5349
+ kind: "constant_assumed_sound_speed";
5350
+ soundSpeedMps: number;
5351
+ travelPath: "two_way";
5352
+ distanceMeaning: "modeled_one_way_path_length";
5353
+ };
5354
+ availability: {
5355
+ kind: "receive_retention_mask";
5356
+ unavailable: 0;
5357
+ available: 1;
5358
+ missingAmplitude: "zero_storage_placeholder";
5359
+ };
5360
+ products: {
5361
+ amplitudes: string;
5362
+ receiveMask: string;
5363
+ };
5364
+ }
5365
+ interface SonarDecodedProducts {
5366
+ /** Storage values only: receiveMask=0 makes this a placeholder, never a measured zero. */
5367
+ amplitudes: number[];
5368
+ receiveMask: number[];
5369
+ }
5370
+ /** Bound allocation and reject ambiguous receive windows before reading bytes. */
5371
+ declare function validateSonarDeclaration(profile: SonarDeclaration): void;
5372
+ /** Conditional path length only; neither a measured depth nor a straight-line position. */
5373
+ declare function sonarDistance(profile: SonarDeclaration, delaySeconds: number): number;
5374
+ declare function sonarSample(profile: SonarDeclaration, ping: number, bin: number): {
5375
+ ping: number;
5376
+ bin: number;
5377
+ delaySeconds: number;
5378
+ modeledDistanceM: number;
5379
+ timeOffsetSeconds: number;
5380
+ receiveOffsetSeconds: number;
5381
+ amplitudeByteOffset: number;
5382
+ maskByteOffset: number;
5383
+ };
5384
+ declare function readSonarSample(profile: SonarDeclaration, data: SonarDecodedProducts, ping: number, bin: number): {
5385
+ available: boolean;
5386
+ amplitude: number | null;
5387
+ ping: number;
5388
+ bin: number;
5389
+ delaySeconds: number;
5390
+ modeledDistanceM: number;
5391
+ timeOffsetSeconds: number;
5392
+ receiveOffsetSeconds: number;
5393
+ amplitudeByteOffset: number;
5394
+ maskByteOffset: number;
5395
+ };
5396
+ /** Decode exact retained cells. Missing reception remains separate from a zero amplitude.
5397
+ * This dependency-free reader checks layout/content, but not SHA-256 or acquisition lineage. */
5398
+ declare function readSonarProducts(profile: SonarDeclaration, layouts: readonly ProductSourceLayout[], assets: ReadonlyMap<string, Uint8Array>): SonarDecodedProducts;
5399
+
5400
+ interface SonarProfileIssue {
5401
+ code: string;
5402
+ pointer: string;
5403
+ message: string;
5404
+ }
5405
+ interface SonarProfileResult {
5406
+ success: boolean;
5407
+ profile: typeof SONAR_PROFILE;
5408
+ issues: SonarProfileIssue[];
5409
+ checks: {
5410
+ structure: "passed" | "failed";
5411
+ sources: "passed" | "failed" | "not_checked";
5412
+ semantics: "passed" | "failed" | "not_checked";
5413
+ };
5414
+ scientific: "not_checked";
5415
+ physicalCalibration: "not_checked";
5416
+ propagationAccuracy: "not_checked";
5417
+ data?: {
5418
+ declaration: SonarProfile;
5419
+ layouts: ProductSourceLayout[];
5420
+ products: SonarDecodedProducts;
5421
+ };
5422
+ }
5423
+ /** Checks standard documents, retained bytes and declared meaning. It cannot establish
5424
+ * physical calibration, propagation accuracy, object identity or bathymetry. */
5425
+ declare function evaluateSonarProfile(observationInput: unknown, contextInput: unknown, selectionInput: unknown, profileInput: unknown, options?: {
5426
+ assets?: ReadonlyMap<string, Uint8Array>;
5427
+ }): Promise<SonarProfileResult>;
5428
+
5429
+ /** Optional single-channel pressure capture with reproducible spectral-density windows. */
5430
+ declare const PassiveSonarProfileSchema: z.ZodObject<{
5431
+ kind: z.ZodLiteral<"passive_sonar_profile">;
5432
+ schemaVersion: z.ZodLiteral<"0.1.0">;
5433
+ id: z.ZodString;
5434
+ observationId: z.ZodString;
5435
+ contextId: z.ZodString;
5436
+ sourceSelectionId: z.ZodString;
5437
+ acquisitionRef: z.ZodString;
5438
+ acquisitionProductRef: z.ZodString;
5439
+ sampleMaskAcquisitionProductRef: z.ZodString;
5440
+ channelId: z.ZodString;
5441
+ processingRef: z.ZodString;
5442
+ timeOrigin: z.ZodISODateTime;
5443
+ mode: z.ZodLiteral<"single_hydrophone_pressure">;
5444
+ dataOrigin: z.ZodEnum<{
5445
+ instrument: "instrument";
5446
+ synthetic: "synthetic";
5447
+ }>;
5448
+ sampling: z.ZodObject<{
5449
+ samples: z.ZodNumber;
5450
+ sampleRateHz: z.ZodNumber;
5451
+ }, z.core.$strict>;
5452
+ transform: z.ZodObject<{
5453
+ kind: z.ZodLiteral<"one_sided_power_spectral_density">;
5454
+ windowSamples: z.ZodNumber;
5455
+ hopSamples: z.ZodNumber;
5456
+ window: z.ZodLiteral<"periodic_hann">;
5457
+ detrend: z.ZodLiteral<"remove_arithmetic_mean_before_window">;
5458
+ padding: z.ZodLiteral<"none_full_windows_only">;
5459
+ scaling: z.ZodLiteral<"sum_squared_window_times_sample_rate">;
5460
+ oneSided: z.ZodLiteral<"double_interior_bins_only">;
5461
+ missingWindow: z.ZodLiteral<"unavailable_if_any_input_missing">;
5462
+ }, z.core.$strict>;
5463
+ display: z.ZodObject<{
5464
+ densityReferencePa2PerHz: z.ZodLiteral<1e-12>;
5465
+ logarithm: z.ZodLiteral<"10_log10_density_over_reference">;
5466
+ zeroDensity: z.ZodLiteral<"negative_infinity_no_floor">;
5467
+ }, z.core.$strict>;
5468
+ availability: z.ZodObject<{
5469
+ unavailable: z.ZodLiteral<0>;
5470
+ available: z.ZodLiteral<1>;
5471
+ missingValue: z.ZodLiteral<"zero_storage_placeholder">;
5472
+ }, z.core.$strict>;
5473
+ products: z.ZodObject<{
5474
+ pressure: z.ZodString;
5475
+ sampleMask: z.ZodString;
5476
+ powerSpectralDensity: z.ZodString;
5477
+ frameMask: z.ZodString;
5478
+ }, z.core.$strict>;
5479
+ }, z.core.$strict>;
5480
+ declare const PASSIVE_SONAR_PROFILE_SCHEMA_ID = "urn:disclosureos:experimental:passive-sonar-profile:0.1.0";
5481
+ declare const PASSIVE_SONAR_PROFILE: Readonly<{
5482
+ readonly id: "urn:disclosureos:experimental:profile:passive-hydrophone-pressure";
5483
+ readonly version: "0.1.0";
5484
+ readonly scope: "single_channel_pressure_and_reproducible_spectral_density";
5485
+ }>;
5486
+ type PassiveSonarProfile = z.infer<typeof PassiveSonarProfileSchema>;
5487
+ declare function passiveSonarProfileJsonSchema(): Record<string, unknown>;
5488
+
5489
+ /** Minimal browser declaration. The evaluator additionally verifies document lineage and hashes. */
5490
+ interface PassiveSonarDeclaration {
5491
+ timeOrigin: string;
5492
+ sampling: {
5493
+ samples: number;
5494
+ sampleRateHz: number;
5495
+ };
5496
+ transform: {
5497
+ kind: "one_sided_power_spectral_density";
5498
+ windowSamples: number;
5499
+ hopSamples: number;
5500
+ window: "periodic_hann";
5501
+ detrend: "remove_arithmetic_mean_before_window";
5502
+ padding: "none_full_windows_only";
5503
+ scaling: "sum_squared_window_times_sample_rate";
5504
+ oneSided: "double_interior_bins_only";
5505
+ missingWindow: "unavailable_if_any_input_missing";
5506
+ };
5507
+ display: {
5508
+ densityReferencePa2PerHz: 1e-12;
5509
+ logarithm: "10_log10_density_over_reference";
5510
+ zeroDensity: "negative_infinity_no_floor";
5511
+ };
5512
+ availability: {
5513
+ unavailable: 0;
5514
+ available: 1;
5515
+ missingValue: "zero_storage_placeholder";
5516
+ };
5517
+ products: {
5518
+ pressure: string;
5519
+ sampleMask: string;
5520
+ powerSpectralDensity: string;
5521
+ frameMask: string;
5522
+ };
5523
+ }
5524
+ interface PassiveSonarDecodedProducts {
5525
+ /** Storage values: sampleMask=0 indicates an unavailable sample, not measured silence. */
5526
+ pressure: number[];
5527
+ sampleMask: number[];
5528
+ /** Row-major window,frequency storage values, conditioned on frameMask. */
5529
+ powerSpectralDensity: number[];
5530
+ frameMask: number[];
5531
+ }
5532
+ declare function passiveSonarDimensions(p: PassiveSonarDeclaration): {
5533
+ frames: number;
5534
+ bins: number;
5535
+ };
5536
+ declare function validatePassiveSonarDeclaration(p: PassiveSonarDeclaration): void;
5537
+ /** Periodic Hann, frame mean removed before weighting. No zero padding; real one-sided PSD. */
5538
+ declare function computePassiveSonarSpectrum(samples: ArrayLike<number>, sampleRateHz: number): number[];
5539
+ declare function passiveSonarSample(p: PassiveSonarDeclaration, sample: number): {
5540
+ sample: number;
5541
+ timeOffsetSeconds: number;
5542
+ pressureByteOffset: number;
5543
+ sampleMaskByteOffset: number;
5544
+ };
5545
+ declare function passiveSonarBin(p: PassiveSonarDeclaration, frame: number, bin: number): {
5546
+ frame: number;
5547
+ bin: number;
5548
+ frequencyHz: number;
5549
+ timeOffsetSeconds: number;
5550
+ centerOffsetSeconds: number;
5551
+ startSample: number;
5552
+ endSampleExclusive: number;
5553
+ lastSampleOffsetSeconds: number;
5554
+ endOffsetSeconds: number;
5555
+ pressureByteOffset: number;
5556
+ pressureByteLength: number;
5557
+ sampleMaskByteOffset: number;
5558
+ sampleMaskByteLength: number;
5559
+ densityByteOffset: number;
5560
+ frameMaskByteOffset: number;
5561
+ };
5562
+ declare function passiveSonarDensityDb(p: PassiveSonarDeclaration, density: number): number;
5563
+ declare function readPassiveSonarSample(p: PassiveSonarDeclaration, data: PassiveSonarDecodedProducts, sample: number): {
5564
+ available: boolean;
5565
+ pressure: number | null;
5566
+ sample: number;
5567
+ timeOffsetSeconds: number;
5568
+ pressureByteOffset: number;
5569
+ sampleMaskByteOffset: number;
5570
+ };
5571
+ declare function readPassiveSonarBin(p: PassiveSonarDeclaration, data: PassiveSonarDecodedProducts, frame: number, bin: number): {
5572
+ available: boolean;
5573
+ density: number | null;
5574
+ densityDb: number | null;
5575
+ frame: number;
5576
+ bin: number;
5577
+ frequencyHz: number;
5578
+ timeOffsetSeconds: number;
5579
+ centerOffsetSeconds: number;
5580
+ startSample: number;
5581
+ endSampleExclusive: number;
5582
+ lastSampleOffsetSeconds: number;
5583
+ endOffsetSeconds: number;
5584
+ pressureByteOffset: number;
5585
+ pressureByteLength: number;
5586
+ sampleMaskByteOffset: number;
5587
+ sampleMaskByteLength: number;
5588
+ densityByteOffset: number;
5589
+ frameMaskByteOffset: number;
5590
+ };
5591
+ /** Validate and reproduce the complete PSD against exact retained waveform bytes.
5592
+ * This dependency-free reader does not authenticate hashes or acquisition bindings. */
5593
+ declare function readPassiveSonarProducts(p: PassiveSonarDeclaration, layouts: readonly ProductSourceLayout[], assets: ReadonlyMap<string, Uint8Array>): PassiveSonarDecodedProducts;
5594
+
5595
+ interface PassiveSonarProfileResult {
5596
+ success: boolean;
5597
+ profile: typeof PASSIVE_SONAR_PROFILE;
5598
+ issues: {
5599
+ code: string;
5600
+ pointer: string;
5601
+ message: string;
5602
+ }[];
5603
+ checks: {
5604
+ structure: "passed" | "failed";
5605
+ sources: "passed" | "failed" | "not_checked";
5606
+ semantics: "passed" | "failed" | "not_checked";
5607
+ reproduction: "passed" | "failed" | "not_checked";
5608
+ };
5609
+ scientific: "not_checked";
5610
+ physicalCalibration: "not_checked";
5611
+ localization: "not_checked";
5612
+ data?: {
5613
+ declaration: PassiveSonarProfile;
5614
+ layouts: ProductSourceLayout[];
5615
+ products: PassiveSonarDecodedProducts;
5616
+ };
5617
+ }
5618
+ /** Validates bindings, exact time coverage, retained bytes and numerical PSD reproduction.
5619
+ * A successful result does not certify real pressure calibration or locate a sound source. */
5620
+ declare function evaluatePassiveSonarProfile(observationInput: unknown, contextInput: unknown, selectionInput: unknown, profileInput: unknown, options?: {
5621
+ assets?: ReadonlyMap<string, Uint8Array>;
5622
+ }): Promise<PassiveSonarProfileResult>;
5623
+
5624
+ /** Optional retained discrete-return table and complete static raster pulse ledger. */
5625
+ declare const LidarProfileSchema: z.ZodObject<{
5626
+ kind: z.ZodLiteral<"lidar_point_cloud_profile">;
5627
+ schemaVersion: z.ZodLiteral<"0.1.0">;
5628
+ id: z.ZodString;
5629
+ observationId: z.ZodString;
5630
+ contextId: z.ZodString;
5631
+ sourceSelectionId: z.ZodString;
5632
+ acquisitionRef: z.ZodString;
5633
+ channelId: z.ZodString;
5634
+ acquisitionProducts: z.ZodObject<{
5635
+ pulses: z.ZodString;
5636
+ points: z.ZodString;
5637
+ }, z.core.$strict>;
5638
+ dataOrigin: z.ZodEnum<{
5639
+ instrument: "instrument";
5640
+ synthetic: "synthetic";
5641
+ }>;
5642
+ mode: z.ZodLiteral<"static_discrete_return_raster">;
5643
+ coordinateFrame: z.ZodObject<{
5644
+ kind: z.ZodLiteral<"local_cartesian">;
5645
+ axes: z.ZodTuple<[z.ZodLiteral<"east">, z.ZodLiteral<"north">, z.ZodLiteral<"up">], null>;
5646
+ unit: z.ZodLiteral<"m">;
5647
+ handedness: z.ZodLiteral<"right_handed">;
5648
+ originDescription: z.ZodString;
5649
+ sensorOrigin: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
5650
+ georeferencing: z.ZodLiteral<"not_provided">;
5651
+ }, z.core.$strict>;
5652
+ scan: z.ZodObject<{
5653
+ rows: z.ZodNumber;
5654
+ columns: z.ZodNumber;
5655
+ pulses: z.ZodNumber;
5656
+ points: z.ZodNumber;
5657
+ order: z.ZodLiteral<"row_major_index_not_time">;
5658
+ aim: z.ZodLiteral<"direction_reference_not_surface_hit">;
5659
+ }, z.core.$strict>;
5660
+ geometry: z.ZodObject<{
5661
+ nearRangeM: z.ZodNumber;
5662
+ farRangeM: z.ZodNumber;
5663
+ rayToleranceM: z.ZodNumber;
5664
+ toleranceMeaning: z.ZodLiteral<"encoding_consistency_not_measurement_uncertainty">;
5665
+ bounds: z.ZodObject<{
5666
+ min: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
5667
+ max: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
5668
+ }, z.core.$strict>;
5669
+ }, z.core.$strict>;
5670
+ intensity: z.ZodObject<{
5671
+ kind: z.ZodLiteral<"normalized_return_amplitude">;
5672
+ min: z.ZodLiteral<0>;
5673
+ max: z.ZodLiteral<1>;
5674
+ calibration: z.ZodLiteral<"not_calibrated_to_reflectance">;
5675
+ }, z.core.$strict>;
5676
+ classifications: z.ZodObject<{
5677
+ authority: z.ZodEnum<{
5678
+ authored_annotations: "authored_annotations";
5679
+ source_annotations: "source_annotations";
5680
+ }>;
5681
+ method: z.ZodString;
5682
+ classes: z.ZodArray<z.ZodObject<{
5683
+ code: z.ZodNumber;
5684
+ label: z.ZodString;
5685
+ }, z.core.$strict>>;
5686
+ }, z.core.$strict>;
5687
+ availability: z.ZodObject<{
5688
+ retained: z.ZodLiteral<"complete_return_group">;
5689
+ noReturn: z.ZodLiteral<"zero_detected_returns_not_clear_space">;
5690
+ unavailable: z.ZodLiteral<"unknown_return_count_empty_cell">;
5691
+ noTiming: z.ZodLiteral<"no_per_pulse_timestamps">;
5692
+ }, z.core.$strict>;
5693
+ products: z.ZodObject<{
5694
+ pulses: z.ZodString;
5695
+ points: z.ZodString;
5696
+ }, z.core.$strict>;
5697
+ }, z.core.$strict>;
5698
+ declare const LIDAR_PROFILE_SCHEMA_ID = "urn:disclosureos:experimental:lidar-point-cloud-profile:0.1.0";
5699
+ declare const LIDAR_PROFILE: Readonly<{
5700
+ readonly id: "urn:disclosureos:experimental:profile:lidar-point-cloud";
5701
+ readonly version: "0.1.0";
5702
+ readonly scope: "static_discrete_returns_and_complete_pulse_ledger";
5703
+ }>;
5704
+ type LidarProfile = z.infer<typeof LidarProfileSchema>;
5705
+ declare function lidarProfileJsonSchema(): Record<string, unknown>;
5706
+
5707
+ interface LidarDeclaration {
5708
+ mode: "static_discrete_return_raster";
5709
+ coordinateFrame: {
5710
+ kind: "local_cartesian";
5711
+ axes: ["east", "north", "up"];
5712
+ unit: "m";
5713
+ handedness: "right_handed";
5714
+ originDescription: string;
5715
+ sensorOrigin: [number, number, number];
5716
+ georeferencing: "not_provided";
5717
+ };
5718
+ scan: {
5719
+ rows: number;
5720
+ columns: number;
5721
+ pulses: number;
5722
+ points: number;
5723
+ order: "row_major_index_not_time";
5724
+ aim: "direction_reference_not_surface_hit";
5725
+ };
5726
+ geometry: {
5727
+ nearRangeM: number;
5728
+ farRangeM: number;
5729
+ rayToleranceM: number;
5730
+ toleranceMeaning: "encoding_consistency_not_measurement_uncertainty";
5731
+ bounds: {
5732
+ min: [number, number, number];
5733
+ max: [number, number, number];
5734
+ };
5735
+ };
5736
+ intensity: {
5737
+ kind: "normalized_return_amplitude";
5738
+ min: 0;
5739
+ max: 1;
5740
+ calibration: "not_calibrated_to_reflectance";
5741
+ };
5742
+ classifications: {
5743
+ authority: "authored_annotations" | "source_annotations";
5744
+ method: string;
5745
+ classes: {
5746
+ code: number;
5747
+ label: string;
5748
+ }[];
5749
+ };
5750
+ availability: {
5751
+ retained: "complete_return_group";
5752
+ noReturn: "zero_detected_returns_not_clear_space";
5753
+ unavailable: "unknown_return_count_empty_cell";
5754
+ noTiming: "no_per_pulse_timestamps";
5755
+ };
5756
+ products: {
5757
+ pulses: string;
5758
+ points: string;
5759
+ };
5760
+ }
5761
+ interface LidarSourceRow {
5762
+ byteOffset: number;
5763
+ byteLength: number;
5764
+ }
5765
+ interface LidarPulse {
5766
+ index: number;
5767
+ id: string;
5768
+ scanRow: number;
5769
+ scanColumn: number;
5770
+ aim: [number, number, number];
5771
+ status: "retained" | "no_return" | "unavailable";
5772
+ returnCount: number | null;
5773
+ pointIndices: number[];
5774
+ row: LidarSourceRow;
5775
+ }
5776
+ interface LidarPoint {
5777
+ index: number;
5778
+ pulseIndex: number;
5779
+ pulseId: string;
5780
+ returnNumber: number;
5781
+ returnCount: number;
5782
+ x: number;
5783
+ y: number;
5784
+ z: number;
5785
+ intensity: number;
5786
+ classCode: number;
5787
+ rangeM: number;
5788
+ row: LidarSourceRow;
5789
+ }
5790
+ interface LidarDecodedProducts {
5791
+ pulses: LidarPulse[];
5792
+ points: LidarPoint[];
5793
+ }
5794
+ declare const LIDAR_PULSE_COLUMNS: readonly ["pulse_id", "scan_row", "scan_column", "aim_x_m", "aim_y_m", "aim_z_m", "status", "return_count"];
5795
+ declare const LIDAR_POINT_COLUMNS: readonly ["pulse_id", "return_number", "return_count", "x_m", "y_m", "z_m", "intensity", "class_code"];
5796
+ declare function validateLidarDeclaration(p: LidarDeclaration): void;
5797
+ /** Reads retained bytes, complete return groups and ray geometry. Hash and document linkage
5798
+ * checks belong to evaluateLidarProfile; classifications are never inferred here. */
5799
+ declare function readLidarProducts(p: LidarDeclaration, layouts: readonly ProductSourceLayout[], assets: ReadonlyMap<string, Uint8Array>): LidarDecodedProducts;
5800
+
5801
+ interface LidarProfileResult {
5802
+ success: boolean;
5803
+ profile: typeof LIDAR_PROFILE;
5804
+ issues: {
5805
+ code: string;
5806
+ pointer: string;
5807
+ message: string;
5808
+ }[];
5809
+ checks: {
5810
+ structure: "passed" | "failed";
5811
+ sources: "passed" | "failed" | "not_checked";
5812
+ semantics: "passed" | "failed" | "not_checked";
5813
+ };
5814
+ scientific: "not_checked";
5815
+ physicalCalibration: "not_checked";
5816
+ classificationAccuracy: "not_checked";
5817
+ georeferencing: "not_checked";
5818
+ data?: {
5819
+ declaration: LidarProfile;
5820
+ layouts: ProductSourceLayout[];
5821
+ products: LidarDecodedProducts;
5822
+ };
5823
+ }
5824
+ /** Verifies exact acquisition and product bindings, retained table bytes, return groups and
5825
+ * declared local ray geometry. This does not certify physical accuracy or classifications. */
5826
+ declare function evaluateLidarProfile(observationInput: unknown, contextInput: unknown, selectionInput: unknown, profileInput: unknown, options?: {
5827
+ assets?: ReadonlyMap<string, Uint8Array>;
5828
+ }): Promise<LidarProfileResult>;
5829
+
5830
+ /** Optional north-up WGS84 UTM surface-reflectance source cube and quality grid. */
5831
+ declare const SatelliteRasterProfileSchema: z.ZodObject<{
5832
+ kind: z.ZodLiteral<"satellite_raster_profile">;
5833
+ schemaVersion: z.ZodLiteral<"0.1.0">;
5834
+ id: z.ZodString;
5835
+ observationId: z.ZodString;
5836
+ contextId: z.ZodString;
5837
+ sourceSelectionId: z.ZodString;
5838
+ acquisitionRef: z.ZodString;
5839
+ channelId: z.ZodString;
5840
+ acquisitionProducts: z.ZodObject<{
5841
+ reflectance: z.ZodString;
5842
+ quality: z.ZodString;
5843
+ }, z.core.$strict>;
5844
+ dataOrigin: z.ZodEnum<{
5845
+ instrument: "instrument";
5846
+ synthetic: "synthetic";
5847
+ }>;
5848
+ mode: z.ZodLiteral<"north_up_multispectral_reflectance">;
5849
+ grid: z.ZodObject<{
5850
+ rows: z.ZodNumber;
5851
+ columns: z.ZodNumber;
5852
+ crs: z.ZodObject<{
5853
+ kind: z.ZodLiteral<"wgs84_utm">;
5854
+ epsg: z.ZodString;
5855
+ zone: z.ZodNumber;
5856
+ hemisphere: z.ZodEnum<{
5857
+ north: "north";
5858
+ south: "south";
5859
+ }>;
5860
+ unit: z.ZodLiteral<"m">;
5861
+ }, z.core.$strict>;
5862
+ transform: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodLiteral<0>, z.ZodNumber, z.ZodLiteral<0>, z.ZodNumber], null>;
5863
+ pixelInterpretation: z.ZodLiteral<"area">;
5864
+ registration: z.ZodEnum<{
5865
+ authored_grid_not_surveyed: "authored_grid_not_surveyed";
5866
+ source_declared_not_verified: "source_declared_not_verified";
5867
+ }>;
5868
+ }, z.core.$strict>;
5869
+ bands: z.ZodArray<z.ZodObject<{
5870
+ id: z.ZodString;
5871
+ label: z.ZodString;
5872
+ centerWavelengthNm: z.ZodNumber;
5873
+ wavelengthMeaning: z.ZodLiteral<"nominal_center_not_response_function">;
5874
+ scale: z.ZodNumber;
5875
+ offset: z.ZodNumber;
5876
+ nodata: z.ZodNumber;
5877
+ validRange: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
5878
+ }, z.core.$strict>>;
5879
+ radiometry: z.ZodObject<{
5880
+ quantity: z.ZodLiteral<"surface_reflectance">;
5881
+ unit: z.ZodLiteral<"1">;
5882
+ formula: z.ZodLiteral<"dn_times_scale_plus_offset">;
5883
+ calibration: z.ZodLiteral<"not_verified">;
5884
+ }, z.core.$strict>;
5885
+ quality: z.ZodObject<{
5886
+ authority: z.ZodEnum<{
5887
+ authored_annotations: "authored_annotations";
5888
+ source_annotations: "source_annotations";
5889
+ }>;
5890
+ method: z.ZodString;
5891
+ codes: z.ZodObject<{
5892
+ clear: z.ZodLiteral<0>;
5893
+ cloud: z.ZodLiteral<1>;
5894
+ shadow: z.ZodLiteral<2>;
5895
+ nodata: z.ZodLiteral<3>;
5896
+ }, z.core.$strict>;
5897
+ scope: z.ZodLiteral<"whole_pixel">;
5898
+ interpretation: z.ZodLiteral<"source_annotation_not_accuracy_certification">;
5899
+ }, z.core.$strict>;
5900
+ vegetationIndex: z.ZodObject<{
5901
+ redBandId: z.ZodString;
5902
+ nearInfraredBandId: z.ZodString;
5903
+ method: z.ZodLiteral<"scaled_nir_minus_red_over_sum">;
5904
+ qualityPolicy: z.ZodLiteral<"clear_nonnegative_nonzero_sum_only">;
5905
+ interpretation: z.ZodLiteral<"spectral_index_not_land_cover_classification">;
5906
+ }, z.core.$strict>;
5907
+ products: z.ZodObject<{
5908
+ reflectance: z.ZodString;
5909
+ quality: z.ZodString;
5910
+ }, z.core.$strict>;
5911
+ }, z.core.$strict>;
5912
+ declare const SATELLITE_RASTER_PROFILE_SCHEMA_ID = "urn:disclosureos:experimental:satellite-raster-profile:0.1.0";
5913
+ declare const SATELLITE_RASTER_PROFILE: Readonly<{
5914
+ readonly id: "urn:disclosureos:experimental:profile:satellite-raster";
5915
+ readonly version: "0.1.0";
5916
+ readonly scope: "north_up_utm_multispectral_reflectance_and_pixel_quality";
5917
+ }>;
5918
+ type SatelliteRasterProfile = z.infer<typeof SatelliteRasterProfileSchema>;
5919
+ declare function satelliteRasterProfileJsonSchema(): Record<string, unknown>;
5920
+
5921
+ interface SatelliteRasterBand {
5922
+ id: string;
5923
+ label: string;
5924
+ centerWavelengthNm: number;
5925
+ wavelengthMeaning: "nominal_center_not_response_function";
5926
+ scale: number;
5927
+ offset: number;
5928
+ nodata: number;
5929
+ validRange: [number, number];
5930
+ }
5931
+ interface SatelliteRasterDeclaration {
5932
+ mode: "north_up_multispectral_reflectance";
5933
+ grid: {
5934
+ rows: number;
5935
+ columns: number;
5936
+ crs: {
5937
+ kind: "wgs84_utm";
5938
+ epsg: string;
5939
+ zone: number;
5940
+ hemisphere: "north" | "south";
5941
+ unit: "m";
5942
+ };
5943
+ transform: [number, number, 0, number, 0, number];
5944
+ pixelInterpretation: "area";
5945
+ registration: "authored_grid_not_surveyed" | "source_declared_not_verified";
5946
+ };
5947
+ bands: SatelliteRasterBand[];
5948
+ radiometry: {
5949
+ quantity: "surface_reflectance";
5950
+ unit: "1";
5951
+ formula: "dn_times_scale_plus_offset";
5952
+ calibration: "not_verified";
5953
+ };
5954
+ quality: {
5955
+ authority: "authored_annotations" | "source_annotations";
5956
+ method: string;
5957
+ codes: {
5958
+ clear: 0;
5959
+ cloud: 1;
5960
+ shadow: 2;
5961
+ nodata: 3;
5962
+ };
5963
+ scope: "whole_pixel";
5964
+ interpretation: "source_annotation_not_accuracy_certification";
5965
+ };
5966
+ vegetationIndex: {
5967
+ redBandId: string;
5968
+ nearInfraredBandId: string;
5969
+ method: "scaled_nir_minus_red_over_sum";
5970
+ qualityPolicy: "clear_nonnegative_nonzero_sum_only";
5971
+ interpretation: "spectral_index_not_land_cover_classification";
5972
+ };
5973
+ products: {
5974
+ reflectance: string;
5975
+ quality: string;
5976
+ };
5977
+ }
5978
+ type SatelliteRasterQuality = "clear" | "cloud" | "shadow" | "nodata";
5979
+ interface SatelliteRasterCell {
5980
+ index: number;
5981
+ row: number;
5982
+ column: number;
5983
+ easting: number;
5984
+ northing: number;
5985
+ qualityCode: number;
5986
+ quality: SatelliteRasterQuality;
5987
+ dn: number[];
5988
+ reflectance: (number | null)[];
5989
+ byteOffsets: number[];
5990
+ qualityByteOffset: number;
5991
+ ndvi: number | null;
5992
+ ndviReason: "valid" | "quality_excluded" | "nodata" | "zero_denominator" | "negative_reflectance";
5993
+ }
5994
+ interface SatelliteRasterDecodedProducts {
5995
+ cells: SatelliteRasterCell[];
5996
+ }
5997
+ declare function validateSatelliteRasterDeclaration(p: SatelliteRasterDeclaration): void;
5998
+ /** Projected cell footprint; these are grid coordinates, not a surveyed accuracy claim. */
5999
+ declare function satelliteCellBounds(p: SatelliteRasterDeclaration, row: number, column: number): {
6000
+ west: number;
6001
+ east: number;
6002
+ south: number;
6003
+ north: number;
6004
+ };
6005
+ /** Parses all retained pixels. Source integrity and document bindings belong to the evaluator. */
6006
+ declare function readSatelliteRasterProducts(p: SatelliteRasterDeclaration, layouts: readonly ProductSourceLayout[], assets: ReadonlyMap<string, Uint8Array>): SatelliteRasterDecodedProducts;
6007
+
6008
+ interface SatelliteRasterProfileResult {
6009
+ success: boolean;
6010
+ profile: typeof SATELLITE_RASTER_PROFILE;
6011
+ issues: {
6012
+ code: string;
6013
+ pointer: string;
6014
+ message: string;
6015
+ }[];
6016
+ checks: {
6017
+ structure: "passed" | "failed";
6018
+ sources: "passed" | "failed" | "not_checked";
6019
+ semantics: "passed" | "failed" | "not_checked";
6020
+ };
6021
+ scientific: "not_checked";
6022
+ physicalCalibration: "not_checked";
6023
+ qualityAccuracy: "not_checked";
6024
+ georeferencing: "not_checked";
6025
+ data?: {
6026
+ declaration: SatelliteRasterProfile;
6027
+ layouts: ProductSourceLayout[];
6028
+ products: SatelliteRasterDecodedProducts;
6029
+ };
6030
+ }
6031
+ /** Verifies exact acquisition and product bindings, retained array bytes, decoded band values and
6032
+ * declared projected pixel geometry. This does not certify physical accuracy or classifications. */
6033
+ declare function evaluateSatelliteRasterProfile(observationInput: unknown, contextInput: unknown, selectionInput: unknown, profileInput: unknown, options?: {
6034
+ assets?: ReadonlyMap<string, Uint8Array>;
6035
+ }): Promise<SatelliteRasterProfileResult>;
6036
+
6037
+ declare const VOCABULARY_BINDINGS_PROFILE = "urn:disclosureos:profile:vocabulary-reference-resolution:0.1.0";
6038
+ type Status = "passed" | "failed" | "not_checked";
6039
+ interface VocabularyBindingOptions {
6040
+ /** Exact UTF-8 document bytes keyed by their declared SHA-256. Never fetched. */
6041
+ documents: ReadonlyMap<string, Uint8Array>;
6042
+ /** Other selected companion documents participating in cardinality and continuity checks. */
6043
+ additionalBindings?: readonly unknown[];
6044
+ }
6045
+ interface VocabularyResolutionIssue extends VocabularyIssue {
6046
+ status: "failed" | "not_checked";
6047
+ }
6048
+ interface VocabularyBindingResolution {
6049
+ bindingsId: string;
6050
+ bindingId: string;
6051
+ relation: VocabularyBinding["relation"];
6052
+ claim: VocabularyBinding["claim"];
6053
+ term: VocabularyTermReference;
6054
+ status: Status;
6055
+ resolvedTerm?: VocabularyCatalogTerm;
6056
+ }
6057
+ interface VocabularyBindingResult {
6058
+ success: boolean;
6059
+ profile: typeof VOCABULARY_BINDINGS_PROFILE;
6060
+ checks: {
6061
+ structural: "passed" | "failed";
6062
+ semantic: Status;
6063
+ profile: Status;
6064
+ external: "not_checked";
6065
+ };
6066
+ issues: VocabularyResolutionIssue[];
6067
+ unresolvedReferences: DocumentSnapshotRef[];
6068
+ snapshots: Array<DocumentSnapshotRef & {
6069
+ status: Status;
6070
+ }>;
6071
+ bindings: VocabularyBindingResolution[];
6072
+ /** Extensions are retained, but this core evaluator does not approve domain semantics. */
6073
+ domainProfiles: "not_checked";
6074
+ scientificValidity: "not_checked";
6075
+ authenticity: "not_checked";
6076
+ }
6077
+ /** Resolve declared terminology without changing subjects, inputs or assessment outcomes. */
6078
+ declare function evaluateVocabularyBindings(input: unknown, options: VocabularyBindingOptions): Promise<VocabularyBindingResult>;
6079
+
6080
+ export { ACQUISITION_BINDINGS_PROFILE, ACQUISITION_BINDINGS_SCHEMA_ID, ARCHIVAL_CASE_PRESENTATION_SCHEMA_ID, ASSESSMENT_DOCUMENTATION_PROFILE, type AcquisitionBindingOptions, type AcquisitionBindingResult, type AcquisitionBindings, AcquisitionBindingsSchema, type AdvancedRadarProfileIssue, type AdvancedRadarProfileResult, ArchivalCasePresentationSchema, type ArchivalReviewOptions, type ArchivalReviewResult, type AssessmentDocumentation, type AssessmentDocumentationCompletion, type AssetCheck, type BindingAssetCheck, type BindingIssue, type BindingIssueCode, CASE_PRESENTATION_SCHEMA_ID, CONTEXT_CASE_PRESENTATION_SCHEMA_ID, CONTEXT_MEASUREMENT_ROLES, type CaseHistoryReviewResult, type CaseLinksReviewResult, type CasePresentation, CasePresentationSchema, type CasePublicationApproval, type CaseReviewOptions, type CaseReviewResult, type CompletionStatus, type ContextCasePresentation, ContextCasePresentationSchema, type ContextReviewOptions, type ContextReviewResult, DATASET_RELEASE_PROFILE, DATASET_RELEASE_SCHEMA_ID, DOCUMENTATION_COMPLETION_POLICY, DOCUMENTATION_REQUIREMENTS, type DatasetIssue, type DatasetPacketInput, type DatasetRelease, type DatasetReleaseResult, DatasetReleaseSchema, type DocumentationAction, type DocumentationCompletionResult, type DocumentationIssue, type DocumentationIssueCode, type DocumentationOptions, type DocumentationRequirement, type DocumentationRequirementId, type DocumentationResult, HISTORICAL_TESTIMONY_PROFILE, HISTORICAL_TESTIMONY_REQUIREMENTS, HISTORICAL_TESTIMONY_SELECTION_SCHEMA_ID, type HistoricalTestimonyCompletionStatus, type HistoricalTestimonyIssue, type HistoricalTestimonyReport, type HistoricalTestimonyRequirement, type HistoricalTestimonyRequirementId, type HistoricalTestimonyResult, type HistoricalTestimonySelection, HistoricalTestimonySelectionSchema, INSTRUMENT_RESEARCH_COMPLETION_POLICY, INSTRUMENT_RESEARCH_PREREQUISITES_PROFILE, INSTRUMENT_RESEARCH_REQUIREMENTS, INSTRUMENT_RESEARCH_REVIEW_SCHEMA_ID, type InstrumentResearchCompletionResult, type InstrumentResearchOptions, type InstrumentResearchResult, type InstrumentResearchReview, InstrumentResearchReviewSchema, LIDAR_POINT_COLUMNS, LIDAR_PROFILE, LIDAR_PROFILE_SCHEMA_ID, LIDAR_PULSE_COLUMNS, type LaboratoryReviewOptions, type LaboratoryReviewResult, type LidarDeclaration, type LidarDecodedProducts, type LidarPoint, type LidarProfile, type LidarProfileResult, LidarProfileSchema, type LidarPulse, type LidarSourceRow, MATERIAL_CASE_PRESENTATION_SCHEMA_ID, MEASUREMENT_BINDINGS_PROFILE, MEASUREMENT_BINDINGS_SCHEMA_ID, MIGRATION_COMPATIBILITY_SCHEMA_ID, MIGRATION_LEGACY_SCORES_SCHEMA_ID, MIGRATION_RESOLUTION_SCHEMA_ID, MIGRATION_REVIEW_SCHEMA_ID, MaterialCasePresentationSchema, type MeasurementBindingIssue, type MeasurementBindingResult, type MeasurementBindings, MeasurementBindingsSchema, type MigrationCompatibility, MigrationCompatibilitySchema, type MigrationLegacyScores, MigrationLegacyScoresSchema, type MigrationResolution, MigrationResolutionSchema, type MigrationReview, MigrationReviewSchema, PASSIVE_SONAR_PROFILE, PASSIVE_SONAR_PROFILE_SCHEMA_ID, PHYSICAL_SAMPLE_PROFILE, PHYSICAL_SAMPLE_REQUIREMENTS, PHYSICAL_SAMPLE_SELECTION_SCHEMA_ID, PRODUCT_SOURCE_SELECTION_PROFILE, PRODUCT_SOURCE_SELECTION_SCHEMA_ID, PROFILE_EVALUATION_POLICY, PROFILE_EVALUATION_SCHEMA_ID, PROFILE_PREPARATION_SCHEMA_ID, type PassiveSonarDeclaration, type PassiveSonarDecodedProducts, type PassiveSonarProfile, type PassiveSonarProfileResult, PassiveSonarProfileSchema, type PhysicalSampleIssue, type PhysicalSampleRecordCheck, type PhysicalSampleReport, type PhysicalSampleRequirement, type PhysicalSampleRequirementId, type PhysicalSampleResult, type PhysicalSampleSelection, PhysicalSampleSelectionSchema, type ProductBindingCheck, type ProductSourceLayout, ProductSourceLayoutSchema, type ProductSourceRead, type ProductSourceSelection, type ProductSourceSelectionIssue, type ProductSourceSelectionResult, ProductSourceSelectionSchema, type ProductSourceSelector, ProductSourceSelectorSchema, type ProfileEvaluation, type ProfileEvaluationOptions, type ProfileEvaluationReceipt, type ProfileEvaluationResult, ProfileEvaluationSchema, type ProfilePreparation, ProfilePreparationSchema, type PublicArchivalCasePayload, type PublicArchivalSelection, type PublicCasePayload, type PublicCaseResult, type PublicContextCasePayload, type PublicContextSelection, type PublicMaterialCasePayload, type PublicMaterialSelection, type PublicTestimonyCasePayload, type PublicTestimonySelection, RADAR_PROFILE, RADAR_PROFILE_SCHEMA_ID, RADAR_TABLE_COLUMNS, RELEASED_DOCUMENT_PROFILE, RELEASED_DOCUMENT_REQUIREMENTS, RELEASED_DOCUMENT_SELECTION_SCHEMA_ID, REPRODUCTION_PACKET_PROFILE, REPRODUCTION_PACKET_SCHEMA_ID, RESEARCH_EVALUATION_POLICY, RESEARCH_EVALUATION_SCHEMA_ID, type RadarAssociation, type RadarDecodedProducts, type RadarDetection, type RadarDwell, type RadarGeometry, type RadarPlatformPose, type RadarProductRoles, type RadarProfile, type RadarProfileIssue, type RadarProfileResult, RadarProfileSchema, type RadarSiteFeatureVertex, type RadarTrack, type RadarTruth, type Rational, type RelativeSourceTime, type ReleasedDocumentCompletionStatus, type ReleasedDocumentIssue, type ReleasedDocumentReport, type ReleasedDocumentRequirement, type ReleasedDocumentRequirementId, type ReleasedDocumentResult, type ReleasedDocumentSelection, ReleasedDocumentSelectionSchema, type ReproductionFileCheck, type ReproductionPacket, type ReproductionPacketResult, ReproductionPacketSchema, type ResearchCompletionAction, type ResearchCompletionRequirement, type ResearchCompletionStatus, type ResearchEvaluation, type ResearchEvaluationOptions, type ResearchEvaluationOutput, type ResearchEvaluationReceipt, type ResearchEvaluationResult, ResearchEvaluationSchema, type ResearchRequirementId, type ResearchReviewAssetCheck, type ResearchReviewOptions, type ResearchReviewResult, SATELLITE_RASTER_PROFILE, SATELLITE_RASTER_PROFILE_SCHEMA_ID, SECONDARY_RADAR_PROFILE, SECONDARY_RADAR_PROFILE_SCHEMA_ID, SECONDARY_RADAR_TABLE_COLUMNS, SONAR_PROFILE, SONAR_PROFILE_SCHEMA_ID, SOURCE_INTAKE_PROFILE, SOURCE_INTAKE_SCHEMA_ID, STEERED_RADAR_PROFILE, STEERED_RADAR_PROFILE_SCHEMA_ID, STEERED_RADAR_TABLE_COLUMNS, type SatelliteRasterBand, type SatelliteRasterCell, type SatelliteRasterDeclaration, type SatelliteRasterDecodedProducts, type SatelliteRasterProfile, type SatelliteRasterProfileResult, SatelliteRasterProfileSchema, type SatelliteRasterQuality, type SecondaryRadarDecodedProducts, type SecondaryRadarInterrogation, type SecondaryRadarProductRoles, type SecondaryRadarProfile, type SecondaryRadarProfileResult, SecondaryRadarProfileSchema, type SecondaryRadarReply, type SecondaryRadarReport, type SecondaryRadarTruth, type SonarDeclaration, type SonarDecodedProducts, type SonarProfile, type SonarProfileIssue, type SonarProfileResult, SonarProfileSchema, type SourceAxis, type SourceIntake, type SourceIntakeResult, SourceIntakeSchema, type SteeredRadarAssociation, type SteeredRadarDecodedProducts, type SteeredRadarDetection, type SteeredRadarDwell, type SteeredRadarProductRoles, type SteeredRadarProfile, type SteeredRadarProfileResult, SteeredRadarProfileSchema, type SteeredRadarTrack, type SteeredRadarTruth, TESTIMONY_CASE_PRESENTATION_SCHEMA_ID, TestimonyCasePresentationSchema, VOCABULARY_BINDINGS_PROFILE, type VocabularyBindingOptions, type VocabularyBindingResolution, type VocabularyBindingResult, type VocabularyResolutionIssue, acquisitionBindingsJsonSchema, archivalCasePresentationJsonSchema, buildPublicArchivalCase, buildPublicArchivalCaseOutputs, buildPublicCase, buildPublicCaseOutputs, buildPublicContextCase, buildPublicContextCaseOutputs, buildPublicMaterialCase, buildPublicMaterialCaseOutputs, buildPublicTestimonyCase, buildPublicTestimonyCaseOutputs, casePresentationJsonSchema, computePassiveSonarSpectrum, contextCasePresentationJsonSchema, datasetReleaseJsonSchema, evaluateAcquisitionBindings, evaluateArchivalClaimHistory, evaluateAssessmentDocumentation, evaluateCaseClaimHistory, evaluateCaseLinks, evaluateCaseRecord, evaluateContextClaimHistory, evaluateDatasetRelease, evaluateDocumentationCompletion, evaluateHistoricalTestimony, evaluateInstrumentResearchCompletion, evaluateInstrumentResearchPrerequisites, evaluateLaboratoryClaimHistory, evaluateLidarProfile, evaluateMeasurementBindings, evaluatePassiveSonarProfile, evaluatePhysicalSamples, evaluateProductSourceSelection, evaluateProfileEvaluation, evaluateRadarProfile, evaluateReleasedDocuments, evaluateReproductionPacket, evaluateResearchClaimHistory, evaluateResearchEvaluation, evaluateSatelliteRasterProfile, evaluateSecondaryRadarProfile, evaluateSonarProfile, evaluateSourceIntake, evaluateSteeredRadarProfile, evaluateVocabularyBindings, formatPublicCaseOutputs, historicalTestimonySelectionJsonSchema, instrumentResearchReviewJsonSchema, lidarProfileJsonSchema, materialCasePresentationJsonSchema, measurementBindingsJsonSchema, migrationCompatibilityJsonSchema, migrationLegacyScoresJsonSchema, migrationResolutionJsonSchema, migrationReviewJsonSchema, parseArchivalCasePresentation, parseCasePresentation, parseContextCasePresentation, parseMaterialCasePresentation, parseTestimonyCasePresentation, passiveSonarBin, passiveSonarDensityDb, passiveSonarDimensions, passiveSonarProfileJsonSchema, passiveSonarSample, physicalSampleSelectionJsonSchema, productSourceSelectionJsonSchema, profileEvaluationJsonSchema, profilePreparationJsonSchema, radarCellPosition, radarCovarianceScaleSquared, radarProfileJsonSchema, readLidarProducts, readPassiveSonarBin, readPassiveSonarProducts, readPassiveSonarSample, readProductSourceSelection, readRadarProducts, readSatelliteRasterProducts, readSecondaryRadarProducts, readSonarProducts, readSonarSample, readSourceCsv, readSteeredRadarProducts, releasedDocumentSelectionJsonSchema, reproductionPacketJsonSchema, researchEvaluationJsonSchema, satelliteCellBounds, satelliteRasterProfileJsonSchema, secondaryRadarProfileJsonSchema, sonarDistance, sonarProfileJsonSchema, sonarSample, sourceElementBytes, sourceIntakeJsonSchema, steeredRadarProfileJsonSchema, testimonyCasePresentationJsonSchema, validateLidarDeclaration, validatePassiveSonarDeclaration, validateSatelliteRasterDeclaration, validateSonarDeclaration };