Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fleekhq/space-client

Package Overview
Dependencies
Maintainers
6
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fleekhq/space-client - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

1

dist/client.js

@@ -124,2 +124,3 @@ "use strict";

request.setUuid(payload.uuid);
request.setType(payload.type);
request.setPassphrase(payload.passphrase);

@@ -126,0 +127,0 @@ this.instance.backupKeysByPassphrase(request, metadata, (err, res) => {

238

dist/definitions/SpaceServiceClientPb.d.ts

@@ -8,3 +8,3 @@ /**

import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
import { AddItemsRequest, AddItemsResponse, BackupKeysByPassphraseRequest, BackupKeysByPassphraseResponse, BucketBackupRestoreRequest, BucketBackupRestoreResponse, CreateBucketRequest, CreateBucketResponse, CreateFolderRequest, CreateFolderResponse, CreateLocalKeysBackupRequest, CreateLocalKeysBackupResponse, DeleteAccountRequest, DeleteAccountResponse, DeleteKeyPairRequest, DeleteKeyPairResponse, FileEventResponse, FuseDriveResponse, GenerateKeyPairRequest, GenerateKeyPairResponse, GeneratePublicFileLinkRequest, GeneratePublicFileLinkResponse, GetAPISessionTokensRequest, GetAPISessionTokensResponse, GetNotificationsRequest, GetNotificationsResponse, GetPublicKeyRequest, GetPublicKeyResponse, GetRecentlySharedWithRequest, GetRecentlySharedWithResponse, GetSharedWithMeFilesRequest, GetSharedWithMeFilesResponse, GetStoredMnemonicRequest, GetStoredMnemonicResponse, GetUsageInfoRequest, GetUsageInfoResponse, HandleFilesInvitationRequest, HandleFilesInvitationResponse, JoinBucketRequest, JoinBucketResponse, ListBucketsRequest, ListBucketsResponse, ListDirectoriesRequest, ListDirectoriesResponse, ListDirectoryRequest, ListDirectoryResponse, NotificationEventResponse, OpenFileRequest, OpenFileResponse, OpenPublicFileRequest, OpenPublicFileResponse, ReadNotificationRequest, ReadNotificationResponse, RecoverKeysByLocalBackupRequest, RecoverKeysByLocalBackupResponse, RecoverKeysByPassphraseRequest, RecoverKeysByPassphraseResponse, RestoreKeyPairViaMnemonicRequest, RestoreKeyPairViaMnemonicResponse, SearchFilesRequest, SearchFilesResponse, SetNotificationsLastSeenAtRequest, SetNotificationsLastSeenAtResponse, ShareBucketRequest, ShareBucketResponse, ShareFilesViaPublicKeyRequest, ShareFilesViaPublicKeyResponse, TestKeysPassphraseRequest, TestKeysPassphraseResponse, TextileEventResponse, ToggleBucketBackupRequest, ToggleBucketBackupResponse, ToggleFuseRequest } from './space_pb';
import * as space_pb from './space_pb';
export declare class SpaceApiClient {

@@ -17,3 +17,3 @@ client_: grpcWeb.AbstractClientBase;

options_: null | {
[index: string]: string;
[index: string]: any;
};

@@ -23,120 +23,120 @@ constructor(hostname: string, credentials?: null | {

}, options?: null | {
[index: string]: string;
[index: string]: any;
});
methodInfoListDirectories: grpcWeb.AbstractClientBase.MethodInfo<ListDirectoriesRequest, ListDirectoriesResponse>;
listDirectories(request: ListDirectoriesRequest, metadata: grpcWeb.Metadata | null): Promise<ListDirectoriesResponse>;
listDirectories(request: ListDirectoriesRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: ListDirectoriesResponse) => void): grpcWeb.ClientReadableStream<ListDirectoriesResponse>;
methodInfoListDirectory: grpcWeb.AbstractClientBase.MethodInfo<ListDirectoryRequest, ListDirectoryResponse>;
listDirectory(request: ListDirectoryRequest, metadata: grpcWeb.Metadata | null): Promise<ListDirectoryResponse>;
listDirectory(request: ListDirectoryRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: ListDirectoryResponse) => void): grpcWeb.ClientReadableStream<ListDirectoryResponse>;
methodInfoGenerateKeyPair: grpcWeb.AbstractClientBase.MethodInfo<GenerateKeyPairRequest, GenerateKeyPairResponse>;
generateKeyPair(request: GenerateKeyPairRequest, metadata: grpcWeb.Metadata | null): Promise<GenerateKeyPairResponse>;
generateKeyPair(request: GenerateKeyPairRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: GenerateKeyPairResponse) => void): grpcWeb.ClientReadableStream<GenerateKeyPairResponse>;
methodInfoGetStoredMnemonic: grpcWeb.AbstractClientBase.MethodInfo<GetStoredMnemonicRequest, GetStoredMnemonicResponse>;
getStoredMnemonic(request: GetStoredMnemonicRequest, metadata: grpcWeb.Metadata | null): Promise<GetStoredMnemonicResponse>;
getStoredMnemonic(request: GetStoredMnemonicRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: GetStoredMnemonicResponse) => void): grpcWeb.ClientReadableStream<GetStoredMnemonicResponse>;
methodInfoRestoreKeyPairViaMnemonic: grpcWeb.AbstractClientBase.MethodInfo<RestoreKeyPairViaMnemonicRequest, RestoreKeyPairViaMnemonicResponse>;
restoreKeyPairViaMnemonic(request: RestoreKeyPairViaMnemonicRequest, metadata: grpcWeb.Metadata | null): Promise<RestoreKeyPairViaMnemonicResponse>;
restoreKeyPairViaMnemonic(request: RestoreKeyPairViaMnemonicRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: RestoreKeyPairViaMnemonicResponse) => void): grpcWeb.ClientReadableStream<RestoreKeyPairViaMnemonicResponse>;
methodInfoDeleteKeyPair: grpcWeb.AbstractClientBase.MethodInfo<DeleteKeyPairRequest, DeleteKeyPairResponse>;
deleteKeyPair(request: DeleteKeyPairRequest, metadata: grpcWeb.Metadata | null): Promise<DeleteKeyPairResponse>;
deleteKeyPair(request: DeleteKeyPairRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: DeleteKeyPairResponse) => void): grpcWeb.ClientReadableStream<DeleteKeyPairResponse>;
methodInfoGenerateKeyPairWithForce: grpcWeb.AbstractClientBase.MethodInfo<GenerateKeyPairRequest, GenerateKeyPairResponse>;
generateKeyPairWithForce(request: GenerateKeyPairRequest, metadata: grpcWeb.Metadata | null): Promise<GenerateKeyPairResponse>;
generateKeyPairWithForce(request: GenerateKeyPairRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: GenerateKeyPairResponse) => void): grpcWeb.ClientReadableStream<GenerateKeyPairResponse>;
methodInfoGetPublicKey: grpcWeb.AbstractClientBase.MethodInfo<GetPublicKeyRequest, GetPublicKeyResponse>;
getPublicKey(request: GetPublicKeyRequest, metadata: grpcWeb.Metadata | null): Promise<GetPublicKeyResponse>;
getPublicKey(request: GetPublicKeyRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: GetPublicKeyResponse) => void): grpcWeb.ClientReadableStream<GetPublicKeyResponse>;
methodInfoSubscribe: grpcWeb.AbstractClientBase.MethodInfo<google_protobuf_empty_pb.Empty, FileEventResponse>;
subscribe(request: google_protobuf_empty_pb.Empty, metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<FileEventResponse>;
methodInfoTxlSubscribe: grpcWeb.AbstractClientBase.MethodInfo<google_protobuf_empty_pb.Empty, TextileEventResponse>;
txlSubscribe(request: google_protobuf_empty_pb.Empty, metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<TextileEventResponse>;
methodInfoOpenFile: grpcWeb.AbstractClientBase.MethodInfo<OpenFileRequest, OpenFileResponse>;
openFile(request: OpenFileRequest, metadata: grpcWeb.Metadata | null): Promise<OpenFileResponse>;
openFile(request: OpenFileRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: OpenFileResponse) => void): grpcWeb.ClientReadableStream<OpenFileResponse>;
methodInfoGeneratePublicFileLink: grpcWeb.AbstractClientBase.MethodInfo<GeneratePublicFileLinkRequest, GeneratePublicFileLinkResponse>;
generatePublicFileLink(request: GeneratePublicFileLinkRequest, metadata: grpcWeb.Metadata | null): Promise<GeneratePublicFileLinkResponse>;
generatePublicFileLink(request: GeneratePublicFileLinkRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: GeneratePublicFileLinkResponse) => void): grpcWeb.ClientReadableStream<GeneratePublicFileLinkResponse>;
methodInfoGetSharedWithMeFiles: grpcWeb.AbstractClientBase.MethodInfo<GetSharedWithMeFilesRequest, GetSharedWithMeFilesResponse>;
getSharedWithMeFiles(request: GetSharedWithMeFilesRequest, metadata: grpcWeb.Metadata | null): Promise<GetSharedWithMeFilesResponse>;
getSharedWithMeFiles(request: GetSharedWithMeFilesRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: GetSharedWithMeFilesResponse) => void): grpcWeb.ClientReadableStream<GetSharedWithMeFilesResponse>;
methodInfoOpenPublicFile: grpcWeb.AbstractClientBase.MethodInfo<OpenPublicFileRequest, OpenPublicFileResponse>;
openPublicFile(request: OpenPublicFileRequest, metadata: grpcWeb.Metadata | null): Promise<OpenPublicFileResponse>;
openPublicFile(request: OpenPublicFileRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: OpenPublicFileResponse) => void): grpcWeb.ClientReadableStream<OpenPublicFileResponse>;
methodInfoAddItems: grpcWeb.AbstractClientBase.MethodInfo<AddItemsRequest, AddItemsResponse>;
addItems(request: AddItemsRequest, metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<AddItemsResponse>;
methodInfoCreateFolder: grpcWeb.AbstractClientBase.MethodInfo<CreateFolderRequest, CreateFolderResponse>;
createFolder(request: CreateFolderRequest, metadata: grpcWeb.Metadata | null): Promise<CreateFolderResponse>;
createFolder(request: CreateFolderRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: CreateFolderResponse) => void): grpcWeb.ClientReadableStream<CreateFolderResponse>;
methodInfoToggleFuseDrive: grpcWeb.AbstractClientBase.MethodInfo<ToggleFuseRequest, FuseDriveResponse>;
toggleFuseDrive(request: ToggleFuseRequest, metadata: grpcWeb.Metadata | null): Promise<FuseDriveResponse>;
toggleFuseDrive(request: ToggleFuseRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: FuseDriveResponse) => void): grpcWeb.ClientReadableStream<FuseDriveResponse>;
methodInfoGetFuseDriveStatus: grpcWeb.AbstractClientBase.MethodInfo<google_protobuf_empty_pb.Empty, FuseDriveResponse>;
getFuseDriveStatus(request: google_protobuf_empty_pb.Empty, metadata: grpcWeb.Metadata | null): Promise<FuseDriveResponse>;
getFuseDriveStatus(request: google_protobuf_empty_pb.Empty, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: FuseDriveResponse) => void): grpcWeb.ClientReadableStream<FuseDriveResponse>;
methodInfoCreateBucket: grpcWeb.AbstractClientBase.MethodInfo<CreateBucketRequest, CreateBucketResponse>;
createBucket(request: CreateBucketRequest, metadata: grpcWeb.Metadata | null): Promise<CreateBucketResponse>;
createBucket(request: CreateBucketRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: CreateBucketResponse) => void): grpcWeb.ClientReadableStream<CreateBucketResponse>;
methodInfoBackupKeysByPassphrase: grpcWeb.AbstractClientBase.MethodInfo<BackupKeysByPassphraseRequest, BackupKeysByPassphraseResponse>;
backupKeysByPassphrase(request: BackupKeysByPassphraseRequest, metadata: grpcWeb.Metadata | null): Promise<BackupKeysByPassphraseResponse>;
backupKeysByPassphrase(request: BackupKeysByPassphraseRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: BackupKeysByPassphraseResponse) => void): grpcWeb.ClientReadableStream<BackupKeysByPassphraseResponse>;
methodInfoRecoverKeysByPassphrase: grpcWeb.AbstractClientBase.MethodInfo<RecoverKeysByPassphraseRequest, RecoverKeysByPassphraseResponse>;
recoverKeysByPassphrase(request: RecoverKeysByPassphraseRequest, metadata: grpcWeb.Metadata | null): Promise<RecoverKeysByPassphraseResponse>;
recoverKeysByPassphrase(request: RecoverKeysByPassphraseRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: RecoverKeysByPassphraseResponse) => void): grpcWeb.ClientReadableStream<RecoverKeysByPassphraseResponse>;
methodInfoTestKeysPassphrase: grpcWeb.AbstractClientBase.MethodInfo<TestKeysPassphraseRequest, TestKeysPassphraseResponse>;
testKeysPassphrase(request: TestKeysPassphraseRequest, metadata: grpcWeb.Metadata | null): Promise<TestKeysPassphraseResponse>;
testKeysPassphrase(request: TestKeysPassphraseRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: TestKeysPassphraseResponse) => void): grpcWeb.ClientReadableStream<TestKeysPassphraseResponse>;
methodInfoCreateLocalKeysBackup: grpcWeb.AbstractClientBase.MethodInfo<CreateLocalKeysBackupRequest, CreateLocalKeysBackupResponse>;
createLocalKeysBackup(request: CreateLocalKeysBackupRequest, metadata: grpcWeb.Metadata | null): Promise<CreateLocalKeysBackupResponse>;
createLocalKeysBackup(request: CreateLocalKeysBackupRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: CreateLocalKeysBackupResponse) => void): grpcWeb.ClientReadableStream<CreateLocalKeysBackupResponse>;
methodInfoRecoverKeysByLocalBackup: grpcWeb.AbstractClientBase.MethodInfo<RecoverKeysByLocalBackupRequest, RecoverKeysByLocalBackupResponse>;
recoverKeysByLocalBackup(request: RecoverKeysByLocalBackupRequest, metadata: grpcWeb.Metadata | null): Promise<RecoverKeysByLocalBackupResponse>;
recoverKeysByLocalBackup(request: RecoverKeysByLocalBackupRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: RecoverKeysByLocalBackupResponse) => void): grpcWeb.ClientReadableStream<RecoverKeysByLocalBackupResponse>;
methodInfoShareBucket: grpcWeb.AbstractClientBase.MethodInfo<ShareBucketRequest, ShareBucketResponse>;
shareBucket(request: ShareBucketRequest, metadata: grpcWeb.Metadata | null): Promise<ShareBucketResponse>;
shareBucket(request: ShareBucketRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: ShareBucketResponse) => void): grpcWeb.ClientReadableStream<ShareBucketResponse>;
methodInfoJoinBucket: grpcWeb.AbstractClientBase.MethodInfo<JoinBucketRequest, JoinBucketResponse>;
joinBucket(request: JoinBucketRequest, metadata: grpcWeb.Metadata | null): Promise<JoinBucketResponse>;
joinBucket(request: JoinBucketRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: JoinBucketResponse) => void): grpcWeb.ClientReadableStream<JoinBucketResponse>;
methodInfoShareFilesViaPublicKey: grpcWeb.AbstractClientBase.MethodInfo<ShareFilesViaPublicKeyRequest, ShareFilesViaPublicKeyResponse>;
shareFilesViaPublicKey(request: ShareFilesViaPublicKeyRequest, metadata: grpcWeb.Metadata | null): Promise<ShareFilesViaPublicKeyResponse>;
shareFilesViaPublicKey(request: ShareFilesViaPublicKeyRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: ShareFilesViaPublicKeyResponse) => void): grpcWeb.ClientReadableStream<ShareFilesViaPublicKeyResponse>;
methodInfoHandleFilesInvitation: grpcWeb.AbstractClientBase.MethodInfo<HandleFilesInvitationRequest, HandleFilesInvitationResponse>;
handleFilesInvitation(request: HandleFilesInvitationRequest, metadata: grpcWeb.Metadata | null): Promise<HandleFilesInvitationResponse>;
handleFilesInvitation(request: HandleFilesInvitationRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: HandleFilesInvitationResponse) => void): grpcWeb.ClientReadableStream<HandleFilesInvitationResponse>;
methodInfoNotificationSubscribe: grpcWeb.AbstractClientBase.MethodInfo<google_protobuf_empty_pb.Empty, NotificationEventResponse>;
notificationSubscribe(request: google_protobuf_empty_pb.Empty, metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<NotificationEventResponse>;
methodInfoListBuckets: grpcWeb.AbstractClientBase.MethodInfo<ListBucketsRequest, ListBucketsResponse>;
listBuckets(request: ListBucketsRequest, metadata: grpcWeb.Metadata | null): Promise<ListBucketsResponse>;
listBuckets(request: ListBucketsRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: ListBucketsResponse) => void): grpcWeb.ClientReadableStream<ListBucketsResponse>;
methodInfoGetNotifications: grpcWeb.AbstractClientBase.MethodInfo<GetNotificationsRequest, GetNotificationsResponse>;
getNotifications(request: GetNotificationsRequest, metadata: grpcWeb.Metadata | null): Promise<GetNotificationsResponse>;
getNotifications(request: GetNotificationsRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: GetNotificationsResponse) => void): grpcWeb.ClientReadableStream<GetNotificationsResponse>;
methodInfoReadNotification: grpcWeb.AbstractClientBase.MethodInfo<ReadNotificationRequest, ReadNotificationResponse>;
readNotification(request: ReadNotificationRequest, metadata: grpcWeb.Metadata | null): Promise<ReadNotificationResponse>;
readNotification(request: ReadNotificationRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: ReadNotificationResponse) => void): grpcWeb.ClientReadableStream<ReadNotificationResponse>;
methodInfoDeleteAccount: grpcWeb.AbstractClientBase.MethodInfo<DeleteAccountRequest, DeleteAccountResponse>;
deleteAccount(request: DeleteAccountRequest, metadata: grpcWeb.Metadata | null): Promise<DeleteAccountResponse>;
deleteAccount(request: DeleteAccountRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: DeleteAccountResponse) => void): grpcWeb.ClientReadableStream<DeleteAccountResponse>;
methodInfoToggleBucketBackup: grpcWeb.AbstractClientBase.MethodInfo<ToggleBucketBackupRequest, ToggleBucketBackupResponse>;
toggleBucketBackup(request: ToggleBucketBackupRequest, metadata: grpcWeb.Metadata | null): Promise<ToggleBucketBackupResponse>;
toggleBucketBackup(request: ToggleBucketBackupRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: ToggleBucketBackupResponse) => void): grpcWeb.ClientReadableStream<ToggleBucketBackupResponse>;
methodInfoBucketBackupRestore: grpcWeb.AbstractClientBase.MethodInfo<BucketBackupRestoreRequest, BucketBackupRestoreResponse>;
bucketBackupRestore(request: BucketBackupRestoreRequest, metadata: grpcWeb.Metadata | null): Promise<BucketBackupRestoreResponse>;
bucketBackupRestore(request: BucketBackupRestoreRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: BucketBackupRestoreResponse) => void): grpcWeb.ClientReadableStream<BucketBackupRestoreResponse>;
methodInfoGetUsageInfo: grpcWeb.AbstractClientBase.MethodInfo<GetUsageInfoRequest, GetUsageInfoResponse>;
getUsageInfo(request: GetUsageInfoRequest, metadata: grpcWeb.Metadata | null): Promise<GetUsageInfoResponse>;
getUsageInfo(request: GetUsageInfoRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: GetUsageInfoResponse) => void): grpcWeb.ClientReadableStream<GetUsageInfoResponse>;
methodInfoGetAPISessionTokens: grpcWeb.AbstractClientBase.MethodInfo<GetAPISessionTokensRequest, GetAPISessionTokensResponse>;
getAPISessionTokens(request: GetAPISessionTokensRequest, metadata: grpcWeb.Metadata | null): Promise<GetAPISessionTokensResponse>;
getAPISessionTokens(request: GetAPISessionTokensRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: GetAPISessionTokensResponse) => void): grpcWeb.ClientReadableStream<GetAPISessionTokensResponse>;
methodInfoGetRecentlySharedWith: grpcWeb.AbstractClientBase.MethodInfo<GetRecentlySharedWithRequest, GetRecentlySharedWithResponse>;
getRecentlySharedWith(request: GetRecentlySharedWithRequest, metadata: grpcWeb.Metadata | null): Promise<GetRecentlySharedWithResponse>;
getRecentlySharedWith(request: GetRecentlySharedWithRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: GetRecentlySharedWithResponse) => void): grpcWeb.ClientReadableStream<GetRecentlySharedWithResponse>;
methodInfoSetNotificationsLastSeenAt: grpcWeb.AbstractClientBase.MethodInfo<SetNotificationsLastSeenAtRequest, SetNotificationsLastSeenAtResponse>;
setNotificationsLastSeenAt(request: SetNotificationsLastSeenAtRequest, metadata: grpcWeb.Metadata | null): Promise<SetNotificationsLastSeenAtResponse>;
setNotificationsLastSeenAt(request: SetNotificationsLastSeenAtRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: SetNotificationsLastSeenAtResponse) => void): grpcWeb.ClientReadableStream<SetNotificationsLastSeenAtResponse>;
methodInfoSearchFiles: grpcWeb.AbstractClientBase.MethodInfo<SearchFilesRequest, SearchFilesResponse>;
searchFiles(request: SearchFilesRequest, metadata: grpcWeb.Metadata | null): Promise<SearchFilesResponse>;
searchFiles(request: SearchFilesRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: SearchFilesResponse) => void): grpcWeb.ClientReadableStream<SearchFilesResponse>;
methodInfoListDirectories: grpcWeb.AbstractClientBase.MethodInfo<space_pb.ListDirectoriesRequest, space_pb.ListDirectoriesResponse>;
listDirectories(request: space_pb.ListDirectoriesRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.ListDirectoriesResponse>;
listDirectories(request: space_pb.ListDirectoriesRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.ListDirectoriesResponse) => void): grpcWeb.ClientReadableStream<space_pb.ListDirectoriesResponse>;
methodInfoListDirectory: grpcWeb.AbstractClientBase.MethodInfo<space_pb.ListDirectoryRequest, space_pb.ListDirectoryResponse>;
listDirectory(request: space_pb.ListDirectoryRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.ListDirectoryResponse>;
listDirectory(request: space_pb.ListDirectoryRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.ListDirectoryResponse) => void): grpcWeb.ClientReadableStream<space_pb.ListDirectoryResponse>;
methodInfoGenerateKeyPair: grpcWeb.AbstractClientBase.MethodInfo<space_pb.GenerateKeyPairRequest, space_pb.GenerateKeyPairResponse>;
generateKeyPair(request: space_pb.GenerateKeyPairRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.GenerateKeyPairResponse>;
generateKeyPair(request: space_pb.GenerateKeyPairRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.GenerateKeyPairResponse) => void): grpcWeb.ClientReadableStream<space_pb.GenerateKeyPairResponse>;
methodInfoGetStoredMnemonic: grpcWeb.AbstractClientBase.MethodInfo<space_pb.GetStoredMnemonicRequest, space_pb.GetStoredMnemonicResponse>;
getStoredMnemonic(request: space_pb.GetStoredMnemonicRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.GetStoredMnemonicResponse>;
getStoredMnemonic(request: space_pb.GetStoredMnemonicRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.GetStoredMnemonicResponse) => void): grpcWeb.ClientReadableStream<space_pb.GetStoredMnemonicResponse>;
methodInfoRestoreKeyPairViaMnemonic: grpcWeb.AbstractClientBase.MethodInfo<space_pb.RestoreKeyPairViaMnemonicRequest, space_pb.RestoreKeyPairViaMnemonicResponse>;
restoreKeyPairViaMnemonic(request: space_pb.RestoreKeyPairViaMnemonicRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.RestoreKeyPairViaMnemonicResponse>;
restoreKeyPairViaMnemonic(request: space_pb.RestoreKeyPairViaMnemonicRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.RestoreKeyPairViaMnemonicResponse) => void): grpcWeb.ClientReadableStream<space_pb.RestoreKeyPairViaMnemonicResponse>;
methodInfoDeleteKeyPair: grpcWeb.AbstractClientBase.MethodInfo<space_pb.DeleteKeyPairRequest, space_pb.DeleteKeyPairResponse>;
deleteKeyPair(request: space_pb.DeleteKeyPairRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.DeleteKeyPairResponse>;
deleteKeyPair(request: space_pb.DeleteKeyPairRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.DeleteKeyPairResponse) => void): grpcWeb.ClientReadableStream<space_pb.DeleteKeyPairResponse>;
methodInfoGenerateKeyPairWithForce: grpcWeb.AbstractClientBase.MethodInfo<space_pb.GenerateKeyPairRequest, space_pb.GenerateKeyPairResponse>;
generateKeyPairWithForce(request: space_pb.GenerateKeyPairRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.GenerateKeyPairResponse>;
generateKeyPairWithForce(request: space_pb.GenerateKeyPairRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.GenerateKeyPairResponse) => void): grpcWeb.ClientReadableStream<space_pb.GenerateKeyPairResponse>;
methodInfoGetPublicKey: grpcWeb.AbstractClientBase.MethodInfo<space_pb.GetPublicKeyRequest, space_pb.GetPublicKeyResponse>;
getPublicKey(request: space_pb.GetPublicKeyRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.GetPublicKeyResponse>;
getPublicKey(request: space_pb.GetPublicKeyRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.GetPublicKeyResponse) => void): grpcWeb.ClientReadableStream<space_pb.GetPublicKeyResponse>;
methodInfoSubscribe: grpcWeb.AbstractClientBase.MethodInfo<google_protobuf_empty_pb.Empty, space_pb.FileEventResponse>;
subscribe(request: google_protobuf_empty_pb.Empty, metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<space_pb.FileEventResponse>;
methodInfoTxlSubscribe: grpcWeb.AbstractClientBase.MethodInfo<google_protobuf_empty_pb.Empty, space_pb.TextileEventResponse>;
txlSubscribe(request: google_protobuf_empty_pb.Empty, metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<space_pb.TextileEventResponse>;
methodInfoOpenFile: grpcWeb.AbstractClientBase.MethodInfo<space_pb.OpenFileRequest, space_pb.OpenFileResponse>;
openFile(request: space_pb.OpenFileRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.OpenFileResponse>;
openFile(request: space_pb.OpenFileRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.OpenFileResponse) => void): grpcWeb.ClientReadableStream<space_pb.OpenFileResponse>;
methodInfoGeneratePublicFileLink: grpcWeb.AbstractClientBase.MethodInfo<space_pb.GeneratePublicFileLinkRequest, space_pb.GeneratePublicFileLinkResponse>;
generatePublicFileLink(request: space_pb.GeneratePublicFileLinkRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.GeneratePublicFileLinkResponse>;
generatePublicFileLink(request: space_pb.GeneratePublicFileLinkRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.GeneratePublicFileLinkResponse) => void): grpcWeb.ClientReadableStream<space_pb.GeneratePublicFileLinkResponse>;
methodInfoGetSharedWithMeFiles: grpcWeb.AbstractClientBase.MethodInfo<space_pb.GetSharedWithMeFilesRequest, space_pb.GetSharedWithMeFilesResponse>;
getSharedWithMeFiles(request: space_pb.GetSharedWithMeFilesRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.GetSharedWithMeFilesResponse>;
getSharedWithMeFiles(request: space_pb.GetSharedWithMeFilesRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.GetSharedWithMeFilesResponse) => void): grpcWeb.ClientReadableStream<space_pb.GetSharedWithMeFilesResponse>;
methodInfoOpenPublicFile: grpcWeb.AbstractClientBase.MethodInfo<space_pb.OpenPublicFileRequest, space_pb.OpenPublicFileResponse>;
openPublicFile(request: space_pb.OpenPublicFileRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.OpenPublicFileResponse>;
openPublicFile(request: space_pb.OpenPublicFileRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.OpenPublicFileResponse) => void): grpcWeb.ClientReadableStream<space_pb.OpenPublicFileResponse>;
methodInfoAddItems: grpcWeb.AbstractClientBase.MethodInfo<space_pb.AddItemsRequest, space_pb.AddItemsResponse>;
addItems(request: space_pb.AddItemsRequest, metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<space_pb.AddItemsResponse>;
methodInfoCreateFolder: grpcWeb.AbstractClientBase.MethodInfo<space_pb.CreateFolderRequest, space_pb.CreateFolderResponse>;
createFolder(request: space_pb.CreateFolderRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.CreateFolderResponse>;
createFolder(request: space_pb.CreateFolderRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.CreateFolderResponse) => void): grpcWeb.ClientReadableStream<space_pb.CreateFolderResponse>;
methodInfoToggleFuseDrive: grpcWeb.AbstractClientBase.MethodInfo<space_pb.ToggleFuseRequest, space_pb.FuseDriveResponse>;
toggleFuseDrive(request: space_pb.ToggleFuseRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.FuseDriveResponse>;
toggleFuseDrive(request: space_pb.ToggleFuseRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.FuseDriveResponse) => void): grpcWeb.ClientReadableStream<space_pb.FuseDriveResponse>;
methodInfoGetFuseDriveStatus: grpcWeb.AbstractClientBase.MethodInfo<google_protobuf_empty_pb.Empty, space_pb.FuseDriveResponse>;
getFuseDriveStatus(request: google_protobuf_empty_pb.Empty, metadata: grpcWeb.Metadata | null): Promise<space_pb.FuseDriveResponse>;
getFuseDriveStatus(request: google_protobuf_empty_pb.Empty, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.FuseDriveResponse) => void): grpcWeb.ClientReadableStream<space_pb.FuseDriveResponse>;
methodInfoCreateBucket: grpcWeb.AbstractClientBase.MethodInfo<space_pb.CreateBucketRequest, space_pb.CreateBucketResponse>;
createBucket(request: space_pb.CreateBucketRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.CreateBucketResponse>;
createBucket(request: space_pb.CreateBucketRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.CreateBucketResponse) => void): grpcWeb.ClientReadableStream<space_pb.CreateBucketResponse>;
methodInfoBackupKeysByPassphrase: grpcWeb.AbstractClientBase.MethodInfo<space_pb.BackupKeysByPassphraseRequest, space_pb.BackupKeysByPassphraseResponse>;
backupKeysByPassphrase(request: space_pb.BackupKeysByPassphraseRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.BackupKeysByPassphraseResponse>;
backupKeysByPassphrase(request: space_pb.BackupKeysByPassphraseRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.BackupKeysByPassphraseResponse) => void): grpcWeb.ClientReadableStream<space_pb.BackupKeysByPassphraseResponse>;
methodInfoRecoverKeysByPassphrase: grpcWeb.AbstractClientBase.MethodInfo<space_pb.RecoverKeysByPassphraseRequest, space_pb.RecoverKeysByPassphraseResponse>;
recoverKeysByPassphrase(request: space_pb.RecoverKeysByPassphraseRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.RecoverKeysByPassphraseResponse>;
recoverKeysByPassphrase(request: space_pb.RecoverKeysByPassphraseRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.RecoverKeysByPassphraseResponse) => void): grpcWeb.ClientReadableStream<space_pb.RecoverKeysByPassphraseResponse>;
methodInfoTestKeysPassphrase: grpcWeb.AbstractClientBase.MethodInfo<space_pb.TestKeysPassphraseRequest, space_pb.TestKeysPassphraseResponse>;
testKeysPassphrase(request: space_pb.TestKeysPassphraseRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.TestKeysPassphraseResponse>;
testKeysPassphrase(request: space_pb.TestKeysPassphraseRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.TestKeysPassphraseResponse) => void): grpcWeb.ClientReadableStream<space_pb.TestKeysPassphraseResponse>;
methodInfoCreateLocalKeysBackup: grpcWeb.AbstractClientBase.MethodInfo<space_pb.CreateLocalKeysBackupRequest, space_pb.CreateLocalKeysBackupResponse>;
createLocalKeysBackup(request: space_pb.CreateLocalKeysBackupRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.CreateLocalKeysBackupResponse>;
createLocalKeysBackup(request: space_pb.CreateLocalKeysBackupRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.CreateLocalKeysBackupResponse) => void): grpcWeb.ClientReadableStream<space_pb.CreateLocalKeysBackupResponse>;
methodInfoRecoverKeysByLocalBackup: grpcWeb.AbstractClientBase.MethodInfo<space_pb.RecoverKeysByLocalBackupRequest, space_pb.RecoverKeysByLocalBackupResponse>;
recoverKeysByLocalBackup(request: space_pb.RecoverKeysByLocalBackupRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.RecoverKeysByLocalBackupResponse>;
recoverKeysByLocalBackup(request: space_pb.RecoverKeysByLocalBackupRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.RecoverKeysByLocalBackupResponse) => void): grpcWeb.ClientReadableStream<space_pb.RecoverKeysByLocalBackupResponse>;
methodInfoShareBucket: grpcWeb.AbstractClientBase.MethodInfo<space_pb.ShareBucketRequest, space_pb.ShareBucketResponse>;
shareBucket(request: space_pb.ShareBucketRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.ShareBucketResponse>;
shareBucket(request: space_pb.ShareBucketRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.ShareBucketResponse) => void): grpcWeb.ClientReadableStream<space_pb.ShareBucketResponse>;
methodInfoJoinBucket: grpcWeb.AbstractClientBase.MethodInfo<space_pb.JoinBucketRequest, space_pb.JoinBucketResponse>;
joinBucket(request: space_pb.JoinBucketRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.JoinBucketResponse>;
joinBucket(request: space_pb.JoinBucketRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.JoinBucketResponse) => void): grpcWeb.ClientReadableStream<space_pb.JoinBucketResponse>;
methodInfoShareFilesViaPublicKey: grpcWeb.AbstractClientBase.MethodInfo<space_pb.ShareFilesViaPublicKeyRequest, space_pb.ShareFilesViaPublicKeyResponse>;
shareFilesViaPublicKey(request: space_pb.ShareFilesViaPublicKeyRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.ShareFilesViaPublicKeyResponse>;
shareFilesViaPublicKey(request: space_pb.ShareFilesViaPublicKeyRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.ShareFilesViaPublicKeyResponse) => void): grpcWeb.ClientReadableStream<space_pb.ShareFilesViaPublicKeyResponse>;
methodInfoHandleFilesInvitation: grpcWeb.AbstractClientBase.MethodInfo<space_pb.HandleFilesInvitationRequest, space_pb.HandleFilesInvitationResponse>;
handleFilesInvitation(request: space_pb.HandleFilesInvitationRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.HandleFilesInvitationResponse>;
handleFilesInvitation(request: space_pb.HandleFilesInvitationRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.HandleFilesInvitationResponse) => void): grpcWeb.ClientReadableStream<space_pb.HandleFilesInvitationResponse>;
methodInfoNotificationSubscribe: grpcWeb.AbstractClientBase.MethodInfo<google_protobuf_empty_pb.Empty, space_pb.NotificationEventResponse>;
notificationSubscribe(request: google_protobuf_empty_pb.Empty, metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<space_pb.NotificationEventResponse>;
methodInfoListBuckets: grpcWeb.AbstractClientBase.MethodInfo<space_pb.ListBucketsRequest, space_pb.ListBucketsResponse>;
listBuckets(request: space_pb.ListBucketsRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.ListBucketsResponse>;
listBuckets(request: space_pb.ListBucketsRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.ListBucketsResponse) => void): grpcWeb.ClientReadableStream<space_pb.ListBucketsResponse>;
methodInfoGetNotifications: grpcWeb.AbstractClientBase.MethodInfo<space_pb.GetNotificationsRequest, space_pb.GetNotificationsResponse>;
getNotifications(request: space_pb.GetNotificationsRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.GetNotificationsResponse>;
getNotifications(request: space_pb.GetNotificationsRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.GetNotificationsResponse) => void): grpcWeb.ClientReadableStream<space_pb.GetNotificationsResponse>;
methodInfoReadNotification: grpcWeb.AbstractClientBase.MethodInfo<space_pb.ReadNotificationRequest, space_pb.ReadNotificationResponse>;
readNotification(request: space_pb.ReadNotificationRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.ReadNotificationResponse>;
readNotification(request: space_pb.ReadNotificationRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.ReadNotificationResponse) => void): grpcWeb.ClientReadableStream<space_pb.ReadNotificationResponse>;
methodInfoDeleteAccount: grpcWeb.AbstractClientBase.MethodInfo<space_pb.DeleteAccountRequest, space_pb.DeleteAccountResponse>;
deleteAccount(request: space_pb.DeleteAccountRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.DeleteAccountResponse>;
deleteAccount(request: space_pb.DeleteAccountRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.DeleteAccountResponse) => void): grpcWeb.ClientReadableStream<space_pb.DeleteAccountResponse>;
methodInfoToggleBucketBackup: grpcWeb.AbstractClientBase.MethodInfo<space_pb.ToggleBucketBackupRequest, space_pb.ToggleBucketBackupResponse>;
toggleBucketBackup(request: space_pb.ToggleBucketBackupRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.ToggleBucketBackupResponse>;
toggleBucketBackup(request: space_pb.ToggleBucketBackupRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.ToggleBucketBackupResponse) => void): grpcWeb.ClientReadableStream<space_pb.ToggleBucketBackupResponse>;
methodInfoBucketBackupRestore: grpcWeb.AbstractClientBase.MethodInfo<space_pb.BucketBackupRestoreRequest, space_pb.BucketBackupRestoreResponse>;
bucketBackupRestore(request: space_pb.BucketBackupRestoreRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.BucketBackupRestoreResponse>;
bucketBackupRestore(request: space_pb.BucketBackupRestoreRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.BucketBackupRestoreResponse) => void): grpcWeb.ClientReadableStream<space_pb.BucketBackupRestoreResponse>;
methodInfoGetUsageInfo: grpcWeb.AbstractClientBase.MethodInfo<space_pb.GetUsageInfoRequest, space_pb.GetUsageInfoResponse>;
getUsageInfo(request: space_pb.GetUsageInfoRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.GetUsageInfoResponse>;
getUsageInfo(request: space_pb.GetUsageInfoRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.GetUsageInfoResponse) => void): grpcWeb.ClientReadableStream<space_pb.GetUsageInfoResponse>;
methodInfoGetAPISessionTokens: grpcWeb.AbstractClientBase.MethodInfo<space_pb.GetAPISessionTokensRequest, space_pb.GetAPISessionTokensResponse>;
getAPISessionTokens(request: space_pb.GetAPISessionTokensRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.GetAPISessionTokensResponse>;
getAPISessionTokens(request: space_pb.GetAPISessionTokensRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.GetAPISessionTokensResponse) => void): grpcWeb.ClientReadableStream<space_pb.GetAPISessionTokensResponse>;
methodInfoGetRecentlySharedWith: grpcWeb.AbstractClientBase.MethodInfo<space_pb.GetRecentlySharedWithRequest, space_pb.GetRecentlySharedWithResponse>;
getRecentlySharedWith(request: space_pb.GetRecentlySharedWithRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.GetRecentlySharedWithResponse>;
getRecentlySharedWith(request: space_pb.GetRecentlySharedWithRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.GetRecentlySharedWithResponse) => void): grpcWeb.ClientReadableStream<space_pb.GetRecentlySharedWithResponse>;
methodInfoSetNotificationsLastSeenAt: grpcWeb.AbstractClientBase.MethodInfo<space_pb.SetNotificationsLastSeenAtRequest, space_pb.SetNotificationsLastSeenAtResponse>;
setNotificationsLastSeenAt(request: space_pb.SetNotificationsLastSeenAtRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.SetNotificationsLastSeenAtResponse>;
setNotificationsLastSeenAt(request: space_pb.SetNotificationsLastSeenAtRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.SetNotificationsLastSeenAtResponse) => void): grpcWeb.ClientReadableStream<space_pb.SetNotificationsLastSeenAtResponse>;
methodInfoSearchFiles: grpcWeb.AbstractClientBase.MethodInfo<space_pb.SearchFilesRequest, space_pb.SearchFilesResponse>;
searchFiles(request: space_pb.SearchFilesRequest, metadata: grpcWeb.Metadata | null): Promise<space_pb.SearchFilesResponse>;
searchFiles(request: space_pb.SearchFilesRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.Error, response: space_pb.SearchFilesResponse) => void): grpcWeb.ClientReadableStream<space_pb.SearchFilesResponse>;
}

@@ -32,125 +32,125 @@ "use strict";

const grpcWeb = __importStar(require("grpc-web"));
const space_pb_1 = require("./space_pb");
const space_pb = __importStar(require("./space_pb"));
class SpaceApiClient {
constructor(hostname, credentials, options) {
this.methodInfoListDirectories = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.ListDirectoriesResponse, (request) => {
this.methodInfoListDirectories = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.ListDirectoriesResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.ListDirectoriesResponse.deserializeBinary);
this.methodInfoListDirectory = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.ListDirectoryResponse, (request) => {
}, space_pb.ListDirectoriesResponse.deserializeBinary);
this.methodInfoListDirectory = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.ListDirectoryResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.ListDirectoryResponse.deserializeBinary);
this.methodInfoGenerateKeyPair = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.GenerateKeyPairResponse, (request) => {
}, space_pb.ListDirectoryResponse.deserializeBinary);
this.methodInfoGenerateKeyPair = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.GenerateKeyPairResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.GenerateKeyPairResponse.deserializeBinary);
this.methodInfoGetStoredMnemonic = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.GetStoredMnemonicResponse, (request) => {
}, space_pb.GenerateKeyPairResponse.deserializeBinary);
this.methodInfoGetStoredMnemonic = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.GetStoredMnemonicResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.GetStoredMnemonicResponse.deserializeBinary);
this.methodInfoRestoreKeyPairViaMnemonic = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.RestoreKeyPairViaMnemonicResponse, (request) => {
}, space_pb.GetStoredMnemonicResponse.deserializeBinary);
this.methodInfoRestoreKeyPairViaMnemonic = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.RestoreKeyPairViaMnemonicResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.RestoreKeyPairViaMnemonicResponse.deserializeBinary);
this.methodInfoDeleteKeyPair = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.DeleteKeyPairResponse, (request) => {
}, space_pb.RestoreKeyPairViaMnemonicResponse.deserializeBinary);
this.methodInfoDeleteKeyPair = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.DeleteKeyPairResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.DeleteKeyPairResponse.deserializeBinary);
this.methodInfoGenerateKeyPairWithForce = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.GenerateKeyPairResponse, (request) => {
}, space_pb.DeleteKeyPairResponse.deserializeBinary);
this.methodInfoGenerateKeyPairWithForce = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.GenerateKeyPairResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.GenerateKeyPairResponse.deserializeBinary);
this.methodInfoGetPublicKey = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.GetPublicKeyResponse, (request) => {
}, space_pb.GenerateKeyPairResponse.deserializeBinary);
this.methodInfoGetPublicKey = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.GetPublicKeyResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.GetPublicKeyResponse.deserializeBinary);
this.methodInfoSubscribe = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.FileEventResponse, (request) => {
}, space_pb.GetPublicKeyResponse.deserializeBinary);
this.methodInfoSubscribe = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.FileEventResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.FileEventResponse.deserializeBinary);
this.methodInfoTxlSubscribe = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.TextileEventResponse, (request) => {
}, space_pb.FileEventResponse.deserializeBinary);
this.methodInfoTxlSubscribe = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.TextileEventResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.TextileEventResponse.deserializeBinary);
this.methodInfoOpenFile = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.OpenFileResponse, (request) => {
}, space_pb.TextileEventResponse.deserializeBinary);
this.methodInfoOpenFile = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.OpenFileResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.OpenFileResponse.deserializeBinary);
this.methodInfoGeneratePublicFileLink = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.GeneratePublicFileLinkResponse, (request) => {
}, space_pb.OpenFileResponse.deserializeBinary);
this.methodInfoGeneratePublicFileLink = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.GeneratePublicFileLinkResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.GeneratePublicFileLinkResponse.deserializeBinary);
this.methodInfoGetSharedWithMeFiles = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.GetSharedWithMeFilesResponse, (request) => {
}, space_pb.GeneratePublicFileLinkResponse.deserializeBinary);
this.methodInfoGetSharedWithMeFiles = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.GetSharedWithMeFilesResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.GetSharedWithMeFilesResponse.deserializeBinary);
this.methodInfoOpenPublicFile = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.OpenPublicFileResponse, (request) => {
}, space_pb.GetSharedWithMeFilesResponse.deserializeBinary);
this.methodInfoOpenPublicFile = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.OpenPublicFileResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.OpenPublicFileResponse.deserializeBinary);
this.methodInfoAddItems = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.AddItemsResponse, (request) => {
}, space_pb.OpenPublicFileResponse.deserializeBinary);
this.methodInfoAddItems = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.AddItemsResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.AddItemsResponse.deserializeBinary);
this.methodInfoCreateFolder = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.CreateFolderResponse, (request) => {
}, space_pb.AddItemsResponse.deserializeBinary);
this.methodInfoCreateFolder = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.CreateFolderResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.CreateFolderResponse.deserializeBinary);
this.methodInfoToggleFuseDrive = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.FuseDriveResponse, (request) => {
}, space_pb.CreateFolderResponse.deserializeBinary);
this.methodInfoToggleFuseDrive = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.FuseDriveResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.FuseDriveResponse.deserializeBinary);
this.methodInfoGetFuseDriveStatus = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.FuseDriveResponse, (request) => {
}, space_pb.FuseDriveResponse.deserializeBinary);
this.methodInfoGetFuseDriveStatus = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.FuseDriveResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.FuseDriveResponse.deserializeBinary);
this.methodInfoCreateBucket = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.CreateBucketResponse, (request) => {
}, space_pb.FuseDriveResponse.deserializeBinary);
this.methodInfoCreateBucket = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.CreateBucketResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.CreateBucketResponse.deserializeBinary);
this.methodInfoBackupKeysByPassphrase = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.BackupKeysByPassphraseResponse, (request) => {
}, space_pb.CreateBucketResponse.deserializeBinary);
this.methodInfoBackupKeysByPassphrase = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.BackupKeysByPassphraseResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.BackupKeysByPassphraseResponse.deserializeBinary);
this.methodInfoRecoverKeysByPassphrase = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.RecoverKeysByPassphraseResponse, (request) => {
}, space_pb.BackupKeysByPassphraseResponse.deserializeBinary);
this.methodInfoRecoverKeysByPassphrase = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.RecoverKeysByPassphraseResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.RecoverKeysByPassphraseResponse.deserializeBinary);
this.methodInfoTestKeysPassphrase = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.TestKeysPassphraseResponse, (request) => {
}, space_pb.RecoverKeysByPassphraseResponse.deserializeBinary);
this.methodInfoTestKeysPassphrase = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.TestKeysPassphraseResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.TestKeysPassphraseResponse.deserializeBinary);
this.methodInfoCreateLocalKeysBackup = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.CreateLocalKeysBackupResponse, (request) => {
}, space_pb.TestKeysPassphraseResponse.deserializeBinary);
this.methodInfoCreateLocalKeysBackup = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.CreateLocalKeysBackupResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.CreateLocalKeysBackupResponse.deserializeBinary);
this.methodInfoRecoverKeysByLocalBackup = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.RecoverKeysByLocalBackupResponse, (request) => {
}, space_pb.CreateLocalKeysBackupResponse.deserializeBinary);
this.methodInfoRecoverKeysByLocalBackup = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.RecoverKeysByLocalBackupResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.RecoverKeysByLocalBackupResponse.deserializeBinary);
this.methodInfoShareBucket = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.ShareBucketResponse, (request) => {
}, space_pb.RecoverKeysByLocalBackupResponse.deserializeBinary);
this.methodInfoShareBucket = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.ShareBucketResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.ShareBucketResponse.deserializeBinary);
this.methodInfoJoinBucket = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.JoinBucketResponse, (request) => {
}, space_pb.ShareBucketResponse.deserializeBinary);
this.methodInfoJoinBucket = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.JoinBucketResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.JoinBucketResponse.deserializeBinary);
this.methodInfoShareFilesViaPublicKey = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.ShareFilesViaPublicKeyResponse, (request) => {
}, space_pb.JoinBucketResponse.deserializeBinary);
this.methodInfoShareFilesViaPublicKey = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.ShareFilesViaPublicKeyResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.ShareFilesViaPublicKeyResponse.deserializeBinary);
this.methodInfoHandleFilesInvitation = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.HandleFilesInvitationResponse, (request) => {
}, space_pb.ShareFilesViaPublicKeyResponse.deserializeBinary);
this.methodInfoHandleFilesInvitation = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.HandleFilesInvitationResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.HandleFilesInvitationResponse.deserializeBinary);
this.methodInfoNotificationSubscribe = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.NotificationEventResponse, (request) => {
}, space_pb.HandleFilesInvitationResponse.deserializeBinary);
this.methodInfoNotificationSubscribe = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.NotificationEventResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.NotificationEventResponse.deserializeBinary);
this.methodInfoListBuckets = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.ListBucketsResponse, (request) => {
}, space_pb.NotificationEventResponse.deserializeBinary);
this.methodInfoListBuckets = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.ListBucketsResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.ListBucketsResponse.deserializeBinary);
this.methodInfoGetNotifications = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.GetNotificationsResponse, (request) => {
}, space_pb.ListBucketsResponse.deserializeBinary);
this.methodInfoGetNotifications = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.GetNotificationsResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.GetNotificationsResponse.deserializeBinary);
this.methodInfoReadNotification = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.ReadNotificationResponse, (request) => {
}, space_pb.GetNotificationsResponse.deserializeBinary);
this.methodInfoReadNotification = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.ReadNotificationResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.ReadNotificationResponse.deserializeBinary);
this.methodInfoDeleteAccount = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.DeleteAccountResponse, (request) => {
}, space_pb.ReadNotificationResponse.deserializeBinary);
this.methodInfoDeleteAccount = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.DeleteAccountResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.DeleteAccountResponse.deserializeBinary);
this.methodInfoToggleBucketBackup = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.ToggleBucketBackupResponse, (request) => {
}, space_pb.DeleteAccountResponse.deserializeBinary);
this.methodInfoToggleBucketBackup = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.ToggleBucketBackupResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.ToggleBucketBackupResponse.deserializeBinary);
this.methodInfoBucketBackupRestore = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.BucketBackupRestoreResponse, (request) => {
}, space_pb.ToggleBucketBackupResponse.deserializeBinary);
this.methodInfoBucketBackupRestore = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.BucketBackupRestoreResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.BucketBackupRestoreResponse.deserializeBinary);
this.methodInfoGetUsageInfo = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.GetUsageInfoResponse, (request) => {
}, space_pb.BucketBackupRestoreResponse.deserializeBinary);
this.methodInfoGetUsageInfo = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.GetUsageInfoResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.GetUsageInfoResponse.deserializeBinary);
this.methodInfoGetAPISessionTokens = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.GetAPISessionTokensResponse, (request) => {
}, space_pb.GetUsageInfoResponse.deserializeBinary);
this.methodInfoGetAPISessionTokens = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.GetAPISessionTokensResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.GetAPISessionTokensResponse.deserializeBinary);
this.methodInfoGetRecentlySharedWith = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.GetRecentlySharedWithResponse, (request) => {
}, space_pb.GetAPISessionTokensResponse.deserializeBinary);
this.methodInfoGetRecentlySharedWith = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.GetRecentlySharedWithResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.GetRecentlySharedWithResponse.deserializeBinary);
this.methodInfoSetNotificationsLastSeenAt = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.SetNotificationsLastSeenAtResponse, (request) => {
}, space_pb.GetRecentlySharedWithResponse.deserializeBinary);
this.methodInfoSetNotificationsLastSeenAt = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.SetNotificationsLastSeenAtResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.SetNotificationsLastSeenAtResponse.deserializeBinary);
this.methodInfoSearchFiles = new grpcWeb.AbstractClientBase.MethodInfo(space_pb_1.SearchFilesResponse, (request) => {
}, space_pb.SetNotificationsLastSeenAtResponse.deserializeBinary);
this.methodInfoSearchFiles = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.SearchFilesResponse, (request) => {
return request.serializeBinary();
}, space_pb_1.SearchFilesResponse.deserializeBinary);
}, space_pb.SearchFilesResponse.deserializeBinary);
if (!options)

@@ -168,3 +168,4 @@ options = {};

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/ListDirectories', this.hostname_).toString(), request, metadata || {}, this.methodInfoListDirectories, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/ListDirectories', request, metadata || {}, this.methodInfoListDirectories, callback);
}

@@ -176,3 +177,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/ListDirectory', this.hostname_).toString(), request, metadata || {}, this.methodInfoListDirectory, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/ListDirectory', request, metadata || {}, this.methodInfoListDirectory, callback);
}

@@ -184,3 +186,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/GenerateKeyPair', this.hostname_).toString(), request, metadata || {}, this.methodInfoGenerateKeyPair, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/GenerateKeyPair', request, metadata || {}, this.methodInfoGenerateKeyPair, callback);
}

@@ -192,3 +195,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/GetStoredMnemonic', this.hostname_).toString(), request, metadata || {}, this.methodInfoGetStoredMnemonic, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/GetStoredMnemonic', request, metadata || {}, this.methodInfoGetStoredMnemonic, callback);
}

@@ -200,3 +204,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/RestoreKeyPairViaMnemonic', this.hostname_).toString(), request, metadata || {}, this.methodInfoRestoreKeyPairViaMnemonic, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/RestoreKeyPairViaMnemonic', request, metadata || {}, this.methodInfoRestoreKeyPairViaMnemonic, callback);
}

@@ -208,3 +213,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/DeleteKeyPair', this.hostname_).toString(), request, metadata || {}, this.methodInfoDeleteKeyPair, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/DeleteKeyPair', request, metadata || {}, this.methodInfoDeleteKeyPair, callback);
}

@@ -216,3 +222,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/GenerateKeyPairWithForce', this.hostname_).toString(), request, metadata || {}, this.methodInfoGenerateKeyPairWithForce, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/GenerateKeyPairWithForce', request, metadata || {}, this.methodInfoGenerateKeyPairWithForce, callback);
}

@@ -224,3 +231,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/GetPublicKey', this.hostname_).toString(), request, metadata || {}, this.methodInfoGetPublicKey, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/GetPublicKey', request, metadata || {}, this.methodInfoGetPublicKey, callback);
}

@@ -231,10 +239,13 @@ return this.client_.unaryCall(this.hostname_ +

subscribe(request, metadata) {
return this.client_.serverStreaming(new URL('/space.SpaceApi/Subscribe', this.hostname_).toString(), request, metadata || {}, this.methodInfoSubscribe);
return this.client_.serverStreaming(this.hostname_ +
'/space.SpaceApi/Subscribe', request, metadata || {}, this.methodInfoSubscribe);
}
txlSubscribe(request, metadata) {
return this.client_.serverStreaming(new URL('/space.SpaceApi/TxlSubscribe', this.hostname_).toString(), request, metadata || {}, this.methodInfoTxlSubscribe);
return this.client_.serverStreaming(this.hostname_ +
'/space.SpaceApi/TxlSubscribe', request, metadata || {}, this.methodInfoTxlSubscribe);
}
openFile(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/OpenFile', this.hostname_).toString(), request, metadata || {}, this.methodInfoOpenFile, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/OpenFile', request, metadata || {}, this.methodInfoOpenFile, callback);
}

@@ -246,3 +257,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/GeneratePublicFileLink', this.hostname_).toString(), request, metadata || {}, this.methodInfoGeneratePublicFileLink, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/GeneratePublicFileLink', request, metadata || {}, this.methodInfoGeneratePublicFileLink, callback);
}

@@ -254,3 +266,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/GetSharedWithMeFiles', this.hostname_).toString(), request, metadata || {}, this.methodInfoGetSharedWithMeFiles, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/GetSharedWithMeFiles', request, metadata || {}, this.methodInfoGetSharedWithMeFiles, callback);
}

@@ -262,3 +275,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/OpenPublicFile', this.hostname_).toString(), request, metadata || {}, this.methodInfoOpenPublicFile, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/OpenPublicFile', request, metadata || {}, this.methodInfoOpenPublicFile, callback);
}

@@ -269,7 +283,9 @@ return this.client_.unaryCall(this.hostname_ +

addItems(request, metadata) {
return this.client_.serverStreaming(new URL('/space.SpaceApi/AddItems', this.hostname_).toString(), request, metadata || {}, this.methodInfoAddItems);
return this.client_.serverStreaming(this.hostname_ +
'/space.SpaceApi/AddItems', request, metadata || {}, this.methodInfoAddItems);
}
createFolder(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/CreateFolder', this.hostname_).toString(), request, metadata || {}, this.methodInfoCreateFolder, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/CreateFolder', request, metadata || {}, this.methodInfoCreateFolder, callback);
}

@@ -281,3 +297,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/ToggleFuseDrive', this.hostname_).toString(), request, metadata || {}, this.methodInfoToggleFuseDrive, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/ToggleFuseDrive', request, metadata || {}, this.methodInfoToggleFuseDrive, callback);
}

@@ -289,3 +306,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/GetFuseDriveStatus', this.hostname_).toString(), request, metadata || {}, this.methodInfoGetFuseDriveStatus, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/GetFuseDriveStatus', request, metadata || {}, this.methodInfoGetFuseDriveStatus, callback);
}

@@ -297,3 +315,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/CreateBucket', this.hostname_).toString(), request, metadata || {}, this.methodInfoCreateBucket, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/CreateBucket', request, metadata || {}, this.methodInfoCreateBucket, callback);
}

@@ -305,3 +324,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/BackupKeysByPassphrase', this.hostname_).toString(), request, metadata || {}, this.methodInfoBackupKeysByPassphrase, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/BackupKeysByPassphrase', request, metadata || {}, this.methodInfoBackupKeysByPassphrase, callback);
}

@@ -313,3 +333,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/RecoverKeysByPassphrase', this.hostname_).toString(), request, metadata || {}, this.methodInfoRecoverKeysByPassphrase, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/RecoverKeysByPassphrase', request, metadata || {}, this.methodInfoRecoverKeysByPassphrase, callback);
}

@@ -321,3 +342,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/TestKeysPassphrase', this.hostname_).toString(), request, metadata || {}, this.methodInfoTestKeysPassphrase, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/TestKeysPassphrase', request, metadata || {}, this.methodInfoTestKeysPassphrase, callback);
}

@@ -329,3 +351,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/CreateLocalKeysBackup', this.hostname_).toString(), request, metadata || {}, this.methodInfoCreateLocalKeysBackup, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/CreateLocalKeysBackup', request, metadata || {}, this.methodInfoCreateLocalKeysBackup, callback);
}

@@ -337,3 +360,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/RecoverKeysByLocalBackup', this.hostname_).toString(), request, metadata || {}, this.methodInfoRecoverKeysByLocalBackup, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/RecoverKeysByLocalBackup', request, metadata || {}, this.methodInfoRecoverKeysByLocalBackup, callback);
}

@@ -345,3 +369,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/ShareBucket', this.hostname_).toString(), request, metadata || {}, this.methodInfoShareBucket, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/ShareBucket', request, metadata || {}, this.methodInfoShareBucket, callback);
}

@@ -353,3 +378,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/JoinBucket', this.hostname_).toString(), request, metadata || {}, this.methodInfoJoinBucket, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/JoinBucket', request, metadata || {}, this.methodInfoJoinBucket, callback);
}

@@ -361,3 +387,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/ShareFilesViaPublicKey', this.hostname_).toString(), request, metadata || {}, this.methodInfoShareFilesViaPublicKey, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/ShareFilesViaPublicKey', request, metadata || {}, this.methodInfoShareFilesViaPublicKey, callback);
}

@@ -369,3 +396,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/HandleFilesInvitation', this.hostname_).toString(), request, metadata || {}, this.methodInfoHandleFilesInvitation, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/HandleFilesInvitation', request, metadata || {}, this.methodInfoHandleFilesInvitation, callback);
}

@@ -376,7 +404,9 @@ return this.client_.unaryCall(this.hostname_ +

notificationSubscribe(request, metadata) {
return this.client_.serverStreaming(new URL('/space.SpaceApi/NotificationSubscribe', this.hostname_).toString(), request, metadata || {}, this.methodInfoNotificationSubscribe);
return this.client_.serverStreaming(this.hostname_ +
'/space.SpaceApi/NotificationSubscribe', request, metadata || {}, this.methodInfoNotificationSubscribe);
}
listBuckets(request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/ListBuckets', this.hostname_).toString(), request, metadata || {}, this.methodInfoListBuckets, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/ListBuckets', request, metadata || {}, this.methodInfoListBuckets, callback);
}

@@ -388,3 +418,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/GetNotifications', this.hostname_).toString(), request, metadata || {}, this.methodInfoGetNotifications, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/GetNotifications', request, metadata || {}, this.methodInfoGetNotifications, callback);
}

@@ -396,3 +427,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/ReadNotification', this.hostname_).toString(), request, metadata || {}, this.methodInfoReadNotification, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/ReadNotification', request, metadata || {}, this.methodInfoReadNotification, callback);
}

@@ -404,3 +436,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/DeleteAccount', this.hostname_).toString(), request, metadata || {}, this.methodInfoDeleteAccount, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/DeleteAccount', request, metadata || {}, this.methodInfoDeleteAccount, callback);
}

@@ -412,3 +445,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/ToggleBucketBackup', this.hostname_).toString(), request, metadata || {}, this.methodInfoToggleBucketBackup, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/ToggleBucketBackup', request, metadata || {}, this.methodInfoToggleBucketBackup, callback);
}

@@ -420,3 +454,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/BucketBackupRestore', this.hostname_).toString(), request, metadata || {}, this.methodInfoBucketBackupRestore, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/BucketBackupRestore', request, metadata || {}, this.methodInfoBucketBackupRestore, callback);
}

@@ -428,3 +463,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/GetUsageInfo', this.hostname_).toString(), request, metadata || {}, this.methodInfoGetUsageInfo, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/GetUsageInfo', request, metadata || {}, this.methodInfoGetUsageInfo, callback);
}

@@ -436,3 +472,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/GetAPISessionTokens', this.hostname_).toString(), request, metadata || {}, this.methodInfoGetAPISessionTokens, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/GetAPISessionTokens', request, metadata || {}, this.methodInfoGetAPISessionTokens, callback);
}

@@ -444,3 +481,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/GetRecentlySharedWith', this.hostname_).toString(), request, metadata || {}, this.methodInfoGetRecentlySharedWith, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/GetRecentlySharedWith', request, metadata || {}, this.methodInfoGetRecentlySharedWith, callback);
}

@@ -452,3 +490,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/SetNotificationsLastSeenAt', this.hostname_).toString(), request, metadata || {}, this.methodInfoSetNotificationsLastSeenAt, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/SetNotificationsLastSeenAt', request, metadata || {}, this.methodInfoSetNotificationsLastSeenAt, callback);
}

@@ -460,3 +499,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/SearchFiles', this.hostname_).toString(), request, metadata || {}, this.methodInfoSearchFiles, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/SearchFiles', request, metadata || {}, this.methodInfoSearchFiles, callback);
}

@@ -463,0 +503,0 @@ return this.client_.unaryCall(this.hostname_ +

@@ -138,2 +138,3 @@ import { Empty } from 'google-protobuf/google/protobuf/empty_pb';

request.setUuid(payload.uuid);
request.setType(payload.type);
request.setPassphrase(payload.passphrase);

@@ -140,0 +141,0 @@ _this.instance.backupKeysByPassphrase(request, metadata, function (err, res) {

@@ -10,125 +10,125 @@ /**

import * as grpcWeb from 'grpc-web';
import { AddItemsResponse, BackupKeysByPassphraseResponse, BucketBackupRestoreResponse, CreateBucketResponse, CreateFolderResponse, CreateLocalKeysBackupResponse, DeleteAccountResponse, DeleteKeyPairResponse, FileEventResponse, FuseDriveResponse, GenerateKeyPairResponse, GeneratePublicFileLinkResponse, GetAPISessionTokensResponse, GetNotificationsResponse, GetPublicKeyResponse, GetRecentlySharedWithResponse, GetSharedWithMeFilesResponse, GetStoredMnemonicResponse, GetUsageInfoResponse, HandleFilesInvitationResponse, JoinBucketResponse, ListBucketsResponse, ListDirectoriesResponse, ListDirectoryResponse, NotificationEventResponse, OpenFileResponse, OpenPublicFileResponse, ReadNotificationResponse, RecoverKeysByLocalBackupResponse, RecoverKeysByPassphraseResponse, RestoreKeyPairViaMnemonicResponse, SearchFilesResponse, SetNotificationsLastSeenAtResponse, ShareBucketResponse, ShareFilesViaPublicKeyResponse, TestKeysPassphraseResponse, TextileEventResponse, ToggleBucketBackupResponse } from './space_pb';
import * as space_pb from './space_pb';
var SpaceApiClient = /** @class */ (function () {
function SpaceApiClient(hostname, credentials, options) {
this.methodInfoListDirectories = new grpcWeb.AbstractClientBase.MethodInfo(ListDirectoriesResponse, function (request) {
this.methodInfoListDirectories = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.ListDirectoriesResponse, function (request) {
return request.serializeBinary();
}, ListDirectoriesResponse.deserializeBinary);
this.methodInfoListDirectory = new grpcWeb.AbstractClientBase.MethodInfo(ListDirectoryResponse, function (request) {
}, space_pb.ListDirectoriesResponse.deserializeBinary);
this.methodInfoListDirectory = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.ListDirectoryResponse, function (request) {
return request.serializeBinary();
}, ListDirectoryResponse.deserializeBinary);
this.methodInfoGenerateKeyPair = new grpcWeb.AbstractClientBase.MethodInfo(GenerateKeyPairResponse, function (request) {
}, space_pb.ListDirectoryResponse.deserializeBinary);
this.methodInfoGenerateKeyPair = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.GenerateKeyPairResponse, function (request) {
return request.serializeBinary();
}, GenerateKeyPairResponse.deserializeBinary);
this.methodInfoGetStoredMnemonic = new grpcWeb.AbstractClientBase.MethodInfo(GetStoredMnemonicResponse, function (request) {
}, space_pb.GenerateKeyPairResponse.deserializeBinary);
this.methodInfoGetStoredMnemonic = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.GetStoredMnemonicResponse, function (request) {
return request.serializeBinary();
}, GetStoredMnemonicResponse.deserializeBinary);
this.methodInfoRestoreKeyPairViaMnemonic = new grpcWeb.AbstractClientBase.MethodInfo(RestoreKeyPairViaMnemonicResponse, function (request) {
}, space_pb.GetStoredMnemonicResponse.deserializeBinary);
this.methodInfoRestoreKeyPairViaMnemonic = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.RestoreKeyPairViaMnemonicResponse, function (request) {
return request.serializeBinary();
}, RestoreKeyPairViaMnemonicResponse.deserializeBinary);
this.methodInfoDeleteKeyPair = new grpcWeb.AbstractClientBase.MethodInfo(DeleteKeyPairResponse, function (request) {
}, space_pb.RestoreKeyPairViaMnemonicResponse.deserializeBinary);
this.methodInfoDeleteKeyPair = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.DeleteKeyPairResponse, function (request) {
return request.serializeBinary();
}, DeleteKeyPairResponse.deserializeBinary);
this.methodInfoGenerateKeyPairWithForce = new grpcWeb.AbstractClientBase.MethodInfo(GenerateKeyPairResponse, function (request) {
}, space_pb.DeleteKeyPairResponse.deserializeBinary);
this.methodInfoGenerateKeyPairWithForce = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.GenerateKeyPairResponse, function (request) {
return request.serializeBinary();
}, GenerateKeyPairResponse.deserializeBinary);
this.methodInfoGetPublicKey = new grpcWeb.AbstractClientBase.MethodInfo(GetPublicKeyResponse, function (request) {
}, space_pb.GenerateKeyPairResponse.deserializeBinary);
this.methodInfoGetPublicKey = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.GetPublicKeyResponse, function (request) {
return request.serializeBinary();
}, GetPublicKeyResponse.deserializeBinary);
this.methodInfoSubscribe = new grpcWeb.AbstractClientBase.MethodInfo(FileEventResponse, function (request) {
}, space_pb.GetPublicKeyResponse.deserializeBinary);
this.methodInfoSubscribe = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.FileEventResponse, function (request) {
return request.serializeBinary();
}, FileEventResponse.deserializeBinary);
this.methodInfoTxlSubscribe = new grpcWeb.AbstractClientBase.MethodInfo(TextileEventResponse, function (request) {
}, space_pb.FileEventResponse.deserializeBinary);
this.methodInfoTxlSubscribe = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.TextileEventResponse, function (request) {
return request.serializeBinary();
}, TextileEventResponse.deserializeBinary);
this.methodInfoOpenFile = new grpcWeb.AbstractClientBase.MethodInfo(OpenFileResponse, function (request) {
}, space_pb.TextileEventResponse.deserializeBinary);
this.methodInfoOpenFile = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.OpenFileResponse, function (request) {
return request.serializeBinary();
}, OpenFileResponse.deserializeBinary);
this.methodInfoGeneratePublicFileLink = new grpcWeb.AbstractClientBase.MethodInfo(GeneratePublicFileLinkResponse, function (request) {
}, space_pb.OpenFileResponse.deserializeBinary);
this.methodInfoGeneratePublicFileLink = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.GeneratePublicFileLinkResponse, function (request) {
return request.serializeBinary();
}, GeneratePublicFileLinkResponse.deserializeBinary);
this.methodInfoGetSharedWithMeFiles = new grpcWeb.AbstractClientBase.MethodInfo(GetSharedWithMeFilesResponse, function (request) {
}, space_pb.GeneratePublicFileLinkResponse.deserializeBinary);
this.methodInfoGetSharedWithMeFiles = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.GetSharedWithMeFilesResponse, function (request) {
return request.serializeBinary();
}, GetSharedWithMeFilesResponse.deserializeBinary);
this.methodInfoOpenPublicFile = new grpcWeb.AbstractClientBase.MethodInfo(OpenPublicFileResponse, function (request) {
}, space_pb.GetSharedWithMeFilesResponse.deserializeBinary);
this.methodInfoOpenPublicFile = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.OpenPublicFileResponse, function (request) {
return request.serializeBinary();
}, OpenPublicFileResponse.deserializeBinary);
this.methodInfoAddItems = new grpcWeb.AbstractClientBase.MethodInfo(AddItemsResponse, function (request) {
}, space_pb.OpenPublicFileResponse.deserializeBinary);
this.methodInfoAddItems = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.AddItemsResponse, function (request) {
return request.serializeBinary();
}, AddItemsResponse.deserializeBinary);
this.methodInfoCreateFolder = new grpcWeb.AbstractClientBase.MethodInfo(CreateFolderResponse, function (request) {
}, space_pb.AddItemsResponse.deserializeBinary);
this.methodInfoCreateFolder = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.CreateFolderResponse, function (request) {
return request.serializeBinary();
}, CreateFolderResponse.deserializeBinary);
this.methodInfoToggleFuseDrive = new grpcWeb.AbstractClientBase.MethodInfo(FuseDriveResponse, function (request) {
}, space_pb.CreateFolderResponse.deserializeBinary);
this.methodInfoToggleFuseDrive = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.FuseDriveResponse, function (request) {
return request.serializeBinary();
}, FuseDriveResponse.deserializeBinary);
this.methodInfoGetFuseDriveStatus = new grpcWeb.AbstractClientBase.MethodInfo(FuseDriveResponse, function (request) {
}, space_pb.FuseDriveResponse.deserializeBinary);
this.methodInfoGetFuseDriveStatus = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.FuseDriveResponse, function (request) {
return request.serializeBinary();
}, FuseDriveResponse.deserializeBinary);
this.methodInfoCreateBucket = new grpcWeb.AbstractClientBase.MethodInfo(CreateBucketResponse, function (request) {
}, space_pb.FuseDriveResponse.deserializeBinary);
this.methodInfoCreateBucket = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.CreateBucketResponse, function (request) {
return request.serializeBinary();
}, CreateBucketResponse.deserializeBinary);
this.methodInfoBackupKeysByPassphrase = new grpcWeb.AbstractClientBase.MethodInfo(BackupKeysByPassphraseResponse, function (request) {
}, space_pb.CreateBucketResponse.deserializeBinary);
this.methodInfoBackupKeysByPassphrase = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.BackupKeysByPassphraseResponse, function (request) {
return request.serializeBinary();
}, BackupKeysByPassphraseResponse.deserializeBinary);
this.methodInfoRecoverKeysByPassphrase = new grpcWeb.AbstractClientBase.MethodInfo(RecoverKeysByPassphraseResponse, function (request) {
}, space_pb.BackupKeysByPassphraseResponse.deserializeBinary);
this.methodInfoRecoverKeysByPassphrase = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.RecoverKeysByPassphraseResponse, function (request) {
return request.serializeBinary();
}, RecoverKeysByPassphraseResponse.deserializeBinary);
this.methodInfoTestKeysPassphrase = new grpcWeb.AbstractClientBase.MethodInfo(TestKeysPassphraseResponse, function (request) {
}, space_pb.RecoverKeysByPassphraseResponse.deserializeBinary);
this.methodInfoTestKeysPassphrase = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.TestKeysPassphraseResponse, function (request) {
return request.serializeBinary();
}, TestKeysPassphraseResponse.deserializeBinary);
this.methodInfoCreateLocalKeysBackup = new grpcWeb.AbstractClientBase.MethodInfo(CreateLocalKeysBackupResponse, function (request) {
}, space_pb.TestKeysPassphraseResponse.deserializeBinary);
this.methodInfoCreateLocalKeysBackup = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.CreateLocalKeysBackupResponse, function (request) {
return request.serializeBinary();
}, CreateLocalKeysBackupResponse.deserializeBinary);
this.methodInfoRecoverKeysByLocalBackup = new grpcWeb.AbstractClientBase.MethodInfo(RecoverKeysByLocalBackupResponse, function (request) {
}, space_pb.CreateLocalKeysBackupResponse.deserializeBinary);
this.methodInfoRecoverKeysByLocalBackup = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.RecoverKeysByLocalBackupResponse, function (request) {
return request.serializeBinary();
}, RecoverKeysByLocalBackupResponse.deserializeBinary);
this.methodInfoShareBucket = new grpcWeb.AbstractClientBase.MethodInfo(ShareBucketResponse, function (request) {
}, space_pb.RecoverKeysByLocalBackupResponse.deserializeBinary);
this.methodInfoShareBucket = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.ShareBucketResponse, function (request) {
return request.serializeBinary();
}, ShareBucketResponse.deserializeBinary);
this.methodInfoJoinBucket = new grpcWeb.AbstractClientBase.MethodInfo(JoinBucketResponse, function (request) {
}, space_pb.ShareBucketResponse.deserializeBinary);
this.methodInfoJoinBucket = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.JoinBucketResponse, function (request) {
return request.serializeBinary();
}, JoinBucketResponse.deserializeBinary);
this.methodInfoShareFilesViaPublicKey = new grpcWeb.AbstractClientBase.MethodInfo(ShareFilesViaPublicKeyResponse, function (request) {
}, space_pb.JoinBucketResponse.deserializeBinary);
this.methodInfoShareFilesViaPublicKey = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.ShareFilesViaPublicKeyResponse, function (request) {
return request.serializeBinary();
}, ShareFilesViaPublicKeyResponse.deserializeBinary);
this.methodInfoHandleFilesInvitation = new grpcWeb.AbstractClientBase.MethodInfo(HandleFilesInvitationResponse, function (request) {
}, space_pb.ShareFilesViaPublicKeyResponse.deserializeBinary);
this.methodInfoHandleFilesInvitation = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.HandleFilesInvitationResponse, function (request) {
return request.serializeBinary();
}, HandleFilesInvitationResponse.deserializeBinary);
this.methodInfoNotificationSubscribe = new grpcWeb.AbstractClientBase.MethodInfo(NotificationEventResponse, function (request) {
}, space_pb.HandleFilesInvitationResponse.deserializeBinary);
this.methodInfoNotificationSubscribe = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.NotificationEventResponse, function (request) {
return request.serializeBinary();
}, NotificationEventResponse.deserializeBinary);
this.methodInfoListBuckets = new grpcWeb.AbstractClientBase.MethodInfo(ListBucketsResponse, function (request) {
}, space_pb.NotificationEventResponse.deserializeBinary);
this.methodInfoListBuckets = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.ListBucketsResponse, function (request) {
return request.serializeBinary();
}, ListBucketsResponse.deserializeBinary);
this.methodInfoGetNotifications = new grpcWeb.AbstractClientBase.MethodInfo(GetNotificationsResponse, function (request) {
}, space_pb.ListBucketsResponse.deserializeBinary);
this.methodInfoGetNotifications = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.GetNotificationsResponse, function (request) {
return request.serializeBinary();
}, GetNotificationsResponse.deserializeBinary);
this.methodInfoReadNotification = new grpcWeb.AbstractClientBase.MethodInfo(ReadNotificationResponse, function (request) {
}, space_pb.GetNotificationsResponse.deserializeBinary);
this.methodInfoReadNotification = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.ReadNotificationResponse, function (request) {
return request.serializeBinary();
}, ReadNotificationResponse.deserializeBinary);
this.methodInfoDeleteAccount = new grpcWeb.AbstractClientBase.MethodInfo(DeleteAccountResponse, function (request) {
}, space_pb.ReadNotificationResponse.deserializeBinary);
this.methodInfoDeleteAccount = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.DeleteAccountResponse, function (request) {
return request.serializeBinary();
}, DeleteAccountResponse.deserializeBinary);
this.methodInfoToggleBucketBackup = new grpcWeb.AbstractClientBase.MethodInfo(ToggleBucketBackupResponse, function (request) {
}, space_pb.DeleteAccountResponse.deserializeBinary);
this.methodInfoToggleBucketBackup = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.ToggleBucketBackupResponse, function (request) {
return request.serializeBinary();
}, ToggleBucketBackupResponse.deserializeBinary);
this.methodInfoBucketBackupRestore = new grpcWeb.AbstractClientBase.MethodInfo(BucketBackupRestoreResponse, function (request) {
}, space_pb.ToggleBucketBackupResponse.deserializeBinary);
this.methodInfoBucketBackupRestore = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.BucketBackupRestoreResponse, function (request) {
return request.serializeBinary();
}, BucketBackupRestoreResponse.deserializeBinary);
this.methodInfoGetUsageInfo = new grpcWeb.AbstractClientBase.MethodInfo(GetUsageInfoResponse, function (request) {
}, space_pb.BucketBackupRestoreResponse.deserializeBinary);
this.methodInfoGetUsageInfo = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.GetUsageInfoResponse, function (request) {
return request.serializeBinary();
}, GetUsageInfoResponse.deserializeBinary);
this.methodInfoGetAPISessionTokens = new grpcWeb.AbstractClientBase.MethodInfo(GetAPISessionTokensResponse, function (request) {
}, space_pb.GetUsageInfoResponse.deserializeBinary);
this.methodInfoGetAPISessionTokens = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.GetAPISessionTokensResponse, function (request) {
return request.serializeBinary();
}, GetAPISessionTokensResponse.deserializeBinary);
this.methodInfoGetRecentlySharedWith = new grpcWeb.AbstractClientBase.MethodInfo(GetRecentlySharedWithResponse, function (request) {
}, space_pb.GetAPISessionTokensResponse.deserializeBinary);
this.methodInfoGetRecentlySharedWith = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.GetRecentlySharedWithResponse, function (request) {
return request.serializeBinary();
}, GetRecentlySharedWithResponse.deserializeBinary);
this.methodInfoSetNotificationsLastSeenAt = new grpcWeb.AbstractClientBase.MethodInfo(SetNotificationsLastSeenAtResponse, function (request) {
}, space_pb.GetRecentlySharedWithResponse.deserializeBinary);
this.methodInfoSetNotificationsLastSeenAt = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.SetNotificationsLastSeenAtResponse, function (request) {
return request.serializeBinary();
}, SetNotificationsLastSeenAtResponse.deserializeBinary);
this.methodInfoSearchFiles = new grpcWeb.AbstractClientBase.MethodInfo(SearchFilesResponse, function (request) {
}, space_pb.SetNotificationsLastSeenAtResponse.deserializeBinary);
this.methodInfoSearchFiles = new grpcWeb.AbstractClientBase.MethodInfo(space_pb.SearchFilesResponse, function (request) {
return request.serializeBinary();
}, SearchFilesResponse.deserializeBinary);
}, space_pb.SearchFilesResponse.deserializeBinary);
if (!options)

