cloud_api_types: Add more data to the GetAuthenticatedUserResponse
(#35384)
This PR adds more data to the `GetAuthenticatedUserResponse`. We now return more information about the authenticated user, as well as their plan information. Release Notes: - N/A
This commit is contained in:
parent
3d8a3a4574
commit
4d229f84d7
5 changed files with 204 additions and 2 deletions
|
@ -308,13 +308,13 @@ pub struct GetSubscriptionResponse {
|
|||
pub usage: Option<CurrentUsage>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
#[derive(Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct CurrentUsage {
|
||||
pub model_requests: UsageData,
|
||||
pub edit_predictions: UsageData,
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
#[derive(Debug, PartialEq, Serialize, Deserialize)]
|
||||
pub struct UsageData {
|
||||
pub used: u32,
|
||||
pub limit: UsageLimit,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue