@glacislabs/stablegenie-zerodelta 4.8.0 → 4.9.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.
@@ -15,6 +15,9 @@ interface Compliance {
15
15
  decision?: ComplianceDecision | string;
16
16
  screenedWallets?: string[];
17
17
  sourceJurisdiction?: string;
18
+ /** The visitor's ISO-3166 alpha-2 country, when the proxy in front of the gateway adds it (the
19
+ * gateway returns the policy jurisdiction only). See `formatJurisdiction`. */
20
+ sourceCountry?: string;
18
21
  appliedPolicyIds?: string[];
19
22
  appliedPolicyNames?: string[];
20
23
  appliedLegislation?: string[];
@@ -26,6 +29,11 @@ interface Compliance {
26
29
  checkId?: string;
27
30
  expiresAt?: string;
28
31
  }
32
+ /**
33
+ * Adds a human country name to the broader policy jurisdiction without
34
+ * pretending a regional code such as EU identifies a specific country.
35
+ */
36
+ declare function formatJurisdiction(jurisdiction?: string, country?: string): string;
29
37
  /** One screening source's contribution. The vendor is never named — reason about `tier`. */
30
38
  interface ScreenProvider {
31
39
  providerId?: string;
@@ -1148,4 +1156,4 @@ interface Verifier {
1148
1156
  }
1149
1157
  declare function createVerifier(api: ApiClient, fetchImpl: typeof fetch, rpcOverrides?: Record<number, string>): Verifier;
1150
1158
 
1151
- export { FLOOR_CATEGORIES as $, type Availability as A, type BrokenLane as B, type Compliance as C, type Address as D, type EngineConfig as E, type FetchQuoteFn as F, type ApiError as G, BLOCK_LABEL_DEFAULT as H, COMPLIANCE_CHECK_ORDER as I, COMPLIANCE_DENY_LABEL as J, type CatalogueContext as K, type LaneLimit as L, type CatalogueInput 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 ComplianceCheckId as U, type VerifyResult as V, type WalletScreen as W, type ComplianceDecision as X, DIRECT_CHECK_IDS as Y, DIRECT_SCOPE_NOTE as Z, type Destination as _, type Catalogue as a, type Hex as a0, type LaneAvailabilityState as a1, type PlannedTxKind as a2, type QuoteBlock as a3, type ResolvedConfig as a4, type RouteHealth as a5, type RouteHealthAvailability as a6, type RouteHealthLane as a7, SCREENING_BUCKETS as a8, type ScreenProvider as a9, isExecutableBridge as aA, isKnownUnbridgeable as aB, isSourceToken as aC, laneAvailabilityState as aD, laneKey as aE, laneKeys as aF, laneLimitAmount as aG, laneLimitError as aH, laneLimitFor as aI, laneLimitHint as aJ, laneLimitSymbol as aK, limitedLanes as aL, parseAllowedApiBase as aM, productAssets as aN, registryRpc as aO, resolveApiBase as aP, resolveConfig as aQ, screeningOutcomeOf as aR, sourceKeys as aS, suppressedLanes as aT, tokenKey as aU, txMatchesPlan as aV, unattributedComplianceReasons as aW, type ScreeningBucket as aa, type ScreeningOutcome as ab, TUNABLE_CATEGORIES as ac, type TxPlan as ad, amountFieldError as ae, apiError as af, blockLabelFor as ag, brokenLaneFor as ah, buildCatalogue as ai, canAttachApiKey as aj, categoryLabel as ak, classifyQuoteError as al, complianceControlsEvaluated as am, complianceReasonHead as an, complianceReasonTag as ao, complianceTagOf as ap, createApiClient as aq, createVerifier as ar, destinationKeys as as, directComplianceFromScreens as at, distinctScreenedWallets as au, exceedsLaneLimit as av, executableRoutes as aw, executionChainIds as ax, hasReachableDestination as ay, hubDeliverableSymbols 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, humanizeComplianceReason as q, type PayOption as r, type RwaVault as s, type SolveResult as t, type BalanceTarget as u, type BalanceEntry as v, type ApiClient as w, type SwapInput as x, type PlannedTx as y, type Verifier as z };
1159
+ 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 };
@@ -15,6 +15,9 @@ interface Compliance {
15
15
  decision?: ComplianceDecision | string;
16
16
  screenedWallets?: string[];
17
17
  sourceJurisdiction?: string;
18
+ /** The visitor's ISO-3166 alpha-2 country, when the proxy in front of the gateway adds it (the
19
+ * gateway returns the policy jurisdiction only). See `formatJurisdiction`. */
20
+ sourceCountry?: string;
18
21
  appliedPolicyIds?: string[];
19
22
  appliedPolicyNames?: string[];
20
23
  appliedLegislation?: string[];
@@ -26,6 +29,11 @@ interface Compliance {
26
29
  checkId?: string;
27
30
  expiresAt?: string;
28
31
  }
32
+ /**
33
+ * Adds a human country name to the broader policy jurisdiction without
34
+ * pretending a regional code such as EU identifies a specific country.
35
+ */
36
+ declare function formatJurisdiction(jurisdiction?: string, country?: string): string;
29
37
  /** One screening source's contribution. The vendor is never named — reason about `tier`. */
30
38
  interface ScreenProvider {
31
39
  providerId?: string;
@@ -1148,4 +1156,4 @@ interface Verifier {
1148
1156
  }
1149
1157
  declare function createVerifier(api: ApiClient, fetchImpl: typeof fetch, rpcOverrides?: Record<number, string>): Verifier;
1150
1158
 
1151
- export { FLOOR_CATEGORIES as $, type Availability as A, type BrokenLane as B, type Compliance as C, type Address as D, type EngineConfig as E, type FetchQuoteFn as F, type ApiError as G, BLOCK_LABEL_DEFAULT as H, COMPLIANCE_CHECK_ORDER as I, COMPLIANCE_DENY_LABEL as J, type CatalogueContext as K, type LaneLimit as L, type CatalogueInput 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 ComplianceCheckId as U, type VerifyResult as V, type WalletScreen as W, type ComplianceDecision as X, DIRECT_CHECK_IDS as Y, DIRECT_SCOPE_NOTE as Z, type Destination as _, type Catalogue as a, type Hex as a0, type LaneAvailabilityState as a1, type PlannedTxKind as a2, type QuoteBlock as a3, type ResolvedConfig as a4, type RouteHealth as a5, type RouteHealthAvailability as a6, type RouteHealthLane as a7, SCREENING_BUCKETS as a8, type ScreenProvider as a9, isExecutableBridge as aA, isKnownUnbridgeable as aB, isSourceToken as aC, laneAvailabilityState as aD, laneKey as aE, laneKeys as aF, laneLimitAmount as aG, laneLimitError as aH, laneLimitFor as aI, laneLimitHint as aJ, laneLimitSymbol as aK, limitedLanes as aL, parseAllowedApiBase as aM, productAssets as aN, registryRpc as aO, resolveApiBase as aP, resolveConfig as aQ, screeningOutcomeOf as aR, sourceKeys as aS, suppressedLanes as aT, tokenKey as aU, txMatchesPlan as aV, unattributedComplianceReasons as aW, type ScreeningBucket as aa, type ScreeningOutcome as ab, TUNABLE_CATEGORIES as ac, type TxPlan as ad, amountFieldError as ae, apiError as af, blockLabelFor as ag, brokenLaneFor as ah, buildCatalogue as ai, canAttachApiKey as aj, categoryLabel as ak, classifyQuoteError as al, complianceControlsEvaluated as am, complianceReasonHead as an, complianceReasonTag as ao, complianceTagOf as ap, createApiClient as aq, createVerifier as ar, destinationKeys as as, directComplianceFromScreens as at, distinctScreenedWallets as au, exceedsLaneLimit as av, executableRoutes as aw, executionChainIds as ax, hasReachableDestination as ay, hubDeliverableSymbols 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, humanizeComplianceReason as q, type PayOption as r, type RwaVault as s, type SolveResult as t, type BalanceTarget as u, type BalanceEntry as v, type ApiClient as w, type SwapInput as x, type PlannedTx as y, type Verifier as z };
1159
+ 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glacislabs/stablegenie-zerodelta",
3
- "version": "4.8.0",
3
+ "version": "4.9.0",
4
4
  "description": "Lightweight embeddable ZeroDelta payment + swap widget (exact-receive Pay and exact-in Swap). Wallet always owns the final signature.",
5
5
  "type": "module",
6
6
  "license": "MIT",