@empressaio/atom-contract 1.9.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,697 @@
1
+ import { z } from "zod";
2
+ import type { AccessPolicy } from "../registration.js";
3
+ import type { AtomTier } from "../conformance/common.js";
4
+ import type { ReasoningChain } from "../reasoning-chain.js";
5
+ import type { ReasoningReadContract } from "../read-contract/reasoning-axes.js";
6
+ /** v1 road hierarchy (27c WDLL 3 / R1). */
7
+ export type RoadClassification = "highway" | "major_collector" | "minor_collector" | "residential" | "alley" | "gravel" | "unclassified";
8
+ export declare const ROAD_CLASSIFICATION_VALUES: ReadonlyArray<RoadClassification>;
9
+ export declare const ROAD_CLASSIFICATION_SCHEMA: z.ZodEnum<["highway", "major_collector", "minor_collector", "residential", "alley", "gravel", "unclassified"]>;
10
+ /** WGS84 [lng, lat] vertex. */
11
+ export type GeoCoord = readonly [number, number];
12
+ export declare const GEO_COORD_SCHEMA: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
13
+ export declare const ROAD_CENTERLINE_SCHEMA: z.ZodObject<{
14
+ type: z.ZodLiteral<"LineString">;
15
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
16
+ }, "strip", z.ZodTypeAny, {
17
+ type: "LineString";
18
+ coordinates: [number, number][];
19
+ }, {
20
+ type: "LineString";
21
+ coordinates: [number, number][];
22
+ }>;
23
+ export type RoadCenterline = z.infer<typeof ROAD_CENTERLINE_SCHEMA>;
24
+ export declare const ROW_PROVENANCE_KIND: "approximate-assumed-per-class";
25
+ export declare const ROW_PROVENANCE_SCHEMA: z.ZodObject<{
26
+ kind: z.ZodLiteral<"approximate-assumed-per-class">;
27
+ /** Descriptor table key used for assumed width (jurisdiction knowledge). */
28
+ assumedWidthTableKey: z.ZodString;
29
+ osmHighwayTag: z.ZodString;
30
+ note: z.ZodOptional<z.ZodString>;
31
+ }, "strip", z.ZodTypeAny, {
32
+ kind: "approximate-assumed-per-class";
33
+ assumedWidthTableKey: string;
34
+ osmHighwayTag: string;
35
+ note?: string | undefined;
36
+ }, {
37
+ kind: "approximate-assumed-per-class";
38
+ assumedWidthTableKey: string;
39
+ osmHighwayTag: string;
40
+ note?: string | undefined;
41
+ }>;
42
+ export type RowProvenance = z.infer<typeof ROW_PROVENANCE_SCHEMA>;
43
+ export declare const ROAD_ROW_SCHEMA: z.ZodObject<{
44
+ assumedWidthFt: z.ZodNumber;
45
+ provenance: z.ZodObject<{
46
+ kind: z.ZodLiteral<"approximate-assumed-per-class">;
47
+ /** Descriptor table key used for assumed width (jurisdiction knowledge). */
48
+ assumedWidthTableKey: z.ZodString;
49
+ osmHighwayTag: z.ZodString;
50
+ note: z.ZodOptional<z.ZodString>;
51
+ }, "strip", z.ZodTypeAny, {
52
+ kind: "approximate-assumed-per-class";
53
+ assumedWidthTableKey: string;
54
+ osmHighwayTag: string;
55
+ note?: string | undefined;
56
+ }, {
57
+ kind: "approximate-assumed-per-class";
58
+ assumedWidthTableKey: string;
59
+ osmHighwayTag: string;
60
+ note?: string | undefined;
61
+ }>;
62
+ /** Offset polylines from centerline + assumed half-width (v1 approximate). */
63
+ leftEdge: z.ZodObject<{
64
+ type: z.ZodLiteral<"LineString">;
65
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
66
+ }, "strip", z.ZodTypeAny, {
67
+ type: "LineString";
68
+ coordinates: [number, number][];
69
+ }, {
70
+ type: "LineString";
71
+ coordinates: [number, number][];
72
+ }>;
73
+ rightEdge: z.ZodObject<{
74
+ type: z.ZodLiteral<"LineString">;
75
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
76
+ }, "strip", z.ZodTypeAny, {
77
+ type: "LineString";
78
+ coordinates: [number, number][];
79
+ }, {
80
+ type: "LineString";
81
+ coordinates: [number, number][];
82
+ }>;
83
+ }, "strip", z.ZodTypeAny, {
84
+ provenance: {
85
+ kind: "approximate-assumed-per-class";
86
+ assumedWidthTableKey: string;
87
+ osmHighwayTag: string;
88
+ note?: string | undefined;
89
+ };
90
+ assumedWidthFt: number;
91
+ leftEdge: {
92
+ type: "LineString";
93
+ coordinates: [number, number][];
94
+ };
95
+ rightEdge: {
96
+ type: "LineString";
97
+ coordinates: [number, number][];
98
+ };
99
+ }, {
100
+ provenance: {
101
+ kind: "approximate-assumed-per-class";
102
+ assumedWidthTableKey: string;
103
+ osmHighwayTag: string;
104
+ note?: string | undefined;
105
+ };
106
+ assumedWidthFt: number;
107
+ leftEdge: {
108
+ type: "LineString";
109
+ coordinates: [number, number][];
110
+ };
111
+ rightEdge: {
112
+ type: "LineString";
113
+ coordinates: [number, number][];
114
+ };
115
+ }>;
116
+ export type RoadRow = z.infer<typeof ROAD_ROW_SCHEMA>;
117
+ /** Digital-twin-ready attach slot — no infra atoms in R1 scope. */
118
+ export declare const ROAD_ATTACH_POINT_SCHEMA: z.ZodObject<{
119
+ kind: z.ZodLiteral<"infra-slot">;
120
+ refKey: z.ZodString;
121
+ position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
122
+ note: z.ZodOptional<z.ZodString>;
123
+ }, "strip", z.ZodTypeAny, {
124
+ kind: "infra-slot";
125
+ refKey: string;
126
+ position: [number, number];
127
+ note?: string | undefined;
128
+ }, {
129
+ kind: "infra-slot";
130
+ refKey: string;
131
+ position: [number, number];
132
+ note?: string | undefined;
133
+ }>;
134
+ export type RoadAttachPoint = z.infer<typeof ROAD_ATTACH_POINT_SCHEMA>;
135
+ /**
136
+ * Road NODE atom — first-class spine node (27c WDLL 3).
137
+ *
138
+ * Stable id `{county_fips}:road:{osm_way_id}`. Centerline from OSM;
139
+ * ROW edges from assumed per-class width with honest approximate provenance.
140
+ */
141
+ export interface RoadNodeAtomInstance {
142
+ entityType: "road-node";
143
+ atomDid: string;
144
+ roadNodeId: string;
145
+ /** Human label when OSM carries a name tag (e.g. "Spring Street"). */
146
+ displayName?: string;
147
+ countyFips: string;
148
+ osmWayId: number;
149
+ classification: RoadClassification;
150
+ centerline: RoadCenterline;
151
+ row: RoadRow;
152
+ /** Reserved reference/attach points for future infra atoms (streetlight, water main, …). */
153
+ attachPoints: ReadonlyArray<RoadAttachPoint>;
154
+ reasoningChain: Extract<ReasoningChain, {
155
+ reasoningKind: "observed";
156
+ }>;
157
+ accessPolicy: AccessPolicy;
158
+ sourceCitation: string;
159
+ extractedAt: string;
160
+ asOf?: string;
161
+ atomTier: AtomTier;
162
+ readContract?: ReasoningReadContract;
163
+ }
164
+ export declare const ROAD_NODE_SCHEMA: z.ZodObject<{
165
+ atomTier: z.ZodLiteral<AtomTier>;
166
+ readContract: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
167
+ axes: z.ZodReadonly<z.ZodObject<{
168
+ calibratedConfidence: z.ZodReadonly<z.ZodObject<{
169
+ readonly estimate: z.ZodNumber;
170
+ readonly n: z.ZodNumber;
171
+ readonly intervalWidth: z.ZodNumber;
172
+ readonly provenance: z.ZodEnum<["asserted", "backtest", "seed", "live"]>;
173
+ }, "strip", z.ZodTypeAny, {
174
+ estimate: number;
175
+ n: number;
176
+ intervalWidth: number;
177
+ provenance: "asserted" | "backtest" | "seed" | "live";
178
+ }, {
179
+ estimate: number;
180
+ n: number;
181
+ intervalWidth: number;
182
+ provenance: "asserted" | "backtest" | "seed" | "live";
183
+ }>>;
184
+ assertedConfidence: z.ZodReadonly<z.ZodObject<{
185
+ readonly estimate: z.ZodNumber;
186
+ readonly n: z.ZodNumber;
187
+ readonly intervalWidth: z.ZodNumber;
188
+ readonly provenance: z.ZodEnum<["asserted", "backtest", "seed", "live"]>;
189
+ }, "strip", z.ZodTypeAny, {
190
+ estimate: number;
191
+ n: number;
192
+ intervalWidth: number;
193
+ provenance: "asserted" | "backtest" | "seed" | "live";
194
+ }, {
195
+ estimate: number;
196
+ n: number;
197
+ intervalWidth: number;
198
+ provenance: "asserted" | "backtest" | "seed" | "live";
199
+ }>>;
200
+ consequence: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
201
+ kind: z.ZodLiteral<"property-risk">;
202
+ stratum: z.ZodEnum<[import("../read-contract/reasoning-axes.js").PropertyRiskStratum, ...import("../read-contract/reasoning-axes.js").PropertyRiskStratum[]]>;
203
+ basis: z.ZodString;
204
+ assertedAt: z.ZodString;
205
+ auditRef: z.ZodOptional<z.ZodString>;
206
+ }, "strip", z.ZodTypeAny, {
207
+ stratum: import("../read-contract/reasoning-axes.js").PropertyRiskStratum;
208
+ assertedAt: string;
209
+ kind: "property-risk";
210
+ basis: string;
211
+ auditRef?: string | undefined;
212
+ }, {
213
+ stratum: import("../read-contract/reasoning-axes.js").PropertyRiskStratum;
214
+ assertedAt: string;
215
+ kind: "property-risk";
216
+ basis: string;
217
+ auditRef?: string | undefined;
218
+ }>, z.ZodObject<{
219
+ kind: z.ZodLiteral<"not-applicable">;
220
+ reason: z.ZodString;
221
+ assertedAt: z.ZodString;
222
+ }, "strip", z.ZodTypeAny, {
223
+ assertedAt: string;
224
+ kind: "not-applicable";
225
+ reason: string;
226
+ }, {
227
+ assertedAt: string;
228
+ kind: "not-applicable";
229
+ reason: string;
230
+ }>]>;
231
+ }, "strip", z.ZodTypeAny, {
232
+ calibratedConfidence: Readonly<{
233
+ estimate: number;
234
+ n: number;
235
+ intervalWidth: number;
236
+ provenance: "asserted" | "backtest" | "seed" | "live";
237
+ }>;
238
+ assertedConfidence: Readonly<{
239
+ estimate: number;
240
+ n: number;
241
+ intervalWidth: number;
242
+ provenance: "asserted" | "backtest" | "seed" | "live";
243
+ }>;
244
+ consequence: {
245
+ stratum: import("../read-contract/reasoning-axes.js").PropertyRiskStratum;
246
+ assertedAt: string;
247
+ kind: "property-risk";
248
+ basis: string;
249
+ auditRef?: string | undefined;
250
+ } | {
251
+ assertedAt: string;
252
+ kind: "not-applicable";
253
+ reason: string;
254
+ };
255
+ }, {
256
+ calibratedConfidence: Readonly<{
257
+ estimate: number;
258
+ n: number;
259
+ intervalWidth: number;
260
+ provenance: "asserted" | "backtest" | "seed" | "live";
261
+ }>;
262
+ assertedConfidence: Readonly<{
263
+ estimate: number;
264
+ n: number;
265
+ intervalWidth: number;
266
+ provenance: "asserted" | "backtest" | "seed" | "live";
267
+ }>;
268
+ consequence: {
269
+ stratum: import("../read-contract/reasoning-axes.js").PropertyRiskStratum;
270
+ assertedAt: string;
271
+ kind: "property-risk";
272
+ basis: string;
273
+ auditRef?: string | undefined;
274
+ } | {
275
+ assertedAt: string;
276
+ kind: "not-applicable";
277
+ reason: string;
278
+ };
279
+ }>>;
280
+ assembledAt: z.ZodString;
281
+ modelAttribution: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
282
+ modelId: z.ZodString;
283
+ modelVersion: z.ZodString;
284
+ promptTemplateVersion: z.ZodString;
285
+ contextTemplateVersion: z.ZodString;
286
+ samplingParams: z.ZodReadonly<z.ZodObject<{
287
+ temperature: z.ZodOptional<z.ZodNumber>;
288
+ topP: z.ZodOptional<z.ZodNumber>;
289
+ maxTokens: z.ZodOptional<z.ZodNumber>;
290
+ seed: z.ZodOptional<z.ZodNumber>;
291
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
292
+ temperature: z.ZodOptional<z.ZodNumber>;
293
+ topP: z.ZodOptional<z.ZodNumber>;
294
+ maxTokens: z.ZodOptional<z.ZodNumber>;
295
+ seed: z.ZodOptional<z.ZodNumber>;
296
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
297
+ temperature: z.ZodOptional<z.ZodNumber>;
298
+ topP: z.ZodOptional<z.ZodNumber>;
299
+ maxTokens: z.ZodOptional<z.ZodNumber>;
300
+ seed: z.ZodOptional<z.ZodNumber>;
301
+ }, z.ZodUnknown, "strip">>>;
302
+ retrievedAtomSetId: z.ZodString;
303
+ }, "strip", z.ZodTypeAny, {
304
+ modelId: string;
305
+ modelVersion: string;
306
+ promptTemplateVersion: string;
307
+ contextTemplateVersion: string;
308
+ samplingParams: Readonly<z.objectOutputType<{
309
+ temperature: z.ZodOptional<z.ZodNumber>;
310
+ topP: z.ZodOptional<z.ZodNumber>;
311
+ maxTokens: z.ZodOptional<z.ZodNumber>;
312
+ seed: z.ZodOptional<z.ZodNumber>;
313
+ }, z.ZodUnknown, "strip">>;
314
+ retrievedAtomSetId: string;
315
+ }, {
316
+ modelId: string;
317
+ modelVersion: string;
318
+ promptTemplateVersion: string;
319
+ contextTemplateVersion: string;
320
+ samplingParams: Readonly<z.objectInputType<{
321
+ temperature: z.ZodOptional<z.ZodNumber>;
322
+ topP: z.ZodOptional<z.ZodNumber>;
323
+ maxTokens: z.ZodOptional<z.ZodNumber>;
324
+ seed: z.ZodOptional<z.ZodNumber>;
325
+ }, z.ZodUnknown, "strip">>;
326
+ retrievedAtomSetId: string;
327
+ }>>>;
328
+ }, "strip", z.ZodTypeAny, {
329
+ axes: Readonly<{
330
+ calibratedConfidence: Readonly<{
331
+ estimate: number;
332
+ n: number;
333
+ intervalWidth: number;
334
+ provenance: "asserted" | "backtest" | "seed" | "live";
335
+ }>;
336
+ assertedConfidence: Readonly<{
337
+ estimate: number;
338
+ n: number;
339
+ intervalWidth: number;
340
+ provenance: "asserted" | "backtest" | "seed" | "live";
341
+ }>;
342
+ consequence: {
343
+ stratum: import("../read-contract/reasoning-axes.js").PropertyRiskStratum;
344
+ assertedAt: string;
345
+ kind: "property-risk";
346
+ basis: string;
347
+ auditRef?: string | undefined;
348
+ } | {
349
+ assertedAt: string;
350
+ kind: "not-applicable";
351
+ reason: string;
352
+ };
353
+ }>;
354
+ assembledAt: string;
355
+ modelAttribution?: Readonly<{
356
+ modelId: string;
357
+ modelVersion: string;
358
+ promptTemplateVersion: string;
359
+ contextTemplateVersion: string;
360
+ samplingParams: Readonly<z.objectOutputType<{
361
+ temperature: z.ZodOptional<z.ZodNumber>;
362
+ topP: z.ZodOptional<z.ZodNumber>;
363
+ maxTokens: z.ZodOptional<z.ZodNumber>;
364
+ seed: z.ZodOptional<z.ZodNumber>;
365
+ }, z.ZodUnknown, "strip">>;
366
+ retrievedAtomSetId: string;
367
+ }> | undefined;
368
+ }, {
369
+ axes: Readonly<{
370
+ calibratedConfidence: Readonly<{
371
+ estimate: number;
372
+ n: number;
373
+ intervalWidth: number;
374
+ provenance: "asserted" | "backtest" | "seed" | "live";
375
+ }>;
376
+ assertedConfidence: Readonly<{
377
+ estimate: number;
378
+ n: number;
379
+ intervalWidth: number;
380
+ provenance: "asserted" | "backtest" | "seed" | "live";
381
+ }>;
382
+ consequence: {
383
+ stratum: import("../read-contract/reasoning-axes.js").PropertyRiskStratum;
384
+ assertedAt: string;
385
+ kind: "property-risk";
386
+ basis: string;
387
+ auditRef?: string | undefined;
388
+ } | {
389
+ assertedAt: string;
390
+ kind: "not-applicable";
391
+ reason: string;
392
+ };
393
+ }>;
394
+ assembledAt: string;
395
+ modelAttribution?: Readonly<{
396
+ modelId: string;
397
+ modelVersion: string;
398
+ promptTemplateVersion: string;
399
+ contextTemplateVersion: string;
400
+ samplingParams: Readonly<z.objectInputType<{
401
+ temperature: z.ZodOptional<z.ZodNumber>;
402
+ topP: z.ZodOptional<z.ZodNumber>;
403
+ maxTokens: z.ZodOptional<z.ZodNumber>;
404
+ seed: z.ZodOptional<z.ZodNumber>;
405
+ }, z.ZodUnknown, "strip">>;
406
+ retrievedAtomSetId: string;
407
+ }> | undefined;
408
+ }>>>;
409
+ sourceCitation: z.ZodString;
410
+ extractedAt: z.ZodString;
411
+ asOf: z.ZodOptional<z.ZodString>;
412
+ entityType: z.ZodLiteral<"road-node">;
413
+ atomDid: z.ZodEffects<z.ZodString, string, string>;
414
+ roadNodeId: z.ZodEffects<z.ZodString, string, string>;
415
+ displayName: z.ZodOptional<z.ZodString>;
416
+ countyFips: z.ZodString;
417
+ osmWayId: z.ZodNumber;
418
+ classification: z.ZodEnum<["highway", "major_collector", "minor_collector", "residential", "alley", "gravel", "unclassified"]>;
419
+ centerline: z.ZodObject<{
420
+ type: z.ZodLiteral<"LineString">;
421
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
422
+ }, "strip", z.ZodTypeAny, {
423
+ type: "LineString";
424
+ coordinates: [number, number][];
425
+ }, {
426
+ type: "LineString";
427
+ coordinates: [number, number][];
428
+ }>;
429
+ row: z.ZodObject<{
430
+ assumedWidthFt: z.ZodNumber;
431
+ provenance: z.ZodObject<{
432
+ kind: z.ZodLiteral<"approximate-assumed-per-class">;
433
+ /** Descriptor table key used for assumed width (jurisdiction knowledge). */
434
+ assumedWidthTableKey: z.ZodString;
435
+ osmHighwayTag: z.ZodString;
436
+ note: z.ZodOptional<z.ZodString>;
437
+ }, "strip", z.ZodTypeAny, {
438
+ kind: "approximate-assumed-per-class";
439
+ assumedWidthTableKey: string;
440
+ osmHighwayTag: string;
441
+ note?: string | undefined;
442
+ }, {
443
+ kind: "approximate-assumed-per-class";
444
+ assumedWidthTableKey: string;
445
+ osmHighwayTag: string;
446
+ note?: string | undefined;
447
+ }>;
448
+ /** Offset polylines from centerline + assumed half-width (v1 approximate). */
449
+ leftEdge: z.ZodObject<{
450
+ type: z.ZodLiteral<"LineString">;
451
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
452
+ }, "strip", z.ZodTypeAny, {
453
+ type: "LineString";
454
+ coordinates: [number, number][];
455
+ }, {
456
+ type: "LineString";
457
+ coordinates: [number, number][];
458
+ }>;
459
+ rightEdge: z.ZodObject<{
460
+ type: z.ZodLiteral<"LineString">;
461
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">;
462
+ }, "strip", z.ZodTypeAny, {
463
+ type: "LineString";
464
+ coordinates: [number, number][];
465
+ }, {
466
+ type: "LineString";
467
+ coordinates: [number, number][];
468
+ }>;
469
+ }, "strip", z.ZodTypeAny, {
470
+ provenance: {
471
+ kind: "approximate-assumed-per-class";
472
+ assumedWidthTableKey: string;
473
+ osmHighwayTag: string;
474
+ note?: string | undefined;
475
+ };
476
+ assumedWidthFt: number;
477
+ leftEdge: {
478
+ type: "LineString";
479
+ coordinates: [number, number][];
480
+ };
481
+ rightEdge: {
482
+ type: "LineString";
483
+ coordinates: [number, number][];
484
+ };
485
+ }, {
486
+ provenance: {
487
+ kind: "approximate-assumed-per-class";
488
+ assumedWidthTableKey: string;
489
+ osmHighwayTag: string;
490
+ note?: string | undefined;
491
+ };
492
+ assumedWidthFt: number;
493
+ leftEdge: {
494
+ type: "LineString";
495
+ coordinates: [number, number][];
496
+ };
497
+ rightEdge: {
498
+ type: "LineString";
499
+ coordinates: [number, number][];
500
+ };
501
+ }>;
502
+ attachPoints: z.ZodArray<z.ZodObject<{
503
+ kind: z.ZodLiteral<"infra-slot">;
504
+ refKey: z.ZodString;
505
+ position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
506
+ note: z.ZodOptional<z.ZodString>;
507
+ }, "strip", z.ZodTypeAny, {
508
+ kind: "infra-slot";
509
+ refKey: string;
510
+ position: [number, number];
511
+ note?: string | undefined;
512
+ }, {
513
+ kind: "infra-slot";
514
+ refKey: string;
515
+ position: [number, number];
516
+ note?: string | undefined;
517
+ }>, "many">;
518
+ reasoningChain: z.ZodObject<{
519
+ reasoningKind: z.ZodLiteral<"observed">;
520
+ }, "strip", z.ZodTypeAny, {
521
+ reasoningKind: "observed";
522
+ }, {
523
+ reasoningKind: "observed";
524
+ }>;
525
+ accessPolicy: z.ZodEnum<["public-free", "public-paid", "platform-internal", "tenant-private", "tenant-shared"]>;
526
+ }, "strip", z.ZodTypeAny, {
527
+ accessPolicy: "public-free" | "public-paid" | "platform-internal" | "tenant-private" | "tenant-shared";
528
+ entityType: "road-node";
529
+ sourceCitation: string;
530
+ extractedAt: string;
531
+ atomDid: string;
532
+ reasoningChain: {
533
+ reasoningKind: "observed";
534
+ };
535
+ atomTier: AtomTier;
536
+ roadNodeId: string;
537
+ countyFips: string;
538
+ osmWayId: number;
539
+ classification: "highway" | "major_collector" | "minor_collector" | "residential" | "alley" | "gravel" | "unclassified";
540
+ centerline: {
541
+ type: "LineString";
542
+ coordinates: [number, number][];
543
+ };
544
+ row: {
545
+ provenance: {
546
+ kind: "approximate-assumed-per-class";
547
+ assumedWidthTableKey: string;
548
+ osmHighwayTag: string;
549
+ note?: string | undefined;
550
+ };
551
+ assumedWidthFt: number;
552
+ leftEdge: {
553
+ type: "LineString";
554
+ coordinates: [number, number][];
555
+ };
556
+ rightEdge: {
557
+ type: "LineString";
558
+ coordinates: [number, number][];
559
+ };
560
+ };
561
+ attachPoints: {
562
+ kind: "infra-slot";
563
+ refKey: string;
564
+ position: [number, number];
565
+ note?: string | undefined;
566
+ }[];
567
+ displayName?: string | undefined;
568
+ asOf?: string | undefined;
569
+ readContract?: Readonly<{
570
+ axes: Readonly<{
571
+ calibratedConfidence: Readonly<{
572
+ estimate: number;
573
+ n: number;
574
+ intervalWidth: number;
575
+ provenance: "asserted" | "backtest" | "seed" | "live";
576
+ }>;
577
+ assertedConfidence: Readonly<{
578
+ estimate: number;
579
+ n: number;
580
+ intervalWidth: number;
581
+ provenance: "asserted" | "backtest" | "seed" | "live";
582
+ }>;
583
+ consequence: {
584
+ stratum: import("../read-contract/reasoning-axes.js").PropertyRiskStratum;
585
+ assertedAt: string;
586
+ kind: "property-risk";
587
+ basis: string;
588
+ auditRef?: string | undefined;
589
+ } | {
590
+ assertedAt: string;
591
+ kind: "not-applicable";
592
+ reason: string;
593
+ };
594
+ }>;
595
+ assembledAt: string;
596
+ modelAttribution?: Readonly<{
597
+ modelId: string;
598
+ modelVersion: string;
599
+ promptTemplateVersion: string;
600
+ contextTemplateVersion: string;
601
+ samplingParams: Readonly<z.objectOutputType<{
602
+ temperature: z.ZodOptional<z.ZodNumber>;
603
+ topP: z.ZodOptional<z.ZodNumber>;
604
+ maxTokens: z.ZodOptional<z.ZodNumber>;
605
+ seed: z.ZodOptional<z.ZodNumber>;
606
+ }, z.ZodUnknown, "strip">>;
607
+ retrievedAtomSetId: string;
608
+ }> | undefined;
609
+ }> | undefined;
610
+ }, {
611
+ accessPolicy: "public-free" | "public-paid" | "platform-internal" | "tenant-private" | "tenant-shared";
612
+ entityType: "road-node";
613
+ sourceCitation: string;
614
+ extractedAt: string;
615
+ atomDid: string;
616
+ reasoningChain: {
617
+ reasoningKind: "observed";
618
+ };
619
+ atomTier: AtomTier;
620
+ roadNodeId: string;
621
+ countyFips: string;
622
+ osmWayId: number;
623
+ classification: "highway" | "major_collector" | "minor_collector" | "residential" | "alley" | "gravel" | "unclassified";
624
+ centerline: {
625
+ type: "LineString";
626
+ coordinates: [number, number][];
627
+ };
628
+ row: {
629
+ provenance: {
630
+ kind: "approximate-assumed-per-class";
631
+ assumedWidthTableKey: string;
632
+ osmHighwayTag: string;
633
+ note?: string | undefined;
634
+ };
635
+ assumedWidthFt: number;
636
+ leftEdge: {
637
+ type: "LineString";
638
+ coordinates: [number, number][];
639
+ };
640
+ rightEdge: {
641
+ type: "LineString";
642
+ coordinates: [number, number][];
643
+ };
644
+ };
645
+ attachPoints: {
646
+ kind: "infra-slot";
647
+ refKey: string;
648
+ position: [number, number];
649
+ note?: string | undefined;
650
+ }[];
651
+ displayName?: string | undefined;
652
+ asOf?: string | undefined;
653
+ readContract?: Readonly<{
654
+ axes: Readonly<{
655
+ calibratedConfidence: Readonly<{
656
+ estimate: number;
657
+ n: number;
658
+ intervalWidth: number;
659
+ provenance: "asserted" | "backtest" | "seed" | "live";
660
+ }>;
661
+ assertedConfidence: Readonly<{
662
+ estimate: number;
663
+ n: number;
664
+ intervalWidth: number;
665
+ provenance: "asserted" | "backtest" | "seed" | "live";
666
+ }>;
667
+ consequence: {
668
+ stratum: import("../read-contract/reasoning-axes.js").PropertyRiskStratum;
669
+ assertedAt: string;
670
+ kind: "property-risk";
671
+ basis: string;
672
+ auditRef?: string | undefined;
673
+ } | {
674
+ assertedAt: string;
675
+ kind: "not-applicable";
676
+ reason: string;
677
+ };
678
+ }>;
679
+ assembledAt: string;
680
+ modelAttribution?: Readonly<{
681
+ modelId: string;
682
+ modelVersion: string;
683
+ promptTemplateVersion: string;
684
+ contextTemplateVersion: string;
685
+ samplingParams: Readonly<z.objectInputType<{
686
+ temperature: z.ZodOptional<z.ZodNumber>;
687
+ topP: z.ZodOptional<z.ZodNumber>;
688
+ maxTokens: z.ZodOptional<z.ZodNumber>;
689
+ seed: z.ZodOptional<z.ZodNumber>;
690
+ }, z.ZodUnknown, "strip">>;
691
+ retrievedAtomSetId: string;
692
+ }> | undefined;
693
+ }> | undefined;
694
+ }>;
695
+ export declare function createRoadNode(input: z.input<typeof ROAD_NODE_SCHEMA>): RoadNodeAtomInstance;
696
+ export declare function roadNodeIdFromParts(countyFips: string, osmWayId: number): string;
697
+ //# sourceMappingURL=road-node.d.ts.map