@honua/react 0.0.20-alpha.0 → 0.1.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (363) hide show
  1. package/contract/discovery.d.ts +231 -0
  2. package/contract/discovery.d.ts.map +1 -0
  3. package/contract/discovery.js +554 -0
  4. package/contract/edit-sketch.d.ts +8 -0
  5. package/contract/edit-sketch.d.ts.map +1 -1
  6. package/contract/edit-sketch.js +15 -0
  7. package/contract/edit-snapping.d.ts +160 -0
  8. package/contract/edit-snapping.d.ts.map +1 -0
  9. package/contract/edit-snapping.js +675 -0
  10. package/contract/generated/projjson-v0.7-crs-validator.d.ts +35 -0
  11. package/contract/generated/projjson-v0.7-crs-validator.d.ts.map +1 -0
  12. package/contract/generated/projjson-v0.7-crs-validator.js +3941 -0
  13. package/contract/index.d.ts +12 -1
  14. package/contract/index.d.ts.map +1 -1
  15. package/contract/index.js +4 -0
  16. package/contract/pmtiles.d.ts +193 -0
  17. package/contract/pmtiles.d.ts.map +1 -0
  18. package/contract/pmtiles.js +195 -0
  19. package/contract/protocol-module.d.ts +70 -0
  20. package/contract/protocol-module.d.ts.map +1 -0
  21. package/contract/protocol-module.js +1 -0
  22. package/contract/schema-envelope.d.ts +26 -0
  23. package/contract/schema-envelope.d.ts.map +1 -0
  24. package/contract/schema-envelope.js +25 -0
  25. package/contract/schema.d.ts +582 -0
  26. package/contract/schema.d.ts.map +1 -0
  27. package/contract/schema.js +2483 -0
  28. package/contract/source-capability-support.d.ts +6 -0
  29. package/contract/source-capability-support.d.ts.map +1 -0
  30. package/contract/source-capability-support.js +154 -0
  31. package/contract/source.d.ts +57 -15
  32. package/contract/source.d.ts.map +1 -1
  33. package/contract/source.js +368 -65
  34. package/contract/types.d.ts +171 -6
  35. package/contract/types.d.ts.map +1 -1
  36. package/contract/types.js +14 -14
  37. package/core/auth/client-credentials-provider.d.ts +51 -0
  38. package/core/auth/client-credentials-provider.d.ts.map +1 -0
  39. package/core/auth/client-credentials-provider.js +115 -0
  40. package/core/auth/credential-store.d.ts +52 -0
  41. package/core/auth/credential-store.d.ts.map +1 -0
  42. package/core/auth/credential-store.js +82 -0
  43. package/core/auth/index.d.ts +23 -0
  44. package/core/auth/index.d.ts.map +1 -0
  45. package/core/auth/index.js +20 -0
  46. package/core/auth/oauth2-provider.d.ts +114 -0
  47. package/core/auth/oauth2-provider.d.ts.map +1 -0
  48. package/core/auth/oauth2-provider.js +408 -0
  49. package/core/auth/pkce.d.ts +25 -0
  50. package/core/auth/pkce.d.ts.map +1 -0
  51. package/core/auth/pkce.js +46 -0
  52. package/core/auth/static-providers.d.ts +20 -0
  53. package/core/auth/static-providers.d.ts.map +1 -0
  54. package/core/auth/static-providers.js +26 -0
  55. package/core/auth/token-endpoint.d.ts +40 -0
  56. package/core/auth/token-endpoint.d.ts.map +1 -0
  57. package/core/auth/token-endpoint.js +133 -0
  58. package/core/auth/types.d.ts +144 -0
  59. package/core/auth/types.d.ts.map +1 -0
  60. package/core/auth/types.js +8 -0
  61. package/core/bounded-json.d.ts +4 -0
  62. package/core/bounded-json.d.ts.map +1 -0
  63. package/core/bounded-json.js +38 -0
  64. package/core/cache-state.d.ts +9 -0
  65. package/core/cache-state.d.ts.map +1 -1
  66. package/core/cache-state.js +10 -0
  67. package/core/capabilities-xml.d.ts +33 -0
  68. package/core/capabilities-xml.d.ts.map +1 -0
  69. package/core/capabilities-xml.js +331 -0
  70. package/core/client.d.ts +35 -2
  71. package/core/client.d.ts.map +1 -1
  72. package/core/client.js +167 -29
  73. package/core/error-classifications.d.ts +153 -0
  74. package/core/error-classifications.d.ts.map +1 -0
  75. package/core/error-classifications.js +140 -0
  76. package/core/error-code-registry.d.ts +158 -0
  77. package/core/error-code-registry.d.ts.map +1 -0
  78. package/core/error-code-registry.js +143 -0
  79. package/core/error-envelope.d.ts +68 -0
  80. package/core/error-envelope.d.ts.map +1 -0
  81. package/core/error-envelope.js +357 -0
  82. package/core/errors.d.ts +73 -25
  83. package/core/errors.d.ts.map +1 -1
  84. package/core/errors.js +113 -46
  85. package/core/geoparquet-sql.d.ts +190 -0
  86. package/core/geoparquet-sql.d.ts.map +1 -0
  87. package/core/geoparquet-sql.js +368 -0
  88. package/core/odata-key-path.d.ts +12 -0
  89. package/core/odata-key-path.d.ts.map +1 -0
  90. package/core/odata-key-path.js +28 -0
  91. package/core/odata-write-codec.d.ts +66 -0
  92. package/core/odata-write-codec.d.ts.map +1 -0
  93. package/core/odata-write-codec.js +1083 -0
  94. package/core/odata.d.ts +59 -7
  95. package/core/odata.d.ts.map +1 -1
  96. package/core/odata.js +431 -99
  97. package/core/ogc-endpoint-layout.d.ts +70 -0
  98. package/core/ogc-endpoint-layout.d.ts.map +1 -0
  99. package/core/ogc-endpoint-layout.js +173 -0
  100. package/core/ogc-features.d.ts.map +1 -1
  101. package/core/ogc-features.js +35 -17
  102. package/core/ogc-maps.d.ts +7 -0
  103. package/core/ogc-maps.d.ts.map +1 -1
  104. package/core/ogc-maps.js +46 -7
  105. package/core/ogc-processes.d.ts +2 -1
  106. package/core/ogc-processes.d.ts.map +1 -1
  107. package/core/ogc-processes.js +33 -5
  108. package/core/ogc-records.d.ts +9 -0
  109. package/core/ogc-records.d.ts.map +1 -1
  110. package/core/ogc-records.js +78 -29
  111. package/core/ogc-tiles.d.ts +10 -1
  112. package/core/ogc-tiles.d.ts.map +1 -1
  113. package/core/ogc-tiles.js +56 -17
  114. package/core/path-utils.d.ts +9 -0
  115. package/core/path-utils.d.ts.map +1 -1
  116. package/core/path-utils.js +19 -0
  117. package/core/protocol-transport.d.ts +1 -0
  118. package/core/protocol-transport.d.ts.map +1 -1
  119. package/core/request-pipeline.d.ts.map +1 -1
  120. package/core/request-pipeline.js +1 -1
  121. package/core/spatial-filter.d.ts +8 -4
  122. package/core/spatial-filter.d.ts.map +1 -1
  123. package/core/spatial-filter.js +206 -16
  124. package/core/stac-static.d.ts +55 -0
  125. package/core/stac-static.d.ts.map +1 -0
  126. package/core/stac-static.js +386 -0
  127. package/core/stac.d.ts +12 -0
  128. package/core/stac.d.ts.map +1 -1
  129. package/core/stac.js +45 -15
  130. package/core/surfaces.d.ts +13 -0
  131. package/core/surfaces.d.ts.map +1 -1
  132. package/core/surfaces.js +127 -16
  133. package/core/types.d.ts +174 -7
  134. package/core/types.d.ts.map +1 -1
  135. package/core/wfs-capabilities.d.ts +12 -0
  136. package/core/wfs-capabilities.d.ts.map +1 -1
  137. package/core/wfs-capabilities.js +22 -3
  138. package/core/wfs.d.ts +13 -0
  139. package/core/wfs.d.ts.map +1 -1
  140. package/core/wfs.js +35 -5
  141. package/core/wms-capabilities.d.ts +56 -84
  142. package/core/wms-capabilities.d.ts.map +1 -1
  143. package/core/wms-capabilities.js +212 -509
  144. package/core/wmts-capabilities.d.ts +62 -62
  145. package/core/wmts-capabilities.d.ts.map +1 -1
  146. package/core/wmts-capabilities.js +224 -371
  147. package/esri-compat/editor.d.ts +8 -0
  148. package/esri-compat/editor.d.ts.map +1 -1
  149. package/esri-compat/editor.js +13 -0
  150. package/esri-compat/feature-layer.d.ts +2 -0
  151. package/esri-compat/feature-layer.d.ts.map +1 -1
  152. package/esri-compat/feature-layer.js +1 -0
  153. package/esri-compat/identity-manager.d.ts +43 -0
  154. package/esri-compat/identity-manager.d.ts.map +1 -1
  155. package/esri-compat/identity-manager.js +131 -1
  156. package/esri-compat/layer-list.d.ts +11 -0
  157. package/esri-compat/layer-list.d.ts.map +1 -1
  158. package/esri-compat/layer-list.js +49 -0
  159. package/esri-compat/legend.d.ts +10 -0
  160. package/esri-compat/legend.d.ts.map +1 -1
  161. package/esri-compat/legend.js +27 -0
  162. package/esri-compat/oauth-info.d.ts +15 -0
  163. package/esri-compat/oauth-info.d.ts.map +1 -1
  164. package/esri-compat/oauth-info.js +27 -0
  165. package/esri-compat/portal.d.ts +197 -0
  166. package/esri-compat/portal.d.ts.map +1 -0
  167. package/esri-compat/portal.js +251 -0
  168. package/esri-compat/renderer-objects.d.ts +40 -0
  169. package/esri-compat/renderer-objects.d.ts.map +1 -0
  170. package/esri-compat/renderer-objects.js +62 -0
  171. package/esri-compat/sketch.d.ts +43 -0
  172. package/esri-compat/sketch.d.ts.map +1 -1
  173. package/esri-compat/sketch.js +46 -0
  174. package/esri-compat/snapping.d.ts +43 -0
  175. package/esri-compat/snapping.d.ts.map +1 -0
  176. package/esri-compat/snapping.js +45 -0
  177. package/esri-compat/url.d.ts.map +1 -1
  178. package/esri-compat/url.js +1 -1
  179. package/esri-compat/widget-host.d.ts +84 -0
  180. package/esri-compat/widget-host.d.ts.map +1 -0
  181. package/esri-compat/widget-host.js +159 -0
  182. package/filter-registry/index.d.ts +145 -0
  183. package/filter-registry/index.d.ts.map +1 -0
  184. package/filter-registry/index.js +531 -0
  185. package/generated-app/errors.d.ts +18 -2
  186. package/generated-app/errors.d.ts.map +1 -1
  187. package/generated-app/errors.js +44 -11
  188. package/map/automatic-mount-integration.d.ts +134 -0
  189. package/map/automatic-mount-integration.d.ts.map +1 -0
  190. package/map/automatic-mount-integration.js +305 -0
  191. package/map/automatic-source-strategy.d.ts +125 -0
  192. package/map/automatic-source-strategy.d.ts.map +1 -0
  193. package/map/automatic-source-strategy.js +494 -0
  194. package/map/data-to-map-bridge.d.ts +293 -0
  195. package/map/data-to-map-bridge.d.ts.map +1 -0
  196. package/map/data-to-map-bridge.js +817 -0
  197. package/map/geojson-projection.d.ts +33 -0
  198. package/map/geojson-projection.d.ts.map +1 -0
  199. package/map/geojson-projection.js +118 -0
  200. package/map/index.d.ts +14 -0
  201. package/map/index.d.ts.map +1 -1
  202. package/map/index.js +8 -0
  203. package/map/raster-source-spec.d.ts +30 -0
  204. package/map/raster-source-spec.d.ts.map +1 -0
  205. package/map/raster-source-spec.js +190 -0
  206. package/map/raster-source-strategy.d.ts +65 -0
  207. package/map/raster-source-strategy.d.ts.map +1 -0
  208. package/map/raster-source-strategy.js +232 -0
  209. package/map/source-to-maplibre.d.ts +91 -0
  210. package/map/source-to-maplibre.d.ts.map +1 -0
  211. package/map/source-to-maplibre.js +454 -0
  212. package/map/temporal-playback.d.ts +139 -0
  213. package/map/temporal-playback.d.ts.map +1 -0
  214. package/map/temporal-playback.js +247 -0
  215. package/package.json +19 -1
  216. package/query-planner/canonical.d.ts +7 -0
  217. package/query-planner/canonical.d.ts.map +1 -0
  218. package/query-planner/canonical.js +145 -0
  219. package/query-planner/cql2-json.d.ts +17 -0
  220. package/query-planner/cql2-json.d.ts.map +1 -0
  221. package/query-planner/cql2-json.js +646 -0
  222. package/query-planner/diagnostics.d.ts +35 -0
  223. package/query-planner/diagnostics.d.ts.map +1 -0
  224. package/query-planner/diagnostics.js +373 -0
  225. package/query-planner/duckdb.d.ts +79 -0
  226. package/query-planner/duckdb.d.ts.map +1 -0
  227. package/query-planner/duckdb.js +758 -0
  228. package/query-planner/execution-context.d.ts +5 -0
  229. package/query-planner/execution-context.d.ts.map +1 -0
  230. package/query-planner/execution-context.js +50 -0
  231. package/query-planner/executor.d.ts +5 -0
  232. package/query-planner/executor.d.ts.map +1 -0
  233. package/query-planner/executor.js +223 -0
  234. package/query-planner/geoservices.d.ts +91 -0
  235. package/query-planner/geoservices.d.ts.map +1 -0
  236. package/query-planner/geoservices.js +667 -0
  237. package/query-planner/grpc.d.ts +100 -0
  238. package/query-planner/grpc.d.ts.map +1 -0
  239. package/query-planner/grpc.js +736 -0
  240. package/query-planner/index.d.ts +44 -0
  241. package/query-planner/index.d.ts.map +1 -0
  242. package/query-planner/index.js +30 -0
  243. package/query-planner/ir.d.ts +20 -0
  244. package/query-planner/ir.d.ts.map +1 -0
  245. package/query-planner/ir.js +417 -0
  246. package/query-planner/local-aggregate.d.ts +5 -0
  247. package/query-planner/local-aggregate.d.ts.map +1 -0
  248. package/query-planner/local-aggregate.js +126 -0
  249. package/query-planner/odata.d.ts +48 -0
  250. package/query-planner/odata.d.ts.map +1 -0
  251. package/query-planner/odata.js +662 -0
  252. package/query-planner/ogc-compiler.d.ts +55 -0
  253. package/query-planner/ogc-compiler.d.ts.map +1 -0
  254. package/query-planner/ogc-compiler.js +480 -0
  255. package/query-planner/ogc-features.d.ts +53 -0
  256. package/query-planner/ogc-features.d.ts.map +1 -0
  257. package/query-planner/ogc-features.js +617 -0
  258. package/query-planner/planner.d.ts +17 -0
  259. package/query-planner/planner.d.ts.map +1 -0
  260. package/query-planner/planner.js +818 -0
  261. package/query-planner/resource.d.ts +94 -0
  262. package/query-planner/resource.d.ts.map +1 -0
  263. package/query-planner/resource.js +526 -0
  264. package/query-planner/semantic-canonical.d.ts +15 -0
  265. package/query-planner/semantic-canonical.d.ts.map +1 -0
  266. package/query-planner/semantic-canonical.js +62 -0
  267. package/query-planner/semantic-compat.d.ts +10 -0
  268. package/query-planner/semantic-compat.d.ts.map +1 -0
  269. package/query-planner/semantic-compat.js +35 -0
  270. package/query-planner/semantic-compiler.d.ts +64 -0
  271. package/query-planner/semantic-compiler.d.ts.map +1 -0
  272. package/query-planner/semantic-compiler.js +81 -0
  273. package/query-planner/semantic-literals.d.ts +30 -0
  274. package/query-planner/semantic-literals.d.ts.map +1 -0
  275. package/query-planner/semantic-literals.js +133 -0
  276. package/query-planner/semantic-types.d.ts +265 -0
  277. package/query-planner/semantic-types.d.ts.map +1 -0
  278. package/query-planner/semantic-types.js +1 -0
  279. package/query-planner/semantic.d.ts +54 -0
  280. package/query-planner/semantic.d.ts.map +1 -0
  281. package/query-planner/semantic.js +1421 -0
  282. package/query-planner/types.d.ts +560 -0
  283. package/query-planner/types.d.ts.map +1 -0
  284. package/query-planner/types.js +49 -0
  285. package/query-planner/wfs-semantic.d.ts +58 -0
  286. package/query-planner/wfs-semantic.d.ts.map +1 -0
  287. package/query-planner/wfs-semantic.js +547 -0
  288. package/query-planner/wfs.d.ts +6 -0
  289. package/query-planner/wfs.d.ts.map +1 -0
  290. package/query-planner/wfs.js +71 -0
  291. package/react/external-map.d.ts +67 -0
  292. package/react/external-map.d.ts.map +1 -0
  293. package/react/external-map.js +63 -0
  294. package/react/honua-map.d.ts.map +1 -1
  295. package/react/honua-map.js +3 -2
  296. package/react/honua-source-layer.d.ts +110 -0
  297. package/react/honua-source-layer.d.ts.map +1 -0
  298. package/react/honua-source-layer.js +101 -0
  299. package/react/hooks.d.ts +28 -0
  300. package/react/hooks.d.ts.map +1 -1
  301. package/react/hooks.js +26 -4
  302. package/react/index.d.ts +8 -0
  303. package/react/index.d.ts.map +1 -1
  304. package/react/index.js +5 -0
  305. package/react/query-cache.d.ts +26 -4
  306. package/react/query-cache.d.ts.map +1 -1
  307. package/react/query-cache.js +51 -8
  308. package/react/selection.d.ts +177 -0
  309. package/react/selection.d.ts.map +1 -0
  310. package/react/selection.js +0 -0
  311. package/react/use-mounted-source.d.ts +69 -0
  312. package/react/use-mounted-source.d.ts.map +1 -0
  313. package/react/use-mounted-source.js +346 -0
  314. package/runtime/edit-snapping.d.ts +107 -0
  315. package/runtime/edit-snapping.d.ts.map +1 -0
  316. package/runtime/edit-snapping.js +190 -0
  317. package/runtime/errors.d.ts +3 -2
  318. package/runtime/errors.d.ts.map +1 -1
  319. package/runtime/errors.js +19 -2
  320. package/runtime/index.d.ts +8 -2
  321. package/runtime/index.d.ts.map +1 -1
  322. package/runtime/index.js +4 -4
  323. package/runtime/load-package.d.ts.map +1 -1
  324. package/runtime/load-package.js +8 -0
  325. package/runtime/map-package-validation.d.ts +0 -13
  326. package/runtime/map-package-validation.d.ts.map +1 -1
  327. package/runtime/map-package-validation.js +0 -12
  328. package/runtime/map-package.d.ts +1 -1
  329. package/runtime/map-package.d.ts.map +1 -1
  330. package/runtime/maplibre-renderer.d.ts +41 -0
  331. package/runtime/maplibre-renderer.d.ts.map +1 -0
  332. package/runtime/maplibre-renderer.js +322 -0
  333. package/runtime/pmtiles-protocol.d.ts +77 -0
  334. package/runtime/pmtiles-protocol.d.ts.map +1 -0
  335. package/runtime/pmtiles-protocol.js +120 -0
  336. package/runtime/query-tiles.d.ts +2 -1
  337. package/runtime/query-tiles.d.ts.map +1 -1
  338. package/runtime/query-tiles.js +6 -2
  339. package/runtime/source-bridge.d.ts +4 -4
  340. package/runtime/source-bridge.d.ts.map +1 -1
  341. package/runtime/source-bridge.js +36 -56
  342. package/runtime/style-interactions.d.ts +3 -2
  343. package/runtime/style-interactions.d.ts.map +1 -1
  344. package/runtime/style-interactions.js +11 -3
  345. package/runtime/terra-draw-sketch.d.ts +275 -0
  346. package/runtime/terra-draw-sketch.d.ts.map +1 -0
  347. package/runtime/terra-draw-sketch.js +404 -0
  348. package/source-capability-registry.d.ts +1 -0
  349. package/source-capability-registry.js +1 -0
  350. package/source-capability-types.d.ts +186 -0
  351. package/source-capability-types.js +7 -0
  352. package/style/index.d.ts +2 -0
  353. package/style/index.d.ts.map +1 -1
  354. package/style/index.js +2 -0
  355. package/style/renderers.d.ts +326 -0
  356. package/style/renderers.d.ts.map +1 -0
  357. package/style/renderers.js +517 -0
  358. package/webmap/convert-renderer.d.ts +24 -3
  359. package/webmap/convert-renderer.d.ts.map +1 -1
  360. package/webmap/convert-renderer.js +93 -112
  361. package/webmap/index.d.ts +1 -1
  362. package/webmap/index.d.ts.map +1 -1
  363. package/webmap/index.js +1 -1
