@bounded-sh/client 0.0.6 → 0.0.8

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.
Files changed (55) hide show
  1. package/dist/auth/index.d.ts +15 -0
  2. package/dist/auth/oidc-auth.d.ts +25 -11
  3. package/dist/auth/providers/email-auth-provider.d.ts +10 -0
  4. package/dist/auth/providers/mock-auth-provider.d.ts +1 -0
  5. package/dist/auth/providers/privy-wallet-provider.d.ts +2 -0
  6. package/dist/index.d.ts +2 -1
  7. package/dist/index.esm.js +24058 -7
  8. package/dist/index.esm.js.map +1 -1
  9. package/dist/index.js +24177 -108
  10. package/dist/index.js.map +1 -1
  11. package/dist/{index.native-Lrhg8G-G.js → index.native-C-duG1XV.js} +494 -2625
  12. package/dist/index.native-C-duG1XV.js.map +1 -0
  13. package/dist/{index.native-Y7aFGpZp.esm.js → index.native-DnVLH-7o.esm.js} +492 -2624
  14. package/dist/index.native-DnVLH-7o.esm.js.map +1 -0
  15. package/dist/index.native.d.ts +2 -1
  16. package/dist/index.native.esm.js +1 -1
  17. package/dist/index.native.js +3 -1
  18. package/dist/index.native.js.map +1 -1
  19. package/dist/{phantom-wallet-provider-DQDZjZkl.js → phantom-wallet-provider-DKScS8m6.js} +3 -3
  20. package/dist/{phantom-wallet-provider-DQDZjZkl.js.map → phantom-wallet-provider-DKScS8m6.js.map} +1 -1
  21. package/dist/{phantom-wallet-provider-K10GQBxk.esm.js → phantom-wallet-provider-DfTqdjx7.esm.js} +3 -3
  22. package/dist/{phantom-wallet-provider-K10GQBxk.esm.js.map → phantom-wallet-provider-DfTqdjx7.esm.js.map} +1 -1
  23. package/dist/{privy-wallet-provider-scXNSzjF.esm.js → privy-wallet-provider-BpPAZyUD.esm.js} +43 -23
  24. package/dist/privy-wallet-provider-BpPAZyUD.esm.js.map +1 -0
  25. package/dist/{privy-wallet-provider-Dh_jHrsq.js → privy-wallet-provider-wCTdqpRq.js} +43 -23
  26. package/dist/privy-wallet-provider-wCTdqpRq.js.map +1 -0
  27. package/dist/{solana-mobile-wallet-provider-DMXR_nmz.js → solana-mobile-wallet-provider-DZx3xVit.js} +5 -5
  28. package/dist/{solana-mobile-wallet-provider-DMXR_nmz.js.map → solana-mobile-wallet-provider-DZx3xVit.js.map} +1 -1
  29. package/dist/{solana-mobile-wallet-provider-BlwQuB4D.esm.js → solana-mobile-wallet-provider-xmASWrPf.esm.js} +5 -5
  30. package/dist/{solana-mobile-wallet-provider-BlwQuB4D.esm.js.map → solana-mobile-wallet-provider-xmASWrPf.esm.js.map} +1 -1
  31. package/package.json +23 -12
  32. package/dist/index-BzOrZU4R.esm.js +0 -16841
  33. package/dist/index-BzOrZU4R.esm.js.map +0 -1
  34. package/dist/index-CSUmsmHJ.js +0 -16884
  35. package/dist/index-CSUmsmHJ.js.map +0 -1
  36. package/dist/index-CtMYXtmh.js +0 -16882
  37. package/dist/index-CtMYXtmh.js.map +0 -1
  38. package/dist/index-DAI10qql.esm.js +0 -16843
  39. package/dist/index-DAI10qql.esm.js.map +0 -1
  40. package/dist/index-Dj2C_uV6.js +0 -26293
  41. package/dist/index-Dj2C_uV6.js.map +0 -1
  42. package/dist/index-Oc5pQUDo.esm.js +0 -26171
  43. package/dist/index-Oc5pQUDo.esm.js.map +0 -1
  44. package/dist/index.browser-BxwM4axz.esm.js +0 -5064
  45. package/dist/index.browser-BxwM4axz.esm.js.map +0 -1
  46. package/dist/index.browser-C_TToxuO.esm.js +0 -4208
  47. package/dist/index.browser-C_TToxuO.esm.js.map +0 -1
  48. package/dist/index.browser-Cp6PqsEM.js +0 -5074
  49. package/dist/index.browser-Cp6PqsEM.js.map +0 -1
  50. package/dist/index.browser-DcHalmEf.js +0 -4213
  51. package/dist/index.browser-DcHalmEf.js.map +0 -1
  52. package/dist/index.native-Lrhg8G-G.js.map +0 -1
  53. package/dist/index.native-Y7aFGpZp.esm.js.map +0 -1
  54. package/dist/privy-wallet-provider-Dh_jHrsq.js.map +0 -1
  55. package/dist/privy-wallet-provider-scXNSzjF.esm.js.map +0 -1
