@honua/react 0.1.12 → 0.1.13

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 (190) hide show
  1. package/columnar/apache-arrow.d.ts +17 -0
  2. package/columnar/apache-arrow.d.ts.map +1 -0
  3. package/columnar/apache-arrow.js +1036 -0
  4. package/columnar/batch-cache-conformance.d.ts +66 -0
  5. package/columnar/batch-cache-conformance.d.ts.map +1 -0
  6. package/columnar/batch-cache-conformance.js +317 -0
  7. package/columnar/batch-cache-indexeddb.d.ts +31 -0
  8. package/columnar/batch-cache-indexeddb.d.ts.map +1 -0
  9. package/columnar/batch-cache-indexeddb.js +148 -0
  10. package/columnar/batch-cache.d.ts +298 -0
  11. package/columnar/batch-cache.d.ts.map +1 -0
  12. package/columnar/batch-cache.js +757 -0
  13. package/columnar/geoarrow-aggregate.d.ts +178 -0
  14. package/columnar/geoarrow-aggregate.d.ts.map +1 -0
  15. package/columnar/geoarrow-aggregate.js +976 -0
  16. package/columnar/geoarrow-patch.d.ts +382 -0
  17. package/columnar/geoarrow-patch.d.ts.map +1 -0
  18. package/columnar/geoarrow-patch.js +1656 -0
  19. package/columnar/geoarrow-reproject.d.ts +22 -0
  20. package/columnar/geoarrow-reproject.d.ts.map +1 -0
  21. package/columnar/geoarrow-reproject.js +119 -0
  22. package/columnar/geoarrow-serialization.d.ts +68 -0
  23. package/columnar/geoarrow-serialization.d.ts.map +1 -0
  24. package/columnar/geoarrow-serialization.js +331 -0
  25. package/columnar/geoarrow-types.d.ts +271 -0
  26. package/columnar/geoarrow-types.d.ts.map +1 -0
  27. package/columnar/geoarrow-types.js +15 -0
  28. package/columnar/geoarrow.d.ts +52 -0
  29. package/columnar/geoarrow.d.ts.map +1 -0
  30. package/columnar/geoarrow.js +1469 -0
  31. package/columnar/index.d.ts +43 -0
  32. package/columnar/index.d.ts.map +1 -0
  33. package/columnar/index.js +29 -0
  34. package/columnar/operators.d.ts +70 -0
  35. package/columnar/operators.d.ts.map +1 -0
  36. package/columnar/operators.js +307 -0
  37. package/columnar/result.d.ts +369 -0
  38. package/columnar/result.d.ts.map +1 -0
  39. package/columnar/result.js +815 -0
  40. package/columnar/telemetry.d.ts +152 -0
  41. package/columnar/telemetry.d.ts.map +1 -0
  42. package/columnar/telemetry.js +265 -0
  43. package/columnar/transfer.d.ts +28 -0
  44. package/columnar/transfer.d.ts.map +1 -0
  45. package/columnar/transfer.js +669 -0
  46. package/columnar/types.d.ts +175 -0
  47. package/columnar/types.d.ts.map +1 -0
  48. package/columnar/types.js +22 -0
  49. package/columnar/worker.d.ts +157 -0
  50. package/columnar/worker.d.ts.map +1 -0
  51. package/columnar/worker.js +1059 -0
  52. package/connect-url-safety.d.ts +53 -0
  53. package/connect-url-safety.js +189 -0
  54. package/contract/pmtiles.d.ts +6 -5
  55. package/contract/pmtiles.d.ts.map +1 -1
  56. package/contract/pmtiles.js +30 -5
  57. package/core/client.d.ts.map +1 -1
  58. package/core/client.js +87 -19
  59. package/core/deprecation-notice.d.ts +28 -0
  60. package/core/deprecation-notice.d.ts.map +1 -0
  61. package/core/deprecation-notice.js +22 -0
  62. package/core/esri-geojson.d.ts.map +1 -1
  63. package/core/esri-geojson.js +10 -6
  64. package/core/optional-grpc-peer.d.ts +15 -0
  65. package/core/optional-grpc-peer.d.ts.map +1 -0
  66. package/core/optional-grpc-peer.js +60 -0
  67. package/esri-compat/basemap-gallery.d.ts +2 -0
  68. package/esri-compat/basemap-gallery.d.ts.map +1 -1
  69. package/esri-compat/basemap-gallery.js +12 -0
  70. package/esri-compat/basemap.d.ts +4 -0
  71. package/esri-compat/basemap.d.ts.map +1 -1
  72. package/esri-compat/basemap.js +70 -0
  73. package/esri-compat/bookmarks.d.ts +2 -0
  74. package/esri-compat/bookmarks.d.ts.map +1 -1
  75. package/esri-compat/bookmarks.js +12 -0
  76. package/esri-compat/controls.d.ts +18 -0
  77. package/esri-compat/controls.d.ts.map +1 -1
  78. package/esri-compat/controls.js +120 -57
  79. package/esri-compat/directions.d.ts +4 -0
  80. package/esri-compat/directions.d.ts.map +1 -1
  81. package/esri-compat/directions.js +30 -20
  82. package/esri-compat/editor.d.ts +4 -0
  83. package/esri-compat/editor.d.ts.map +1 -1
  84. package/esri-compat/editor.js +16 -0
  85. package/esri-compat/esri-config.d.ts +2 -1
  86. package/esri-compat/esri-config.d.ts.map +1 -1
  87. package/esri-compat/feature-effect.d.ts +23 -0
  88. package/esri-compat/feature-effect.d.ts.map +1 -0
  89. package/esri-compat/feature-effect.js +12 -0
  90. package/esri-compat/feature-form.d.ts +6 -0
  91. package/esri-compat/feature-form.d.ts.map +1 -1
  92. package/esri-compat/feature-form.js +63 -0
  93. package/esri-compat/feature-layer.d.ts +21 -2
  94. package/esri-compat/feature-layer.d.ts.map +1 -1
  95. package/esri-compat/feature-layer.js +172 -1
  96. package/esri-compat/feature-table.d.ts +5 -0
  97. package/esri-compat/feature-table.d.ts.map +1 -1
  98. package/esri-compat/feature-table.js +23 -0
  99. package/esri-compat/identity-manager.d.ts +1 -1
  100. package/esri-compat/identity-manager.js +1 -1
  101. package/esri-compat/legend.d.ts +2 -0
  102. package/esri-compat/legend.d.ts.map +1 -1
  103. package/esri-compat/legend.js +98 -0
  104. package/esri-compat/locator.d.ts +1 -1
  105. package/esri-compat/locator.js +1 -1
  106. package/esri-compat/map-view-mount.d.ts +1 -0
  107. package/esri-compat/map-view-mount.d.ts.map +1 -1
  108. package/esri-compat/map-view-mount.js +46 -25
  109. package/esri-compat/map-view.d.ts +13 -0
  110. package/esri-compat/map-view.d.ts.map +1 -1
  111. package/esri-compat/map-view.js +94 -8
  112. package/esri-compat/map.d.ts +5 -1
  113. package/esri-compat/map.d.ts.map +1 -1
  114. package/esri-compat/map.js +10 -0
  115. package/esri-compat/measurement.d.ts +2 -0
  116. package/esri-compat/measurement.d.ts.map +1 -1
  117. package/esri-compat/measurement.js +14 -0
  118. package/esri-compat/point.d.ts +7 -0
  119. package/esri-compat/point.d.ts.map +1 -1
  120. package/esri-compat/point.js +33 -3
  121. package/esri-compat/popup.d.ts +2 -0
  122. package/esri-compat/popup.d.ts.map +1 -1
  123. package/esri-compat/popup.js +12 -0
  124. package/esri-compat/portal.d.ts +1 -1
  125. package/esri-compat/portal.js +1 -1
  126. package/esri-compat/print.d.ts +3 -0
  127. package/esri-compat/print.d.ts.map +1 -1
  128. package/esri-compat/print.js +15 -0
  129. package/esri-compat/search.d.ts +4 -0
  130. package/esri-compat/search.d.ts.map +1 -1
  131. package/esri-compat/search.js +25 -28
  132. package/esri-compat/sketch.d.ts +2 -0
  133. package/esri-compat/sketch.d.ts.map +1 -1
  134. package/esri-compat/sketch.js +12 -0
  135. package/esri-compat/widget-host.d.ts +46 -17
  136. package/esri-compat/widget-host.d.ts.map +1 -1
  137. package/esri-compat/widget-host.js +84 -20
  138. package/esri-compat/widget-shell-hosts.d.ts +61 -0
  139. package/esri-compat/widget-shell-hosts.d.ts.map +1 -0
  140. package/esri-compat/widget-shell-hosts.js +76 -0
  141. package/geocoding/index.d.ts +114 -0
  142. package/geocoding/index.d.ts.map +1 -0
  143. package/geocoding/index.js +293 -0
  144. package/geocoding/provider-http.d.ts +37 -0
  145. package/geocoding/provider-http.d.ts.map +1 -0
  146. package/geocoding/provider-http.js +93 -0
  147. package/geocoding/provider.d.ts +145 -0
  148. package/geocoding/provider.d.ts.map +1 -0
  149. package/geocoding/provider.js +41 -0
  150. package/geocoding/providers/honua.d.ts +28 -0
  151. package/geocoding/providers/honua.d.ts.map +1 -0
  152. package/geocoding/providers/honua.js +68 -0
  153. package/geocoding/providers/nominatim.d.ts +47 -0
  154. package/geocoding/providers/nominatim.d.ts.map +1 -0
  155. package/geocoding/providers/nominatim.js +105 -0
  156. package/geocoding/providers/pelias.d.ts +40 -0
  157. package/geocoding/providers/pelias.d.ts.map +1 -0
  158. package/geocoding/providers/pelias.js +115 -0
  159. package/geocoding/providers/photon.d.ts +39 -0
  160. package/geocoding/providers/photon.d.ts.map +1 -0
  161. package/geocoding/providers/photon.js +107 -0
  162. package/geometry/convert.d.ts +13 -0
  163. package/geometry/convert.d.ts.map +1 -0
  164. package/geometry/convert.js +12 -0
  165. package/geometry/index.d.ts +17 -0
  166. package/geometry/index.d.ts.map +1 -0
  167. package/geometry/index.js +15 -0
  168. package/geometry/internal.d.ts +25 -0
  169. package/geometry/internal.d.ts.map +1 -0
  170. package/geometry/internal.js +40 -0
  171. package/geometry/ops.d.ts +71 -0
  172. package/geometry/ops.d.ts.map +1 -0
  173. package/geometry/ops.js +147 -0
  174. package/geometry/project.d.ts +40 -0
  175. package/geometry/project.d.ts.map +1 -0
  176. package/geometry/project.js +88 -0
  177. package/geometry/types.d.ts +36 -0
  178. package/geometry/types.d.ts.map +1 -0
  179. package/geometry/types.js +12 -0
  180. package/kernel/renderer.d.ts +82 -0
  181. package/kernel/renderer.js +1 -0
  182. package/offline/digest.d.ts +15 -0
  183. package/offline/digest.js +58 -0
  184. package/offline/quota.d.ts +161 -0
  185. package/offline/quota.js +370 -0
  186. package/offline/types.d.ts +349 -0
  187. package/offline/types.js +75 -0
  188. package/package.json +14 -2
  189. package/widget-capabilities.d.ts +67 -0
  190. package/widget-capabilities.js +152 -0