@@ -0,0 +1,6 @@
1
+ import { type CapabilityAwareSource, type Source, type SourceDescriptor } from "./types.js";
2
+ /** @internal Validate a profile binding and derive its adapter-safe legacy set. */
3
+ export declare function normalizeCapabilityDescriptor(descriptor: SourceDescriptor): SourceDescriptor;
4
+ /** @internal Install one descriptor-authoritative capability view on a source handle. */
5
+ export declare function addCapabilitySupport<T>(source: Source<T>, descriptor: SourceDescriptor): CapabilityAwareSource<T>;
6
+ //# sourceMappingURL=source-capability-support.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"source-capability-support.d.ts","sourceRoot":"","sources":["../../../src/contract/source-capability-support.ts"],"names":[],"mappings":"AAMA,OAAO,EAGL,KAAK,qBAAqB,EAC1B,KAAK,MAAM,EACX,KAAK,gBAAgB,EACtB,MAAM,YAAY,CAAC;AAIpB,mFAAmF;AACnF,wBAAgB,6BAA6B,CAAC,UAAU,EAAE,gBAAgB,GAAG,gBAAgB,CAsC5F;AAED,yFAAyF;AACzF,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,gBAAgB,GAAG,qBAAqB,CAAC,CAAC,CAAC,CA4BjH"}
@@ -0,0 +1,154 @@
1
+ import { isRegisteredCapabilityProfile, matchesRegisteredCapabilityProfileSource, } from "../source-capability-registry.js";
2
+ import { sourceSchemaV2EnvelopeFingerprint } from "./schema-envelope.js";
3
+ import { CAPABILITIES, } from "./types.js";
4
+ const BUILT_IN_CAPABILITY_IDS = new Set(CAPABILITIES);
5
+ /** @internal Validate a profile binding and derive its adapter-safe legacy set. */
6
+ export function normalizeCapabilityDescriptor(descriptor) {
7
+ const profile = descriptor.capabilityProfile;
8
+ if (profile === undefined)
9
+ return descriptor;
10
+ if (!isRegisteredCapabilityProfile(profile)) {
11
+ throw new TypeError(`Source "${descriptor.id}" capabilityProfile must be evaluated or parsed by this SDK instance`);
12
+ }
13
+ if (descriptor.schemaV2 === undefined) {
14
+ throw new TypeError(`Source "${descriptor.id}" capabilityProfile requires a matching schemaV2 identity`);
15
+ }
16
+ const schemaFingerprint = sourceSchemaV2EnvelopeFingerprint(descriptor.schemaV2);
17
+ if (profile.sourceFingerprint !== schemaFingerprint) {
18
+ throw new TypeError(`Source "${descriptor.id}" capabilityProfile does not match its schemaV2 fingerprint`);
19
+ }
20
+ if (!matchesRegisteredCapabilityProfileSource(profile, descriptor)) {
21
+ throw new TypeError(`Source "${descriptor.id}" capabilityProfile does not match its endpoint fingerprint`);
22
+ }
23
+ const effectivelySupported = new Set(profile.entries.filter((entry) => entry.effective === "supported").map((entry) => entry.id));
24
+ const legacyCapabilities = [];
25
+ for (const capability of CAPABILITIES) {
26
+ if (descriptor.capabilities.has(capability) && effectivelySupported.has(capability)) {
27
+ legacyCapabilities.push(capability);
28
+ }
29
+ }
30
+ if (descriptor.capabilities instanceof ImmutableProfileCapabilitySet &&
31
+ descriptor.capabilities.size === legacyCapabilities.length &&
32
+ legacyCapabilities.every((capability) => descriptor.capabilities.has(capability))) {
33
+ return descriptor;
34
+ }
35
+ // The profile is authoritative after admission. Expose a mutation-resistant
36
+ // compatibility view even when its values happen to equal the caller's
37
+ // original Set; otherwise a cast back to Set could silently re-enable an
38
+ // operation after profile validation.
39
+ return { ...descriptor, capabilities: immutableProfileCapabilities(legacyCapabilities) };
40
+ }
41
+ /** @internal Install one descriptor-authoritative capability view on a source handle. */
42
+ export function addCapabilitySupport(source, descriptor) {
43
+ const profile = descriptor.capabilityProfile;
44
+ const supported = profile === undefined
45
+ ? undefined
46
+ : new Set(profile.entries.filter((entry) => entry.effective === "supported").map((entry) => entry.id));
47
+ const supports = ((capability) => {
48
+ if (typeof capability !== "string")
49
+ return false;
50
+ if (supported === undefined) {
51
+ return BUILT_IN_CAPABILITY_IDS.has(capability) && descriptor.capabilities.has(capability);
52
+ }
53
+ if (!supported.has(capability))
54
+ return false;
55
+ return !BUILT_IN_CAPABILITY_IDS.has(capability) || descriptor.capabilities.has(capability);
56
+ });
57
+ const members = [
58
+ { key: "descriptor", value: descriptor, enumerable: true },
59
+ { key: "capabilities", value: descriptor.capabilities, enumerable: true },
60
+ { key: "supports", value: supports, enumerable: false },
61
+ ...(profile !== undefined || Object.hasOwn(source, "capabilityProfile")
62
+ ? [{ key: "capabilityProfile", value: profile, enumerable: false }]
63
+ : []),
64
+ ];
65
+ if (members.every((member) => canInstallCapabilityMember(source, member))) {
66
+ for (const member of members)
67
+ installCapabilityMember(source, member);
68
+ return source;
69
+ }
70
+ return capabilitySupportFacade(source, descriptor, profile, supports);
71
+ }
72
+ function immutableProfileCapabilities(values) {
73
+ return Object.freeze(new ImmutableProfileCapabilitySet(values));
74
+ }
75
+ class ImmutableProfileCapabilitySet {
76
+ #values;
77
+ constructor(values) {
78
+ this.#values = new Set(values);
79
+ }
80
+ get size() {
81
+ return this.#values.size;
82
+ }
83
+ has(value) {
84
+ return this.#values.has(value);
85
+ }
86
+ entries() {
87
+ return this.#values.entries();
88
+ }
89
+ keys() {
90
+ return this.#values.keys();
91
+ }
92
+ values() {
93
+ return this.#values.values();
94
+ }
95
+ forEach(callbackfn, thisArg) {
96
+ for (const value of this.#values)
97
+ callbackfn.call(thisArg, value, value, this);
98
+ }
99
+ [Symbol.iterator]() {
100
+ return this.values();
101
+ }
102
+ [Symbol.toStringTag] = "Set";
103
+ }
104
+ function canInstallCapabilityMember(source, member) {
105
+ const current = Object.getOwnPropertyDescriptor(source, member.key);
106
+ if (current && !current.configurable) {
107
+ return "value" in current && current.value === member.value;
108
+ }
109
+ return Object.isExtensible(source) || current !== undefined;
110
+ }
111
+ function installCapabilityMember(source, member) {
112
+ const current = Object.getOwnPropertyDescriptor(source, member.key);
113
+ if (current && !current.configurable)
114
+ return;
115
+ Object.defineProperty(source, member.key, {
116
+ value: member.value,
117
+ configurable: true,
118
+ enumerable: member.enumerable,
119
+ writable: false,
120
+ });
121
+ }
122
+ function capabilitySupportFacade(source, descriptor, profile, supports) {
123
+ const overrides = new Map([
124
+ ["descriptor", descriptor],
125
+ ["capabilities", descriptor.capabilities],
126
+ ["supports", supports],
127
+ ["capabilityProfile", profile],
128
+ ]);
129
+ const boundMethods = new Map();
130
+ // An empty extensible proxy target avoids invariants from hostile or frozen
131
+ // resolver objects while every forwarded method remains bound to its real
132
+ // receiver (including private-field classes).
133
+ return new Proxy(Object.create(null), {
134
+ get(_target, key) {
135
+ if (overrides.has(key))
136
+ return overrides.get(key);
137
+ const value = Reflect.get(source, key, source);
138
+ if (typeof value !== "function")
139
+ return value;
140
+ const cached = boundMethods.get(key);
141
+ if (cached)
142
+ return cached;
143
+ const bound = value.bind(source);
144
+ boundMethods.set(key, bound);
145
+ return bound;
146
+ },
147
+ has(_target, key) {
148
+ return overrides.has(key) || Reflect.has(source, key);
149
+ },
150
+ getPrototypeOf() {
151
+ return Reflect.getPrototypeOf(source);
152
+ },
153
+ });
154
+ }
@@ -23,7 +23,8 @@ import { HonuaFeatureLayer, HonuaGeometryService, HonuaGeoprocessingService, Hon
23
23
  import { HonuaWfsFeatureType } from "../core/wfs.js";
24
24
  import { HonuaWms, HonuaWmsLayer } from "../core/wms.js";
25
25
  import { HonuaWmts, HonuaWmtsLayer, HonuaWmtsTileset } from "../core/wmts.js";
26
- import { type Capability, type CapabilityPolicy, type CreateDatasetOptions, type Dataset, type Protocol, type Source, type SourceDescriptor } from "./types.js";
26
+ import type { HonuaPmtilesArchive } from "./pmtiles.js";
27
+ import { type Capability, type CapabilityAwareSource, type CapabilityPolicy, type CreateDatasetOptions, type Dataset, type Protocol, type SourceDescriptor } from "./types.js";
27
28
  /**
28
29
  * Construct a protocol-neutral `Dataset` over a `HonuaClient`.
29
30
  *
@@ -102,7 +103,7 @@ export declare function createDataset(options: CreateDatasetOptions): Dataset;
102
103
  * });
103
104
  * ```
104
105
  */
105
- export declare function geoServicesFeatureSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
106
+ export declare function geoServicesFeatureSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): CapabilityAwareSource<T>;
106
107
  /**
107
108
  * Adapter factory for a GeoServices MapServer layer.
108
109
  *
@@ -124,7 +125,7 @@ export declare function geoServicesFeatureSource<T>(descriptor: SourceDescriptor
124
125
  * });
125
126
  * ```
126
127
  */
127
- export declare function geoServicesMapServiceSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
128
+ export declare function geoServicesMapServiceSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): CapabilityAwareSource<T>;
128
129
  /**
129
130
  * Adapter factory for an OGC API Features collection.
130
131
  *
@@ -146,7 +147,7 @@ export declare function geoServicesMapServiceSource<T>(descriptor: SourceDescrip
146
147
  * });
147
148
  * ```
148
149
  */
