@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.node.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";
|
|
@@ -34780,19 +34866,31 @@ declare class DataController {
|
|
|
34780
34866
|
*/
|
|
34781
34867
|
addPermissionToFile(fileId: number, account: Address, publicKey: string): Promise<TransactionHandle<FilePermissionResult>>;
|
|
34782
34868
|
/**
|
|
34783
|
-
* Submits a file permission transaction
|
|
34869
|
+
* Submits a file permission transaction to the blockchain.
|
|
34784
34870
|
*
|
|
34785
|
-
*
|
|
34871
|
+
* @remarks
|
|
34872
|
+
* This method supports gasless transactions via relayer callbacks when configured.
|
|
34873
|
+
* It encrypts the user's encryption key with the recipient's public key before submission.
|
|
34786
34874
|
* Use this when you want to handle transaction confirmation and event parsing separately.
|
|
34787
34875
|
*
|
|
34788
|
-
* @param fileId - The ID of the file to
|
|
34789
|
-
* @param account - The
|
|
34790
|
-
* @param publicKey - The public key
|
|
34791
|
-
*
|
|
34876
|
+
* @param fileId - The ID of the file to grant permission for
|
|
34877
|
+
* @param account - The recipient's wallet address that will access the file
|
|
34878
|
+
* @param publicKey - The recipient's public key for encryption.
|
|
34879
|
+
* Obtain via `vana.server.getIdentity(account).public_key`
|
|
34880
|
+
* @returns Promise resolving to TransactionHandle for tracking the transaction
|
|
34881
|
+
* @throws {Error} When chain ID is not available
|
|
34882
|
+
* @throws {Error} When encryption key generation fails
|
|
34883
|
+
* @throws {Error} When public key encryption fails
|
|
34884
|
+
*
|
|
34792
34885
|
* @example
|
|
34793
34886
|
* ```typescript
|
|
34794
|
-
* const
|
|
34795
|
-
*
|
|
34887
|
+
* const tx = await vana.data.submitFilePermission(
|
|
34888
|
+
* fileId,
|
|
34889
|
+
* "0x742d35Cc6558Fd4D9e9E0E888F0462ef6919Bd36",
|
|
34890
|
+
* recipientPublicKey
|
|
34891
|
+
* );
|
|
34892
|
+
* const result = await tx.waitForEvents();
|
|
34893
|
+
* console.log(`Permission granted with ID: ${result.permissionId}`);
|
|
34796
34894
|
* ```
|
|
34797
34895
|
*/
|
|
34798
34896
|
submitFilePermission(fileId: number, account: Address, publicKey: string): Promise<TransactionHandle<FilePermissionResult>>;
|
|
@@ -34964,6 +35062,56 @@ declare class DataController {
|
|
|
34964
35062
|
fetchAndValidateSchema(url: string): Promise<DataSchema>;
|
|
34965
35063
|
}
|
|
34966
35064
|
|
|
35065
|
+
/**
|
|
35066
|
+
* Configuration options for polling server operations.
|
|
35067
|
+
*/
|
|
35068
|
+
interface PollingOptions {
|
|
35069
|
+
/** Polling interval in milliseconds (default: 500) */
|
|
35070
|
+
pollingInterval?: number;
|
|
35071
|
+
/** Maximum time to wait in milliseconds (default: 30000) */
|
|
35072
|
+
timeout?: number;
|
|
35073
|
+
}
|
|
35074
|
+
/**
|
|
35075
|
+
* Provides a Promise-based interface for server operation lifecycle management.
|
|
35076
|
+
*
|
|
35077
|
+
* @remarks
|
|
35078
|
+
* OperationHandle enables immediate access to operation IDs while providing
|
|
35079
|
+
* Promise-based methods for waiting on results. This pattern matches
|
|
35080
|
+
* TransactionHandle for consistency across the SDK's async operations.
|
|
35081
|
+
*
|
|
35082
|
+
* @category Server Operations
|
|
35083
|
+
*/
|
|
35084
|
+
declare class OperationHandle<T = unknown> {
|
|
35085
|
+
private readonly controller;
|
|
35086
|
+
readonly id: string;
|
|
35087
|
+
private _resultPromise?;
|
|
35088
|
+
constructor(controller: ServerController, id: string);
|
|
35089
|
+
/**
|
|
35090
|
+
* Waits for the operation to complete and returns the result.
|
|
35091
|
+
*
|
|
35092
|
+
* @remarks
|
|
35093
|
+
* Results are memoized - multiple calls return the same promise.
|
|
35094
|
+
* The method polls the server at regular intervals until the operation
|
|
35095
|
+
* succeeds, fails, or times out. Returns the raw string result from the
|
|
35096
|
+
* server - callers are responsible for parsing if needed.
|
|
35097
|
+
*
|
|
35098
|
+
* @param options - Optional polling configuration
|
|
35099
|
+
* @returns The operation result as a string when completed
|
|
35100
|
+
* @throws {PersonalServerError} When the operation fails or times out
|
|
35101
|
+
* @example
|
|
35102
|
+
* ```typescript
|
|
35103
|
+
* const result = await handle.waitForResult({
|
|
35104
|
+
* timeout: 60000,
|
|
35105
|
+
* pollingInterval: 500
|
|
35106
|
+
* });
|
|
35107
|
+
* // If expecting JSON, parse it:
|
|
35108
|
+
* const data = JSON.parse(result);
|
|
35109
|
+
* ```
|
|
35110
|
+
*/
|
|
35111
|
+
waitForResult(options?: PollingOptions): Promise<T>;
|
|
35112
|
+
private pollForCompletion;
|
|
35113
|
+
}
|
|
35114
|
+
|
|
34967
35115
|
/**
|
|
34968
35116
|
* Manages interactions with Vana personal servers and identity infrastructure.
|
|
34969
35117
|
*
|
|
@@ -35044,54 +35192,47 @@ declare class ServerController {
|
|
|
35044
35192
|
*/
|
|
35045
35193
|
getIdentity(request: InitPersonalServerParams): Promise<PersonalServerIdentity>;
|
|
35046
35194
|
/**
|
|
35047
|
-
* Creates
|
|
35195
|
+
* Creates a server operation and returns a handle for lifecycle management.
|
|
35048
35196
|
*
|
|
35049
35197
|
* @remarks
|
|
35050
|
-
* This method submits a computation request to the personal server
|
|
35051
|
-
*
|
|
35052
|
-
*
|
|
35198
|
+
* This method submits a computation request to the personal server and returns
|
|
35199
|
+
* an OperationHandle that provides Promise-based methods for waiting on results.
|
|
35200
|
+
* The handle pattern matches TransactionHandle for consistency across async operations.
|
|
35201
|
+
*
|
|
35202
|
+
* @param params - The operation request parameters
|
|
35053
35203
|
* @param params.permissionId - The permission ID authorizing this operation.
|
|
35054
|
-
* Obtain
|
|
35055
|
-
* @returns
|
|
35056
|
-
* @throws {PersonalServerError} When server request fails or parameters are invalid
|
|
35057
|
-
*
|
|
35058
|
-
* @throws {NetworkError} When personal server API communication fails.
|
|
35059
|
-
* Check server URL configuration and network connectivity.
|
|
35204
|
+
* Obtain via `vana.permissions.getUserPermissionGrantsOnChain()`.
|
|
35205
|
+
* @returns An OperationHandle providing access to the operation ID and result methods
|
|
35206
|
+
* @throws {PersonalServerError} When the server request fails or parameters are invalid
|
|
35207
|
+
* @throws {NetworkError} When personal server API communication fails
|
|
35060
35208
|
* @example
|
|
35061
35209
|
* ```typescript
|
|
35062
|
-
* const
|
|
35063
|
-
* permissionId: 123
|
|
35210
|
+
* const operation = await vana.server.createOperation({
|
|
35211
|
+
* permissionId: 123
|
|
35064
35212
|
* });
|
|
35213
|
+
* console.log(`Operation ID: ${operation.id}`);
|
|
35065
35214
|
*
|
|
35066
|
-
*
|
|
35215
|
+
* // Wait for completion
|
|
35216
|
+
* const result = await operation.waitForResult();
|
|
35217
|
+
* console.log("Result:", result);
|
|
35067
35218
|
* ```
|
|
35068
35219
|
*/
|
|
35069
|
-
createOperation(params: CreateOperationParams): Promise<
|
|
35220
|
+
createOperation<T = unknown>(params: CreateOperationParams): Promise<OperationHandle<T>>;
|
|
35070
35221
|
/**
|
|
35071
|
-
*
|
|
35222
|
+
* Retrieves the current status and result of a server operation.
|
|
35072
35223
|
*
|
|
35073
35224
|
* @remarks
|
|
35074
|
-
*
|
|
35075
|
-
*
|
|
35076
|
-
*
|
|
35077
|
-
*
|
|
35078
|
-
*
|
|
35079
|
-
*
|
|
35080
|
-
* @param operationId - The operation ID returned from the initial request submission
|
|
35081
|
-
* @returns A Promise that resolves to the current operation response with status and results
|
|
35082
|
-
* @throws {NetworkError} When the polling request fails or returns invalid data
|
|
35225
|
+
* Common status values: `starting`, `running`, `succeeded`, `failed`, `canceled`.
|
|
35226
|
+
* When status is `succeeded`, the result field contains the operation output.
|
|
35227
|
+
*
|
|
35228
|
+
* @param operationId - The ID of the operation to query
|
|
35229
|
+
* @returns The operation response containing status, result, and metadata
|
|
35230
|
+
* @throws {NetworkError} When the API request fails or returns invalid data
|
|
35083
35231
|
* @example
|
|
35084
35232
|
* ```typescript
|
|
35085
|
-
*
|
|
35086
|
-
*
|
|
35087
|
-
*
|
|
35088
|
-
* while (result.status === "processing") {
|
|
35089
|
-
* await new Promise(resolve => setTimeout(resolve, 1000));
|
|
35090
|
-
* result = await vana.server.getOperation(response.id);
|
|
35091
|
-
* }
|
|
35092
|
-
*
|
|
35093
|
-
* if (result.status === "succeeded") {
|
|
35094
|
-
* console.log("Computation completed:", result.output);
|
|
35233
|
+
* const status = await vana.server.getOperation(operationId);
|
|
35234
|
+
* if (status.status === 'succeeded') {
|
|
35235
|
+
* console.log('Result:', JSON.parse(status.result));
|
|
35095
35236
|
* }
|
|
35096
35237
|
* ```
|
|
35097
35238
|
*/
|
|
@@ -37805,4 +37946,4 @@ declare function Vana(config: VanaConfig): VanaNodeImpl;
|
|
|
37805
37946
|
*/
|
|
37806
37947
|
type VanaInstance = VanaNodeImpl;
|
|
37807
37948
|
|
|
37808
|
-
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, NodePlatformAdapter, 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 RelayerRequestPayload, 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, SchemaController, 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, 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, VanaNodeImpl, type VanaPlatformAdapter, type WalletConfig, type WalletConfigWithStorage, __contractCache, chains, checkGrantAccess, clearContractCache, type components, convertIpfsUrl, convertIpfsUrlWithFallbacks, createAndStoreGrant, createBrowserPlatformAdapter, createGrantFile, createNodePlatformAdapter, createPlatformAdapter, createPlatformAdapterFor, 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, handleRelayerRequest, 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 };
|
|
37949
|
+
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, NodePlatformAdapter, 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 RelayerRequestPayload, 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, SchemaController, 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, 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, VanaNodeImpl, type VanaPlatformAdapter, type WalletConfig, type WalletConfigWithStorage, __contractCache, chains, checkGrantAccess, clearContractCache, type components, convertIpfsUrl, convertIpfsUrlWithFallbacks, createAndStoreGrant, createBrowserPlatformAdapter, createGrantFile, createNodePlatformAdapter, createPlatformAdapter, createPlatformAdapterFor, 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, handleRelayerRequest, 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 };
|