@secondlayer/sdk 10.1.1 → 10.3.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/README.md +32 -1
- package/dist/index.d.ts +207 -27
- package/dist/index.js +343 -21
- package/dist/index.js.map +8 -6
- package/dist/sinks/bun-sqlite.js +34 -1
- package/dist/sinks/bun-sqlite.js.map +3 -3
- package/dist/sinks/core.js +34 -1
- package/dist/sinks/core.js.map +3 -3
- package/dist/sinks/drizzle.js +34 -1
- package/dist/sinks/drizzle.js.map +3 -3
- package/dist/sinks/kysely.js +34 -1
- package/dist/sinks/kysely.js.map +3 -3
- package/dist/streams/index.js +69 -14
- package/dist/streams/index.js.map +4 -4
- package/dist/subgraphs/index.d.ts +163 -1
- package/dist/subgraphs/index.js +334 -19
- package/dist/subgraphs/index.js.map +8 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ import { SecondLayer } from "@secondlayer/sdk";
|
|
|
15
15
|
|
|
16
16
|
const sl = new SecondLayer({
|
|
17
17
|
apiKey: process.env.INSTANCE_TOKEN, // from secondlayer init; read from the env when omitted
|
|
18
|
-
// default baseUrl: http://127.0.0.1:3800 (or
|
|
18
|
+
// default baseUrl: http://127.0.0.1:3800 (or SECONDLAYER_API_URL)
|
|
19
19
|
});
|
|
20
20
|
```
|
|
21
21
|
|
|
@@ -234,6 +234,37 @@ await streams.events.replay({
|
|
|
234
234
|
});
|
|
235
235
|
```
|
|
236
236
|
|
|
237
|
+
Archive.
|
|
238
|
+
|
|
239
|
+
Signed canonical partitions (`blocks` / `transactions` / `events`), distinct
|
|
240
|
+
from Streams dumps. `latest` follows `latest.json` and verifies the ed25519
|
|
241
|
+
manifest (default on). `quote` and `fetch` need an account key (`sk-sl_*`)
|
|
242
|
+
against `api.secondlayer.tools`, not the instance `baseUrl`. `download`
|
|
243
|
+
returns sha256-verified bytes; it does not decode parquet. Verify, repair,
|
|
244
|
+
and bootstrap remain CLI.
|
|
245
|
+
|
|
246
|
+
```typescript
|
|
247
|
+
const sl = new SecondLayer({
|
|
248
|
+
accountKey: process.env.SECONDLAYER_API_KEY,
|
|
249
|
+
});
|
|
250
|
+
// SECONDLAYER_API_KEY is the hosted account key (sk-sl_*). It is not the instance token.
|
|
251
|
+
|
|
252
|
+
const ref = await sl.archive.latest();
|
|
253
|
+
const partitions = sl.archive.partitions(ref, { dataset: "blocks" });
|
|
254
|
+
const quote = await sl.archive.quote({
|
|
255
|
+
paths: partitions.map((p) => p.path),
|
|
256
|
+
flow: "bootstrap",
|
|
257
|
+
});
|
|
258
|
+
const fetched = await sl.archive.fetch({
|
|
259
|
+
paths: partitions.map((p) => p.path),
|
|
260
|
+
flow: "bootstrap",
|
|
261
|
+
});
|
|
262
|
+
for (const item of fetched.urls) {
|
|
263
|
+
const partition = partitions.find((p) => p.path === item.path)!;
|
|
264
|
+
const bytes = await sl.archive.download(partition, { url: item.url });
|
|
265
|
+
}
|
|
266
|
+
```
|
|
267
|
+
|
|
237
268
|
Decoder helper.
|
|
238
269
|
|
|
239
270
|
```typescript
|
package/dist/index.d.ts
CHANGED
|
@@ -6,14 +6,23 @@ type FetchLike = (input: string | URL | Request, init?: RequestInit) => Promise<
|
|
|
6
6
|
interface SecondLayerOptions {
|
|
7
7
|
/** Base URL of the instance API (trailing slashes are stripped). */
|
|
8
8
|
baseUrl: string;
|
|
9
|
-
/** Bearer token for authenticated requests. */
|
|
9
|
+
/** Bearer token for authenticated instance requests (`INSTANCE_TOKEN`). */
|
|
10
10
|
apiKey?: string;
|
|
11
|
+
/** Hosted account key (`sk-sl_*`). Env `SECONDLAYER_API_KEY`. Used by
|
|
12
|
+
* `sl.archive` quote/fetch/credits, never by instance `/v1` or `/api`. */
|
|
13
|
+
accountKey?: string;
|
|
11
14
|
/** Fetch implementation. Tests and edge runtimes can provide their own. */
|
|
12
15
|
fetchImpl?: FetchLike;
|
|
13
16
|
/** Public base URL for Streams bulk parquet dumps (the cold backfill plane).
|
|
14
17
|
* Required for `streams.dumps.*`; without it the dumps client falls back to
|
|
15
18
|
* its built-in default. */
|
|
16
19
|
dumpsBaseUrl?: string;
|
|
20
|
+
/** Public base URL for the signed canonical archive tree. Defaults to
|
|
21
|
+
* `https://archive.secondlayer.tools`. Reaches `sl.archive`. */
|
|
22
|
+
archiveBaseUrl?: string;
|
|
23
|
+
/** Credits and fetch-gate API. Defaults to `https://api.secondlayer.tools`,
|
|
24
|
+
* not `baseUrl`. Reaches `sl.archive` quote/fetch/credits. */
|
|
25
|
+
archiveOpsUrl?: string;
|
|
17
26
|
/** Deploy origin label sent as `x-sl-origin` (telemetry). Defaults to `cli`. */
|
|
18
27
|
origin?: "cli" | "mcp" | "session";
|
|
19
28
|
/** Check the ed25519 signature on every Streams read. Omit for lenient
|
|
@@ -40,34 +49,23 @@ type RequestOptions = {
|
|
|
40
49
|
* signal's reason, an `AbortError` by default, never an `ApiError`. */
|
|
41
50
|
signal?: AbortSignal;
|
|
42
51
|
};
|
|
43
|
-
/** Product default: the local one-box API. Override with `baseUrl` or
|
|
52
|
+
/** Product default: the local one-box API. Override with `baseUrl` or
|
|
53
|
+
* `SECONDLAYER_API_URL`. */
|
|
44
54
|
declare const LOCAL_API_URL = "http://127.0.0.1:3800";
|
|
55
|
+
/** Instance credential. `secondlayer init` writes this. */
|
|
56
|
+
declare const INSTANCE_TOKEN_ENV = "INSTANCE_TOKEN";
|
|
57
|
+
/** Hosted account key (`sk-sl_*`) for api.secondlayer.tools. */
|
|
58
|
+
declare const ACCOUNT_KEY_ENV = "SECONDLAYER_API_KEY";
|
|
45
59
|
declare function resolveBaseUrl(explicit?: string): string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* legacy alias, kept working so existing exports and CI secrets don't break. */
|
|
50
|
-
declare const CREDENTIAL_ENV_VARS: readonly ["INSTANCE_TOKEN", "SL_API_KEY"];
|
|
51
|
-
/** Resolve the credential a client should use. Precedence, highest first:
|
|
52
|
-
*
|
|
53
|
-
* 1. an explicit `apiKey` option — including an explicit `""`, which is how
|
|
54
|
-
* you opt a client back into keyless reads on a machine that has a key
|
|
55
|
-
* exported;
|
|
56
|
-
* 2. `INSTANCE_TOKEN` — the canonical credential var, shared with the CLI
|
|
57
|
-
* and MCP server;
|
|
58
|
-
* 3. `SL_API_KEY` — legacy alias for the same value.
|
|
59
|
-
*
|
|
60
|
-
* Env values that are empty strings count as unset. Falling back to the env at
|
|
61
|
-
* all is what stops `new Index()` from silently running keyless and 402-ing on
|
|
62
|
-
* the first deep-history read.
|
|
63
|
-
*
|
|
64
|
-
* When both env vars are set to *different* non-empty values there is no
|
|
65
|
-
* correct silent answer, so `INSTANCE_TOKEN` wins and we warn once on stderr —
|
|
66
|
-
* the whole point of this precedence is that a misconfigured credential should
|
|
67
|
-
* never authenticate as nobody without saying so.
|
|
68
|
-
*
|
|
69
|
-
* Guarded for browsers and edge runtimes, where `process` is undefined. */
|
|
60
|
+
/** Resolve the instance credential. Precedence: explicit `apiKey` (including
|
|
61
|
+
* `""` for keyless) → `INSTANCE_TOKEN`. Does not read the hosted account key
|
|
62
|
+
* env vars. Guarded for browsers and edge runtimes. */
|
|
70
63
|
declare function resolveApiKey(apiKey?: string): string | undefined;
|
|
64
|
+
/** Resolve the hosted account key for archive quote/fetch/credits.
|
|
65
|
+
* Precedence: explicit `accountKey` → `SECONDLAYER_API_KEY` → `SL_API_KEY` /
|
|
66
|
+
* `SL_ARCHIVE_API_KEY` (one-release warn-fallbacks). Does not read
|
|
67
|
+
* `INSTANCE_TOKEN`. */
|
|
68
|
+
declare function resolveAccountKey(accountKey?: string): string | undefined;
|
|
71
69
|
declare abstract class BaseClient {
|
|
72
70
|
protected baseUrl: string;
|
|
73
71
|
protected apiKey?: string;
|
|
@@ -238,7 +236,156 @@ declare class Subgraphs extends BaseClient {
|
|
|
238
236
|
private createTableClient;
|
|
239
237
|
}
|
|
240
238
|
import { InferSubgraphClient as InferSubgraphClient2 } from "@secondlayer/subgraphs";
|
|
239
|
+
import { InstanceDiagnosis as InstanceDiagnosis2 } from "@secondlayer/shared/archive/instance-diagnosis";
|
|
241
240
|
import { SubgraphSummary as SubgraphSummary2 } from "@secondlayer/shared/schemas";
|
|
241
|
+
import { InstanceDiagnosis, PublicStatus } from "@secondlayer/shared/archive/instance-diagnosis";
|
|
242
|
+
/** Structural `/public/status` payload. Extra fields are ignored by diagnosis. */
|
|
243
|
+
type InstanceStatus = PublicStatus;
|
|
244
|
+
type InstanceClient = {
|
|
245
|
+
status(): Promise<InstanceStatus>;
|
|
246
|
+
diagnose(): Promise<InstanceDiagnosis>;
|
|
247
|
+
};
|
|
248
|
+
type ArchiveVerifyInput = {
|
|
249
|
+
against: string;
|
|
250
|
+
target?: string;
|
|
251
|
+
fromBlock?: number;
|
|
252
|
+
toBlock?: number;
|
|
253
|
+
insecure?: boolean;
|
|
254
|
+
publicKeyPem?: string;
|
|
255
|
+
};
|
|
256
|
+
type ArchiveVerifyRangeStatus = "match" | "digest-mismatch" | "count-mismatch" | "missing";
|
|
257
|
+
type ArchiveVerifyResult = {
|
|
258
|
+
status: "clean" | "diverged" | "unanchored";
|
|
259
|
+
target: string;
|
|
260
|
+
against: string;
|
|
261
|
+
signature: {
|
|
262
|
+
verified: boolean;
|
|
263
|
+
reason?: string;
|
|
264
|
+
};
|
|
265
|
+
coverage?: {
|
|
266
|
+
from_block: number;
|
|
267
|
+
to_block: number;
|
|
268
|
+
};
|
|
269
|
+
ranges: Array<{
|
|
270
|
+
dataset: string;
|
|
271
|
+
from_block: number;
|
|
272
|
+
to_block: number;
|
|
273
|
+
status: ArchiveVerifyRangeStatus;
|
|
274
|
+
expected_digest: string | null;
|
|
275
|
+
actual_digest: string | null;
|
|
276
|
+
}>;
|
|
277
|
+
reason?: string;
|
|
278
|
+
};
|
|
279
|
+
import { RangeDigest } from "@secondlayer/shared/archive/range-digest";
|
|
280
|
+
type ArchiveDataset = "blocks" | "transactions" | "events";
|
|
281
|
+
type ArchiveFlow = "bootstrap" | "repair";
|
|
282
|
+
type ArchivePartition = {
|
|
283
|
+
dataset: string;
|
|
284
|
+
from_block: number;
|
|
285
|
+
to_block: number;
|
|
286
|
+
path: string;
|
|
287
|
+
row_count: number;
|
|
288
|
+
byte_size: number;
|
|
289
|
+
sha256: string;
|
|
290
|
+
};
|
|
291
|
+
type ArchiveManifest = {
|
|
292
|
+
network?: string;
|
|
293
|
+
coverage?: {
|
|
294
|
+
from_block: number;
|
|
295
|
+
to_block: number;
|
|
296
|
+
};
|
|
297
|
+
partition_size_blocks?: number;
|
|
298
|
+
range_digests?: RangeDigest[];
|
|
299
|
+
partitions?: ArchivePartition[];
|
|
300
|
+
signature?: string;
|
|
301
|
+
key_id?: string;
|
|
302
|
+
[key: string]: unknown;
|
|
303
|
+
};
|
|
304
|
+
type LoadedArchive = {
|
|
305
|
+
manifest: ArchiveManifest;
|
|
306
|
+
origin: string;
|
|
307
|
+
root: string;
|
|
308
|
+
isRemote: boolean;
|
|
309
|
+
signature: {
|
|
310
|
+
verified: boolean;
|
|
311
|
+
reason?: string;
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
type ArchiveQuote = {
|
|
315
|
+
partitions: number;
|
|
316
|
+
bundles: number;
|
|
317
|
+
usdMicros: number;
|
|
318
|
+
usd: string;
|
|
319
|
+
freeAllowanceAppliedMicros: number;
|
|
320
|
+
allowanceRemainingBundles: number;
|
|
321
|
+
balanceUsdMicros: number;
|
|
322
|
+
sufficient: boolean;
|
|
323
|
+
};
|
|
324
|
+
type ArchiveFetchItem = {
|
|
325
|
+
path: string;
|
|
326
|
+
url: string;
|
|
327
|
+
expiresAt: string;
|
|
328
|
+
chargedUsdMicros: number;
|
|
329
|
+
};
|
|
330
|
+
type ArchiveFetchResult = {
|
|
331
|
+
urls: ArchiveFetchItem[];
|
|
332
|
+
chargedTotalUsdMicros: number;
|
|
333
|
+
balanceAfterUsdMicros: number;
|
|
334
|
+
};
|
|
335
|
+
type ArchiveCreditsBalance = {
|
|
336
|
+
creditsUsdMicros: string;
|
|
337
|
+
refill: {
|
|
338
|
+
belowUsd: number | null;
|
|
339
|
+
packUsd: number | null;
|
|
340
|
+
lastAt: string | null;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
type ArchiveLoadOptions = {
|
|
344
|
+
insecure?: boolean;
|
|
345
|
+
};
|
|
346
|
+
type ArchiveClient = {
|
|
347
|
+
latest(against?: string, opts?: ArchiveLoadOptions): Promise<LoadedArchive>;
|
|
348
|
+
load(against: string, opts?: ArchiveLoadOptions): Promise<LoadedArchive>;
|
|
349
|
+
status(): Promise<unknown>;
|
|
350
|
+
partitions(ref: LoadedArchive, filter?: {
|
|
351
|
+
dataset?: ArchiveDataset;
|
|
352
|
+
fromBlock?: number;
|
|
353
|
+
toBlock?: number;
|
|
354
|
+
}): ArchivePartition[];
|
|
355
|
+
quote(input: {
|
|
356
|
+
paths: string[];
|
|
357
|
+
flow: ArchiveFlow;
|
|
358
|
+
}): Promise<ArchiveQuote>;
|
|
359
|
+
fetch(input: {
|
|
360
|
+
paths: string[];
|
|
361
|
+
flow: ArchiveFlow;
|
|
362
|
+
}): Promise<ArchiveFetchResult>;
|
|
363
|
+
download(partition: ArchivePartition, opts?: {
|
|
364
|
+
url?: string;
|
|
365
|
+
}): Promise<Uint8Array>;
|
|
366
|
+
credits: {
|
|
367
|
+
balance(): Promise<ArchiveCreditsBalance>;
|
|
368
|
+
checkout(input: {
|
|
369
|
+
email: string;
|
|
370
|
+
pack: 10 | 25 | 50 | 100;
|
|
371
|
+
}): Promise<{
|
|
372
|
+
url: string;
|
|
373
|
+
}>;
|
|
374
|
+
refill(input: {
|
|
375
|
+
belowUsd: number;
|
|
376
|
+
packUsd: 10 | 25 | 50 | 100;
|
|
377
|
+
} | {
|
|
378
|
+
off: true;
|
|
379
|
+
}): Promise<{
|
|
380
|
+
belowUsd: number | null;
|
|
381
|
+
packUsd: number | null;
|
|
382
|
+
}>;
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
/** Hosted archive client plus instance `verify`. `status()` is still the public archive tree. */
|
|
386
|
+
type SecondLayerArchive = ArchiveClient & {
|
|
387
|
+
verify(input: ArchiveVerifyInput): Promise<ArchiveVerifyResult>;
|
|
388
|
+
};
|
|
242
389
|
/**
|
|
243
390
|
* Typed client for the contract-discovery API (`GET /v1/contracts`).
|
|
244
391
|
*
|
|
@@ -2501,6 +2648,8 @@ interface ContextSnapshot {
|
|
|
2501
2648
|
}>;
|
|
2502
2649
|
/** In-flight reindex operations (bounded to subgraphs reporting `reindexing`). */
|
|
2503
2650
|
activeOperations: ContextField<ActiveSubgraphOperation[]>;
|
|
2651
|
+
/** Decoder lag / empty-index from `GET /public/status`. */
|
|
2652
|
+
instance: ContextField<InstanceDiagnosis2>;
|
|
2504
2653
|
}
|
|
2505
2654
|
/** Fold one read into a {@link ContextField}: the value, or `null` with the
|
|
2506
2655
|
* failure described. Exported for callers that assemble their own snapshot
|
|
@@ -2512,6 +2661,8 @@ declare class SecondLayer extends BaseClient {
|
|
|
2512
2661
|
readonly contracts: Contracts;
|
|
2513
2662
|
readonly subgraphs: Subgraphs;
|
|
2514
2663
|
readonly subscriptions: Subscriptions;
|
|
2664
|
+
readonly archive: SecondLayerArchive;
|
|
2665
|
+
readonly instance: InstanceClient;
|
|
2515
2666
|
constructor(options?: Partial<SecondLayerOptions>);
|
|
2516
2667
|
/**
|
|
2517
2668
|
* Up to 10 public reads in one round trip (`POST /v1/batch`). Each item
|
|
@@ -2705,6 +2856,23 @@ declare class RateLimitError extends ApiError {
|
|
|
2705
2856
|
declare class ValidationError extends ApiError {
|
|
2706
2857
|
constructor(message: string, status: number, body?: unknown, code?: string);
|
|
2707
2858
|
}
|
|
2859
|
+
/** Thrown when an archive manifest signature is missing or does not verify. */
|
|
2860
|
+
declare class ArchiveSignatureError extends SecondLayerError {
|
|
2861
|
+
constructor(message?: string);
|
|
2862
|
+
}
|
|
2863
|
+
/** Thrown on a 401 from the archive ops host (quote/fetch/credits). */
|
|
2864
|
+
declare class ArchiveAuthError extends SecondLayerError {
|
|
2865
|
+
constructor(message?: string);
|
|
2866
|
+
}
|
|
2867
|
+
/** Thrown on a 402 from archive fetch — prepaid credits do not cover the quote. */
|
|
2868
|
+
declare class InsufficientArchiveCreditsError extends SecondLayerError {
|
|
2869
|
+
shortfallUsdMicros?: number;
|
|
2870
|
+
constructor(message?: string, shortfallUsdMicros?: number);
|
|
2871
|
+
}
|
|
2872
|
+
/** Thrown on a 503 when the archive fetch gate is unconfigured. */
|
|
2873
|
+
declare class ArchiveGateNotConfiguredError extends SecondLayerError {
|
|
2874
|
+
constructor(message?: string);
|
|
2875
|
+
}
|
|
2708
2876
|
/** Parse a `Retry-After` header: delta-seconds or an HTTP-date. */
|
|
2709
2877
|
declare function parseRetryAfter(value?: string | null): number | undefined;
|
|
2710
2878
|
/** Thrown on a 5xx from the Streams API, and on a failed signing-key fetch.
|
|
@@ -2755,6 +2923,7 @@ declare const Cursor: {
|
|
|
2755
2923
|
eventIndex: number;
|
|
2756
2924
|
};
|
|
2757
2925
|
};
|
|
2926
|
+
import { InstanceDiagnosis as InstanceDiagnosis3, InstanceIssue, InstanceState, PublicStatus as PublicStatus2 } from "@secondlayer/shared/archive/instance-diagnosis";
|
|
2758
2927
|
import { SubgraphAgentSchema as SubgraphAgentSchema3, SubgraphSpecFormat as SubgraphSpecFormat2, SubgraphSpecOptions as SubgraphSpecOptions3 } from "@secondlayer/shared/subgraphs/spec";
|
|
2759
2928
|
/**
|
|
2760
2929
|
* The two pieces every "deploy a consumer" guide leaves out, packaged:
|
|
@@ -2797,6 +2966,17 @@ declare function consumerHealth(options?: {
|
|
|
2797
2966
|
declare function shutdownSignal(options?: {
|
|
2798
2967
|
signals?: readonly ("SIGTERM" | "SIGINT")[];
|
|
2799
2968
|
}): AbortSignal;
|
|
2969
|
+
type CreateArchiveClientOptions = {
|
|
2970
|
+
/** @deprecated Prefer `accountKey`. Kept one release as an alias. */
|
|
2971
|
+
apiKey?: string;
|
|
2972
|
+
accountKey?: string;
|
|
2973
|
+
fetchImpl?: FetchLike;
|
|
2974
|
+
archiveBaseUrl?: string;
|
|
2975
|
+
archiveOpsUrl?: string;
|
|
2976
|
+
verifyManifest?: boolean;
|
|
2977
|
+
publicKeyPem?: string;
|
|
2978
|
+
};
|
|
2979
|
+
declare function createArchiveClient(options?: CreateArchiveClientOptions): ArchiveClient;
|
|
2800
2980
|
import { ChainWebhookDelivery } from "@secondlayer/shared";
|
|
2801
2981
|
import { StandardWebhooksHeaders } from "@secondlayer/shared/crypto/standard-webhooks";
|
|
2802
2982
|
import { StandardWebhooksHeaders as StandardWebhooksHeaders2, verify } from "@secondlayer/shared/crypto/standard-webhooks";
|
|
@@ -2955,4 +3135,4 @@ declare function verifySecondlayerSignature(rawBody: string, headers: WebhookHea
|
|
|
2955
3135
|
declare function decodeChainWebhook(rawBody: string): ChainWebhookDelivery;
|
|
2956
3136
|
import { RewardSet as RewardSet2 } from "@secondlayer/shared/node/consensus";
|
|
2957
3137
|
import { decodeClarityValue, toJsonSafe } from "@secondlayer/shared/streams-rows";
|
|
2958
|
-
export { verifyWebhookSignature, verifyTransactionProof, verify as verifyStandardWebhooksHeaders, verifySecondlayerSignature, trigger, toJsonSafe, shutdownSignal, resolveBaseUrl, resolveApiKey, parseRetryAfter, isStxTransfer, isStxMint, isStxLock, isStxBurn, isPrint, isNftTransfer, isNftMint, isNftBurn, isFtTransfer, isFtMint, isFtBurn, getSubgraph, fetchRewardSet, decodeStxTransfer, decodeStxMint, decodeStxLock, decodeStxBurn, decodePrint, decodeNftTransfer, decodeNftMint, decodeNftBurn, decodeFtTransfer, decodeFtMint, decodeFtBurn, decodeClarityValue, decodeChainWebhook, decode, createStreamsClient, contextField, consumerHealth, consumeIndexFeed, WithSinkTx, WebhookHeaderInput, WalkOptions, ValidationError, UpdateSubscriptionRequest2 as UpdateSubscriptionRequest, TransactionsWalkParams, TransactionsListParams, TransactionsEnvelope, TransactionProofVerifyResult, TransactionProof, TransactionEnvelope, Subscriptions, SubscriptionSummary2 as SubscriptionSummary, SubscriptionStatus, SubscriptionRuntime, SubscriptionKind, SubscriptionFormat, SubscriptionDetail2 as SubscriptionDetail, Subgraphs, SubgraphSpecOptions3 as SubgraphSpecOptions, SubgraphSpecFormat2 as SubgraphSpecFormat, SubgraphOperationStatus, SubgraphAgentSchema3 as SubgraphAgentSchema, StreamsTip, StreamsSubscription, StreamsSignatureError, StreamsServerError, StreamsReorgsListParams, StreamsReorgsListEnvelope, StreamsReorgContext, StreamsReorg, StreamsEventsSubscribeParams, StreamsEventsStreamParams, StreamsEventsListParams, StreamsEventsListEnvelope, StreamsEventsEnvelope, StreamsEventsConsumeResult, StreamsEventsConsumeParams, StreamsEventType, StreamsEventPayload, StreamsEvent, StreamsDumpsManifest, StreamsDumps, StreamsDumpFile, StreamsConsumeParams, StreamsClient, StreamsCanonicalBlock, StreamsBatchContext, StreamsBatch, StandardWebhooksHeaders2 as StandardWebhooksHeaders, StackingWalkParams, StackingListParams, StackingEnvelope, SinkTx, SecondLayerOptions, SecondLayerErrorOptions, SecondLayerError, SecondLayer, SbtcWithdrawalsWalkParams, SbtcWithdrawalsListParams, SbtcWithdrawalsEnvelope, SbtcWithdrawalSweptConfirmedEvent, SbtcWithdrawalStatus, SbtcWithdrawalEvent, SbtcWithdrawalEnvelope, SbtcSummaryEnvelope, SbtcResource, SbtcEventsWalkParams, SbtcEventsListParams, SbtcEventsEnvelope, SbtcEventsConsumeParams, SbtcEventTopic2 as SbtcEventTopic, SbtcDepositsWalkParams, SbtcDepositsListParams, SbtcDepositsEnvelope, SbtcDepositsConsumeParams, SbtcDepositEvent, SbtcDepositEnvelope, RotateSecretResponse2 as RotateSecretResponse, RewardSet2 as RewardSet, RequestOptions, ReplayResult2 as ReplayResult, RateLimitError, PrintSchemaResponse, PoxResource, PoxCyclesWalkParams, PoxCyclesListParams, PoxCyclesEnvelope, PoxCycleEnvelope, Pox5Resource, Pox5EventsWalkParams, Pox5EventsListParams, Pox5EventsEnvelope, NftTransfersWalkParams, NftTransfersResource, NftTransfersListParams, NftTransfersEnvelope, NftTransferPayload2 as NftTransferPayload, NftTransferEvent, NftTransfer, MempoolWalkParams, MempoolTransactionEnvelope, MempoolListParams, MempoolEnvelope, LOCAL_API_URL, IndexTransaction, IndexTip, IndexStxTransfer, IndexStxMint, IndexStxLock, IndexStxBurn, IndexStackingAction, IndexSbtcWithdrawalPhase, IndexSbtcWithdrawalDetail, IndexSbtcWithdrawal, IndexSbtcSummary, IndexSbtcEvent, IndexSbtcDepositDetail, IndexSbtcDeposit, IndexReorg, IndexPrint, IndexPoxFunctionCount, IndexPoxCycle, IndexPox5EventTopic, IndexPox5Event, IndexPostCondition, IndexNftTransfer, IndexNftMint, IndexNftBurn, IndexMempoolTransaction, IndexFtTransfer, IndexFtMint, IndexFtBurn, IndexFeedItem, IndexFeedFetcher, IndexFeedEnvelope, IndexEventsResource, IndexEventTypeFilters, IndexEventType, IndexEventOf, IndexEventFields, IndexEvent, IndexDiscovery, IndexContractCall, IndexConsumeOptions, IndexCanonicalBlock, IndexBlock, IndexAlwaysFields, Index, INDEX_MAX_PAGE_SIZE, FtTransfersWalkParams, FtTransfersResource, FtTransfersListParams, FtTransfersEnvelope, FtTransferPayload2 as FtTransferPayload, FtTransferEvent, FtTransfer, FetchLike2 as FetchLike, EventsWalkParams, EventsListParams, EventsEnvelope, EventsConsumeParams, DeliveryRow2 as DeliveryRow, DecodedStxTransferPayload, DecodedStxTransfer, DecodedStxMintPayload, DecodedStxMint, DecodedStxLockPayload, DecodedStxLock, DecodedStxBurnPayload, DecodedStxBurn, DecodedPrintValue, DecodedPrintPayload, DecodedPrint, DecodedNftTransferPayload, DecodedNftTransfer, DecodedNftMintPayload, DecodedNftMint, DecodedNftBurnPayload, DecodedNftBurn, DecodedFtTransferPayload, DecodedFtTransfer, DecodedFtMintPayload, DecodedFtMint, DecodedFtBurnPayload, DecodedFtBurn, DecodedEventRow, DecodedEventColumns, DeadRow2 as DeadRow, DEFAULT_REQUEST_TIMEOUT_MS, Cursor, CreateSubscriptionResponse2 as CreateSubscriptionResponse, CreateSubscriptionRequest2 as CreateSubscriptionRequest, ContractsListParams, ContractsEnvelope, Contracts, ContractSummary, ContractConformance, ContractCallsWalkParams, ContractCallsListParams, ContractCallsEnvelope, ContractCallsConsumeParams, ContextSnapshot, ContextFieldError, ContextField, ContextAccount, ConsumerSink, ConsumerHealth, ConsumerBatchContext, ChainWebhookEnvelope, ChainWebhookDelivery2 as ChainWebhookDelivery, ChainTxLevelEvent, ChainTriggerType, ChainTrigger, ChainTestDelivery, ChainStxTransferData, ChainStxMintData, ChainStxLockData, ChainStxBurnData, ChainReorgRollbackEnvelope, ChainReorgRollbackDelivery, ChainReorgOrphanedEntry, ChainPrintEventData, ChainNftTransferData, ChainNftMintData, ChainNftBurnData, ChainFtTransferData, ChainFtMintData, ChainFtBurnData, ChainEventEnvelope, ChainApplyEnvelopeOf, ChainApplyEnvelope, ChainApplyDeliveryOf, CanonicalWalkParams, CanonicalListParams, CanonicalEnvelope,
|
|
3138
|
+
export { verifyWebhookSignature, verifyTransactionProof, verify as verifyStandardWebhooksHeaders, verifySecondlayerSignature, trigger, toJsonSafe, shutdownSignal, resolveBaseUrl, resolveApiKey, resolveAccountKey, parseRetryAfter, isStxTransfer, isStxMint, isStxLock, isStxBurn, isPrint, isNftTransfer, isNftMint, isNftBurn, isFtTransfer, isFtMint, isFtBurn, getSubgraph, fetchRewardSet, decodeStxTransfer, decodeStxMint, decodeStxLock, decodeStxBurn, decodePrint, decodeNftTransfer, decodeNftMint, decodeNftBurn, decodeFtTransfer, decodeFtMint, decodeFtBurn, decodeClarityValue, decodeChainWebhook, decode, createStreamsClient, createArchiveClient, contextField, consumerHealth, consumeIndexFeed, WithSinkTx, WebhookHeaderInput, WalkOptions, ValidationError, UpdateSubscriptionRequest2 as UpdateSubscriptionRequest, TransactionsWalkParams, TransactionsListParams, TransactionsEnvelope, TransactionProofVerifyResult, TransactionProof, TransactionEnvelope, Subscriptions, SubscriptionSummary2 as SubscriptionSummary, SubscriptionStatus, SubscriptionRuntime, SubscriptionKind, SubscriptionFormat, SubscriptionDetail2 as SubscriptionDetail, Subgraphs, SubgraphSpecOptions3 as SubgraphSpecOptions, SubgraphSpecFormat2 as SubgraphSpecFormat, SubgraphOperationStatus, SubgraphAgentSchema3 as SubgraphAgentSchema, StreamsTip, StreamsSubscription, StreamsSignatureError, StreamsServerError, StreamsReorgsListParams, StreamsReorgsListEnvelope, StreamsReorgContext, StreamsReorg, StreamsEventsSubscribeParams, StreamsEventsStreamParams, StreamsEventsListParams, StreamsEventsListEnvelope, StreamsEventsEnvelope, StreamsEventsConsumeResult, StreamsEventsConsumeParams, StreamsEventType, StreamsEventPayload, StreamsEvent, StreamsDumpsManifest, StreamsDumps, StreamsDumpFile, StreamsConsumeParams, StreamsClient, StreamsCanonicalBlock, StreamsBatchContext, StreamsBatch, StandardWebhooksHeaders2 as StandardWebhooksHeaders, StackingWalkParams, StackingListParams, StackingEnvelope, SinkTx, SecondLayerOptions, SecondLayerErrorOptions, SecondLayerError, SecondLayerArchive, SecondLayer, SbtcWithdrawalsWalkParams, SbtcWithdrawalsListParams, SbtcWithdrawalsEnvelope, SbtcWithdrawalSweptConfirmedEvent, SbtcWithdrawalStatus, SbtcWithdrawalEvent, SbtcWithdrawalEnvelope, SbtcSummaryEnvelope, SbtcResource, SbtcEventsWalkParams, SbtcEventsListParams, SbtcEventsEnvelope, SbtcEventsConsumeParams, SbtcEventTopic2 as SbtcEventTopic, SbtcDepositsWalkParams, SbtcDepositsListParams, SbtcDepositsEnvelope, SbtcDepositsConsumeParams, SbtcDepositEvent, SbtcDepositEnvelope, RotateSecretResponse2 as RotateSecretResponse, RewardSet2 as RewardSet, RequestOptions, ReplayResult2 as ReplayResult, RateLimitError, PublicStatus2 as PublicStatus, PrintSchemaResponse, PoxResource, PoxCyclesWalkParams, PoxCyclesListParams, PoxCyclesEnvelope, PoxCycleEnvelope, Pox5Resource, Pox5EventsWalkParams, Pox5EventsListParams, Pox5EventsEnvelope, NftTransfersWalkParams, NftTransfersResource, NftTransfersListParams, NftTransfersEnvelope, NftTransferPayload2 as NftTransferPayload, NftTransferEvent, NftTransfer, MempoolWalkParams, MempoolTransactionEnvelope, MempoolListParams, MempoolEnvelope, LoadedArchive, LOCAL_API_URL, InsufficientArchiveCreditsError, InstanceStatus, InstanceState, InstanceIssue, InstanceDiagnosis3 as InstanceDiagnosis, InstanceClient, IndexTransaction, IndexTip, IndexStxTransfer, IndexStxMint, IndexStxLock, IndexStxBurn, IndexStackingAction, IndexSbtcWithdrawalPhase, IndexSbtcWithdrawalDetail, IndexSbtcWithdrawal, IndexSbtcSummary, IndexSbtcEvent, IndexSbtcDepositDetail, IndexSbtcDeposit, IndexReorg, IndexPrint, IndexPoxFunctionCount, IndexPoxCycle, IndexPox5EventTopic, IndexPox5Event, IndexPostCondition, IndexNftTransfer, IndexNftMint, IndexNftBurn, IndexMempoolTransaction, IndexFtTransfer, IndexFtMint, IndexFtBurn, IndexFeedItem, IndexFeedFetcher, IndexFeedEnvelope, IndexEventsResource, IndexEventTypeFilters, IndexEventType, IndexEventOf, IndexEventFields, IndexEvent, IndexDiscovery, IndexContractCall, IndexConsumeOptions, IndexCanonicalBlock, IndexBlock, IndexAlwaysFields, Index, INSTANCE_TOKEN_ENV, INDEX_MAX_PAGE_SIZE, FtTransfersWalkParams, FtTransfersResource, FtTransfersListParams, FtTransfersEnvelope, FtTransferPayload2 as FtTransferPayload, FtTransferEvent, FtTransfer, FetchLike2 as FetchLike, EventsWalkParams, EventsListParams, EventsEnvelope, EventsConsumeParams, DeliveryRow2 as DeliveryRow, DecodedStxTransferPayload, DecodedStxTransfer, DecodedStxMintPayload, DecodedStxMint, DecodedStxLockPayload, DecodedStxLock, DecodedStxBurnPayload, DecodedStxBurn, DecodedPrintValue, DecodedPrintPayload, DecodedPrint, DecodedNftTransferPayload, DecodedNftTransfer, DecodedNftMintPayload, DecodedNftMint, DecodedNftBurnPayload, DecodedNftBurn, DecodedFtTransferPayload, DecodedFtTransfer, DecodedFtMintPayload, DecodedFtMint, DecodedFtBurnPayload, DecodedFtBurn, DecodedEventRow, DecodedEventColumns, DeadRow2 as DeadRow, DEFAULT_REQUEST_TIMEOUT_MS, Cursor, CreateSubscriptionResponse2 as CreateSubscriptionResponse, CreateSubscriptionRequest2 as CreateSubscriptionRequest, CreateArchiveClientOptions, ContractsListParams, ContractsEnvelope, Contracts, ContractSummary, ContractConformance, ContractCallsWalkParams, ContractCallsListParams, ContractCallsEnvelope, ContractCallsConsumeParams, ContextSnapshot, ContextFieldError, ContextField, ContextAccount, ConsumerSink, ConsumerHealth, ConsumerBatchContext, ChainWebhookEnvelope, ChainWebhookDelivery2 as ChainWebhookDelivery, ChainTxLevelEvent, ChainTriggerType, ChainTrigger, ChainTestDelivery, ChainStxTransferData, ChainStxMintData, ChainStxLockData, ChainStxBurnData, ChainReorgRollbackEnvelope, ChainReorgRollbackDelivery, ChainReorgOrphanedEntry, ChainPrintEventData, ChainNftTransferData, ChainNftMintData, ChainNftBurnData, ChainFtTransferData, ChainFtMintData, ChainFtBurnData, ChainEventEnvelope, ChainApplyEnvelopeOf, ChainApplyEnvelope, ChainApplyDeliveryOf, CanonicalWalkParams, CanonicalListParams, CanonicalEnvelope, BlocksWalkParams, BlocksListParams, BlocksEnvelope, BlockEnvelope, AuthError, ArchiveVerifyResult, ArchiveVerifyRangeStatus, ArchiveVerifyInput, ArchiveSignatureError, ArchiveQuote, ArchivePartition, ArchiveManifest, ArchiveLoadOptions, ArchiveGateNotConfiguredError, ArchiveFlow, ArchiveFetchResult, ArchiveFetchItem, ArchiveDataset, ArchiveCreditsBalance, ArchiveClient, ArchiveAuthError, ApiError, ActiveSubgraphOperation, ACCOUNT_KEY_ENV };
|