149
- export declare function ogcFeaturesSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
150
+ export declare function ogcFeaturesSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): CapabilityAwareSource<T>;
150
151
  /**
151
152
  * Build a `Source` over an Esri-style ImageServer endpoint. The query
152
153
  * surface drives the raster catalog (each row is a raster with footprint
@@ -169,7 +170,7 @@ export declare function ogcFeaturesSource<T>(descriptor: SourceDescriptor, clien
169
170
  * const png = await img?.exportImage({ bbox: [-158.5, 21.2, -157.6, 21.7], size: [512, 512] });
170
171
  * ```
171
172
  */
172
- export declare function geoServicesImageSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
173
+ export declare function geoServicesImageSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): CapabilityAwareSource<T>;
173
174
  /**
174
175
  * Build a `Source` over an Esri-style Geometry Service endpoint. Geometry
175
176
  * Service is a stateless utility — it does not host features — so the
@@ -187,7 +188,7 @@ export declare function geoServicesImageSource<T>(descriptor: SourceDescriptor,
187
188
  * });
188
189
  * ```
189
190
  */
190
- export declare function geoServicesGeometryServiceSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
191
+ export declare function geoServicesGeometryServiceSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): CapabilityAwareSource<T>;
191
192
  /**
192
193
  * Build a `Source` over an Esri-style GP (geoprocessing) service. GP
193
194
  * services run async tasks rather than hosting features; the canonical
@@ -201,7 +202,7 @@ export declare function geoServicesGeometryServiceSource<T>(descriptor: SourceDe
201
202
  * const result = await gp!.awaitJobResult(job.jobId);
202
203
  * ```
203
204
  */