@@ -146,3 +146,4 @@ options = {};

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/ListDirectories', this.hostname_).toString(), request, metadata || {}, this.methodInfoListDirectories, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/ListDirectories', request, metadata || {}, this.methodInfoListDirectories, callback);
}

@@ -154,3 +155,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/ListDirectory', this.hostname_).toString(), request, metadata || {}, this.methodInfoListDirectory, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/ListDirectory', request, metadata || {}, this.methodInfoListDirectory, callback);
}

@@ -162,3 +164,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/GenerateKeyPair', this.hostname_).toString(), request, metadata || {}, this.methodInfoGenerateKeyPair, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/GenerateKeyPair', request, metadata || {}, this.methodInfoGenerateKeyPair, callback);
}

@@ -170,3 +173,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/GetStoredMnemonic', this.hostname_).toString(), request, metadata || {}, this.methodInfoGetStoredMnemonic, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/GetStoredMnemonic', request, metadata || {}, this.methodInfoGetStoredMnemonic, callback);
}

@@ -178,3 +182,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/RestoreKeyPairViaMnemonic', this.hostname_).toString(), request, metadata || {}, this.methodInfoRestoreKeyPairViaMnemonic, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/RestoreKeyPairViaMnemonic', request, metadata || {}, this.methodInfoRestoreKeyPairViaMnemonic, callback);
}

