@bounded-sh/client 0.0.95 → 0.0.96
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/client.d.ts +31 -0
- package/dist/builds/index.d.ts +3 -2
- package/dist/{email-auth-provider-mNpHuk1i.js → email-auth-provider-B1wYw68c.js} +2 -2
- package/dist/{email-auth-provider-mNpHuk1i.js.map → email-auth-provider-B1wYw68c.js.map} +1 -1
- package/dist/{email-auth-provider-H6Dw5Z9x.mjs → email-auth-provider-BgxLdrbB.mjs} +2 -2
- package/dist/{email-auth-provider-H6Dw5Z9x.mjs.map → email-auth-provider-BgxLdrbB.mjs.map} +1 -1
- package/dist/{email-auth-provider-DqXtds8G.js → email-auth-provider-CiMNpEWJ.js} +2 -2
- package/dist/{email-auth-provider-DqXtds8G.js.map → email-auth-provider-CiMNpEWJ.js.map} +1 -1
- package/dist/{email-auth-provider-D7wnHbb3.mjs → email-auth-provider-Dhu15el8.mjs} +2 -2
- package/dist/{email-auth-provider-D7wnHbb3.mjs.map → email-auth-provider-Dhu15el8.mjs.map} +1 -1
- package/dist/{guest-auth-provider-DwgEfPWe.js → guest-auth-provider-BGBcSwsM.js} +2 -2
- package/dist/{guest-auth-provider-DwgEfPWe.js.map → guest-auth-provider-BGBcSwsM.js.map} +1 -1
- package/dist/{guest-auth-provider-CenCVVnc.mjs → guest-auth-provider-BXJ2xm3C.mjs} +2 -2
- package/dist/{guest-auth-provider-CenCVVnc.mjs.map → guest-auth-provider-BXJ2xm3C.mjs.map} +1 -1
- package/dist/{guest-auth-provider-CKMU9n1w.js → guest-auth-provider-BrMhyIse.js} +2 -2
- package/dist/{guest-auth-provider-CKMU9n1w.js.map → guest-auth-provider-BrMhyIse.js.map} +1 -1
- package/dist/{guest-auth-provider-CJjhV1b0.mjs → guest-auth-provider-U-zsTm0z.mjs} +2 -2
- package/dist/{guest-auth-provider-CJjhV1b0.mjs.map → guest-auth-provider-U-zsTm0z.mjs.map} +1 -1
- package/dist/{index-D3mp2wpM.mjs → index-B5Luqobz.mjs} +27 -8
- package/dist/{index-D3mp2wpM.mjs.map → index-B5Luqobz.mjs.map} +1 -1
- package/dist/{index-BiytVNMk.js → index-DWUx-v0z.js} +27 -8
- package/dist/{index-BiytVNMk.js.map → index-DWUx-v0z.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{index.native-DHFDc9Vy.mjs → index.native-CAkdhYaP.mjs} +26 -7
- package/dist/{index.native-DHFDc9Vy.mjs.map → index.native-CAkdhYaP.mjs.map} +1 -1
- package/dist/{index.native-vfNe1Pga.js → index.native-DVMCCbwq.js} +26 -7
- package/dist/{index.native-vfNe1Pga.js.map → index.native-DVMCCbwq.js.map} +1 -1
- package/dist/index.native.js +1 -1
- package/dist/index.native.mjs +1 -1
- package/dist/{injected-evm-wallet-provider-B8_1qfbX.mjs → injected-evm-wallet-provider-BmWa3lHu.mjs} +2 -2
- package/dist/{injected-evm-wallet-provider-B8_1qfbX.mjs.map → injected-evm-wallet-provider-BmWa3lHu.mjs.map} +1 -1
- package/dist/{injected-evm-wallet-provider-BLg6H50t.js → injected-evm-wallet-provider-CgUCo_6H.js} +2 -2
- package/dist/{injected-evm-wallet-provider-BLg6H50t.js.map → injected-evm-wallet-provider-CgUCo_6H.js.map} +1 -1
- package/dist/{injected-evm-wallet-provider-BsxKY7bi.mjs → injected-evm-wallet-provider-Da6kghfZ.mjs} +2 -2
- package/dist/{injected-evm-wallet-provider-BsxKY7bi.mjs.map → injected-evm-wallet-provider-Da6kghfZ.mjs.map} +1 -1
- package/dist/{injected-evm-wallet-provider-B7lMl8NN.js → injected-evm-wallet-provider-DvoG_pvE.js} +2 -2
- package/dist/{injected-evm-wallet-provider-B7lMl8NN.js.map → injected-evm-wallet-provider-DvoG_pvE.js.map} +1 -1
- package/dist/{injected-wallet-provider-zLWZ_vKC.js → injected-wallet-provider-B7xVks8k.js} +2 -2
- package/dist/{injected-wallet-provider-zLWZ_vKC.js.map → injected-wallet-provider-B7xVks8k.js.map} +1 -1
- package/dist/{injected-wallet-provider-D8Y_sP0c.mjs → injected-wallet-provider-CJFZ9O7q.mjs} +2 -2
- package/dist/{injected-wallet-provider-D8Y_sP0c.mjs.map → injected-wallet-provider-CJFZ9O7q.mjs.map} +1 -1
- package/dist/{injected-wallet-provider-DNU7LBlK.js → injected-wallet-provider-DBWcA9tW.js} +2 -2
- package/dist/{injected-wallet-provider-DNU7LBlK.js.map → injected-wallet-provider-DBWcA9tW.js.map} +1 -1
- package/dist/{injected-wallet-provider-DE_Kce-V.mjs → injected-wallet-provider-TvPTmUdy.mjs} +2 -2
- package/dist/{injected-wallet-provider-DE_Kce-V.mjs.map → injected-wallet-provider-TvPTmUdy.mjs.map} +1 -1
- package/package.json +2 -2
|
@@ -6245,7 +6245,7 @@ async function getAuthProvider(config) {
|
|
|
6245
6245
|
// manager as legacy email sessions. Human login should be started
|
|
6246
6246
|
// with loginWithRedirect(); this provider is kept as the restore and
|
|
6247
6247
|
// logout surface for those sessions.
|
|
6248
|
-
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./email-auth-provider-
|
|
6248
|
+
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./email-auth-provider-CiMNpEWJ.js'); })).EmailAuthProvider();
|
|
6249
6249
|
break;
|
|
6250
6250
|
case "phantom": {
|
|
6251
6251
|
// First-class Solana WALLET LOGIN (the poof/TaroBase-style "connect
|
|
@@ -6287,7 +6287,7 @@ async function getAuthProvider(config) {
|
|
|
6287
6287
|
// (bounded-login-widget.ts), so registration never counts as
|
|
6288
6288
|
// evidence the user has a wallet.
|
|
6289
6289
|
await ensureSolanaMobileWalletRegistered(config, configuredNetwork);
|
|
6290
|
-
const { InjectedWalletProvider } = await Promise.resolve().then(function () { return require('./injected-wallet-provider-
|
|
6290
|
+
const { InjectedWalletProvider } = await Promise.resolve().then(function () { return require('./injected-wallet-provider-B7xVks8k.js'); });
|
|
6291
6291
|
currentAuthProvider = new InjectedWalletProvider(resolveInjectedWalletConfig(config), rpcUrl, configuredNetwork);
|
|
6292
6292
|
break;
|
|
6293
6293
|
}
|
|
@@ -6300,7 +6300,7 @@ async function getAuthProvider(config) {
|
|
|
6300
6300
|
// Selecting authMethod:'evm-wallet' IS the opt-in — pass evmWalletConfig
|
|
6301
6301
|
// to point at a specific wallet or set chainId/domain.
|
|
6302
6302
|
const evmWalletConfig = ((_a = config.evmWalletConfig) !== null && _a !== void 0 ? _a : {});
|
|
6303
|
-
const { InjectedEvmWalletProvider } = await Promise.resolve().then(function () { return require('./injected-evm-wallet-provider-
|
|
6303
|
+
const { InjectedEvmWalletProvider } = await Promise.resolve().then(function () { return require('./injected-evm-wallet-provider-DvoG_pvE.js'); });
|
|
6304
6304
|
currentAuthProvider = new InjectedEvmWalletProvider(evmWalletConfig);
|
|
6305
6305
|
break;
|
|
6306
6306
|
}
|
|
@@ -6325,7 +6325,7 @@ async function getAuthProvider(config) {
|
|
|
6325
6325
|
break;
|
|
6326
6326
|
case "guest":
|
|
6327
6327
|
// Anonymous auth: a device-local ed25519 keypair signs the challenge.
|
|
6328
|
-
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-
|
|
6328
|
+
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-BrMhyIse.js'); })).GuestAuthProvider();
|
|
6329
6329
|
break;
|
|
6330
6330
|
}
|
|
6331
6331
|
if (!currentAuthProvider) {
|
|
@@ -6387,7 +6387,7 @@ async function signInAnonymously() {
|
|
|
6387
6387
|
// Lazy-load the guest provider so its ed25519/web3 dependencies stay out of
|
|
6388
6388
|
// the main bundle for data-only apps. Specifier is a static string literal
|
|
6389
6389
|
// so bundle-splitting can see it.
|
|
6390
|
-
const provider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-
|
|
6390
|
+
const provider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-BrMhyIse.js'); })).GuestAuthProvider();
|
|
6391
6391
|
setAuthLoading(true); // reflect "signing in…" while the guest keypair session is minted
|
|
6392
6392
|
// adoptSessionProvider awaits only getConfig() (already resolved here) and then
|
|
6393
6393
|
// runs every write - provider/method/config/marker/user - in one synchronous
|
|
@@ -6558,7 +6558,7 @@ function ensureSharedWalletLoginReady() {
|
|
|
6558
6558
|
if (!sharedWalletReady) {
|
|
6559
6559
|
sharedWalletReady = (async () => {
|
|
6560
6560
|
await core.getConfig();
|
|
6561
|
-
await Promise.resolve().then(function () { return require('./injected-wallet-provider-
|
|
6561
|
+
await Promise.resolve().then(function () { return require('./injected-wallet-provider-B7xVks8k.js'); });
|
|
6562
6562
|
})().catch((error) => {
|
|
6563
6563
|
sharedWalletReady = null;
|
|
6564
6564
|
throw error;
|
|
@@ -6661,7 +6661,7 @@ async function loginWithWallet(options) {
|
|
|
6661
6661
|
await ensureSharedWalletLoginReady();
|
|
6662
6662
|
else
|
|
6663
6663
|
await ensureWalletLoginReady();
|
|
6664
|
-
const { InjectedWalletProvider } = await Promise.resolve().then(function () { return require('./injected-wallet-provider-
|
|
6664
|
+
const { InjectedWalletProvider } = await Promise.resolve().then(function () { return require('./injected-wallet-provider-B7xVks8k.js'); });
|
|
6665
6665
|
// Keep the RAW wallet provider: the offchain wrapper forwards only a fixed
|
|
6666
6666
|
// set of methods, so cleanup below must speak to the provider that actually
|
|
6667
6667
|
// holds the config rather than to whatever is wrapping it.
|
|
@@ -8858,6 +8858,24 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
8858
8858
|
}
|
|
8859
8859
|
return t;
|
|
8860
8860
|
};
|
|
8861
|
+
/** Source is a safe tar.gz tree; attachments remain model input, never executable files. */
|
|
8862
|
+
async function uploadInput(appId, options) {
|
|
8863
|
+
const data = options.data instanceof Uint8Array ? new Uint8Array(options.data).buffer : await options.data.arrayBuffer();
|
|
8864
|
+
const sha256 = Array.from(new Uint8Array(await getPlatform().sha256(new Uint8Array(data))), (byte) => byte.toString(16).padStart(2, '0')).join('');
|
|
8865
|
+
const path = `/app/${encodeURIComponent(appId)}/build-inputs`;
|
|
8866
|
+
const ticket = await requestDevApi(path, {
|
|
8867
|
+
method: 'POST', body: { kind: options.kind, name: options.name, contentType: options.contentType, bytes: data.byteLength, sha256 },
|
|
8868
|
+
});
|
|
8869
|
+
const destination = new URL(ticket.uploadUrl);
|
|
8870
|
+
if (destination.protocol !== 'https:' && !(destination.protocol === 'http:' && ['localhost', '127.0.0.1', '[::1]'].includes(destination.hostname)))
|
|
8871
|
+
throw new Error('Build input upload requires a secure endpoint.');
|
|
8872
|
+
const response = await fetch(destination.href, {
|
|
8873
|
+
method: 'PUT', redirect: 'error', headers: { Authorization: `Bearer ${ticket.uploadToken}`, 'Content-Type': options.contentType }, body: data,
|
|
8874
|
+
});
|
|
8875
|
+
if (!response.ok)
|
|
8876
|
+
throw apiError(response, await responseBody(response));
|
|
8877
|
+
return requestDevApi(`${path}/${encodeURIComponent(ticket.artifactId)}/finalize`, { method: 'POST' });
|
|
8878
|
+
}
|
|
8861
8879
|
/** A structured non-2xx response from the developer API. */
|
|
8862
8880
|
class BuildsApiError extends Error {
|
|
8863
8881
|
constructor(init) {
|
|
@@ -9463,6 +9481,7 @@ const builds = {
|
|
|
9463
9481
|
decideGate,
|
|
9464
9482
|
refreshReviewCapability,
|
|
9465
9483
|
topup,
|
|
9484
|
+
uploadInput,
|
|
9466
9485
|
list: list$1,
|
|
9467
9486
|
watch,
|
|
9468
9487
|
};
|
|
@@ -10335,4 +10354,4 @@ exports.useAuth = useAuth;
|
|
|
10335
10354
|
exports.useBuildRun = useBuildRun;
|
|
10336
10355
|
exports.useQuery = useQuery;
|
|
10337
10356
|
exports.waitForAuthReady = waitForAuthReady;
|
|
10338
|
-
//# sourceMappingURL=index-
|
|
10357
|
+
//# sourceMappingURL=index-DWUx-v0z.js.map
|