@seedprotocol/arweave 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/ArweaveClient/BaseArweaveClient.d.ts +73 -0
  2. package/dist/ArweaveClient/BaseArweaveClient.d.ts.map +1 -0
  3. package/dist/ArweaveClient/IArweaveClient.d.ts +11 -0
  4. package/dist/ArweaveClient/IArweaveClient.d.ts.map +1 -0
  5. package/dist/ArweaveClient/arweaveL1UploadApi.d.ts +52 -0
  6. package/dist/ArweaveClient/arweaveL1UploadApi.d.ts.map +1 -0
  7. package/dist/ArweaveClient/queries.d.ts +44 -0
  8. package/dist/ArweaveClient/queries.d.ts.map +1 -0
  9. package/dist/ArweaveClient/selectReadGateway.d.ts +16 -0
  10. package/dist/ArweaveClient/selectReadGateway.d.ts.map +1 -0
  11. package/dist/ArweaveClient/uploadApiVerification.d.ts +23 -0
  12. package/dist/ArweaveClient/uploadApiVerification.d.ts.map +1 -0
  13. package/dist/constants.d.ts +46 -0
  14. package/dist/constants.d.ts.map +1 -0
  15. package/dist/gateway/gatewayState.d.ts +5 -0
  16. package/dist/gateway/gatewayState.d.ts.map +1 -0
  17. package/dist/gateway/resolveSeedGatewayEndpoints.d.ts +15 -0
  18. package/dist/gateway/resolveSeedGatewayEndpoints.d.ts.map +1 -0
  19. package/dist/gateway/seedGatewayConfig.d.ts +5 -0
  20. package/dist/gateway/seedGatewayConfig.d.ts.map +1 -0
  21. package/dist/graphql/gql/fragment-masking.d.ts +20 -0
  22. package/dist/graphql/gql/fragment-masking.d.ts.map +1 -0
  23. package/dist/graphql/gql/gql.d.ts +42 -0
  24. package/dist/graphql/gql/gql.d.ts.map +1 -0
  25. package/dist/graphql/gql/graphql.d.ts +337 -0
  26. package/dist/graphql/gql/graphql.d.ts.map +1 -0
  27. package/dist/graphql/gql/index.d.ts +3 -0
  28. package/dist/graphql/gql/index.d.ts.map +1 -0
  29. package/dist/index.d.ts +17 -0
  30. package/dist/index.d.ts.map +1 -0
  31. package/dist/index.js +432 -0
  32. package/dist/index.js.map +1 -0
  33. package/dist/mediaRef.d.ts +58 -0
  34. package/dist/mediaRef.d.ts.map +1 -0
  35. package/dist/node/ArweaveClient.d.ts +14 -0
  36. package/dist/node/ArweaveClient.d.ts.map +1 -0
  37. package/dist/node/index.d.ts +7 -0
  38. package/dist/node/index.d.ts.map +1 -0
  39. package/dist/node.js +110 -0
  40. package/dist/node.js.map +1 -0
  41. package/dist/queries-DgB0O5RC.js +512 -0
  42. package/dist/queries-DgB0O5RC.js.map +1 -0
  43. package/dist/relationSeedRef.d.ts +6 -0
  44. package/dist/relationSeedRef.d.ts.map +1 -0
  45. package/dist/shims/typed-document-node.d.ts +5 -0
  46. package/dist/shims/typed-document-node.d.ts.map +1 -0
  47. package/dist/types/arweave.d.ts +57 -0
  48. package/dist/types/arweave.d.ts.map +1 -0
  49. package/dist/types/gateway.d.ts +44 -0
  50. package/dist/types/gateway.d.ts.map +1 -0
  51. package/dist/types/seedConfig.d.ts +26 -0
  52. package/dist/types/seedConfig.d.ts.map +1 -0
  53. package/package.json +57 -0