@@ -9,8 +9,9 @@
9
9
  */
10
10
  export { init, getCurrentUser, onAuthStateChanged, onAuthLoadingChanged, getAuthLoading, login, logout, } from "./global";
11
11
  export { getConfig } from "@bounded-sh/core";
12
- export { getAuthProvider, signInAnonymously, sendEmailOtp, verifyEmailOtp, linkEmail, loginWithPrivy } from "./auth";
12
+ export { getAuthProvider, signInAnonymously, sendEmailOtp, sendTextOtp, verifyEmailOtp, verifyTextOtp, linkEmail, loginWithPrivy } from "./auth";
13
13
  export { loginWithRedirect, linkWithRedirect, completeLoginFromRedirect, loginWithPopup, completeLoginInPopup } from "./auth";
14
+ export type { HostedAuthMethod, OidcLoginOptions, PopupLoginOptions } from "./auth";
14
15
  export { get, getMany, docId, set, setMany, setFile, getFiles, search, queryAggregate, runQuery, runQueryMany, runExpression, runExpressionMany, signMessage, signTransaction, signAndSubmitTransaction, count, aggregate, GetOptions, SearchOptions, SetOptions, CountOptions, AggregateOptions, AggregateOperation, AggregateResult, AggregateSpec, AggregateRow, QueryAggregateOptions, } from "@bounded-sh/core";
15
16
  export type { GetOptions as BoundedGetOptions } from "@bounded-sh/core";
16
17
  export { subscribe } from "@bounded-sh/core";
@@ -1,4 +1,4 @@
1
- export { a8 as DEFAULT_TEST_ADDRESS, ab as EFFECT_INTENT_ADDRESS, ac as FunctionInvokeError, ad as InsufficientBalanceError, ae as LiveIntentError, a7 as MockAuthProvider, a9 as OffchainAuthProvider, aa as PrivyExpoProvider, af as ReactNativeSessionManager, ag as RealtimeStore, ah as ServerSessionManager, W as WebSessionManager, a1 as aggregate, a as buildSetDocumentsTransaction, ai as clearCache, aj as closeAllSubscriptions, H as completeLoginFromRedirect, J as completeLoginInPopup, c as convertRemainingAccounts, a0 as count, m as createSessionWithSignature, ak as defineLiveModule, al as deriveUserIdentityFromIdToken, a4 as deserializeTransaction, M as docId, am as functions, k as genAuthNonce, l as genSolanaMessage, K as get, n as getActiveSessionManager, v as getAuthLoading, z as getAuthProvider, an as getCachedData, y as getConfig, r as getCurrentUser, Q as getFiles, a5 as getIdToken, L as getMany, i as getPlatform, ao as getRealtimeStore, ap as getWebhookKeysUrl, aq as hasActiveConnection, ar as increment, q as init, as as invokeFunction, at as isEffectResult, D as linkEmail, G as linkWithRedirect, au as live, av as liveIntent, aw as liveStatus, w as login, I as loginWithPopup, E as loginWithPrivy, F as loginWithRedirect, x as logout, ax as now, u as onAuthLoadingChanged, t as onAuthStateChanged, T as queryAggregate, ay as reconnectWithNewAuth, az as refreshSession, aA as resetRealtimeStore, aB as revokeSession, X as runExpression, Y as runExpressionMany, U as runQuery, V as runQueryMany, R as search, B as sendEmailOtp, aC as serverTimestamp, N as set, P as setFile, O as setMany, a6 as setPlatform, $ as signAndSubmitTransaction, A as signInAnonymously, Z as signMessage, aD as signSessionCreateMessage, _ as signTransaction, a2 as subscribe, aE as subscribeLiveView, aF as toMillis, aG as toSeconds, a3 as useAuth, C as verifyEmailOtp, aH as withEffects, aI as wsDelete, aJ as wsGet, aK as wsGetMany, aL as wsQuery, aM as wsSet } from './index.native-Y7aFGpZp.esm.js';
1
+ export { a9 as DEFAULT_TEST_ADDRESS, ac as EFFECT_INTENT_ADDRESS, ad as FunctionInvokeError, ae as InsufficientBalanceError, af as LiveIntentError, a8 as MockAuthProvider, aa as OffchainAuthProvider, ab as PrivyExpoProvider, ag as ReactNativeSessionManager, ah as RealtimeStore, ai as ServerSessionManager, W as WebSessionManager, a2 as aggregate, a as buildSetDocumentsTransaction, aj as clearCache, ak as closeAllSubscriptions, I as completeLoginFromRedirect, K as completeLoginInPopup, c as convertRemainingAccounts, a1 as count, m as createSessionWithSignature, al as defineLiveModule, am as deriveUserIdentityFromIdToken, a5 as deserializeTransaction, N as docId, an as functions, k as genAuthNonce, l as genSolanaMessage, L as get, n as getActiveSessionManager, u as getAuthLoading, y as getAuthProvider, ao as getCachedData, x as getConfig, q as getCurrentUser, R as getFiles, a6 as getIdToken, M as getMany, i as getPlatform, ap as getRealtimeStore, aq as getWebhookKeysUrl, ar as hasActiveConnection, as as increment, p as init, at as invokeFunction, au as isEffectResult, E as linkEmail, H as linkWithRedirect, av as live, aw as liveIntent, ax as liveStatus, v as login, J as loginWithPopup, F as loginWithPrivy, G as loginWithRedirect, w as logout, ay as now, t as onAuthLoadingChanged, r as onAuthStateChanged, U as queryAggregate, az as reconnectWithNewAuth, aA as refreshSession, aB as resetRealtimeStore, aC as revokeSession, Y as runExpression, Z as runExpressionMany, V as runQuery, X as runQueryMany, T as search, A as sendEmailOtp, B as sendTextOtp, aD as serverTimestamp, O as set, Q as setFile, P as setMany, a7 as setPlatform, a0 as signAndSubmitTransaction, z as signInAnonymously, _ as signMessage, aE as signSessionCreateMessage, $ as signTransaction, a3 as subscribe, aF as subscribeLiveView, aG as toMillis, aH as toSeconds, a4 as useAuth, C as verifyEmailOtp, D as verifyTextOtp, aI as withEffects, aJ as wsDelete, aK as wsGet, aL as wsGetMany, aM as wsQuery, aN as wsSet } from './index.native-DnVLH-7o.esm.js';
2
2
  import 'axios';