204
- export declare function geoServicesGPServiceSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
205
+ export declare function geoServicesGPServiceSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): CapabilityAwareSource<T>;
205
206
  /**
206
207
  * Render-only Source adapter for OGC API Tiles. The query family throws
207
208
  * `HonuaCapabilityNotSupportedError` (the conformance class is
@@ -215,7 +216,35 @@ export declare function geoServicesGPServiceSource<T>(descriptor: SourceDescript
215
216
  * const bytes = await tiles!.tile({ tileMatrix: "WebMercatorQuad", tileRow: 5, tileCol: 8 });
216
217
  * ```
217
218
  */
218
- export declare function ogcTilesSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
219
+ export declare function ogcTilesSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): CapabilityAwareSource<T>;
220
+ /**
221
+ * Tiles-only Source adapter for a PMTiles archive (`protocol: "pmtiles"`).
222
+ *
223
+ * PMTiles archives are immutable single-file tile stores, so the canonical
224
+ * query family throws `HonuaCapabilityNotSupportedError` (there is no
225
+ * feature-query surface on an archive). Archive metadata — bounds, min/max
226
+ * zoom, and vector layer names — is inspected through the typed escape hatch:
227
+ * `Source.protocol("pmtiles").describe()`. Rendering integrations register the
228
+ * `pmtiles://` protocol on the map (see `@honua/sdk-js/runtime`) and reference
229
+ * the archive as a MapLibre source `url`.
230
+ *
231
+ * `locator.url` may carry a leading `pmtiles://` scheme (the MapLibre form) or
232
+ * be a bare archive URL; both resolve to the same archive.
233
+ *
234
+ * This builds the escape-hatch adapter through {@link pmtilesProtocolModule}
235
+ * (issue #538) rather than constructing `HonuaPmtilesArchive` directly, so
236
+ * the built-in wiring runs the same public `ProtocolModule` seam a module
237
+ * registered through `HonuaPluginRegistry` uses
238
+ * (`pmtilesProtocolPlugin`, `@honua/sdk-js/plugin`).
239
+ *
240
+ * @example
241
+ * ```ts
242
+ * const archive = dataset.source("basemap")!.protocol("pmtiles");
243
+ * const info = await archive!.describe();
244
+ * console.log(info.bounds, info.vectorLayers.map((layer) => layer.id));
245
+ * ```
246
+ */
247
+ export declare function pmtilesSource<T>(descriptor: SourceDescriptor, _client: HonuaClient, policy: CapabilityPolicy): CapabilityAwareSource<T>;
219
248
  /**
220
249
  * Render-only Source adapter for OGC API Maps. Same shape as the Tiles
221
250
  * adapter — `Source.protocol("ogc-maps")` exposes the runtime class for
@@ -227,7 +256,7 @@ export declare function ogcTilesSource<T>(descriptor: SourceDescriptor, client:
227
256
  * const png = await maps!.map({ bbox: [-158, 21, -157, 22], width: 512, height: 512 });
228
257
  * ```
229
258
  */
