mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-08 07:12:49 +00:00
update bindings
This commit is contained in:
parent
2d2f45be3d
commit
9cd153c2d2
|
@ -2,146 +2,6 @@
|
|||
// This file was generated by [rspc](https://github.com/oscartbeaumont/rspc). Do not edit this file manually.
|
||||
|
||||
export type Procedures = {
|
||||
<<<<<<< HEAD
|
||||
queries:
|
||||
| { key: 'buildInfo'; input: never; result: BuildInfo }
|
||||
| {
|
||||
key: 'files.get';
|
||||
input: LibraryArgs<GetArgs>;
|
||||
result: {
|
||||
id: number;
|
||||
cas_id: string;
|
||||
integrity_checksum: string | null;
|
||||
name: string | null;
|
||||
extension: string | null;
|
||||
kind: number;
|
||||
size_in_bytes: string;
|
||||
key_id: number | null;
|
||||
hidden: boolean;
|
||||
favorite: boolean;
|
||||
important: boolean;
|
||||
has_thumbnail: boolean;
|
||||
has_thumbstrip: boolean;
|
||||
has_video_preview: boolean;
|
||||
ipfs_id: string | null;
|
||||
note: string | null;
|
||||
date_created: string;
|
||||
date_modified: string;
|
||||
date_indexed: string;
|
||||
file_paths: Array<FilePath>;
|
||||
media_data: MediaData | null;
|
||||
} | null;
|
||||
}
|
||||
| { key: 'jobs.getHistory'; input: LibraryArgs<null>; result: Array<JobReport> }
|
||||
| { key: 'jobs.getRunning'; input: LibraryArgs<null>; result: Array<JobReport> }
|
||||
| { key: 'jobs.isRunning'; input: LibraryArgs<null>; result: boolean }
|
||||
| { key: 'keys.getDefault'; input: LibraryArgs<null>; result: string | null }
|
||||
| { key: 'keys.getKey'; input: LibraryArgs<string>; result: string }
|
||||
| { key: 'keys.hasMasterPassword'; input: LibraryArgs<null>; result: boolean }
|
||||
| { key: 'keys.isKeyManagerUnlocking'; input: LibraryArgs<null>; result: boolean }
|
||||
| { key: 'keys.list'; input: LibraryArgs<null>; result: Array<StoredKey> }
|
||||
| { key: 'keys.listMounted'; input: LibraryArgs<null>; result: Array<string> }
|
||||
| { key: 'library.getStatistics'; input: LibraryArgs<null>; result: Statistics }
|
||||
| { key: 'library.list'; input: never; result: Array<LibraryConfigWrapped> }
|
||||
| { key: 'locations.getById'; input: LibraryArgs<number>; result: Location | null }
|
||||
| {
|
||||
key: 'locations.getExplorerData';
|
||||
input: LibraryArgs<LocationExplorerArgs>;
|
||||
result: ExplorerData;
|
||||
}
|
||||
| { key: 'locations.indexer_rules.get'; input: LibraryArgs<number>; result: IndexerRule }
|
||||
| { key: 'locations.indexer_rules.list'; input: LibraryArgs<null>; result: Array<IndexerRule> }
|
||||
| {
|
||||
key: 'locations.list';
|
||||
input: LibraryArgs<null>;
|
||||
result: Array<{
|
||||
id: number;
|
||||
pub_id: Array<number>;
|
||||
node_id: number;
|
||||
name: string | null;
|
||||
local_path: string | null;
|
||||
total_capacity: number | null;
|
||||
available_capacity: number | null;
|
||||
filesystem: string | null;
|
||||
disk_type: number | null;
|
||||
is_removable: boolean | null;
|
||||
is_online: boolean;
|
||||
is_archived: boolean;
|
||||
date_created: string;
|
||||
node: Node;
|
||||
}>;
|
||||
}
|
||||
| { key: 'nodeState'; input: never; result: NodeState }
|
||||
| { key: 'normi.composite'; input: never; result: NormalisedCompositeId }
|
||||
| { key: 'normi.org'; input: never; result: NormalisedOrganisation }
|
||||
| { key: 'normi.user'; input: never; result: NormalisedUser }
|
||||
| { key: 'normi.userSync'; input: never; result: NormalisedUser }
|
||||
| { key: 'normi.version'; input: never; result: string }
|
||||
| { key: 'tags.get'; input: LibraryArgs<number>; result: Tag | null }
|
||||
| { key: 'tags.getExplorerData'; input: LibraryArgs<number>; result: ExplorerData }
|
||||
| { key: 'tags.getForObject'; input: LibraryArgs<number>; result: Array<Tag> }
|
||||
| { key: 'tags.list'; input: LibraryArgs<null>; result: Array<Tag> }
|
||||
| { key: 'volumes.list'; input: never; result: Array<Volume> };
|
||||
mutations:
|
||||
| { key: 'files.copyFiles'; input: LibraryArgs<FileCopierJobInit>; result: null }
|
||||
| { key: 'files.cutFiles'; input: LibraryArgs<FileCutterJobInit>; result: null }
|
||||
| { key: 'files.decryptFiles'; input: LibraryArgs<FileDecryptorJobInit>; result: null }
|
||||
| { key: 'files.delete'; input: LibraryArgs<number>; result: null }
|
||||
| { key: 'files.deleteFiles'; input: LibraryArgs<FileDeleterJobInit>; result: null }
|
||||
| { key: 'files.duplicateFiles'; input: LibraryArgs<FileCopierJobInit>; result: null }
|
||||
| { key: 'files.encryptFiles'; input: LibraryArgs<FileEncryptorJobInit>; result: null }
|
||||
| { key: 'files.eraseFiles'; input: LibraryArgs<FileEraserJobInit>; result: null }
|
||||
| { key: 'files.setFavorite'; input: LibraryArgs<SetFavoriteArgs>; result: null }
|
||||
| { key: 'files.setNote'; input: LibraryArgs<SetNoteArgs>; result: null }
|
||||
| { key: 'jobs.clearAll'; input: LibraryArgs<null>; result: null }
|
||||
| {
|
||||
key: 'jobs.generateThumbsForLocation';
|
||||
input: LibraryArgs<GenerateThumbsForLocationArgs>;
|
||||
result: null;
|
||||
}
|
||||
| { key: 'jobs.identifyUniqueFiles'; input: LibraryArgs<IdentifyUniqueFilesArgs>; result: null }
|
||||
| { key: 'jobs.objectValidator'; input: LibraryArgs<ObjectValidatorArgs>; result: null }
|
||||
| { key: 'keys.add'; input: LibraryArgs<KeyAddArgs>; result: null }
|
||||
| { key: 'keys.backupKeystore'; input: LibraryArgs<string>; result: null }
|
||||
| {
|
||||
key: 'keys.changeMasterPassword';
|
||||
input: LibraryArgs<MasterPasswordChangeArgs>;
|
||||
result: null;
|
||||
}
|
||||
| { key: 'keys.clearMasterPassword'; input: LibraryArgs<null>; result: null }
|
||||
| { key: 'keys.deleteFromLibrary'; input: LibraryArgs<string>; result: null }
|
||||
| { key: 'keys.mount'; input: LibraryArgs<string>; result: null }
|
||||
| { key: 'keys.restoreKeystore'; input: LibraryArgs<RestoreBackupArgs>; result: number }
|
||||
| { key: 'keys.setDefault'; input: LibraryArgs<string>; result: null }
|
||||
| { key: 'keys.setMasterPassword'; input: LibraryArgs<SetMasterPasswordArgs>; result: null }
|
||||
| { key: 'keys.syncKeyToLibrary'; input: LibraryArgs<string>; result: null }
|
||||
| { key: 'keys.unmount'; input: LibraryArgs<string>; result: null }
|
||||
| { key: 'keys.unmountAll'; input: LibraryArgs<null>; result: null }
|
||||
| { key: 'keys.updateAutomountStatus'; input: LibraryArgs<AutomountUpdateArgs>; result: null }
|
||||
| { key: 'library.create'; input: CreateLibraryArgs; result: LibraryConfigWrapped }
|
||||
| { key: 'library.delete'; input: string; result: null }
|
||||
| { key: 'library.edit'; input: EditLibraryArgs; result: null }
|
||||
| { key: 'locations.addLibrary'; input: LibraryArgs<LocationCreateArgs>; result: null }
|
||||
| { key: 'locations.create'; input: LibraryArgs<LocationCreateArgs>; result: null }
|
||||
| { key: 'locations.delete'; input: LibraryArgs<number>; result: null }
|
||||
| { key: 'locations.fullRescan'; input: LibraryArgs<number>; result: null }
|
||||
| {
|
||||
key: 'locations.indexer_rules.create';
|
||||
input: LibraryArgs<IndexerRuleCreateArgs>;
|
||||
result: IndexerRule;
|
||||
}
|
||||
| { key: 'locations.indexer_rules.delete'; input: LibraryArgs<number>; result: null }
|
||||
| { key: 'locations.quickRescan'; input: LibraryArgs<null>; result: null }
|
||||
| { key: 'locations.relink'; input: LibraryArgs<string>; result: null }
|
||||
| { key: 'locations.update'; input: LibraryArgs<LocationUpdateArgs>; result: null }
|
||||
| { key: 'tags.assign'; input: LibraryArgs<TagAssignArgs>; result: null }
|
||||
| { key: 'tags.create'; input: LibraryArgs<TagCreateArgs>; result: Tag }
|
||||
| { key: 'tags.delete'; input: LibraryArgs<number>; result: null }
|
||||
| { key: 'tags.update'; input: LibraryArgs<TagUpdateArgs>; result: null };
|
||||
subscriptions:
|
||||
| { key: 'invalidateQuery'; input: never; result: InvalidateOperationEvent }
|
||||
| { key: 'jobs.newThumbnail'; input: LibraryArgs<null>; result: string };
|
||||
=======
|
||||
queries:
|
||||
{ key: "buildInfo", input: never, result: BuildInfo } |
|
||||
{ key: "files.get", input: LibraryArgs<GetArgs>, result: { id: number, cas_id: string, integrity_checksum: string | null, name: string | null, extension: string | null, kind: number, size_in_bytes: string, key_id: number | null, hidden: boolean, favorite: boolean, important: boolean, has_thumbnail: boolean, has_thumbstrip: boolean, has_video_preview: boolean, ipfs_id: string | null, note: string | null, date_created: string, date_modified: string, date_indexed: string, file_paths: Array<FilePath>, media_data: MediaData | null } | null } |
|
||||
|
@ -173,9 +33,12 @@ export type Procedures = {
|
|||
{ key: "tags.list", input: LibraryArgs<null>, result: Array<Tag> } |
|
||||
{ key: "volumes.list", input: never, result: Array<Volume> },
|
||||
mutations:
|
||||
{ key: "files.copyFiles", input: LibraryArgs<FileCopierJobInit>, result: null } |
|
||||
{ key: "files.cutFiles", input: LibraryArgs<FileCutterJobInit>, result: null } |
|
||||
{ key: "files.decryptFiles", input: LibraryArgs<FileDecryptorJobInit>, result: null } |
|
||||
{ key: "files.delete", input: LibraryArgs<number>, result: null } |
|
||||
{ key: "files.deleteFiles", input: LibraryArgs<FileDeleterJobInit>, result: null } |
|
||||
{ key: "files.duplicateFiles", input: LibraryArgs<FileCopierJobInit>, result: null } |
|
||||
{ key: "files.encryptFiles", input: LibraryArgs<FileEncryptorJobInit>, result: null } |
|
||||
{ key: "files.eraseFiles", input: LibraryArgs<FileEraserJobInit>, result: null } |
|
||||
{ key: "files.setFavorite", input: LibraryArgs<SetFavoriteArgs>, result: null } |
|
||||
|
@ -216,7 +79,6 @@ export type Procedures = {
|
|||
subscriptions:
|
||||
{ key: "invalidateQuery", input: never, result: InvalidateOperationEvent } |
|
||||
{ key: "jobs.newThumbnail", input: LibraryArgs<null>, result: string }
|
||||
>>>>>>> main
|
||||
};
|
||||
|
||||
export type Algorithm = "XChaCha20Poly1305" | "Aes256Gcm"
|
||||
|
@ -237,32 +99,11 @@ export interface ExplorerData { context: ExplorerContext, items: Array<ExplorerI
|
|||
|
||||
export type ExplorerItem = { type: "Path" } & FilePathWithObject | { type: "Object" } & ObjectWithFilePaths
|
||||
|
||||
<<<<<<< HEAD
|
||||
export interface FileCopierJobInit {
|
||||
source_location_id: number;
|
||||
source_path_id: number;
|
||||
target_location_id: number;
|
||||
target_path: string;
|
||||
target_file_name_suffix: string | null;
|
||||
}
|
||||
export interface FileCopierJobInit { source_location_id: number, source_path_id: number, target_location_id: number, target_path: string, target_file_name_suffix: string | null }
|
||||
|
||||
export interface FileCutterJobInit {
|
||||
source_location_id: number;
|
||||
source_path_id: number;
|
||||
target_location_id: number;
|
||||
target_path: string;
|
||||
}
|
||||
export interface FileCutterJobInit { source_location_id: number, source_path_id: number, target_location_id: number, target_path: string }
|
||||
|
||||
export interface FileDecryptorJobInit {
|
||||
location_id: number;
|
||||
path_id: number;
|
||||
output_path: string | null;
|
||||
password: string | null;
|
||||
save_to_library: boolean | null;
|
||||
}
|
||||
=======
|
||||
export interface FileDecryptorJobInit { location_id: number, path_id: number, output_path: string | null, password: string | null, save_to_library: boolean | null }
|
||||
>>>>>>> main
|
||||
|
||||
export interface FileDeleterJobInit { location_id: number, path_id: number }
|
||||
|
||||
|
@ -270,7 +111,7 @@ export interface FileEncryptorJobInit { location_id: number, path_id: number, ke
|
|||
|
||||
export interface FileEraserJobInit { location_id: number, path_id: number, passes: number }
|
||||
|
||||
export interface FilePath { id: number, is_dir: boolean, location_id: number, materialized_path: string, name: string, extension: string | null, object_id: number | null, parent_id: number | null, key_id: number | null, date_created: string, date_modified: string, date_indexed: string }
|
||||
export interface FilePath { id: number, is_dir: boolean, location_id: number, materialized_path: string, name: string, extension: string | null, object_id: number | null, parent_id: number | null, key_id: number | null, pending: boolean, date_created: string, date_modified: string, date_indexed: string }
|
||||
|
||||
export interface GenerateThumbsForLocationArgs { id: number, path: string }
|
||||
|
||||
|
@ -356,6 +197,6 @@ export interface TagUpdateArgs { id: number, name: string | null, color: string
|
|||
|
||||
export interface Volume { name: string, mount_point: string, total_capacity: bigint, available_capacity: bigint, is_removable: boolean, disk_type: string | null, file_system: string | null, is_root_filesystem: boolean }
|
||||
|
||||
export interface FilePathWithObject { id: number, is_dir: boolean, location_id: number, materialized_path: string, name: string, extension: string | null, object_id: number | null, parent_id: number | null, key_id: number | null, date_created: string, date_modified: string, date_indexed: string, object: Object | null }
|
||||
export interface FilePathWithObject { id: number, is_dir: boolean, location_id: number, materialized_path: string, name: string, extension: string | null, object_id: number | null, parent_id: number | null, key_id: number | null, pending: boolean, date_created: string, date_modified: string, date_indexed: string, object: Object | null }
|
||||
|
||||
export interface ObjectWithFilePaths { id: number, cas_id: string, integrity_checksum: string | null, name: string | null, extension: string | null, kind: number, size_in_bytes: string, key_id: number | null, hidden: boolean, favorite: boolean, important: boolean, has_thumbnail: boolean, has_thumbstrip: boolean, has_video_preview: boolean, ipfs_id: string | null, note: string | null, date_created: string, date_modified: string, date_indexed: string, file_paths: Array<FilePath> }
|
||||
|
|
Loading…
Reference in a new issue