@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
|
@@ -6021,7 +6021,7 @@ async function getAuthProvider(config) {
|
|
|
6021
6021
|
// manager as legacy email sessions. Human login should be started
|
|
6022
6022
|
// with loginWithRedirect(); this provider is kept as the restore and
|
|
6023
6023
|
// logout surface for those sessions.
|
|
6024
|
-
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./email-auth-provider-
|
|
6024
|
+
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./email-auth-provider-B1wYw68c.js'); })).EmailAuthProvider();
|
|
6025
6025
|
break;
|
|
6026
6026
|
case "phantom": {
|
|
6027
6027
|
// First-class Solana WALLET LOGIN (the poof/TaroBase-style "connect
|
|
@@ -6063,7 +6063,7 @@ async function getAuthProvider(config) {
|
|
|
6063
6063
|
// (bounded-login-widget.ts), so registration never counts as
|
|
6064
6064
|
// evidence the user has a wallet.
|
|
6065
6065
|
await ensureSolanaMobileWalletRegistered(config, configuredNetwork);
|
|
6066
|
-
const { InjectedWalletProvider } = await Promise.resolve().then(function () { return require('./injected-wallet-provider-
|
|
6066
|
+
const { InjectedWalletProvider } = await Promise.resolve().then(function () { return require('./injected-wallet-provider-DBWcA9tW.js'); });
|
|
6067
6067
|
currentAuthProvider = new InjectedWalletProvider(resolveInjectedWalletConfig(config), rpcUrl, configuredNetwork);
|
|
6068
6068
|
break;
|
|
6069
6069
|
}
|
|
@@ -6076,7 +6076,7 @@ async function getAuthProvider(config) {
|
|
|
6076
6076
|
// Selecting authMethod:'evm-wallet' IS the opt-in — pass evmWalletConfig
|
|
6077
6077
|
// to point at a specific wallet or set chainId/domain.
|
|
6078
6078
|
const evmWalletConfig = ((_a = config.evmWalletConfig) !== null && _a !== void 0 ? _a : {});
|
|
6079
|
-
const { InjectedEvmWalletProvider } = await Promise.resolve().then(function () { return require('./injected-evm-wallet-provider-
|
|
6079
|
+
const { InjectedEvmWalletProvider } = await Promise.resolve().then(function () { return require('./injected-evm-wallet-provider-CgUCo_6H.js'); });
|
|
6080
6080
|
currentAuthProvider = new InjectedEvmWalletProvider(evmWalletConfig);
|
|
6081
6081
|
break;
|
|
6082
6082
|
}
|
|
@@ -6101,7 +6101,7 @@ async function getAuthProvider(config) {
|
|
|
6101
6101
|
break;
|
|
6102
6102
|
case "guest":
|
|
6103
6103
|
// Anonymous auth: a device-local ed25519 keypair signs the challenge.
|
|
6104
|
-
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-
|
|
6104
|
+
currentAuthProvider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-BGBcSwsM.js'); })).GuestAuthProvider();
|
|
6105
6105
|
break;
|
|
6106
6106
|
}
|
|
6107
6107
|
if (!currentAuthProvider) {
|
|
@@ -6163,7 +6163,7 @@ async function signInAnonymously() {
|
|
|
6163
6163
|
// Lazy-load the guest provider so its ed25519/web3 dependencies stay out of
|
|
6164
6164
|
// the main bundle for data-only apps. Specifier is a static string literal
|
|
6165
6165
|
// so bundle-splitting can see it.
|
|
6166
|
-
const provider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-
|
|
6166
|
+
const provider = new (await Promise.resolve().then(function () { return require('./guest-auth-provider-BGBcSwsM.js'); })).GuestAuthProvider();
|
|
6167
6167
|
setAuthLoading(true); // reflect "signing in…" while the guest keypair session is minted
|
|
6168
6168
|
// adoptSessionProvider awaits only getConfig() (already resolved here) and then
|
|
6169
6169
|
// runs every write - provider/method/config/marker/user - in one synchronous
|
|
@@ -6334,7 +6334,7 @@ function ensureSharedWalletLoginReady() {
|
|
|
6334
6334
|
if (!sharedWalletReady) {
|
|
6335
6335
|
sharedWalletReady = (async () => {
|
|
6336
6336
|
await core.getConfig();
|
|
6337
|
-
await Promise.resolve().then(function () { return require('./injected-wallet-provider-
|
|
6337
|
+
await Promise.resolve().then(function () { return require('./injected-wallet-provider-DBWcA9tW.js'); });
|
|
6338
6338
|
})().catch((error) => {
|
|
6339
6339
|
sharedWalletReady = null;
|
|
6340
6340
|
throw error;
|
|
@@ -6955,6 +6955,24 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
6955
6955
|
}
|
|
6956
6956
|
return t;
|
|
6957
6957
|
};
|
|
6958
|
+
/** Source is a safe tar.gz tree; attachments remain model input, never executable files. */
|
|
6959
|
+
async function uploadInput(appId, options) {
|
|
6960
|
+
const data = options.data instanceof Uint8Array ? new Uint8Array(options.data).buffer : await options.data.arrayBuffer();
|
|
6961
|
+
const sha256 = Array.from(new Uint8Array(await getPlatform().sha256(new Uint8Array(data))), (byte) => byte.toString(16).padStart(2, '0')).join('');
|
|
6962
|
+
const path = `/app/${encodeURIComponent(appId)}/build-inputs`;
|
|
6963
|
+
const ticket = await requestDevApi(path, {
|
|
6964
|
+
method: 'POST', body: { kind: options.kind, name: options.name, contentType: options.contentType, bytes: data.byteLength, sha256 },
|
|
6965
|
+
});
|
|
6966
|
+
const destination = new URL(ticket.uploadUrl);
|
|
6967
|
+
if (destination.protocol !== 'https:' && !(destination.protocol === 'http:' && ['localhost', '127.0.0.1', '[::1]'].includes(destination.hostname)))
|
|
6968
|
+
throw new Error('Build input upload requires a secure endpoint.');
|
|
6969
|
+
const response = await fetch(destination.href, {
|
|
6970
|
+
method: 'PUT', redirect: 'error', headers: { Authorization: `Bearer ${ticket.uploadToken}`, 'Content-Type': options.contentType }, body: data,
|
|
6971
|
+
});
|
|
6972
|
+
if (!response.ok)
|
|
6973
|
+
throw apiError(response, await responseBody(response));
|
|
6974
|
+
return requestDevApi(`${path}/${encodeURIComponent(ticket.artifactId)}/finalize`, { method: 'POST' });
|
|
6975
|
+
}
|
|
6958
6976
|
/** A structured non-2xx response from the developer API. */
|
|
6959
6977
|
class BuildsApiError extends Error {
|
|
6960
6978
|
constructor(init) {
|
|
@@ -7560,6 +7578,7 @@ const builds = {
|
|
|
7560
7578
|
decideGate,
|
|
7561
7579
|
refreshReviewCapability,
|
|
7562
7580
|
topup,
|
|
7581
|
+
uploadInput,
|
|
7563
7582
|
list: list$1,
|
|
7564
7583
|
watch,
|
|
7565
7584
|
};
|
|
@@ -8336,4 +8355,4 @@ exports.useAuth = useAuth;
|
|
|
8336
8355
|
exports.useBuildRun = useBuildRun;
|
|
8337
8356
|
exports.useQuery = useQuery;
|
|
8338
8357
|
exports.waitForAuthReady = waitForAuthReady;
|
|
8339
|
-
//# sourceMappingURL=index.native-
|
|
8358
|
+
//# sourceMappingURL=index.native-DVMCCbwq.js.map
|