@opendatalabs/vana-sdk 0.1.0-alpha.5e925dc → 0.1.0-alpha.e64ec83
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/chains.browser.cjs +93 -0
- package/dist/chains.browser.cjs.map +1 -0
- package/dist/chains.browser.d.cts +52 -0
- package/dist/chains.browser.d.ts +52 -0
- package/dist/chains.browser.js +63 -0
- package/dist/chains.browser.js.map +1 -0
- package/dist/chains.cjs +93 -0
- package/dist/chains.cjs.map +1 -0
- package/dist/chains.d.cts +2 -0
- package/dist/chains.d.ts +2 -0
- package/dist/chains.js +63 -0
- package/dist/chains.js.map +1 -0
- package/dist/chains.node.cjs +93 -0
- package/dist/chains.node.cjs.map +1 -0
- package/dist/chains.node.d.cts +2 -0
- package/dist/chains.node.d.ts +2 -0
- package/dist/chains.node.js +63 -0
- package/dist/chains.node.js.map +1 -0
- package/dist/index.browser.d.ts +50 -12
- package/dist/index.browser.js +458 -388
- package/dist/index.browser.js.map +1 -1
- package/dist/index.d.cts +236 -150
- package/dist/index.node.cjs +538 -51
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.d.cts +79 -1
- package/dist/index.node.d.ts +79 -1
- package/dist/index.node.js +529 -51
- package/dist/index.node.js.map +1 -1
- package/dist/platform.browser.d.ts +224 -0
- package/dist/platform.browser.js +467 -0
- package/dist/platform.browser.js.map +1 -0
- package/dist/platform.cjs +809 -0
- package/dist/platform.cjs.map +1 -0
- package/dist/platform.d.cts +1 -0
- package/dist/platform.d.ts +1 -0
- package/dist/platform.js +772 -0
- package/dist/platform.js.map +1 -0
- package/dist/platform.node.cjs +809 -0
- package/dist/platform.node.cjs.map +1 -0
- package/dist/platform.node.d.cts +264 -0
- package/dist/platform.node.d.ts +264 -0
- package/dist/platform.node.js +772 -0
- package/dist/platform.node.js.map +1 -0
- package/package.json +36 -2
package/dist/index.d.cts
CHANGED
|
@@ -3,6 +3,241 @@ import { Chain, Address, Hash, WalletClient, Account, Abi, GetContractReturnType
|
|
|
3
3
|
export { Abi, Account, Address, Chain, GetContractReturnType, Hash, PublicClient, WalletClient } from 'viem';
|
|
4
4
|
import { Abi as Abi$1 } from 'abitype';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Platform Adapter interface for environment-specific implementations
|
|
8
|
+
*
|
|
9
|
+
* This interface abstracts all environment-specific dependencies to ensure
|
|
10
|
+
* the SDK works seamlessly across Node.js and browser/SSR environments.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Platform type identifier
|
|
14
|
+
*/
|
|
15
|
+
type PlatformType = "node" | "browser";
|
|
16
|
+
/**
|
|
17
|
+
* Encryption operations that require different implementations per platform
|
|
18
|
+
*/
|
|
19
|
+
interface VanaCryptoAdapter {
|
|
20
|
+
/**
|
|
21
|
+
* Encrypt data with a public key using asymmetric cryptography
|
|
22
|
+
*
|
|
23
|
+
* @param data The data to encrypt
|
|
24
|
+
* @param publicKey The public key for encryption
|
|
25
|
+
* @returns Promise resolving to encrypted data
|
|
26
|
+
*/
|
|
27
|
+
encryptWithPublicKey(data: string, publicKey: string): Promise<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Decrypt data with a private key using asymmetric cryptography
|
|
30
|
+
*
|
|
31
|
+
* @param encryptedData The encrypted data
|
|
32
|
+
* @param privateKey The private key for decryption
|
|
33
|
+
* @returns Promise resolving to decrypted data
|
|
34
|
+
*/
|
|
35
|
+
decryptWithPrivateKey(encryptedData: string, privateKey: string): Promise<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Generate a new key pair for asymmetric cryptography
|
|
38
|
+
*
|
|
39
|
+
* @returns Promise resolving to public and private key pair
|
|
40
|
+
*/
|
|
41
|
+
generateKeyPair(): Promise<{
|
|
42
|
+
publicKey: string;
|
|
43
|
+
privateKey: string;
|
|
44
|
+
}>;
|
|
45
|
+
/**
|
|
46
|
+
* Encrypt data with a wallet's public key using ECDH cryptography
|
|
47
|
+
* Uses platform-appropriate ECDH implementation (eccrypto vs eccrypto-js)
|
|
48
|
+
*
|
|
49
|
+
* @param data The data to encrypt (string)
|
|
50
|
+
* @param publicKey The wallet's public key (secp256k1)
|
|
51
|
+
* @returns Promise resolving to encrypted data as hex string
|
|
52
|
+
*/
|
|
53
|
+
encryptWithWalletPublicKey(data: string, publicKey: string): Promise<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Decrypt data with a wallet's private key using ECDH cryptography
|
|
56
|
+
* Uses platform-appropriate ECDH implementation (eccrypto vs eccrypto-js)
|
|
57
|
+
*
|
|
58
|
+
* @param encryptedData The encrypted data as hex string
|
|
59
|
+
* @param privateKey The wallet's private key (secp256k1)
|
|
60
|
+
* @returns Promise resolving to decrypted data as string
|
|
61
|
+
*/
|
|
62
|
+
decryptWithWalletPrivateKey(encryptedData: string, privateKey: string): Promise<string>;
|
|
63
|
+
/**
|
|
64
|
+
* Encrypt data with a password using PGP password-based encryption
|
|
65
|
+
* Uses platform-appropriate OpenPGP implementation with consistent format
|
|
66
|
+
*
|
|
67
|
+
* @param data The data to encrypt as Uint8Array
|
|
68
|
+
* @param password The password for encryption (typically wallet signature)
|
|
69
|
+
* @returns Promise resolving to encrypted data as Uint8Array
|
|
70
|
+
*/
|
|
71
|
+
encryptWithPassword(data: Uint8Array, password: string): Promise<Uint8Array>;
|
|
72
|
+
/**
|
|
73
|
+
* Decrypt data with a password using PGP password-based decryption
|
|
74
|
+
* Uses platform-appropriate OpenPGP implementation with consistent format
|
|
75
|
+
*
|
|
76
|
+
* @param encryptedData The encrypted data as Uint8Array
|
|
77
|
+
* @param password The password for decryption (typically wallet signature)
|
|
78
|
+
* @returns Promise resolving to decrypted data as Uint8Array
|
|
79
|
+
*/
|
|
80
|
+
decryptWithPassword(encryptedData: Uint8Array, password: string): Promise<Uint8Array>;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* PGP operations that require different configurations per platform
|
|
84
|
+
*/
|
|
85
|
+
interface VanaPGPAdapter {
|
|
86
|
+
/**
|
|
87
|
+
* Encrypt data using PGP with proper platform configuration
|
|
88
|
+
*
|
|
89
|
+
* @param data The data to encrypt
|
|
90
|
+
* @param publicKey The PGP public key
|
|
91
|
+
* @returns Promise resolving to encrypted data
|
|
92
|
+
*/
|
|
93
|
+
encrypt(data: string, publicKey: string): Promise<string>;
|
|
94
|
+
/**
|
|
95
|
+
* Decrypt data using PGP with proper platform configuration
|
|
96
|
+
*
|
|
97
|
+
* @param encryptedData The encrypted data
|
|
98
|
+
* @param privateKey The PGP private key
|
|
99
|
+
* @returns Promise resolving to decrypted data
|
|
100
|
+
*/
|
|
101
|
+
decrypt(encryptedData: string, privateKey: string): Promise<string>;
|
|
102
|
+
/**
|
|
103
|
+
* Generate a new PGP key pair with platform-appropriate configuration
|
|
104
|
+
*
|
|
105
|
+
* @param options - Key generation options
|
|
106
|
+
* @param options.name - The name for the PGP key
|
|
107
|
+
* @param options.email - The email for the PGP key
|
|
108
|
+
* @param options.passphrase - Optional passphrase to protect the private key
|
|
109
|
+
* @returns Promise resolving to public and private key pair
|
|
110
|
+
*/
|
|
111
|
+
generateKeyPair(options?: {
|
|
112
|
+
name?: string;
|
|
113
|
+
email?: string;
|
|
114
|
+
passphrase?: string;
|
|
115
|
+
}): Promise<{
|
|
116
|
+
publicKey: string;
|
|
117
|
+
privateKey: string;
|
|
118
|
+
}>;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* HTTP operations that need consistent API across platforms
|
|
122
|
+
*/
|
|
123
|
+
interface VanaHttpAdapter {
|
|
124
|
+
/**
|
|
125
|
+
* Perform HTTP request with platform-appropriate fetch implementation
|
|
126
|
+
*
|
|
127
|
+
* @param url The URL to request
|
|
128
|
+
* @param options Request options
|
|
129
|
+
* @returns Promise resolving to response
|
|
130
|
+
*/
|
|
131
|
+
fetch(url: string, options?: RequestInit): Promise<Response>;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Main platform adapter interface that combines all platform-specific functionality
|
|
135
|
+
*/
|
|
136
|
+
interface VanaPlatformAdapter {
|
|
137
|
+
/**
|
|
138
|
+
* Crypto operations adapter
|
|
139
|
+
*/
|
|
140
|
+
crypto: VanaCryptoAdapter;
|
|
141
|
+
/**
|
|
142
|
+
* PGP operations adapter
|
|
143
|
+
*/
|
|
144
|
+
pgp: VanaPGPAdapter;
|
|
145
|
+
/**
|
|
146
|
+
* HTTP operations adapter
|
|
147
|
+
*/
|
|
148
|
+
http: VanaHttpAdapter;
|
|
149
|
+
/**
|
|
150
|
+
* Platform identifier for debugging/telemetry
|
|
151
|
+
*/
|
|
152
|
+
readonly platform: PlatformType;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Browser implementation of the Vana Platform Adapter
|
|
157
|
+
*
|
|
158
|
+
* This implementation uses browser-compatible libraries and configurations
|
|
159
|
+
* to provide crypto, PGP, and HTTP functionality without Node.js dependencies.
|
|
160
|
+
*/
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Complete browser platform adapter implementation
|
|
164
|
+
*/
|
|
165
|
+
declare class BrowserPlatformAdapter implements VanaPlatformAdapter {
|
|
166
|
+
crypto: VanaCryptoAdapter;
|
|
167
|
+
pgp: VanaPGPAdapter;
|
|
168
|
+
http: VanaHttpAdapter;
|
|
169
|
+
platform: "browser";
|
|
170
|
+
constructor();
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Node.js implementation of the Vana Platform Adapter
|
|
175
|
+
*
|
|
176
|
+
* This implementation uses Node.js-specific libraries and configurations
|
|
177
|
+
* to provide crypto, PGP, and HTTP functionality.
|
|
178
|
+
*/
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Complete Node.js platform adapter implementation
|
|
182
|
+
*/
|
|
183
|
+
declare class NodePlatformAdapter implements VanaPlatformAdapter {
|
|
184
|
+
crypto: VanaCryptoAdapter;
|
|
185
|
+
pgp: VanaPGPAdapter;
|
|
186
|
+
http: VanaHttpAdapter;
|
|
187
|
+
platform: "node";
|
|
188
|
+
constructor();
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Platform detection and adapter utilities
|
|
193
|
+
*
|
|
194
|
+
* This module provides utilities for detecting the current runtime environment
|
|
195
|
+
* and creating appropriate platform adapters automatically.
|
|
196
|
+
*/
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* Detects the current runtime environment
|
|
200
|
+
*
|
|
201
|
+
* @returns The detected platform type
|
|
202
|
+
*/
|
|
203
|
+
declare function detectPlatform(): PlatformType;
|
|
204
|
+
/**
|
|
205
|
+
* Creates the appropriate platform adapter based on the current environment
|
|
206
|
+
*
|
|
207
|
+
* @returns A platform adapter instance for the current environment
|
|
208
|
+
* @throws {Error} If platform adapters cannot be imported or created
|
|
209
|
+
*/
|
|
210
|
+
declare function createPlatformAdapter(): Promise<VanaPlatformAdapter>;
|
|
211
|
+
/**
|
|
212
|
+
* Creates a platform adapter for a specific platform type
|
|
213
|
+
*
|
|
214
|
+
* @param platformType - The platform type to create an adapter for
|
|
215
|
+
* @returns A platform adapter instance for the specified platform
|
|
216
|
+
* @throws {Error} If platform adapters cannot be imported or created
|
|
217
|
+
*/
|
|
218
|
+
declare function createPlatformAdapterFor(platformType: PlatformType): Promise<VanaPlatformAdapter>;
|
|
219
|
+
/**
|
|
220
|
+
* Checks if the current environment supports the given platform adapter
|
|
221
|
+
*
|
|
222
|
+
* @param platformType - The platform type to check
|
|
223
|
+
* @returns True if the platform is supported, false otherwise
|
|
224
|
+
*/
|
|
225
|
+
declare function isPlatformSupported(platformType: PlatformType): boolean;
|
|
226
|
+
/**
|
|
227
|
+
* Gets platform-specific capabilities
|
|
228
|
+
*
|
|
229
|
+
* @returns Object describing available platform capabilities
|
|
230
|
+
*/
|
|
231
|
+
declare function getPlatformCapabilities(): {
|
|
232
|
+
platform: PlatformType;
|
|
233
|
+
crypto: {
|
|
234
|
+
webCrypto: false | SubtleCrypto;
|
|
235
|
+
nodeCrypto: string | false;
|
|
236
|
+
};
|
|
237
|
+
fetch: boolean;
|
|
238
|
+
streams: boolean;
|
|
239
|
+
};
|
|
240
|
+
|
|
6
241
|
/**
|
|
7
242
|
* Supported Vana chain IDs
|
|
8
243
|
*/
|
|
@@ -28559,155 +28794,6 @@ declare class StorageManager {
|
|
|
28559
28794
|
getDefaultStorageProvider(): string | undefined;
|
|
28560
28795
|
}
|
|
28561
28796
|
|
|
28562
|
-
/**
|
|
28563
|
-
* Platform Adapter interface for environment-specific implementations
|
|
28564
|
-
*
|
|
28565
|
-
* This interface abstracts all environment-specific dependencies to ensure
|
|
28566
|
-
* the SDK works seamlessly across Node.js and browser/SSR environments.
|
|
28567
|
-
*/
|
|
28568
|
-
/**
|
|
28569
|
-
* Platform type identifier
|
|
28570
|
-
*/
|
|
28571
|
-
type PlatformType = "node" | "browser";
|
|
28572
|
-
/**
|
|
28573
|
-
* Encryption operations that require different implementations per platform
|
|
28574
|
-
*/
|
|
28575
|
-
interface VanaCryptoAdapter {
|
|
28576
|
-
/**
|
|
28577
|
-
* Encrypt data with a public key using asymmetric cryptography
|
|
28578
|
-
*
|
|
28579
|
-
* @param data The data to encrypt
|
|
28580
|
-
* @param publicKey The public key for encryption
|
|
28581
|
-
* @returns Promise resolving to encrypted data
|
|
28582
|
-
*/
|
|
28583
|
-
encryptWithPublicKey(data: string, publicKey: string): Promise<string>;
|
|
28584
|
-
/**
|
|
28585
|
-
* Decrypt data with a private key using asymmetric cryptography
|
|
28586
|
-
*
|
|
28587
|
-
* @param encryptedData The encrypted data
|
|
28588
|
-
* @param privateKey The private key for decryption
|
|
28589
|
-
* @returns Promise resolving to decrypted data
|
|
28590
|
-
*/
|
|
28591
|
-
decryptWithPrivateKey(encryptedData: string, privateKey: string): Promise<string>;
|
|
28592
|
-
/**
|
|
28593
|
-
* Generate a new key pair for asymmetric cryptography
|
|
28594
|
-
*
|
|
28595
|
-
* @returns Promise resolving to public and private key pair
|
|
28596
|
-
*/
|
|
28597
|
-
generateKeyPair(): Promise<{
|
|
28598
|
-
publicKey: string;
|
|
28599
|
-
privateKey: string;
|
|
28600
|
-
}>;
|
|
28601
|
-
/**
|
|
28602
|
-
* Encrypt data with a wallet's public key using ECDH cryptography
|
|
28603
|
-
* Uses platform-appropriate ECDH implementation (eccrypto vs eccrypto-js)
|
|
28604
|
-
*
|
|
28605
|
-
* @param data The data to encrypt (string)
|
|
28606
|
-
* @param publicKey The wallet's public key (secp256k1)
|
|
28607
|
-
* @returns Promise resolving to encrypted data as hex string
|
|
28608
|
-
*/
|
|
28609
|
-
encryptWithWalletPublicKey(data: string, publicKey: string): Promise<string>;
|
|
28610
|
-
/**
|
|
28611
|
-
* Decrypt data with a wallet's private key using ECDH cryptography
|
|
28612
|
-
* Uses platform-appropriate ECDH implementation (eccrypto vs eccrypto-js)
|
|
28613
|
-
*
|
|
28614
|
-
* @param encryptedData The encrypted data as hex string
|
|
28615
|
-
* @param privateKey The wallet's private key (secp256k1)
|
|
28616
|
-
* @returns Promise resolving to decrypted data as string
|
|
28617
|
-
*/
|
|
28618
|
-
decryptWithWalletPrivateKey(encryptedData: string, privateKey: string): Promise<string>;
|
|
28619
|
-
/**
|
|
28620
|
-
* Encrypt data with a password using PGP password-based encryption
|
|
28621
|
-
* Uses platform-appropriate OpenPGP implementation with consistent format
|
|
28622
|
-
*
|
|
28623
|
-
* @param data The data to encrypt as Uint8Array
|
|
28624
|
-
* @param password The password for encryption (typically wallet signature)
|
|
28625
|
-
* @returns Promise resolving to encrypted data as Uint8Array
|
|
28626
|
-
*/
|
|
28627
|
-
encryptWithPassword(data: Uint8Array, password: string): Promise<Uint8Array>;
|
|
28628
|
-
/**
|
|
28629
|
-
* Decrypt data with a password using PGP password-based decryption
|
|
28630
|
-
* Uses platform-appropriate OpenPGP implementation with consistent format
|
|
28631
|
-
*
|
|
28632
|
-
* @param encryptedData The encrypted data as Uint8Array
|
|
28633
|
-
* @param password The password for decryption (typically wallet signature)
|
|
28634
|
-
* @returns Promise resolving to decrypted data as Uint8Array
|
|
28635
|
-
*/
|
|
28636
|
-
decryptWithPassword(encryptedData: Uint8Array, password: string): Promise<Uint8Array>;
|
|
28637
|
-
}
|
|
28638
|
-
/**
|
|
28639
|
-
* PGP operations that require different configurations per platform
|
|
28640
|
-
*/
|
|
28641
|
-
interface VanaPGPAdapter {
|
|
28642
|
-
/**
|
|
28643
|
-
* Encrypt data using PGP with proper platform configuration
|
|
28644
|
-
*
|
|
28645
|
-
* @param data The data to encrypt
|
|
28646
|
-
* @param publicKey The PGP public key
|
|
28647
|
-
* @returns Promise resolving to encrypted data
|
|
28648
|
-
*/
|
|
28649
|
-
encrypt(data: string, publicKey: string): Promise<string>;
|
|
28650
|
-
/**
|
|
28651
|
-
* Decrypt data using PGP with proper platform configuration
|
|
28652
|
-
*
|
|
28653
|
-
* @param encryptedData The encrypted data
|
|
28654
|
-
* @param privateKey The PGP private key
|
|
28655
|
-
* @returns Promise resolving to decrypted data
|
|
28656
|
-
*/
|
|
28657
|
-
decrypt(encryptedData: string, privateKey: string): Promise<string>;
|
|
28658
|
-
/**
|
|
28659
|
-
* Generate a new PGP key pair with platform-appropriate configuration
|
|
28660
|
-
*
|
|
28661
|
-
* @param options - Key generation options
|
|
28662
|
-
* @param options.name - The name for the PGP key
|
|
28663
|
-
* @param options.email - The email for the PGP key
|
|
28664
|
-
* @param options.passphrase - Optional passphrase to protect the private key
|
|
28665
|
-
* @returns Promise resolving to public and private key pair
|
|
28666
|
-
*/
|
|
28667
|
-
generateKeyPair(options?: {
|
|
28668
|
-
name?: string;
|
|
28669
|
-
email?: string;
|
|
28670
|
-
passphrase?: string;
|
|
28671
|
-
}): Promise<{
|
|
28672
|
-
publicKey: string;
|
|
28673
|
-
privateKey: string;
|
|
28674
|
-
}>;
|
|
28675
|
-
}
|
|
28676
|
-
/**
|
|
28677
|
-
* HTTP operations that need consistent API across platforms
|
|
28678
|
-
*/
|
|
28679
|
-
interface VanaHttpAdapter {
|
|
28680
|
-
/**
|
|
28681
|
-
* Perform HTTP request with platform-appropriate fetch implementation
|
|
28682
|
-
*
|
|
28683
|
-
* @param url The URL to request
|
|
28684
|
-
* @param options Request options
|
|
28685
|
-
* @returns Promise resolving to response
|
|
28686
|
-
*/
|
|
28687
|
-
fetch(url: string, options?: RequestInit): Promise<Response>;
|
|
28688
|
-
}
|
|
28689
|
-
/**
|
|
28690
|
-
* Main platform adapter interface that combines all platform-specific functionality
|
|
28691
|
-
*/
|
|
28692
|
-
interface VanaPlatformAdapter {
|
|
28693
|
-
/**
|
|
28694
|
-
* Crypto operations adapter
|
|
28695
|
-
*/
|
|
28696
|
-
crypto: VanaCryptoAdapter;
|
|
28697
|
-
/**
|
|
28698
|
-
* PGP operations adapter
|
|
28699
|
-
*/
|
|
28700
|
-
pgp: VanaPGPAdapter;
|
|
28701
|
-
/**
|
|
28702
|
-
* HTTP operations adapter
|
|
28703
|
-
*/
|
|
28704
|
-
http: VanaHttpAdapter;
|
|
28705
|
-
/**
|
|
28706
|
-
* Platform identifier for debugging/telemetry
|
|
28707
|
-
*/
|
|
28708
|
-
readonly platform: PlatformType;
|
|
28709
|
-
}
|
|
28710
|
-
|
|
28711
28797
|
/**
|
|
28712
28798
|
* Provides shared configuration and services for all SDK controllers.
|
|
28713
28799
|
*
|
|
@@ -31189,4 +31275,4 @@ declare class VanaNode extends VanaCore {
|
|
|
31189
31275
|
constructor(config: VanaConfig);
|
|
31190
31276
|
}
|
|
31191
31277
|
|
|
31192
|
-
export { type APIResponse, type AddRefinerParams, type AddRefinerResult, type AddSchemaParams, type AddSchemaResult, type AllKeys, ApiClient, type ApiClientConfig, type ApiResponse, AsyncQueue, type AsyncResult, type Awaited, type BaseConfig, BaseController, type BatchServerInfoResult, type BatchUploadParams, type BatchUploadResult, type BlockRange, BlockchainError, type Brand, type Cache, type CacheConfig, type ChainConfig, type CheckPermissionParams, CircuitBreaker, type ConditionalOptional, type ConfigValidationOptions, type ConfigValidationResult, type ContractAddresses, type ContractCall, type ContractDeployment, ContractFactory, type ContractInfo, type ContractMethodParams, type ContractMethodReturnType, ContractNotFoundError, type Controller, type ControllerContext$1 as ControllerContext, DEFAULT_ENCRYPTION_SEED, DEFAULT_IPFS_GATEWAY, DataController, type DataSchema, type DeepPartial, type DeepReadonly, type DeleteFileParams, type DeleteFileResult, type DownloadFileParams, type DownloadFileResult, type EncryptionInfo, EventEmitter, type EventFilter, type EventLog, type Factory, type FileAccessPermissions, type FileMetadata, type FileSharingConfig, type GasEstimate, type GenericRequest, type GenericResponse, type GenericTypedData, type GetFileParams, type GetUserFilesParams, type GetUserTrustedServersParams, type GetUserTrustedServersResult, GoogleDriveStorage, GrantExpiredError, type GrantFile, type GrantPermissionParams, GrantSchemaError, GrantValidationError, type GrantValidationOptions, type GrantValidationResult, type GrantedPermission, GranteeMismatchError, type HttpMethod, IPFS_GATEWAYS, type IdentityServerOutput, type IdentityServerResponse, type InitPersonalServerParams, InvalidConfigurationError, IpfsStorage, type MaybeArray, type MaybePromise, MemoryCache, type Middleware, MiddlewarePipeline, NetworkError, type NetworkInfo, type Nominal, type NonNullable, NonceError, type Observable, type Observer, type OmitByType, OperationNotAllowedError, type OptionalKeys, type PaginatedTrustedServers, type PaginationParams, type PaginationResult, type PartialExcept, type PermissionAnalytics, type PermissionCheckResult, PermissionError, type PermissionEvent, type PermissionGrantDomain, type PermissionGrantMessage, type PermissionGrantTypedData, type PermissionInfo, type PermissionInputMessage, type PermissionOperation, type PermissionQueryResult, type PermissionStatus, PermissionsController, type PersonalServerResponse as PersonalServerAPIResponse, PersonalServerError, type PersonalServerOutput, type PersonalServerResponse$1 as PersonalServerResponse, type PickByType, type PinataListResponse, type PinataPin, PinataStorage, type PinataUploadResponse, type Plugin, type PostRequestParams, type PromiseResult, ProtocolController, type QueryPermissionsParams, type RateLimitInfo, RateLimiter, type RateLimiterConfig, type Refiner, type RelayerCallbacks, type RelayerConfig, RelayerError, type RelayerErrorResponse, type RelayerMetrics, type RelayerQueueInfo, type RelayerRequestOptions, type RelayerStatus, type RelayerStorageResponse, type RelayerStoreParams, type RelayerSubmitParams, type RelayerTransactionResponse, type RelayerTransactionStatus, type RelayerWebhookConfig, type RelayerWebhookPayload, type ReplicateAPIResponse, type ReplicatePredictionResponse, type ReplicateStatus, type Repository, type RequestOptions, type RequireKeys, type RequiredExcept, type RetryConfig, RetryUtility, type RevokePermissionInput, type RevokePermissionParams, type RuntimeConfig, type Schema, SchemaValidationError, SchemaValidator, SerializationError, type Server, ServerController, ServerProxyStorage, type ServerTrustStatus, ServerUrlMismatchError, type Service, SignatureError, type SimplifiedPermissionMessage, type StateMachine, type StatusInfo, type StorageConfig, StorageError, type StorageFile, type StorageListOptions, StorageManager, type StorageProvider, type StorageProviderConfig, type StorageUploadResult, type TimeRange, type TransactionOptions, type TransactionReceipt, type Transformer, type TrustServerInput, type TrustServerParams, type TrustServerTypedData, type TrustedServer, type TrustedServerInfo, type TrustedServerQueryMode, type TrustedServerQueryOptions, type UntrustServerInput, type UntrustServerParams, type UntrustServerTypedData, type UpdateSchemaIdParams, type UpdateSchemaIdResult, type UploadEncryptedFileResult, type UploadFileParams, type UploadFileResult, type UploadProgress, type UserFile, UserRejectedRequestError, type ValidationResult, type Validator, VanaNode as Vana, type VanaChain, type VanaChainConfig, type VanaChainId, type VanaConfig, type VanaContract, type VanaContract as VanaContractAbi, type VanaContractInstance, type VanaContractName, VanaCore, VanaError, type WalletConfig, __contractCache, chains, checkGrantAccess, clearContractCache, convertIpfsUrl, convertIpfsUrlWithFallbacks, createAndStoreGrant, createGrantFile, createValidatedGrant, decryptUserData, decryptWithPrivateKey, decryptWithWalletPrivateKey, encryptFileKey, encryptUserData, encryptWithWalletPublicKey, extractIpfsHash, fetchAndValidateSchema, fetchWithFallbacks, formatEth, formatNumber, formatToken, generateEncryptionKey, generateEncryptionKeyPair, generatePGPKeyPair, getAbi, getAllChains, getChainConfig, getContractAddress, getContractController, getContractInfo, getEncryptionParameters, getGatewayUrls, getGrantFileHash, getGrantTimeRemaining, isAPIResponse, isChainConfig, isGrantExpired, isIdentityServerOutput, isIpfsUrl, isPersonalServerOutput, isReplicateAPIResponse, isVanaChain, isVanaChainId, isWalletConfig, moksha, mokshaTestnet, parseReplicateOutput, retrieveAndValidateGrant, retrieveGrantFile, safeParseJSON, schemaValidator, shortenAddress, storeGrantFile, summarizeGrant, validateDataAgainstSchema, validateDataSchema, validateGrant, validateGrantExpiry, validateGrantFile, validateGranteeAccess, validateOperationAccess, vanaMainnet };
|
|
31278
|
+
export { type APIResponse, type AddRefinerParams, type AddRefinerResult, type AddSchemaParams, type AddSchemaResult, type AllKeys, ApiClient, type ApiClientConfig, type ApiResponse, AsyncQueue, type AsyncResult, type Awaited, type BaseConfig, BaseController, type BatchServerInfoResult, type BatchUploadParams, type BatchUploadResult, type BlockRange, BlockchainError, type Brand, BrowserPlatformAdapter, type Cache, type CacheConfig, type ChainConfig, type CheckPermissionParams, CircuitBreaker, type ConditionalOptional, type ConfigValidationOptions, type ConfigValidationResult, type ContractAddresses, type ContractCall, type ContractDeployment, ContractFactory, type ContractInfo, type ContractMethodParams, type ContractMethodReturnType, ContractNotFoundError, type Controller, type ControllerContext$1 as ControllerContext, DEFAULT_ENCRYPTION_SEED, DEFAULT_IPFS_GATEWAY, DataController, type DataSchema, type DeepPartial, type DeepReadonly, type DeleteFileParams, type DeleteFileResult, type DownloadFileParams, type DownloadFileResult, type EncryptionInfo, EventEmitter, type EventFilter, type EventLog, type Factory, type FileAccessPermissions, type FileMetadata, type FileSharingConfig, type GasEstimate, type GenericRequest, type GenericResponse, type GenericTypedData, type GetFileParams, type GetUserFilesParams, type GetUserTrustedServersParams, type GetUserTrustedServersResult, GoogleDriveStorage, GrantExpiredError, type GrantFile, type GrantPermissionParams, GrantSchemaError, GrantValidationError, type GrantValidationOptions, type GrantValidationResult, type GrantedPermission, GranteeMismatchError, type HttpMethod, IPFS_GATEWAYS, type IdentityServerOutput, type IdentityServerResponse, type InitPersonalServerParams, InvalidConfigurationError, IpfsStorage, type MaybeArray, type MaybePromise, MemoryCache, type Middleware, MiddlewarePipeline, NetworkError, type NetworkInfo, NodePlatformAdapter, type Nominal, type NonNullable, NonceError, type Observable, type Observer, type OmitByType, OperationNotAllowedError, type OptionalKeys, type PaginatedTrustedServers, type PaginationParams, type PaginationResult, type PartialExcept, type PermissionAnalytics, type PermissionCheckResult, PermissionError, type PermissionEvent, type PermissionGrantDomain, type PermissionGrantMessage, type PermissionGrantTypedData, type PermissionInfo, type PermissionInputMessage, type PermissionOperation, type PermissionQueryResult, type PermissionStatus, PermissionsController, type PersonalServerResponse as PersonalServerAPIResponse, PersonalServerError, type PersonalServerOutput, type PersonalServerResponse$1 as PersonalServerResponse, type PickByType, type PinataListResponse, type PinataPin, PinataStorage, type PinataUploadResponse, type Plugin, type PostRequestParams, type PromiseResult, ProtocolController, type QueryPermissionsParams, type RateLimitInfo, RateLimiter, type RateLimiterConfig, type Refiner, type RelayerCallbacks, type RelayerConfig, RelayerError, type RelayerErrorResponse, type RelayerMetrics, type RelayerQueueInfo, type RelayerRequestOptions, type RelayerStatus, type RelayerStorageResponse, type RelayerStoreParams, type RelayerSubmitParams, type RelayerTransactionResponse, type RelayerTransactionStatus, type RelayerWebhookConfig, type RelayerWebhookPayload, type ReplicateAPIResponse, type ReplicatePredictionResponse, type ReplicateStatus, type Repository, type RequestOptions, type RequireKeys, type RequiredExcept, type RetryConfig, RetryUtility, type RevokePermissionInput, type RevokePermissionParams, type RuntimeConfig, type Schema, SchemaValidationError, SchemaValidator, SerializationError, type Server, ServerController, ServerProxyStorage, type ServerTrustStatus, ServerUrlMismatchError, type Service, SignatureError, type SimplifiedPermissionMessage, type StateMachine, type StatusInfo, type StorageConfig, StorageError, type StorageFile, type StorageListOptions, StorageManager, type StorageProvider, type StorageProviderConfig, type StorageUploadResult, type TimeRange, type TransactionOptions, type TransactionReceipt, type Transformer, type TrustServerInput, type TrustServerParams, type TrustServerTypedData, type TrustedServer, type TrustedServerInfo, type TrustedServerQueryMode, type TrustedServerQueryOptions, type UntrustServerInput, type UntrustServerParams, type UntrustServerTypedData, type UpdateSchemaIdParams, type UpdateSchemaIdResult, type UploadEncryptedFileResult, type UploadFileParams, type UploadFileResult, type UploadProgress, type UserFile, UserRejectedRequestError, type ValidationResult, type Validator, VanaNode as Vana, type VanaChain, type VanaChainConfig, type VanaChainId, type VanaConfig, type VanaContract, type VanaContract as VanaContractAbi, type VanaContractInstance, type VanaContractName, VanaCore, VanaError, type VanaPlatformAdapter, type WalletConfig, __contractCache, chains, checkGrantAccess, clearContractCache, convertIpfsUrl, convertIpfsUrlWithFallbacks, createAndStoreGrant, createGrantFile, createPlatformAdapter, createPlatformAdapterFor, createValidatedGrant, decryptUserData, decryptWithPrivateKey, decryptWithWalletPrivateKey, detectPlatform, encryptFileKey, encryptUserData, encryptWithWalletPublicKey, extractIpfsHash, fetchAndValidateSchema, fetchWithFallbacks, formatEth, formatNumber, formatToken, generateEncryptionKey, generateEncryptionKeyPair, generatePGPKeyPair, getAbi, getAllChains, getChainConfig, getContractAddress, getContractController, getContractInfo, getEncryptionParameters, getGatewayUrls, getGrantFileHash, getGrantTimeRemaining, getPlatformCapabilities, isAPIResponse, isChainConfig, isGrantExpired, isIdentityServerOutput, isIpfsUrl, isPersonalServerOutput, isPlatformSupported, isReplicateAPIResponse, isVanaChain, isVanaChainId, isWalletConfig, moksha, mokshaTestnet, parseReplicateOutput, retrieveAndValidateGrant, retrieveGrantFile, safeParseJSON, schemaValidator, shortenAddress, storeGrantFile, summarizeGrant, validateDataAgainstSchema, validateDataSchema, validateGrant, validateGrantExpiry, validateGrantFile, validateGranteeAccess, validateOperationAccess, vanaMainnet };
|