@pollar/core 0.5.3 → 0.7.0
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 +276 -42
- package/dist/adapters/expo-secure-store.d.mts +26 -0
- package/dist/adapters/expo-secure-store.d.ts +26 -0
- package/dist/adapters/expo-secure-store.js +53 -0
- package/dist/adapters/expo-secure-store.js.map +1 -0
- package/dist/adapters/expo-secure-store.mjs +50 -0
- package/dist/adapters/expo-secure-store.mjs.map +1 -0
- package/dist/adapters/react-native-keychain.d.mts +25 -0
- package/dist/adapters/react-native-keychain.d.ts +25 -0
- package/dist/adapters/react-native-keychain.js +60 -0
- package/dist/adapters/react-native-keychain.js.map +1 -0
- package/dist/adapters/react-native-keychain.mjs +57 -0
- package/dist/adapters/react-native-keychain.mjs.map +1 -0
- package/dist/index.d.mts +743 -36
- package/dist/index.d.ts +743 -36
- package/dist/index.js +819 -124
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +811 -125
- package/dist/index.mjs.map +1 -1
- package/dist/index.rn.d.mts +30 -0
- package/dist/index.rn.d.ts +30 -0
- package/dist/index.rn.js +2627 -0
- package/dist/index.rn.js.map +1 -0
- package/dist/index.rn.mjs +2599 -0
- package/dist/index.rn.mjs.map +1 -0
- package/dist/types-DqgJIJBl.d.mts +19 -0
- package/dist/types-DqgJIJBl.d.ts +19 -0
- package/package.json +54 -2
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { KeyManager, PublicEcJwk } from './index.mjs';
|
|
2
|
+
export { AUTH_ERROR_CODES, AdapterFn, AlbedoAdapter, AuthErrorCode, AuthState, BuildProofArgs, ConnectWalletResponse, FreighterAdapter, KycFlow, KycLevel, KycProvider, KycStartBody, KycStartResponse, KycStatus, LocalStorageAdapterOptions, NetworkState, PaymentInstructions, PollarAdapter, PollarAdapters, PollarApiClient, PollarApplicationConfigContent, PollarApplicationConfigResponse, PollarClient, PollarClientConfig, PollarFlowError, PollarLoginOptions, PollarPersistedSession, PollarUserProfile, RampDirection, RampQuote, RampTxStatus, RampsOfframpBody, RampsOfframpResponse, RampsOnrampBody, RampsOnrampResponse, RampsQuoteQuery, RampsQuoteResponse, RampsTransactionResponse, SessionInfo, SignAuthEntryOptions, SignAuthEntryResponse, SignTransactionOptions, SignTransactionResponse, StellarBalance, StellarClient, StellarClientConfig, StellarNetwork, TransactionState, TxBuildBody, TxBuildContent, TxBuildResponse, TxHistoryContent, TxHistoryParams, TxHistoryRecord, TxHistoryState, TxSignAndSendBody, TxSignSendResponse, WalletAdapter, WalletAdapterResolver, WalletBalanceContent, WalletBalanceRecord, WalletBalanceState, WalletId, WalletType, WebCryptoKeyManager, buildProof, canonicalEcJwk, computeJwkThumbprint, createLocalStorageAdapter, createMemoryAdapter, createOffRamp, createOnRamp, defaultKeyManager, defaultStorage, getKycProviders, getKycStatus, getRampTransaction, getRampsQuote, isValidSession, normalizeHtu, pollKycStatus, pollRampTransaction, pollarPaths, resolveKyc, startKyc } from './index.mjs';
|
|
3
|
+
import { S as Storage } from './types-DqgJIJBl.mjs';
|
|
4
|
+
export { O as OnStorageDegrade, a as StorageDegradeReason } from './types-DqgJIJBl.mjs';
|
|
5
|
+
import 'openapi-fetch';
|
|
6
|
+
|
|
7
|
+
declare class NobleKeyManager implements KeyManager {
|
|
8
|
+
private readonly storage;
|
|
9
|
+
private readonly apiKey;
|
|
10
|
+
private apiKeyHash;
|
|
11
|
+
private privateKey;
|
|
12
|
+
private publicJwk;
|
|
13
|
+
private thumbprint;
|
|
14
|
+
/** Cached in-flight init — see `WebCryptoKeyManager` for the rationale. */
|
|
15
|
+
private _initPromise;
|
|
16
|
+
constructor(storage: Storage, apiKey: string);
|
|
17
|
+
private get storageKey();
|
|
18
|
+
/**
|
|
19
|
+
* Idempotent and safe under concurrency. Other methods auto-await this so
|
|
20
|
+
* the manager is self-healing if `init()` was never explicitly invoked.
|
|
21
|
+
*/
|
|
22
|
+
init(): Promise<void>;
|
|
23
|
+
private _doInit;
|
|
24
|
+
reset(): Promise<void>;
|
|
25
|
+
getPublicJwk(): Promise<PublicEcJwk>;
|
|
26
|
+
getThumbprint(): Promise<string>;
|
|
27
|
+
sign(payload: Uint8Array): Promise<Uint8Array>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { KeyManager, NobleKeyManager, PublicEcJwk, Storage };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { KeyManager, PublicEcJwk } from './index.js';
|
|
2
|
+
export { AUTH_ERROR_CODES, AdapterFn, AlbedoAdapter, AuthErrorCode, AuthState, BuildProofArgs, ConnectWalletResponse, FreighterAdapter, KycFlow, KycLevel, KycProvider, KycStartBody, KycStartResponse, KycStatus, LocalStorageAdapterOptions, NetworkState, PaymentInstructions, PollarAdapter, PollarAdapters, PollarApiClient, PollarApplicationConfigContent, PollarApplicationConfigResponse, PollarClient, PollarClientConfig, PollarFlowError, PollarLoginOptions, PollarPersistedSession, PollarUserProfile, RampDirection, RampQuote, RampTxStatus, RampsOfframpBody, RampsOfframpResponse, RampsOnrampBody, RampsOnrampResponse, RampsQuoteQuery, RampsQuoteResponse, RampsTransactionResponse, SessionInfo, SignAuthEntryOptions, SignAuthEntryResponse, SignTransactionOptions, SignTransactionResponse, StellarBalance, StellarClient, StellarClientConfig, StellarNetwork, TransactionState, TxBuildBody, TxBuildContent, TxBuildResponse, TxHistoryContent, TxHistoryParams, TxHistoryRecord, TxHistoryState, TxSignAndSendBody, TxSignSendResponse, WalletAdapter, WalletAdapterResolver, WalletBalanceContent, WalletBalanceRecord, WalletBalanceState, WalletId, WalletType, WebCryptoKeyManager, buildProof, canonicalEcJwk, computeJwkThumbprint, createLocalStorageAdapter, createMemoryAdapter, createOffRamp, createOnRamp, defaultKeyManager, defaultStorage, getKycProviders, getKycStatus, getRampTransaction, getRampsQuote, isValidSession, normalizeHtu, pollKycStatus, pollRampTransaction, pollarPaths, resolveKyc, startKyc } from './index.js';
|
|
3
|
+
import { S as Storage } from './types-DqgJIJBl.js';
|
|
4
|
+
export { O as OnStorageDegrade, a as StorageDegradeReason } from './types-DqgJIJBl.js';
|
|
5
|
+
import 'openapi-fetch';
|
|
6
|
+
|
|
7
|
+
declare class NobleKeyManager implements KeyManager {
|
|
8
|
+
private readonly storage;
|
|
9
|
+
private readonly apiKey;
|
|
10
|
+
private apiKeyHash;
|
|
11
|
+
private privateKey;
|
|
12
|
+
private publicJwk;
|
|
13
|
+
private thumbprint;
|
|
14
|
+
/** Cached in-flight init — see `WebCryptoKeyManager` for the rationale. */
|
|
15
|
+
private _initPromise;
|
|
16
|
+
constructor(storage: Storage, apiKey: string);
|
|
17
|
+
private get storageKey();
|
|
18
|
+
/**
|
|
19
|
+
* Idempotent and safe under concurrency. Other methods auto-await this so
|
|
20
|
+
* the manager is self-healing if `init()` was never explicitly invoked.
|
|
21
|
+
*/
|
|
22
|
+
init(): Promise<void>;
|
|
23
|
+
private _doInit;
|
|
24
|
+
reset(): Promise<void>;
|
|
25
|
+
getPublicJwk(): Promise<PublicEcJwk>;
|
|
26
|
+
getThumbprint(): Promise<string>;
|
|
27
|
+
sign(payload: Uint8Array): Promise<Uint8Array>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { KeyManager, NobleKeyManager, PublicEcJwk, Storage };
|