Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions crates/api-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -688,13 +688,14 @@ pub struct ClientInfo {
#[ts(export)]
pub struct ServiceSettings {
/// Service settings owned by the user
#[ts(optional)]
pub user: Option<String>,
#[ts(type = "object", optional)]
pub user: Option<Value>,
/// Service settings owned by a group in which the user is a member
#[ts(optional)]
pub member: Option<String>,
#[ts(type = "object", optional)]
pub member: Option<Value>,
/// Service settings owned by a groups created by the user
pub groups: HashMap<GroupId, String>,
#[ts(type = "object")]
pub groups: HashMap<GroupId, Value>,
}

/// Send message request (for authorized services)
Expand Down
2 changes: 1 addition & 1 deletion crates/cloud-common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub struct User {
pub created_at: DateTime,
pub linked_accounts: Vec<LinkedAccount>,
pub services_hosts: Option<Vec<ServiceHost>>,
pub service_settings: HashMap<String, String>,
pub service_settings: HashMap<String, Value>,
}

impl User {
Expand Down