@bwalletx/connect 0.5.0 → 0.5.3

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.cts CHANGED
@@ -2,8 +2,8 @@ import { WalletInterface, WalletProtocol } from '@bsv/sdk';
2
2
  import { f as PairingOptions, W as WalletOption } from './wallets-VOKIKBbO.cjs';
3
3
  export { g as BRC29_PROTOCOL, i as Brc29Remittance, B as BuyTokenRequest, C as ConnectedWallet, D as DiscoverWalletsOptions, H as HandCashAdapterOptions, L as LegacyPayer, j as PairConnectionOptions, k as PairStorage, l as PairedWallet, b as PayOptions, m as PayOutput, P as PayRequest, a as PayResult, n as PaySource, c as PaymentError, o as PaymentErrorCode, S as SocketFactory, q as SocketLike, T as TokenQuote, r as WalletKind, s as amountInSats, d as brc100Option, t as buyToken, u as clearPairing, e as discoverWallets, h as handcashAdapter, v as isIdentityKeyHex, w as isPaymail, x as pairBwalletX, p as pairingOption, y as pay, z as resolvePaymailP2P, A as restorePairing, E as tip } from './wallets-VOKIKBbO.cjs';
4
4
  export { AuthorizeParams, GET_URL, SIGNIN_CSS, SIGNIN_TAG, SigninBrand, SigninLabel, SigninSize, SigninTheme, WEB_WALLET_URL, buildAuthorizeUrl, defineBwalletxSignin, markSvg, signinText } from './element.cjs';
5
- import { b as AccessResponse, H as HoldingProof, A as AccessError } from './access-Z6xQwKVF.cjs';
6
- export { c as ACCESS_ERROR_STATUS, d as ACCESS_PROTOCOL, e as ACCESS_VERSION, f as AccessChallenge, g as AccessErrorBody, h as AccessErrorCode, i as AccessKind, a as AccessRequirement, P as PROTOCOL_MEDIA, T as TokenRequirement, j as accessErrorMessage, k as canonicalJson, p as protocolMediaUrl } from './access-Z6xQwKVF.cjs';
5
+ import { b as AccessResponse, H as HoldingProof, A as AccessError } from './access-Dp0eKIOc.cjs';
6
+ export { f as ACCESS_ERROR_STATUS, d as ACCESS_PROTOCOL, g as ACCESS_VERSION, h as AccessChallenge, i as AccessErrorBody, j as AccessErrorCode, c as AccessKind, a as AccessRequirement, P as PROTOCOL_MEDIA, T as TokenRequirement, k as accessErrorMessage, m as canonicalJson, r as protocolMediaUrl } from './access-Dp0eKIOc.cjs';
7
7
 
8
8
  /** Ids bWalletX announces in BRC-100 wallet discovery. */
9
9
  declare const RDNS_EXTENSION = "com.bwalletx.extension";