@@ -0,0 +1,73 @@
1
+ import { GraphQLClient } from 'graphql-request';
2
+ import type { TransactionStatus, TransactionTag, GetDataOptions, DownloadFilesParams, DownloadResult, CreateTransactionOptions } from '../types/arweave.js';
3
+ import type { IArweaveClient } from './IArweaveClient.js';
4
+ export declare abstract class BaseArweaveClient {
5
+ private static _impl;
6
+ static configure(impl: IArweaveClient): void;
7
+ private static requireImpl;
8
+ /**
9
+ * Resolved gateway host (no scheme) and protocol from env override or setHost().
10
+ */
11
+ static resolveGateway(): {
12
+ protocol: 'http' | 'https';
13
+ host: string;
14
+ };
15
+ /**
16
+ * Get the current Arweave host (hostname, optionally with port — no URL scheme)
17
+ * @returns The Arweave host (e.g. 'arweave.net' or 'localhost:1984')
18
+ */
19
+ static getHost(): string;
20
+ /**
21
+ * Get whether requests use http or https
22
+ */
23
+ static getProtocol(): 'http' | 'https';
24
+ /**
25
+ * Base URL for the configured gateway (e.g. https://arweave.net or http://localhost:1984)
26
+ */
27
+ static getBaseUrl(): string;
28
+ /**
29
+ * Set the Arweave gateway. Plain host defaults to https; prefix with http:// for local HTTP gateways.
30
+ * @param host - e.g. 'arweave.net', 'https://arweave.net', or 'http://localhost:1984'
31
+ */
32
+ static setHost(host: string): void;
33
+ /**
34
+ * When true, read-path gateway probing does not change the host ({@link setHost}).
35
+ */
36
+ static isReadGatewayLocked(): boolean;
37
+ /**
38
+ * @internal Clears env override suppression after probing (for test isolation).
39
+ */
40
+ static resetReadGatewaySelectionStateForTests(): void;
41
+ /**
42
+ * Sets the preferred read gateway without locking. Env host still takes precedence until a probe applies a host.
43
+ * Used for seed `arweaveDomain`.
44
+ */
45
+ static setPreferredReadGateway(host: string): void;
46
+ /**
47
+ * Applies a gateway chosen by read-path health probing so {@link getHost} uses it instead of env override.
48
+ */
49
+ static applyProbedReadGateway(host: string): void;
50
+ /**
51
+ * Get the GraphQL endpoint URL
52
+ * @returns The full GraphQL endpoint URL
53
+ */
54
+ static getEndpoint(): string;
55
+ /**
56
+ * Get the raw data URL for a transaction
57
+ * @param transactionId - The Arweave transaction ID
58
+ * @returns The full URL to access raw transaction data
59
+ */
60
+ static getRawUrl(transactionId: string): string;
61
+ /**
62
+ * URL used to verify that a transaction is available on the gateway (HTTP 200 = present).
63
+ * @param transactionId - The Arweave transaction ID
64
+ */
65
+ static getStatusUrl(transactionId: string): string;
66
+ static getArweaveClient(): GraphQLClient;
67
+ static getTransactionStatus(transactionId: string): Promise<TransactionStatus>;
68
+ static getTransactionData(transactionId: string, options?: GetDataOptions): Promise<Uint8Array | string>;
69
+ static getTransactionTags(transactionId: string): Promise<TransactionTag[]>;
70
+ static createTransaction(data: string | Uint8Array, options?: CreateTransactionOptions): Promise<any>;
71
+ static downloadFiles(params: DownloadFilesParams): Promise<DownloadResult[]>;
72
+ }
73
+ //# sourceMappingURL=BaseArweaveClient.d.ts.map
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M,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"}
@@ -0,0 +1,11 @@
1
+ import type { GraphQLClient } from 'graphql-request';
2
+ import type { TransactionStatus, TransactionTag, GetDataOptions, DownloadFilesParams, DownloadResult, CreateTransactionOptions } from '../types/arweave.js';
3
+ export interface IArweaveClient {
4
+ getArweaveClient(): GraphQLClient;
5
+ getTransactionStatus(transactionId: string): Promise<TransactionStatus>;
6
+ getTransactionData(transactionId: string, options?: GetDataOptions): Promise<Uint8Array | string>;
7
+ getTransactionTags(transactionId: string): Promise<TransactionTag[]>;
8
+ createTransaction(data: string | Uint8Array, options?: CreateTransactionOptions): Promise<any>;
9
+ downloadFiles(params: DownloadFilesParams): Promise<DownloadResult[]>;
10
+ }
11
+ //# sourceMappingURL=IArweaveClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IArweaveClient.d.ts","sourceRoot":"","sources":["../../src/ArweaveClient/IArweaveClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,wBAAwB,EACzB,MAAM,qBAAqB,CAAA;AAE5B,MAAM,WAAW,cAAc;IAC7B,gBAAgB,IAAI,aAAa,CAAA;IACjC,oBAAoB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAA;IACvE,kBAAkB,CAChB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,GAAG,MAAM,CAAC,CAAA;IAC/B,kBAAkB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAAA;IACpE,iBAAiB,CACf,IAAI,EAAE,MAAM,GAAG,UAAU,EACzB,OAAO,CAAC,EAAE,wBAAwB,GACjC,OAAO,CAAC,GAAG,CAAC,CAAA;IACf,aAAa,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAAA;CACtE"}
@@ -0,0 +1,52 @@
1
+ /** Response shape from `GET /api/upload/arweave/status/{dataItemId}`. */
2
+ export interface ArweaveUploadStatusResponse {
3
+ dataItemId?: string;
4
+ phase?: string;
5
+ bundleId?: string;
6
+ turboStatus?: string;
7
+ turboInfo?: string;
8
+ winc?: string;
9
+ turbo?: {
10
+ status?: string;
11
+ bundleId?: string;
12
+ info?: string;
13
+ winc?: string;
14
+ };
15
+ l1?: {
16
+ checked?: boolean;
17
+ httpStatus?: number;
18
+ confirmed?: boolean;
19
+ numberOfConfirmations?: number;
20
+ minConfirmationsRequired?: number;
21
+ meetsMinConfirmations?: boolean;
22
+ };
23
+ }
24
+ export interface ArweaveGatewayTransactionQueryResult {
25
+ /** GraphQL `transaction.id` (often same as data item id for ANS-104 items). */
26
+ transactionId: string | null;
27
+ /** L1 bundle transaction id when the item is indexed as bundled. */
28
+ bundledInId: string | null;
29
+ blockHeight?: number | null;
30
+ blockTimestamp?: number | null;
31
+ }
32
+ export declare function getUploadApiArweaveStatusUrl(baseUrl: string, dataItemId: string): string;
33
+ /**
34
+ * Whether L1 anchoring is complete per upload API status JSON.
35
+ */
36
+ export declare function isArweaveL1AnchoringComplete(status: ArweaveUploadStatusResponse): boolean;
37
+ /**
38
+ * Fetches JSON from `GET /api/upload/arweave/status/{dataItemId}`.
39
+ * Returns `null` if the response is not OK or body is not JSON.
40
+ */
41
+ export declare function getArweaveUploadStatus(uploadApiBaseUrl: string, dataItemId: string): Promise<ArweaveUploadStatusResponse | null>;
42
+ /**
43
+ * Queries an Arweave gateway GraphQL API for transaction + bundle info.
44
+ */
45
+ export declare function queryArweaveGatewayTransaction(graphqlUrl: string, dataItemId: string, init?: Pick<RequestInit, 'signal'>): Promise<ArweaveGatewayTransactionQueryResult | null>;
46
+ /**
47
+ * Resolves GraphQL against the first healthy gateway (GET /info probe per host), then runs
48
+ * {@link queryArweaveGatewayTransaction}. Host order: optional `graphqlUrl` hostname first, then
49
+ * {@link getDefaultArweaveReadGatewayHostsOrdered}.
50
+ */
51
+ export declare function queryArweaveGatewayTransactionWithFallback(graphqlUrl: string | undefined, dataItemId: string, init?: Pick<RequestInit, 'signal'>): Promise<ArweaveGatewayTransactionQueryResult | null>;
52
+ //# sourceMappingURL=arweaveL1UploadApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arweaveL1UploadApi.d.ts","sourceRoot":"","sources":["../../src/ArweaveClient/arweaveL1UploadApi.ts"],"names":[],"mappings":"AAOA,yEAAyE;AACzE,MAAM,WAAW,2BAA2B;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM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C,CAC9D,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,UAAU,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,GACjC,OAAO,CAAC,oCAAoC,GAAG,IAAI,CAAC,CA+BtD"}
@@ -0,0 +1,44 @@
1
+ import { TypedDocumentNode } from '@graphql-typed-document-node/core';
2
+ export declare const GET_TRANSACTION_TAGS: TypedDocumentNode<{
3
+ tags: {
4
+ id: string;
5
+ tags: {
6
+ name: string;
7
+ value: string;
8
+ }[];
9
+ } | null;
10
+ }, {
11
+ transactionId: string;
12
+ }>;
13
+ export declare const GET_ARWEAVE_TRANSACTIONS: TypedDocumentNode<{
14
+ transactions: {
15
+ edges: Array<{
16
+ cursor: string;
17
+ node: {
18
+ id: string;
19
+ anchor: string;
20
+ signature: string;
21
+ block: {
22
+ id: string;
23
+ height: number;
24
+ };
25
+ data: {
26
+ size: number;
27
+ type: string;
28
+ };
29
+ tags: Array<{
30
+ name: string;
31
+ value: string;
32
+ }>;
33
+ };
34
+ }>;
35
+ pageInfo: {
36
+ hasNextPage: boolean;
37
+ };
38
+ };
39
+ }, {
40
+ owners?: string[];
41
+ first?: number;
42
+ after?: string;
43
+ }>;
44
+ //# sourceMappingURL=queries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../src/ArweaveClient/queries.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AAErE,eAAO,MAAM,oBAAoB,EAUhB,iBAAiB,CAAC;IAAE,IAAI,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,EAAE,CAAA;KAAE,GAAG,IAAI,CAAA;CAAE,EAAE;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC,CAAA;AAEvI,eAAO,MAAM,wBAAwB,EAgCpB,iBAAiB,CAChC;IACE,YAAY,EAAE;QACZ,KAAK,EAAE,KAAK,CAAC;YACX,MAAM,EAAE,MAAM,CAAA;YACd,IAAI,EAAE;gBACJ,EAAE,EAAE,MAAM,CAAA;gBACV,MAAM,EAAE,MAAM,CAAA;gBACd,SAAS,EAAE,MAAM,CAAA;gBACjB,KAAK,EAAE;oBAAE,EAAE,EAAE,MAAM,CAAC;oBAAC,MAAM,EAAE,MAAM,CAAA;iBAAE,CAAA;gBACrC,IAAI,EAAE;oBAAE,IAAI,EAAE,MAAM,CAAC;oBAAC,IAAI,EAAE,MAAM,CAAA;iBAAE,CAAA;gBACpC,IAAI,EAAE,KAAK,CAAC;oBAAE,IAAI,EAAE,MAAM,CAAC;oBAAC,KAAK,EAAE,MAAM,CAAA;iBAAE,CAAC,CAAA;aAC7C,CAAA;SACF,CAAC,CAAA;QACF,QAAQ,EAAE;YAAE,WAAW,EAAE,OAAO,CAAA;SAAE,CAAA;KACnC,CAAA;CACF,EACD;IAAE,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CACtD,CAAA"}
@@ -0,0 +1,16 @@
1
+ /** Clears cached read gateway (e.g. after tests or to force a fresh probe). */
2
+ export declare function invalidateReadGatewayCache(): void;
3
+ /** Clears probe cache, env override suppression, and preferred host (for tests). */
4
+ export declare function resetArweaveReadGatewayForTests(): void;
5
+ /**
6
+ * GET /info with timeout. Treat 2xx + JSON object as healthy.
7
+ */
8
+ export declare function probeGateway(baseUrl: string, signal?: AbortSignal): Promise<boolean>;
9
+ export declare function selectFirstHealthyReadGateway(hosts: string[], protocol?: 'http' | 'https', signal?: AbortSignal): Promise<string | null>;
10
+ /**
11
+ * Probes gateways in order and applies the first healthy host via {@link BaseArweaveClient.applyProbedReadGateway}.
12
+ * No-op when the read gateway is locked ({@link BaseArweaveClient.setHost}).
13
+ * Uses a short TTL cache to avoid probing on every read.
14
+ */
15
+ export declare function ensureReadGatewaySelected(signal?: AbortSignal): Promise<string>;
16
+ //# sourceMappingURL=selectReadGateway.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,23 @@
1
+ import type { TransactionStatus } from '../types/arweave.js';
2
+ /**
3
+ * Trim and strip a trailing slash from an upload API base URL.
4
+ */
5
+ export declare function normalizeUploadApiBaseUrl(baseUrl: string): string;
6
+ /**
7
+ * URL used to verify that an upload is available via the Seed upload API
8
+ * (`GET` → HTTP 200 when present). Works for L1 transaction ids and ANS-104 data item ids.
9
+ *
10
+ * @param baseUrl - Upload API origin (e.g. from `ARWEAVE_UPLOAD_API_BASE_URL` / `uploadApiBaseUrl`)
11
+ * @param txOrDataItemId - Arweave tx id or bundler data item id
12
+ */
13
+ export declare function getUploadApiArweaveDataUrl(baseUrl: string, txOrDataItemId: string): string;
14
+ export type GetUploadPipelineTransactionStatusOptions = {
15
+ /** Abort the request after this many ms (upload API hung / unreachable). Default 45s. */
16
+ timeoutMs?: number;
17
+ };
18
+ /**
19
+ * Presence check against the upload API data route (same semantics as
20
+ * {@link BaseArweaveClient.getTransactionStatus} for gateways: 200 = present, 404 = missing).
21
+ */
22
+ export declare function getUploadPipelineTransactionStatus(uploadApiBaseUrl: string, txOrDataItemId: string, options?: GetUploadPipelineTransactionStatusOptions): Promise<TransactionStatus>;
23
+ //# sourceMappingURL=uploadApiVerification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uploadApiVerification.d.ts","sourceRoot":"","sources":["../../src/ArweaveClient/uploadApiVerification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAE5D;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEjE;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,MAAM,CAI1F;AAID,MAAM,MAAM,yCAAyC,GAAG;IACtD,yFAAyF;IACzF,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;GAGG;AACH,wBAAsB,kCAAkC,CACtD,gBAAgB,EAAE,MAAM,EACxB,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,yCAAyC,GAClD,OAAO,CAAC,iBAAiB,CAAC,CA8B5B"}
@@ -0,0 +1,46 @@
1
+ /** Default Arweave gateway host used across all packages (first in {@link DEFAULT_ARWEAVE_GATEWAYS}) */
2
+ export declare const DEFAULT_ARWEAVE_HOST = "ar.seedprotocol.io";
3
+ /**
4
+ * Official Seed Protocol public feed Hyperdrive key (z32).
5
+ * Empty until the first official publisher keypair is generated and backed up by ops.
6
+ */
7
+ export declare const DEFAULT_SEED_FEED_HYPER_KEY = "";
8
+ /**
9
+ * Official Seed Protocol gateway Hyper tunnel operator key (z32).
10
+ * Empty until ops generate and back up the first operator keypair.
11
+ */
12
+ export declare const DEFAULT_SEED_GATEWAY_HYPER_KEY = "";
13
+ /** Default localhost sidecar bind for Gateway Hyper client mode. */
14
+ export declare const DEFAULT_GATEWAY_SIDECAR_HOST = "127.0.0.1";
15
+ export declare const DEFAULT_GATEWAY_SIDECAR_PORT = 1984;
16
+ /** Default Arweave gateway GraphQL endpoint (transaction / block queries). */
17
+ export declare const DEFAULT_ARWEAVE_GRAPHQL_URL = "https://ar.seedprotocol.io/graphql";
18
+ /**
19
+ * Default Arweave gateways for read fallback / metadata fetching (ordered by preference).
20
+ * Override order with `ARWEAVE_READ_GATEWAYS` or `NEXT_PUBLIC_ARWEAVE_READ_GATEWAYS` (comma-separated hosts).
21
+ */
22
+ export declare const DEFAULT_ARWEAVE_GATEWAYS: readonly ["ar.seedprotocol.io", "arweave.net", "arweave.dev", "g8way.io", "permagate.io", "zigza.xyz"];
23
+ /** Env keys checked for primary Arweave gateway host (first match wins). */
24
+ export declare const ARWEAVE_HOST_ENV_KEYS: readonly ["NEXT_PUBLIC_ARWEAVE_HOST", "ARWEAVE_HOST", "VITE_ARWEAVE_HOST"];
25
+ /**
26
+ * Primary gateway host from env (`NEXT_PUBLIC_ARWEAVE_HOST`, `ARWEAVE_HOST`, or `VITE_ARWEAVE_HOST`).
27
+ * Scheme prefixes (`http://`, `https://`) are stripped.
28
+ */
29
+ export declare function resolveArweaveHostFromEnv(): string | undefined;
30
+ /**
31
+ * Ordered read gateways: `primary` first, then fallbacks.
32
+ * When `primary` is not {@link DEFAULT_ARWEAVE_HOST}, `ar.seedprotocol.io` is omitted from fallbacks
33
+ * unless it appears in an explicit `ARWEAVE_READ_GATEWAYS` env list.
34
+ */
35
+ export declare function getArweaveReadGatewayHostsForPrimary(primary: string): string[];
36
+ /** Ordered gateway hostnames for reads: env list if set, otherwise {@link DEFAULT_ARWEAVE_GATEWAYS}. */
37
+ export declare function getDefaultArweaveReadGatewayHostsOrdered(): string[];
38
+ /**
39
+ * Deduped host list: primary first, then each default not already present (case-insensitive).
40
+ */
41
+ export declare function mergePrimaryHostWithDefaults(primary: string, defaults: readonly string[]): string[];
42
+ /**
43
+ * True if `hostname` looks like a public Arweave gateway used in stored URLs (hydration / RSS).
44
+ */
45
+ export declare function isKnownArweaveGatewayHostname(hostname: string): boolean;
46
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,wGAAwG;AACxG,eAAO,MAAM,oBAAoB,uBAAuB,CAAA;AAExD;;;GAGG;AACH,eAAO,MAAM,2BAA2B,KAAK,CAAA;AAE7C;;;GAGG;AACH,eAAO,MAAM,8BAA8B,KAAK,CAAA;AAEhD,oEAAoE;AACpE,eAAO,MAAM,4BAA4B,cAAc,CAAA;AACvD,eAAO,MAAM,4BAA4B,OAAO,CAAA;AAEhD,8EAA8E;AAC9E,eAAO,MAAM,2BAA2B,uCAA4C,CAAA;AAEpF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,wGAO3B,CAAA;AAIV,4EAA4E;AAC5E,eAAO,MAAM,qBAAqB,4EAIxB,CAAA;AASV;;;GAGG;AACH,wBAAgB,yBAAyB,IAAI,MAAM,GAAG,SAAS,CAO9D;AASD;;;;GAIG;AACH,wBAAgB,oCAAoC,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAG9E;AAED,wGAAwG;AACxG,wBAAgB,wCAAwC,IAAI,MAAM,EAAE,CAWnE;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,SAAS,MAAM,EAAE,GAC1B,MAAM,EAAE,CAeV;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAUvE"}
@@ -0,0 +1,5 @@
1
+ import type { ResolvedSeedGatewayEndpoints } from '../types/gateway.js';
2
+ /** Last endpoints applied during client init (for read-path helpers). */
3
+ export declare function getResolvedSeedGatewayEndpoints(): ResolvedSeedGatewayEndpoints | null;
4
+ export declare function setResolvedSeedGatewayEndpoints(value: ResolvedSeedGatewayEndpoints | null): void;
5
+ //# sourceMappingURL=gatewayState.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,15 @@
1
+ import type { ResolvedSeedGatewayEndpoints, SeedGatewayConfig } from '../types/gateway.js';
2
+ /** Clears cached sidecar probe (tests / forced re-probe). */
3
+ export declare function invalidateSidecarProbeCache(): void;
4
+ export type ResolveSeedGatewayEndpointsOptions = {
5
+ signal?: AbortSignal;
6
+ /** Skip cache and probe sidecar again (hybrid). */
7
+ forceSidecarProbe?: boolean;
8
+ };
9
+ /**
10
+ * Resolve effective gateway + upload API URLs for the configured transport mode.
11
+ */
12
+ export declare function resolveSeedGatewayEndpoints(config: SeedGatewayConfig, options?: ResolveSeedGatewayEndpointsOptions): Promise<ResolvedSeedGatewayEndpoints>;
13
+ /** Build ordered gateway host list for read fallback (sidecar first in hybrid when active). */
14
+ export declare function getReadGatewayHostsForConfig(resolved: ResolvedSeedGatewayEndpoints, _defaults?: readonly string[]): string[];
15
+ //# sourceMappingURL=resolveSeedGatewayEndpoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveSeedGatewayEndpoints.d.ts","sourceRoot":"","sources":["../../src/gateway/resolveSeedGatewayEndpoints.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,4BAA4B,EAC5B,iBAAiB,EAElB,MAAM,qBAAqB,CAAA;AAM5B,6DAA6D;AAC7D,wBAAgB,2BAA2B,IAAI,IAAI,CAElD;AAyED,MAAM,MAAM,kCAAkC,GAAG;IAC/C,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,mDAAmD;IACnD,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B,CAAA;AAED;;GAEG;AACH,wBAAsB,2BAA2B,CAC/C,MAAM,EAAE,iBAAiB,EACzB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,4BAA4B,CAAC,CAuCvC;AAED,+FAA+F;AAC/F,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,4BAA4B,EACtC,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,GAC5B,MAAM,EAAE,CAKV"}
@@ -0,0 +1,5 @@
1
+ import type { ClientGatewayContextInput, SeedConfigGatewayInput, SeedGatewayConfig } from '../types/seedConfig.js';
2
+ /** Merge seed.config gateway fields into {@link SeedGatewayConfig}. */
3
+ export declare function seedGatewayConfigFromSeedConfig(config: SeedConfigGatewayInput): SeedGatewayConfig;
4
+ export declare function seedGatewayConfigFromClientContext(context: ClientGatewayContextInput): SeedGatewayConfig;
5
+ //# sourceMappingURL=seedGatewayConfig.d.ts.map
@@ -0,0 +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,CAiBnB;AAED,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,yBAAyB,GACjC,iBAAiB,CAYnB"}
@@ -0,0 +1,20 @@
1
+ import { ResultOf, DocumentTypeDecoration, TypedDocumentNode } from '@graphql-typed-document-node/core';
2
+ import type { Incremental } from './graphql';
3
+ export type FragmentType<TDocumentType extends DocumentTypeDecoration<any, any>> = TDocumentType extends DocumentTypeDecoration<infer TType, any> ? [TType] extends [{
4
+ ' $fragmentName'?: infer TKey;
5
+ }] ? TKey extends string ? {
6
+ ' $fragmentRefs'?: {
7
+ [key in TKey]: TType;
8
+ };
9
+ } : never : never : never;
10
+ export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>>): TType;
11
+ export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | undefined): TType | undefined;
12
+ export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null): TType | null;
13
+ export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: FragmentType<DocumentTypeDecoration<TType, any>> | null | undefined): TType | null | undefined;
14
+ export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: Array<FragmentType<DocumentTypeDecoration<TType, any>>>): Array<TType>;
15
+ export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: Array<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined): Array<TType> | null | undefined;
16
+ export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>>): ReadonlyArray<TType>;
17
+ export declare function useFragment<TType>(_documentNode: DocumentTypeDecoration<TType, any>, fragmentType: ReadonlyArray<FragmentType<DocumentTypeDecoration<TType, any>>> | null | undefined): ReadonlyArray<TType> | null | undefined;
18
+ export declare function makeFragmentData<F extends DocumentTypeDecoration<any, any>, FT extends ResultOf<F>>(data: FT, _fragment: F): FragmentType<F>;
19
+ export declare function isFragmentReady<TQuery, TFrag>(queryNode: DocumentTypeDecoration<TQuery, any>, fragmentNode: TypedDocumentNode<TFrag>, data: FragmentType<TypedDocumentNode<Incremental<TFrag>, any>> | null | undefined): data is FragmentType<typeof fragmentNode>;
20
+ //# sourceMappingURL=fragment-masking.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fragment-masking.d.ts","sourceRoot":"","sources":["../../../src/graphql/gql/fragment-masking.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAExG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAG7C,MAAM,MAAM,YAAY,CAAC,aAAa,SAAS,sBAAsB,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,aAAa,SAAS,sBAAsB,CAC7H,MAAM,KAAK,EACX,GAAG,CACJ,GACG,CAAC,KAAK,CAAC,SAAS,CAAC;IAAE,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC,GACjD,IAAI,SAAS,MAAM,GACjB;IAAE,gBAAgB,CAAC,EAAE;SAAG,GAAG,IAAI,IAAI,GAAG,KAAK;KAAE,CAAA;CAAE,GAC/C,KAAK,GACP,KAAK,GACP,KAAK,CAAC;AAGV,wBAAgB,WAAW,CAAC,KAAK,EAC/B,aAAa,EAAE,sBAAsB,CAAC,KAAK,EAAE,GAAG,CAAC,EACjD,YAAY,EAAE,YAAY,CAAC,sBAAsB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,GAC7D,KAAK,CAAC;AAET,wBAAgB,WAAW,CAAC,KAAK,EAC/B,aAAa,EAAE,sBAAsB,CAAC,KAAK,EAAE,GAAG,CAAC,EACjD,YAAY,EAAE,YAAY,CAAC,sBAAsB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,GAAG,SAAS,GACzE,KAAK,GAAG,SAAS,CAAC;AAErB,wBAAgB,WAAW,CAAC,KAAK,EAC/B,aAAa,EAAE,sBAAsB,CAAC,KAAK,EAAE,GAAG,CAAC,EACjD,YAAY,EAAE,YAAY,CAAC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AAS,GAC/F,aAAa,CAAC,KAAK,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;AAS3C,wBAAgB,gBAAgB,CAC9B,CAAC,SAAS,sBAAsB,CAAC,GAAG,EAAE,GAAG,CAAC,EAC1C,EAAE,SAAS,QAAQ,CAAC,CAAC,CAAC,EACtB,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,GAAG,YAAY,CAAC,CAAC,CAAC,CAEzC;AACD,wBAAgB,eAAe,CAAC,MAAM,EAAE,KAAK,EAC3C,SAAS,EAAE,sBAAsB,CAAC,MAAM,EAAE,GAAG,CAAC,EAC9C,YAAY,EAAE,iBAAiB,CAAC,KAAK,CAAC,EACtC,IAAI,EAAE,YAAY,CAAC,iBAAiB,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,GAChF,IAAI,IAAI,YAAY,CAAC,OAAO,YAAY,CAAC,CAW3C"}
@@ -0,0 +1,42 @@
1
+ import * as types from './graphql';
2
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
3
+ /**
4
+ * Map of all GraphQL operations in the project.
5
+ *
6
+ * This map has several performance disadvantages:
7
+ * 1. It is not tree-shakeable, so it will include all operations in the project.
8
+ * 2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
9
+ * 3. It does not support dead code elimination, so it will add unused operations.
10
+ *
11
+ * Therefore it is highly recommended to use the babel or swc plugin for production.
12
+ * Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
13
+ */
14
+ type Documents = {
15
+ "\n query GetTransactionTags($transactionId: ID!) {\n tags: transaction(id: $transactionId) {\n id\n tags {\n name\n value\n }\n }\n }\n": typeof types.GetTransactionTagsDocument;
16
+ "\n query GetArweaveTransactions(\n $owners: [String!]\n $first: Int\n $after: String\n ) {\n transactions(owners: $owners, first: $first, after: $after) {\n edges {\n cursor\n node {\n id\n anchor\n signature\n block {\n id\n height\n }\n data {\n size\n type\n }\n tags {\n name\n value\n }\n }\n }\n pageInfo {\n hasNextPage\n }\n }\n }\n": typeof types.GetArweaveTransactionsDocument;
17
+ };
18
+ declare const documents: Documents;
19
+ /**
20
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
21
+ *
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const query = graphql(`query GetUser($id: ID!) { user(id: $id) { name } }`);
26
+ * ```
27
+ *
28
+ * The query argument is unknown!
29
+ * Please regenerate the types.
30
+ */
31
+ export declare function graphql(source: string): unknown;
32
+ /**
33
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
34
+ */
35
+ export declare function graphql(source: "\n query GetTransactionTags($transactionId: ID!) {\n tags: transaction(id: $transactionId) {\n id\n tags {\n name\n value\n }\n }\n }\n"): (typeof documents)["\n query GetTransactionTags($transactionId: ID!) {\n tags: transaction(id: $transactionId) {\n id\n tags {\n name\n value\n }\n }\n }\n"];
36
+ /**
37
+ * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
38
+ */
39
+ export declare function graphql(source: "\n query GetArweaveTransactions(\n $owners: [String!]\n $first: Int\n $after: String\n ) {\n transactions(owners: $owners, first: $first, after: $after) {\n edges {\n cursor\n node {\n id\n anchor\n signature\n block {\n id\n height\n }\n data {\n size\n type\n }\n tags {\n name\n value\n }\n }\n }\n pageInfo {\n hasNextPage\n }\n }\n }\n"): (typeof documents)["\n query GetArweaveTransactions(\n $owners: [String!]\n $first: Int\n $after: String\n ) {\n transactions(owners: $owners, first: $first, after: $after) {\n edges {\n cursor\n node {\n id\n anchor\n signature\n block {\n id\n height\n }\n data {\n size\n type\n }\n tags {\n name\n value\n }\n }\n }\n pageInfo {\n hasNextPage\n }\n }\n }\n"];
40
+ export type DocumentType<TDocumentNode extends DocumentNode<any, any>> = TDocumentNode extends DocumentNode<infer TType, any> ? TType : never;
41
+ export {};
42
+ //# sourceMappingURL=gql.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gql.d.ts","sourceRoot":"","sources":["../../../src/graphql/gql/gql.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,iBAAiB,IAAI,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEtF;;;;;;;;;;GAUG;AACH,KAAK,SAAS,GAAG;IACb,8KAA8K,EAAE,OAAO,KAAK,CAAC,0BAA0B,CAAC;IACxN,2iBAA2iB,EAAE,OAAO,KAAK,CAAC,8BAA8B,CAAC;CAC5lB,CAAC;AACF,QAAA,MAAM,SAAS,EAAE,SAGhB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;AAEjD;;GAEG;AACH,wBAAgB,OAAO,CAAC,MAAM,EAAE,8KAA8K,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,8KAA8K,CAAC,CAAC;AACpZ;;GAEG;AACH,wBAAgB,OAAO,CAAC,MAAM,EAAE,2iBAA2iB,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,2iBAA2iB,CAAC,CAAC;AAM9oC,MAAM,MAAM,YAAY,CAAC,aAAa,SAAS,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,aAAa,SAAS,YAAY,CAAG,MAAM,KAAK,EAAG,GAAG,CAAC,GAAI,KAAK,GAAI,KAAK,CAAC"}