mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-18 21:36:56 -04:00
Update schema and deps
This commit is contained in:
BIN
Cargo.lock
generated
BIN
Cargo.lock
generated
Binary file not shown.
@@ -20,7 +20,7 @@ rust-version = "1.80"
|
||||
|
||||
[workspace.dependencies]
|
||||
# First party dependencies
|
||||
sd-cloud-schema = { git = "https://github.com/spacedriveapp/cloud-services-schema", rev = "fc4b6edabd" }
|
||||
sd-cloud-schema = { git = "https://github.com/spacedriveapp/cloud-services-schema", rev = "ed37fb537b" }
|
||||
|
||||
# Third party dependencies used by one or more of our crates
|
||||
async-channel = "2.3"
|
||||
|
||||
@@ -36,13 +36,12 @@ uuid = { workspace = true, features = ["serde"] }
|
||||
zeroize = { workspace = true }
|
||||
|
||||
# External dependencies
|
||||
anyhow = "1.0.86"
|
||||
iroh-base = { version = "0.25", features = ["key"] }
|
||||
iroh-net = { version = "0.25", features = ["discovery-local-network", "iroh-relay"] }
|
||||
paste = "=1.0.15"
|
||||
postcard = { version = "1.0.8", features = ["use-std"] }
|
||||
quic-rpc = { version = "0.12.0", features = ["quinn-transport"] }
|
||||
quinn = { package = "iroh-quinn", version = "0.11" }
|
||||
anyhow = "1.0.86"
|
||||
iroh-net = { version = "0.26", features = ["discovery-local-network", "iroh-relay"] }
|
||||
paste = "=1.0.15"
|
||||
postcard = { version = "1.0.8", features = ["use-std"] }
|
||||
quic-rpc = { version = "0.12.1", features = ["quinn-transport"] }
|
||||
quinn = { package = "iroh-quinn", version = "0.11" }
|
||||
# Using whatever version of reqwest that reqwest-middleware uses, just putting here to enable some features
|
||||
reqwest = { version = "0.12", features = ["json", "native-tls-vendored", "stream"] }
|
||||
reqwest-middleware = { version = "0.3", features = ["json"] }
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
use crate::Error;
|
||||
|
||||
use sd_cloud_schema::sync::{groups, KeyHash};
|
||||
use sd_cloud_schema::{
|
||||
sync::{groups, KeyHash},
|
||||
NodeId, SecretKey as IrohSecretKey,
|
||||
};
|
||||
use sd_crypto::{
|
||||
cloud::{decrypt, encrypt, secret_key::SecretKey},
|
||||
primitives::{EncryptedBlock, OneShotNonce, StreamNonce},
|
||||
@@ -16,7 +19,6 @@ use std::{
|
||||
};
|
||||
|
||||
use futures::StreamExt;
|
||||
use iroh_base::key::{NodeId, SecretKey as IrohSecretKey};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use tokio::{
|
||||
fs,
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
use crate::Error;
|
||||
|
||||
use sd_cloud_schema::sync::{groups, KeyHash};
|
||||
use sd_cloud_schema::{
|
||||
sync::{groups, KeyHash},
|
||||
NodeId, SecretKey as IrohSecretKey,
|
||||
};
|
||||
use sd_crypto::{cloud::secret_key::SecretKey, CryptoRng};
|
||||
use sd_utils::error::FileIOError;
|
||||
|
||||
@@ -9,7 +12,6 @@ use std::{
|
||||
path::{Path, PathBuf},
|
||||
};
|
||||
|
||||
use iroh_base::key::{NodeId, SecretKey as IrohSecretKey};
|
||||
use tokio::{fs, sync::RwLock};
|
||||
|
||||
mod key_store;
|
||||
|
||||
@@ -48,7 +48,6 @@ pub use sync::{
|
||||
};
|
||||
|
||||
// Re-exports
|
||||
pub use iroh_base::key::{NodeId, SecretKey as IrohSecretKey};
|
||||
pub use quic_rpc::transport::quinn::QuinnConnection;
|
||||
|
||||
// Export URL for the auth server
|
||||
|
||||
@@ -5,10 +5,10 @@ use sd_cloud_schema::{
|
||||
devices::{self, Device},
|
||||
libraries,
|
||||
sync::groups::GroupWithDevices,
|
||||
SecretKey as IrohSecretKey,
|
||||
};
|
||||
use sd_crypto::{CryptoRng, SeedableRng};
|
||||
|
||||
use iroh_base::key::SecretKey as IrohSecretKey;
|
||||
use iroh_net::{
|
||||
discovery::{
|
||||
dns::DnsDiscovery, local_swarm_discovery::LocalSwarmDiscovery, pkarr::dht::DhtDiscovery,
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
use crate::api::{Ctx, R};
|
||||
|
||||
use sd_core_cloud_services::QuinnConnection;
|
||||
|
||||
use sd_cloud_schema::{
|
||||
auth::AccessToken,
|
||||
devices::{self, DeviceOS, HardwareModel, PubId},
|
||||
@@ -8,9 +10,8 @@ use sd_cloud_schema::{
|
||||
ClientRegistration, ClientRegistrationFinishParameters, ClientRegistrationFinishResult,
|
||||
ClientRegistrationStartResult,
|
||||
},
|
||||
Client, Service, SpacedriveCipherSuite,
|
||||
Client, NodeId, Service, SpacedriveCipherSuite,
|
||||
};
|
||||
use sd_core_cloud_services::{NodeId, QuinnConnection};
|
||||
use sd_crypto::{cloud::secret_key::SecretKey, CryptoRng};
|
||||
|
||||
use blake3::Hash;
|
||||
|
||||
@@ -4,13 +4,13 @@ use crate::{
|
||||
Node,
|
||||
};
|
||||
|
||||
use sd_core_cloud_services::{CloudP2P, IrohSecretKey, KeyManager, QuinnConnection, UserResponse};
|
||||
use sd_core_cloud_services::{CloudP2P, KeyManager, QuinnConnection, UserResponse};
|
||||
|
||||
use sd_cloud_schema::{
|
||||
auth,
|
||||
error::{ClientSideError, Error},
|
||||
sync::groups,
|
||||
users, Client, Service,
|
||||
users, Client, SecretKey as IrohSecretKey, Service,
|
||||
};
|
||||
use sd_crypto::{CryptoRng, SeedableRng};
|
||||
use sd_utils::error::report_error;
|
||||
|
||||
2
packages/client/src/core.ts
generated
2
packages/client/src/core.ts
generated
@@ -216,7 +216,7 @@ export type CloudSyncGroupBaseData = { pub_id: CloudSyncGroupPubId; latest_key_h
|
||||
|
||||
export type CloudSyncGroupGetRequestKind = "WithDevices" | "FullData"
|
||||
|
||||
export type CloudSyncGroupGetResponseKind = { WithDevices: CloudSyncGroupWithLibraryAndDevices } | { FullData: CloudSyncGroup }
|
||||
export type CloudSyncGroupGetResponseKind = { kind: "WithDevices"; data: CloudSyncGroupWithLibraryAndDevices } | { kind: "FullData"; data: CloudSyncGroup }
|
||||
|
||||
export type CloudSyncGroupPubId = string
|
||||
|
||||
|
||||
Reference in New Issue
Block a user