@opendatalabs/vana-sdk 0.1.0-alpha.2fd4542 → 0.1.0-alpha.321a1fe
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/index.browser.d.ts +186 -45
- package/dist/index.browser.js +709 -212
- package/dist/index.browser.js.map +1 -1
- package/dist/index.node.cjs +740 -242
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.d.cts +186 -45
- package/dist/index.node.d.ts +186 -45
- package/dist/index.node.js +715 -217
- package/dist/index.node.js.map +1 -1
- package/package.json +1 -1
package/dist/index.browser.d.ts
CHANGED
|
@@ -191,10 +191,10 @@ interface OnChainPermissionGrant {
|
|
|
191
191
|
grantUrl: string;
|
|
192
192
|
/** Cryptographic signature that authorized this permission */
|
|
193
193
|
grantSignature: string;
|
|
194
|
-
/** Hash of the grant file content for integrity verification */
|
|
195
|
-
grantHash: string;
|
|
196
194
|
/** Nonce used when granting the permission */
|
|
197
195
|
nonce: bigint;
|
|
196
|
+
/** Block number when permission started */
|
|
197
|
+
startBlock: bigint;
|
|
198
198
|
/** Block number when permission was granted */
|
|
199
199
|
addedAtBlock: bigint;
|
|
200
200
|
/** Timestamp when permission was added */
|
|
@@ -203,6 +203,13 @@ interface OnChainPermissionGrant {
|
|
|
203
203
|
transactionHash: string;
|
|
204
204
|
/** Address that granted the permission */
|
|
205
205
|
grantor: Address;
|
|
206
|
+
/** Grantee information */
|
|
207
|
+
grantee: {
|
|
208
|
+
/** Grantee ID */
|
|
209
|
+
id: string;
|
|
210
|
+
/** Grantee address */
|
|
211
|
+
address: string;
|
|
212
|
+
};
|
|
206
213
|
/** Whether the permission is still active (not revoked) */
|
|
207
214
|
active: boolean;
|
|
208
215
|
}
|
|
@@ -490,6 +497,48 @@ interface GenericTypedData extends RecordCompatible {
|
|
|
490
497
|
/** Message to sign */
|
|
491
498
|
message: Record<string, unknown>;
|
|
492
499
|
}
|
|
500
|
+
/**
|
|
501
|
+
* Represents EIP-712 typed data for permission revocation.
|
|
502
|
+
*
|
|
503
|
+
* @remarks
|
|
504
|
+
* Used when revoking previously granted permissions through gasless transactions.
|
|
505
|
+
* The message contains a nonce and the permission ID to revoke.
|
|
506
|
+
*
|
|
507
|
+
* @category Permissions
|
|
508
|
+
*/
|
|
509
|
+
interface RevokePermissionTypedData extends GenericTypedData {
|
|
510
|
+
/** EIP-712 type definitions for the RevokePermission structure */
|
|
511
|
+
types: {
|
|
512
|
+
RevokePermission: Array<{
|
|
513
|
+
name: string;
|
|
514
|
+
type: string;
|
|
515
|
+
}>;
|
|
516
|
+
};
|
|
517
|
+
/** The primary type identifier for revocation operations */
|
|
518
|
+
primaryType: "RevokePermission";
|
|
519
|
+
/** The structured message containing revocation parameters */
|
|
520
|
+
message: RevokePermissionInput;
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* Defines all valid primary types for EIP-712 typed data in the Vana SDK.
|
|
524
|
+
*
|
|
525
|
+
* @remarks
|
|
526
|
+
* These literal types ensure compile-time safety when handling typed data operations.
|
|
527
|
+
* Each corresponds to a specific blockchain operation type.
|
|
528
|
+
*
|
|
529
|
+
* @category Permissions
|
|
530
|
+
*/
|
|
531
|
+
type TypedDataPrimaryType = "Permission" | "RevokePermission" | "TrustServer" | "UntrustServer" | "AddServer" | "RegisterGrantee" | "ServerFilesAndPermission";
|
|
532
|
+
/**
|
|
533
|
+
* Represents the union of all specific typed data interfaces.
|
|
534
|
+
*
|
|
535
|
+
* @remarks
|
|
536
|
+
* Enables type-safe handling of any typed data structure in the SDK.
|
|
537
|
+
* Used internally by relayer handlers and signature verification.
|
|
538
|
+
*
|
|
539
|
+
* @category Permissions
|
|
540
|
+
*/
|
|
541
|
+
type SpecificTypedData = PermissionGrantTypedData | RevokePermissionTypedData | TrustServerTypedData | UntrustServerTypedData | AddAndTrustServerTypedData | RegisterGranteeTypedData | ServerFilesAndPermissionTypedData;
|
|
493
542
|
/**
|
|
494
543
|
* Permission operation types
|
|
495
544
|
*
|
|
@@ -5451,6 +5500,16 @@ declare const contractAbis: {
|
|
|
5451
5500
|
}];
|
|
5452
5501
|
readonly name: "Upgraded";
|
|
5453
5502
|
readonly type: "event";
|
|
5503
|
+
}, {
|
|
5504
|
+
readonly inputs: readonly [];
|
|
5505
|
+
readonly name: "DATA_PORTABILITY_ROLE";
|
|
5506
|
+
readonly outputs: readonly [{
|
|
5507
|
+
readonly internalType: "bytes32";
|
|
5508
|
+
readonly name: "";
|
|
5509
|
+
readonly type: "bytes32";
|
|
5510
|
+
}];
|
|
5511
|
+
readonly stateMutability: "view";
|
|
5512
|
+
readonly type: "function";
|
|
5454
5513
|
}, {
|
|
5455
5514
|
readonly inputs: readonly [];
|
|
5456
5515
|
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
@@ -5523,6 +5582,33 @@ declare const contractAbis: {
|
|
|
5523
5582
|
readonly outputs: readonly [];
|
|
5524
5583
|
readonly stateMutability: "nonpayable";
|
|
5525
5584
|
readonly type: "function";
|
|
5585
|
+
}, {
|
|
5586
|
+
readonly inputs: readonly [{
|
|
5587
|
+
readonly internalType: "uint256";
|
|
5588
|
+
readonly name: "fileId";
|
|
5589
|
+
readonly type: "uint256";
|
|
5590
|
+
}, {
|
|
5591
|
+
readonly components: readonly [{
|
|
5592
|
+
readonly internalType: "address";
|
|
5593
|
+
readonly name: "account";
|
|
5594
|
+
readonly type: "address";
|
|
5595
|
+
}, {
|
|
5596
|
+
readonly internalType: "string";
|
|
5597
|
+
readonly name: "key";
|
|
5598
|
+
readonly type: "string";
|
|
5599
|
+
}];
|
|
5600
|
+
readonly internalType: "struct IDataRegistry.Permission[]";
|
|
5601
|
+
readonly name: "permissions";
|
|
5602
|
+
readonly type: "tuple[]";
|
|
5603
|
+
}, {
|
|
5604
|
+
readonly internalType: "uint256";
|
|
5605
|
+
readonly name: "schemaId";
|
|
5606
|
+
readonly type: "uint256";
|
|
5607
|
+
}];
|
|
5608
|
+
readonly name: "addFilePermissionsAndSchema";
|
|
5609
|
+
readonly outputs: readonly [];
|
|
5610
|
+
readonly stateMutability: "nonpayable";
|
|
5611
|
+
readonly type: "function";
|
|
5526
5612
|
}, {
|
|
5527
5613
|
readonly inputs: readonly [{
|
|
5528
5614
|
readonly internalType: "string";
|
|
@@ -34766,19 +34852,31 @@ declare class DataController {
|
|
|
34766
34852
|
*/
|
|
34767
34853
|
addPermissionToFile(fileId: number, account: Address, publicKey: string): Promise<TransactionHandle<FilePermissionResult>>;
|
|
34768
34854
|
/**
|
|
34769
|
-
* Submits a file permission transaction
|
|
34855
|
+
* Submits a file permission transaction to the blockchain.
|
|
34770
34856
|
*
|
|
34771
|
-
*
|
|
34857
|
+
* @remarks
|
|
34858
|
+
* This method supports gasless transactions via relayer callbacks when configured.
|
|
34859
|
+
* It encrypts the user's encryption key with the recipient's public key before submission.
|
|
34772
34860
|
* Use this when you want to handle transaction confirmation and event parsing separately.
|
|
34773
34861
|
*
|
|
34774
|
-
* @param fileId - The ID of the file to
|
|
34775
|
-
* @param account - The
|
|
34776
|
-
* @param publicKey - The public key
|
|
34777
|
-
*
|
|
34862
|
+
* @param fileId - The ID of the file to grant permission for
|
|
34863
|
+
* @param account - The recipient's wallet address that will access the file
|
|
34864
|
+
* @param publicKey - The recipient's public key for encryption.
|
|
34865
|
+
* Obtain via `vana.server.getIdentity(account).public_key`
|
|
34866
|
+
* @returns Promise resolving to TransactionHandle for tracking the transaction
|
|
34867
|
+
* @throws {Error} When chain ID is not available
|
|
34868
|
+
* @throws {Error} When encryption key generation fails
|
|
34869
|
+
* @throws {Error} When public key encryption fails
|
|
34870
|
+
*
|
|
34778
34871
|
* @example
|
|
34779
34872
|
* ```typescript
|
|
34780
|
-
* const
|
|
34781
|
-
*
|
|
34873
|
+
* const tx = await vana.data.submitFilePermission(
|
|
34874
|
+
* fileId,
|
|
34875
|
+
* "0x742d35Cc6558Fd4D9e9E0E888F0462ef6919Bd36",
|
|
34876
|
+
* recipientPublicKey
|
|
34877
|
+
* );
|
|
34878
|
+
* const result = await tx.waitForEvents();
|
|
34879
|
+
* console.log(`Permission granted with ID: ${result.permissionId}`);
|
|
34782
34880
|
* ```
|
|
34783
34881
|
*/
|
|
34784
34882
|
submitFilePermission(fileId: number, account: Address, publicKey: string): Promise<TransactionHandle<FilePermissionResult>>;
|
|
@@ -34950,6 +35048,56 @@ declare class DataController {
|
|
|
34950
35048
|
fetchAndValidateSchema(url: string): Promise<DataSchema>;
|
|
34951
35049
|
}
|
|
34952
35050
|
|
|
35051
|
+
/**
|
|
35052
|
+
* Configuration options for polling server operations.
|
|
35053
|
+
*/
|
|
35054
|
+
interface PollingOptions {
|
|
35055
|
+
/** Polling interval in milliseconds (default: 500) */
|
|
35056
|
+
pollingInterval?: number;
|
|
35057
|
+
/** Maximum time to wait in milliseconds (default: 30000) */
|
|
35058
|
+
timeout?: number;
|
|
35059
|
+
}
|
|
35060
|
+
/**
|
|
35061
|
+
* Provides a Promise-based interface for server operation lifecycle management.
|
|
35062
|
+
*
|
|
35063
|
+
* @remarks
|
|
35064
|
+
* OperationHandle enables immediate access to operation IDs while providing
|
|
35065
|
+
* Promise-based methods for waiting on results. This pattern matches
|
|
35066
|
+
* TransactionHandle for consistency across the SDK's async operations.
|
|
35067
|
+
*
|
|
35068
|
+
* @category Server Operations
|
|
35069
|
+
*/
|
|
35070
|
+
declare class OperationHandle<T = unknown> {
|
|
35071
|
+
private readonly controller;
|
|
35072
|
+
readonly id: string;
|
|
35073
|
+
private _resultPromise?;
|
|
35074
|
+
constructor(controller: ServerController, id: string);
|
|
35075
|
+
/**
|
|
35076
|
+
* Waits for the operation to complete and returns the result.
|
|
35077
|
+
*
|
|
35078
|
+
* @remarks
|
|
35079
|
+
* Results are memoized - multiple calls return the same promise.
|
|
35080
|
+
* The method polls the server at regular intervals until the operation
|
|
35081
|
+
* succeeds, fails, or times out. Returns the raw string result from the
|
|
35082
|
+
* server - callers are responsible for parsing if needed.
|
|
35083
|
+
*
|
|
35084
|
+
* @param options - Optional polling configuration
|
|
35085
|
+
* @returns The operation result as a string when completed
|
|
35086
|
+
* @throws {PersonalServerError} When the operation fails or times out
|
|
35087
|
+
* @example
|
|
35088
|
+
* ```typescript
|
|
35089
|
+
* const result = await handle.waitForResult({
|
|
35090
|
+
* timeout: 60000,
|
|
35091
|
+
* pollingInterval: 500
|
|
35092
|
+
* });
|
|
35093
|
+
* // If expecting JSON, parse it:
|
|
35094
|
+
* const data = JSON.parse(result);
|
|
35095
|
+
* ```
|
|
35096
|
+
*/
|
|
35097
|
+
waitForResult(options?: PollingOptions): Promise<T>;
|
|
35098
|
+
private pollForCompletion;
|
|
35099
|
+
}
|
|
35100
|
+
|
|
34953
35101
|
/**
|
|
34954
35102
|
* Manages interactions with Vana personal servers and identity infrastructure.
|
|
34955
35103
|
*
|
|
@@ -35030,54 +35178,47 @@ declare class ServerController {
|
|
|
35030
35178
|
*/
|
|
35031
35179
|
getIdentity(request: InitPersonalServerParams): Promise<PersonalServerIdentity>;
|
|
35032
35180
|
/**
|
|
35033
|
-
* Creates
|
|
35181
|
+
* Creates a server operation and returns a handle for lifecycle management.
|
|
35034
35182
|
*
|
|
35035
35183
|
* @remarks
|
|
35036
|
-
* This method submits a computation request to the personal server
|
|
35037
|
-
*
|
|
35038
|
-
*
|
|
35184
|
+
* This method submits a computation request to the personal server and returns
|
|
35185
|
+
* an OperationHandle that provides Promise-based methods for waiting on results.
|
|
35186
|
+
* The handle pattern matches TransactionHandle for consistency across async operations.
|
|
35187
|
+
*
|
|
35188
|
+
* @param params - The operation request parameters
|
|
35039
35189
|
* @param params.permissionId - The permission ID authorizing this operation.
|
|
35040
|
-
* Obtain
|
|
35041
|
-
* @returns
|
|
35042
|
-
* @throws {PersonalServerError} When server request fails or parameters are invalid
|
|
35043
|
-
*
|
|
35044
|
-
* @throws {NetworkError} When personal server API communication fails.
|
|
35045
|
-
* Check server URL configuration and network connectivity.
|
|
35190
|
+
* Obtain via `vana.permissions.getUserPermissionGrantsOnChain()`.
|
|
35191
|
+
* @returns An OperationHandle providing access to the operation ID and result methods
|
|
35192
|
+
* @throws {PersonalServerError} When the server request fails or parameters are invalid
|
|
35193
|
+
* @throws {NetworkError} When personal server API communication fails
|
|
35046
35194
|
* @example
|
|
35047
35195
|
* ```typescript
|
|
35048
|
-
* const
|
|
35049
|
-
* permissionId: 123
|
|
35196
|
+
* const operation = await vana.server.createOperation({
|
|
35197
|
+
* permissionId: 123
|
|
35050
35198
|
* });
|
|
35199
|
+
* console.log(`Operation ID: ${operation.id}`);
|
|
35051
35200
|
*
|
|
35052
|
-
*
|
|
35201
|
+
* // Wait for completion
|
|
35202
|
+
* const result = await operation.waitForResult();
|
|
35203
|
+
* console.log("Result:", result);
|
|
35053
35204
|
* ```
|
|
35054
35205
|
*/
|
|
35055
|
-
createOperation(params: CreateOperationParams): Promise<
|
|
35206
|
+
createOperation<T = unknown>(params: CreateOperationParams): Promise<OperationHandle<T>>;
|
|
35056
35207
|
/**
|
|
35057
|
-
*
|
|
35208
|
+
* Retrieves the current status and result of a server operation.
|
|
35058
35209
|
*
|
|
35059
35210
|
* @remarks
|
|
35060
|
-
*
|
|
35061
|
-
*
|
|
35062
|
-
*
|
|
35063
|
-
*
|
|
35064
|
-
*
|
|
35065
|
-
*
|
|
35066
|
-
* @param operationId - The operation ID returned from the initial request submission
|
|
35067
|
-
* @returns A Promise that resolves to the current operation response with status and results
|
|
35068
|
-
* @throws {NetworkError} When the polling request fails or returns invalid data
|
|
35211
|
+
* Common status values: `starting`, `running`, `succeeded`, `failed`, `canceled`.
|
|
35212
|
+
* When status is `succeeded`, the result field contains the operation output.
|
|
35213
|
+
*
|
|
35214
|
+
* @param operationId - The ID of the operation to query
|
|
35215
|
+
* @returns The operation response containing status, result, and metadata
|
|
35216
|
+
* @throws {NetworkError} When the API request fails or returns invalid data
|
|
35069
35217
|
* @example
|
|
35070
35218
|
* ```typescript
|
|
35071
|
-
*
|
|
35072
|
-
*
|
|
35073
|
-
*
|
|
35074
|
-
* while (result.status === "processing") {
|
|
35075
|
-
* await new Promise(resolve => setTimeout(resolve, 1000));
|
|
35076
|
-
* result = await vana.server.getOperation(response.id);
|
|
35077
|
-
* }
|
|
35078
|
-
*
|
|
35079
|
-
* if (result.status === "succeeded") {
|
|
35080
|
-
* console.log("Computation completed:", result.output);
|
|
35219
|
+
* const status = await vana.server.getOperation(operationId);
|
|
35220
|
+
* if (status.status === 'succeeded') {
|
|
35221
|
+
* console.log('Result:', JSON.parse(status.result));
|
|
35081
35222
|
* }
|
|
35082
35223
|
* ```
|
|
35083
35224
|
*/
|
|
@@ -37642,4 +37783,4 @@ declare function Vana(config: VanaConfig): VanaBrowserImpl;
|
|
|
37642
37783
|
*/
|
|
37643
37784
|
type VanaInstance = VanaBrowserImpl;
|
|
37644
37785
|
|
|
37645
|
-
export { type $defs, type APIResponse, type AddAndTrustServerInput, type AddAndTrustServerParams, type AddAndTrustServerTypedData, type AddRefinerParams, type AddRefinerResult, type AddSchemaParams, type AddSchemaResult, type AllKeys, ApiClient, type ApiClientConfig, type ApiResponse, AsyncQueue, type AsyncResult, type AuthenticationErrorResponse, type Awaited, type BaseConfig, type BaseConfigWithStorage, BaseController, type BatchServerInfoResult, type BatchUploadParams, type BatchUploadResult, type BlockRange, BlockchainError, type BlockchainErrorResponse, type Brand, BrowserPlatformAdapter, type Cache, type CacheConfig, CallbackStorage, type ChainConfig, type ChainConfigWithStorage, type CheckPermissionParams, CircuitBreaker, type CompleteSchema, type ComputeErrorResponse, type ConditionalOptional, type ConfigValidationOptions, type ConfigValidationResult, type ContractAddresses, type ContractCall, type ContractDeployment, ContractFactory, type ContractInfo, type ContractMethodParams, type ContractMethodReturnType, ContractNotFoundError, type Controller, type ControllerContext, type CreateOperationParams, type CreateOperationRequest, type CreateOperationResponse, type CreateSchemaParams, type CreateSchemaResult, DEFAULT_ENCRYPTION_SEED, DEFAULT_IPFS_GATEWAY, DataController, type DataSchema, type DecryptionErrorResponse, type DeepPartial, type DeepReadonly, type DeleteFileParams, type DeleteFileResult, type DownloadFileParams, type DownloadFileResult, type EncryptedUploadParams, type EncryptionInfo, type ErrorResponse, EventEmitter, type EventFilter, type EventLog, type Factory, type FileAccessErrorResponse, type FileAccessPermissions, type FileMetadata, type FilePermissionParams, type FileSharingConfig, type GasEstimate, type GenericRequest, type GenericResponse, type GenericTypedData, type GetFileParams, type GetOperationResponse, type GetUserFilesParams, type GetUserPermissionsOptions, type GetUserTrustedServersParams, GoogleDriveStorage, GrantExpiredError, type GrantFile, type GrantPermissionParams, GrantSchemaError, GrantValidationError, type GrantValidationErrorResponse, type GrantValidationOptions, type GrantValidationResult, type GrantedPermission, type Grantee, type GranteeInfo, GranteeMismatchError, type GranteeQueryOptions, type HttpMethod, IPFS_GATEWAYS, type IdentityResponseModel, type InitPersonalServerParams, type InternalServerErrorResponse, InvalidConfigurationError, IpfsStorage, type LegacyPermissionParams, type MaybeArray, type MaybePromise, MemoryCache, type Middleware, MiddlewarePipeline, NetworkError, type NetworkInfo, type Nominal, type NonNullable, NonceError, type NotFoundErrorResponse, type Observable, type Observer, type OmitByType, type OnChainPermissionGrant, type OperationErrorResponse, OperationNotAllowedError, type OptionalKeys, type PaginatedGrantees, type PaginatedTrustedServers, type PaginationParams, type PaginationResult, type PartialExcept, type Permission, type PermissionAnalytics, type PermissionCheckResult, PermissionError, type PermissionEvent, type PermissionGrantDomain, type PermissionGrantMessage, type PermissionGrantTypedData, type PermissionInfo, type PermissionInputMessage, type PermissionOperation, type PermissionQueryResult, type PermissionStatus, PermissionsController, PersonalServerError, type PersonalServerIdentity, type PersonalServerModel, 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 RegisterGranteeInput, type RegisterGranteeParams, type RegisterGranteeTypedData, 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 ReplicateStatus, type Repository, type RequestOptions, type RequireKeys, type RequiredExcept, type RetryConfig, RetryUtility, type RevokePermissionInput, type RevokePermissionParams, type RuntimeConfig, type Schema, type SchemaMetadata, SchemaValidationError, SchemaValidator, SerializationError, type Server, type components as ServerComponents, ServerController, type $defs as ServerDefs, type ServerFilesAndPermissionParams, type ServerFilesAndPermissionTypedData, type ServerInfo, type operations as ServerOperations, type paths as ServerPaths, type ServerTrustStatus, ServerUrlMismatchError, type webhooks as ServerWebhooks, type Service, SignatureCache, SignatureError, type SimplifiedPermissionMessage, type StateMachine, type StatusInfo, type StorageCallbacks, type StorageConfig, type StorageDownloadOptions, StorageError, type StorageFile, type StorageListOptions, type StorageListResult, StorageManager, type StorageProvider, type StorageProviderConfig, type StorageRequiredMarker, type StorageUploadResult, type TimeRange, TransactionHandle, type TransactionOptions, type TransactionReceipt, type Transformer, type TrustServerInput, type TrustServerParams, type TrustServerTypedData, type TrustedServer, type TrustedServerInfo, type TrustedServerQueryOptions, type UnencryptedUploadParams, type UntrustServerInput, type UntrustServerParams, type UntrustServerTypedData, type UpdateSchemaIdParams, type UpdateSchemaIdResult, type UploadEncryptedFileResult, type UploadFileParams, type UploadFileResult, type UploadParams, type UploadProgress, type UploadResult, type UserFile, UserRejectedRequestError, type ValidationErrorResponse, type ValidationResult, type Validator, Vana, VanaBrowserImpl, type VanaChain, type VanaChainConfig, type VanaChainId, type VanaConfig, type VanaConfigWithStorage, type VanaContract, type VanaContract as VanaContractAbi, type VanaContractInstance, type VanaContractName, VanaCore, VanaCoreFactory, VanaError, type VanaInstance, type VanaPlatformAdapter, type WalletConfig, type WalletConfigWithStorage, __contractCache, chains, checkGrantAccess, clearContractCache, type components, convertIpfsUrl, convertIpfsUrlWithFallbacks, createAndStoreGrant, createBrowserPlatformAdapter, createGrantFile, createPlatformAdapterSafe, createValidatedGrant, decryptBlobWithSignedKey, decryptWithPrivateKey, decryptWithWalletPrivateKey, Vana as default, detectPlatform, encryptBlobWithSignedKey, encryptFileKey, encryptWithWalletPublicKey, extractIpfsHash, fetchAndValidateSchema, fetchWithFallbacks, formatEth, formatNumber, formatToken, generateEncryptionKey, generateEncryptionKeyPair, generatePGPKeyPair, getAbi, getAllChains, getChainConfig, getContractAddress, getContractController, getContractInfo, getEncryptionParameters, getGatewayUrls, getGrantFileHash, getGrantTimeRemaining, getPlatformCapabilities, hasStorageConfig, isAPIResponse, isChainConfig, isGrantExpired, isIpfsUrl, isPlatformSupported, isReplicateAPIResponse, isVanaChain, isVanaChainId, isWalletConfig, moksha, mokshaTestnet, type operations, parseReplicateOutput, type paths, retrieveAndValidateGrant, retrieveGrantFile, safeParseJSON, schemaValidator, shortenAddress, storeGrantFile, summarizeGrant, validateDataAgainstSchema, validateDataSchemaAgainstMetaSchema, validateGrant, validateGrantExpiry, validateGrantFile, validateGranteeAccess, validateOperationAccess, vanaMainnet, type webhooks, withSignatureCache };
|
|
37786
|
+
export { type $defs, type APIResponse, type AddAndTrustServerInput, type AddAndTrustServerParams, type AddAndTrustServerTypedData, type AddRefinerParams, type AddRefinerResult, type AddSchemaParams, type AddSchemaResult, type AllKeys, ApiClient, type ApiClientConfig, type ApiResponse, AsyncQueue, type AsyncResult, type AuthenticationErrorResponse, type Awaited, type BaseConfig, type BaseConfigWithStorage, BaseController, type BatchServerInfoResult, type BatchUploadParams, type BatchUploadResult, type BlockRange, BlockchainError, type BlockchainErrorResponse, type Brand, BrowserPlatformAdapter, type Cache, type CacheConfig, CallbackStorage, type ChainConfig, type ChainConfigWithStorage, type CheckPermissionParams, CircuitBreaker, type CompleteSchema, type ComputeErrorResponse, type ConditionalOptional, type ConfigValidationOptions, type ConfigValidationResult, type ContractAddresses, type ContractCall, type ContractDeployment, ContractFactory, type ContractInfo, type ContractMethodParams, type ContractMethodReturnType, ContractNotFoundError, type Controller, type ControllerContext, type CreateOperationParams, type CreateOperationRequest, type CreateOperationResponse, type CreateSchemaParams, type CreateSchemaResult, DEFAULT_ENCRYPTION_SEED, DEFAULT_IPFS_GATEWAY, DataController, type DataSchema, type DecryptionErrorResponse, type DeepPartial, type DeepReadonly, type DeleteFileParams, type DeleteFileResult, type DownloadFileParams, type DownloadFileResult, type EncryptedUploadParams, type EncryptionInfo, type ErrorResponse, EventEmitter, type EventFilter, type EventLog, type Factory, type FileAccessErrorResponse, type FileAccessPermissions, type FileMetadata, type FilePermissionParams, type FileSharingConfig, type GasEstimate, type GenericRequest, type GenericResponse, type GenericTypedData, type GetFileParams, type GetOperationResponse, type GetUserFilesParams, type GetUserPermissionsOptions, type GetUserTrustedServersParams, GoogleDriveStorage, GrantExpiredError, type GrantFile, type GrantPermissionParams, GrantSchemaError, GrantValidationError, type GrantValidationErrorResponse, type GrantValidationOptions, type GrantValidationResult, type GrantedPermission, type Grantee, type GranteeInfo, GranteeMismatchError, type GranteeQueryOptions, type HttpMethod, IPFS_GATEWAYS, type IdentityResponseModel, type InitPersonalServerParams, type InternalServerErrorResponse, InvalidConfigurationError, IpfsStorage, type LegacyPermissionParams, type MaybeArray, type MaybePromise, MemoryCache, type Middleware, MiddlewarePipeline, NetworkError, type NetworkInfo, type Nominal, type NonNullable, NonceError, type NotFoundErrorResponse, type Observable, type Observer, type OmitByType, type OnChainPermissionGrant, type OperationErrorResponse, OperationNotAllowedError, type OptionalKeys, type PaginatedGrantees, type PaginatedTrustedServers, type PaginationParams, type PaginationResult, type PartialExcept, type Permission, type PermissionAnalytics, type PermissionCheckResult, PermissionError, type PermissionEvent, type PermissionGrantDomain, type PermissionGrantMessage, type PermissionGrantTypedData, type PermissionInfo, type PermissionInputMessage, type PermissionOperation, type PermissionQueryResult, type PermissionStatus, PermissionsController, PersonalServerError, type PersonalServerIdentity, type PersonalServerModel, 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 RegisterGranteeInput, type RegisterGranteeParams, type RegisterGranteeTypedData, 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 ReplicateStatus, type Repository, type RequestOptions, type RequireKeys, type RequiredExcept, type RetryConfig, RetryUtility, type RevokePermissionInput, type RevokePermissionParams, type RevokePermissionTypedData, type RuntimeConfig, type Schema, type SchemaMetadata, SchemaValidationError, SchemaValidator, SerializationError, type Server, type components as ServerComponents, ServerController, type $defs as ServerDefs, type ServerFilesAndPermissionParams, type ServerFilesAndPermissionTypedData, type ServerInfo, type operations as ServerOperations, type paths as ServerPaths, type ServerTrustStatus, ServerUrlMismatchError, type webhooks as ServerWebhooks, type Service, SignatureCache, SignatureError, type SimplifiedPermissionMessage, type SpecificTypedData, type StateMachine, type StatusInfo, type StorageCallbacks, type StorageConfig, type StorageDownloadOptions, StorageError, type StorageFile, type StorageListOptions, type StorageListResult, StorageManager, type StorageProvider, type StorageProviderConfig, type StorageRequiredMarker, type StorageUploadResult, type TimeRange, TransactionHandle, type TransactionOptions, type TransactionReceipt, type Transformer, type TrustServerInput, type TrustServerParams, type TrustServerTypedData, type TrustedServer, type TrustedServerInfo, type TrustedServerQueryOptions, type TypedDataPrimaryType, type UnencryptedUploadParams, type UntrustServerInput, type UntrustServerParams, type UntrustServerTypedData, type UpdateSchemaIdParams, type UpdateSchemaIdResult, type UploadEncryptedFileResult, type UploadFileParams, type UploadFileResult, type UploadParams, type UploadProgress, type UploadResult, type UserFile, UserRejectedRequestError, type ValidationErrorResponse, type ValidationResult, type Validator, Vana, VanaBrowserImpl, type VanaChain, type VanaChainConfig, type VanaChainId, type VanaConfig, type VanaConfigWithStorage, type VanaContract, type VanaContract as VanaContractAbi, type VanaContractInstance, type VanaContractName, VanaCore, VanaCoreFactory, VanaError, type VanaInstance, type VanaPlatformAdapter, type WalletConfig, type WalletConfigWithStorage, __contractCache, chains, checkGrantAccess, clearContractCache, type components, convertIpfsUrl, convertIpfsUrlWithFallbacks, createAndStoreGrant, createBrowserPlatformAdapter, createGrantFile, createPlatformAdapterSafe, createValidatedGrant, decryptBlobWithSignedKey, decryptWithPrivateKey, decryptWithWalletPrivateKey, Vana as default, detectPlatform, encryptBlobWithSignedKey, encryptFileKey, encryptWithWalletPublicKey, extractIpfsHash, fetchAndValidateSchema, fetchWithFallbacks, formatEth, formatNumber, formatToken, generateEncryptionKey, generateEncryptionKeyPair, generatePGPKeyPair, getAbi, getAllChains, getChainConfig, getContractAddress, getContractController, getContractInfo, getEncryptionParameters, getGatewayUrls, getGrantFileHash, getGrantTimeRemaining, getPlatformCapabilities, hasStorageConfig, isAPIResponse, isChainConfig, isGrantExpired, isIpfsUrl, isPlatformSupported, isReplicateAPIResponse, isVanaChain, isVanaChainId, isWalletConfig, moksha, mokshaTestnet, type operations, parseReplicateOutput, type paths, retrieveAndValidateGrant, retrieveGrantFile, safeParseJSON, schemaValidator, shortenAddress, storeGrantFile, summarizeGrant, validateDataAgainstSchema, validateDataSchemaAgainstMetaSchema, validateGrant, validateGrantExpiry, validateGrantFile, validateGranteeAccess, validateOperationAccess, vanaMainnet, type webhooks, withSignatureCache };
|