@@ -186,3 +191,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/DeleteKeyPair', this.hostname_).toString(), request, metadata || {}, this.methodInfoDeleteKeyPair, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/DeleteKeyPair', request, metadata || {}, this.methodInfoDeleteKeyPair, callback);
}

@@ -194,3 +200,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/GenerateKeyPairWithForce', this.hostname_).toString(), request, metadata || {}, this.methodInfoGenerateKeyPairWithForce, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/GenerateKeyPairWithForce', request, metadata || {}, this.methodInfoGenerateKeyPairWithForce, callback);
}

@@ -202,3 +209,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/GetPublicKey', this.hostname_).toString(), request, metadata || {}, this.methodInfoGetPublicKey, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/GetPublicKey', request, metadata || {}, this.methodInfoGetPublicKey, callback);
}

@@ -209,10 +217,13 @@ return this.client_.unaryCall(this.hostname_ +

SpaceApiClient.prototype.subscribe = function (request, metadata) {
return this.client_.serverStreaming(new URL('/space.SpaceApi/Subscribe', this.hostname_).toString(), request, metadata || {}, this.methodInfoSubscribe);
return this.client_.serverStreaming(this.hostname_ +
'/space.SpaceApi/Subscribe', request, metadata || {}, this.methodInfoSubscribe);
};
SpaceApiClient.prototype.txlSubscribe = function (request, metadata) {
return this.client_.serverStreaming(new URL('/space.SpaceApi/TxlSubscribe', this.hostname_).toString(), request, metadata || {}, this.methodInfoTxlSubscribe);
return this.client_.serverStreaming(this.hostname_ +
'/space.SpaceApi/TxlSubscribe', request, metadata || {}, this.methodInfoTxlSubscribe);
};
SpaceApiClient.prototype.openFile = function (request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/OpenFile', this.hostname_).toString(), request, metadata || {}, this.methodInfoOpenFile, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/OpenFile', request, metadata || {}, this.methodInfoOpenFile, callback);
}

