@seedprotocol/arweave 0.6.6 → 0.6.8

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.
@@ -21,6 +21,17 @@ export declare abstract class BaseArweaveClient {
21
21
  * Hostname (+ optional port) without a path prefix — safe for the `arweave` npm client's `init({ host })`.
22
22
  */
23
23
  static getArweaveSdkHost(): string;
24
+ /**
25
+ * `{ host, port, protocol }` for the `arweave` npm client's `init()`. The port is always set: the
26
+ * web build of `arweave` otherwise falls back to the page's own port (`https://arweave.net:5173`),
27
+ * and a `host:port` passed as `host` becomes `host:port:443`. Path prefixes are dropped — the
28
+ * `arweave` client cannot address a gateway mounted under a path.
29
+ */
30
+ static getArweaveJsApiConfig(): {
31
+ host: string;
32
+ port: number;
33
+ protocol: 'http' | 'https';
34
+ };
24
35
  /**
25
36
  * Path prefix on the gateway origin (e.g. `/api/seed-gateway`), or empty.
26
37
  */
@@ -1 +1 @@
1
- {"version":3,"file":"BaseArweaveClient.d.ts","sourceRoot":"","sources":["../../src/ArweaveClient/BaseArweaveClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,wBAAwB,EACzB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAoBzD,8BAAsB,iBAAiB;IACrC,OAAO,CAAC,MAAM,CAAC,KAAK,CAA8B;IAElD,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI;IAS5C,OAAO,CAAC,MAAM,CAAC,WAAW;IAS1B;;OAEG;IACH,MAAM,CAAC,cAAc,IAAI;QAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;IAYrE;;;OAGG;IACH,MA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AAC,mBAAmB,IAAI,OAAO;IAIrC;;OAEG;IACH,MAAM,CAAC,sCAAsC,IAAI,IAAI;IAIrD;;;OAGG;IACH,MAAM,CAAC,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAOlD;;OAEG;IACH,MAAM,CAAC,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAQjD;;;OAGG;IACH,MAAM,CAAC,WAAW,IAAI,MAAM;IAI5B;;;;OAIG;IACH,MAAM,CAAC,SAAS,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM;IAI/C;;;OAGG;IACH,MAAM,CAAC,YAAY,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM;IAQlD,MAAM,CAAC,gBAAgB,IAAI,aAAa;IAIxC,MAAM,CAAC,oBAAoB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAI9E,MAAM,CAAC,kBAAkB,CACvB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,GAAG,MAAM,CAAC;IAI/B,MAAM,CAAC,kBAAkB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAI3E,MAAM,CAAC,iBAAiB,CACtB,IAAI,EAAE,MAAM,GAAG,UAAU,EACzB,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,GAAG,CAAC;IAIf,MAAM,CAAC,aAAa,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;CAG7E"}
@@ -2,8 +2,16 @@
2
2
  export declare function invalidateReadGatewayCache(): void;
3
3
  /** Clears probe cache, env override suppression, and preferred host (for tests). */
4
4
  export declare function resetArweaveReadGatewayForTests(): void;
5
+ /**
6
+ * True when the last {@link ensureReadGatewaySelected} probe found a healthy host
7
+ * (or the cache still says so). False after an all-fail probe until the next success.
8
+ */
9
+ export declare function isReadGatewayKnownHealthy(): boolean;
10
+ /** Last gateway host that passed /info, if any. */
11
+ export declare function getLastHealthyReadGatewayHost(): string | null;
5
12
  /**
6
13
  * GET /info with timeout. Treat 2xx + JSON object as healthy.
14
+ * Records circuit-breaker success/failure for the host.
7
15
  */
8
16
  export declare function probeGateway(baseUrl: string, signal?: AbortSignal): Promise<boolean>;
9
17
  export declare function selectFirstHealthyReadGateway(hosts: string[], protocol?: 'http' | 'https', signal?: AbortSignal): Promise<string | null>;
@@ -11,6 +19,10 @@ export declare function selectFirstHealthyReadGateway(hosts: string[], protocol?
11
19
  * Probes gateways in order and applies the first healthy host via {@link BaseArweaveClient.applyProbedReadGateway}.
12
20
  * No-op when the read gateway is locked ({@link BaseArweaveClient.setHost}).
13
21
  * Uses a short TTL cache to avoid probing on every read.
22
+ *
23
+ * When every probe fails, keeps the last known healthy host (if any) instead of
24
+ * treating the preferred-but-unreachable host as selected, and caches
25
+ * `healthy: false` so {@link isReadGatewayKnownHealthy} reflects that.
14
26
  */
15
27
  export declare function ensureReadGatewaySelected(signal?: AbortSignal): Promise<string>;
16
28
  //# sourceMappingURL=selectReadGateway.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"selectReadGateway.d.ts","sourceRoot":"","sources":["../../src/ArweaveClient/selectReadGateway.ts"],"names":[],"mappings":"AAYA,+EAA+E;AAC/E,wBAAgB,0BAA0B,IAAI,IAAI,CAGjD;AAED,oFAAoF;AACpF,wBAAgB,+BAA+B,IAAI,IAAI,CAMtD;AAED;;GAEG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,CA4B1F;AAED,wBAAsB,6BAA6B,CACjD,KAAK,EAAE,MAAM,EAAE,EACf,QAAQ,GAAE,MAAM,GAAG,OAAiB,EACpC,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAUxB;AAMD;;;;GAIG;AACH,wBAAsB,yBAAyB,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAqCrF"}
1
+ {"version":3,"file":"selectReadGateway.d.ts","sourceRoot":"","sources":["../../src/ArweaveClient/selectReadGateway.ts"],"names":[],"mappings":"AA8BA,+EAA+E;AAC/E,wBAAgB,0BAA0B,IAAI,IAAI,CAGjD;AAED,oFAAoF;AACpF,wBAAgB,+BAA+B,IAAI,IAAI,CAQtD;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,IAAI,OAAO,CAMnD;AAED,mDAAmD;AACnD,wBAAgB,6BAA6B,IAAI,MAAM,GAAG,IAAI,CAE7D;AAED;;;GAGG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,CAmD1F;AAED,wBAAsB,6BAA6B,CACjD,KAAK,EAAE,MAAM,EAAE,EACf,QAAQ,GAAE,MAAM,GAAG,OAAiB,EACpC,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAWxB;AAMD;;;;;;;;GAQG;AACH,wBAAsB,yBAAyB,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CA0DrF"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Process-wide circuit breaker for Arweave gateway hosts.
3
+ *
4
+ * After consecutive failures, a host is "open" for a cooldown and skipped by
5
+ * probes / metadata fetches. After the cooldown it becomes half-open (one probe
6
+ * allowed). Success closes the circuit.
7
+ */
8
+ export type GatewayCircuitState = 'closed' | 'open' | 'half-open';
9
+ /** Strip scheme / trailing slash; lowercase host (+ optional port/path). */
10
+ export declare function normalizeGatewayHostKey(hostOrUrl: string): string;
11
+ /**
12
+ * Configure failure threshold and open-state duration (mainly for tests).
13
+ */
14
+ export declare function configureGatewayCircuitBreaker(options: {
15
+ failureThreshold?: number;
16
+ openDurationMs?: number;
17
+ }): void;
18
+ /** Clears all host circuits and restores default thresholds (for tests). */
19
+ export declare function resetGatewayCircuitBreakerForTests(): void;
20
+ /**
21
+ * True when the host should not receive new requests (open), or a half-open
22
+ * probe is already in flight.
23
+ */
24
+ export declare function isGatewayHostCircuitOpen(hostOrUrl: string, now?: number): boolean;
25
+ export declare function getGatewayHostCircuitState(hostOrUrl: string, now?: number): GatewayCircuitState;
26
+ /**
27
+ * Mark that a probe/request is starting against a half-open host so concurrent
28
+ * callers skip it. No-op when closed or fully open.
29
+ */
30
+ export declare function beginGatewayHostHalfOpenProbe(hostOrUrl: string, now?: number): void;
31
+ export declare function recordGatewayHostSuccess(hostOrUrl: string): void;
32
+ export declare function recordGatewayHostFailure(hostOrUrl: string, now?: number): void;
33
+ /** Hosts currently in open (or half-open with in-flight) state. */
34
+ export declare function listOpenGatewayCircuitHosts(now?: number): string[];
35
+ //# sourceMappingURL=gatewayCircuitBreaker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gatewayCircuitBreaker.d.ts","sourceRoot":"","sources":["../../src/gateway/gatewayCircuitBreaker.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,MAAM,GAAG,WAAW,CAAA;AAgBjE,4EAA4E;AAC5E,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAMjE;AAiBD;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,EAAE;IACtD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,GAAG,IAAI,CAOP;AAED,4EAA4E;AAC5E,wBAAgB,kCAAkC,IAAI,IAAI,CAIzD;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,SAAa,GAAG,OAAO,CASrF;AAED,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,MAAM,EACjB,GAAG,SAAa,GACf,mBAAmB,CAMrB;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,SAAa,GAAG,IAAI,CAOvF;AAED,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAIhE;AAED,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,SAAa,GAAG,IAAI,CASlF;AAED,mEAAmE;AACnE,wBAAgB,2BAA2B,CAAC,GAAG,SAAa,GAAG,MAAM,EAAE,CAMtE"}
@@ -2,4 +2,16 @@ import type { ResolvedSeedGatewayEndpoints } from '../types/gateway.js';
2
2
  /** Last endpoints applied during client init (for read-path helpers). */
3
3
  export declare function getResolvedSeedGatewayEndpoints(): ResolvedSeedGatewayEndpoints | null;
4
4
  export declare function setResolvedSeedGatewayEndpoints(value: ResolvedSeedGatewayEndpoints | null): void;
5
+ /**
6
+ * Gateways tried before the resolved / public hosts for `/raw/{id}` reads — typically the gateway
7
+ * the app uploads through (Hyper sidecar or app-server proxy), which serves data items before they
8
+ * reach L1 or the public gateways. Does not affect upload, GraphQL or {@link BaseArweaveClient} host.
9
+ */
10
+ export declare function getPreferredArweaveReadBaseUrls(): string[];
11
+ /**
12
+ * Replace the preferred read gateways. Each entry is a base URL with scheme and any path prefix
13
+ * (`https://app.example.com/api/seed-gateway`); same-origin relative paths (`/api/seed-gateway`)
14
+ * resolve against `window.location.origin` and are dropped when there is no origin. Pass `[]` to clear.
15
+ */
16
+ export declare function setPreferredArweaveReadBaseUrls(urls: readonly string[]): void;
5
17
  //# sourceMappingURL=gatewayState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gatewayState.d.ts","sourceRoot":"","sources":["../../src/gateway/gatewayState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAA;AAIvE,yEAAyE;AACzE,wBAAgB,+BAA+B,IAAI,4BAA4B,GAAG,IAAI,CAErF;AAED,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,4BAA4B,GAAG,IAAI,GACzC,IAAI,CAEN"}
1
+ {"version":3,"file":"gatewayState.d.ts","sourceRoot":"","sources":["../../src/gateway/gatewayState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAA;AAKvE,yEAAyE;AACzE,wBAAgB,+BAA+B,IAAI,4BAA4B,GAAG,IAAI,CAErF;AAED,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,4BAA4B,GAAG,IAAI,GACzC,IAAI,CAEN;AAID;;;;GAIG;AACH,wBAAgB,+BAA+B,IAAI,MAAM,EAAE,CAE1D;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAmB7E"}
@@ -0,0 +1,31 @@
1
+ /** Per-gateway timeout for {@link fetchArweaveRawFromBaseUrl}; a hung gateway must not block the next one. */
2
+ export declare const DEFAULT_ARWEAVE_RAW_READ_TIMEOUT_MS = 10000;
3
+ export type ArweaveReadBaseUrlOptions = {
4
+ /** Hosts (no scheme) used when no gateway endpoints have been resolved, e.g. a feed's own list. */
5
+ fallbackHosts?: readonly string[];
6
+ };
7
+ /**
8
+ * Resolved / public read gateways as base URLs (scheme + host + any path prefix), without the
9
+ * preferred ones. Does not probe.
10
+ */
11
+ export declare function getResolvedArweaveReadBaseUrls(options?: ArweaveReadBaseUrlOptions): string[];
12
+ /**
13
+ * Ordered base URLs for `/raw/{id}` (and `/{id}`) reads: preferred gateways
14
+ * ({@link setPreferredArweaveReadBaseUrls}) first, then the resolved / public gateways. Does not probe.
15
+ */
16
+ export declare function getArweaveReadBaseUrls(options?: ArweaveReadBaseUrlOptions): string[];
17
+ /** Run the read-gateway probe unless a sidecar / proxy is already the active path. Never throws. */
18
+ export declare function ensureArweaveReadGatewayForFallback(): Promise<void>;
19
+ /** GET `{baseUrl}/raw/{id}`; `undefined` on network error, timeout or non-2xx. */
20
+ export declare function fetchArweaveRawFromBaseUrl(baseUrl: string, transactionId: string, options?: {
21
+ timeoutMs?: number;
22
+ }): Promise<Response | undefined>;
23
+ /**
24
+ * GET `/raw/{id}` across read gateways and return the first non-empty body as text. Preferred
25
+ * gateways go first and are tried before any read-gateway probe; a just-published item is served
26
+ * by the gateway it was uploaded through well before it reaches L1 or the public hosts.
27
+ */
28
+ export declare function fetchArweaveRawTextAcrossGateways(transactionId: string, options?: ArweaveReadBaseUrlOptions & {
29
+ timeoutMs?: number;
30
+ }): Promise<string | undefined>;
31
+ //# sourceMappingURL=readBaseUrls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readBaseUrls.d.ts","sourceRoot":"","sources":["../../src/gateway/readBaseUrls.ts"],"names":[],"mappings":"AAMA,8GAA8G;AAC9G,eAAO,MAAM,mCAAmC,QAAS,CAAA;AAEzD,MAAM,MAAM,yBAAyB,GAAG;IACtC,mGAAmG;IACnG,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAClC,CAAA;AASD;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,OAAO,CAAC,EAAE,yBAAyB,GAAG,MAAM,EAAE,CAiB5F;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,CAAC,EAAE,yBAAyB,GAAG,MAAM,EAAE,CAMpF;AAED,oGAAoG;AACpG,wBAAsB,mCAAmC,IAAI,OAAO,CAAC,IAAI,CAAC,CAUzE;AAED,kFAAkF;AAClF,wBAAsB,0BAA0B,CAC9C,OAAO,EAAE,MAAM,EACf,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GAC/B,OAAO,CAAC,QAAQ,GAAG,SAAS,CAAC,CAkB/B;AAED;;;;GAIG;AACH,wBAAsB,iCAAiC,CACrD,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,yBAAyB,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,GAC3D,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAuB7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"seedGatewayConfig.d.ts","sourceRoot":"","sources":["../../src/gateway/seedGatewayConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,wBAAwB,CAAA;AAG/B,uEAAuE;AACvE,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,sBAAsB,GAC7B,iBAAiB,CAkBnB;AAED,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,yBAAyB,GACjC,iBAAiB,CAanB"}
1
+ {"version":3,"file":"seedGatewayConfig.d.ts","sourceRoot":"","sources":["../../src/gateway/seedGatewayConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,wBAAwB,CAAA;AAG/B,uEAAuE;AACvE,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,sBAAsB,GAC7B,iBAAiB,CAmBnB;AAED,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,yBAAyB,GACjC,iBAAiB,CAanB"}
package/dist/index.d.ts CHANGED
@@ -14,6 +14,8 @@ export * from './ArweaveClient/selectReadGateway.js';
14
14
  export * from './ArweaveClient/uploadApiVerification.js';
15
15
  export * from './ArweaveClient/arweaveL1UploadApi.js';
16
16
  export * from './gateway/gatewayState.js';
17
+ export * from './gateway/gatewayCircuitBreaker.js';
17
18
  export * from './gateway/resolveSeedGatewayEndpoints.js';
18
19
  export * from './gateway/seedGatewayConfig.js';
20
+ export * from './gateway/readBaseUrls.js';
19
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B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