@secondlayer/sdk 6.35.0 → 6.37.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/dist/index.d.ts CHANGED
@@ -29,6 +29,7 @@ declare abstract class BaseClient {
29
29
  protected baseUrl: string;
30
30
  protected apiKey?: string;
31
31
  protected origin: "cli" | "mcp" | "session";
32
+ protected fetchImpl: FetchLike;
32
33
  constructor(options?: Partial<SecondLayerOptions>);
33
34
  static authHeaders(apiKey?: string): Record<string, string>;
34
35
  protected request<T>(method: string, path: string, body?: unknown): Promise<T>;
@@ -640,6 +641,18 @@ type StreamsEventsConsumeParams = {
640
641
  * stale rows from an orphaned fork are left in place).
641
642
  */
642
643
  onReorg?: (reorg: StreamsReorg, ctx: StreamsReorgContext) => Promise<void> | void
644
+ /** Page-fetch retries after the first failure (429/5xx/network only —
645
+ * 4xx and handler throws always propagate). Default 3; `0` disables. */
646
+ retryCount?: number
647
+ /** Base retry delay in ms; the n-th retry waits `retryDelay * n`. A server
648
+ * `Retry-After` overrides it. Default 1000. */
649
+ retryDelay?: number
650
+ /** Void observer, called before each retry sleep (metrics/logging). */
651
+ onError?: (err: unknown, ctx: {
652
+ attempt: number
653
+ retriesLeft: number
654
+ delayMs: number
655
+ }) => void
643
656
  emptyBackoffMs?: number
644
657
  maxPages?: number
645
658
  maxEmptyPolls?: number
@@ -828,6 +841,23 @@ type StreamsUsage = {
828
841
  }
829
842
  };
830
843
  type Sleep = (ms: number, signal?: AbortSignal) => Promise<void>;
844
+ /** Options shared by both consume loops' page-fetch retry. Vocabulary matches
845
+ * `@secondlayer/stacks` transports (`retryCount`/`retryDelay`) — one retry
846
+ * language across the family, not a third. */
847
+ type PageRetryOptions = {
848
+ /** Retries after the first failure. Default 3; `0` disables. */
849
+ retryCount?: number
850
+ /** Base delay in ms; the n-th retry waits `retryDelay * n` (matches the
851
+ * stacks transport). A server `Retry-After` overrides it. Default 1000. */
852
+ retryDelay?: number
853
+ /** Void observer, called before each retry sleep (metrics/logging). The
854
+ * retry policy owns the decision; this cannot change it. */
855
+ onError?: (err: unknown, ctx: {
856
+ attempt: number
857
+ retriesLeft: number
858
+ delayMs: number
859
+ }) => void
860
+ };
831
861
  /** Minimum shape a consumed Index row must expose. */
832
862
  type IndexFeedItem = {
833
863
  cursor: string
@@ -877,6 +907,15 @@ type IndexConsumeOptions<
877
907
  maxPages?: number
878
908
  maxEmptyPolls?: number
879
909
  signal?: AbortSignal
910
+ /** Page-fetch retries after the first failure (429/5xx/network only —
911
+ * 4xx and handler throws always propagate). Default 3; `0` disables. */
912
+ retryCount?: number
913
+ /** Base retry delay in ms; the n-th retry waits `retryDelay * n`. A server
914
+ * `Retry-After` overrides it. Default 1000. */
915
+ retryDelay?: number
916
+ /** Void observer, called before each retry sleep. Cannot change the retry
917
+ * decision — the policy owns it. */
918
+ onError?: PageRetryOptions["onError"]
880
919
  };