@@ -224,3 +235,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/GeneratePublicFileLink', this.hostname_).toString(), request, metadata || {}, this.methodInfoGeneratePublicFileLink, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/GeneratePublicFileLink', request, metadata || {}, this.methodInfoGeneratePublicFileLink, callback);
}

@@ -232,3 +244,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/GetSharedWithMeFiles', this.hostname_).toString(), request, metadata || {}, this.methodInfoGetSharedWithMeFiles, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/GetSharedWithMeFiles', request, metadata || {}, this.methodInfoGetSharedWithMeFiles, callback);
}

@@ -240,3 +253,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/OpenPublicFile', this.hostname_).toString(), request, metadata || {}, this.methodInfoOpenPublicFile, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/OpenPublicFile', request, metadata || {}, this.methodInfoOpenPublicFile, callback);
}

@@ -247,7 +261,9 @@ return this.client_.unaryCall(this.hostname_ +

SpaceApiClient.prototype.addItems = function (request, metadata) {
return this.client_.serverStreaming(new URL('/space.SpaceApi/AddItems', this.hostname_).toString(), request, metadata || {}, this.methodInfoAddItems);
return this.client_.serverStreaming(this.hostname_ +
'/space.SpaceApi/AddItems', request, metadata || {}, this.methodInfoAddItems);
};
SpaceApiClient.prototype.createFolder = function (request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/CreateFolder', this.hostname_).toString(), request, metadata || {}, this.methodInfoCreateFolder, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/CreateFolder', request, metadata || {}, this.methodInfoCreateFolder, callback);
}

