@bounded-sh/client 0.0.53-next.1 → 0.0.53
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/README.md +10 -4
- package/dist/builds/apps.d.ts +11 -4
- package/dist/builds/client.d.ts +5 -1
- package/dist/builds/types.d.ts +9 -0
- package/dist/{email-auth-provider-CR7B2pob.mjs → email-auth-provider-BGc8H93l.mjs} +2 -2
- package/dist/{email-auth-provider-CRFJd5Rp.mjs.map → email-auth-provider-BGc8H93l.mjs.map} +1 -1
- package/dist/{email-auth-provider-BQ-DTX3z.js → email-auth-provider-BZJ9EcnE.js} +2 -2
- package/dist/{email-auth-provider-BQ-DTX3z.js.map → email-auth-provider-BZJ9EcnE.js.map} +1 -1
- package/dist/{email-auth-provider-CRFJd5Rp.mjs → email-auth-provider-CD7YIGxe.mjs} +2 -2
- package/dist/{email-auth-provider-CR7B2pob.mjs.map → email-auth-provider-CD7YIGxe.mjs.map} +1 -1
- package/dist/{email-auth-provider-CyEhOnGQ.js → email-auth-provider-ChDGkDyY.js} +2 -2
- package/dist/{email-auth-provider-CyEhOnGQ.js.map → email-auth-provider-ChDGkDyY.js.map} +1 -1
- package/dist/{guest-auth-provider-3cWfAi5V.js → guest-auth-provider-B2CPHhym.js} +2 -2
- package/dist/{guest-auth-provider-3cWfAi5V.js.map → guest-auth-provider-B2CPHhym.js.map} +1 -1
- package/dist/{guest-auth-provider-1GGM1eWA.mjs → guest-auth-provider-BkkSRli_.mjs} +2 -2
- package/dist/{guest-auth-provider-BLzLLs7u.mjs.map → guest-auth-provider-BkkSRli_.mjs.map} +1 -1
- package/dist/{guest-auth-provider-DkUngKob.js → guest-auth-provider-C7u3RFEX.js} +2 -2
- package/dist/{guest-auth-provider-DkUngKob.js.map → guest-auth-provider-C7u3RFEX.js.map} +1 -1
- package/dist/{guest-auth-provider-BLzLLs7u.mjs → guest-auth-provider-DZQWJu59.mjs} +2 -2
- package/dist/{guest-auth-provider-1GGM1eWA.mjs.map → guest-auth-provider-DZQWJu59.mjs.map} +1 -1
- package/dist/{index-C6p_-77w.js → index-CK36YlGT.js} +13 -12
- package/dist/{index-C6p_-77w.js.map → index-CK36YlGT.js.map} +1 -1
- package/dist/{index-Co7IqxVo.mjs → index-DuaMs1q-.mjs} +13 -12
- package/dist/{index-Co7IqxVo.mjs.map → index-DuaMs1q-.mjs.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{index.native-BoKkzObx.mjs → index.native-C5SoJAZn.mjs} +13 -12
- package/dist/{index.native-BoKkzObx.mjs.map → index.native-C5SoJAZn.mjs.map} +1 -1
- package/dist/{index.native-BTPOnWux.js → index.native-DoWvYWaz.js} +13 -12
- package/dist/{index.native-BTPOnWux.js.map → index.native-DoWvYWaz.js.map} +1 -1
- package/dist/index.native.js +1 -1
- package/dist/index.native.mjs +1 -1
- package/dist/{injected-evm-wallet-provider-Cjs3K7fU.js → injected-evm-wallet-provider-9ephHduG.js} +2 -2
- package/dist/{injected-evm-wallet-provider-Cjs3K7fU.js.map → injected-evm-wallet-provider-9ephHduG.js.map} +1 -1
- package/dist/{injected-evm-wallet-provider-Bsh00akg.mjs → injected-evm-wallet-provider-CMZE-rJ7.mjs} +2 -2
- package/dist/{injected-evm-wallet-provider-Bsh00akg.mjs.map → injected-evm-wallet-provider-CMZE-rJ7.mjs.map} +1 -1
- package/dist/{injected-evm-wallet-provider-DCqeV702.js → injected-evm-wallet-provider-GANZNy2j.js} +2 -2
- package/dist/{injected-evm-wallet-provider-DCqeV702.js.map → injected-evm-wallet-provider-GANZNy2j.js.map} +1 -1
- package/dist/{injected-evm-wallet-provider-CA9ENSN4.mjs → injected-evm-wallet-provider-bbFMPrsJ.mjs} +2 -2
- package/dist/{injected-evm-wallet-provider-CA9ENSN4.mjs.map → injected-evm-wallet-provider-bbFMPrsJ.mjs.map} +1 -1
- package/dist/{injected-wallet-provider-BwHOxPAR.mjs → injected-wallet-provider-BHBiq-r2.mjs} +2 -2
- package/dist/{injected-wallet-provider-BwHOxPAR.mjs.map → injected-wallet-provider-BHBiq-r2.mjs.map} +1 -1
- package/dist/{injected-wallet-provider-CfzCTdM5.js → injected-wallet-provider-CABVyh7K.js} +2 -2
- package/dist/{injected-wallet-provider-CfzCTdM5.js.map → injected-wallet-provider-CABVyh7K.js.map} +1 -1
- package/dist/{injected-wallet-provider-CmhZtf9E.js → injected-wallet-provider-C_EmEki7.js} +2 -2
- package/dist/{injected-wallet-provider-CmhZtf9E.js.map → injected-wallet-provider-C_EmEki7.js.map} +1 -1
- package/dist/{injected-wallet-provider-uF4yZt8l.mjs → injected-wallet-provider-DGN0kuf_.mjs} +2 -2
- package/dist/{injected-wallet-provider-uF4yZt8l.mjs.map → injected-wallet-provider-DGN0kuf_.mjs.map} +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { W as BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA, V as BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA, U as BUILD_REVIEW_CAPABILITY_SCHEMA, M as BuildsApiError, S as FAILURE_REASONS, N as NON_TERMINAL_STATES, O as OffchainAuthProvider, Q as PARK_REASONS, P as PrivyExpoProvider, R as RUN_STATES, T as TERMINAL_STATES, G as apps, L as builds, z as completeLoginFromRedirect, B as completeLoginInPopup, k as defaultInjectedEvmProvider, d as defaultInjectedProvider, H as deserializeTransaction, q as getAuthLoading, v as getAuthProvider, m as getCurrentUser, I as getIdToken, g as getPlatform, l as init, t as login, A as loginWithPopup, x as loginWithPrivy, y as loginWithRedirect, u as logout, p as onAuthLoadingChanged, o as onAuthStateChanged, K as requestEip6963Providers, J as setPlatform, w as signInAnonymously, C as useAuth, F as useBuildRun, D as useQuery } from './index-
|
|
1
|
+
export { W as BUILD_DELEGATED_REVIEW_CAPABILITY_SCHEMA, V as BUILD_REVIEW_CAPABILITY_REFRESH_SCHEMA, U as BUILD_REVIEW_CAPABILITY_SCHEMA, M as BuildsApiError, S as FAILURE_REASONS, N as NON_TERMINAL_STATES, O as OffchainAuthProvider, Q as PARK_REASONS, P as PrivyExpoProvider, R as RUN_STATES, T as TERMINAL_STATES, G as apps, L as builds, z as completeLoginFromRedirect, B as completeLoginInPopup, k as defaultInjectedEvmProvider, d as defaultInjectedProvider, H as deserializeTransaction, q as getAuthLoading, v as getAuthProvider, m as getCurrentUser, I as getIdToken, g as getPlatform, l as init, t as login, A as loginWithPopup, x as loginWithPrivy, y as loginWithRedirect, u as logout, p as onAuthLoadingChanged, o as onAuthStateChanged, K as requestEip6963Providers, J as setPlatform, w as signInAnonymously, C as useAuth, F as useBuildRun, D as useQuery } from './index-DuaMs1q-.mjs';
|
|
2
2
|
export * from '@bounded-sh/core';
|
|
3
3
|
export { BoundedDeclineError, DECLINE_EVENT_NAME, RATE_LIMIT_EVENT_NAME, aggregate, count, deriveDecline, dispatchDeclineEvent, dispatchRateLimitEvent, docId, get, getConfig, getFiles, getMany, queryAggregate, runExpression, runExpressionMany, runQuery, runQueryMany, search, set, setFile, setMany, signAndSubmitTransaction, signMessage, signTransaction, subscribe } from '@bounded-sh/core';
|
|
4
4
|
import 'react';
|
|
@@ -4443,7 +4443,7 @@ async function getAuthProvider(config) {
|
|
|
4443
4443
|
// manager as legacy email sessions. Human login should be started
|
|
4444
4444
|
// with loginWithRedirect(); this provider is kept as the restore and
|
|
4445
4445
|
// logout surface for those sessions.
|
|
4446
|
-
currentAuthProvider = new (await import('./email-auth-provider-
|
|
4446
|
+
currentAuthProvider = new (await import('./email-auth-provider-BGc8H93l.mjs')).EmailAuthProvider();
|
|
4447
4447
|
break;
|
|
4448
4448
|
case "wallet":
|
|
4449
4449
|
case "phantom": {
|
|
@@ -4462,7 +4462,7 @@ async function getAuthProvider(config) {
|
|
|
4462
4462
|
if (!isWalletLoginEnabled(config)) {
|
|
4463
4463
|
throw walletLoginNotEnabledError(authMethod);
|
|
4464
4464
|
}
|
|
4465
|
-
const { InjectedWalletProvider } = await import('./injected-wallet-provider-
|
|
4465
|
+
const { InjectedWalletProvider } = await import('./injected-wallet-provider-BHBiq-r2.mjs');
|
|
4466
4466
|
currentAuthProvider = new InjectedWalletProvider(resolveInjectedWalletConfig(config), rpcUrl, configuredNetwork);
|
|
4467
4467
|
break;
|
|
4468
4468
|
}
|
|
@@ -4475,7 +4475,7 @@ async function getAuthProvider(config) {
|
|
|
4475
4475
|
// Selecting authMethod:'evm-wallet' IS the opt-in — pass evmWalletConfig
|
|
4476
4476
|
// to point at a specific wallet or set chainId/domain.
|
|
4477
4477
|
const evmWalletConfig = ((_a = config.evmWalletConfig) !== null && _a !== void 0 ? _a : {});
|
|
4478
|
-
const { InjectedEvmWalletProvider } = await import('./injected-evm-wallet-provider-
|
|
4478
|
+
const { InjectedEvmWalletProvider } = await import('./injected-evm-wallet-provider-bbFMPrsJ.mjs');
|
|
4479
4479
|
currentAuthProvider = new InjectedEvmWalletProvider(evmWalletConfig);
|
|
4480
4480
|
break;
|
|
4481
4481
|
}
|
|
@@ -4503,7 +4503,7 @@ async function getAuthProvider(config) {
|
|
|
4503
4503
|
break;
|
|
4504
4504
|
case "guest":
|
|
4505
4505
|
// Anonymous auth: a device-local ed25519 keypair signs the challenge.
|
|
4506
|
-
currentAuthProvider = new (await import('./guest-auth-provider-
|
|
4506
|
+
currentAuthProvider = new (await import('./guest-auth-provider-BkkSRli_.mjs')).GuestAuthProvider();
|
|
4507
4507
|
break;
|
|
4508
4508
|
}
|
|
4509
4509
|
if (!currentAuthProvider) {
|
|
@@ -4559,7 +4559,7 @@ async function signInAnonymously() {
|
|
|
4559
4559
|
// Lazy-load the guest provider so its ed25519/web3 dependencies stay out of
|
|
4560
4560
|
// the main bundle for data-only apps. Specifier is a static string literal
|
|
4561
4561
|
// so bundle-splitting can see it.
|
|
4562
|
-
const provider = new (await import('./guest-auth-provider-
|
|
4562
|
+
const provider = new (await import('./guest-auth-provider-BkkSRli_.mjs')).GuestAuthProvider();
|
|
4563
4563
|
setAuthLoading(true); // reflect "signing in…" while the guest keypair session is minted
|
|
4564
4564
|
const commit = (user) => {
|
|
4565
4565
|
// No await/interleaving inside this block: provider/method/config/marker
|
|
@@ -5608,14 +5608,12 @@ const builds = {
|
|
|
5608
5608
|
};
|
|
5609
5609
|
|
|
5610
5610
|
async function create(options = {}) {
|
|
5611
|
-
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.
|
|
5611
|
+
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.idempotencyKey !== undefined ? { idempotencyKey: options.idempotencyKey } : {})), (options.intent !== undefined ? { intent: options.intent } : {})), (options.oapp === true ? { oapp: true } : {}));
|
|
5612
5612
|
const app = await requestDevApi('/apps/new', {
|
|
5613
5613
|
method: 'POST',
|
|
5614
5614
|
body,
|
|
5615
5615
|
});
|
|
5616
|
-
return Object.assign(Object.assign({ appId: app.appId }, (typeof app.slug === 'string' && app.slug ? { slug: app.slug } : {})), { url: app.url
|
|
5617
|
-
// Fail closed against an older server response that omitted this field.
|
|
5618
|
-
policySeeded: app.policySeeded === true });
|
|
5616
|
+
return Object.assign(Object.assign({ appId: app.appId }, (typeof app.slug === 'string' && app.slug ? { slug: app.slug } : {})), { url: app.url });
|
|
5619
5617
|
}
|
|
5620
5618
|
async function list() {
|
|
5621
5619
|
// This legacy-compatible action shape is also used by oapps.fun listMyApps.
|
|
@@ -5636,8 +5634,11 @@ async function list() {
|
|
|
5636
5634
|
const name = String((_d = row.name) !== null && _d !== void 0 ? _d : '').trim() || '(unnamed app)';
|
|
5637
5635
|
const slug = typeof row.slug === 'string' && row.slug ? row.slug : undefined;
|
|
5638
5636
|
const url = typeof row.url === 'string' && row.url.trim() ? row.url.trim() : undefined;
|
|
5639
|
-
|
|
5640
|
-
|
|
5637
|
+
const buildStatus = row.buildStatus === 'building' || row.buildStatus === 'build_failed'
|
|
5638
|
+
? row.buildStatus
|
|
5639
|
+
: undefined;
|
|
5640
|
+
return Object.assign(Object.assign(Object.assign({ appId,
|
|
5641
|
+
name }, (slug ? { slug } : {})), (url ? { url } : {})), (buildStatus ? { buildStatus } : {}));
|
|
5641
5642
|
})
|
|
5642
5643
|
.filter((app) => app !== null);
|
|
5643
5644
|
}
|
|
@@ -6043,4 +6044,4 @@ class PrivyExpoProvider {
|
|
|
6043
6044
|
}
|
|
6044
6045
|
|
|
6045
6046
|
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, 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 };
|
|
6046
|
-
//# sourceMappingURL=index.native-
|
|
6047
|
+
//# sourceMappingURL=index.native-C5SoJAZn.mjs.map
|