230
- export declare function ogcMapsSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
259
+ export declare function ogcMapsSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): CapabilityAwareSource<T>;
231
260
  /**
232
261
  * Metadata-catalog Source adapter for OGC API Records. The canonical query
233
262
  * family searches one catalog (`locator.collectionId`, the Records
@@ -241,7 +270,7 @@ export declare function ogcMapsSource<T>(descriptor: SourceDescriptor, client: H
241
270
  * const result = await records.query({ where: "type = 'dataset' AND q = 'parcels'" });
242
271
  * ```
243
272
  */
244
- export declare function ogcRecordsSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
273
+ export declare function ogcRecordsSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): CapabilityAwareSource<T>;
245
274
  /**
246
275
  * `Source` adapter for first-party WMS 1.3.0 services. The render path
247
276
  * routes through `HonuaWms` / `HonuaWmsLayer` (both of which sit
@@ -269,7 +298,7 @@ export declare function ogcRecordsSource<T>(descriptor: SourceDescriptor, client
269
298
  * });
270
299
  * ```
271
300
  */
272
- export declare function wmsSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
301
+ export declare function wmsSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): CapabilityAwareSource<T>;
273
302
  /**
274
303
  * Render-only `Source` adapter for first-party WMTS 1.0.0 services.
275
304
  * `Source.query()` throws because WMTS GetFeatureInfo is keyed on tile
@@ -287,7 +316,7 @@ export declare function wmsSource<T>(descriptor: SourceDescriptor, client: Honua
287
316
  * const tile = await wmts!.tile({ tileMatrixSet: "WebMercatorQuad", tileMatrix: "8", tileRow: 5, tileCol: 8 });
288
317
  * ```
289
318
  */