@@ -259,3 +275,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/ToggleFuseDrive', this.hostname_).toString(), request, metadata || {}, this.methodInfoToggleFuseDrive, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/ToggleFuseDrive', request, metadata || {}, this.methodInfoToggleFuseDrive, callback);
}

@@ -267,3 +284,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/GetFuseDriveStatus', this.hostname_).toString(), request, metadata || {}, this.methodInfoGetFuseDriveStatus, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/GetFuseDriveStatus', request, metadata || {}, this.methodInfoGetFuseDriveStatus, callback);
}

@@ -275,3 +293,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/CreateBucket', this.hostname_).toString(), request, metadata || {}, this.methodInfoCreateBucket, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/CreateBucket', request, metadata || {}, this.methodInfoCreateBucket, callback);
}

@@ -283,3 +302,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/BackupKeysByPassphrase', this.hostname_).toString(), request, metadata || {}, this.methodInfoBackupKeysByPassphrase, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/BackupKeysByPassphrase', request, metadata || {}, this.methodInfoBackupKeysByPassphrase, callback);
}

@@ -291,3 +311,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/RecoverKeysByPassphrase', this.hostname_).toString(), request, metadata || {}, this.methodInfoRecoverKeysByPassphrase, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/RecoverKeysByPassphrase', request, metadata || {}, this.methodInfoRecoverKeysByPassphrase, callback);
}

@@ -299,3 +320,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/TestKeysPassphrase', this.hostname_).toString(), request, metadata || {}, this.methodInfoTestKeysPassphrase, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/TestKeysPassphrase', request, metadata || {}, this.methodInfoTestKeysPassphrase, callback);
}

@@ -307,3 +329,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/CreateLocalKeysBackup', this.hostname_).toString(), request, metadata || {}, this.methodInfoCreateLocalKeysBackup, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/CreateLocalKeysBackup', request, metadata || {}, this.methodInfoCreateLocalKeysBackup, callback);
}

@@ -315,3 +338,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/RecoverKeysByLocalBackup', this.hostname_).toString(), request, metadata || {}, this.methodInfoRecoverKeysByLocalBackup, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/RecoverKeysByLocalBackup', request, metadata || {}, this.methodInfoRecoverKeysByLocalBackup, callback);
}

@@ -323,3 +347,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/ShareBucket', this.hostname_).toString(), request, metadata || {}, this.methodInfoShareBucket, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/ShareBucket', request, metadata || {}, this.methodInfoShareBucket, callback);
}

@@ -331,3 +356,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/JoinBucket', this.hostname_).toString(), request, metadata || {}, this.methodInfoJoinBucket, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/JoinBucket', request, metadata || {}, this.methodInfoJoinBucket, callback);
}

@@ -339,3 +365,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/ShareFilesViaPublicKey', this.hostname_).toString(), request, metadata || {}, this.methodInfoShareFilesViaPublicKey, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/ShareFilesViaPublicKey', request, metadata || {}, this.methodInfoShareFilesViaPublicKey, callback);
}

@@ -347,3 +374,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/HandleFilesInvitation', this.hostname_).toString(), request, metadata || {}, this.methodInfoHandleFilesInvitation, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/HandleFilesInvitation', request, metadata || {}, this.methodInfoHandleFilesInvitation, callback);
}

@@ -354,7 +382,9 @@ return this.client_.unaryCall(this.hostname_ +

SpaceApiClient.prototype.notificationSubscribe = function (request, metadata) {
return this.client_.serverStreaming(new URL('/space.SpaceApi/NotificationSubscribe', this.hostname_).toString(), request, metadata || {}, this.methodInfoNotificationSubscribe);
return this.client_.serverStreaming(this.hostname_ +
'/space.SpaceApi/NotificationSubscribe', request, metadata || {}, this.methodInfoNotificationSubscribe);
};
SpaceApiClient.prototype.listBuckets = function (request, metadata, callback) {
if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/ListBuckets', this.hostname_).toString(), request, metadata || {}, this.methodInfoListBuckets, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/ListBuckets', request, metadata || {}, this.methodInfoListBuckets, callback);
}

@@ -366,3 +396,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/GetNotifications', this.hostname_).toString(), request, metadata || {}, this.methodInfoGetNotifications, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/GetNotifications', request, metadata || {}, this.methodInfoGetNotifications, callback);
}

@@ -374,3 +405,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/ReadNotification', this.hostname_).toString(), request, metadata || {}, this.methodInfoReadNotification, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/ReadNotification', request, metadata || {}, this.methodInfoReadNotification, callback);
}

@@ -382,3 +414,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/DeleteAccount', this.hostname_).toString(), request, metadata || {}, this.methodInfoDeleteAccount, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/DeleteAccount', request, metadata || {}, this.methodInfoDeleteAccount, callback);
}

@@ -390,3 +423,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/ToggleBucketBackup', this.hostname_).toString(), request, metadata || {}, this.methodInfoToggleBucketBackup, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/ToggleBucketBackup', request, metadata || {}, this.methodInfoToggleBucketBackup, callback);
}

@@ -398,3 +432,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/BucketBackupRestore', this.hostname_).toString(), request, metadata || {}, this.methodInfoBucketBackupRestore, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/BucketBackupRestore', request, metadata || {}, this.methodInfoBucketBackupRestore, callback);
}

@@ -406,3 +441,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/GetUsageInfo', this.hostname_).toString(), request, metadata || {}, this.methodInfoGetUsageInfo, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/GetUsageInfo', request, metadata || {}, this.methodInfoGetUsageInfo, callback);
}

@@ -414,3 +450,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/GetAPISessionTokens', this.hostname_).toString(), request, metadata || {}, this.methodInfoGetAPISessionTokens, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/GetAPISessionTokens', request, metadata || {}, this.methodInfoGetAPISessionTokens, callback);
}

@@ -422,3 +459,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/GetRecentlySharedWith', this.hostname_).toString(), request, metadata || {}, this.methodInfoGetRecentlySharedWith, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/GetRecentlySharedWith', request, metadata || {}, this.methodInfoGetRecentlySharedWith, callback);
}

@@ -430,3 +468,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/SetNotificationsLastSeenAt', this.hostname_).toString(), request, metadata || {}, this.methodInfoSetNotificationsLastSeenAt, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/SetNotificationsLastSeenAt', request, metadata || {}, this.methodInfoSetNotificationsLastSeenAt, callback);
}