@@ -0,0 +1,271 @@
1
+ import type { ColumnarBatchIdentityV1, ColumnarBatchLimits, ColumnarBatchV1 } from "./types.js";
2
+ export type { ColumnarBatchIdentityV1 } from "./types.js";
3
+ /** Honua's dependency-free mapping over GeoArrow format 0.2. */
4
+ export declare const HONUA_GEOARROW_LAYOUT_VERSION: "1.0";
5
+ /** GeoArrow specification version implemented by this mapping. */
6
+ export declare const GEOARROW_SPEC_VERSION: "0.2";
7
+ export type GeoArrowGeometryKind = "point" | "linestring" | "polygon";
8
+ export type GeoArrowDimensions = "xy" | "xyz" | "xym" | "xyzm";
9
+ export type GeoArrowCoordinateLayout = "interleaved" | "separated";
10
+ export type GeoArrowEdges = "planar" | "spherical" | "vincenty" | "thomas" | "andoyer" | "karney";
11
+ export type GeoArrowCrsType = "projjson" | "wkt2:2019" | "authority_code" | "srid";
12
+ export type GeoArrowTimestampUnit = "second" | "millisecond" | "microsecond" | "nanosecond";
13
+ /** CRS metadata accepted by GeoArrow: preferably PROJJSON, or an opaque serialized CRS string. */
14
+ export type GeoArrowCrs = string | Readonly<Record<string, unknown>>;
15
+ /** Coordinate dimensions are ordered x, y, then z and/or m according to `dimensions`. */
16
+ export type GeoArrowPosition = readonly number[];
17
+ export type GeoArrowPoint = GeoArrowPosition;
18
+ export type GeoArrowLineString = readonly GeoArrowPosition[];
19
+ export type GeoArrowPolygon = readonly (readonly GeoArrowPosition[])[];
20
+ export interface GeoArrowGeometryColumnBase {
21
+ readonly field?: string;
22
+ readonly dimensions?: GeoArrowDimensions;
23
+ /** Both official layouts are supported; separated is the GeoArrow-recommended default. */
24
+ readonly coordinateLayout?: GeoArrowCoordinateLayout;
25
+ readonly crs?: GeoArrowCrs;
26
+ /** Disambiguates a serialized CRS value; invalid without `crs`. */
27
+ readonly crsType?: GeoArrowCrsType;
28
+ readonly edges?: GeoArrowEdges;
29
+ }
30
+ export interface GeoArrowPointColumnInput extends GeoArrowGeometryColumnBase {
31
+ readonly kind: "point";
32
+ readonly values: readonly (GeoArrowPoint | null)[];
33
+ }
34
+ export interface GeoArrowLineStringColumnInput extends GeoArrowGeometryColumnBase {
35
+ readonly kind: "linestring";
36
+ readonly values: readonly (GeoArrowLineString | null)[];
37
+ }
38
+ export interface GeoArrowPolygonColumnInput extends GeoArrowGeometryColumnBase {
39
+ readonly kind: "polygon";
40
+ readonly values: readonly (GeoArrowPolygon | null)[];
41
+ }
42
+ export type GeoArrowGeometryColumnInput = GeoArrowPointColumnInput | GeoArrowLineStringColumnInput | GeoArrowPolygonColumnInput;
43
+ export interface GeoArrowTemporalColumnInput {
44
+ readonly field: string;
45
+ readonly unit: GeoArrowTimestampUnit;
46
+ readonly timezone?: string;
47
+ /** Signed Arrow timestamp values in the declared unit. */
48
+ readonly values: readonly (bigint | null)[];
49
+ }
50
+ export interface GeoArrowDictionaryColumnInput {
51
+ readonly field: string;
52
+ readonly ordered?: boolean;
53
+ readonly values: readonly (string | null)[];
54
+ }
55
+ export interface GeoArrowFeatureIdColumnInput {
56
+ readonly field: string;
57
+ readonly values: ArrayLike<number>;
58
+ }
59
+ /** Semantic input converted into one normative, independently transferable batch. */
60
+ export interface CreateGeoArrowBatchInput {
61
+ readonly id: string;
62
+ readonly sequence: number;
63
+ readonly rowOffset?: number;
64
+ readonly schemaId: string;
65
+ readonly identity: ColumnarBatchIdentityV1;
66
+ readonly geometry: GeoArrowGeometryColumnInput;
67
+ readonly temporal?: GeoArrowTemporalColumnInput;
68
+ readonly dictionary?: GeoArrowDictionaryColumnInput;
69
+ readonly featureIds?: GeoArrowFeatureIdColumnInput;
70
+ }
71
+ /** Every semantic conversion is bounded; there is no opt-out or unbounded sentinel. */
72
+ export interface GeoArrowConversionLimits extends ColumnarBatchLimits {
73
+ readonly maxVertices?: number;
74
+ readonly maxRings?: number;
75
+ readonly maxDictionaryValues?: number;
76
+ /** Exact ceiling for newly allocated payload buffers. */
77
+ readonly maxCopiedBytes?: number;
78
+ }
79
+ /**
80
+ * One ordered step of the persisted-envelope migration ladder.
81
+ *
82
+ * A step is a pure structural rewrite of one parsed envelope. It never receives
83
+ * the caller's {@link GeoArrowSerializationOptions}, so a migration cannot widen
84
+ * a bound; every ceiling is enforced against the migrated envelope.
85
+ */
86
+ export interface GeoArrowEnvelopeMigrationV1 {
87
+ readonly fromVersion: string;
88
+ readonly toVersion: string;
89
+ readonly migrate: (envelope: Readonly<Record<string, unknown>>) => Record<string, unknown>;
90
+ }
91
+ /** Why an envelope version cannot be carried forward to the current layout. */
92
+ export type GeoArrowEnvelopeMigrationRefusal = "unknown-version" | "future-version" | "unreachable-version";
93
+ /** Resolved migration chain for one stored envelope version, or the refusal. */
94
+ export type GeoArrowEnvelopeMigrationPlanV1 = {
95
+ readonly applicable: true;
96
+ /** Applied steps in order, as `from->to`; empty when already current. */
97
+ readonly steps: readonly string[];
98
+ readonly migrations: readonly GeoArrowEnvelopeMigrationV1[];
99
+ } | {
100
+ readonly applicable: false;
101
+ readonly reason: GeoArrowEnvelopeMigrationRefusal;
102
+ readonly detail: string;
103
+ };
104
+ /** Bounds and migration policy for dependency-free persisted GeoArrow batches. */
105
+ export interface GeoArrowSerializationOptions extends GeoArrowConversionLimits {
106
+ /** Maximum UTF-8 envelope size accepted or produced. */
107
+ readonly maxSerializedBytes?: number;
108
+ /**
109
+ * Replaces the shipped ladder for this read. Steps still receive only the
110
+ * parsed envelope, so an injected ladder cannot widen the bounds above.
111
+ */
112
+ readonly migrations?: readonly GeoArrowEnvelopeMigrationV1[];
113
+ }
114
+ export interface GeoArrowSerializationMetrics {
115
+ readonly serializedBytes: number;
116
+ readonly backingBytes: number;
117
+ readonly backingBuffers: number;
118
+ /** Envelope layout version the batch was materialized at, after migration. */
119
+ readonly envelopeVersion: string;
120
+ /** Applied migration chain in order, as `from->to`; empty when none ran. */
121
+ readonly migrations: readonly string[];
122
+ }
123
+ export interface GeoArrowBatchSerializationResult {
124
+ readonly batch: ColumnarBatchV1;
125
+ readonly metrics: GeoArrowSerializationMetrics;
126
+ }
127
+ export interface GeoArrowConversionMetrics {
128
+ readonly rows: number;
129
+ readonly vertices: number;
130
+ readonly rings: number;
131
+ readonly dictionaryValues: number;
132
+ /** Exact bytes allocated and populated by semantic-to-columnar conversion. */
133
+ readonly copiedBytes: number;
134
+ readonly backingBytes: number;
135
+ }
136
+ export interface CreatedGeoArrowBatch {
137
+ readonly batch: ColumnarBatchV1;
138
+ readonly metrics: GeoArrowConversionMetrics;
139
+ }
140
+ export interface DecodedGeoArrowRow {
141
+ readonly geometry: GeoArrowPoint | GeoArrowLineString | GeoArrowPolygon | null;
142
+ readonly timestamp?: bigint | null;
143
+ readonly dictionaryValue?: string | null;
144
+ readonly featureId?: number;
145
+ }
146
+ export interface DecodedGeoArrowBatch {
147
+ readonly rows: readonly DecodedGeoArrowRow[];
148
+ readonly metrics: Omit<GeoArrowConversionMetrics, "copiedBytes" | "backingBytes"> & {
149
+ /** No payload buffer is copied; this count makes row-object materialization explicit. */
150
+ readonly materializedRows: number;
151
+ };
152
+ }
153
+ export interface GeoArrowGeometryBuffers {
154
+ readonly kind: GeoArrowGeometryKind;
155
+ readonly field: string;
156
+ readonly dimensions: GeoArrowDimensions;
157
+ readonly coordinateLayout: GeoArrowCoordinateLayout;
158
+ readonly crs?: GeoArrowCrs;
159
+ readonly crsType?: GeoArrowCrsType;
160
+ readonly edges: GeoArrowEdges;
161
+ readonly validity?: Uint8Array;
162
+ readonly offsets?: Int32Array;
163
+ readonly ringOffsets?: Int32Array;
164
+ readonly coordinates: Readonly<Record<"x" | "y" | "z" | "m" | "interleaved", Float64Array | undefined>>;
165
+ }
166
+ export interface GeoArrowTemporalBuffers {
167
+ readonly field: string;
168
+ readonly unit: GeoArrowTimestampUnit;
169
+ readonly timezone?: string;
170
+ readonly validity?: Uint8Array;
171
+ readonly values: BigInt64Array;
172
+ }
173
+ export interface GeoArrowDictionaryBuffers {
174
+ readonly field: string;
175
+ readonly ordered: boolean;
176
+ readonly validity?: Uint8Array;
177
+ readonly indices: Int32Array;
178
+ readonly offsets: Int32Array;
179
+ readonly values: Uint8Array;
180
+ }
181
+ /** Validated typed views that alias the batch's own backing buffers. */
182
+ export interface GeoArrowBatchInspection {
183
+ readonly batch: ColumnarBatchV1;
184
+ readonly geometry: GeoArrowGeometryBuffers;
185
+ readonly temporal?: GeoArrowTemporalBuffers;
186
+ readonly dictionary?: GeoArrowDictionaryBuffers;
187
+ readonly featureIds?: {
188
+ readonly field: string;
189
+ readonly values: Uint32Array;
190
+ };
191
+ readonly metrics: GeoArrowConversionMetrics;
192
+ }
193
+ /** Structural Apache Arrow data node used without importing peer declarations. */
194
+ export interface ApacheArrowDataLike {
195
+ readonly length: number;
196
+ readonly offset: number;
197
+ readonly values?: ArrayBufferView;
198
+ readonly nullBitmap?: Uint8Array;
199
+ readonly valueOffsets?: Int32Array;
200
+ readonly children: readonly ApacheArrowDataLike[];
201
+ readonly dictionary?: ApacheArrowVectorLike;
202
+ }
203
+ /** Structural Apache Arrow vector used by the optional adapter. */
204
+ export interface ApacheArrowVectorLike {
205
+ readonly length: number;
206
+ readonly data: readonly ApacheArrowDataLike[];
207
+ }
208
+ export interface ApacheArrowFieldLike {
209
+ readonly name: string;
210
+ readonly nullable: boolean;
211
+ readonly metadata: ReadonlyMap<string, string>;
212
+ readonly type: ApacheArrowTypeLike;
213
+ }
214
+ /** Structural Arrow type metadata needed for schema-safe zero-copy import. */
215
+ export interface ApacheArrowTypeLike {
216
+ toString(): string;
217
+ readonly children?: readonly ApacheArrowFieldLike[];
218
+ readonly isOrdered?: boolean;
219
+ }
220
+ /** Minimum RecordBatch surface accepted and returned by the adapter. */
221
+ export interface ApacheArrowRecordBatchLike {
222
+ readonly numRows: number;
223
+ readonly schema: {
224
+ readonly fields: readonly ApacheArrowFieldLike[];
225
+ readonly metadata: ReadonlyMap<string, string>;
226
+ };
227
+ getChildAt(index: number): ApacheArrowVectorLike | null;
228
+ }
229
+ /** Opaque module namespace for an injected Apache Arrow implementation. */
230
+ export type ApacheArrowModuleLike = Readonly<Record<string, unknown>>;
231
+ export type ApacheArrowModuleImporter = (specifier: string) => Promise<unknown>;
232
+ export interface LoadApacheArrowOptions {
233
+ readonly importModule?: ApacheArrowModuleImporter;
234
+ }
235
+ export interface ApacheArrowAdapterOptions extends LoadApacheArrowOptions {
236
+ readonly module?: ApacheArrowModuleLike;
237
+ }
238
+ export interface ApacheArrowAdapterMetrics {
239
+ readonly rows: number;
240
+ readonly backingBytes: number;
241
+ readonly referencedBytes: number;
242
+ /** Exact payload bytes copied to isolate a foreign shared/padded backing. */
243
+ readonly copiedBytes: number;
244
+ }
245
+ export interface ApacheArrowRecordBatchResult {
246
+ readonly recordBatch: ApacheArrowRecordBatchLike;
247
+ readonly metrics: ApacheArrowAdapterMetrics;
248
+ }
249
+ export interface FromApacheArrowRecordBatchOptions {
250
+ /** Required with `schemaId` and `identity` when importing a non-Honua RecordBatch. */
251
+ readonly id?: string;
252
+ readonly sequence?: number;
253
+ readonly rowOffset?: number;
254
+ /** Required with `id` and `identity` when importing a non-Honua RecordBatch. */
255
+ readonly schemaId?: string;
256
+ /** Required with `id` and `schemaId` when importing a non-Honua RecordBatch. */
257
+ readonly identity?: ColumnarBatchIdentityV1;
258
+ readonly limits?: GeoArrowConversionLimits;
259
+ }
260
+ export interface GeoArrowBatchFromApacheResult {
261
+ readonly batch: ColumnarBatchV1;
262
+ readonly metrics: ApacheArrowAdapterMetrics;
263
+ }
264
+ export type HonuaGeoArrowErrorCode = "invalid-input" | "invalid-batch" | "unsupported-layout" | "row-limit-exceeded" | "vertex-limit-exceeded" | "ring-limit-exceeded" | "dictionary-limit-exceeded" | "group-limit-exceeded" | "copy-limit-exceeded" | "serialization-limit-exceeded" | "unsupported-serialization" | "missing-peer";
265
+ /** Typed failures for layout drift, conversion bounds, and optional peers. */
266
+ export declare class HonuaGeoArrowError extends Error {
267
+ readonly code: HonuaGeoArrowErrorCode;
268
+ readonly detail?: Readonly<Record<string, unknown>> | undefined;
269
+ constructor(code: HonuaGeoArrowErrorCode, message: string, detail?: Readonly<Record<string, unknown>> | undefined, options?: ErrorOptions);
270
+ }
271
+ //# sourceMappingURL=geoarrow-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geoarrow-types.d.ts","sourceRoot":"","sources":["../../../src/columnar/geoarrow-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAEhG,YAAY,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAE1D,gEAAgE;AAChE,eAAO,MAAM,6BAA6B,EAAG,KAAc,CAAC;AAE5D,kEAAkE;AAClE,eAAO,MAAM,qBAAqB,EAAG,KAAc,CAAC;AAEpD,MAAM,MAAM,oBAAoB,GAAG,OAAO,GAAG,YAAY,GAA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,8BAA8B,GAC9B,2BAA2B,GAC3B,cAAc,CAAC;AAEnB,8EAA8E;AAC9E,qBAAa,kBAAmB,SAAQ,KAAK;aAEzB,IAAI,EAAE,sBAAsB;aAE5B,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBAF1C,IAAI,EAAE,sBAAsB,EAC5C,OAAO,EAAE,MAAM,EACC,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,YAAA,EAC1D,OAAO,CAAC,EAAE,YAAY;CAKzB"}
@@ -0,0 +1,15 @@
1
+ /** Honua's dependency-free mapping over GeoArrow format 0.2. */
2
+ export const HONUA_GEOARROW_LAYOUT_VERSION = "1.0";
3
+ /** GeoArrow specification version implemented by this mapping. */
4
+ export const GEOARROW_SPEC_VERSION = "0.2";
5
+ /** Typed failures for layout drift, conversion bounds, and optional peers. */
6
+ export class HonuaGeoArrowError extends Error {
7
+ code;
8
+ detail;
9
+ constructor(code, message, detail, options) {
10
+ super(message, options);
11
+ this.code = code;
12
+ this.detail = detail;
13
+ this.name = "HonuaGeoArrowError";
14
+ }
15
+ }
@@ -0,0 +1,52 @@
1
+ import { type CreateGeoArrowBatchInput, type CreatedGeoArrowBatch, type DecodedGeoArrowBatch, type DecodedGeoArrowRow, type GeoArrowBatchInspection, type GeoArrowConversionLimits, type GeoArrowGeometryBuffers } from "./geoarrow-types.js";
2
+ import { type ColumnarBatchV1 } from "./types.js";
3
+ /**
4
+ * Payload-validation scope for one inspection.
5
+ *
6
+ * `"full"` walks every payload byte the batch declares, which is what an
7
+ * unbounded consumer needs and what {@link inspectGeoArrowBatch} always does.
8
+ * `"window"` performs the same structural and schema validation but defers the
9
+ * per-row payload checks (coordinate finiteness, dictionary index range, and
10
+ * dictionary UTF-8 decoding) to a caller that reads only a bounded row window
11
+ * and validates exactly the rows it materializes. It exists so a bounded
12
+ * conversion stays proportional to its window instead of to the batch.
13
+ *
14
+ * @internal
15
+ */
16
+ export type GeoArrowInspectionScope = "full" | "window";
17
+ /**
18
+ * Convert bounded semantic geometry/temporal/dictionary values to the normative
19
+ * Honua GeoArrow mapping. All returned payload buffers are newly owned, exact
20
+ * copy accounting is returned, and the generic transfer contract remains valid.
21
+ */
22
+ export declare function createGeoArrowBatch(input: CreateGeoArrowBatchInput, limits?: GeoArrowConversionLimits): CreatedGeoArrowBatch;
23
+ /** Validate the normative mapping and return zero-copy typed-array views. */
24
+ export declare function inspectGeoArrowBatch(batch: ColumnarBatchV1, limits?: GeoArrowConversionLimits): GeoArrowBatchInspection;
25
+ /**
26
+ * {@link inspectGeoArrowBatch} with an explicit payload-validation scope.
27
+ *
28
+ * Only bounded conversions inside this module pass `"window"`, and they must
29
+ * validate coordinate finiteness, dictionary index range, and dictionary UTF-8
30
+ * for every row they materialize. It is deliberately absent from the package
31
+ * surface: an external consumer must not be able to skip payload validation.
32
+ *
33
+ * @internal
34
+ */
35
+ export declare function inspectGeoArrowBatchScoped(batch: ColumnarBatchV1, limits: GeoArrowConversionLimits, scope: GeoArrowInspectionScope): GeoArrowBatchInspection;
36
+ declare function isValid(validity: Uint8Array | undefined, index: number): boolean;
37
+ /**
38
+ * Row-level primitives shared with the bounded object-`Result` conversion.
39
+ * They are module exports rather than package exports: `columnar/index.ts`
40
+ * deliberately does not re-export them.
41
+ *
42
+ * @internal
43
+ */
44
+ export { decodeGeometry as decodeGeoArrowGeometryAt, isValid as isGeoArrowRowValid };
45
+ declare function decodeGeometry(geometry: GeoArrowGeometryBuffers, row: number): DecodedGeoArrowRow["geometry"];
46
+ /**
47
+ * Explicitly materialize bounded semantic rows. Callers cannot accidentally
48
+ * decode an unbounded result because the same finite row/vertex/ring limits are
49
+ * mandatory and defaulted before any row object is created.
50
+ */
51
+ export declare function decodeGeoArrowBatch(batch: ColumnarBatchV1, limits?: GeoArrowConversionLimits): DecodedGeoArrowBatch;
52
+ //# sourceMappingURL=geoarrow.d.ts.map
@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