290
- export declare function wmtsSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
319
+ export declare function wmtsSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): CapabilityAwareSource<T>;
291
320
  /**
292
321
  * Adapter factory for a STAC API search endpoint.
293
322
  *
@@ -316,7 +345,7 @@ export declare function wmtsSource<T>(descriptor: SourceDescriptor, client: Honu
316
345
  * });
317
346
  * ```
318
347
  */
319
- export declare function stacSearchSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
348
+ export declare function stacSearchSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): CapabilityAwareSource<T>;
320
349
  /**
321
350
  * Adapter factory for a WFS 2.0 endpoint.
322
351
  *
@@ -343,7 +372,7 @@ export declare function stacSearchSource<T>(descriptor: SourceDescriptor, client
343
372
  * });
344
373
  * ```
345
374
  */
346
- export declare function wfsSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
375
+ export declare function wfsSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): CapabilityAwareSource<T>;
347
376
  /**
348
377
  * Build a `Source` over an OData v4 entity set. The `Query` translation
349
378
  * lowers `where` / `outFields` / `orderBy` / pagination / spatial filter
@@ -358,6 +387,18 @@ export declare function wfsSource<T>(descriptor: SourceDescriptor, client: Honua
358
387
  * precedent for the metadata-driven downgrade pattern referenced in
359
388
  * `docs/shared-client-contract.md`.
360
389
  */