3
3
  import '@solana/web3.js';
4
4
  import '@coral-xyz/anchor';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index_native = require('./index.native-Lrhg8G-G.js');
3
+ var index_native = require('./index.native-C-duG1XV.js');
4
4
  require('axios');
5
5
  require('@solana/web3.js');
6
6
  require('@coral-xyz/anchor');
@@ -78,6 +78,7 @@ exports.runQuery = index_native.runQuery;
78
78
  exports.runQueryMany = index_native.runQueryMany;
79
79
  exports.search = index_native.search;
80
80
  exports.sendEmailOtp = index_native.sendEmailOtp;
81
+ exports.sendTextOtp = index_native.sendTextOtp;
81
82
  exports.serverTimestamp = index_native.serverTimestamp;
82
83
  exports.set = index_native.set;
83
84
  exports.setFile = index_native.setFile;
@@ -94,6 +95,7 @@ exports.toMillis = index_native.toMillis;
94
95
  exports.toSeconds = index_native.toSeconds;
95
96
  exports.useAuth = index_native.useAuth;
96
97
  exports.verifyEmailOtp = index_native.verifyEmailOtp;
98
+ exports.verifyTextOtp = index_native.verifyTextOtp;
97
99
  exports.withEffects = index_native.withEffects;
98
100
  exports.wsDelete = index_native.wsDelete;
99
101
  exports.wsGet = index_native.wsGet;
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.native.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index_native = require('./index.native-Lrhg8G-G.js');
3
+ var index_native = require('./index.native-C-duG1XV.js');
4
4
  var web3_js = require('@solana/web3.js');
5
5
  var anchor = require('@coral-xyz/anchor');
6
6
  require('axios');
@@ -93,7 +93,7 @@ async function loadDependencies() {
93
93
  const [reactModule, reactDomModule, phantomModule] = await Promise.all([
94
94
  import('react'),
95
95
  import('react-dom/client'),
96
- Promise.resolve().then(function () { return require('./index-CtMYXtmh.js'); })
96
+ import('@phantom/react-sdk')
97
97
  ]);
98
98
  // Extract default export from ESM module namespace
99
99
  // Dynamic import() returns { default: Module, ...exports }, not the module directly
@@ -1463,4 +1463,4 @@ class PhantomWalletProvider {
1463
1463
  PhantomWalletProvider.instance = null;
1464
1464
 
1465
1465
  exports.PhantomWalletProvider = PhantomWalletProvider;
1466
- //# sourceMappingURL=phantom-wallet-provider-DQDZjZkl.js.map
1466
+ //# sourceMappingURL=phantom-wallet-provider-DKScS8m6.js.map