@@ -69,6 +69,8 @@ declare function connectBwalletX(opts?: Pick<SignInOptions, 'wallet' | 'pairing'
69
69
  * identityKey, nonce and signature to your verify route.
70
70
  */
71
71
  declare function signInWithBwalletX(opts: SignInOptions): Promise<SignInResult>;
72
+ /** Where a sign-in failed: the wallet's identity prompt, the site's challenge endpoint, or the wallet's signature. */
73
+ type SignInStage = 'identity' | 'challenge' | 'signature' | 'verify';
72
74
 
73
75
  declare const LOGO_URL = "https://bwalletx.com/logo.svg";
74
76
  interface ButtonOptions {
@@ -91,8 +93,23 @@ declare function inOrder<T>(handle: (frame: T) => Promise<void> | void, onError?
91
93
 
92
94
  /** An SVG QR code for `text` (error correction M). */
93
95
  declare function qrSvg(text: string): string;
96
+ /**
97
+ * True on a phone or tablet: a coarse pointer with no hover, or a mobile user agent (iPadOS reports
98
+ * a Mac UA, so touch points count too). Scanning a QR shown on the same screen is impossible there.
99
+ */
100
+ declare function isTouchDevice(env?: {
101
+ navigator?: Navigator;
102
+ matchMedia?: (q: string) => MediaQueryList;
103
+ }): boolean;
94
104
  interface PairingModalOptions {
95
105
  title?: string;
106
+ /**
107
+ * 'qr' shows the pairing QR (desktop). 'app' hands off to the bWalletX app on this device: the
108
+ * pairing link is a universal link / Android app link that opens the app, and the bwallet.space
109
+ * page behind it explains what to do when the app is not installed. Default 'auto': 'app' on touch
110
+ * devices, 'qr' elsewhere.
111
+ */
112
+ mode?: 'auto' | 'qr' | 'app';
96
113
  /** Called when the user closes the modal (the pairing is then aborted). */
97
114
  onCancel?: () => void;
98
115
  }
@@ -150,4 +167,14 @@ declare function proveHoldings(wallet: WalletInterface, challenge: string, token
150
167
  */
151
168
  declare function requestAccess(o: RequestAccessOptions): Promise<RequestAccessResult>;
152
169
 
153
- export { type AccessChallengeLike, AccessError, AccessResponse, BWALLETX_RDNS, type ButtonOptions, type Challenge, type FoundBy, type FoundWallet, HoldingProof, LOGIN_PROTOCOL, LOGO_URL, type PairingModalOptions, PairingOptions, RDNS_EXTENSION, RDNS_MOBILE, type RequestAccessOptions, type RequestAccessResult, type SignInMethod, type SignInOptions, type SignInResult, WalletOption, connectBwalletX, discoverBwalletX, findBwalletX, inOrder, pairingModal, pickWallet, proveHoldings, qrSvg, renderButton, requestAccess, signInWithBwalletX, throwIfAccessError, toAccessError };
170
+ /**
171
+ * Site theme for the wallet. A site may ask bWalletX to wear one of the themes the wallet already bundles
172
+ * (e.g. 'npgx') while the site is connected and is the active tab; the wallet puts the user's own theme back on
173
+ * any other site or when this declaration is removed. Only an id is declared: the wallet decides whether this
174
+ * origin may wear it (brand editions are locked to their own sites) and never loads colours, CSS or URLs from here.
175
+ */
176
+ declare const WALLET_THEME_META = "bwalletx-theme";
177
+ /** Declare (or with null, withdraw) the theme the wallet should wear for this page. No-op outside a browser. */
178
+ declare function declareWalletTheme(theme: string | null | undefined): void;
179
+
180
+ export { type AccessChallengeLike, AccessError, AccessResponse, BWALLETX_RDNS, type ButtonOptions, type Challenge, type FoundBy, type FoundWallet, HoldingProof, LOGIN_PROTOCOL, LOGO_URL, type PairingModalOptions, PairingOptions, RDNS_EXTENSION, RDNS_MOBILE, type RequestAccessOptions, type RequestAccessResult, type SignInMethod, type SignInOptions, type SignInResult, type SignInStage, WALLET_THEME_META, WalletOption, connectBwalletX, declareWalletTheme, discoverBwalletX, findBwalletX, inOrder, isTouchDevice, pairingModal, pickWallet, proveHoldings, qrSvg, renderButton, requestAccess, signInWithBwalletX, throwIfAccessError, toAccessError };
package/dist/index.d.ts CHANGED
@@ -2,8 +2,8 @@ import { WalletInterface, WalletProtocol } from '@bsv/sdk';
2
2
  import { f as PairingOptions, W as WalletOption } from './wallets-VOKIKBbO.js';
3
3
  export { g as BRC29_PROTOCOL, i as Brc29Remittance, B as BuyTokenRequest, C as ConnectedWallet, D as DiscoverWalletsOptions, H as HandCashAdapterOptions, L as LegacyPayer, j as PairConnectionOptions, k as PairStorage, l as PairedWallet, b as PayOptions, m as PayOutput, P as PayRequest, a as PayResult, n as PaySource, c as PaymentError, o as PaymentErrorCode, S as SocketFactory, q as SocketLike, T as TokenQuote, r as WalletKind, s as amountInSats, d as brc100Option, t as buyToken, u as clearPairing, e as discoverWallets, h as handcashAdapter, v as isIdentityKeyHex, w as isPaymail, x as pairBwalletX, p as pairingOption, y as pay, z as resolvePaymailP2P, A as restorePairing, E as tip } from './wallets-VOKIKBbO.js';
4
4
  export { AuthorizeParams, GET_URL, SIGNIN_CSS, SIGNIN_TAG, SigninBrand, SigninLabel, SigninSize, SigninTheme, WEB_WALLET_URL, buildAuthorizeUrl, defineBwalletxSignin, markSvg, signinText } from './element.js';
5
- import { b as AccessResponse, H as HoldingProof, A as AccessError } from './access-Z6xQwKVF.js';
6
- export { c as ACCESS_ERROR_STATUS, d as ACCESS_PROTOCOL, e as ACCESS_VERSION, f as AccessChallenge, g as AccessErrorBody, h as AccessErrorCode, i as AccessKind, a as AccessRequirement, P as PROTOCOL_MEDIA, T as TokenRequirement, j as accessErrorMessage, k as canonicalJson, p as protocolMediaUrl } from './access-Z6xQwKVF.js';
5
+ import { b as AccessResponse, H as HoldingProof, A as AccessError } from './access-Dp0eKIOc.js';
6
+ export { f as ACCESS_ERROR_STATUS, d as ACCESS_PROTOCOL, g as ACCESS_VERSION, h as AccessChallenge, i as AccessErrorBody, j as AccessErrorCode, c as AccessKind, a as AccessRequirement, P as PROTOCOL_MEDIA, T as TokenRequirement, k as accessErrorMessage, m as canonicalJson, r as protocolMediaUrl } from './access-Dp0eKIOc.js';
7
7
 
8
8
  /** Ids bWalletX announces in BRC-100 wallet discovery. */
9
9
  declare const RDNS_EXTENSION = "com.bwalletx.extension";
@@ -69,6 +69,8 @@ declare function connectBwalletX(opts?: Pick<SignInOptions, 'wallet' | 'pairing'
69
69
  * identityKey, nonce and signature to your verify route.
70
70
  */
71
71
  declare function signInWithBwalletX(opts: SignInOptions): Promise<SignInResult>;
72
+ /** Where a sign-in failed: the wallet's identity prompt, the site's challenge endpoint, or the wallet's signature. */
73
+ type SignInStage = 'identity' | 'challenge' | 'signature' | 'verify';
72
74
 
73
75
  declare const LOGO_URL = "https://bwalletx.com/logo.svg";
74
76
  interface ButtonOptions {
@@ -91,8 +93,23 @@ declare function inOrder<T>(handle: (frame: T) => Promise<void> | void, onError?
91
93
 
92
94
  /** An SVG QR code for `text` (error correction M). */
93
95
  declare function qrSvg(text: string): string;
96
+ /**
97
+ * True on a phone or tablet: a coarse pointer with no hover, or a mobile user agent (iPadOS reports
98
+ * a Mac UA, so touch points count too). Scanning a QR shown on the same screen is impossible there.
99
+ */
100
+ declare function isTouchDevice(env?: {
101
+ navigator?: Navigator;
102
+ matchMedia?: (q: string) => MediaQueryList;
103
+ }): boolean;
94
104
  interface PairingModalOptions {
95
105
  title?: string;
106
+ /**
107
+ * 'qr' shows the pairing QR (desktop). 'app' hands off to the bWalletX app on this device: the
108
+ * pairing link is a universal link / Android app link that opens the app, and the bwallet.space
109
+ * page behind it explains what to do when the app is not installed. Default 'auto': 'app' on touch
110
+ * devices, 'qr' elsewhere.
111
+ */
112
+ mode?: 'auto' | 'qr' | 'app';
96
113
  /** Called when the user closes the modal (the pairing is then aborted). */
97
114
  onCancel?: () => void;
98
115
  }
@@ -150,4 +167,14 @@ declare function proveHoldings(wallet: WalletInterface, challenge: string, token
150
167
  */
151
168
  declare function requestAccess(o: RequestAccessOptions): Promise<RequestAccessResult>;
152
169
 
153
- export { type AccessChallengeLike, AccessError, AccessResponse, BWALLETX_RDNS, type ButtonOptions, type Challenge, type FoundBy, type FoundWallet, HoldingProof, LOGIN_PROTOCOL, LOGO_URL, type PairingModalOptions, PairingOptions, RDNS_EXTENSION, RDNS_MOBILE, type RequestAccessOptions, type RequestAccessResult, type SignInMethod, type SignInOptions, type SignInResult, WalletOption, connectBwalletX, discoverBwalletX, findBwalletX, inOrder, pairingModal, pickWallet, proveHoldings, qrSvg, renderButton, requestAccess, signInWithBwalletX, throwIfAccessError, toAccessError };
170
+ /**
171
+ * Site theme for the wallet. A site may ask bWalletX to wear one of the themes the wallet already bundles
172
+ * (e.g. 'npgx') while the site is connected and is the active tab; the wallet puts the user's own theme back on
173
+ * any other site or when this declaration is removed. Only an id is declared: the wallet decides whether this
174
+ * origin may wear it (brand editions are locked to their own sites) and never loads colours, CSS or URLs from here.
175
+ */
176
+ declare const WALLET_THEME_META = "bwalletx-theme";
177
+ /** Declare (or with null, withdraw) the theme the wallet should wear for this page. No-op outside a browser. */
178
+ declare function declareWalletTheme(theme: string | null | undefined): void;
179
+
180
+ export { type AccessChallengeLike, AccessError, AccessResponse, BWALLETX_RDNS, type ButtonOptions, type Challenge, type FoundBy, type FoundWallet, HoldingProof, LOGIN_PROTOCOL, LOGO_URL, type PairingModalOptions, PairingOptions, RDNS_EXTENSION, RDNS_MOBILE, type RequestAccessOptions, type RequestAccessResult, type SignInMethod, type SignInOptions, type SignInResult, type SignInStage, WALLET_THEME_META, WalletOption, connectBwalletX, declareWalletTheme, discoverBwalletX, findBwalletX, inOrder, isTouchDevice, pairingModal, pickWallet, proveHoldings, qrSvg, renderButton, requestAccess, signInWithBwalletX, throwIfAccessError, toAccessError };
package/dist/index.js CHANGED
@@ -1,13 +1,16 @@
1
1
  import {
2
2
  BRC29_PROTOCOL,
3
3
  PaymentError,
4
+ WALLET_THEME_META,
4
5
  amountInSats,
5
6
  brc100Option,
6
7
  buyToken,
8
+ declareWalletTheme,
7
9
  discoverWallets,
8
10
  handcashAdapter,
9
11
  isIdentityKeyHex,
10
12
  isPaymail,
13
+ isTouchDevice,
11
14
  pairingModal,
12
15
  pairingOption,
13
16
  pay,
@@ -15,7 +18,7 @@ import {
15
18
  qrSvg,
16
19
  resolvePaymailP2P,
17
20
  tip
18
- } from "./chunk-GF6GUDZL.js";
21
+ } from "./chunk-PI42H3XY.js";
19
22
  import {
20
23
  BWALLETX_RDNS,
21
24
  GET_URL,
@@ -41,7 +44,7 @@ import {
41
44
  signinText,
42
45
  throwIfAccessError,
43
46
  toAccessError
44
- } from "./chunk-CVLXFNAG.js";
47
+ } from "./chunk-IUDD7YTQ.js";
45
48
  import {
46
49
  ACCESS_ERROR_STATUS,
47
50
  ACCESS_PROTOCOL,
@@ -112,6 +115,7 @@ export {
112
115
  RDNS_MOBILE,
113
116
  SIGNIN_CSS,
114
117
  SIGNIN_TAG,
118
+ WALLET_THEME_META,
115
119
  WEB_WALLET_URL,
116
120
  accessErrorMessage,
117
121
  amountInSats,
@@ -121,6 +125,7 @@ export {
121
125
  canonicalJson,
122
126
  clearPairing,
123
127
  connectBwalletX,
128
+ declareWalletTheme,
124
129
  defineBwalletxSignin,
125
130
  discoverBwalletX,
126
131
  discoverWallets,
@@ -129,6 +134,7 @@ export {
129
134
  inOrder,
130
135
  isIdentityKeyHex,
131
136
  isPaymail,
137
+ isTouchDevice,
132
138
  markSvg,
133
139
  pairBwalletX,
134
140
  pairingModal,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/button.ts"],"sourcesContent":["const CSS = `\n.bwx-signin{display:inline-flex;align-items:center;gap:12px;min-height:48px;padding:10px 22px 10px 10px;border:0;border-radius:12px;cursor:pointer;background:linear-gradient(180deg,#fcd34d,#f59e0b);color:#000;text-align:left;font:700 16px/1.2 system-ui,-apple-system,\"Segoe UI\",sans-serif;box-shadow:0 8px 24px rgba(245,158,11,.2)}\n.bwx-signin:hover{background:linear-gradient(180deg,#fde68a,#fbbf24)}\n.bwx-signin:focus-visible{outline:2px solid #ffd24d;outline-offset:3px}\n.bwx-signin:disabled{opacity:.6;cursor:wait}\n.bwx-signin .bwx-mark{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#000;flex:none}\n.bwx-signin small{display:block;font-size:11px;font-weight:500;color:rgba(0,0,0,.6)}`;\n\nexport const LOGO_URL = 'https://bwalletx.com/logo.svg';\n\nexport interface ButtonOptions {\n /** Second line under the label. Default \"also works with bWallet\". false hides it. */\n subtitle?: string | false;\n onClick?: (button: HTMLButtonElement) => void;\n}\n\n/** Put the gold \"Sign in with bWalletX\" button into `el` (replacing its contents). */\nexport function renderButton(el: HTMLElement | string, opts: ButtonOptions = {}): HTMLButtonElement {\n const host = typeof el === 'string' ? document.querySelector<HTMLElement>(el) : el;\n if (!host) throw new Error(`renderButton: no element ${String(el)}`);\n if (!document.getElementById('bwx-signin-css')) {\n const style = document.createElement('style');\n style.id = 'bwx-signin-css';\n style.textContent = CSS;\n document.head.appendChild(style);\n }\n const b = document.createElement('button');\n b.type = 'button';\n b.className = 'bwx-signin';\n const mark = document.createElement('span');\n mark.className = 'bwx-mark';\n const img = document.createElement('img');\n img.src = LOGO_URL;\n img.alt = '';\n img.width = 15;\n img.height = 20;\n mark.appendChild(img);\n const label = document.createElement('span');\n label.className = 'bwx-label';\n label.textContent = 'Sign in with bWalletX';\n const sub = opts.subtitle === undefined ? 'also works with bWallet' : opts.subtitle;\n if (sub) {\n const small = document.createElement('small');\n small.textContent = sub;\n label.appendChild(small);\n }\n b.append(mark, label);\n if (opts.onClick) b.addEventListener('click', () => opts.onClick!(b));\n host.replaceChildren(b);\n return b;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQL,IAAM,WAAW;AASjB,SAAS,aAAa,IAA0B,OAAsB,CAAC,GAAsB;AAClG,QAAM,OAAO,OAAO,OAAO,WAAW,SAAS,cAA2B,EAAE,IAAI;AAChF,MAAI,CAAC,KAAM,OAAM,IAAI,MAAM,4BAA4B,OAAO,EAAE,CAAC,EAAE;AACnE,MAAI,CAAC,SAAS,eAAe,gBAAgB,GAAG;AAC9C,UAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,UAAM,KAAK;AACX,UAAM,cAAc;AACpB,aAAS,KAAK,YAAY,KAAK;AAAA,EACjC;AACA,QAAM,IAAI,SAAS,cAAc,QAAQ;AACzC,IAAE,OAAO;AACT,IAAE,YAAY;AACd,QAAM,OAAO,SAAS,cAAc,MAAM;AAC1C,OAAK,YAAY;AACjB,QAAM,MAAM,SAAS,cAAc,KAAK;AACxC,MAAI,MAAM;AACV,MAAI,MAAM;AACV,MAAI,QAAQ;AACZ,MAAI,SAAS;AACb,OAAK,YAAY,GAAG;AACpB,QAAM,QAAQ,SAAS,cAAc,MAAM;AAC3C,QAAM,YAAY;AAClB,QAAM,cAAc;AACpB,QAAM,MAAM,KAAK,aAAa,SAAY,4BAA4B,KAAK;AAC3E,MAAI,KAAK;AACP,UAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,UAAM,cAAc;AACpB,UAAM,YAAY,KAAK;AAAA,EACzB;AACA,IAAE,OAAO,MAAM,KAAK;AACpB,MAAI,KAAK,QAAS,GAAE,iBAAiB,SAAS,MAAM,KAAK,QAAS,CAAC,CAAC;AACpE,OAAK,gBAAgB,CAAC;AACtB,SAAO;AACT;","names":[]}
1
+ {"version":3,"sources":["../src/button.ts"],"sourcesContent":["const CSS = `\n.bwx-signin{display:inline-flex;align-items:center;gap:12px;min-height:48px;padding:10px 22px 10px 10px;border:0;border-radius:12px;cursor:pointer;background:linear-gradient(180deg,#fcd34d,#f59e0b);color:#000;text-align:left;font:700 16px/1.2 system-ui,-apple-system,\"Segoe UI\",sans-serif;box-shadow:0 8px 24px rgba(245,158,11,.2)}\n.bwx-signin:hover{background:linear-gradient(180deg,#fde68a,#fbbf24)}\n.bwx-signin:focus-visible{outline:2px solid #ffd24d;outline-offset:3px}\n.bwx-signin:disabled{opacity:.6;cursor:wait}\n.bwx-signin .bwx-mark{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#000;flex:none}\n.bwx-signin small{display:block;font-size:11px;font-weight:500;color:rgba(0,0,0,.6)}`;\n\nexport const LOGO_URL = 'https://bwalletx.com/logo.svg';\n\nexport interface ButtonOptions {\n /** Second line under the label. Default \"also works with bWallet\". false hides it. */\n subtitle?: string | false;\n onClick?: (button: HTMLButtonElement) => void;\n}\n\n/** Put the gold \"Sign in with bWalletX\" button into `el` (replacing its contents). */\nexport function renderButton(el: HTMLElement | string, opts: ButtonOptions = {}): HTMLButtonElement {\n const host = typeof el === 'string' ? document.querySelector<HTMLElement>(el) : el;\n if (!host) throw new Error(`renderButton: no element ${String(el)}`);\n if (!document.getElementById('bwx-signin-css')) {\n const style = document.createElement('style');\n style.id = 'bwx-signin-css';\n style.textContent = CSS;\n document.head.appendChild(style);\n }\n const b = document.createElement('button');\n b.type = 'button';\n b.className = 'bwx-signin';\n const mark = document.createElement('span');\n mark.className = 'bwx-mark';\n const img = document.createElement('img');\n img.src = LOGO_URL;\n img.alt = '';\n img.width = 15;\n img.height = 20;\n mark.appendChild(img);\n const label = document.createElement('span');\n label.className = 'bwx-label';\n label.textContent = 'Sign in with bWalletX';\n const sub = opts.subtitle === undefined ? 'also works with bWallet' : opts.subtitle;\n if (sub) {\n const small = document.createElement('small');\n small.textContent = sub;\n label.appendChild(small);\n }\n b.append(mark, label);\n if (opts.onClick) b.addEventListener('click', () => opts.onClick!(b));\n host.replaceChildren(b);\n return b;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQL,IAAM,WAAW;AASjB,SAAS,aAAa,IAA0B,OAAsB,CAAC,GAAsB;AAClG,QAAM,OAAO,OAAO,OAAO,WAAW,SAAS,cAA2B,EAAE,IAAI;AAChF,MAAI,CAAC,KAAM,OAAM,IAAI,MAAM,4BAA4B,OAAO,EAAE,CAAC,EAAE;AACnE,MAAI,CAAC,SAAS,eAAe,gBAAgB,GAAG;AAC9C,UAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,UAAM,KAAK;AACX,UAAM,cAAc;AACpB,aAAS,KAAK,YAAY,KAAK;AAAA,EACjC;AACA,QAAM,IAAI,SAAS,cAAc,QAAQ;AACzC,IAAE,OAAO;AACT,IAAE,YAAY;AACd,QAAM,OAAO,SAAS,cAAc,MAAM;AAC1C,OAAK,YAAY;AACjB,QAAM,MAAM,SAAS,cAAc,KAAK;AACxC,MAAI,MAAM;AACV,MAAI,MAAM;AACV,MAAI,QAAQ;AACZ,MAAI,SAAS;AACb,OAAK,YAAY,GAAG;AACpB,QAAM,QAAQ,SAAS,cAAc,MAAM;AAC3C,QAAM,YAAY;AAClB,QAAM,cAAc;AACpB,QAAM,MAAM,KAAK,aAAa,SAAY,4BAA4B,KAAK;AAC3E,MAAI,KAAK;AACP,UAAM,QAAQ,SAAS,cAAc,OAAO;AAC5C,UAAM,cAAc;AACpB,UAAM,YAAY,KAAK;AAAA,EACzB;AACA,IAAE,OAAO,MAAM,KAAK;AACpB,MAAI,KAAK,QAAS,GAAE,iBAAiB,SAAS,MAAM,KAAK,QAAS,CAAC,CAAC;AACpE,OAAK,gBAAgB,CAAC;AACtB,SAAO;AACT;","names":[]}
package/dist/next.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { NonceStore, AccessResolver, SessionPayload } from './server.cjs';
2
2
  export { IdentityLinkConflictError, linkIdentity, memoryStore, pgNonceTableSql, pgStore, redisStore, signInOrLink } from './server.cjs';
3
- import { A as AccessError, a as AccessRequirement } from './access-Z6xQwKVF.cjs';
3
+ import { A as AccessError, a as AccessRequirement } from './access-Dp0eKIOc.cjs';
4
4
  import '@bsv/sdk';
5
5
 
6
6
  interface VerifiedExtra {
package/dist/next.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { NonceStore, AccessResolver, SessionPayload } from './server.js';
2
2
  export { IdentityLinkConflictError, linkIdentity, memoryStore, pgNonceTableSql, pgStore, redisStore, signInOrLink } from './server.js';
3
- import { A as AccessError, a as AccessRequirement } from './access-Z6xQwKVF.js';
3
+ import { A as AccessError, a as AccessRequirement } from './access-Dp0eKIOc.js';
4
4
  import '@bsv/sdk';
5
5
 
6
6
  interface VerifiedExtra {