390
+ /** JSON write policy for the canonical OData source adapter. */
391
+ export type OdataWriteEncoding = "legacy" | "lossless-json";
392
+ /** Options for {@link odataSource}. */
393
+ export interface OdataSourceOptions {
394
+ /**
395
+ * Opt into metadata-driven exact EDM body and key encoding. `Edm.Int64`
396
+ * and `Edm.Decimal` values become validated JSON strings and request media
397
+ * types receive `IEEE754Compatible=true` only when required. Defaults to
398
+ * `legacy`, preserving the original JSON bytes and key formatting.
399
+ */
400
+ readonly writeEncoding?: OdataWriteEncoding;
401
+ }
361
402
  /**
362
403
  * Adapter factory for an OData v4 entity set.
363
404
  *
@@ -385,7 +426,7 @@ export declare function wfsSource<T>(descriptor: SourceDescriptor, client: Honua
385
426
  * });
386
427
  * ```
387
428
  */
388
- export declare function odataSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
429
+ export declare function odataSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy, options?: OdataSourceOptions): CapabilityAwareSource<T>;
389
430
  /**
390
431
  * Declare the shipped adapter → runtime-class bindings so
391
432
  * `Source.adapter("geoservices-feature-service")` et al. narrow to the
@@ -414,6 +455,7 @@ declare module "./types.js" {
414
455
  "wmts-layer": HonuaWmtsLayer;
415
456
  "wmts-tileset": HonuaWmtsTileset;
416
457
  odata: HonuaOdataEntitySet;
458
+ pmtiles: HonuaPmtilesArchive;
417
459
  }
418
460
  }
419
461
  /** Sentinel: `Capabilities` set that contains every defined capability. */
@@ -1 +1 @@
1
- {"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../../src/contract/source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAIL,mBAAmB,EAOpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;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