@@ -438,3 +477,4 @@ return this.client_.unaryCall(this.hostname_ +

if (callback !== undefined) {
return this.client_.rpcCall(new URL('/space.SpaceApi/SearchFiles', this.hostname_).toString(), request, metadata || {}, this.methodInfoSearchFiles, callback);
return this.client_.rpcCall(this.hostname_ +
'/space.SpaceApi/SearchFiles', request, metadata || {}, this.methodInfoSearchFiles, callback);
}

@@ -441,0 +481,0 @@ return this.client_.unaryCall(this.hostname_ +

@@ -24,2 +24,3 @@ export interface ListDirectoryPayload {

uuid: string;
type: 0 | 1;
passphrase: string;

@@ -26,0 +27,0 @@ }

{
"name": "@fleekhq/space-client",
"version": "1.1.2",
"version": "1.1.3",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "module": "dist/esm/index.js",

@@ -399,3 +399,3 @@ ![Publish Action Status](https://github.com/FleekHQ/space-client/workflows/Publish/badge.svg?branch=master)

#### .backupKeysByPassphrase({ uuid: string, passphrase: string })
#### .backupKeysByPassphrase({ uuid: string, passphrase: string, type: number })

@@ -407,2 +407,3 @@ Backup keys by a passphrase

.backupKeysByPassphrase({
type: 0, // 0 = PASSWORD; 1 = ETH
uuid: 'user-uuid',

@@ -424,2 +425,3 @@ passphrase: 'my-passphrase',

passphrase: 'my-passphrase',
type: 0, // 0 = PASSWORD; 1 = ETH
});

@@ -426,0 +428,0 @@ };

@@ -123,2 +123,3 @@ // We disable the type checking because it interferes with jest's mocking function

uuid: '123',
type: 0,
passphrase: '123',

@@ -125,0 +126,0 @@ });

@@ -325,2 +325,3 @@ import grpcWeb, { ClientReadableStream } from 'grpc-web';

request.setUuid(payload.uuid);
request.setType(payload.type);
request.setPassphrase(payload.passphrase);

@@ -327,0 +328,0 @@

@@ -17,77 +17,4 @@ /**

import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
import * as space_pb from './space_pb';
import {
AddItemsRequest,
AddItemsResponse,
BackupKeysByPassphraseRequest,
BackupKeysByPassphraseResponse,
BucketBackupRestoreRequest,
BucketBackupRestoreResponse,
CreateBucketRequest,
CreateBucketResponse,
CreateFolderRequest,
CreateFolderResponse,
CreateLocalKeysBackupRequest,
CreateLocalKeysBackupResponse,
DeleteAccountRequest,
DeleteAccountResponse,
DeleteKeyPairRequest,
DeleteKeyPairResponse,
FileEventResponse,
FuseDriveResponse,
GenerateKeyPairRequest,
GenerateKeyPairResponse,
GeneratePublicFileLinkRequest,
GeneratePublicFileLinkResponse,
GetAPISessionTokensRequest,
GetAPISessionTokensResponse,
GetNotificationsRequest,
GetNotificationsResponse,
GetPublicKeyRequest,
GetPublicKeyResponse,
GetRecentlySharedWithRequest,
GetRecentlySharedWithResponse,
GetSharedWithMeFilesRequest,
GetSharedWithMeFilesResponse,
GetStoredMnemonicRequest,
GetStoredMnemonicResponse,
GetUsageInfoRequest,
GetUsageInfoResponse,
HandleFilesInvitationRequest,
HandleFilesInvitationResponse,
JoinBucketRequest,
JoinBucketResponse,
ListBucketsRequest,
ListBucketsResponse,
ListDirectoriesRequest,
ListDirectoriesResponse,
ListDirectoryRequest,
ListDirectoryResponse,
NotificationEventResponse,
OpenFileRequest,
OpenFileResponse,
OpenPublicFileRequest,
OpenPublicFileResponse,
ReadNotificationRequest,
ReadNotificationResponse,
RecoverKeysByLocalBackupRequest,
RecoverKeysByLocalBackupResponse,
RecoverKeysByPassphraseRequest,
RecoverKeysByPassphraseResponse,
RestoreKeyPairViaMnemonicRequest,
RestoreKeyPairViaMnemonicResponse,
SearchFilesRequest,
SearchFilesResponse,
SetNotificationsLastSeenAtRequest,
SetNotificationsLastSeenAtResponse,
ShareBucketRequest,
ShareBucketResponse,
ShareFilesViaPublicKeyRequest,
ShareFilesViaPublicKeyResponse,
TestKeysPassphraseRequest,
TestKeysPassphraseResponse,
TextileEventResponse,
ToggleBucketBackupRequest,
ToggleBucketBackupResponse,
ToggleFuseRequest} from './space_pb';

@@ -98,7 +25,7 @@ export class SpaceApiClient {

credentials_: null | { [index: string]: string; };
options_: null | { [index: string]: string; };
options_: null | { [index: string]: any; };
constructor (hostname: string,
credentials?: null | { [index: string]: string; },
options?: null | { [index: string]: string; }) {
options?: null | { [index: string]: any; }) {
if (!options) options = {};

@@ -115,27 +42,28 @@ if (!credentials) credentials = {};

methodInfoListDirectories = new grpcWeb.AbstractClientBase.MethodInfo(
ListDirectoriesResponse,
(request: ListDirectoriesRequest) => {
space_pb.ListDirectoriesResponse,
(request: space_pb.ListDirectoriesRequest) => {
return request.serializeBinary();
},
ListDirectoriesResponse.deserializeBinary
space_pb.ListDirectoriesResponse.deserializeBinary
);
listDirectories(
request: ListDirectoriesRequest,
metadata: grpcWeb.Metadata | null): Promise<ListDirectoriesResponse>;
request: space_pb.ListDirectoriesRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.ListDirectoriesResponse>;
listDirectories(
request: ListDirectoriesRequest,
request: space_pb.ListDirectoriesRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: ListDirectoriesResponse) => void): grpcWeb.ClientReadableStream<ListDirectoriesResponse>;
response: space_pb.ListDirectoriesResponse) => void): grpcWeb.ClientReadableStream<space_pb.ListDirectoriesResponse>;
listDirectories(
request: ListDirectoriesRequest,
request: space_pb.ListDirectoriesRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: ListDirectoriesResponse) => void) {
response: space_pb.ListDirectoriesResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/ListDirectories', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/ListDirectories',
request,

@@ -155,27 +83,28 @@ metadata || {},

methodInfoListDirectory = new grpcWeb.AbstractClientBase.MethodInfo(
ListDirectoryResponse,
(request: ListDirectoryRequest) => {
space_pb.ListDirectoryResponse,
(request: space_pb.ListDirectoryRequest) => {
return request.serializeBinary();
},
ListDirectoryResponse.deserializeBinary
space_pb.ListDirectoryResponse.deserializeBinary
);
listDirectory(
request: ListDirectoryRequest,
metadata: grpcWeb.Metadata | null): Promise<ListDirectoryResponse>;
request: space_pb.ListDirectoryRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.ListDirectoryResponse>;
listDirectory(
request: ListDirectoryRequest,
request: space_pb.ListDirectoryRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: ListDirectoryResponse) => void): grpcWeb.ClientReadableStream<ListDirectoryResponse>;
response: space_pb.ListDirectoryResponse) => void): grpcWeb.ClientReadableStream<space_pb.ListDirectoryResponse>;
listDirectory(
request: ListDirectoryRequest,
request: space_pb.ListDirectoryRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: ListDirectoryResponse) => void) {
response: space_pb.ListDirectoryResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/ListDirectory', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/ListDirectory',
request,

@@ -195,27 +124,28 @@ metadata || {},

methodInfoGenerateKeyPair = new grpcWeb.AbstractClientBase.MethodInfo(
GenerateKeyPairResponse,
(request: GenerateKeyPairRequest) => {
space_pb.GenerateKeyPairResponse,
(request: space_pb.GenerateKeyPairRequest) => {
return request.serializeBinary();
},
GenerateKeyPairResponse.deserializeBinary
space_pb.GenerateKeyPairResponse.deserializeBinary
);
generateKeyPair(
request: GenerateKeyPairRequest,
metadata: grpcWeb.Metadata | null): Promise<GenerateKeyPairResponse>;
request: space_pb.GenerateKeyPairRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.GenerateKeyPairResponse>;
generateKeyPair(
request: GenerateKeyPairRequest,
request: space_pb.GenerateKeyPairRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: GenerateKeyPairResponse) => void): grpcWeb.ClientReadableStream<GenerateKeyPairResponse>;
response: space_pb.GenerateKeyPairResponse) => void): grpcWeb.ClientReadableStream<space_pb.GenerateKeyPairResponse>;
generateKeyPair(
request: GenerateKeyPairRequest,
request: space_pb.GenerateKeyPairRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: GenerateKeyPairResponse) => void) {
response: space_pb.GenerateKeyPairResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/GenerateKeyPair', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/GenerateKeyPair',
request,

@@ -235,27 +165,28 @@ metadata || {},

methodInfoGetStoredMnemonic = new grpcWeb.AbstractClientBase.MethodInfo(
GetStoredMnemonicResponse,
(request: GetStoredMnemonicRequest) => {
space_pb.GetStoredMnemonicResponse,
(request: space_pb.GetStoredMnemonicRequest) => {
return request.serializeBinary();
},
GetStoredMnemonicResponse.deserializeBinary
space_pb.GetStoredMnemonicResponse.deserializeBinary
);
getStoredMnemonic(
request: GetStoredMnemonicRequest,
metadata: grpcWeb.Metadata | null): Promise<GetStoredMnemonicResponse>;
request: space_pb.GetStoredMnemonicRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.GetStoredMnemonicResponse>;
getStoredMnemonic(
request: GetStoredMnemonicRequest,
request: space_pb.GetStoredMnemonicRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: GetStoredMnemonicResponse) => void): grpcWeb.ClientReadableStream<GetStoredMnemonicResponse>;
response: space_pb.GetStoredMnemonicResponse) => void): grpcWeb.ClientReadableStream<space_pb.GetStoredMnemonicResponse>;
getStoredMnemonic(
request: GetStoredMnemonicRequest,
request: space_pb.GetStoredMnemonicRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: GetStoredMnemonicResponse) => void) {
response: space_pb.GetStoredMnemonicResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/GetStoredMnemonic', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/GetStoredMnemonic',
request,

@@ -275,27 +206,28 @@ metadata || {},

methodInfoRestoreKeyPairViaMnemonic = new grpcWeb.AbstractClientBase.MethodInfo(
RestoreKeyPairViaMnemonicResponse,
(request: RestoreKeyPairViaMnemonicRequest) => {
space_pb.RestoreKeyPairViaMnemonicResponse,
(request: space_pb.RestoreKeyPairViaMnemonicRequest) => {
return request.serializeBinary();
},
RestoreKeyPairViaMnemonicResponse.deserializeBinary
space_pb.RestoreKeyPairViaMnemonicResponse.deserializeBinary
);
restoreKeyPairViaMnemonic(
request: RestoreKeyPairViaMnemonicRequest,
metadata: grpcWeb.Metadata | null): Promise<RestoreKeyPairViaMnemonicResponse>;
request: space_pb.RestoreKeyPairViaMnemonicRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.RestoreKeyPairViaMnemonicResponse>;
restoreKeyPairViaMnemonic(
request: RestoreKeyPairViaMnemonicRequest,
request: space_pb.RestoreKeyPairViaMnemonicRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: RestoreKeyPairViaMnemonicResponse) => void): grpcWeb.ClientReadableStream<RestoreKeyPairViaMnemonicResponse>;
response: space_pb.RestoreKeyPairViaMnemonicResponse) => void): grpcWeb.ClientReadableStream<space_pb.RestoreKeyPairViaMnemonicResponse>;
restoreKeyPairViaMnemonic(
request: RestoreKeyPairViaMnemonicRequest,
request: space_pb.RestoreKeyPairViaMnemonicRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: RestoreKeyPairViaMnemonicResponse) => void) {
response: space_pb.RestoreKeyPairViaMnemonicResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/RestoreKeyPairViaMnemonic', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/RestoreKeyPairViaMnemonic',
request,

@@ -315,27 +247,28 @@ metadata || {},

methodInfoDeleteKeyPair = new grpcWeb.AbstractClientBase.MethodInfo(
DeleteKeyPairResponse,
(request: DeleteKeyPairRequest) => {
space_pb.DeleteKeyPairResponse,
(request: space_pb.DeleteKeyPairRequest) => {
return request.serializeBinary();
},
DeleteKeyPairResponse.deserializeBinary
space_pb.DeleteKeyPairResponse.deserializeBinary
);
deleteKeyPair(
request: DeleteKeyPairRequest,
metadata: grpcWeb.Metadata | null): Promise<DeleteKeyPairResponse>;
request: space_pb.DeleteKeyPairRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.DeleteKeyPairResponse>;
deleteKeyPair(
request: DeleteKeyPairRequest,
request: space_pb.DeleteKeyPairRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: DeleteKeyPairResponse) => void): grpcWeb.ClientReadableStream<DeleteKeyPairResponse>;
response: space_pb.DeleteKeyPairResponse) => void): grpcWeb.ClientReadableStream<space_pb.DeleteKeyPairResponse>;
deleteKeyPair(
request: DeleteKeyPairRequest,
request: space_pb.DeleteKeyPairRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: DeleteKeyPairResponse) => void) {
response: space_pb.DeleteKeyPairResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/DeleteKeyPair', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/DeleteKeyPair',
request,

@@ -355,27 +288,28 @@ metadata || {},

methodInfoGenerateKeyPairWithForce = new grpcWeb.AbstractClientBase.MethodInfo(
GenerateKeyPairResponse,
(request: GenerateKeyPairRequest) => {
space_pb.GenerateKeyPairResponse,
(request: space_pb.GenerateKeyPairRequest) => {
return request.serializeBinary();
},
GenerateKeyPairResponse.deserializeBinary
space_pb.GenerateKeyPairResponse.deserializeBinary
);
generateKeyPairWithForce(
request: GenerateKeyPairRequest,
metadata: grpcWeb.Metadata | null): Promise<GenerateKeyPairResponse>;
request: space_pb.GenerateKeyPairRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.GenerateKeyPairResponse>;
generateKeyPairWithForce(
request: GenerateKeyPairRequest,
request: space_pb.GenerateKeyPairRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: GenerateKeyPairResponse) => void): grpcWeb.ClientReadableStream<GenerateKeyPairResponse>;
response: space_pb.GenerateKeyPairResponse) => void): grpcWeb.ClientReadableStream<space_pb.GenerateKeyPairResponse>;
generateKeyPairWithForce(
request: GenerateKeyPairRequest,
request: space_pb.GenerateKeyPairRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: GenerateKeyPairResponse) => void) {
response: space_pb.GenerateKeyPairResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/GenerateKeyPairWithForce', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/GenerateKeyPairWithForce',
request,

@@ -395,27 +329,28 @@ metadata || {},

methodInfoGetPublicKey = new grpcWeb.AbstractClientBase.MethodInfo(
GetPublicKeyResponse,
(request: GetPublicKeyRequest) => {
space_pb.GetPublicKeyResponse,
(request: space_pb.GetPublicKeyRequest) => {
return request.serializeBinary();
},
GetPublicKeyResponse.deserializeBinary
space_pb.GetPublicKeyResponse.deserializeBinary
);
getPublicKey(
request: GetPublicKeyRequest,
metadata: grpcWeb.Metadata | null): Promise<GetPublicKeyResponse>;
request: space_pb.GetPublicKeyRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.GetPublicKeyResponse>;
getPublicKey(
request: GetPublicKeyRequest,
request: space_pb.GetPublicKeyRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: GetPublicKeyResponse) => void): grpcWeb.ClientReadableStream<GetPublicKeyResponse>;
response: space_pb.GetPublicKeyResponse) => void): grpcWeb.ClientReadableStream<space_pb.GetPublicKeyResponse>;
getPublicKey(
request: GetPublicKeyRequest,
request: space_pb.GetPublicKeyRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: GetPublicKeyResponse) => void) {
response: space_pb.GetPublicKeyResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/GetPublicKey', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/GetPublicKey',
request,

@@ -435,7 +370,7 @@ metadata || {},

methodInfoSubscribe = new grpcWeb.AbstractClientBase.MethodInfo(
FileEventResponse,
space_pb.FileEventResponse,
(request: google_protobuf_empty_pb.Empty) => {
return request.serializeBinary();
},
FileEventResponse.deserializeBinary
space_pb.FileEventResponse.deserializeBinary
);

@@ -447,3 +382,4 @@

return this.client_.serverStreaming(
new URL('/space.SpaceApi/Subscribe', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/Subscribe',
request,

@@ -455,7 +391,7 @@ metadata || {},

methodInfoTxlSubscribe = new grpcWeb.AbstractClientBase.MethodInfo(
TextileEventResponse,
space_pb.TextileEventResponse,
(request: google_protobuf_empty_pb.Empty) => {
return request.serializeBinary();
},
TextileEventResponse.deserializeBinary
space_pb.TextileEventResponse.deserializeBinary
);

@@ -467,3 +403,4 @@

return this.client_.serverStreaming(
new URL('/space.SpaceApi/TxlSubscribe', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/TxlSubscribe',
request,

@@ -475,27 +412,28 @@ metadata || {},

methodInfoOpenFile = new grpcWeb.AbstractClientBase.MethodInfo(
OpenFileResponse,
(request: OpenFileRequest) => {
space_pb.OpenFileResponse,
(request: space_pb.OpenFileRequest) => {
return request.serializeBinary();
},
OpenFileResponse.deserializeBinary
space_pb.OpenFileResponse.deserializeBinary
);
openFile(
request: OpenFileRequest,
metadata: grpcWeb.Metadata | null): Promise<OpenFileResponse>;
request: space_pb.OpenFileRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.OpenFileResponse>;
openFile(
request: OpenFileRequest,
request: space_pb.OpenFileRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: OpenFileResponse) => void): grpcWeb.ClientReadableStream<OpenFileResponse>;
response: space_pb.OpenFileResponse) => void): grpcWeb.ClientReadableStream<space_pb.OpenFileResponse>;
openFile(
request: OpenFileRequest,
request: space_pb.OpenFileRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: OpenFileResponse) => void) {
response: space_pb.OpenFileResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/OpenFile', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/OpenFile',
request,

@@ -515,27 +453,28 @@ metadata || {},

methodInfoGeneratePublicFileLink = new grpcWeb.AbstractClientBase.MethodInfo(
GeneratePublicFileLinkResponse,
(request: GeneratePublicFileLinkRequest) => {
space_pb.GeneratePublicFileLinkResponse,
(request: space_pb.GeneratePublicFileLinkRequest) => {
return request.serializeBinary();
},
GeneratePublicFileLinkResponse.deserializeBinary
space_pb.GeneratePublicFileLinkResponse.deserializeBinary
);
generatePublicFileLink(
request: GeneratePublicFileLinkRequest,
metadata: grpcWeb.Metadata | null): Promise<GeneratePublicFileLinkResponse>;
request: space_pb.GeneratePublicFileLinkRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.GeneratePublicFileLinkResponse>;
generatePublicFileLink(
request: GeneratePublicFileLinkRequest,
request: space_pb.GeneratePublicFileLinkRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: GeneratePublicFileLinkResponse) => void): grpcWeb.ClientReadableStream<GeneratePublicFileLinkResponse>;
response: space_pb.GeneratePublicFileLinkResponse) => void): grpcWeb.ClientReadableStream<space_pb.GeneratePublicFileLinkResponse>;
generatePublicFileLink(
request: GeneratePublicFileLinkRequest,
request: space_pb.GeneratePublicFileLinkRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: GeneratePublicFileLinkResponse) => void) {
response: space_pb.GeneratePublicFileLinkResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/GeneratePublicFileLink', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/GeneratePublicFileLink',
request,

@@ -555,27 +494,28 @@ metadata || {},

methodInfoGetSharedWithMeFiles = new grpcWeb.AbstractClientBase.MethodInfo(
GetSharedWithMeFilesResponse,
(request: GetSharedWithMeFilesRequest) => {
space_pb.GetSharedWithMeFilesResponse,
(request: space_pb.GetSharedWithMeFilesRequest) => {
return request.serializeBinary();
},
GetSharedWithMeFilesResponse.deserializeBinary
space_pb.GetSharedWithMeFilesResponse.deserializeBinary
);
getSharedWithMeFiles(
request: GetSharedWithMeFilesRequest,
metadata: grpcWeb.Metadata | null): Promise<GetSharedWithMeFilesResponse>;
request: space_pb.GetSharedWithMeFilesRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.GetSharedWithMeFilesResponse>;
getSharedWithMeFiles(
request: GetSharedWithMeFilesRequest,
request: space_pb.GetSharedWithMeFilesRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: GetSharedWithMeFilesResponse) => void): grpcWeb.ClientReadableStream<GetSharedWithMeFilesResponse>;
response: space_pb.GetSharedWithMeFilesResponse) => void): grpcWeb.ClientReadableStream<space_pb.GetSharedWithMeFilesResponse>;
getSharedWithMeFiles(
request: GetSharedWithMeFilesRequest,
request: space_pb.GetSharedWithMeFilesRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: GetSharedWithMeFilesResponse) => void) {
response: space_pb.GetSharedWithMeFilesResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/GetSharedWithMeFiles', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/GetSharedWithMeFiles',
request,

@@ -595,27 +535,28 @@ metadata || {},

methodInfoOpenPublicFile = new grpcWeb.AbstractClientBase.MethodInfo(
OpenPublicFileResponse,
(request: OpenPublicFileRequest) => {
space_pb.OpenPublicFileResponse,
(request: space_pb.OpenPublicFileRequest) => {
return request.serializeBinary();
},
OpenPublicFileResponse.deserializeBinary
space_pb.OpenPublicFileResponse.deserializeBinary
);
openPublicFile(
request: OpenPublicFileRequest,
metadata: grpcWeb.Metadata | null): Promise<OpenPublicFileResponse>;
request: space_pb.OpenPublicFileRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.OpenPublicFileResponse>;
openPublicFile(
request: OpenPublicFileRequest,
request: space_pb.OpenPublicFileRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: OpenPublicFileResponse) => void): grpcWeb.ClientReadableStream<OpenPublicFileResponse>;
response: space_pb.OpenPublicFileResponse) => void): grpcWeb.ClientReadableStream<space_pb.OpenPublicFileResponse>;
openPublicFile(
request: OpenPublicFileRequest,
request: space_pb.OpenPublicFileRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: OpenPublicFileResponse) => void) {
response: space_pb.OpenPublicFileResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/OpenPublicFile', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/OpenPublicFile',
request,

@@ -635,14 +576,15 @@ metadata || {},

methodInfoAddItems = new grpcWeb.AbstractClientBase.MethodInfo(
AddItemsResponse,
(request: AddItemsRequest) => {
space_pb.AddItemsResponse,
(request: space_pb.AddItemsRequest) => {
return request.serializeBinary();
},
AddItemsResponse.deserializeBinary
space_pb.AddItemsResponse.deserializeBinary
);
addItems(
request: AddItemsRequest,
request: space_pb.AddItemsRequest,
metadata?: grpcWeb.Metadata) {
return this.client_.serverStreaming(
new URL('/space.SpaceApi/AddItems', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/AddItems',
request,

@@ -654,27 +596,28 @@ metadata || {},

methodInfoCreateFolder = new grpcWeb.AbstractClientBase.MethodInfo(
CreateFolderResponse,
(request: CreateFolderRequest) => {
space_pb.CreateFolderResponse,
(request: space_pb.CreateFolderRequest) => {
return request.serializeBinary();
},
CreateFolderResponse.deserializeBinary
space_pb.CreateFolderResponse.deserializeBinary
);
createFolder(
request: CreateFolderRequest,
metadata: grpcWeb.Metadata | null): Promise<CreateFolderResponse>;
request: space_pb.CreateFolderRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.CreateFolderResponse>;
createFolder(
request: CreateFolderRequest,
request: space_pb.CreateFolderRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: CreateFolderResponse) => void): grpcWeb.ClientReadableStream<CreateFolderResponse>;
response: space_pb.CreateFolderResponse) => void): grpcWeb.ClientReadableStream<space_pb.CreateFolderResponse>;
createFolder(
request: CreateFolderRequest,
request: space_pb.CreateFolderRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: CreateFolderResponse) => void) {
response: space_pb.CreateFolderResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/CreateFolder', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/CreateFolder',
request,

@@ -694,27 +637,28 @@ metadata || {},

methodInfoToggleFuseDrive = new grpcWeb.AbstractClientBase.MethodInfo(
FuseDriveResponse,
(request: ToggleFuseRequest) => {
space_pb.FuseDriveResponse,
(request: space_pb.ToggleFuseRequest) => {
return request.serializeBinary();
},
FuseDriveResponse.deserializeBinary
space_pb.FuseDriveResponse.deserializeBinary
);
toggleFuseDrive(
request: ToggleFuseRequest,
metadata: grpcWeb.Metadata | null): Promise<FuseDriveResponse>;
request: space_pb.ToggleFuseRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.FuseDriveResponse>;
toggleFuseDrive(
request: ToggleFuseRequest,
request: space_pb.ToggleFuseRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: FuseDriveResponse) => void): grpcWeb.ClientReadableStream<FuseDriveResponse>;
response: space_pb.FuseDriveResponse) => void): grpcWeb.ClientReadableStream<space_pb.FuseDriveResponse>;
toggleFuseDrive(
request: ToggleFuseRequest,
request: space_pb.ToggleFuseRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: FuseDriveResponse) => void) {
response: space_pb.FuseDriveResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/ToggleFuseDrive', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/ToggleFuseDrive',
request,

@@ -734,7 +678,7 @@ metadata || {},

methodInfoGetFuseDriveStatus = new grpcWeb.AbstractClientBase.MethodInfo(
FuseDriveResponse,
space_pb.FuseDriveResponse,
(request: google_protobuf_empty_pb.Empty) => {
return request.serializeBinary();
},
FuseDriveResponse.deserializeBinary
space_pb.FuseDriveResponse.deserializeBinary
);

@@ -744,3 +688,3 @@

request: google_protobuf_empty_pb.Empty,
metadata: grpcWeb.Metadata | null): Promise<FuseDriveResponse>;
metadata: grpcWeb.Metadata | null): Promise<space_pb.FuseDriveResponse>;

@@ -751,3 +695,3 @@ getFuseDriveStatus(

callback: (err: grpcWeb.Error,
response: FuseDriveResponse) => void): grpcWeb.ClientReadableStream<FuseDriveResponse>;
response: space_pb.FuseDriveResponse) => void): grpcWeb.ClientReadableStream<space_pb.FuseDriveResponse>;

@@ -758,6 +702,7 @@ getFuseDriveStatus(

callback?: (err: grpcWeb.Error,
response: FuseDriveResponse) => void) {
response: space_pb.FuseDriveResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/GetFuseDriveStatus', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/GetFuseDriveStatus',
request,

@@ -777,27 +722,28 @@ metadata || {},

methodInfoCreateBucket = new grpcWeb.AbstractClientBase.MethodInfo(
CreateBucketResponse,
(request: CreateBucketRequest) => {
space_pb.CreateBucketResponse,
(request: space_pb.CreateBucketRequest) => {
return request.serializeBinary();
},
CreateBucketResponse.deserializeBinary
space_pb.CreateBucketResponse.deserializeBinary
);
createBucket(
request: CreateBucketRequest,
metadata: grpcWeb.Metadata | null): Promise<CreateBucketResponse>;
request: space_pb.CreateBucketRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.CreateBucketResponse>;
createBucket(
request: CreateBucketRequest,
request: space_pb.CreateBucketRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: CreateBucketResponse) => void): grpcWeb.ClientReadableStream<CreateBucketResponse>;
response: space_pb.CreateBucketResponse) => void): grpcWeb.ClientReadableStream<space_pb.CreateBucketResponse>;
createBucket(
request: CreateBucketRequest,
request: space_pb.CreateBucketRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: CreateBucketResponse) => void) {
response: space_pb.CreateBucketResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/CreateBucket', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/CreateBucket',
request,

@@ -817,27 +763,28 @@ metadata || {},

methodInfoBackupKeysByPassphrase = new grpcWeb.AbstractClientBase.MethodInfo(
BackupKeysByPassphraseResponse,
(request: BackupKeysByPassphraseRequest) => {
space_pb.BackupKeysByPassphraseResponse,
(request: space_pb.BackupKeysByPassphraseRequest) => {
return request.serializeBinary();
},
BackupKeysByPassphraseResponse.deserializeBinary
space_pb.BackupKeysByPassphraseResponse.deserializeBinary
);
backupKeysByPassphrase(
request: BackupKeysByPassphraseRequest,
metadata: grpcWeb.Metadata | null): Promise<BackupKeysByPassphraseResponse>;
request: space_pb.BackupKeysByPassphraseRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.BackupKeysByPassphraseResponse>;
backupKeysByPassphrase(
request: BackupKeysByPassphraseRequest,
request: space_pb.BackupKeysByPassphraseRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: BackupKeysByPassphraseResponse) => void): grpcWeb.ClientReadableStream<BackupKeysByPassphraseResponse>;
response: space_pb.BackupKeysByPassphraseResponse) => void): grpcWeb.ClientReadableStream<space_pb.BackupKeysByPassphraseResponse>;
backupKeysByPassphrase(
request: BackupKeysByPassphraseRequest,
request: space_pb.BackupKeysByPassphraseRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: BackupKeysByPassphraseResponse) => void) {
response: space_pb.BackupKeysByPassphraseResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/BackupKeysByPassphrase', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/BackupKeysByPassphrase',
request,

@@ -857,27 +804,28 @@ metadata || {},

methodInfoRecoverKeysByPassphrase = new grpcWeb.AbstractClientBase.MethodInfo(
RecoverKeysByPassphraseResponse,
(request: RecoverKeysByPassphraseRequest) => {
space_pb.RecoverKeysByPassphraseResponse,
(request: space_pb.RecoverKeysByPassphraseRequest) => {
return request.serializeBinary();
},
RecoverKeysByPassphraseResponse.deserializeBinary
space_pb.RecoverKeysByPassphraseResponse.deserializeBinary
);
recoverKeysByPassphrase(
request: RecoverKeysByPassphraseRequest,
metadata: grpcWeb.Metadata | null): Promise<RecoverKeysByPassphraseResponse>;
request: space_pb.RecoverKeysByPassphraseRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.RecoverKeysByPassphraseResponse>;
recoverKeysByPassphrase(
request: RecoverKeysByPassphraseRequest,
request: space_pb.RecoverKeysByPassphraseRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: RecoverKeysByPassphraseResponse) => void): grpcWeb.ClientReadableStream<RecoverKeysByPassphraseResponse>;
response: space_pb.RecoverKeysByPassphraseResponse) => void): grpcWeb.ClientReadableStream<space_pb.RecoverKeysByPassphraseResponse>;
recoverKeysByPassphrase(
request: RecoverKeysByPassphraseRequest,
request: space_pb.RecoverKeysByPassphraseRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: RecoverKeysByPassphraseResponse) => void) {
response: space_pb.RecoverKeysByPassphraseResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/RecoverKeysByPassphrase', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/RecoverKeysByPassphrase',
request,

@@ -897,27 +845,28 @@ metadata || {},

methodInfoTestKeysPassphrase = new grpcWeb.AbstractClientBase.MethodInfo(
TestKeysPassphraseResponse,
(request: TestKeysPassphraseRequest) => {
space_pb.TestKeysPassphraseResponse,
(request: space_pb.TestKeysPassphraseRequest) => {
return request.serializeBinary();
},
TestKeysPassphraseResponse.deserializeBinary
space_pb.TestKeysPassphraseResponse.deserializeBinary
);
testKeysPassphrase(
request: TestKeysPassphraseRequest,
metadata: grpcWeb.Metadata | null): Promise<TestKeysPassphraseResponse>;
request: space_pb.TestKeysPassphraseRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.TestKeysPassphraseResponse>;
testKeysPassphrase(
request: TestKeysPassphraseRequest,
request: space_pb.TestKeysPassphraseRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: TestKeysPassphraseResponse) => void): grpcWeb.ClientReadableStream<TestKeysPassphraseResponse>;
response: space_pb.TestKeysPassphraseResponse) => void): grpcWeb.ClientReadableStream<space_pb.TestKeysPassphraseResponse>;
testKeysPassphrase(
request: TestKeysPassphraseRequest,
request: space_pb.TestKeysPassphraseRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: TestKeysPassphraseResponse) => void) {
response: space_pb.TestKeysPassphraseResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/TestKeysPassphrase', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/TestKeysPassphrase',
request,

@@ -937,27 +886,28 @@ metadata || {},

methodInfoCreateLocalKeysBackup = new grpcWeb.AbstractClientBase.MethodInfo(
CreateLocalKeysBackupResponse,
(request: CreateLocalKeysBackupRequest) => {
space_pb.CreateLocalKeysBackupResponse,
(request: space_pb.CreateLocalKeysBackupRequest) => {
return request.serializeBinary();
},
CreateLocalKeysBackupResponse.deserializeBinary
space_pb.CreateLocalKeysBackupResponse.deserializeBinary
);
createLocalKeysBackup(
request: CreateLocalKeysBackupRequest,
metadata: grpcWeb.Metadata | null): Promise<CreateLocalKeysBackupResponse>;
request: space_pb.CreateLocalKeysBackupRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.CreateLocalKeysBackupResponse>;
createLocalKeysBackup(
request: CreateLocalKeysBackupRequest,
request: space_pb.CreateLocalKeysBackupRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: CreateLocalKeysBackupResponse) => void): grpcWeb.ClientReadableStream<CreateLocalKeysBackupResponse>;
response: space_pb.CreateLocalKeysBackupResponse) => void): grpcWeb.ClientReadableStream<space_pb.CreateLocalKeysBackupResponse>;
createLocalKeysBackup(
request: CreateLocalKeysBackupRequest,
request: space_pb.CreateLocalKeysBackupRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: CreateLocalKeysBackupResponse) => void) {
response: space_pb.CreateLocalKeysBackupResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/CreateLocalKeysBackup', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/CreateLocalKeysBackup',
request,

@@ -977,27 +927,28 @@ metadata || {},

methodInfoRecoverKeysByLocalBackup = new grpcWeb.AbstractClientBase.MethodInfo(
RecoverKeysByLocalBackupResponse,
(request: RecoverKeysByLocalBackupRequest) => {
space_pb.RecoverKeysByLocalBackupResponse,
(request: space_pb.RecoverKeysByLocalBackupRequest) => {
return request.serializeBinary();
},
RecoverKeysByLocalBackupResponse.deserializeBinary
space_pb.RecoverKeysByLocalBackupResponse.deserializeBinary
);
recoverKeysByLocalBackup(
request: RecoverKeysByLocalBackupRequest,
metadata: grpcWeb.Metadata | null): Promise<RecoverKeysByLocalBackupResponse>;
request: space_pb.RecoverKeysByLocalBackupRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.RecoverKeysByLocalBackupResponse>;
recoverKeysByLocalBackup(
request: RecoverKeysByLocalBackupRequest,
request: space_pb.RecoverKeysByLocalBackupRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: RecoverKeysByLocalBackupResponse) => void): grpcWeb.ClientReadableStream<RecoverKeysByLocalBackupResponse>;
response: space_pb.RecoverKeysByLocalBackupResponse) => void): grpcWeb.ClientReadableStream<space_pb.RecoverKeysByLocalBackupResponse>;
recoverKeysByLocalBackup(
request: RecoverKeysByLocalBackupRequest,
request: space_pb.RecoverKeysByLocalBackupRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: RecoverKeysByLocalBackupResponse) => void) {
response: space_pb.RecoverKeysByLocalBackupResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/RecoverKeysByLocalBackup', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/RecoverKeysByLocalBackup',
request,

@@ -1017,27 +968,28 @@ metadata || {},

methodInfoShareBucket = new grpcWeb.AbstractClientBase.MethodInfo(
ShareBucketResponse,
(request: ShareBucketRequest) => {
space_pb.ShareBucketResponse,
(request: space_pb.ShareBucketRequest) => {
return request.serializeBinary();
},
ShareBucketResponse.deserializeBinary
space_pb.ShareBucketResponse.deserializeBinary
);
shareBucket(
request: ShareBucketRequest,
metadata: grpcWeb.Metadata | null): Promise<ShareBucketResponse>;
request: space_pb.ShareBucketRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.ShareBucketResponse>;
shareBucket(
request: ShareBucketRequest,
request: space_pb.ShareBucketRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: ShareBucketResponse) => void): grpcWeb.ClientReadableStream<ShareBucketResponse>;
response: space_pb.ShareBucketResponse) => void): grpcWeb.ClientReadableStream<space_pb.ShareBucketResponse>;
shareBucket(
request: ShareBucketRequest,
request: space_pb.ShareBucketRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: ShareBucketResponse) => void) {
response: space_pb.ShareBucketResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/ShareBucket', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/ShareBucket',
request,

@@ -1057,27 +1009,28 @@ metadata || {},

methodInfoJoinBucket = new grpcWeb.AbstractClientBase.MethodInfo(
JoinBucketResponse,
(request: JoinBucketRequest) => {
space_pb.JoinBucketResponse,
(request: space_pb.JoinBucketRequest) => {
return request.serializeBinary();
},
JoinBucketResponse.deserializeBinary
space_pb.JoinBucketResponse.deserializeBinary
);
joinBucket(
request: JoinBucketRequest,
metadata: grpcWeb.Metadata | null): Promise<JoinBucketResponse>;
request: space_pb.JoinBucketRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.JoinBucketResponse>;
joinBucket(
request: JoinBucketRequest,
request: space_pb.JoinBucketRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: JoinBucketResponse) => void): grpcWeb.ClientReadableStream<JoinBucketResponse>;
response: space_pb.JoinBucketResponse) => void): grpcWeb.ClientReadableStream<space_pb.JoinBucketResponse>;
joinBucket(
request: JoinBucketRequest,
request: space_pb.JoinBucketRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: JoinBucketResponse) => void) {
response: space_pb.JoinBucketResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/JoinBucket', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/JoinBucket',
request,

@@ -1097,27 +1050,28 @@ metadata || {},

methodInfoShareFilesViaPublicKey = new grpcWeb.AbstractClientBase.MethodInfo(
ShareFilesViaPublicKeyResponse,
(request: ShareFilesViaPublicKeyRequest) => {
space_pb.ShareFilesViaPublicKeyResponse,
(request: space_pb.ShareFilesViaPublicKeyRequest) => {
return request.serializeBinary();
},
ShareFilesViaPublicKeyResponse.deserializeBinary
space_pb.ShareFilesViaPublicKeyResponse.deserializeBinary
);
shareFilesViaPublicKey(
request: ShareFilesViaPublicKeyRequest,
metadata: grpcWeb.Metadata | null): Promise<ShareFilesViaPublicKeyResponse>;
request: space_pb.ShareFilesViaPublicKeyRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.ShareFilesViaPublicKeyResponse>;
shareFilesViaPublicKey(
request: ShareFilesViaPublicKeyRequest,
request: space_pb.ShareFilesViaPublicKeyRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: ShareFilesViaPublicKeyResponse) => void): grpcWeb.ClientReadableStream<ShareFilesViaPublicKeyResponse>;
response: space_pb.ShareFilesViaPublicKeyResponse) => void): grpcWeb.ClientReadableStream<space_pb.ShareFilesViaPublicKeyResponse>;
shareFilesViaPublicKey(
request: ShareFilesViaPublicKeyRequest,
request: space_pb.ShareFilesViaPublicKeyRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: ShareFilesViaPublicKeyResponse) => void) {
response: space_pb.ShareFilesViaPublicKeyResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/ShareFilesViaPublicKey', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/ShareFilesViaPublicKey',
request,

@@ -1137,27 +1091,28 @@ metadata || {},

methodInfoHandleFilesInvitation = new grpcWeb.AbstractClientBase.MethodInfo(
HandleFilesInvitationResponse,
(request: HandleFilesInvitationRequest) => {
space_pb.HandleFilesInvitationResponse,
(request: space_pb.HandleFilesInvitationRequest) => {
return request.serializeBinary();
},
HandleFilesInvitationResponse.deserializeBinary
space_pb.HandleFilesInvitationResponse.deserializeBinary
);
handleFilesInvitation(
request: HandleFilesInvitationRequest,
metadata: grpcWeb.Metadata | null): Promise<HandleFilesInvitationResponse>;
request: space_pb.HandleFilesInvitationRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.HandleFilesInvitationResponse>;
handleFilesInvitation(
request: HandleFilesInvitationRequest,
request: space_pb.HandleFilesInvitationRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: HandleFilesInvitationResponse) => void): grpcWeb.ClientReadableStream<HandleFilesInvitationResponse>;
response: space_pb.HandleFilesInvitationResponse) => void): grpcWeb.ClientReadableStream<space_pb.HandleFilesInvitationResponse>;
handleFilesInvitation(
request: HandleFilesInvitationRequest,
request: space_pb.HandleFilesInvitationRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: HandleFilesInvitationResponse) => void) {
response: space_pb.HandleFilesInvitationResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/HandleFilesInvitation', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/HandleFilesInvitation',
request,

@@ -1177,7 +1132,7 @@ metadata || {},

methodInfoNotificationSubscribe = new grpcWeb.AbstractClientBase.MethodInfo(
NotificationEventResponse,
space_pb.NotificationEventResponse,
(request: google_protobuf_empty_pb.Empty) => {
return request.serializeBinary();
},
NotificationEventResponse.deserializeBinary
space_pb.NotificationEventResponse.deserializeBinary
);

@@ -1189,3 +1144,4 @@

return this.client_.serverStreaming(
new URL('/space.SpaceApi/NotificationSubscribe', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/NotificationSubscribe',
request,

@@ -1197,27 +1153,28 @@ metadata || {},

methodInfoListBuckets = new grpcWeb.AbstractClientBase.MethodInfo(
ListBucketsResponse,
(request: ListBucketsRequest) => {
space_pb.ListBucketsResponse,
(request: space_pb.ListBucketsRequest) => {
return request.serializeBinary();
},
ListBucketsResponse.deserializeBinary
space_pb.ListBucketsResponse.deserializeBinary
);
listBuckets(
request: ListBucketsRequest,
metadata: grpcWeb.Metadata | null): Promise<ListBucketsResponse>;
request: space_pb.ListBucketsRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.ListBucketsResponse>;
listBuckets(
request: ListBucketsRequest,
request: space_pb.ListBucketsRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: ListBucketsResponse) => void): grpcWeb.ClientReadableStream<ListBucketsResponse>;
response: space_pb.ListBucketsResponse) => void): grpcWeb.ClientReadableStream<space_pb.ListBucketsResponse>;
listBuckets(
request: ListBucketsRequest,
request: space_pb.ListBucketsRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: ListBucketsResponse) => void) {
response: space_pb.ListBucketsResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/ListBuckets', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/ListBuckets',
request,

@@ -1237,27 +1194,28 @@ metadata || {},

methodInfoGetNotifications = new grpcWeb.AbstractClientBase.MethodInfo(
GetNotificationsResponse,
(request: GetNotificationsRequest) => {
space_pb.GetNotificationsResponse,
(request: space_pb.GetNotificationsRequest) => {
return request.serializeBinary();
},
GetNotificationsResponse.deserializeBinary
space_pb.GetNotificationsResponse.deserializeBinary
);
getNotifications(
request: GetNotificationsRequest,
metadata: grpcWeb.Metadata | null): Promise<GetNotificationsResponse>;
request: space_pb.GetNotificationsRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.GetNotificationsResponse>;
getNotifications(
request: GetNotificationsRequest,
request: space_pb.GetNotificationsRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: GetNotificationsResponse) => void): grpcWeb.ClientReadableStream<GetNotificationsResponse>;
response: space_pb.GetNotificationsResponse) => void): grpcWeb.ClientReadableStream<space_pb.GetNotificationsResponse>;
getNotifications(
request: GetNotificationsRequest,
request: space_pb.GetNotificationsRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: GetNotificationsResponse) => void) {
response: space_pb.GetNotificationsResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/GetNotifications', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/GetNotifications',
request,

@@ -1277,27 +1235,28 @@ metadata || {},

methodInfoReadNotification = new grpcWeb.AbstractClientBase.MethodInfo(
ReadNotificationResponse,
(request: ReadNotificationRequest) => {
space_pb.ReadNotificationResponse,
(request: space_pb.ReadNotificationRequest) => {
return request.serializeBinary();
},
ReadNotificationResponse.deserializeBinary
space_pb.ReadNotificationResponse.deserializeBinary
);
readNotification(
request: ReadNotificationRequest,
metadata: grpcWeb.Metadata | null): Promise<ReadNotificationResponse>;
request: space_pb.ReadNotificationRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.ReadNotificationResponse>;
readNotification(
request: ReadNotificationRequest,
request: space_pb.ReadNotificationRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: ReadNotificationResponse) => void): grpcWeb.ClientReadableStream<ReadNotificationResponse>;
response: space_pb.ReadNotificationResponse) => void): grpcWeb.ClientReadableStream<space_pb.ReadNotificationResponse>;
readNotification(
request: ReadNotificationRequest,
request: space_pb.ReadNotificationRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: ReadNotificationResponse) => void) {
response: space_pb.ReadNotificationResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/ReadNotification', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/ReadNotification',
request,

@@ -1317,27 +1276,28 @@ metadata || {},

methodInfoDeleteAccount = new grpcWeb.AbstractClientBase.MethodInfo(
DeleteAccountResponse,
(request: DeleteAccountRequest) => {
space_pb.DeleteAccountResponse,
(request: space_pb.DeleteAccountRequest) => {
return request.serializeBinary();
},
DeleteAccountResponse.deserializeBinary
space_pb.DeleteAccountResponse.deserializeBinary
);
deleteAccount(
request: DeleteAccountRequest,
metadata: grpcWeb.Metadata | null): Promise<DeleteAccountResponse>;
request: space_pb.DeleteAccountRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.DeleteAccountResponse>;
deleteAccount(
request: DeleteAccountRequest,
request: space_pb.DeleteAccountRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: DeleteAccountResponse) => void): grpcWeb.ClientReadableStream<DeleteAccountResponse>;
response: space_pb.DeleteAccountResponse) => void): grpcWeb.ClientReadableStream<space_pb.DeleteAccountResponse>;
deleteAccount(
request: DeleteAccountRequest,
request: space_pb.DeleteAccountRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: DeleteAccountResponse) => void) {
response: space_pb.DeleteAccountResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/DeleteAccount', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/DeleteAccount',
request,

@@ -1357,27 +1317,28 @@ metadata || {},

methodInfoToggleBucketBackup = new grpcWeb.AbstractClientBase.MethodInfo(
ToggleBucketBackupResponse,
(request: ToggleBucketBackupRequest) => {
space_pb.ToggleBucketBackupResponse,
(request: space_pb.ToggleBucketBackupRequest) => {
return request.serializeBinary();
},
ToggleBucketBackupResponse.deserializeBinary
space_pb.ToggleBucketBackupResponse.deserializeBinary
);
toggleBucketBackup(
request: ToggleBucketBackupRequest,
metadata: grpcWeb.Metadata | null): Promise<ToggleBucketBackupResponse>;
request: space_pb.ToggleBucketBackupRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.ToggleBucketBackupResponse>;
toggleBucketBackup(
request: ToggleBucketBackupRequest,
request: space_pb.ToggleBucketBackupRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: ToggleBucketBackupResponse) => void): grpcWeb.ClientReadableStream<ToggleBucketBackupResponse>;
response: space_pb.ToggleBucketBackupResponse) => void): grpcWeb.ClientReadableStream<space_pb.ToggleBucketBackupResponse>;
toggleBucketBackup(
request: ToggleBucketBackupRequest,
request: space_pb.ToggleBucketBackupRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: ToggleBucketBackupResponse) => void) {
response: space_pb.ToggleBucketBackupResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/ToggleBucketBackup', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/ToggleBucketBackup',
request,

@@ -1397,27 +1358,28 @@ metadata || {},

methodInfoBucketBackupRestore = new grpcWeb.AbstractClientBase.MethodInfo(
BucketBackupRestoreResponse,
(request: BucketBackupRestoreRequest) => {
space_pb.BucketBackupRestoreResponse,
(request: space_pb.BucketBackupRestoreRequest) => {
return request.serializeBinary();
},
BucketBackupRestoreResponse.deserializeBinary
space_pb.BucketBackupRestoreResponse.deserializeBinary
);
bucketBackupRestore(
request: BucketBackupRestoreRequest,
metadata: grpcWeb.Metadata | null): Promise<BucketBackupRestoreResponse>;
request: space_pb.BucketBackupRestoreRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.BucketBackupRestoreResponse>;
bucketBackupRestore(
request: BucketBackupRestoreRequest,
request: space_pb.BucketBackupRestoreRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: BucketBackupRestoreResponse) => void): grpcWeb.ClientReadableStream<BucketBackupRestoreResponse>;
response: space_pb.BucketBackupRestoreResponse) => void): grpcWeb.ClientReadableStream<space_pb.BucketBackupRestoreResponse>;
bucketBackupRestore(
request: BucketBackupRestoreRequest,
request: space_pb.BucketBackupRestoreRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: BucketBackupRestoreResponse) => void) {
response: space_pb.BucketBackupRestoreResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/BucketBackupRestore', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/BucketBackupRestore',
request,

@@ -1437,27 +1399,28 @@ metadata || {},

methodInfoGetUsageInfo = new grpcWeb.AbstractClientBase.MethodInfo(
GetUsageInfoResponse,
(request: GetUsageInfoRequest) => {
space_pb.GetUsageInfoResponse,
(request: space_pb.GetUsageInfoRequest) => {
return request.serializeBinary();
},
GetUsageInfoResponse.deserializeBinary
space_pb.GetUsageInfoResponse.deserializeBinary
);
getUsageInfo(
request: GetUsageInfoRequest,
metadata: grpcWeb.Metadata | null): Promise<GetUsageInfoResponse>;
request: space_pb.GetUsageInfoRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.GetUsageInfoResponse>;
getUsageInfo(
request: GetUsageInfoRequest,
request: space_pb.GetUsageInfoRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: GetUsageInfoResponse) => void): grpcWeb.ClientReadableStream<GetUsageInfoResponse>;
response: space_pb.GetUsageInfoResponse) => void): grpcWeb.ClientReadableStream<space_pb.GetUsageInfoResponse>;
getUsageInfo(
request: GetUsageInfoRequest,
request: space_pb.GetUsageInfoRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: GetUsageInfoResponse) => void) {
response: space_pb.GetUsageInfoResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/GetUsageInfo', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/GetUsageInfo',
request,

@@ -1477,27 +1440,28 @@ metadata || {},

methodInfoGetAPISessionTokens = new grpcWeb.AbstractClientBase.MethodInfo(
GetAPISessionTokensResponse,
(request: GetAPISessionTokensRequest) => {
space_pb.GetAPISessionTokensResponse,
(request: space_pb.GetAPISessionTokensRequest) => {
return request.serializeBinary();
},
GetAPISessionTokensResponse.deserializeBinary
space_pb.GetAPISessionTokensResponse.deserializeBinary
);
getAPISessionTokens(
request: GetAPISessionTokensRequest,
metadata: grpcWeb.Metadata | null): Promise<GetAPISessionTokensResponse>;
request: space_pb.GetAPISessionTokensRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.GetAPISessionTokensResponse>;
getAPISessionTokens(
request: GetAPISessionTokensRequest,
request: space_pb.GetAPISessionTokensRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: GetAPISessionTokensResponse) => void): grpcWeb.ClientReadableStream<GetAPISessionTokensResponse>;
response: space_pb.GetAPISessionTokensResponse) => void): grpcWeb.ClientReadableStream<space_pb.GetAPISessionTokensResponse>;
getAPISessionTokens(
request: GetAPISessionTokensRequest,
request: space_pb.GetAPISessionTokensRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: GetAPISessionTokensResponse) => void) {
response: space_pb.GetAPISessionTokensResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/GetAPISessionTokens', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/GetAPISessionTokens',
request,

@@ -1517,27 +1481,28 @@ metadata || {},

methodInfoGetRecentlySharedWith = new grpcWeb.AbstractClientBase.MethodInfo(
GetRecentlySharedWithResponse,
(request: GetRecentlySharedWithRequest) => {
space_pb.GetRecentlySharedWithResponse,
(request: space_pb.GetRecentlySharedWithRequest) => {
return request.serializeBinary();
},
GetRecentlySharedWithResponse.deserializeBinary
space_pb.GetRecentlySharedWithResponse.deserializeBinary
);
getRecentlySharedWith(
request: GetRecentlySharedWithRequest,
metadata: grpcWeb.Metadata | null): Promise<GetRecentlySharedWithResponse>;
request: space_pb.GetRecentlySharedWithRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.GetRecentlySharedWithResponse>;
getRecentlySharedWith(
request: GetRecentlySharedWithRequest,
request: space_pb.GetRecentlySharedWithRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: GetRecentlySharedWithResponse) => void): grpcWeb.ClientReadableStream<GetRecentlySharedWithResponse>;
response: space_pb.GetRecentlySharedWithResponse) => void): grpcWeb.ClientReadableStream<space_pb.GetRecentlySharedWithResponse>;
getRecentlySharedWith(
request: GetRecentlySharedWithRequest,
request: space_pb.GetRecentlySharedWithRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: GetRecentlySharedWithResponse) => void) {
response: space_pb.GetRecentlySharedWithResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/GetRecentlySharedWith', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/GetRecentlySharedWith',
request,

@@ -1557,27 +1522,28 @@ metadata || {},

methodInfoSetNotificationsLastSeenAt = new grpcWeb.AbstractClientBase.MethodInfo(
SetNotificationsLastSeenAtResponse,
(request: SetNotificationsLastSeenAtRequest) => {
space_pb.SetNotificationsLastSeenAtResponse,
(request: space_pb.SetNotificationsLastSeenAtRequest) => {
return request.serializeBinary();
},
SetNotificationsLastSeenAtResponse.deserializeBinary
space_pb.SetNotificationsLastSeenAtResponse.deserializeBinary
);
setNotificationsLastSeenAt(
request: SetNotificationsLastSeenAtRequest,
metadata: grpcWeb.Metadata | null): Promise<SetNotificationsLastSeenAtResponse>;
request: space_pb.SetNotificationsLastSeenAtRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.SetNotificationsLastSeenAtResponse>;
setNotificationsLastSeenAt(
request: SetNotificationsLastSeenAtRequest,
request: space_pb.SetNotificationsLastSeenAtRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: SetNotificationsLastSeenAtResponse) => void): grpcWeb.ClientReadableStream<SetNotificationsLastSeenAtResponse>;
response: space_pb.SetNotificationsLastSeenAtResponse) => void): grpcWeb.ClientReadableStream<space_pb.SetNotificationsLastSeenAtResponse>;
setNotificationsLastSeenAt(
request: SetNotificationsLastSeenAtRequest,
request: space_pb.SetNotificationsLastSeenAtRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: SetNotificationsLastSeenAtResponse) => void) {
response: space_pb.SetNotificationsLastSeenAtResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/SetNotificationsLastSeenAt', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/SetNotificationsLastSeenAt',
request,

@@ -1597,27 +1563,28 @@ metadata || {},

methodInfoSearchFiles = new grpcWeb.AbstractClientBase.MethodInfo(
SearchFilesResponse,
(request: SearchFilesRequest) => {
space_pb.SearchFilesResponse,
(request: space_pb.SearchFilesRequest) => {
return request.serializeBinary();
},
SearchFilesResponse.deserializeBinary
space_pb.SearchFilesResponse.deserializeBinary
);
searchFiles(
request: SearchFilesRequest,
metadata: grpcWeb.Metadata | null): Promise<SearchFilesResponse>;
request: space_pb.SearchFilesRequest,
metadata: grpcWeb.Metadata | null): Promise<space_pb.SearchFilesResponse>;
searchFiles(
request: SearchFilesRequest,
request: space_pb.SearchFilesRequest,
metadata: grpcWeb.Metadata | null,
callback: (err: grpcWeb.Error,
response: SearchFilesResponse) => void): grpcWeb.ClientReadableStream<SearchFilesResponse>;
response: space_pb.SearchFilesResponse) => void): grpcWeb.ClientReadableStream<space_pb.SearchFilesResponse>;
searchFiles(
request: SearchFilesRequest,
request: space_pb.SearchFilesRequest,
metadata: grpcWeb.Metadata | null,
callback?: (err: grpcWeb.Error,
response: SearchFilesResponse) => void) {
response: space_pb.SearchFilesResponse) => void) {
if (callback !== undefined) {
return this.client_.rpcCall(
new URL('/space.SpaceApi/SearchFiles', this.hostname_).toString(),
this.hostname_ +
'/space.SpaceApi/SearchFiles',
request,

@@ -1624,0 +1591,0 @@ metadata || {},

@@ -29,2 +29,3 @@ export interface ListDirectoryPayload {

uuid: string;
type: 0 | 1;
passphrase: string;

@@ -31,0 +32,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc