@bounded-sh/client 0.0.51 → 0.0.52
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/builds/apps.d.ts +2 -0
- package/dist/builds/client.d.ts +23 -1
- package/dist/builds/index.d.ts +7 -4
- package/dist/builds/types.d.ts +66 -0
- package/dist/{email-auth-provider-Bm6vmoy3.js → email-auth-provider-6seVxrWq.js} +2 -2
- package/dist/{email-auth-provider-Bm6vmoy3.js.map → email-auth-provider-6seVxrWq.js.map} +1 -1
- package/dist/{email-auth-provider-CnHsY8U-.js → email-auth-provider-BCI1_WLA.js} +2 -2
- package/dist/{email-auth-provider-CnHsY8U-.js.map → email-auth-provider-BCI1_WLA.js.map} +1 -1
- package/dist/{email-auth-provider-Bh2fDYcb.mjs → email-auth-provider-D22p_2xV.mjs} +2 -2
- package/dist/{email-auth-provider-CdbhqElf.mjs.map → email-auth-provider-D22p_2xV.mjs.map} +1 -1
- package/dist/{email-auth-provider-CdbhqElf.mjs → email-auth-provider-uZbdT_Bx.mjs} +2 -2
- package/dist/{email-auth-provider-Bh2fDYcb.mjs.map → email-auth-provider-uZbdT_Bx.mjs.map} +1 -1
- package/dist/{guest-auth-provider-Xir8zyfZ.mjs → guest-auth-provider-B_9cVFL1.mjs} +2 -2
- package/dist/{guest-auth-provider-Xir8zyfZ.mjs.map → guest-auth-provider-B_9cVFL1.mjs.map} +1 -1
- package/dist/{guest-auth-provider-CHqB_uN0.js → guest-auth-provider-BrSO-CUp.js} +2 -2
- package/dist/{guest-auth-provider-CHqB_uN0.js.map → guest-auth-provider-BrSO-CUp.js.map} +1 -1
- package/dist/{guest-auth-provider-fjOMwfpW.js → guest-auth-provider-DY-u2wpK.js} +2 -2
- package/dist/{guest-auth-provider-fjOMwfpW.js.map → guest-auth-provider-DY-u2wpK.js.map} +1 -1
- package/dist/{guest-auth-provider-Dgmr7e0Z.mjs → guest-auth-provider-ShmskrcH.mjs} +2 -2
- package/dist/{guest-auth-provider-Dgmr7e0Z.mjs.map → guest-auth-provider-ShmskrcH.mjs.map} +1 -1
- package/dist/{index-Cy0IRs6U.mjs → index-BvUrIsky.mjs} +41 -10
- package/dist/index-BvUrIsky.mjs.map +1 -0
- package/dist/{index-BsrZb496.js → index-D4jNluH9.js} +43 -9
- package/dist/index-D4jNluH9.js.map +1 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{index.native-BaEZwiWd.js → index.native-2Mmuh7RB.js} +43 -9
- package/dist/{index.native-BaEZwiWd.js.map → index.native-2Mmuh7RB.js.map} +1 -1
- package/dist/{index.native-B29WKXlr.mjs → index.native-gU1kSEmQ.mjs} +41 -10
- package/dist/index.native-gU1kSEmQ.mjs.map +1 -0
- package/dist/index.native.js +4 -1
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +1 -1
- package/dist/{injected-evm-wallet-provider-CEWIg-_U.js → injected-evm-wallet-provider-BEGvuTUU.js} +2 -2
- package/dist/{injected-evm-wallet-provider-CEWIg-_U.js.map → injected-evm-wallet-provider-BEGvuTUU.js.map} +1 -1
- package/dist/{injected-evm-wallet-provider-DWnpa6Yx.mjs → injected-evm-wallet-provider-CNnMBwAY.mjs} +2 -2
- package/dist/{injected-evm-wallet-provider-DWnpa6Yx.mjs.map → injected-evm-wallet-provider-CNnMBwAY.mjs.map} +1 -1
- package/dist/{injected-evm-wallet-provider-DkyIMRce.mjs → injected-evm-wallet-provider-COM5BPuY.mjs} +2 -2
- package/dist/{injected-evm-wallet-provider-DkyIMRce.mjs.map → injected-evm-wallet-provider-COM5BPuY.mjs.map} +1 -1
- package/dist/{injected-evm-wallet-provider-DUyX7Xj9.js → injected-evm-wallet-provider-DoB2BLir.js} +2 -2
- package/dist/{injected-evm-wallet-provider-DUyX7Xj9.js.map → injected-evm-wallet-provider-DoB2BLir.js.map} +1 -1
- package/dist/{injected-wallet-provider-DqBpuASt.mjs → injected-wallet-provider-CGoMdKhp.mjs} +2 -2
- package/dist/{injected-wallet-provider-DqBpuASt.mjs.map → injected-wallet-provider-CGoMdKhp.mjs.map} +1 -1
- package/dist/{injected-wallet-provider-DsesEVnZ.mjs → injected-wallet-provider-CLeRnTLu.mjs} +2 -2
- package/dist/{injected-wallet-provider-DsesEVnZ.mjs.map → injected-wallet-provider-CLeRnTLu.mjs.map} +1 -1
- package/dist/{injected-wallet-provider-DpJvuK73.js → injected-wallet-provider-CyCGjf2G.js} +2 -2
- package/dist/{injected-wallet-provider-DpJvuK73.js.map → injected-wallet-provider-CyCGjf2G.js.map} +1 -1
- package/dist/{injected-wallet-provider-C65NiItg.js → injected-wallet-provider-g0md2vEj.js} +2 -2
- package/dist/{injected-wallet-provider-C65NiItg.js.map → injected-wallet-provider-g0md2vEj.js.map} +1 -1
- package/package.json +2 -2
- package/dist/index-BsrZb496.js.map +0 -1
- package/dist/index-Cy0IRs6U.mjs.map +0 -1
- package/dist/index.native-B29WKXlr.mjs.map +0 -1
|
@@ -4445,7 +4445,7 @@ async function getAuthProvider(config) {
|
|
|
4445
4445
|
// manager as legacy email sessions. Human login should be started
|
|
4446
4446
|
// with loginWithRedirect(); this provider is kept as the restore and
|
|
4447
4447
|
// logout surface for those sessions.
|
|
4448
|
-
currentAuthProvider = new (await import('./email-auth-provider-
|
|
4448
|
+
currentAuthProvider = new (await import('./email-auth-provider-D22p_2xV.mjs')).EmailAuthProvider();
|
|
4449
4449
|
break;
|
|
4450
4450
|
case "wallet":
|
|
4451
4451
|
case "phantom": {
|
|
@@ -4464,7 +4464,7 @@ async function getAuthProvider(config) {
|
|
|
4464
4464
|
if (!isWalletLoginEnabled(config)) {
|
|
4465
4465
|
throw walletLoginNotEnabledError(authMethod);
|
|
4466
4466
|
}
|
|
4467
|
-
const { InjectedWalletProvider } = await import('./injected-wallet-provider-
|
|
4467
|
+
const { InjectedWalletProvider } = await import('./injected-wallet-provider-CLeRnTLu.mjs');
|
|
4468
4468
|
currentAuthProvider = new InjectedWalletProvider(resolveInjectedWalletConfig(config), rpcUrl, configuredNetwork);
|
|
4469
4469
|
break;
|
|
4470
4470
|
}
|
|
@@ -4477,7 +4477,7 @@ async function getAuthProvider(config) {
|
|
|
4477
4477
|
// Selecting authMethod:'evm-wallet' IS the opt-in — pass evmWalletConfig
|
|
4478
4478
|
// to point at a specific wallet or set chainId/domain.
|
|
4479
4479
|
const evmWalletConfig = ((_a = config.evmWalletConfig) !== null && _a !== void 0 ? _a : {});
|
|
4480
|
-
const { InjectedEvmWalletProvider } = await import('./injected-evm-wallet-provider-
|
|
4480
|
+
const { InjectedEvmWalletProvider } = await import('./injected-evm-wallet-provider-CNnMBwAY.mjs');
|
|
4481
4481
|
currentAuthProvider = new InjectedEvmWalletProvider(evmWalletConfig);
|
|
4482
4482
|
break;
|
|
4483
4483
|
}
|
|
@@ -4505,7 +4505,7 @@ async function getAuthProvider(config) {
|
|
|
4505
4505
|
break;
|
|
4506
4506
|
case "guest":
|
|
4507
4507
|
// Anonymous auth: a device-local ed25519 keypair signs the challenge.
|
|
4508
|
-
currentAuthProvider = new (await import('./guest-auth-provider-
|
|
4508
|
+
currentAuthProvider = new (await import('./guest-auth-provider-B_9cVFL1.mjs')).GuestAuthProvider();
|
|
4509
4509
|
break;
|
|
4510
4510
|
}
|
|
4511
4511
|
if (!currentAuthProvider) {
|
|
@@ -4561,7 +4561,7 @@ async function signInAnonymously() {
|
|
|
4561
4561
|
// Lazy-load the guest provider so its ed25519/web3 dependencies stay out of
|
|
4562
4562
|
// the main bundle for data-only apps. Specifier is a static string literal
|
|
4563
4563
|
// so bundle-splitting can see it.
|
|
4564
|
-
const provider = new (await import('./guest-auth-provider-
|
|
4564
|
+
const provider = new (await import('./guest-auth-provider-B_9cVFL1.mjs')).GuestAuthProvider();
|
|
4565
4565
|
setAuthLoading(true); // reflect "signing in…" while the guest keypair session is minted
|
|
4566
4566
|
const commit = (user) => {
|
|
4567
4567
|
// No await/interleaving inside this block: provider/method/config/marker
|
|
@@ -5278,6 +5278,31 @@ async function decideGate(appId, runId, gateId, options) {
|
|
|
5278
5278
|
const { intentKey: _intentKey, idempotencyKey: _suppliedKey } = options, decision = __rest(options, ["intentKey", "idempotencyKey"]);
|
|
5279
5279
|
return requestDevApi(`${appPath(appId)}/${encodeURIComponent(runId)}/gates/${encodeURIComponent(gateId)}/decision`, { method: 'POST', body: Object.assign(Object.assign({}, decision), { idempotencyKey }) });
|
|
5280
5280
|
}
|
|
5281
|
+
async function refreshReviewCapability(appId, runId, gateId, options) {
|
|
5282
|
+
const idempotencyKey = actionIdempotencyKey(options, 'refreshReviewCapability()');
|
|
5283
|
+
return requestDevApi(`${appPath(appId)}/${encodeURIComponent(runId)}/gates/${encodeURIComponent(gateId)}/review-capability/refresh`, {
|
|
5284
|
+
method: 'POST',
|
|
5285
|
+
body: {
|
|
5286
|
+
expectedGeneration: options.expectedGeneration,
|
|
5287
|
+
expectedExpiresAtMs: options.expectedExpiresAtMs,
|
|
5288
|
+
expectedRecoveryUntilMs: options.expectedRecoveryUntilMs,
|
|
5289
|
+
expectedAudience: options.expectedAudience,
|
|
5290
|
+
expectedReviewerBindingHash: options.expectedReviewerBindingHash,
|
|
5291
|
+
idempotencyKey,
|
|
5292
|
+
},
|
|
5293
|
+
});
|
|
5294
|
+
}
|
|
5295
|
+
/**
|
|
5296
|
+
* Read one exact delegated-review capability and its narrow lifecycle result.
|
|
5297
|
+
* This does not refresh or extend the window and exposes no generic run-view
|
|
5298
|
+
* authority.
|
|
5299
|
+
*/
|
|
5300
|
+
async function getReviewCapability(appId, runId, gateId, options) {
|
|
5301
|
+
return requestDevApi(`${appPath(appId)}/${encodeURIComponent(runId)}/gates/${encodeURIComponent(gateId)}/review-capability`, {
|
|
5302
|
+
method: 'POST',
|
|
5303
|
+
body: { expectedPreviewUrl: options.expectedPreviewUrl },
|
|
5304
|
+
});
|
|
5305
|
+
}
|
|
5281
5306
|
async function topup(appId, runId, options) {
|
|
5282
5307
|
return requestDevApi(`${appPath(appId)}/${encodeURIComponent(runId)}/topup`, { method: 'POST', body: options });
|
|
5283
5308
|
}
|
|
@@ -5323,6 +5348,9 @@ const FAILURE_REASONS = [
|
|
|
5323
5348
|
'bind_failed',
|
|
5324
5349
|
'internal_error',
|
|
5325
5350
|
];
|
|
5351
|
+
const BUILD_REVIEW_CAPABILITY_SCHEMA = 'bounded.build-review-capability.v1';
|
|
5352
|
+
const BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA = 'bounded.build-review-capability-refresh.v1';
|
|
5353
|
+
const BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA = 'bounded.build-delegated-review-capability.v1';
|
|
5326
5354
|
|
|
5327
5355
|
const NORMAL_POLL_MS = 2000;
|
|
5328
5356
|
const PARKED_POLL_MS = 5000;
|
|
@@ -5559,22 +5587,25 @@ function useBuildRun(appId, runId, options) {
|
|
|
5559
5587
|
}
|
|
5560
5588
|
|
|
5561
5589
|
/**
|
|
5562
|
-
* Platform first-party surfaces only (bounded.sh, oapps.fun, localhost)
|
|
5563
|
-
*
|
|
5590
|
+
* Platform first-party surfaces only (bounded.sh, oapps.fun, localhost), with
|
|
5591
|
+
* one exact Drafted exception for delegated review/decision routes. Other
|
|
5592
|
+
* generated-app origins remain blocked; server-side callers are unaffected.
|
|
5564
5593
|
*/
|
|
5565
5594
|
const builds = {
|
|
5566
5595
|
submit,
|
|
5567
5596
|
get,
|
|
5597
|
+
getReviewCapability,
|
|
5568
5598
|
events,
|
|
5569
5599
|
cancel,
|
|
5570
5600
|
decideGate,
|
|
5601
|
+
refreshReviewCapability,
|
|
5571
5602
|
topup,
|
|
5572
5603
|
list: list$1,
|
|
5573
5604
|
watch,
|
|
5574
5605
|
};
|
|
5575
5606
|
|
|
5576
5607
|
async function create(options = {}) {
|
|
5577
|
-
const body = Object.assign(Object.assign(Object.assign(Object.assign({}, (options.name !== undefined ? { name: options.name } : {})), (options.prompt !== undefined ? { prompt: options.prompt } : {})), (options.clientToken !== undefined ? { clientToken: options.clientToken } : {})), (options.intent !== undefined ? { intent: options.intent } : {}));
|
|
5608
|
+
const body = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (options.name !== undefined ? { name: options.name } : {})), (options.prompt !== undefined ? { prompt: options.prompt } : {})), (options.clientToken !== undefined ? { clientToken: options.clientToken } : {})), (options.intent !== undefined ? { intent: options.intent } : {})), (options.oapp === true ? { oapp: true } : {}));
|
|
5578
5609
|
const app = await requestDevApi('/apps/new', {
|
|
5579
5610
|
method: 'POST',
|
|
5580
5611
|
body,
|
|
@@ -6020,5 +6051,5 @@ class PrivyExpoProvider {
|
|
|
6020
6051
|
}
|
|
6021
6052
|
}
|
|
6022
6053
|
|
|
6023
|
-
export { useAuth as A, useBuildRun as B, apps as C, deserializeTransaction as D, EMBEDDED_WALLET_UNSUPPORTED as E, getIdToken as F, setPlatform as G, builds as H, BuildsApiError as I, PARK_REASONS as J, FAILURE_REASONS as K, NON_TERMINAL_STATES as N, OffchainAuthProvider as O, PrivyExpoProvider as P, RUN_STATES as R, SURFNET_RPC_URL as S, TERMINAL_STATES as T, hasEmbeddedEvmWallet as a, embeddedSignAndSubmit as b, setAuthLoading as c, bufferExports as d, embeddedRunEvmTransaction as e, bs58 as f, getPlatform as g, hasEmbeddedWallet as h, confirmAndCheckTransaction as i, init as j, getCurrentUser as k, onAuthLoadingChanged as l, getAuthLoading as m, normalizeSolanaRpcUrl as n, onAuthStateChanged as o, login as p, logout as q, resolveSolanaRpcUrl as r, setCurrentUser as s, getAuthProvider as t, signInAnonymously as u, loginWithPrivy as v, loginWithRedirect as w, completeLoginFromRedirect as x, loginWithPopup as y, completeLoginInPopup as z };
|
|
6024
|
-
//# sourceMappingURL=index.native-
|
|
6054
|
+
export { useAuth as A, useBuildRun as B, apps as C, deserializeTransaction as D, EMBEDDED_WALLET_UNSUPPORTED as E, getIdToken as F, setPlatform as G, builds as H, BuildsApiError as I, PARK_REASONS as J, FAILURE_REASONS as K, BUILD_REVIEW_CAPABILITY_SCHEMA as L, BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA as M, NON_TERMINAL_STATES as N, OffchainAuthProvider as O, PrivyExpoProvider as P, BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA as Q, RUN_STATES as R, SURFNET_RPC_URL as S, TERMINAL_STATES as T, hasEmbeddedEvmWallet as a, embeddedSignAndSubmit as b, setAuthLoading as c, bufferExports as d, embeddedRunEvmTransaction as e, bs58 as f, getPlatform as g, hasEmbeddedWallet as h, confirmAndCheckTransaction as i, init as j, getCurrentUser as k, onAuthLoadingChanged as l, getAuthLoading as m, normalizeSolanaRpcUrl as n, onAuthStateChanged as o, login as p, logout as q, resolveSolanaRpcUrl as r, setCurrentUser as s, getAuthProvider as t, signInAnonymously as u, loginWithPrivy as v, loginWithRedirect as w, completeLoginFromRedirect as x, loginWithPopup as y, completeLoginInPopup as z };
|
|
6055
|
+
//# sourceMappingURL=index.native-gU1kSEmQ.mjs.map
|