881
920
  /**
882
921
  * Checkpointed pull loop over a cursor-paginated Index feed — the Index port
@@ -2216,27 +2255,141 @@ type CreateStreamsClientOptions = {
2216
2255
  verifyDumpsManifest?: boolean
2217
2256
  };
2218
2257
  declare function createStreamsClient(options: CreateStreamsClientOptions): StreamsClient;
2219
- declare class AuthError extends Error {
2220
- readonly status = 401;
2258
+ import { ByoBreakingChangeDetails } from "@secondlayer/shared/errors";
2259
+ /** Options accepted by every error in the family. */
2260
+ interface SecondLayerErrorOptions {
2261
+ cause?: Error;
2262
+ details?: string;
2263
+ /** Stable machine-readable code (e.g. `UPGRADE_REQUIRED`, `BYO_BREAKING_CHANGE`). */
2264
+ code?: string;
2265
+ /** Docs page that explains this failure and its fix. */
2266
+ docsUrl?: string;
2267
+ /** Extra context lines appended to the message (DDL to run, next steps). */
2268
+ metaMessages?: string[];
2269
+ /** Whether retrying the SAME request can succeed (429/5xx/network). */
2270
+ retryable?: boolean;
2271
+ /** Parsed `Retry-After`, in seconds — set on rate limits that carry it. */
2272
+ retryAfterSeconds?: number;
2273
+ }
2274
+ /**
2275
+ * Root of the SDK error family. Implements the same protocol as `BaseError`
2276
+ * in `@secondlayer/stacks` (`shortMessage`, `cause`, `toJSON`) so a failed
2277
+ * chain read and a failed platform read serialize and introspect identically.
2278
+ * It intentionally does NOT extend that class: `BaseError.details` is a
2279
+ * `string`, while {@link ByoBreakingChangeError.details} is the documented
2280
+ * structured migration plan — and cross-package `instanceof` is unreliable
2281
+ * under per-package bundling anyway (match on `code`/`name` across packages).
2282
+ *
2283
+ * `retryable` is the signal the consume loops act on: 429/5xx/network are
2284
+ * retryable, 4xx and body-serialization failures are not.
2285
+ */
2286
+ declare class SecondLayerError extends Error {
2287
+ name: string;
2288
+ /** The one-line failure, without the appended context blocks. */
2289
+ shortMessage: string;
2290
+ code?: string;
2291
+ docsUrl?: string;
2292
+ metaMessages?: string[];
2293
+ retryable: boolean;
2294
+ retryAfterSeconds?: number;
2295
+ constructor(shortMessage: string, options?: SecondLayerErrorOptions);
2296
+ /**
2297
+ * Walk the cause chain. With a predicate, returns the first error matching
2298
+ * it (or `null`); without one, returns the deepest cause. Mirrors viem's
2299
+ * `error.walk()` so cross-library error handling reads the same.
2300
+ */
2301
+ walk(fn?: (err: unknown) => boolean): unknown;
2302
+ toJSON(): {
2303
+ name: string
2304
+ message: string
2305
+ shortMessage: string
2306
+ cause: string | undefined
2307
+ code: string | undefined
2308
+ docsUrl: string | undefined
2309
+ retryable: boolean
2310
+ retryAfterSeconds: number | undefined
2311
+ };
2312
+ }
2313
+ /**
2314
+ * Error thrown by {@link SecondLayer} when an API request fails.
2315
+ * Includes the HTTP status code for programmatic error handling.
2316
+ *
2317
+ * @example
2318
+ * ```ts
2319
+ * try {
2320
+ * await client.subgraphs.get("my-subgraph");
2321
+ * } catch (err) {
2322
+ * if (err instanceof ApiError && err.status === 404) {
2323
+ * console.log("Subgraph not found");
2324
+ * }
2325
+ * }
2326
+ * ```
2327
+ */
2328
+ declare class ApiError extends SecondLayerError {
2329
+ /** HTTP status code (0 for network errors). */
2330
+ status: number;
2331
+ /** Raw response body (parsed JSON if possible) — preserved for callers that need error details. */
2332
+ body?: unknown;
2333
+ constructor(status: number, message: string, body?: unknown, code?: string, options?: SecondLayerErrorOptions);
2334
+ }
2335
+ /** Thrown on a 401 — by both the platform clients and Streams. */
2336
+ declare class AuthError extends ApiError {
2337
+ readonly status: 401;
2221
2338
  constructor(message?: string);
2222
2339
  }
