@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.
- package/contract/discovery.d.ts +231 -0
- package/contract/discovery.d.ts.map +1 -0
- package/contract/discovery.js +554 -0
- package/contract/edit-sketch.d.ts +8 -0
- package/contract/edit-sketch.d.ts.map +1 -1
- package/contract/edit-sketch.js +15 -0
- package/contract/edit-snapping.d.ts +160 -0
- package/contract/edit-snapping.d.ts.map +1 -0
- package/contract/edit-snapping.js +675 -0
- package/contract/generated/projjson-v0.7-crs-validator.d.ts +35 -0
- package/contract/generated/projjson-v0.7-crs-validator.d.ts.map +1 -0
- package/contract/generated/projjson-v0.7-crs-validator.js +3941 -0
- package/contract/index.d.ts +12 -1
- package/contract/index.d.ts.map +1 -1
- package/contract/index.js +4 -0
- package/contract/pmtiles.d.ts +193 -0
- package/contract/pmtiles.d.ts.map +1 -0
- package/contract/pmtiles.js +195 -0
- package/contract/protocol-module.d.ts +70 -0
- package/contract/protocol-module.d.ts.map +1 -0
- package/contract/protocol-module.js +1 -0
- package/contract/schema-envelope.d.ts +26 -0
- package/contract/schema-envelope.d.ts.map +1 -0
- package/contract/schema-envelope.js +25 -0
- package/contract/schema.d.ts +582 -0
- package/contract/schema.d.ts.map +1 -0
- package/contract/schema.js +2483 -0
- package/contract/source-capability-support.d.ts +6 -0
- package/contract/source-capability-support.d.ts.map +1 -0
- package/contract/source-capability-support.js +154 -0
- package/contract/source.d.ts +57 -15
- package/contract/source.d.ts.map +1 -1
- package/contract/source.js +368 -65
- package/contract/types.d.ts +171 -6
- package/contract/types.d.ts.map +1 -1
- package/contract/types.js +14 -14
- package/core/auth/client-credentials-provider.d.ts +51 -0
- package/core/auth/client-credentials-provider.d.ts.map +1 -0
- package/core/auth/client-credentials-provider.js +115 -0
- package/core/auth/credential-store.d.ts +52 -0
- package/core/auth/credential-store.d.ts.map +1 -0
- package/core/auth/credential-store.js +82 -0
- package/core/auth/index.d.ts +23 -0
- package/core/auth/index.d.ts.map +1 -0
- package/core/auth/index.js +20 -0
- package/core/auth/oauth2-provider.d.ts +114 -0
- package/core/auth/oauth2-provider.d.ts.map +1 -0
- package/core/auth/oauth2-provider.js +408 -0
- package/core/auth/pkce.d.ts +25 -0
- package/core/auth/pkce.d.ts.map +1 -0
- package/core/auth/pkce.js +46 -0
- package/core/auth/static-providers.d.ts +20 -0
- package/core/auth/static-providers.d.ts.map +1 -0
- package/core/auth/static-providers.js +26 -0
- package/core/auth/token-endpoint.d.ts +40 -0
- package/core/auth/token-endpoint.d.ts.map +1 -0
- package/core/auth/token-endpoint.js +133 -0
- package/core/auth/types.d.ts +144 -0
- package/core/auth/types.d.ts.map +1 -0
- package/core/auth/types.js +8 -0
- package/core/bounded-json.d.ts +4 -0
- package/core/bounded-json.d.ts.map +1 -0
- package/core/bounded-json.js +38 -0
- package/core/cache-state.d.ts +9 -0
- package/core/cache-state.d.ts.map +1 -1
- package/core/cache-state.js +10 -0
- package/core/capabilities-xml.d.ts +33 -0
- package/core/capabilities-xml.d.ts.map +1 -0
- package/core/capabilities-xml.js +331 -0
- package/core/client.d.ts +35 -2
- package/core/client.d.ts.map +1 -1
- package/core/client.js +167 -29
- package/core/error-classifications.d.ts +153 -0
- package/core/error-classifications.d.ts.map +1 -0
- package/core/error-classifications.js +140 -0
- package/core/error-code-registry.d.ts +158 -0
- package/core/error-code-registry.d.ts.map +1 -0
- package/core/error-code-registry.js +143 -0
- package/core/error-envelope.d.ts +68 -0
- package/core/error-envelope.d.ts.map +1 -0
- package/core/error-envelope.js +357 -0
- package/core/errors.d.ts +73 -25
- package/core/errors.d.ts.map +1 -1
- package/core/errors.js +113 -46
- package/core/geoparquet-sql.d.ts +190 -0
- package/core/geoparquet-sql.d.ts.map +1 -0
- package/core/geoparquet-sql.js +368 -0
- package/core/odata-key-path.d.ts +12 -0
- package/core/odata-key-path.d.ts.map +1 -0
- package/core/odata-key-path.js +28 -0
- package/core/odata-write-codec.d.ts +66 -0
- package/core/odata-write-codec.d.ts.map +1 -0
- package/core/odata-write-codec.js +1083 -0
- package/core/odata.d.ts +59 -7
- package/core/odata.d.ts.map +1 -1
- package/core/odata.js +431 -99
- package/core/ogc-endpoint-layout.d.ts +70 -0
- package/core/ogc-endpoint-layout.d.ts.map +1 -0
- package/core/ogc-endpoint-layout.js +173 -0
- package/core/ogc-features.d.ts.map +1 -1
- package/core/ogc-features.js +35 -17
- package/core/ogc-maps.d.ts +7 -0
- package/core/ogc-maps.d.ts.map +1 -1
- package/core/ogc-maps.js +46 -7
- package/core/ogc-processes.d.ts +2 -1
- package/core/ogc-processes.d.ts.map +1 -1
- package/core/ogc-processes.js +33 -5
- package/core/ogc-records.d.ts +9 -0
- package/core/ogc-records.d.ts.map +1 -1
- package/core/ogc-records.js +78 -29
- package/core/ogc-tiles.d.ts +10 -1
- package/core/ogc-tiles.d.ts.map +1 -1
- package/core/ogc-tiles.js +56 -17
- package/core/path-utils.d.ts +9 -0
- package/core/path-utils.d.ts.map +1 -1
- package/core/path-utils.js +19 -0
- package/core/protocol-transport.d.ts +1 -0
- package/core/protocol-transport.d.ts.map +1 -1
- package/core/request-pipeline.d.ts.map +1 -1
- package/core/request-pipeline.js +1 -1
- package/core/spatial-filter.d.ts +8 -4
- package/core/spatial-filter.d.ts.map +1 -1
- package/core/spatial-filter.js +206 -16
- package/core/stac-static.d.ts +55 -0
- package/core/stac-static.d.ts.map +1 -0
- package/core/stac-static.js +386 -0
- package/core/stac.d.ts +12 -0
- package/core/stac.d.ts.map +1 -1
- package/core/stac.js +45 -15
- package/core/surfaces.d.ts +13 -0
- package/core/surfaces.d.ts.map +1 -1
- package/core/surfaces.js +127 -16
- package/core/types.d.ts +174 -7
- package/core/types.d.ts.map +1 -1
- package/core/wfs-capabilities.d.ts +12 -0
- package/core/wfs-capabilities.d.ts.map +1 -1
- package/core/wfs-capabilities.js +22 -3
- package/core/wfs.d.ts +13 -0
- package/core/wfs.d.ts.map +1 -1
- package/core/wfs.js +35 -5
- package/core/wms-capabilities.d.ts +56 -84
- package/core/wms-capabilities.d.ts.map +1 -1
- package/core/wms-capabilities.js +212 -509
- package/core/wmts-capabilities.d.ts +62 -62
- package/core/wmts-capabilities.d.ts.map +1 -1
- package/core/wmts-capabilities.js +224 -371
- package/esri-compat/editor.d.ts +8 -0
- package/esri-compat/editor.d.ts.map +1 -1
- package/esri-compat/editor.js +13 -0
- package/esri-compat/feature-layer.d.ts +2 -0
- package/esri-compat/feature-layer.d.ts.map +1 -1
- package/esri-compat/feature-layer.js +1 -0
- package/esri-compat/identity-manager.d.ts +43 -0
- package/esri-compat/identity-manager.d.ts.map +1 -1
- package/esri-compat/identity-manager.js +131 -1
- package/esri-compat/layer-list.d.ts +11 -0
- package/esri-compat/layer-list.d.ts.map +1 -1
- package/esri-compat/layer-list.js +49 -0
- package/esri-compat/legend.d.ts +10 -0
- package/esri-compat/legend.d.ts.map +1 -1
- package/esri-compat/legend.js +27 -0
- package/esri-compat/oauth-info.d.ts +15 -0
- package/esri-compat/oauth-info.d.ts.map +1 -1
- package/esri-compat/oauth-info.js +27 -0
- package/esri-compat/portal.d.ts +197 -0
- package/esri-compat/portal.d.ts.map +1 -0
- package/esri-compat/portal.js +251 -0
- package/esri-compat/renderer-objects.d.ts +40 -0
- package/esri-compat/renderer-objects.d.ts.map +1 -0
- package/esri-compat/renderer-objects.js +62 -0
- package/esri-compat/sketch.d.ts +43 -0
- package/esri-compat/sketch.d.ts.map +1 -1
- package/esri-compat/sketch.js +46 -0
- package/esri-compat/snapping.d.ts +43 -0
- package/esri-compat/snapping.d.ts.map +1 -0
- package/esri-compat/snapping.js +45 -0
- package/esri-compat/url.d.ts.map +1 -1
- package/esri-compat/url.js +1 -1
- package/esri-compat/widget-host.d.ts +84 -0
- package/esri-compat/widget-host.d.ts.map +1 -0
- package/esri-compat/widget-host.js +159 -0
- package/filter-registry/index.d.ts +145 -0
- package/filter-registry/index.d.ts.map +1 -0
- package/filter-registry/index.js +531 -0
- package/generated-app/errors.d.ts +18 -2
- package/generated-app/errors.d.ts.map +1 -1
- package/generated-app/errors.js +44 -11
- package/map/automatic-mount-integration.d.ts +134 -0
- package/map/automatic-mount-integration.d.ts.map +1 -0
- package/map/automatic-mount-integration.js +305 -0
- package/map/automatic-source-strategy.d.ts +125 -0
- package/map/automatic-source-strategy.d.ts.map +1 -0
- package/map/automatic-source-strategy.js +494 -0
- package/map/data-to-map-bridge.d.ts +293 -0
- package/map/data-to-map-bridge.d.ts.map +1 -0
- package/map/data-to-map-bridge.js +817 -0
- package/map/geojson-projection.d.ts +33 -0
- package/map/geojson-projection.d.ts.map +1 -0
- package/map/geojson-projection.js +118 -0
- package/map/index.d.ts +14 -0
- package/map/index.d.ts.map +1 -1
- package/map/index.js +8 -0
- package/map/raster-source-spec.d.ts +30 -0
- package/map/raster-source-spec.d.ts.map +1 -0
- package/map/raster-source-spec.js +190 -0
- package/map/raster-source-strategy.d.ts +65 -0
- package/map/raster-source-strategy.d.ts.map +1 -0
- package/map/raster-source-strategy.js +232 -0
- package/map/source-to-maplibre.d.ts +91 -0
- package/map/source-to-maplibre.d.ts.map +1 -0
- package/map/source-to-maplibre.js +454 -0
- package/map/temporal-playback.d.ts +139 -0
- package/map/temporal-playback.d.ts.map +1 -0
- package/map/temporal-playback.js +247 -0
- package/package.json +19 -1
- package/query-planner/canonical.d.ts +7 -0
- package/query-planner/canonical.d.ts.map +1 -0
- package/query-planner/canonical.js +145 -0
- package/query-planner/cql2-json.d.ts +17 -0
- package/query-planner/cql2-json.d.ts.map +1 -0
- package/query-planner/cql2-json.js +646 -0
- package/query-planner/diagnostics.d.ts +35 -0
- package/query-planner/diagnostics.d.ts.map +1 -0
- package/query-planner/diagnostics.js +373 -0
- package/query-planner/duckdb.d.ts +79 -0
- package/query-planner/duckdb.d.ts.map +1 -0
- package/query-planner/duckdb.js +758 -0
- package/query-planner/execution-context.d.ts +5 -0
- package/query-planner/execution-context.d.ts.map +1 -0
- package/query-planner/execution-context.js +50 -0
- package/query-planner/executor.d.ts +5 -0
- package/query-planner/executor.d.ts.map +1 -0
- package/query-planner/executor.js +223 -0
- package/query-planner/geoservices.d.ts +91 -0
- package/query-planner/geoservices.d.ts.map +1 -0
- package/query-planner/geoservices.js +667 -0
- package/query-planner/grpc.d.ts +100 -0
- package/query-planner/grpc.d.ts.map +1 -0
- package/query-planner/grpc.js +736 -0
- package/query-planner/index.d.ts +44 -0
- package/query-planner/index.d.ts.map +1 -0
- package/query-planner/index.js +30 -0
- package/query-planner/ir.d.ts +20 -0
- package/query-planner/ir.d.ts.map +1 -0
- package/query-planner/ir.js +417 -0
- package/query-planner/local-aggregate.d.ts +5 -0
- package/query-planner/local-aggregate.d.ts.map +1 -0
- package/query-planner/local-aggregate.js +126 -0
- package/query-planner/odata.d.ts +48 -0
- package/query-planner/odata.d.ts.map +1 -0
- package/query-planner/odata.js +662 -0
- package/query-planner/ogc-compiler.d.ts +55 -0
- package/query-planner/ogc-compiler.d.ts.map +1 -0
- package/query-planner/ogc-compiler.js +480 -0
- package/query-planner/ogc-features.d.ts +53 -0
- package/query-planner/ogc-features.d.ts.map +1 -0
- package/query-planner/ogc-features.js +617 -0
- package/query-planner/planner.d.ts +17 -0
- package/query-planner/planner.d.ts.map +1 -0
- package/query-planner/planner.js +818 -0
- package/query-planner/resource.d.ts +94 -0
- package/query-planner/resource.d.ts.map +1 -0
- package/query-planner/resource.js +526 -0
- package/query-planner/semantic-canonical.d.ts +15 -0
- package/query-planner/semantic-canonical.d.ts.map +1 -0
- package/query-planner/semantic-canonical.js +62 -0
- package/query-planner/semantic-compat.d.ts +10 -0
- package/query-planner/semantic-compat.d.ts.map +1 -0
- package/query-planner/semantic-compat.js +35 -0
- package/query-planner/semantic-compiler.d.ts +64 -0
- package/query-planner/semantic-compiler.d.ts.map +1 -0
- package/query-planner/semantic-compiler.js +81 -0
- package/query-planner/semantic-literals.d.ts +30 -0
- package/query-planner/semantic-literals.d.ts.map +1 -0
- package/query-planner/semantic-literals.js +133 -0
- package/query-planner/semantic-types.d.ts +265 -0
- package/query-planner/semantic-types.d.ts.map +1 -0
- package/query-planner/semantic-types.js +1 -0
- package/query-planner/semantic.d.ts +54 -0
- package/query-planner/semantic.d.ts.map +1 -0
- package/query-planner/semantic.js +1421 -0
- package/query-planner/types.d.ts +560 -0
- package/query-planner/types.d.ts.map +1 -0
- package/query-planner/types.js +49 -0
- package/query-planner/wfs-semantic.d.ts +58 -0
- package/query-planner/wfs-semantic.d.ts.map +1 -0
- package/query-planner/wfs-semantic.js +547 -0
- package/query-planner/wfs.d.ts +6 -0
- package/query-planner/wfs.d.ts.map +1 -0
- package/query-planner/wfs.js +71 -0
- package/react/external-map.d.ts +67 -0
- package/react/external-map.d.ts.map +1 -0
- package/react/external-map.js +63 -0
- package/react/honua-map.d.ts.map +1 -1
- package/react/honua-map.js +3 -2
- package/react/honua-source-layer.d.ts +110 -0
- package/react/honua-source-layer.d.ts.map +1 -0
- package/react/honua-source-layer.js +101 -0
- package/react/hooks.d.ts +28 -0
- package/react/hooks.d.ts.map +1 -1
- package/react/hooks.js +26 -4
- package/react/index.d.ts +8 -0
- package/react/index.d.ts.map +1 -1
- package/react/index.js +5 -0
- package/react/query-cache.d.ts +26 -4
- package/react/query-cache.d.ts.map +1 -1
- package/react/query-cache.js +51 -8
- package/react/selection.d.ts +177 -0
- package/react/selection.d.ts.map +1 -0
- package/react/selection.js +0 -0
- package/react/use-mounted-source.d.ts +69 -0
- package/react/use-mounted-source.d.ts.map +1 -0
- package/react/use-mounted-source.js +346 -0
- package/runtime/edit-snapping.d.ts +107 -0
- package/runtime/edit-snapping.d.ts.map +1 -0
- package/runtime/edit-snapping.js +190 -0
- package/runtime/errors.d.ts +3 -2
- package/runtime/errors.d.ts.map +1 -1
- package/runtime/errors.js +19 -2
- package/runtime/index.d.ts +8 -2
- package/runtime/index.d.ts.map +1 -1
- package/runtime/index.js +4 -4
- package/runtime/load-package.d.ts.map +1 -1
- package/runtime/load-package.js +8 -0
- package/runtime/map-package-validation.d.ts +0 -13
- package/runtime/map-package-validation.d.ts.map +1 -1
- package/runtime/map-package-validation.js +0 -12
- package/runtime/map-package.d.ts +1 -1
- package/runtime/map-package.d.ts.map +1 -1
- package/runtime/maplibre-renderer.d.ts +41 -0
- package/runtime/maplibre-renderer.d.ts.map +1 -0
- package/runtime/maplibre-renderer.js +322 -0
- package/runtime/pmtiles-protocol.d.ts +77 -0
- package/runtime/pmtiles-protocol.d.ts.map +1 -0
- package/runtime/pmtiles-protocol.js +120 -0
- package/runtime/query-tiles.d.ts +2 -1
- package/runtime/query-tiles.d.ts.map +1 -1
- package/runtime/query-tiles.js +6 -2
- package/runtime/source-bridge.d.ts +4 -4
- package/runtime/source-bridge.d.ts.map +1 -1
- package/runtime/source-bridge.js +36 -56
- package/runtime/style-interactions.d.ts +3 -2
- package/runtime/style-interactions.d.ts.map +1 -1
- package/runtime/style-interactions.js +11 -3
- package/runtime/terra-draw-sketch.d.ts +275 -0
- package/runtime/terra-draw-sketch.d.ts.map +1 -0
- package/runtime/terra-draw-sketch.js +404 -0
- package/source-capability-registry.d.ts +1 -0
- package/source-capability-registry.js +1 -0
- package/source-capability-types.d.ts +186 -0
- package/source-capability-types.js +7 -0
- package/style/index.d.ts +2 -0
- package/style/index.d.ts.map +1 -1
- package/style/index.js +2 -0
- package/style/renderers.d.ts +326 -0
- package/style/renderers.d.ts.map +1 -0
- package/style/renderers.js +517 -0
- package/webmap/convert-renderer.d.ts +24 -3
- package/webmap/convert-renderer.d.ts.map +1 -1
- package/webmap/convert-renderer.js +93 -112
- package/webmap/index.d.ts +1 -1
- package/webmap/index.d.ts.map +1 -1
- package/webmap/index.js +1 -1
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical descriptive registry for public Honua SDK error codes.
|
|
3
|
+
*
|
|
4
|
+
* The error base consumes a compact classification table so focused SDK
|
|
5
|
+
* entrypoints do not retain these human-readable summaries. The registry
|
|
6
|
+
* remains the public documentation source of truth; `check:error-codes`
|
|
7
|
+
* verifies the compact table against every descriptor.
|
|
8
|
+
*/
|
|
9
|
+
export type HonuaErrorDomain = "core" | "discovery" | "query" | "map" | "runtime" | "realtime" | "offline" | "plugin" | "agent" | "app";
|
|
10
|
+
export type HonuaErrorCategory = "authentication" | "cancellation" | "capability" | "internal" | "network" | "protocol" | "timeout" | "validation";
|
|
11
|
+
export interface HonuaErrorCodeDescriptor {
|
|
12
|
+
readonly domain: HonuaErrorDomain;
|
|
13
|
+
readonly category: HonuaErrorCategory;
|
|
14
|
+
readonly retryable: boolean;
|
|
15
|
+
readonly summary: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Canonical public code registry. Object keys make duplicate codes a compile
|
|
19
|
+
* error; the base constructor rejects codes absent from this registry.
|
|
20
|
+
*/
|
|
21
|
+
export declare const HONUA_ERROR_CODE_REGISTRY: Readonly<{
|
|
22
|
+
readonly "core.http.transient": HonuaErrorCodeDescriptor;
|
|
23
|
+
readonly "core.http.rejected": HonuaErrorCodeDescriptor;
|
|
24
|
+
readonly "core.timeout": HonuaErrorCodeDescriptor;
|
|
25
|
+
readonly "core.network": HonuaErrorCodeDescriptor;
|
|
26
|
+
readonly "core.cancelled": HonuaErrorCodeDescriptor;
|
|
27
|
+
readonly "core.grpc.transient": HonuaErrorCodeDescriptor;
|
|
28
|
+
readonly "core.grpc.rejected": HonuaErrorCodeDescriptor;
|
|
29
|
+
readonly "core.geometry.unknown-geometry": HonuaErrorCodeDescriptor;
|
|
30
|
+
readonly "core.geometry.malformed-geometry": HonuaErrorCodeDescriptor;
|
|
31
|
+
readonly "core.auth.interaction-required": HonuaErrorCodeDescriptor;
|
|
32
|
+
readonly "core.auth.refresh-failed": HonuaErrorCodeDescriptor;
|
|
33
|
+
readonly "core.auth.invalid-grant": HonuaErrorCodeDescriptor;
|
|
34
|
+
readonly "core.capability-not-supported": HonuaErrorCodeDescriptor;
|
|
35
|
+
readonly "core.exploration-context": HonuaErrorCodeDescriptor;
|
|
36
|
+
readonly "core.wfs-exception": HonuaErrorCodeDescriptor;
|
|
37
|
+
readonly "core.job-failed": HonuaErrorCodeDescriptor;
|
|
38
|
+
readonly "core.wms-capabilities-parse": HonuaErrorCodeDescriptor;
|
|
39
|
+
readonly "core.wmts-capabilities-parse": HonuaErrorCodeDescriptor;
|
|
40
|
+
readonly "discovery.ambiguous-protocol": HonuaErrorCodeDescriptor;
|
|
41
|
+
readonly "discovery.ambiguous-source": HonuaErrorCodeDescriptor;
|
|
42
|
+
readonly "discovery.invalid-endpoint": HonuaErrorCodeDescriptor;
|
|
43
|
+
readonly "discovery.invalid-cache-identity": HonuaErrorCodeDescriptor;
|
|
44
|
+
readonly "discovery.invalid-discovery-cache": HonuaErrorCodeDescriptor;
|
|
45
|
+
readonly "discovery.invalid-capability": HonuaErrorCodeDescriptor;
|
|
46
|
+
readonly "discovery.unsupported-protocol": HonuaErrorCodeDescriptor;
|
|
47
|
+
readonly "discovery.protocol-mismatch": HonuaErrorCodeDescriptor;
|
|
48
|
+
readonly "query.planning.invalid-query": HonuaErrorCodeDescriptor;
|
|
49
|
+
readonly "query.planning.unsupported-compiler": HonuaErrorCodeDescriptor;
|
|
50
|
+
readonly "query.planning.unsupported-query": HonuaErrorCodeDescriptor;
|
|
51
|
+
readonly "query.planning.capability-not-supported": HonuaErrorCodeDescriptor;
|
|
52
|
+
readonly "query.planning.fallback-disabled": HonuaErrorCodeDescriptor;
|
|
53
|
+
readonly "query.planning.unsafe-materialization": HonuaErrorCodeDescriptor;
|
|
54
|
+
readonly "query.execution.invalid-plan": HonuaErrorCodeDescriptor;
|
|
55
|
+
readonly "query.execution.plan-context-mismatch": HonuaErrorCodeDescriptor;
|
|
56
|
+
readonly "query.execution.unsafe-materialization": HonuaErrorCodeDescriptor;
|
|
57
|
+
readonly "query.execution.invalid-resource-handle": HonuaErrorCodeDescriptor;
|
|
58
|
+
readonly "query.execution.resource-unavailable": HonuaErrorCodeDescriptor;
|
|
59
|
+
readonly "query.execution.resource-expired": HonuaErrorCodeDescriptor;
|
|
60
|
+
readonly "query.execution.resource-resolution-failed": HonuaErrorCodeDescriptor;
|
|
61
|
+
readonly "query.execution.resource-execution-failed": HonuaErrorCodeDescriptor;
|
|
62
|
+
readonly "map.source-adapter.disposed": HonuaErrorCodeDescriptor;
|
|
63
|
+
readonly "map.source-adapter.source-conflict": HonuaErrorCodeDescriptor;
|
|
64
|
+
readonly "map.source-adapter.layer-conflict": HonuaErrorCodeDescriptor;
|
|
65
|
+
readonly "map.source-adapter.unsupported-plan": HonuaErrorCodeDescriptor;
|
|
66
|
+
readonly "map.source-adapter.invalid-option": HonuaErrorCodeDescriptor;
|
|
67
|
+
readonly "map.source-adapter.map-mutation-failed": HonuaErrorCodeDescriptor;
|
|
68
|
+
readonly "map.data-bridge.invalid-option": HonuaErrorCodeDescriptor;
|
|
69
|
+
readonly "map.data-bridge.disposed": HonuaErrorCodeDescriptor;
|
|
70
|
+
readonly "map.data-bridge.source-conflict": HonuaErrorCodeDescriptor;
|
|
71
|
+
readonly "map.data-bridge.layer-conflict": HonuaErrorCodeDescriptor;
|
|
72
|
+
readonly "map.data-bridge.map-mutation-failed": HonuaErrorCodeDescriptor;
|
|
73
|
+
readonly "map.data-bridge.interaction-unsupported": HonuaErrorCodeDescriptor;
|
|
74
|
+
readonly "map.data-bridge.filter-unsupported": HonuaErrorCodeDescriptor;
|
|
75
|
+
readonly "map.automatic-strategy.no-eligible-strategy": HonuaErrorCodeDescriptor;
|
|
76
|
+
readonly "map.automatic-strategy.stale-plan": HonuaErrorCodeDescriptor;
|
|
77
|
+
readonly "map.automatic-strategy.source-conflict": HonuaErrorCodeDescriptor;
|
|
78
|
+
readonly "map.automatic-strategy.layer-conflict": HonuaErrorCodeDescriptor;
|
|
79
|
+
readonly "map.automatic-strategy.map-mutation-failed": HonuaErrorCodeDescriptor;
|
|
80
|
+
readonly "map.automatic-strategy.cancelled": HonuaErrorCodeDescriptor;
|
|
81
|
+
readonly "map.automatic-strategy.disposed": HonuaErrorCodeDescriptor;
|
|
82
|
+
readonly "map.raster-strategy.unsupported-strategy": HonuaErrorCodeDescriptor;
|
|
83
|
+
readonly "map.raster-strategy.capability-mismatch": HonuaErrorCodeDescriptor;
|
|
84
|
+
readonly "map.raster-strategy.missing-metadata": HonuaErrorCodeDescriptor;
|
|
85
|
+
readonly "map.raster-strategy.invalid-option": HonuaErrorCodeDescriptor;
|
|
86
|
+
readonly "map.raster-strategy.source-conflict": HonuaErrorCodeDescriptor;
|
|
87
|
+
readonly "map.raster-strategy.layer-conflict": HonuaErrorCodeDescriptor;
|
|
88
|
+
readonly "map.raster-strategy.map-mutation-failed": HonuaErrorCodeDescriptor;
|
|
89
|
+
readonly "map.automatic-integration.disposed": HonuaErrorCodeDescriptor;
|
|
90
|
+
readonly "map.automatic-integration.invalid-target": HonuaErrorCodeDescriptor;
|
|
91
|
+
readonly "map.temporal-playback.invalid-option": HonuaErrorCodeDescriptor;
|
|
92
|
+
readonly "runtime.map-package.fetch": HonuaErrorCodeDescriptor;
|
|
93
|
+
readonly "runtime.map-package.load": HonuaErrorCodeDescriptor;
|
|
94
|
+
readonly "runtime.map-package.validate": HonuaErrorCodeDescriptor;
|
|
95
|
+
readonly "runtime.map-package.update": HonuaErrorCodeDescriptor;
|
|
96
|
+
readonly "runtime.map-package.style-compose": HonuaErrorCodeDescriptor;
|
|
97
|
+
readonly "runtime.map-package.source-bind": HonuaErrorCodeDescriptor;
|
|
98
|
+
readonly "runtime.map-package.view": HonuaErrorCodeDescriptor;
|
|
99
|
+
readonly "runtime.map-package.popup": HonuaErrorCodeDescriptor;
|
|
100
|
+
readonly "runtime.map-package.dispose": HonuaErrorCodeDescriptor;
|
|
101
|
+
readonly "runtime.diagnostic": HonuaErrorCodeDescriptor;
|
|
102
|
+
readonly "runtime.query-tiles.transient": HonuaErrorCodeDescriptor;
|
|
103
|
+
readonly "runtime.query-tiles.rejected": HonuaErrorCodeDescriptor;
|
|
104
|
+
readonly "realtime.cancelled": HonuaErrorCodeDescriptor;
|
|
105
|
+
readonly "realtime.transport.reconnectable": HonuaErrorCodeDescriptor;
|
|
106
|
+
readonly "realtime.checkpoint.invalid": HonuaErrorCodeDescriptor;
|
|
107
|
+
readonly "realtime.sequence.gap": HonuaErrorCodeDescriptor;
|
|
108
|
+
readonly "realtime.protocol.terminal": HonuaErrorCodeDescriptor;
|
|
109
|
+
readonly "offline.region.validation": HonuaErrorCodeDescriptor;
|
|
110
|
+
readonly "offline.region.quota": HonuaErrorCodeDescriptor;
|
|
111
|
+
readonly "offline.region.integrity": HonuaErrorCodeDescriptor;
|
|
112
|
+
readonly "offline.cancelled": HonuaErrorCodeDescriptor;
|
|
113
|
+
readonly "offline.transport.failure": HonuaErrorCodeDescriptor;
|
|
114
|
+
readonly "offline.transport.transient": HonuaErrorCodeDescriptor;
|
|
115
|
+
readonly "offline.storage.concurrent": HonuaErrorCodeDescriptor;
|
|
116
|
+
readonly "offline.storage.failure": HonuaErrorCodeDescriptor;
|
|
117
|
+
readonly "offline.replica-sync.capability": HonuaErrorCodeDescriptor;
|
|
118
|
+
readonly "offline.replica-sync.validation": HonuaErrorCodeDescriptor;
|
|
119
|
+
readonly "offline.replica-sync.permission-denied": HonuaErrorCodeDescriptor;
|
|
120
|
+
readonly "plugin.registry.validation": HonuaErrorCodeDescriptor;
|
|
121
|
+
readonly "plugin.compatibility": HonuaErrorCodeDescriptor;
|
|
122
|
+
readonly "plugin.execution.policy-denied": HonuaErrorCodeDescriptor;
|
|
123
|
+
readonly "plugin.capability-unavailable": HonuaErrorCodeDescriptor;
|
|
124
|
+
readonly "plugin.lifecycle.activation": HonuaErrorCodeDescriptor;
|
|
125
|
+
readonly "plugin.execution.validation": HonuaErrorCodeDescriptor;
|
|
126
|
+
readonly "plugin.lifecycle.cleanup": HonuaErrorCodeDescriptor;
|
|
127
|
+
readonly "plugin.cancelled": HonuaErrorCodeDescriptor;
|
|
128
|
+
readonly "plugin.internal": HonuaErrorCodeDescriptor;
|
|
129
|
+
readonly "agent.tool.unknown-tool": HonuaErrorCodeDescriptor;
|
|
130
|
+
readonly "agent.tool.missing-runtime": HonuaErrorCodeDescriptor;
|
|
131
|
+
readonly "agent.tool.unqualified-selection": HonuaErrorCodeDescriptor;
|
|
132
|
+
readonly "agent.tool.missing-runtime-method": HonuaErrorCodeDescriptor;
|
|
133
|
+
readonly "agent.tool.internal": HonuaErrorCodeDescriptor;
|
|
134
|
+
readonly "agent.safety.aborted": HonuaErrorCodeDescriptor;
|
|
135
|
+
readonly "agent.safety.invalid-input": HonuaErrorCodeDescriptor;
|
|
136
|
+
readonly "agent.safety.policy-denied": HonuaErrorCodeDescriptor;
|
|
137
|
+
readonly "agent.safety.integrity-failed": HonuaErrorCodeDescriptor;
|
|
138
|
+
readonly "agent.safety.approval-expired": HonuaErrorCodeDescriptor;
|
|
139
|
+
readonly "agent.safety.context-mismatch": HonuaErrorCodeDescriptor;
|
|
140
|
+
readonly "agent.safety.signature-invalid": HonuaErrorCodeDescriptor;
|
|
141
|
+
readonly "agent.safety.execution-failed": HonuaErrorCodeDescriptor;
|
|
142
|
+
readonly "agent.safety.audit-failed": HonuaErrorCodeDescriptor;
|
|
143
|
+
readonly "agent.safety.receipt-failed": HonuaErrorCodeDescriptor;
|
|
144
|
+
readonly "app.unsupported-profile": HonuaErrorCodeDescriptor;
|
|
145
|
+
readonly "app.unsupported-widget": HonuaErrorCodeDescriptor;
|
|
146
|
+
readonly "app.missing-manifest": HonuaErrorCodeDescriptor;
|
|
147
|
+
readonly "app.missing-manifest-artifact": HonuaErrorCodeDescriptor;
|
|
148
|
+
readonly "app.missing-map-package": HonuaErrorCodeDescriptor;
|
|
149
|
+
readonly "app.map-package-mismatch": HonuaErrorCodeDescriptor;
|
|
150
|
+
readonly "app.missing-widget": HonuaErrorCodeDescriptor;
|
|
151
|
+
readonly "app.missing-binding": HonuaErrorCodeDescriptor;
|
|
152
|
+
readonly "app.map-load-failed": HonuaErrorCodeDescriptor;
|
|
153
|
+
readonly "app.data-load-failed": HonuaErrorCodeDescriptor;
|
|
154
|
+
readonly "app.render-failed": HonuaErrorCodeDescriptor;
|
|
155
|
+
readonly "app.disposed": HonuaErrorCodeDescriptor;
|
|
156
|
+
}>;
|
|
157
|
+
export type HonuaErrorCode = keyof typeof HONUA_ERROR_CODE_REGISTRY;
|
|
158
|
+
//# sourceMappingURL=error-code-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-code-registry.d.ts","sourceRoot":"","sources":["../../../src/core/error-code-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GACxB,MAAM,GACN,WAAW,GACX,OAAO,GACP,KAAK,GACL,SAAS,GACT,UAAU,GACV,SAAS,GACT,QAAQ,GACR,OAAO,GACP,KAAK,CAAC;AAEV,MAAM,MAAM,kBAAkB,GAC1B,gBAAgB,GAChB,cAAc,GACd,YAAY,GACZ,UAAU,GACV,SAAS,GACT,UAAU,GACV,SAAS,GACT,YAAY,CAAC;AAEjB,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsiBwB,CAAC;AAE/D,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical public code registry. Object keys make duplicate codes a compile
|
|
3
|
+
* error; the base constructor rejects codes absent from this registry.
|
|
4
|
+
*/
|
|
5
|
+
export const HONUA_ERROR_CODE_REGISTRY = Object.freeze({
|
|
6
|
+
"core.http.transient": classification("core", "protocol", true, "Retryable HTTP response failure"),
|
|
7
|
+
"core.http.rejected": classification("core", "protocol", false, "Non-retryable HTTP response failure"),
|
|
8
|
+
"core.timeout": classification("core", "timeout", true, "Request deadline elapsed"),
|
|
9
|
+
"core.network": classification("core", "network", true, "Network transport failure"),
|
|
10
|
+
"core.cancelled": classification("core", "cancellation", false, "Caller cancelled the operation"),
|
|
11
|
+
"core.grpc.transient": classification("core", "protocol", true, "Retryable gRPC-Web transport failure"),
|
|
12
|
+
"core.grpc.rejected": classification("core", "protocol", false, "Non-retryable gRPC-Web transport failure"),
|
|
13
|
+
"core.geometry.unknown-geometry": classification("core", "validation", false, "Geometry shape cannot be classified safely"),
|
|
14
|
+
"core.geometry.malformed-geometry": classification("core", "validation", false, "Recognized geometry has invalid coordinates or structure"),
|
|
15
|
+
"core.auth.interaction-required": classification("core", "authentication", false, "Interactive authentication is required"),
|
|
16
|
+
"core.auth.refresh-failed": classification("core", "authentication", true, "Credential refresh failed transiently"),
|
|
17
|
+
"core.auth.invalid-grant": classification("core", "authentication", false, "Authorization grant is invalid or expired"),
|
|
18
|
+
"core.capability-not-supported": classification("core", "capability", false, "Requested source capability is unavailable"),
|
|
19
|
+
"core.exploration-context": classification("core", "validation", false, "Exploration context operation is invalid"),
|
|
20
|
+
"core.wfs-exception": classification("core", "protocol", false, "WFS exception report"),
|
|
21
|
+
"core.job-failed": classification("core", "protocol", false, "Remote job reached a failed terminal state"),
|
|
22
|
+
"core.wms-capabilities-parse": classification("core", "protocol", false, "WMS capabilities document is invalid"),
|
|
23
|
+
"core.wmts-capabilities-parse": classification("core", "protocol", false, "WMTS capabilities document is invalid"),
|
|
24
|
+
"discovery.ambiguous-protocol": classification("discovery", "validation", false, "Multiple protocols match the endpoint"),
|
|
25
|
+
"discovery.ambiguous-source": classification("discovery", "validation", false, "Multiple sources match the selection"),
|
|
26
|
+
"discovery.invalid-endpoint": classification("discovery", "validation", false, "Discovery endpoint is invalid"),
|
|
27
|
+
"discovery.invalid-cache-identity": classification("discovery", "validation", false, "Discovery cache identity is invalid"),
|
|
28
|
+
"discovery.invalid-discovery-cache": classification("discovery", "validation", false, "Discovery cache entry is invalid"),
|
|
29
|
+
"discovery.invalid-capability": classification("discovery", "validation", false, "Discovered capability evidence is invalid"),
|
|
30
|
+
"discovery.unsupported-protocol": classification("discovery", "capability", false, "Endpoint protocol is unsupported"),
|
|
31
|
+
"discovery.protocol-mismatch": classification("discovery", "validation", false, "Endpoint protocol conflicts with its hint"),
|
|
32
|
+
"query.planning.invalid-query": classification("query", "validation", false, "Query is invalid"),
|
|
33
|
+
"query.planning.unsupported-compiler": classification("query", "capability", false, "No compiler supports the source protocol"),
|
|
34
|
+
"query.planning.unsupported-query": classification("query", "capability", false, "Query cannot be represented by the compiler"),
|
|
35
|
+
"query.planning.capability-not-supported": classification("query", "capability", false, "Query requires an unavailable capability"),
|
|
36
|
+
"query.planning.fallback-disabled": classification("query", "capability", false, "Required local fallback is disabled"),
|
|
37
|
+
"query.planning.unsafe-materialization": classification("query", "validation", false, "Planned local materialization exceeds its safety bound"),
|
|
38
|
+
"query.execution.invalid-plan": classification("query", "validation", false, "Query plan is invalid"),
|
|
39
|
+
"query.execution.plan-context-mismatch": classification("query", "validation", false, "Execution context does not match the accepted query plan"),
|
|
40
|
+
"query.execution.unsafe-materialization": classification("query", "validation", false, "Query execution exceeded its materialization bound"),
|
|
41
|
+
"query.execution.invalid-resource-handle": classification("query", "validation", false, "Query resource handle is invalid"),
|
|
42
|
+
"query.execution.resource-unavailable": classification("query", "authentication", false, "Query resource is unavailable in the authorization context"),
|
|
43
|
+
"query.execution.resource-expired": classification("query", "authentication", false, "Query resource authorization has expired"),
|
|
44
|
+
"query.execution.resource-resolution-failed": classification("query", "internal", false, "Query resource resolution failed"),
|
|
45
|
+
"query.execution.resource-execution-failed": classification("query", "internal", false, "Resolved query resource execution failed"),
|
|
46
|
+
"map.source-adapter.disposed": classification("map", "validation", false, "Map source adapter is disposed"),
|
|
47
|
+
"map.source-adapter.source-conflict": classification("map", "validation", false, "Map source identifier already exists"),
|
|
48
|
+
"map.source-adapter.layer-conflict": classification("map", "validation", false, "Map layer identifier already exists"),
|
|
49
|
+
"map.source-adapter.unsupported-plan": classification("map", "capability", false, "Query plan cannot be rendered by the source adapter"),
|
|
50
|
+
"map.source-adapter.invalid-option": classification("map", "validation", false, "Map source adapter option is invalid"),
|
|
51
|
+
"map.source-adapter.map-mutation-failed": classification("map", "internal", false, "Renderer mutation failed"),
|
|
52
|
+
"map.data-bridge.invalid-option": classification("map", "validation", false, "Data-to-map option is invalid"),
|
|
53
|
+
"map.data-bridge.disposed": classification("map", "validation", false, "Data-to-map bridge is disposed"),
|
|
54
|
+
"map.data-bridge.source-conflict": classification("map", "validation", false, "Data-to-map source identifier already exists"),
|
|
55
|
+
"map.data-bridge.layer-conflict": classification("map", "validation", false, "Data-to-map layer identifier already exists"),
|
|
56
|
+
"map.data-bridge.map-mutation-failed": classification("map", "internal", false, "Data-to-map renderer mutation failed"),
|
|
57
|
+
"map.data-bridge.interaction-unsupported": classification("map", "capability", false, "Renderer interaction is unsupported"),
|
|
58
|
+
"map.data-bridge.filter-unsupported": classification("map", "capability", false, "Renderer filter mutation is unsupported"),
|
|
59
|
+
"map.automatic-strategy.no-eligible-strategy": classification("map", "capability", false, "No exact map source strategy is eligible"),
|
|
60
|
+
"map.automatic-strategy.stale-plan": classification("map", "validation", false, "Map strategy plan is stale"),
|
|
61
|
+
"map.automatic-strategy.source-conflict": classification("map", "validation", false, "Automatic strategy source identifier already exists"),
|
|
62
|
+
"map.automatic-strategy.layer-conflict": classification("map", "validation", false, "Automatic strategy layer identifier already exists"),
|
|
63
|
+
"map.automatic-strategy.map-mutation-failed": classification("map", "internal", false, "Automatic strategy renderer mutation failed"),
|
|
64
|
+
"map.automatic-strategy.cancelled": classification("map", "cancellation", false, "Automatic map strategy was cancelled"),
|
|
65
|
+
"map.automatic-strategy.disposed": classification("map", "validation", false, "Automatic map strategy is disposed"),
|
|
66
|
+
"map.raster-strategy.unsupported-strategy": classification("map", "capability", false, "Raster strategy is unsupported"),
|
|
67
|
+
"map.raster-strategy.capability-mismatch": classification("map", "capability", false, "Raster source lacks a required capability"),
|
|
68
|
+
"map.raster-strategy.missing-metadata": classification("map", "validation", false, "Raster source metadata is incomplete"),
|
|
69
|
+
"map.raster-strategy.invalid-option": classification("map", "validation", false, "Raster option is invalid"),
|
|
70
|
+
"map.raster-strategy.source-conflict": classification("map", "validation", false, "Raster source identifier already exists"),
|
|
71
|
+
"map.raster-strategy.layer-conflict": classification("map", "validation", false, "Raster layer identifier already exists"),
|
|
72
|
+
"map.raster-strategy.map-mutation-failed": classification("map", "internal", false, "Raster renderer mutation failed"),
|
|
73
|
+
"map.automatic-integration.disposed": classification("map", "validation", false, "Automatic map integration is disposed"),
|
|
74
|
+
"map.automatic-integration.invalid-target": classification("map", "validation", false, "Automatic map integration target is invalid"),
|
|
75
|
+
"map.temporal-playback.invalid-option": classification("map", "validation", false, "Temporal playback option is invalid"),
|
|
76
|
+
"runtime.map-package.fetch": classification("runtime", "network", true, "Map package fetch failed"),
|
|
77
|
+
"runtime.map-package.load": classification("runtime", "internal", false, "Map package load failed"),
|
|
78
|
+
"runtime.map-package.validate": classification("runtime", "validation", false, "Map package validation failed"),
|
|
79
|
+
"runtime.map-package.update": classification("runtime", "internal", false, "Map package update failed"),
|
|
80
|
+
"runtime.map-package.style-compose": classification("runtime", "validation", false, "Map package style composition failed"),
|
|
81
|
+
"runtime.map-package.source-bind": classification("runtime", "internal", false, "Map package source binding failed"),
|
|
82
|
+
"runtime.map-package.view": classification("runtime", "internal", false, "Renderer view mutation failed"),
|
|
83
|
+
"runtime.map-package.popup": classification("runtime", "validation", false, "Popup binding failed"),
|
|
84
|
+
"runtime.map-package.dispose": classification("runtime", "internal", true, "Runtime disposal failed"),
|
|
85
|
+
"runtime.diagnostic": classification("runtime", "validation", false, "Runtime validation diagnostic"),
|
|
86
|
+
"runtime.query-tiles.transient": classification("runtime", "protocol", true, "Retryable query-tile response failure"),
|
|
87
|
+
"runtime.query-tiles.rejected": classification("runtime", "protocol", false, "Non-retryable query-tile response failure"),
|
|
88
|
+
"realtime.cancelled": classification("realtime", "cancellation", false, "Realtime operation was cancelled"),
|
|
89
|
+
"realtime.transport.reconnectable": classification("realtime", "network", true, "Realtime transport can reconnect or resnapshot"),
|
|
90
|
+
"realtime.checkpoint.invalid": classification("realtime", "validation", false, "Realtime checkpoint or resume context is invalid"),
|
|
91
|
+
"realtime.sequence.gap": classification("realtime", "protocol", true, "Realtime ordering requires a replacement snapshot"),
|
|
92
|
+
"realtime.protocol.terminal": classification("realtime", "protocol", false, "Realtime delivery reached a terminal failure"),
|
|
93
|
+
"offline.region.validation": classification("offline", "validation", false, "Offline region input or lifecycle state is invalid"),
|
|
94
|
+
"offline.region.quota": classification("offline", "validation", false, "Offline region exceeds a logical storage quota"),
|
|
95
|
+
"offline.region.integrity": classification("offline", "protocol", false, "Offline resource integrity verification failed"),
|
|
96
|
+
"offline.cancelled": classification("offline", "cancellation", false, "Offline operation was cancelled"),
|
|
97
|
+
"offline.transport.failure": classification("offline", "network", false, "Offline resource or replica transport failed without a transient classification"),
|
|
98
|
+
"offline.transport.transient": classification("offline", "network", true, "Offline resource or replica transport failed transiently"),
|
|
99
|
+
"offline.storage.concurrent": classification("offline", "internal", true, "Offline storage inventory changed before commit"),
|
|
100
|
+
"offline.storage.failure": classification("offline", "internal", false, "Offline storage operation failed"),
|
|
101
|
+
"offline.replica-sync.capability": classification("offline", "capability", false, "Replica synchronization capability is unavailable"),
|
|
102
|
+
"offline.replica-sync.validation": classification("offline", "validation", false, "Replica synchronization request or state is invalid"),
|
|
103
|
+
"offline.replica-sync.permission-denied": classification("offline", "authentication", false, "Replica synchronization permission was denied"),
|
|
104
|
+
"plugin.registry.validation": classification("plugin", "validation", false, "Plugin registry input or lifecycle state is invalid"),
|
|
105
|
+
"plugin.compatibility": classification("plugin", "capability", false, "Plugin declaration is incompatible with the host or its dependencies"),
|
|
106
|
+
"plugin.execution.policy-denied": classification("plugin", "capability", false, "Plugin execution was denied by host policy"),
|
|
107
|
+
"plugin.capability-unavailable": classification("plugin", "capability", false, "Plugin execution requires an unavailable capability or dependency"),
|
|
108
|
+
"plugin.lifecycle.activation": classification("plugin", "internal", false, "Plugin activation or registration failed"),
|
|
109
|
+
"plugin.execution.validation": classification("plugin", "validation", false, "Plugin execution input is invalid"),
|
|
110
|
+
"plugin.lifecycle.cleanup": classification("plugin", "internal", false, "Plugin lifecycle cleanup failed"),
|
|
111
|
+
"plugin.cancelled": classification("plugin", "cancellation", false, "Plugin registration was cancelled"),
|
|
112
|
+
"plugin.internal": classification("plugin", "internal", false, "Plugin registry internal failure"),
|
|
113
|
+
"agent.tool.unknown-tool": classification("agent", "validation", false, "Requested agent tool name is not registered"),
|
|
114
|
+
"agent.tool.missing-runtime": classification("agent", "validation", false, "Agent tool kit requires a runtime, controller, or generated-app runtime"),
|
|
115
|
+
"agent.tool.unqualified-selection": classification("agent", "validation", false, "Agent tool selection target is not source-qualified"),
|
|
116
|
+
"agent.tool.missing-runtime-method": classification("agent", "capability", false, "Adapted runtime does not implement the requested agent tool"),
|
|
117
|
+
"agent.tool.internal": classification("agent", "internal", false, "Agent tool executor internal failure"),
|
|
118
|
+
"agent.safety.aborted": classification("agent", "cancellation", false, "Agent safety operation was aborted"),
|
|
119
|
+
"agent.safety.invalid-input": classification("agent", "validation", false, "Agent safety input is invalid"),
|
|
120
|
+
"agent.safety.policy-denied": classification("agent", "capability", false, "Agent plan step was denied by host policy"),
|
|
121
|
+
"agent.safety.integrity-failed": classification("agent", "protocol", false, "Agent safety evidence integrity verification failed"),
|
|
122
|
+
"agent.safety.approval-expired": classification("agent", "authentication", false, "Agent step approval has expired"),
|
|
123
|
+
"agent.safety.context-mismatch": classification("agent", "validation", false, "Agent execution context does not match the authorized plan"),
|
|
124
|
+
"agent.safety.signature-invalid": classification("agent", "validation", false, "Agent approval or receipt signature is invalid"),
|
|
125
|
+
"agent.safety.execution-failed": classification("agent", "internal", false, "Agent plan step execution failed"),
|
|
126
|
+
"agent.safety.audit-failed": classification("agent", "internal", false, "Agent execution audit record could not be appended"),
|
|
127
|
+
"agent.safety.receipt-failed": classification("agent", "internal", false, "Agent execution receipt could not be issued or verified"),
|
|
128
|
+
"app.unsupported-profile": classification("app", "capability", false, "Generated app profile is not supported"),
|
|
129
|
+
"app.unsupported-widget": classification("app", "capability", false, "Generated app widget kind is not supported"),
|
|
130
|
+
"app.missing-manifest": classification("app", "validation", false, "Generated app manifest or app package is missing"),
|
|
131
|
+
"app.missing-manifest-artifact": classification("app", "validation", false, "Generated app manifest artifact is missing"),
|
|
132
|
+
"app.missing-map-package": classification("app", "validation", false, "Generated app map widget requires a MapPackage"),
|
|
133
|
+
"app.map-package-mismatch": classification("app", "validation", false, "Generated app MapPackage does not match its manifest"),
|
|
134
|
+
"app.missing-widget": classification("app", "validation", false, "Generated app manifest is missing a required widget"),
|
|
135
|
+
"app.missing-binding": classification("app", "validation", false, "Generated app runtime is missing a required binding"),
|
|
136
|
+
"app.map-load-failed": classification("app", "internal", false, "Generated app map widget failed to load"),
|
|
137
|
+
"app.data-load-failed": classification("app", "internal", false, "Generated app feature data failed to load"),
|
|
138
|
+
"app.render-failed": classification("app", "internal", false, "Generated app render failed"),
|
|
139
|
+
"app.disposed": classification("app", "validation", false, "Generated app runtime is disposed"),
|
|
140
|
+
});
|
|
141
|
+
function classification(domain, category, retryable, summary) {
|
|
142
|
+
return Object.freeze({ domain, category, retryable, summary });
|
|
143
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared, serialization-safe error contract for public Honua SDK failures.
|
|
3
|
+
*
|
|
4
|
+
* Error instances retain their original `message`, `cause`, and legacy detail
|
|
5
|
+
* fields for local debugging. Use {@link serializeHonuaError} at telemetry or
|
|
6
|
+
* process boundaries: it emits only registered classifications and sanitized
|
|
7
|
+
* context, never messages, stacks, response bodies, or cause payloads.
|
|
8
|
+
*/
|
|
9
|
+
import type { HonuaErrorCategory, HonuaErrorCode, HonuaErrorDomain } from "./error-code-registry.js";
|
|
10
|
+
export type { HonuaErrorCategory, HonuaErrorCode, HonuaErrorCodeDescriptor, HonuaErrorDomain, } from "./error-code-registry.js";
|
|
11
|
+
export declare const HONUA_ERROR_KIND: "honua.sdk.error.v1";
|
|
12
|
+
export type HonuaErrorEnvelopeContextValue = null | boolean | number | string | readonly HonuaErrorEnvelopeContextValue[] | {
|
|
13
|
+
readonly [key: string]: HonuaErrorEnvelopeContextValue;
|
|
14
|
+
};
|
|
15
|
+
export type HonuaErrorEnvelopeContext = Readonly<Record<string, HonuaErrorEnvelopeContextValue>>;
|
|
16
|
+
export interface HonuaErrorMetadata {
|
|
17
|
+
readonly operationId?: string;
|
|
18
|
+
readonly requestId?: string;
|
|
19
|
+
readonly context?: Readonly<Record<string, unknown>>;
|
|
20
|
+
}
|
|
21
|
+
export interface HonuaErrorOptions extends ErrorOptions, HonuaErrorMetadata {
|
|
22
|
+
}
|
|
23
|
+
export interface SerializedHonuaError {
|
|
24
|
+
readonly kind: typeof HONUA_ERROR_KIND;
|
|
25
|
+
readonly name: string;
|
|
26
|
+
readonly domain: HonuaErrorDomain;
|
|
27
|
+
readonly code: HonuaErrorCode;
|
|
28
|
+
readonly category: HonuaErrorCategory;
|
|
29
|
+
readonly retryable: boolean;
|
|
30
|
+
readonly operationId?: string;
|
|
31
|
+
readonly requestId?: string;
|
|
32
|
+
readonly context: HonuaErrorEnvelopeContext;
|
|
33
|
+
readonly cause?: SerializedHonuaErrorCause;
|
|
34
|
+
}
|
|
35
|
+
export interface SerializedHonuaErrorCause {
|
|
36
|
+
readonly name: string;
|
|
37
|
+
readonly domain?: HonuaErrorDomain;
|
|
38
|
+
readonly code?: HonuaErrorCode;
|
|
39
|
+
readonly category?: HonuaErrorCategory;
|
|
40
|
+
readonly retryable?: boolean;
|
|
41
|
+
}
|
|
42
|
+
/** Base class for every migrated public SDK error. */
|
|
43
|
+
export declare abstract class HonuaSdkError extends Error {
|
|
44
|
+
readonly kind: "honua.sdk.error.v1";
|
|
45
|
+
readonly domain: HonuaErrorDomain;
|
|
46
|
+
/** Globally unique registry code. Legacy subclasses may retain a separate `.code`. */
|
|
47
|
+
readonly sdkCode: HonuaErrorCode;
|
|
48
|
+
readonly category: HonuaErrorCategory;
|
|
49
|
+
readonly retryable: boolean;
|
|
50
|
+
readonly operationId: string | undefined;
|
|
51
|
+
readonly requestId: string | undefined;
|
|
52
|
+
readonly context: HonuaErrorEnvelopeContext;
|
|
53
|
+
protected constructor(code: HonuaErrorCode, message: string, options?: HonuaErrorOptions);
|
|
54
|
+
/** Safe JSON projection. Raw messages, stacks, details, bodies, and causes are intentionally omitted. */
|
|
55
|
+
toJSON(): SerializedHonuaError;
|
|
56
|
+
}
|
|
57
|
+
/** Cross-realm type guard backed by the public tag and registered code. */
|
|
58
|
+
export declare function isHonuaSdkError(error: unknown): error is HonuaSdkError;
|
|
59
|
+
/** Serialize a tagged SDK error without crossing its redaction boundary. */
|
|
60
|
+
export declare function serializeHonuaError(error: HonuaSdkError): SerializedHonuaError;
|
|
61
|
+
/** Redact structured context before it is stored on an SDK error. */
|
|
62
|
+
export declare function sanitizeHonuaErrorContext(context?: Readonly<Record<string, unknown>>): HonuaErrorEnvelopeContext;
|
|
63
|
+
/** Merge context inputs without invoking enumerable accessors or honoring prototype-manipulation keys. */
|
|
64
|
+
export declare function mergeHonuaErrorContext(...contexts: readonly (Readonly<Record<string, unknown>> | undefined)[]): Readonly<Record<string, unknown>>;
|
|
65
|
+
export declare function isHonuaErrorCode(code: string): code is HonuaErrorCode;
|
|
66
|
+
/** @internal True only for a valid tagged retryable network or timeout classification. */
|
|
67
|
+
export declare function isRetryableNetworkOrTimeoutHonuaError(error: unknown): boolean;
|
|
68
|
+
//# sourceMappingURL=error-envelope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error-envelope.d.ts","sourceRoot":"","sources":["../../../src/core/error-envelope.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAErG,YAAY,EACV,kBAAkB,EAClB,cAAc,EACd,wBAAwB,EACxB,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAElC,eAAO,MAAM,gBAAgB,EAAG,oBAA6B,CAAC;AAE9D,MAAM,MAAM,8BAA8B,GACtC,IAAI,GACJ,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,8BAA8B,EAAE,GACzC;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,8BAA8B,CAAA;CAAE,CAAC;AAE/D,MAAM,MAAM,yBAAyB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,8BAA8B,CAAC,CAAC,CAAC;AAEjG,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACtD;AAED,MAAM,WAAW,iBAAkB,SAAQ,YAAY,EAAE,kBAAkB;CAAG;AAE9E,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,IAAI,EAAE,OAAO,gBAAgB,CAAC;IACvC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;IACtC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,yBAAyB,CAAC;IAC5C,QAAQ,CAAC,KAAK,CAAC,EAAE,yBAAyB,CAAC;CAC5C;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC;IACnC,QAAQ,CAAC,IAAI,CAAC,EAAE,cAAc,CAAC;IAC/B,QAAQ,CAAC,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,sDAAsD;AACtD,8BAAsB,aAAc,SAAQ,KAAK;IAC/C,SAAgB,IAAI,uBAAoB;IACxC,SAAgB,MAAM,EAAE,gBAAgB,CAAC;IACzC,sFAAsF;IACtF,SAAgB,OAAO,EAAE,cAAc,CAAC;IACxC,SAAgB,QAAQ,EAAE,kBAAkB,CAAC;IAC7C,SAAgB,SAAS,EAAE,OAAO,CAAC;IACnC,SAAgB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChD,SAAgB,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9C,SAAgB,OAAO,EAAE,yBAAyB,CAAC;IAEnD,SAAS,aAAa,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,iBAAsB;IAa5F,yGAAyG;IAClG,MAAM,IAAI,oBAAoB;CAGtC;AAED,2EAA2E;AAC3E,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAoBtE;AAED,4EAA4E;AAC5E,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,aAAa,GAAG,oBAAoB,CAsB9E;AAED,qEAAqE;AACrE,wBAAgB,yBAAyB,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,yBAAyB,CAShH;AAED,0GAA0G;AAC1G,wBAAgB,sBAAsB,CACpC,GAAG,QAAQ,EAAE,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,EAAE,GACtE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAgBnC;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,IAAI,cAAc,CAErE;AAED,0FAA0F;AAC1F,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAU7E"}
|