@glacislabs/stablegenie-zerodelta 4.11.0 → 4.13.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.
@@ -281,12 +281,18 @@ interface OrderRequest {
281
281
  askToken?: string;
282
282
  askTokenAmount?: string | number;
283
283
  destinationReceiver?: string;
284
+ destinationReceiverOwner?: string;
285
+ destinationReceiverBase58?: string;
286
+ askTokenBase58?: string;
284
287
  destinationChainId?: string | number;
285
288
  /** Chain the escrow executes the order on. Mandatory on-chain; the gateway always issues it. */
286
289
  executionChainId?: string | number;
287
290
  deadline?: string | number;
288
291
  }
289
292
  interface NormalizedOrder {
293
+ destinationReceiverOwner?: string;
294
+ destinationReceiverBase58?: string;
295
+ askTokenBase58?: string;
290
296
  owner: string;
291
297
  bidToken: string;
292
298
  bidTokenAmount: string;
@@ -305,6 +311,7 @@ interface Quote {
305
311
  fromAmount?: string;
306
312
  toAmount?: string;
307
313
  finalAmount?: string;
314
+ isDirect?: boolean;
308
315
  bridge?: string;
309
316
  feeBps?: number;
310
317
  estimatedDuration?: number;
@@ -456,6 +463,9 @@ interface RouteResult {
456
463
  /** The quote's special-rate marker, when it carried one: the `partnerId` word the
457
464
  * `submitOrder` calldata was encoded with. Absent = the zero word. */
458
465
  partnerId?: string;
466
+ /** Verified delivery bytes and intended wallet, for the pre-sign calldata check. */
467
+ destinationReceiver?: string;
468
+ destinationReceiverOwner?: string;
459
469
  iterations: number;
460
470
  /**
461
471
  * The gateway's compliance decision for THIS route's wallet pair.
@@ -589,6 +599,73 @@ interface EngineConfig {
589
599
  }
590
600
  type FetchQuoteFn = (body: Record<string, unknown>, retries?: number) => Promise<Quote>;
591
601
 
602
+ /**
603
+ * The shapes the gateway would refuse anyway, checked here so a bad value costs
604
+ * no request.
605
+ *
606
+ * ⚠️ A submit transaction has TWO shapes, and accepting only the EVM one would
607
+ * drop the whole Solana family silently: an EVM 32-byte hash in 0x-hex, or a
608
+ * Solana transaction SIGNATURE in base58 (64 bytes ⇒ 86-88 chars). The length
609
+ * floor keeps a signature distinguishable from an ADDRESS (32-44 chars), which
610
+ * shares the alphabet.
611
+ *
612
+ * ⚠️ The WALLET is always the EVM owner, on every family. A Solana-source order
613
+ * is PAID by a Solana wallet but OWNED by an EVM account — that is the cancel
614
+ * and refund path, and it is what the chain records. Reporting the signer would
615
+ * name a wallet the chain never held for that order.
616
+ */
617
+ /**
618
+ * How far this widget followed the transaction it is reporting.
619
+ *
620
+ * `submitted` — the wallet handed back a hash. Reported immediately, so
621
+ * attribution survives a payer closing the tab during the wait.
622
+ * `confirmed` — the widget's own receipt check agreed it landed. This is the
623
+ * one fact only the surface can supply: whether the payer was still here when
624
+ * the payment completed, which for an embedded widget is exactly the
625
+ * conversion question its integrator is asking.
626
+ *
627
+ * ⚠️ It is NOT a claim about the chain. The gateway reads the order's real
628
+ * status from its own indexed data either way.
629
+ */
630
+ type SubmissionStage = "submitted" | "confirmed";
631
+
632
+ interface ResolvedConfig {
633
+ apiBase: string;
634
+ getApiKey: () => Promise<string>;
635
+ fetchImpl: typeof fetch;
636
+ rpcOverrides: Record<number, string>;
637
+ onTransaction?: EngineConfig["onTransaction"];
638
+ /**
639
+ * Who may share this engine's registry reads (chains, tokens, routes, route-health, vaults) — see
640
+ * `registryCacheFor` in api.ts. Set only when every input to those reads is known up front: the
641
+ * page's own `fetch` and a static key. A host that injects `fetchImpl` or `getApiKey` keeps a
642
+ * private cache, as every engine had before.
643
+ */
644
+ registryScope?: {
645
+ fetch: object;
646
+ key: string;
647
+ };
648
+ }
649
+ declare function parseAllowedApiBase(value: unknown): string | null;
650
+ /** Resolve the request base. A relative base (e.g. `/api/widget/v1`) is same-origin and allowed as
651
+ * is; an absolute base must pass parseAllowedApiBase; anything invalid falls back to the default. */
652
+ declare function resolveApiBase(value?: string): string;
653
+ /**
654
+ * Only attach the viewer key to a same-origin (relative) base, or to an origin the INTEGRATOR has
655
+ * explicitly declared trusted via `EngineConfig.trustedApiOrigin`.
656
+ *
657
+ * There is deliberately no hardcoded default origin. The API is normally reached through a
658
+ * server-side proxy that injects the key (`/api/widget/v1`), and that proxy origin differs per
659
+ * integrator deployment — so there is no single correct value to bake in. Shipping a fixed hostname
660
+ * here would make one unrelated origin the sole permitted key destination for everyone, and silently
661
+ * disable the key for every integrator not using it.
662
+ *
663
+ * Default is therefore same-origin only: fail closed, and let a host opt in to an absolute origin
664
+ * it controls.
665
+ */
666
+ declare function canAttachApiKey(apiBase: string, trustedOrigin?: string): boolean;
667
+ declare function resolveConfig(config?: EngineConfig): ResolvedConfig;
668
+
592
669
  /**
593
670
  * Which product a catalogue is being built for.
594
671
  *
@@ -977,73 +1054,6 @@ declare function laneLimitError(limit: LaneLimit, symbol: string): string;
977
1054
  * gateway message: that text is untrusted and can carry infrastructure detail. */
978
1055
  declare function brokenLaneReason(lane: BrokenLane | undefined): string;
979
1056
 
980
- /**
981
- * The shapes the gateway would refuse anyway, checked here so a bad value costs
982
- * no request.
983
- *
984
- * ⚠️ A submit transaction has TWO shapes, and accepting only the EVM one would
985
- * drop the whole Solana family silently: an EVM 32-byte hash in 0x-hex, or a
986
- * Solana transaction SIGNATURE in base58 (64 bytes ⇒ 86-88 chars). The length
987
- * floor keeps a signature distinguishable from an ADDRESS (32-44 chars), which
988
- * shares the alphabet.
989
- *
990
- * ⚠️ The WALLET is always the EVM owner, on every family. A Solana-source order
991
- * is PAID by a Solana wallet but OWNED by an EVM account — that is the cancel
992
- * and refund path, and it is what the chain records. Reporting the signer would
993
- * name a wallet the chain never held for that order.
994
- */
995
- /**
996
- * How far this widget followed the transaction it is reporting.
997
- *
998
- * `submitted` — the wallet handed back a hash. Reported immediately, so
999
- * attribution survives a payer closing the tab during the wait.
1000
- * `confirmed` — the widget's own receipt check agreed it landed. This is the
1001
- * one fact only the surface can supply: whether the payer was still here when
1002
- * the payment completed, which for an embedded widget is exactly the
1003
- * conversion question its integrator is asking.
1004
- *
1005
- * ⚠️ It is NOT a claim about the chain. The gateway reads the order's real
1006
- * status from its own indexed data either way.
1007
- */
1008
- type SubmissionStage = "submitted" | "confirmed";
1009
-
1010
- interface ResolvedConfig {
1011
- apiBase: string;
1012
- getApiKey: () => Promise<string>;
1013
- fetchImpl: typeof fetch;
1014
- rpcOverrides: Record<number, string>;
1015
- onTransaction?: EngineConfig["onTransaction"];
1016
- /**
1017
- * Who may share this engine's registry reads (chains, tokens, routes, route-health, vaults) — see
1018
- * `registryCacheFor` in api.ts. Set only when every input to those reads is known up front: the
1019
- * page's own `fetch` and a static key. A host that injects `fetchImpl` or `getApiKey` keeps a
1020
- * private cache, as every engine had before.
1021
- */
1022
- registryScope?: {
1023
- fetch: object;
1024
- key: string;
1025
- };
1026
- }
1027
- declare function parseAllowedApiBase(value: unknown): string | null;
1028
- /** Resolve the request base. A relative base (e.g. `/api/widget/v1`) is same-origin and allowed as
1029
- * is; an absolute base must pass parseAllowedApiBase; anything invalid falls back to the default. */
1030
- declare function resolveApiBase(value?: string): string;
1031
- /**
1032
- * Only attach the viewer key to a same-origin (relative) base, or to an origin the INTEGRATOR has
1033
- * explicitly declared trusted via `EngineConfig.trustedApiOrigin`.
1034
- *
1035
- * There is deliberately no hardcoded default origin. The API is normally reached through a
1036
- * server-side proxy that injects the key (`/api/widget/v1`), and that proxy origin differs per
1037
- * integrator deployment — so there is no single correct value to bake in. Shipping a fixed hostname
1038
- * here would make one unrelated origin the sole permitted key destination for everyone, and silently
1039
- * disable the key for every integrator not using it.
1040
- *
1041
- * Default is therefore same-origin only: fail closed, and let a host opt in to an absolute origin
1042
- * it controls.
1043
- */
1044
- declare function canAttachApiKey(apiBase: string, trustedOrigin?: string): boolean;
1045
- declare function resolveConfig(config?: EngineConfig): ResolvedConfig;
1046
-
1047
1057
  interface ApiError extends Error {
1048
1058
  code?: string;
1049
1059
  status?: number;
@@ -1172,4 +1182,4 @@ interface Verifier {
1172
1182
  }
1173
1183
  declare function createVerifier(api: ApiClient, fetchImpl: typeof fetch, rpcOverrides?: Record<number, string>): Verifier;
1174
1184
 
1175
- export { type Destination as $, type Availability as A, type BrokenLane as B, type Compliance as C, type Verifier as D, type EngineConfig as E, type FetchQuoteFn as F, type Address as G, type ApiError as H, BLOCK_LABEL_DEFAULT as I, COMPLIANCE_CHECK_ORDER as J, COMPLIANCE_DENY_LABEL as K, type LaneLimit as L, type CatalogueContext as M, type NormalizedOrder as N, type OrderRequest as O, type Plan as P, type Quote as Q, type Route as R, type SanitizedTxEntry as S, type Token as T, type CatalogueInput as U, type VerifyResult as V, type WalletScreen as W, type ComplianceCheckId as X, type ComplianceDecision as Y, DIRECT_CHECK_IDS as Z, DIRECT_SCOPE_NOTE as _, type Catalogue as a, FLOOR_CATEGORIES as a0, type Hex as a1, type LaneAvailabilityState as a2, type PlannedTxKind as a3, type QuoteBlock as a4, type ResolvedConfig as a5, type RouteHealth as a6, type RouteHealthAvailability as a7, type RouteHealthLane as a8, SCREENING_BUCKETS as a9, hubDeliverableSymbols as aA, isExecutableBridge as aB, isKnownUnbridgeable as aC, isSourceToken as aD, laneAvailabilityState as aE, laneKey as aF, laneKeys as aG, laneLimitAmount as aH, laneLimitError as aI, laneLimitFor as aJ, laneLimitHint as aK, laneLimitSymbol as aL, limitedLanes as aM, parseAllowedApiBase as aN, productAssets as aO, registryRpc as aP, resolveApiBase as aQ, resolveConfig as aR, screeningOutcomeOf as aS, sourceKeys as aT, suppressedLanes as aU, tokenKey as aV, txMatchesPlan as aW, unattributedComplianceReasons as aX, type ScreenProvider as aa, type ScreeningBucket as ab, type ScreeningOutcome as ac, TUNABLE_CATEGORIES as ad, type TxPlan as ae, amountFieldError as af, apiError as ag, blockLabelFor as ah, brokenLaneFor as ai, buildCatalogue as aj, canAttachApiKey as ak, categoryLabel as al, classifyQuoteError as am, complianceControlsEvaluated as an, complianceReasonHead as ao, complianceReasonTag as ap, complianceTagOf as aq, createApiClient as ar, createVerifier as as, destinationKeys as at, directComplianceFromScreens as au, distinctScreenedWallets as av, exceedsLaneLimit as aw, executableRoutes as ax, executionChainIds as ay, hasReachableDestination as az, type Chain as b, type ComplianceCheck as c, type ComplianceTone as d, type ComplianceView as e, type ExchangeProduct as f, type RouteLeg as g, type RouteResult as h, type TxHistoryEntry as i, assetClassOf as j, brokenLaneReason as k, complianceChecks as l, complianceControlsLine as m, complianceView as n, counterpartTokens as o, destinationAvailability as p, formatJurisdiction as q, humanizeComplianceReason as r, type PayOption as s, type RwaVault as t, type SolveResult as u, type BalanceTarget as v, type BalanceEntry as w, type ApiClient as x, type SwapInput as y, type PlannedTx as z };
1185
+ export { type Destination as $, type Availability as A, type BrokenLane as B, type Compliance as C, type Verifier as D, type EngineConfig as E, type FetchQuoteFn as F, type Address as G, type ApiError as H, BLOCK_LABEL_DEFAULT as I, COMPLIANCE_CHECK_ORDER as J, COMPLIANCE_DENY_LABEL as K, type LaneLimit as L, type CatalogueContext as M, type NormalizedOrder as N, type OrderRequest as O, type Plan as P, type Quote as Q, type Route as R, type SanitizedTxEntry as S, type Token as T, type CatalogueInput as U, type VerifyResult as V, type WalletScreen as W, type ComplianceCheckId as X, type ComplianceDecision as Y, DIRECT_CHECK_IDS as Z, DIRECT_SCOPE_NOTE as _, type Catalogue as a, FLOOR_CATEGORIES as a0, type Hex as a1, type LaneAvailabilityState as a2, type PlannedTxKind as a3, type QuoteBlock as a4, type ResolvedConfig as a5, type RouteHealth as a6, type RouteHealthAvailability as a7, type RouteHealthLane as a8, SCREENING_BUCKETS as a9, hubDeliverableSymbols as aA, isExecutableBridge as aB, isKnownUnbridgeable as aC, isSourceToken as aD, laneAvailabilityState as aE, laneKey as aF, laneKeys as aG, laneLimitAmount as aH, laneLimitError as aI, laneLimitFor as aJ, laneLimitHint as aK, laneLimitSymbol as aL, limitedLanes as aM, parseAllowedApiBase as aN, productAssets as aO, registryRpc as aP, resolveApiBase as aQ, resolveConfig as aR, screeningOutcomeOf as aS, sourceKeys as aT, suppressedLanes as aU, tokenKey as aV, txMatchesPlan as aW, unattributedComplianceReasons as aX, type ScreenProvider as aa, type ScreeningBucket as ab, type ScreeningOutcome as ac, TUNABLE_CATEGORIES as ad, type TxPlan as ae, amountFieldError as af, apiError as ag, blockLabelFor as ah, brokenLaneFor as ai, buildCatalogue as aj, canAttachApiKey as ak, categoryLabel as al, classifyQuoteError as am, complianceControlsEvaluated as an, complianceReasonHead as ao, complianceReasonTag as ap, complianceTagOf as aq, createApiClient as ar, createVerifier as as, destinationKeys as at, directComplianceFromScreens as au, distinctScreenedWallets as av, exceedsLaneLimit as aw, executableRoutes as ax, executionChainIds as ay, hasReachableDestination as az, type Chain as b, type ComplianceCheck as c, type ComplianceTone as d, type ComplianceView as e, type ExchangeProduct as f, type RouteLeg as g, type RouteResult as h, type TxHistoryEntry as i, assetClassOf as j, brokenLaneReason as k, complianceChecks as l, complianceControlsLine as m, complianceView as n, counterpartTokens as o, destinationAvailability as p, formatJurisdiction as q, humanizeComplianceReason as r, type ApiClient as s, type SwapInput as t, type PayOption as u, type RwaVault as v, type SolveResult as w, type BalanceTarget as x, type BalanceEntry as y, type PlannedTx as z };
@@ -281,12 +281,18 @@ interface OrderRequest {
281
281
  askToken?: string;
282
282
  askTokenAmount?: string | number;
283
283
  destinationReceiver?: string;
284
+ destinationReceiverOwner?: string;
285
+ destinationReceiverBase58?: string;
286
+ askTokenBase58?: string;
284
287
  destinationChainId?: string | number;
285
288
  /** Chain the escrow executes the order on. Mandatory on-chain; the gateway always issues it. */
286
289
  executionChainId?: string | number;
287
290
  deadline?: string | number;
288
291
  }
289
292
  interface NormalizedOrder {
293
+ destinationReceiverOwner?: string;
294
+ destinationReceiverBase58?: string;
295
+ askTokenBase58?: string;
290
296
  owner: string;
291
297
  bidToken: string;
292
298
  bidTokenAmount: string;
@@ -305,6 +311,7 @@ interface Quote {
305
311
  fromAmount?: string;
306
312
  toAmount?: string;
307
313
  finalAmount?: string;
314
+ isDirect?: boolean;
308
315
  bridge?: string;
309
316
  feeBps?: number;
310
317
  estimatedDuration?: number;
@@ -456,6 +463,9 @@ interface RouteResult {
456
463
  /** The quote's special-rate marker, when it carried one: the `partnerId` word the
457
464
  * `submitOrder` calldata was encoded with. Absent = the zero word. */
458
465
  partnerId?: string;
466
+ /** Verified delivery bytes and intended wallet, for the pre-sign calldata check. */
467
+ destinationReceiver?: string;
468
+ destinationReceiverOwner?: string;
459
469
  iterations: number;
460
470
  /**
461
471
  * The gateway's compliance decision for THIS route's wallet pair.
@@ -589,6 +599,73 @@ interface EngineConfig {
589
599
  }
590
600
  type FetchQuoteFn = (body: Record<string, unknown>, retries?: number) => Promise<Quote>;
591
601
 
602
+ /**
603
+ * The shapes the gateway would refuse anyway, checked here so a bad value costs
604
+ * no request.
605
+ *
606
+ * ⚠️ A submit transaction has TWO shapes, and accepting only the EVM one would
607
+ * drop the whole Solana family silently: an EVM 32-byte hash in 0x-hex, or a
608
+ * Solana transaction SIGNATURE in base58 (64 bytes ⇒ 86-88 chars). The length
609
+ * floor keeps a signature distinguishable from an ADDRESS (32-44 chars), which
610
+ * shares the alphabet.
611
+ *
612
+ * ⚠️ The WALLET is always the EVM owner, on every family. A Solana-source order
613
+ * is PAID by a Solana wallet but OWNED by an EVM account — that is the cancel
614
+ * and refund path, and it is what the chain records. Reporting the signer would
615
+ * name a wallet the chain never held for that order.
616
+ */
617
+ /**
618
+ * How far this widget followed the transaction it is reporting.
619
+ *
620
+ * `submitted` — the wallet handed back a hash. Reported immediately, so
621
+ * attribution survives a payer closing the tab during the wait.
622
+ * `confirmed` — the widget's own receipt check agreed it landed. This is the
623
+ * one fact only the surface can supply: whether the payer was still here when
624
+ * the payment completed, which for an embedded widget is exactly the
625
+ * conversion question its integrator is asking.
626
+ *
627
+ * ⚠️ It is NOT a claim about the chain. The gateway reads the order's real
628
+ * status from its own indexed data either way.
629
+ */
630
+ type SubmissionStage = "submitted" | "confirmed";
631
+
632
+ interface ResolvedConfig {
633
+ apiBase: string;
634
+ getApiKey: () => Promise<string>;
635
+ fetchImpl: typeof fetch;
636
+ rpcOverrides: Record<number, string>;
637
+ onTransaction?: EngineConfig["onTransaction"];
638
+ /**
639
+ * Who may share this engine's registry reads (chains, tokens, routes, route-health, vaults) — see
640
+ * `registryCacheFor` in api.ts. Set only when every input to those reads is known up front: the
641
+ * page's own `fetch` and a static key. A host that injects `fetchImpl` or `getApiKey` keeps a
642
+ * private cache, as every engine had before.
643
+ */
644
+ registryScope?: {
645
+ fetch: object;
646
+ key: string;
647
+ };
648
+ }
649
+ declare function parseAllowedApiBase(value: unknown): string | null;
650
+ /** Resolve the request base. A relative base (e.g. `/api/widget/v1`) is same-origin and allowed as
651
+ * is; an absolute base must pass parseAllowedApiBase; anything invalid falls back to the default. */
652
+ declare function resolveApiBase(value?: string): string;
653
+ /**
654
+ * Only attach the viewer key to a same-origin (relative) base, or to an origin the INTEGRATOR has
655
+ * explicitly declared trusted via `EngineConfig.trustedApiOrigin`.
656
+ *
657
+ * There is deliberately no hardcoded default origin. The API is normally reached through a
658
+ * server-side proxy that injects the key (`/api/widget/v1`), and that proxy origin differs per
659
+ * integrator deployment — so there is no single correct value to bake in. Shipping a fixed hostname
660
+ * here would make one unrelated origin the sole permitted key destination for everyone, and silently
661
+ * disable the key for every integrator not using it.
662
+ *
663
+ * Default is therefore same-origin only: fail closed, and let a host opt in to an absolute origin
664
+ * it controls.
665
+ */
666
+ declare function canAttachApiKey(apiBase: string, trustedOrigin?: string): boolean;
667
+ declare function resolveConfig(config?: EngineConfig): ResolvedConfig;
668
+
592
669
  /**
593
670
  * Which product a catalogue is being built for.
594
671
  *
@@ -977,73 +1054,6 @@ declare function laneLimitError(limit: LaneLimit, symbol: string): string;
977
1054
  * gateway message: that text is untrusted and can carry infrastructure detail. */
978
1055
  declare function brokenLaneReason(lane: BrokenLane | undefined): string;
979
1056
 
980
- /**
981
- * The shapes the gateway would refuse anyway, checked here so a bad value costs
982
- * no request.
983
- *
984
- * ⚠️ A submit transaction has TWO shapes, and accepting only the EVM one would
985
- * drop the whole Solana family silently: an EVM 32-byte hash in 0x-hex, or a
986
- * Solana transaction SIGNATURE in base58 (64 bytes ⇒ 86-88 chars). The length
987
- * floor keeps a signature distinguishable from an ADDRESS (32-44 chars), which
988
- * shares the alphabet.
989
- *
990
- * ⚠️ The WALLET is always the EVM owner, on every family. A Solana-source order
991
- * is PAID by a Solana wallet but OWNED by an EVM account — that is the cancel
992
- * and refund path, and it is what the chain records. Reporting the signer would
993
- * name a wallet the chain never held for that order.
994
- */
995
- /**
996
- * How far this widget followed the transaction it is reporting.
997
- *
998
- * `submitted` — the wallet handed back a hash. Reported immediately, so
999
- * attribution survives a payer closing the tab during the wait.
1000
- * `confirmed` — the widget's own receipt check agreed it landed. This is the
1001
- * one fact only the surface can supply: whether the payer was still here when
1002
- * the payment completed, which for an embedded widget is exactly the
1003
- * conversion question its integrator is asking.
1004
- *
1005
- * ⚠️ It is NOT a claim about the chain. The gateway reads the order's real
1006
- * status from its own indexed data either way.
1007
- */
1008
- type SubmissionStage = "submitted" | "confirmed";
1009
-
1010
- interface ResolvedConfig {
1011
- apiBase: string;
1012
- getApiKey: () => Promise<string>;
1013
- fetchImpl: typeof fetch;
1014
- rpcOverrides: Record<number, string>;
1015
- onTransaction?: EngineConfig["onTransaction"];
1016
- /**
1017
- * Who may share this engine's registry reads (chains, tokens, routes, route-health, vaults) — see
1018
- * `registryCacheFor` in api.ts. Set only when every input to those reads is known up front: the
1019
- * page's own `fetch` and a static key. A host that injects `fetchImpl` or `getApiKey` keeps a
1020
- * private cache, as every engine had before.
1021
- */
1022
- registryScope?: {
1023
- fetch: object;
1024
- key: string;
1025
- };
1026
- }
1027
- declare function parseAllowedApiBase(value: unknown): string | null;
1028
- /** Resolve the request base. A relative base (e.g. `/api/widget/v1`) is same-origin and allowed as
1029
- * is; an absolute base must pass parseAllowedApiBase; anything invalid falls back to the default. */
1030
- declare function resolveApiBase(value?: string): string;
1031
- /**
1032
- * Only attach the viewer key to a same-origin (relative) base, or to an origin the INTEGRATOR has
1033
- * explicitly declared trusted via `EngineConfig.trustedApiOrigin`.
1034
- *
1035
- * There is deliberately no hardcoded default origin. The API is normally reached through a
1036
- * server-side proxy that injects the key (`/api/widget/v1`), and that proxy origin differs per
1037
- * integrator deployment — so there is no single correct value to bake in. Shipping a fixed hostname
1038
- * here would make one unrelated origin the sole permitted key destination for everyone, and silently
1039
- * disable the key for every integrator not using it.
1040
- *
1041
- * Default is therefore same-origin only: fail closed, and let a host opt in to an absolute origin
1042
- * it controls.
1043
- */
1044
- declare function canAttachApiKey(apiBase: string, trustedOrigin?: string): boolean;
1045
- declare function resolveConfig(config?: EngineConfig): ResolvedConfig;
1046
-
1047
1057
  interface ApiError extends Error {
1048
1058
  code?: string;
1049
1059
  status?: number;
@@ -1172,4 +1182,4 @@ interface Verifier {
1172
1182
  }
1173
1183
  declare function createVerifier(api: ApiClient, fetchImpl: typeof fetch, rpcOverrides?: Record<number, string>): Verifier;
1174
1184
 
1175
- export { type Destination as $, type Availability as A, type BrokenLane as B, type Compliance as C, type Verifier as D, type EngineConfig as E, type FetchQuoteFn as F, type Address as G, type ApiError as H, BLOCK_LABEL_DEFAULT as I, COMPLIANCE_CHECK_ORDER as J, COMPLIANCE_DENY_LABEL as K, type LaneLimit as L, type CatalogueContext as M, type NormalizedOrder as N, type OrderRequest as O, type Plan as P, type Quote as Q, type Route as R, type SanitizedTxEntry as S, type Token as T, type CatalogueInput as U, type VerifyResult as V, type WalletScreen as W, type ComplianceCheckId as X, type ComplianceDecision as Y, DIRECT_CHECK_IDS as Z, DIRECT_SCOPE_NOTE as _, type Catalogue as a, FLOOR_CATEGORIES as a0, type Hex as a1, type LaneAvailabilityState as a2, type PlannedTxKind as a3, type QuoteBlock as a4, type ResolvedConfig as a5, type RouteHealth as a6, type RouteHealthAvailability as a7, type RouteHealthLane as a8, SCREENING_BUCKETS as a9, hubDeliverableSymbols as aA, isExecutableBridge as aB, isKnownUnbridgeable as aC, isSourceToken as aD, laneAvailabilityState as aE, laneKey as aF, laneKeys as aG, laneLimitAmount as aH, laneLimitError as aI, laneLimitFor as aJ, laneLimitHint as aK, laneLimitSymbol as aL, limitedLanes as aM, parseAllowedApiBase as aN, productAssets as aO, registryRpc as aP, resolveApiBase as aQ, resolveConfig as aR, screeningOutcomeOf as aS, sourceKeys as aT, suppressedLanes as aU, tokenKey as aV, txMatchesPlan as aW, unattributedComplianceReasons as aX, type ScreenProvider as aa, type ScreeningBucket as ab, type ScreeningOutcome as ac, TUNABLE_CATEGORIES as ad, type TxPlan as ae, amountFieldError as af, apiError as ag, blockLabelFor as ah, brokenLaneFor as ai, buildCatalogue as aj, canAttachApiKey as ak, categoryLabel as al, classifyQuoteError as am, complianceControlsEvaluated as an, complianceReasonHead as ao, complianceReasonTag as ap, complianceTagOf as aq, createApiClient as ar, createVerifier as as, destinationKeys as at, directComplianceFromScreens as au, distinctScreenedWallets as av, exceedsLaneLimit as aw, executableRoutes as ax, executionChainIds as ay, hasReachableDestination as az, type Chain as b, type ComplianceCheck as c, type ComplianceTone as d, type ComplianceView as e, type ExchangeProduct as f, type RouteLeg as g, type RouteResult as h, type TxHistoryEntry as i, assetClassOf as j, brokenLaneReason as k, complianceChecks as l, complianceControlsLine as m, complianceView as n, counterpartTokens as o, destinationAvailability as p, formatJurisdiction as q, humanizeComplianceReason as r, type PayOption as s, type RwaVault as t, type SolveResult as u, type BalanceTarget as v, type BalanceEntry as w, type ApiClient as x, type SwapInput as y, type PlannedTx as z };
1185
+ export { type Destination as $, type Availability as A, type BrokenLane as B, type Compliance as C, type Verifier as D, type EngineConfig as E, type FetchQuoteFn as F, type Address as G, type ApiError as H, BLOCK_LABEL_DEFAULT as I, COMPLIANCE_CHECK_ORDER as J, COMPLIANCE_DENY_LABEL as K, type LaneLimit as L, type CatalogueContext as M, type NormalizedOrder as N, type OrderRequest as O, type Plan as P, type Quote as Q, type Route as R, type SanitizedTxEntry as S, type Token as T, type CatalogueInput as U, type VerifyResult as V, type WalletScreen as W, type ComplianceCheckId as X, type ComplianceDecision as Y, DIRECT_CHECK_IDS as Z, DIRECT_SCOPE_NOTE as _, type Catalogue as a, FLOOR_CATEGORIES as a0, type Hex as a1, type LaneAvailabilityState as a2, type PlannedTxKind as a3, type QuoteBlock as a4, type ResolvedConfig as a5, type RouteHealth as a6, type RouteHealthAvailability as a7, type RouteHealthLane as a8, SCREENING_BUCKETS as a9, hubDeliverableSymbols as aA, isExecutableBridge as aB, isKnownUnbridgeable as aC, isSourceToken as aD, laneAvailabilityState as aE, laneKey as aF, laneKeys as aG, laneLimitAmount as aH, laneLimitError as aI, laneLimitFor as aJ, laneLimitHint as aK, laneLimitSymbol as aL, limitedLanes as aM, parseAllowedApiBase as aN, productAssets as aO, registryRpc as aP, resolveApiBase as aQ, resolveConfig as aR, screeningOutcomeOf as aS, sourceKeys as aT, suppressedLanes as aU, tokenKey as aV, txMatchesPlan as aW, unattributedComplianceReasons as aX, type ScreenProvider as aa, type ScreeningBucket as ab, type ScreeningOutcome as ac, TUNABLE_CATEGORIES as ad, type TxPlan as ae, amountFieldError as af, apiError as ag, blockLabelFor as ah, brokenLaneFor as ai, buildCatalogue as aj, canAttachApiKey as ak, categoryLabel as al, classifyQuoteError as am, complianceControlsEvaluated as an, complianceReasonHead as ao, complianceReasonTag as ap, complianceTagOf as aq, createApiClient as ar, createVerifier as as, destinationKeys as at, directComplianceFromScreens as au, distinctScreenedWallets as av, exceedsLaneLimit as aw, executableRoutes as ax, executionChainIds as ay, hasReachableDestination as az, type Chain as b, type ComplianceCheck as c, type ComplianceTone as d, type ComplianceView as e, type ExchangeProduct as f, type RouteLeg as g, type RouteResult as h, type TxHistoryEntry as i, assetClassOf as j, brokenLaneReason as k, complianceChecks as l, complianceControlsLine as m, complianceView as n, counterpartTokens as o, destinationAvailability as p, formatJurisdiction as q, humanizeComplianceReason as r, type ApiClient as s, type SwapInput as t, type PayOption as u, type RwaVault as v, type SolveResult as w, type BalanceTarget as x, type BalanceEntry as y, type PlannedTx as z };