2223
- declare class RateLimitError extends Error {
2340
+ /** Thrown on a 429 — by both the platform clients and Streams. `retryable`,
2341
+ * with `retryAfterSeconds` parsed from the `Retry-After` header when sent. */
2342
+ declare class RateLimitError extends ApiError {
2343
+ /** Raw `Retry-After` header value (seconds or HTTP-date). */
2224
2344
  readonly retryAfter?: string;
2225
- readonly status = 429;
2345
+ readonly status: 429;
2226
2346
  constructor(message?: string, retryAfter?: string);
2227
2347
  }
2228
- declare class ValidationError extends Error {
2229
- readonly status: number;
2230
- readonly body?: unknown;
2348
+ /** Thrown on a 4xx the caller can fix (bad cursor, bad params). Never retried. */
2349
+ declare class ValidationError extends ApiError {
2231
2350
  constructor(message: string, status: number, body?: unknown);
2232
2351
  }
2233
- declare class StreamsServerError extends Error {
2234
- readonly status: number;
2235
- readonly body?: unknown;
2352
+ /** Parse a `Retry-After` header: delta-seconds or an HTTP-date. */
2353
+ declare function parseRetryAfter(value?: string | null): number | undefined;
2354
+ /**
2355
+ * Thrown on optimistic-concurrency conflict when a deploy supplies an
2356
+ * `expectedVersion` that no longer matches the server's stored version.
2357
+ */
2358
+ declare class VersionConflictError extends ApiError {
2359
+ currentVersion: string;
2360
+ expectedVersion: string;
2361
+ constructor(currentVersion: string, expectedVersion: string, message?: string);
2362
+ }
2363
+ /**
2364
+ * Thrown when a BYO subgraph deploy is refused for a breaking schema change.
2365
+ * The deploy did NOT run — `details.plan` carries the DROP + rebuild DDL to run
2366
+ * manually on your own database, plus the breaking `reasons` and the `diff`.
2367
+ * The same DDL is surfaced on `metaMessages`, so a bare `console.error(err)`
2368
+ * already shows the operator what to run.
2369
+ *
2370
+ * @example
2371
+ * ```ts
2372
+ * try {
2373
+ * await client.subgraphs.deploy(bundle);
2374
+ * } catch (err) {
2375
+ * if (err instanceof ByoBreakingChangeError) {
2376
+ * console.log(err.details.plan.dropStatement);
2377
+ * console.log(err.details.plan.statements.join(";
2378
+ "));
2379
+ * }
2380
+ * }
2381
+ * ```
2382
+ */
2383
+ declare class ByoBreakingChangeError extends ApiError {
2384
+ readonly details: ByoBreakingChangeDetails;
2385
+ constructor(message: string, details: ByoBreakingChangeDetails);
2386
+ }
2387
+ /** Thrown on a 5xx from the Streams API. `retryable`. */
2388
+ declare class StreamsServerError extends ApiError {
2236
2389
  constructor(message: string, status: number, body?: unknown);
2237
2390
  }
2238
2391
  /** Thrown when response signature verification is enabled and fails. */
2239
- declare class StreamsSignatureError extends Error {
2392
+ declare class StreamsSignatureError extends SecondLayerError {
2240
2393
  constructor(message?: string);
2241
2394
  }
2242
2395
  type FtTransferEvent = Extract<StreamsEvent, {
@@ -2676,62 +2829,6 @@ type PayAndRetryOptions = Omit<WithX402Options, never> & {
2676
2829
  */
2677
2830
  declare function payAndRetry(doFetch: X402FetchFn, opts: PayAndRetryOptions): Promise<Response>;
2678
2831
  import { SubgraphAgentSchema as SubgraphAgentSchema3, SubgraphSpecFormat as SubgraphSpecFormat2, SubgraphSpecOptions as SubgraphSpecOptions3 } from "@secondlayer/shared/subgraphs/spec";
2679
- import { ByoBreakingChangeDetails } from "@secondlayer/shared/errors";
2680
- /**
2681
- * Error thrown by {@link SecondLayer} when an API request fails.
2682
- * Includes the HTTP status code for programmatic error handling.
2683
- *
2684
- * @example
2685
- * ```ts
2686
- * try {
2687
- * await client.subgraphs.get("my-subgraph");
2688
- * } catch (err) {
2689
- * if (err instanceof ApiError && err.status === 404) {
2690
- * console.log("Subgraph not found");
2691
- * }
2692
- * }
2693
- * ```
2694
- */
2695
- declare class ApiError extends Error {
2696
- /** HTTP status code (0 for network errors). */
2697
- status: number;
2698
- /** Raw response body (parsed JSON if possible) — preserved for callers that need error details. */
2699
- body?: unknown;
2700
- /** Stable machine-readable code from the API's `{error, code}` error envelope. */
2701
- code?: string;
2702
- constructor(status: number, message: string, body?: unknown, code?: string);
2703
- }
2704
- /**
2705
- * Thrown on optimistic-concurrency conflict when a deploy supplies an
2706
- * `expectedVersion` that no longer matches the server's stored version.
2707
- */
2708
- declare class VersionConflictError extends ApiError {
2709
- currentVersion: string;
2710
- expectedVersion: string;
2711
- constructor(currentVersion: string, expectedVersion: string, message?: string);
2712
- }
2713
- /**
2714
- * Thrown when a BYO subgraph deploy is refused for a breaking schema change.
2715
- * The deploy did NOT run — `details.plan` carries the DROP + rebuild DDL to run
2716
- * manually on your own database, plus the breaking `reasons` and the `diff`.
2717
- *
2718
- * @example
2719
- * ```ts
2720
- * try {
2721
- * await client.subgraphs.deploy(bundle);
2722
- * } catch (err) {
2723
- * if (err instanceof ByoBreakingChangeError) {
2724
- * console.log(err.details.plan.dropStatement);
2725
- * console.log(err.details.plan.statements.join(";
2726
- "));
2727
- * }
2728
- * }
2729
- * ```
2730
- */
2731
- declare class ByoBreakingChangeError extends ApiError {
2732
- readonly details: ByoBreakingChangeDetails;
2733
- constructor(message: string, details: ByoBreakingChangeDetails);
2734
- }
2735
2832
  import { ChainWebhookDelivery } from "@secondlayer/shared";
2736
2833
  import { StandardWebhooksHeaders } from "@secondlayer/shared/crypto/standard-webhooks";
2737
2834
  import { StandardWebhooksHeaders as StandardWebhooksHeaders2, verify } from "@secondlayer/shared/crypto/standard-webhooks";
@@ -2895,4 +2992,4 @@ declare function toJsonSafe(value: unknown): unknown;
2895
2992
  /** Decode a hex-encoded Clarity value to JSON-safe JS (uints as strings,
2896
2993
  * buffers as `0x…` hex, tuples as objects). Returns the input hex on failure. */
2897
2994
  declare function decodeClarityValue(hex: string): unknown;
2898
- export { withX402, verifyWebhookSignature, verifyTransactionProof, verify as verifyStandardWebhooksHeaders, verifySecondlayerSignature, trigger, toJsonSafe, selectOffer, resolveApiKey, resolveAccountNonce, readX402Receipt, readX402Challenge, payAndRetry, 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, createX402Client, createStreamsClient, consumeIndexFeed, buildSignedX402Payment, X402SpendGuardError, X402Result, X402Receipt, X402Fetch, X402ClientOptions, X402Client, X402Challenge, X402Accept, WithX402Options, WebhookHeaderInput, VersionConflictError, ValidationError, UpdateSubscriptionRequest2 as UpdateSubscriptionRequest, UpdateProjectParams, 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, StreamsUsage, StreamsTip, 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, SelectOfferOptions, SecondLayerOptions, SecondLayer, ScopedKeyProduct, SbtcWithdrawalsWalkParams, SbtcWithdrawalsListParams, SbtcWithdrawalsEnvelope, SbtcWithdrawalSweptConfirmedEvent, SbtcWithdrawalStatus, SbtcWithdrawalEvent, SbtcWithdrawalEnvelope, SbtcSummaryEnvelope, SbtcResource, SbtcEventsWalkParams, SbtcEventsListParams, SbtcEventsEnvelope, SbtcEventsConsumeParams, SbtcEventTopic, SbtcDepositsWalkParams, SbtcDepositsListParams, SbtcDepositsEnvelope, SbtcDepositsConsumeParams, SbtcDepositEvent, SbtcDepositEnvelope, RotateSecretResponse2 as RotateSecretResponse, RewardSet2 as RewardSet, ReplayResult2 as ReplayResult, RateLimitError, Projects, ProjectTeamMember, ProjectTeam, ProjectInvitation, Project, PrintSchemaResponse, PoxResource, PoxCyclesWalkParams, PoxCyclesListParams, PoxCyclesEnvelope, PoxCycleEnvelope, Pox5Resource, Pox5EventsWalkParams, Pox5EventsListParams, Pox5EventsEnvelope, PayAndRetryOptions, NftTransfersWalkParams, NftTransfersResource, NftTransfersListParams, NftTransfersEnvelope, NftTransferPayload, NftTransferEvent, NftTransfer, MempoolWalkParams, MempoolTransactionEnvelope, MempoolListParams, MempoolEnvelope, IndexUsage, 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, IndexEvent, IndexDiscovery, IndexContractCall, IndexConsumeOptions, IndexCanonicalBlock, IndexBlock, Index, FtTransfersWalkParams, FtTransfersResource, FtTransfersListParams, FtTransfersEnvelope, 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_PREFER_ASSETS, Cursor, CreateSubscriptionResponse2 as CreateSubscriptionResponse, CreateSubscriptionRequest2 as CreateSubscriptionRequest, CreateProjectParams, CreateApiKeyResponse, CreateApiKeyParams, ContractsListParams, ContractsEnvelope, Contracts, ContractSummary, ContractConformance, ContractCallsWalkParams, ContractCallsListParams, ContractCallsEnvelope, ContractCallsConsumeParams, ContextSnapshot, ContextProject, ContextApiKey, ContextAccount, 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, ByoBreakingChangeError, ByoBreakingChangeDetails, BuildSignedX402PaymentOptions, BlocksWalkParams, BlocksListParams, BlocksEnvelope, BlockEnvelope, AuthError, ApiKeys, ApiKeySummary, ApiError, ActiveSubgraphOperation };
2995
+ export { withX402, verifyWebhookSignature, verifyTransactionProof, verify as verifyStandardWebhooksHeaders, verifySecondlayerSignature, trigger, toJsonSafe, selectOffer, resolveApiKey, resolveAccountNonce, readX402Receipt, readX402Challenge, payAndRetry, 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, createX402Client, createStreamsClient, consumeIndexFeed, buildSignedX402Payment, X402SpendGuardError, X402Result, X402Receipt, X402Fetch, X402ClientOptions, X402Client, X402Challenge, X402Accept, WithX402Options, WebhookHeaderInput, VersionConflictError, ValidationError, UpdateSubscriptionRequest2 as UpdateSubscriptionRequest, UpdateProjectParams, 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, StreamsUsage, StreamsTip, 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, SelectOfferOptions, SecondLayerOptions, SecondLayerErrorOptions, SecondLayerError, SecondLayer, ScopedKeyProduct, SbtcWithdrawalsWalkParams, SbtcWithdrawalsListParams, SbtcWithdrawalsEnvelope, SbtcWithdrawalSweptConfirmedEvent, SbtcWithdrawalStatus, SbtcWithdrawalEvent, SbtcWithdrawalEnvelope, SbtcSummaryEnvelope, SbtcResource, SbtcEventsWalkParams, SbtcEventsListParams, SbtcEventsEnvelope, SbtcEventsConsumeParams, SbtcEventTopic, SbtcDepositsWalkParams, SbtcDepositsListParams, SbtcDepositsEnvelope, SbtcDepositsConsumeParams, SbtcDepositEvent, SbtcDepositEnvelope, RotateSecretResponse2 as RotateSecretResponse, RewardSet2 as RewardSet, ReplayResult2 as ReplayResult, RateLimitError, Projects, ProjectTeamMember, ProjectTeam, ProjectInvitation, Project, PrintSchemaResponse, PoxResource, PoxCyclesWalkParams, PoxCyclesListParams, PoxCyclesEnvelope, PoxCycleEnvelope, Pox5Resource, Pox5EventsWalkParams, Pox5EventsListParams, Pox5EventsEnvelope, PayAndRetryOptions, NftTransfersWalkParams, NftTransfersResource, NftTransfersListParams, NftTransfersEnvelope, NftTransferPayload, NftTransferEvent, NftTransfer, MempoolWalkParams, MempoolTransactionEnvelope, MempoolListParams, MempoolEnvelope, IndexUsage, 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, IndexEvent, IndexDiscovery, IndexContractCall, IndexConsumeOptions, IndexCanonicalBlock, IndexBlock, Index, FtTransfersWalkParams, FtTransfersResource, FtTransfersListParams, FtTransfersEnvelope, 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_PREFER_ASSETS, Cursor, CreateSubscriptionResponse2 as CreateSubscriptionResponse, CreateSubscriptionRequest2 as CreateSubscriptionRequest, CreateProjectParams, CreateApiKeyResponse, CreateApiKeyParams, ContractsListParams, ContractsEnvelope, Contracts, ContractSummary, ContractConformance, ContractCallsWalkParams, ContractCallsListParams, ContractCallsEnvelope, ContractCallsConsumeParams, ContextSnapshot, ContextProject, ContextApiKey, ContextAccount, 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, ByoBreakingChangeError, ByoBreakingChangeDetails, BuildSignedX402PaymentOptions, BlocksWalkParams, BlocksListParams, BlocksEnvelope, BlockEnvelope, AuthError, ApiKeys, ApiKeySummary, ApiError, ActiveSubgraphOperation };