@honua/sdk-esri-compat 0.1.7-beta.0 → 0.1.10-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/core/client.d.ts.map +1 -1
- package/core/client.js +29 -31
- package/core/credential-redaction.d.ts +163 -0
- package/core/credential-redaction.d.ts.map +1 -0
- package/core/credential-redaction.js +389 -0
- package/core/error-classifications.d.ts +15 -0
- package/core/error-classifications.d.ts.map +1 -1
- package/core/error-classifications.js +15 -0
- package/core/error-code-registry.d.ts +15 -0
- package/core/error-code-registry.d.ts.map +1 -1
- package/core/error-code-registry.js +15 -0
- package/core/error-envelope.d.ts +31 -0
- package/core/error-envelope.d.ts.map +1 -1
- package/core/error-envelope.js +11 -0
- package/core/errors.d.ts +15 -3
- package/core/errors.d.ts.map +1 -1
- package/core/errors.js +254 -2
- package/core/geometry-input-sr.d.ts +3 -0
- package/core/geometry-input-sr.d.ts.map +1 -0
- package/core/geometry-input-sr.js +28 -0
- package/core/geoservices.d.ts.map +1 -1
- package/core/geoservices.js +33 -6
- package/core/grpc-adapter.d.ts +2 -2
- package/core/grpc-adapter.d.ts.map +1 -1
- package/core/grpc-adapter.js +41 -9
- package/core/job-run-errors.d.ts +10 -0
- package/core/job-run-errors.d.ts.map +1 -0
- package/core/job-run-errors.js +14 -0
- package/core/job-run-lifecycle.d.ts +34 -0
- package/core/job-run-lifecycle.d.ts.map +1 -0
- package/core/job-run-lifecycle.js +193 -0
- package/core/ogc-processes.d.ts +38 -31
- package/core/ogc-processes.d.ts.map +1 -1
- package/core/ogc-processes.js +123 -173
- package/core/pbf-decoder.d.ts.map +1 -1
- package/core/pbf-decoder.js +16 -4
- package/core/process-runner.js +15 -100
- package/core/protocol-transport.d.ts +6 -1
- package/core/protocol-transport.d.ts.map +1 -1
- package/core/request-pipeline.d.ts +6 -3
- package/core/request-pipeline.d.ts.map +1 -1
- package/core/request-pipeline.js +28 -11
- package/core/spatial-filter.d.ts +4 -4
- package/core/spatial-filter.d.ts.map +1 -1
- package/core/spatial-filter.js +7 -7
- package/core/surfaces.d.ts +2 -8
- package/core/surfaces.d.ts.map +1 -1
- package/core/surfaces.js +21 -112
- package/core/types.d.ts +21 -9
- package/core/types.d.ts.map +1 -1
- package/esri-compat/class-breaks-renderer.d.ts +2 -0
- package/esri-compat/class-breaks-renderer.d.ts.map +1 -1
- package/esri-compat/class-breaks-renderer.js +7 -0
- package/esri-compat/controls.d.ts +10 -1
- package/esri-compat/controls.d.ts.map +1 -1
- package/esri-compat/controls.js +86 -2
- package/esri-compat/directions.d.ts +35 -0
- package/esri-compat/directions.d.ts.map +1 -1
- package/esri-compat/directions.js +153 -2
- package/esri-compat/expand.d.ts +1 -0
- package/esri-compat/expand.d.ts.map +1 -1
- package/esri-compat/expand.js +61 -0
- package/esri-compat/feature-layer.d.ts +29 -4
- package/esri-compat/feature-layer.d.ts.map +1 -1
- package/esri-compat/feature-layer.js +335 -13
- package/esri-compat/geometry-engine.d.ts +4 -0
- package/esri-compat/geometry-engine.d.ts.map +1 -1
- package/esri-compat/geometry-engine.js +8 -1
- package/esri-compat/graphic.d.ts +7 -4
- package/esri-compat/graphic.d.ts.map +1 -1
- package/esri-compat/legend.d.ts +2 -1
- package/esri-compat/legend.d.ts.map +1 -1
- package/esri-compat/legend.js +15 -0
- package/esri-compat/map-view-mount.d.ts +48 -0
- package/esri-compat/map-view-mount.d.ts.map +1 -0
- package/esri-compat/map-view-mount.js +344 -0
- package/esri-compat/map-view.d.ts +38 -6
- package/esri-compat/map-view.d.ts.map +1 -1
- package/esri-compat/map-view.js +467 -33
- package/esri-compat/portal.d.ts +2 -0
- package/esri-compat/portal.d.ts.map +1 -1
- package/esri-compat/portal.js +7 -2
- package/esri-compat/renderer-objects.d.ts +7 -2
- package/esri-compat/renderer-objects.d.ts.map +1 -1
- package/esri-compat/renderer-objects.js +16 -5
- package/esri-compat/route-layer.d.ts +8 -0
- package/esri-compat/route-layer.d.ts.map +1 -1
- package/esri-compat/route-layer.js +24 -4
- package/esri-compat/route-task.d.ts +5 -1
- package/esri-compat/route-task.d.ts.map +1 -1
- package/esri-compat/route-task.js +119 -7
- package/esri-compat/scene-view.d.ts.map +1 -1
- package/esri-compat/scene-view.js +1 -0
- package/esri-compat/search.d.ts +2 -1
- package/esri-compat/search.d.ts.map +1 -1
- package/esri-compat/search.js +52 -2
- package/esri-compat/unique-value-renderer.d.ts +2 -0
- package/esri-compat/unique-value-renderer.d.ts.map +1 -1
- package/esri-compat/unique-value-renderer.js +7 -0
- package/esri-compat/web-map.d.ts +10 -0
- package/esri-compat/web-map.d.ts.map +1 -1
- package/esri-compat/web-map.js +102 -0
- package/gen/geospatial/v1/common_pb.d.ts +514 -0
- package/gen/geospatial/v1/common_pb.d.ts.map +1 -0
- package/gen/geospatial/v1/common_pb.js +335 -0
- package/gen/geospatial/v1/execution_types_pb.d.ts +1186 -0
- package/gen/geospatial/v1/execution_types_pb.d.ts.map +1 -0
- package/gen/geospatial/v1/execution_types_pb.js +396 -0
- package/gen/geospatial/v1/feature_service_pb.d.ts +403 -0
- package/gen/geospatial/v1/feature_service_pb.d.ts.map +1 -0
- package/gen/geospatial/v1/feature_service_pb.js +47 -0
- package/gen/geospatial/v1/index.d.ts +5 -0
- package/gen/geospatial/v1/index.d.ts.map +1 -0
- package/gen/geospatial/v1/index.js +9 -0
- package/gen/geospatial/v1/spatial_types_pb.d.ts +285 -0
- package/gen/geospatial/v1/spatial_types_pb.d.ts.map +1 -0
- package/gen/geospatial/v1/spatial_types_pb.js +58 -0
- package/gen/geospatial/v1/workspace_artifact_types_pb.d.ts +379 -0
- package/gen/geospatial/v1/workspace_artifact_types_pb.d.ts.map +1 -0
- package/gen/geospatial/v1/workspace_artifact_types_pb.js +151 -0
- package/geocoding/index.d.ts +1 -0
- package/geocoding/index.d.ts.map +1 -1
- package/geocoding/index.js +18 -8
- package/geocoding/provider-http.d.ts.map +1 -1
- package/geocoding/provider-http.js +3 -1
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/package.json +2 -2
- package/style/renderers.d.ts +6 -1
- package/style/renderers.d.ts.map +1 -1
- package/style/renderers.js +11 -6
- package/style/visual-variables.d.ts +43 -0
- package/style/visual-variables.d.ts.map +1 -0
- package/style/visual-variables.js +183 -0
- package/webmap/convert-layer.d.ts +2 -1
- package/webmap/convert-layer.d.ts.map +1 -1
- package/webmap/convert-layer.js +20 -3
- package/webmap/convert-renderer.d.ts +10 -3
- package/webmap/convert-renderer.d.ts.map +1 -1
- package/webmap/convert-renderer.js +190 -36
- package/webmap/index.d.ts +1 -0
- package/webmap/index.d.ts.map +1 -1
- package/webmap/parse.d.ts +2 -1
- package/webmap/parse.d.ts.map +1 -1
- package/webmap/parse.js +1 -1
- package/gen/honua/v1/feature_service_pb.d.ts +0 -918
- package/gen/honua/v1/feature_service_pb.d.ts.map +0 -1
- package/gen/honua/v1/feature_service_pb.js +0 -375
package/core/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/core/client.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,2BAA2B,EAQjC,MAAM,kBAAkB,CAAC;AAyB1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,KAAK,gBAAgB,EAAuD,MAAM,0BAA0B,CAAC;AActH,OAAO,EAAE,YAAY,EAA4D,MAAM,eAAe,CAAC;AACvG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EACL,iBAAiB,EASlB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,eAAe,EAShB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,aAAa,EAQd,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,KAAK,kBAAkB,EAKxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,2BAA2B,EAAE,mBAAmB,EAAE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IAC5E,OAAO,CAAC,oBAAoB;YAId,sBAAsB;IAUpC;;;;OAIG;YACW,kCAAkC;YAYlC,4BAA4B;YAuB5B,gBAAgB;CAG/B"}
|
package/core/client.js
CHANGED
|
@@ -12,7 +12,7 @@ import { HonuaOgcTiles, fetchOgcTile, getOgcCollectionTileset, getOgcTileMatrixS
|
|
|
12
12
|
import { stripQuery, trimTrailingSlashes } from "./path-utils.js";
|
|
13
13
|
import { decodePbfQueryResponse, isPbfResponse } from "./pbf-decoder.js";
|
|
14
14
|
import { createGeoServicesGpAdapter, createGeospatialGrpcProcessAdapter, createHonuaProcessRunner, createOgcProcessesAdapter, } from "./process-runner.js";
|
|
15
|
-
import { DEFAULT_RETRY_METHODS, createTimeoutSignal, normalizeNetworkError, normalizeRetryOptions, normalizeTimeoutMs, resolveGrpcRetryDelayMs, resolveRetryDelayMs, shouldRetryGrpcCall, shouldRetryRequest, sleep, toHttpError, } from "./request-pipeline.js";
|
|
15
|
+
import { DEFAULT_RETRY_METHODS, createTimeoutSignal, normalizeNetworkError, normalizeRetryOptions, normalizeTimeoutMs, resolveGrpcRetryDelayMs, resolveRetryDelayMs, shouldRetryGrpcCall, shouldRetryRequest, sleep, toGeoServicesError, toHttpError, } from "./request-pipeline.js";
|
|
16
16
|
import { HonuaStacSearch, getStacCollection, getStacItem, getStacLanding, listStacCollections, searchStac, } from "./stac.js";
|
|
17
17
|
import { HonuaFeatureLayer, HonuaGeometryService, HonuaGeoprocessingService, HonuaImageService, HonuaMapLayer, HonuaMapService, HonuaOgcFeatures, HonuaService, } from "./surfaces.js";
|
|
18
18
|
import { HonuaWfs } from "./wfs.js";
|
|
@@ -221,7 +221,7 @@ export class HonuaClient {
|
|
|
221
221
|
this.transport = options.transport ?? "rest";
|
|
222
222
|
this.protocolTransport = {
|
|
223
223
|
baseUrl: this.baseUrl,
|
|
224
|
-
requestJson: (method, path, init, signal) => this.requestJson(method, path, init, signal),
|
|
224
|
+
requestJson: (method, path, init, signal, policy) => this.requestJson(method, path, init, signal, policy),
|
|
225
225
|
requestText: (method, path, requestTextOptions) => this.requestText(method, path, requestTextOptions),
|
|
226
226
|
requestBytes: (method, path, accept, init, signal) => this.requestBytes(method, path, accept, init, signal),
|
|
227
227
|
requestCachedMetadataJson: (cacheKey, path, metadataOptions) => this.requestCachedMetadataJson(cacheKey, path, metadataOptions),
|
|
@@ -311,7 +311,7 @@ export class HonuaClient {
|
|
|
311
311
|
initPromise = Promise.all([
|
|
312
312
|
import("@connectrpc/connect"),
|
|
313
313
|
import("@connectrpc/connect-web"),
|
|
314
|
-
import("../gen/
|
|
314
|
+
import("../gen/geospatial/v1/feature_service_pb.js"),
|
|
315
315
|
]).then(([{ createClient }, { createGrpcWebTransport }, { FeatureService }]) => {
|
|
316
316
|
const transport = createGrpcWebTransport(this.connectTransportOptions());
|
|
317
317
|
this.connectClient = createClient(FeatureService, transport);
|
|
@@ -387,6 +387,12 @@ export class HonuaClient {
|
|
|
387
387
|
const method = (currentInit.method ?? "GET").toUpperCase();
|
|
388
388
|
const downgradeToGet = response.status === 303 ||
|
|
389
389
|
((response.status === 301 || response.status === 302) && method !== "GET" && method !== "HEAD");
|
|
390
|
+
// A query POST keeps its filters in the body. Surface the 3xx as an HTTP
|
|
391
|
+
// error instead of replaying an unconstrained GET. 307/308 retain the
|
|
392
|
+
// method/body and still follow the normal same-origin credential checks.
|
|
393
|
+
if (redirectPolicy === "preserve-method" && downgradeToGet && method !== "GET" && method !== "HEAD") {
|
|
394
|
+
return response;
|
|
395
|
+
}
|
|
390
396
|
currentInit = downgradeToGet ? { ...currentInit, method: "GET", body: null } : currentInit;
|
|
391
397
|
currentUrl = nextUrl;
|
|
392
398
|
// Drain the redirect body so the underlying connection can be reused.
|
|
@@ -909,7 +915,7 @@ export class HonuaClient {
|
|
|
909
915
|
// Detect it before caching so a transient auth/permission error is never
|
|
910
916
|
// persisted as "valid" metadata for the cache TTL and surfaced
|
|
911
917
|
// downstream as `undefined` field access instead of a HonuaHttpError.
|
|
912
|
-
const envelopeError =
|
|
918
|
+
const envelopeError = toGeoServicesError(response.status, body, response.headers);
|
|
913
919
|
if (envelopeError) {
|
|
914
920
|
const stale = this.staleMetadataFallback(cached, metadataOptions, envelopeError);
|
|
915
921
|
if (stale)
|
|
@@ -1257,7 +1263,7 @@ export class HonuaClient {
|
|
|
1257
1263
|
async findMap(request) {
|
|
1258
1264
|
return findMap(this.protocolTransport, request);
|
|
1259
1265
|
}
|
|
1260
|
-
async requestJson(method, path, init, callerSignal) {
|
|
1266
|
+
async requestJson(method, path, init, callerSignal, policy) {
|
|
1261
1267
|
const request = {
|
|
1262
1268
|
url: resolveRequestUrl(this.baseUrl, path),
|
|
1263
1269
|
path,
|
|
@@ -1270,6 +1276,8 @@ export class HonuaClient {
|
|
|
1270
1276
|
};
|
|
1271
1277
|
return this.executeRequest(request, {
|
|
1272
1278
|
callerSignal,
|
|
1279
|
+
readOnlyQuery: policy?.readOnlyQuery,
|
|
1280
|
+
redirect: policy?.readOnlyQuery ? "preserve-method" : undefined,
|
|
1273
1281
|
finalize: async (response, durationMs, currentRequest, runAfter) => {
|
|
1274
1282
|
// Parse the original body directly when no after-interceptor will read
|
|
1275
1283
|
// it; only clone when an interceptor needs an independent copy.
|
|
@@ -1278,7 +1286,7 @@ export class HonuaClient {
|
|
|
1278
1286
|
// envelope on failure (bad WHERE, invalid outFields, edit failures, …).
|
|
1279
1287
|
// Surface these through the unified error model instead of handing the
|
|
1280
1288
|
// failure envelope back as a "successful" response object.
|
|
1281
|
-
const envelopeError =
|
|
1289
|
+
const envelopeError = toGeoServicesError(response.status, body, response.headers);
|
|
1282
1290
|
if (envelopeError) {
|
|
1283
1291
|
await this.applyErrorInterceptors({
|
|
1284
1292
|
request: cloneRequestContext(currentRequest),
|
|
@@ -1329,7 +1337,7 @@ export class HonuaClient {
|
|
|
1329
1337
|
// preferBinary callers throw a normalized HonuaHttpError exactly like
|
|
1330
1338
|
// the JSON path instead of receiving the failure envelope as success.
|
|
1331
1339
|
const body = await parseResponseBody(response);
|
|
1332
|
-
const envelopeError =
|
|
1340
|
+
const envelopeError = toGeoServicesError(response.status, body, response.headers);
|
|
1333
1341
|
if (envelopeError) {
|
|
1334
1342
|
await this.applyErrorInterceptors({
|
|
1335
1343
|
request: cloneRequestContext(currentRequest),
|
|
@@ -1454,6 +1462,13 @@ export class HonuaClient {
|
|
|
1454
1462
|
*/
|
|
1455
1463
|
async executeRequest(initialRequest, options) {
|
|
1456
1464
|
let request = await this.applyBeforeInterceptors(initialRequest);
|
|
1465
|
+
// A before-interceptor that changes the endpoint/method or supplies a
|
|
1466
|
+
// streaming body cannot inherit this narrow read-query replay permission.
|
|
1467
|
+
const readOnlyQuery = options.readOnlyQuery === true &&
|
|
1468
|
+
request.method === "POST" &&
|
|
1469
|
+
request.method === initialRequest.method &&
|
|
1470
|
+
request.url === initialRequest.url &&
|
|
1471
|
+
typeof request.init.body === "string";
|
|
1457
1472
|
const retrySignal = options.callerSignal ?? request.init.signal ?? undefined;
|
|
1458
1473
|
let refreshedAuth = false;
|
|
1459
1474
|
for (let attempt = 0;; attempt += 1) {
|
|
@@ -1475,7 +1490,7 @@ export class HonuaClient {
|
|
|
1475
1490
|
const normalizedError = timeout.didTimeout
|
|
1476
1491
|
? new HonuaTimeoutError(this.timeoutMs ?? 0)
|
|
1477
1492
|
: normalizeNetworkError(error);
|
|
1478
|
-
if (shouldRetryRequest(this.retryOptions, request.method, attempt, undefined, normalizedError)) {
|
|
1493
|
+
if (shouldRetryRequest(this.retryOptions, request.method, attempt, undefined, normalizedError, readOnlyQuery)) {
|
|
1479
1494
|
await options.beforeReplay?.(cloneRequestContext(request), undefined, "retry");
|
|
1480
1495
|
await this.sleepBeforeRetry(attempt, undefined, retrySignal);
|
|
1481
1496
|
continue;
|
|
@@ -1540,22 +1555,22 @@ export class HonuaClient {
|
|
|
1540
1555
|
const body = options.errorBody
|
|
1541
1556
|
? await options.errorBody(response, options.deadlineThroughFinalize ? timeout.signal : undefined)
|
|
1542
1557
|
: await parseResponseBody(response.clone());
|
|
1543
|
-
const httpError = toHttpError(response.status, body);
|
|
1558
|
+
const httpError = toHttpError(response.status, body, response.headers);
|
|
1544
1559
|
if (!refreshedAuth &&
|
|
1545
1560
|
(response.status === 401 || response.status === 403) &&
|
|
1546
1561
|
this.authProvider &&
|
|
1547
|
-
DEFAULT_RETRY_METHODS.has(request.method)) {
|
|
1562
|
+
(DEFAULT_RETRY_METHODS.has(request.method) || readOnlyQuery)) {
|
|
1548
1563
|
await options.beforeReplay?.(cloneRequestContext(request), response.status, "authentication");
|
|
1549
1564
|
}
|
|
1550
1565
|
const authRefreshedRequest = refreshedAuth
|
|
1551
1566
|
? undefined
|
|
1552
|
-
: await this.refreshReplaySafeRequestAuth(request, response.status);
|
|
1567
|
+
: await this.refreshReplaySafeRequestAuth(request, response.status, readOnlyQuery);
|
|
1553
1568
|
if (authRefreshedRequest) {
|
|
1554
1569
|
request = authRefreshedRequest;
|
|
1555
1570
|
refreshedAuth = true;
|
|
1556
1571
|
continue;
|
|
1557
1572
|
}
|
|
1558
|
-
if (shouldRetryRequest(this.retryOptions, request.method, attempt, response.status, httpError)) {
|
|
1573
|
+
if (shouldRetryRequest(this.retryOptions, request.method, attempt, response.status, httpError, readOnlyQuery)) {
|
|
1559
1574
|
await options.beforeReplay?.(cloneRequestContext(request), response.status, "retry");
|
|
1560
1575
|
await this.sleepBeforeRetry(attempt, response, retrySignal);
|
|
1561
1576
|
continue;
|
|
@@ -1654,10 +1669,10 @@ export class HonuaClient {
|
|
|
1654
1669
|
}
|
|
1655
1670
|
}));
|
|
1656
1671
|
}
|
|
1657
|
-
async refreshReplaySafeRequestAuth(request, statusCode) {
|
|
1672
|
+
async refreshReplaySafeRequestAuth(request, statusCode, readOnlyQuery = false) {
|
|
1658
1673
|
if ((statusCode !== 401 && statusCode !== 403) ||
|
|
1659
1674
|
!this.authProvider ||
|
|
1660
|
-
!DEFAULT_RETRY_METHODS.has(request.method)) {
|
|
1675
|
+
(!DEFAULT_RETRY_METHODS.has(request.method) && !readOnlyQuery)) {
|
|
1661
1676
|
return undefined;
|
|
1662
1677
|
}
|
|
1663
1678
|
const refreshed = await this.resolveAuthCredentials({ forceRefresh: true, reason: "unauthorized" });
|
|
@@ -1685,20 +1700,6 @@ export class HonuaClient {
|
|
|
1685
1700
|
* results or confusing `undefined` access. Returns a normalized
|
|
1686
1701
|
* {@link HonuaHttpError} when the envelope is present, otherwise `undefined`.
|
|
1687
1702
|
*/
|
|
1688
|
-
function geoServicesEnvelopeError(httpStatus, body) {
|
|
1689
|
-
if (!isObject(body) || !isObject(body.error)) {
|
|
1690
|
-
return undefined;
|
|
1691
|
-
}
|
|
1692
|
-
const error = body.error;
|
|
1693
|
-
const hasCode = typeof error.code === "number";
|
|
1694
|
-
const hasMessage = typeof error.message === "string";
|
|
1695
|
-
if (!hasCode && !hasMessage) {
|
|
1696
|
-
return undefined;
|
|
1697
|
-
}
|
|
1698
|
-
const statusCode = hasCode ? error.code : httpStatus;
|
|
1699
|
-
const message = hasMessage ? error.message : "Request failed";
|
|
1700
|
-
return new HonuaHttpError(statusCode, message, body);
|
|
1701
|
-
}
|
|
1702
1703
|
async function parseResponseBody(response, maxResponseBytes) {
|
|
1703
1704
|
const text = maxResponseBytes === undefined
|
|
1704
1705
|
? await response.text()
|
|
@@ -1775,9 +1776,6 @@ function bufferedResponse(source, bytes) {
|
|
|
1775
1776
|
headers: source.headers,
|
|
1776
1777
|
});
|
|
1777
1778
|
}
|
|
1778
|
-
function isObject(value) {
|
|
1779
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1780
|
-
}
|
|
1781
1779
|
function applyRequestMutation(request, mutation) {
|
|
1782
1780
|
const nextInit = mutation.init === undefined
|
|
1783
1781
|
? request.init
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Credential-recognition and redaction primitives shared by every Honua export
|
|
3
|
+
* pipeline.
|
|
4
|
+
*
|
|
5
|
+
* These were extracted verbatim from `src/web-components/export-redaction.ts`
|
|
6
|
+
* (issue #683) when the runtime's portable MapPackage export (#1426) needed the
|
|
7
|
+
* same scanner. There must be exactly one credential recognizer in this SDK: a
|
|
8
|
+
* second copy would drift, and the copy that drifts is the one that leaks. The
|
|
9
|
+
* web-components module re-exports every symbol below so its published surface
|
|
10
|
+
* is unchanged, and keeps the app-platform-specific state projection that
|
|
11
|
+
* layers on top of these primitives.
|
|
12
|
+
*
|
|
13
|
+
* This module lives in `src/core` rather than `src/web-components` because
|
|
14
|
+
* `src/runtime` ships in the stable-tier `@honua/sdk` split package while
|
|
15
|
+
* `src/web-components` ships in `@honua/app-platform`; the runtime cannot
|
|
16
|
+
* reach across that boundary (`scripts/prepare-split-packages.mjs`).
|
|
17
|
+
*
|
|
18
|
+
* Deliberately dependency-free apart from the SDK's shared error base: no
|
|
19
|
+
* `node:crypto`, no DOM, no renderer. Safe in a browser, a worker, or an SSR
|
|
20
|
+
* render pass.
|
|
21
|
+
*
|
|
22
|
+
* @module
|
|
23
|
+
*/
|
|
24
|
+
import { HonuaSdkError } from "./error-envelope.js";
|
|
25
|
+
/** Placeholder substituted for any value the export pipeline refuses to emit. */
|
|
26
|
+
export declare const HONUA_EXPORT_REDACTED = "[REDACTED]";
|
|
27
|
+
/** Why a value was withheld from an export. */
|
|
28
|
+
export type HonuaExportRedactionReason =
|
|
29
|
+
/** The property name itself named a credential (`token`, `apiKey`, `cookie`, ...). */
|
|
30
|
+
"sensitive-key"
|
|
31
|
+
/** A URL carried a signature, SAS, or token query parameter, or embedded userinfo. */
|
|
32
|
+
| "signed-url"
|
|
33
|
+
/** A free-text value matched a credential shape (bearer token, JWT, provider key, ...). */
|
|
34
|
+
| "credential-pattern"
|
|
35
|
+
/** A request-header map was dropped because it is not on the export allowlist. */
|
|
36
|
+
| "private-header"
|
|
37
|
+
/** OAuth/authorization scope, audience, tenant, or grant detail. */
|
|
38
|
+
| "authorization-scope"
|
|
39
|
+
/** A source explicitly marked as not exportable by the plan or the source itself. */
|
|
40
|
+
| "non-exportable-source"
|
|
41
|
+
/**
|
|
42
|
+
* A pointer to where the artifact is hosted or published (`links`, `href`,
|
|
43
|
+
* `publicationUrl`, `embedUrl`, ...). Not a secret — a claim. An exporter
|
|
44
|
+
* that cannot tell whether the thing it is exporting was ever persisted or
|
|
45
|
+
* published must not carry a URL that says it was.
|
|
46
|
+
*/
|
|
47
|
+
| "publication-pointer"
|
|
48
|
+
/** A value could not be represented safely (unserializable, cyclic, over budget). */
|
|
49
|
+
| "unsupported-value";
|
|
50
|
+
/** One withheld value, addressed by its path in the sanitized document. */
|
|
51
|
+
export interface HonuaExportRedaction {
|
|
52
|
+
/** Dotted/bracketed path in the *sanitized* document, e.g. `sources[0].endpoint`. */
|
|
53
|
+
readonly path: string;
|
|
54
|
+
readonly reason: HonuaExportRedactionReason;
|
|
55
|
+
}
|
|
56
|
+
/** Thrown when the export pipeline cannot produce a provably credential-free artifact. */
|
|
57
|
+
export declare class HonuaExportSafetyError extends HonuaSdkError {
|
|
58
|
+
readonly reason: HonuaExportRedactionReason | "assertion";
|
|
59
|
+
constructor(message: string, reason?: HonuaExportRedactionReason | "assertion");
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Redacts credential material from arbitrary human-readable text: adapter
|
|
63
|
+
* error messages, titles, status strings, log lines, event detail messages.
|
|
64
|
+
*
|
|
65
|
+
* Percent-encoded payloads are decoded (twice, bounded) before matching so a
|
|
66
|
+
* `%42earer%20abc` style evasion cannot slip a token past the scan; the
|
|
67
|
+
* returned string is the redacted *decoded* form when decoding changed
|
|
68
|
+
* anything, because emitting the still-encoded original would defeat the
|
|
69
|
+
* point.
|
|
70
|
+
*/
|
|
71
|
+
export declare function redactHonuaExportText(value: string): string;
|
|
72
|
+
/** Whether `value` still looks like it carries credential material. */
|
|
73
|
+
export declare function containsCredentialMaterial(value: string): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Fail-closed assertion for finished export payloads (REQ-002). Throws
|
|
76
|
+
* {@link HonuaExportSafetyError} rather than scrubbing, because reaching this
|
|
77
|
+
* point with credential material means an earlier layer is broken.
|
|
78
|
+
*/
|
|
79
|
+
export declare function assertCredentialFreeExportText(value: string, label: string): void;
|
|
80
|
+
/**
|
|
81
|
+
* Extracts runs of printable ASCII from a binary buffer, joined by newlines.
|
|
82
|
+
*
|
|
83
|
+
* This is the `strings(1)` idea, and it exists because "binary" is not a
|
|
84
|
+
* security boundary. A PNG `tEXt`/`iTXt` chunk, a JPEG `COM` marker, PDF
|
|
85
|
+
* metadata or an embedded XMP packet, an EXIF `UserComment`, a ZIP comment —
|
|
86
|
+
* all carry plainly readable text inside a buffer that will never decode as
|
|
87
|
+
* UTF-8 as a whole. Scanning only whole-buffer-decodable artifacts would let a
|
|
88
|
+
* token ride out inside any of them.
|
|
89
|
+
*
|
|
90
|
+
* Runs shorter than {@link MIN_PRINTABLE_RUN} are dropped: they are the
|
|
91
|
+
* incidental byte values that fall in the ASCII range inside compressed data,
|
|
92
|
+
* and keeping them would produce noise without ever forming a credential.
|
|
93
|
+
*/
|
|
94
|
+
export declare function extractPrintableRuns(bytes: Uint8Array, start?: number, end?: number): string;
|
|
95
|
+
/**
|
|
96
|
+
* Fail-closed credential scan over a binary artifact (REQ-002).
|
|
97
|
+
*
|
|
98
|
+
* Scans in bounded chunks with an overlap, so an arbitrarily large artifact
|
|
99
|
+
* costs bounded memory while a token that straddles a chunk boundary is still
|
|
100
|
+
* caught. Throws {@link HonuaExportSafetyError} on a hit, like the text scan —
|
|
101
|
+
* a credential surviving to this point means an earlier layer is broken, and
|
|
102
|
+
* emitting the bytes anyway is the one outcome that cannot be walked back.
|
|
103
|
+
*/
|
|
104
|
+
export declare function assertCredentialFreeExportBytes(bytes: Uint8Array, label: string): void;
|
|
105
|
+
/** Result of reducing an endpoint URL to its exportable form. */
|
|
106
|
+
export interface HonuaExportEndpointProjection {
|
|
107
|
+
/** `scheme://host[:port]/path` with query, fragment, and userinfo removed, or `undefined` when nothing is safe to emit. */
|
|
108
|
+
readonly endpoint: string | undefined;
|
|
109
|
+
readonly reason?: HonuaExportRedactionReason;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Reduces a source URL to `origin + pathname`, always dropping the query
|
|
113
|
+
* string and fragment.
|
|
114
|
+
*
|
|
115
|
+
* Query strings are where every practical map-service credential lives (Esri
|
|
116
|
+
* `?token=`, Azure SAS `?sv=...&sig=`, S3/GCS presigned `?X-Amz-Signature=`,
|
|
117
|
+
* tile-provider `?api_key=`), and a partial per-parameter allowlist has to be
|
|
118
|
+
* right about every provider forever. Dropping the whole query is the only
|
|
119
|
+
* rule that is right by construction; the origin+path that remains is what an
|
|
120
|
+
* attribution/provenance block legitimately needs.
|
|
121
|
+
*
|
|
122
|
+
* Non-HTTP(S) schemes (`data:`, `blob:`, `file:`), URLs with embedded
|
|
123
|
+
* `user:password@` userinfo, and unparseable strings yield no endpoint at all.
|
|
124
|
+
*/
|
|
125
|
+
export declare function projectExportEndpoint(url: string): HonuaExportEndpointProjection;
|
|
126
|
+
/** Result of removing credential material from a URL while keeping it usable. */
|
|
127
|
+
export interface HonuaUrlCredentialStrip {
|
|
128
|
+
/** The URL with credentials removed, or `undefined` when nothing is safe to emit. */
|
|
129
|
+
readonly url: string | undefined;
|
|
130
|
+
readonly reason?: HonuaExportRedactionReason;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Removes credential material from a URL while leaving the URL *functional*.
|
|
134
|
+
*
|
|
135
|
+
* This is the counterpart to {@link projectExportEndpoint}, not a replacement
|
|
136
|
+
* for it. `projectExportEndpoint` reduces a URL to origin+path for a
|
|
137
|
+
* provenance/attribution block, where the query is never needed and dropping
|
|
138
|
+
* all of it is right by construction. That rule cannot be used on a URL the
|
|
139
|
+
* artifact still has to *fetch*: an OGC WMS `GetMap` request, an Esri
|
|
140
|
+
* `?f=json` endpoint, and a tile template with `?format=pbf` all carry their
|
|
141
|
+
* operation in the query string, and a portable map that lost it would import
|
|
142
|
+
* as a map that no longer renders.
|
|
143
|
+
*
|
|
144
|
+
* So this function removes exactly what is credential-bearing — `user:pass@`
|
|
145
|
+
* userinfo, and query parameters whose *name* reads as a secret or a
|
|
146
|
+
* signature — and then re-scans the remainder, refusing to emit anything that
|
|
147
|
+
* still looks like it carries a token. Non-HTTP(S) schemes are refused
|
|
148
|
+
* outright; `data:` payloads are handled by the caller, which can bound and
|
|
149
|
+
* scan the decoded bytes with {@link assertCredentialFreeExportBytes}.
|
|
150
|
+
*/
|
|
151
|
+
export declare function stripCredentialsFromUrl(url: string): HonuaUrlCredentialStrip;
|
|
152
|
+
/**
|
|
153
|
+
* Filters a header map down to the export allowlist, recording every drop.
|
|
154
|
+
* Exposed so adapters can prove — in their own tests — that no `Authorization`,
|
|
155
|
+
* `Cookie`, or provider-specific key header rides along with export metadata.
|
|
156
|
+
*/
|
|
157
|
+
export declare function sanitizeHonuaExportHeaders(headers: Readonly<Record<string, string>> | undefined): {
|
|
158
|
+
headers: Readonly<Record<string, string>>;
|
|
159
|
+
redactions: readonly HonuaExportRedaction[];
|
|
160
|
+
};
|
|
161
|
+
/** Whether a property name is refused outright by the export pipeline. */
|
|
162
|
+
export declare function isSensitiveExportKey(name: string): boolean;
|
|
163
|
+
//# sourceMappingURL=credential-redaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-redaction.d.ts","sourceRoot":"","sources":["../../../src/core/credential-redaction.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,iFAAiF;AACjF,eAAO,MAAM,qBAAqB,eAAe,CAAC;AAElD,+CAA+C;AAC/C,MAAM,MAAM,0BAA0B;AACpC,sFAAsF;AACpF,eAAe;AACjB,sFAAsF;GACpF,YAAY;AACd,2FAA2F;GACzF,oBAAoB;AACtB,kFAAkF;GAChF,gBAAgB;AAClB,oEAAoE;GAClE,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