@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
|
@@ -4466,7 +4466,7 @@ async function getAuthProvider(config) {
|
|
|
4466
4466
|
// manager as legacy email sessions. Human login should be started
|
|
4467
4467
|
// with loginWithRedirect(); this provider is kept as the restore and
|
|
4468
4468
|
// logout surface for those sessions.
|
|
4469
|
-
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./email-auth-provider-
|
|
4469
|
+
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./email-auth-provider-6seVxrWq.js'); })).EmailAuthProvider();
|
|
4470
4470
|
break;
|
|
4471
4471
|
case "wallet":
|
|
4472
4472
|
case "phantom": {
|
|
@@ -4485,7 +4485,7 @@ async function getAuthProvider(config) {
|
|
|
4485
4485
|
if (!isWalletLoginEnabled(config)) {
|
|
4486
4486
|
throw walletLoginNotEnabledError(authMethod);
|
|
4487
4487
|
}
|
|
4488
|
-
const { InjectedWalletProvider } = await Promise.resolve().then(function () { return require('./injected-wallet-provider-
|
|
4488
|
+
const { InjectedWalletProvider } = await Promise.resolve().then(function () { return require('./injected-wallet-provider-CyCGjf2G.js'); });
|
|
4489
4489
|
currentAuthProvider = new InjectedWalletProvider(resolveInjectedWalletConfig(config), rpcUrl, configuredNetwork);
|
|
4490
4490
|
break;
|
|
4491
4491
|
}
|
|
@@ -4498,7 +4498,7 @@ async function getAuthProvider(config) {
|
|
|
4498
4498
|
// Selecting authMethod:'evm-wallet' IS the opt-in — pass evmWalletConfig
|
|
4499
4499
|
// to point at a specific wallet or set chainId/domain.
|
|
4500
4500
|
const evmWalletConfig = ((_a = config.evmWalletConfig) !== null && _a !== void 0 ? _a : {});
|
|
4501
|
-
const { InjectedEvmWalletProvider } = await Promise.resolve().then(function () { return require('./injected-evm-wallet-provider-
|
|
4501
|
+
const { InjectedEvmWalletProvider } = await Promise.resolve().then(function () { return require('./injected-evm-wallet-provider-BEGvuTUU.js'); });
|
|
4502
4502
|
currentAuthProvider = new InjectedEvmWalletProvider(evmWalletConfig);
|
|
4503
4503
|
break;
|
|
4504
4504
|
}
|
|
@@ -4526,7 +4526,7 @@ async function getAuthProvider(config) {
|
|
|
4526
4526
|
break;
|
|
4527
4527
|
case "guest":
|
|
4528
4528
|
// Anonymous auth: a device-local ed25519 keypair signs the challenge.
|
|
4529
|
-
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-
|
|
4529
|
+
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-BrSO-CUp.js'); })).GuestAuthProvider();
|
|
4530
4530
|
break;
|
|
4531
4531
|
}
|
|
4532
4532
|
if (!currentAuthProvider) {
|
|
@@ -4582,7 +4582,7 @@ async function signInAnonymously() {
|
|
|
4582
4582
|
// Lazy-load the guest provider so its ed25519/web3 dependencies stay out of
|
|
4583
4583
|
// the main bundle for data-only apps. Specifier is a static string literal
|
|
4584
4584
|
// so bundle-splitting can see it.
|
|
4585
|
-
const provider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-
|
|
4585
|
+
const provider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-BrSO-CUp.js'); })).GuestAuthProvider();
|
|
4586
4586
|
setAuthLoading(true); // reflect "signing in…" while the guest keypair session is minted
|
|
4587
4587
|
const commit = (user) => {
|
|
4588
4588
|
// No await/interleaving inside this block: provider/method/config/marker
|
|
@@ -5365,6 +5365,31 @@ async function decideGate(appId, runId, gateId, options) {
|
|
|
5365
5365
|
const { intentKey: _intentKey, idempotencyKey: _suppliedKey } = options, decision = __rest(options, ["intentKey", "idempotencyKey"]);
|
|
5366
5366
|
return requestDevApi(`${appPath(appId)}/${encodeURIComponent(runId)}/gates/${encodeURIComponent(gateId)}/decision`, { method: 'POST', body: Object.assign(Object.assign({}, decision), { idempotencyKey }) });
|
|
5367
5367
|
}
|
|
5368
|
+
async function refreshReviewCapability(appId, runId, gateId, options) {
|
|
5369
|
+
const idempotencyKey = actionIdempotencyKey(options, 'refreshReviewCapability()');
|
|
5370
|
+
return requestDevApi(`${appPath(appId)}/${encodeURIComponent(runId)}/gates/${encodeURIComponent(gateId)}/review-capability/refresh`, {
|
|
5371
|
+
method: 'POST',
|
|
5372
|
+
body: {
|
|
5373
|
+
expectedGeneration: options.expectedGeneration,
|
|
5374
|
+
expectedExpiresAtMs: options.expectedExpiresAtMs,
|
|
5375
|
+
expectedRecoveryUntilMs: options.expectedRecoveryUntilMs,
|
|
5376
|
+
expectedAudience: options.expectedAudience,
|
|
5377
|
+
expectedReviewerBindingHash: options.expectedReviewerBindingHash,
|
|
5378
|
+
idempotencyKey,
|
|
5379
|
+
},
|
|
5380
|
+
});
|
|
5381
|
+
}
|
|
5382
|
+
/**
|
|
5383
|
+
* Read one exact delegated-review capability and its narrow lifecycle result.
|
|
5384
|
+
* This does not refresh or extend the window and exposes no generic run-view
|
|
5385
|
+
* authority.
|
|
5386
|
+
*/
|
|
5387
|
+
async function getReviewCapability(appId, runId, gateId, options) {
|
|
5388
|
+
return requestDevApi(`${appPath(appId)}/${encodeURIComponent(runId)}/gates/${encodeURIComponent(gateId)}/review-capability`, {
|
|
5389
|
+
method: 'POST',
|
|
5390
|
+
body: { expectedPreviewUrl: options.expectedPreviewUrl },
|
|
5391
|
+
});
|
|
5392
|
+
}
|
|
5368
5393
|
async function topup(appId, runId, options) {
|
|
5369
5394
|
return requestDevApi(`${appPath(appId)}/${encodeURIComponent(runId)}/topup`, { method: 'POST', body: options });
|
|
5370
5395
|
}
|
|
@@ -5410,6 +5435,9 @@ const FAILURE_REASONS = [
|
|
|
5410
5435
|
'bind_failed',
|
|
5411
5436
|
'internal_error',
|
|
5412
5437
|
];
|
|
5438
|
+
const BUILD_REVIEW_CAPABILITY_SCHEMA = 'bounded.build-review-capability.v1';
|
|
5439
|
+
const BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA = 'bounded.build-review-capability-refresh.v1';
|
|
5440
|
+
const BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA = 'bounded.build-delegated-review-capability.v1';
|
|
5413
5441
|
|
|
5414
5442
|
const NORMAL_POLL_MS = 2000;
|
|
5415
5443
|
const PARKED_POLL_MS = 5000;
|
|
@@ -5646,22 +5674,25 @@ function useBuildRun(appId, runId, options) {
|
|
|
5646
5674
|
}
|
|
5647
5675
|
|
|
5648
5676
|
/**
|
|
5649
|
-
* Platform first-party surfaces only (bounded.sh, oapps.fun, localhost)
|
|
5650
|
-
*
|
|
5677
|
+
* Platform first-party surfaces only (bounded.sh, oapps.fun, localhost), with
|
|
5678
|
+
* one exact Drafted exception for delegated review/decision routes. Other
|
|
5679
|
+
* generated-app origins remain blocked; server-side callers are unaffected.
|
|
5651
5680
|
*/
|
|
5652
5681
|
const builds = {
|
|
5653
5682
|
submit,
|
|
5654
5683
|
get,
|
|
5684
|
+
getReviewCapability,
|
|
5655
5685
|
events,
|
|
5656
5686
|
cancel,
|
|
5657
5687
|
decideGate,
|
|
5688
|
+
refreshReviewCapability,
|
|
5658
5689
|
topup,
|
|
5659
5690
|
list: list$1,
|
|
5660
5691
|
watch,
|
|
5661
5692
|
};
|
|
5662
5693
|
|
|
5663
5694
|
async function create(options = {}) {
|
|
5664
|
-
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 } : {}));
|
|
5695
|
+
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 } : {}));
|
|
5665
5696
|
const app = await requestDevApi('/apps/new', {
|
|
5666
5697
|
method: 'POST',
|
|
5667
5698
|
body,
|
|
@@ -6192,6 +6223,9 @@ function defaultInjectedEvmProvider() {
|
|
|
6192
6223
|
return null;
|
|
6193
6224
|
}
|
|
6194
6225
|
|
|
6226
|
+
exports.BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA = BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA;
|
|
6227
|
+
exports.BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA = BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA;
|
|
6228
|
+
exports.BUILD_REVIEW_CAPABILITY_SCHEMA = BUILD_REVIEW_CAPABILITY_SCHEMA;
|
|
6195
6229
|
exports.BuildsApiError = BuildsApiError;
|
|
6196
6230
|
exports.EMBEDDED_WALLET_UNSUPPORTED = EMBEDDED_WALLET_UNSUPPORTED;
|
|
6197
6231
|
exports.FAILURE_REASONS = FAILURE_REASONS;
|
|
@@ -6239,4 +6273,4 @@ exports.signInAnonymously = signInAnonymously;
|
|
|
6239
6273
|
exports.useAuth = useAuth;
|
|
6240
6274
|
exports.useBuildRun = useBuildRun;
|
|
6241
6275
|
exports.useQuery = useQuery;
|
|
6242
|
-
//# sourceMappingURL=index-
|
|
6276
|
+
//# sourceMappingURL=index-D4jNluH9.js.map
|