Skip to content

Commit a0c6ed9

Browse files
committed
Upgrade Rust SDK to spec 1.18.1
1 parent 81b7d01 commit a0c6ed9

9 files changed

Lines changed: 34 additions & 25 deletions

File tree

docs/Group.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ Name | Type | Description | Notes
2222
**member_count_synced_at** | Option<**String**> | | [optional]
2323
**is_verified** | Option<**bool**> | | [optional][default to false]
2424
**join_state** | Option<[**models::GroupJoinState**](GroupJoinState.md)> | | [optional]
25-
**tags** | Option<**Vec<String>**> | | [optional]
25+
**tags** | Option<**Vec<String>**> | | [optional]
2626
**transfer_target_id** | Option<**String**> | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional]
27-
**galleries** | Option<[**Vec<models::GroupGallery>**](GroupGallery.md)> | | [optional]
27+
**galleries** | Option<[**Vec<models::GroupGallery>**](GroupGallery.md)> | | [optional]
2828
**created_at** | Option<**String**> | | [optional]
2929
**updated_at** | Option<**String**> | | [optional]
3030
**last_post_created_at** | Option<**String**> | | [optional]

docs/InstanceRegion.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
| Use | use |
99
| Eu | eu |
1010
| Jp | jp |
11+
| Unknown | unknown |
1112

1213

1314
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/UserExists.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**user_exists** | **bool** | Status if a user exist with that username or userId. | [default to false]
8+
**name_ok** | **bool** | Is the username valid? | [default to false]
89

910
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1011

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"dependencies": {
3-
"@openapitools/openapi-generator-cli": "^2.13.4"
3+
"@openapitools/openapi-generator-cli": "^2.13.5"
44
}
55
}

src/models/group.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ pub struct Group {
5959
pub created_at: Option<String>,
6060
#[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
6161
pub updated_at: Option<String>,
62-
#[serde(rename = "lastPostCreatedAt", skip_serializing_if = "Option::is_none")]
63-
pub last_post_created_at: Option<String>,
62+
#[serde(rename = "lastPostCreatedAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
63+
pub last_post_created_at: Option<Option<String>>,
6464
#[serde(rename = "onlineMemberCount", skip_serializing_if = "Option::is_none")]
6565
pub online_member_count: Option<i32>,
6666
#[serde(rename = "membershipStatus", skip_serializing_if = "Option::is_none")]

src/models/group_my_member.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ pub struct GroupMyMember {
2020
pub user_id: Option<String>,
2121
#[serde(rename = "roleIds", skip_serializing_if = "Option::is_none")]
2222
pub role_ids: Option<Vec<String>>,
23-
#[serde(rename = "acceptedByDisplayName", skip_serializing_if = "Option::is_none")]
24-
pub accepted_by_display_name: Option<String>,
23+
#[serde(rename = "acceptedByDisplayName", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
24+
pub accepted_by_display_name: Option<Option<String>>,
2525
/// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.
2626
#[serde(rename = "acceptedById", skip_serializing_if = "Option::is_none")]
2727
pub accepted_by_id: Option<String>,
@@ -45,8 +45,8 @@ pub struct GroupMyMember {
4545
pub has2_fa: Option<bool>,
4646
#[serde(rename = "hasJoinedFromPurchase", skip_serializing_if = "Option::is_none")]
4747
pub has_joined_from_purchase: Option<bool>,
48-
#[serde(rename = "lastPostReadAt", skip_serializing_if = "Option::is_none")]
49-
pub last_post_read_at: Option<String>,
48+
#[serde(rename = "lastPostReadAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
49+
pub last_post_read_at: Option<Option<String>>,
5050
#[serde(rename = "mRoleIds", skip_serializing_if = "Option::is_none")]
5151
pub m_role_ids: Option<Vec<String>>,
5252
#[serde(rename = "permissions", skip_serializing_if = "Option::is_none")]

src/models/instance_region.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ pub enum InstanceRegion {
2121
Eu,
2222
#[serde(rename = "jp")]
2323
Jp,
24+
#[serde(rename = "unknown")]
25+
Unknown,
2426

2527
}
2628

@@ -31,6 +33,7 @@ impl std::fmt::Display for InstanceRegion {
3133
Self::Use => write!(f, "use"),
3234
Self::Eu => write!(f, "eu"),
3335
Self::Jp => write!(f, "jp"),
36+
Self::Unknown => write!(f, "unknown"),
3437
}
3538
}
3639
}

src/models/user_exists.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ pub struct UserExists {
1515
/// Status if a user exist with that username or userId.
1616
#[serde(rename = "userExists")]
1717
pub user_exists: bool,
18+
/// Is the username valid?
19+
#[serde(rename = "nameOk")]
20+
pub name_ok: bool,
1821
}
1922

2023
impl UserExists {
2124
/// Status object representing if a queried user by username or userId exists or not. This model is primarily used by the `/auth/exists` endpoint, which in turn is used during registration. Please see the documentation on that endpoint for more information on usage.
22-
pub fn new(user_exists: bool) -> UserExists {
25+
pub fn new(user_exists: bool, name_ok: bool) -> UserExists {
2326
UserExists {
2427
user_exists,
28+
name_ok,
2529
}
2630
}
2731
}

0 commit comments

Comments
 (0)