diff --git a/docs/Group.md b/docs/Group.md index 3361c779..825ad8fb 100644 --- a/docs/Group.md +++ b/docs/Group.md @@ -22,9 +22,9 @@ Name | Type | Description | Notes **member_count_synced_at** | **datetime** | | [optional] **is_verified** | **bool** | | [optional] [default to False] **join_state** | [**GroupJoinState**](GroupJoinState.md) | | [optional] -**tags** | **list[str]** | | [optional] +**tags** | **list[str]** | | [optional] **transfer_target_id** | **str** | 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] -**galleries** | [**list[GroupGallery]**](GroupGallery.md) | | [optional] +**galleries** | [**list[GroupGallery]**](GroupGallery.md) | | [optional] **created_at** | **datetime** | | [optional] **updated_at** | **datetime** | | [optional] **last_post_created_at** | **datetime** | | [optional] diff --git a/docs/UserExists.md b/docs/UserExists.md index 339b5cd8..e8d6464e 100644 --- a/docs/UserExists.md +++ b/docs/UserExists.md @@ -6,6 +6,7 @@ Status object representing if a queried user by username or userId exists or not Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **user_exists** | **bool** | Status if a user exist with that username or userId. | [default to False] +**name_ok** | **bool** | Is the username valid? | [default to False] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/UserSubscription.md b/docs/UserSubscription.md index 2f80572a..3474550a 100644 --- a/docs/UserSubscription.md +++ b/docs/UserSubscription.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **tier** | **float** | | **active** | **bool** | | [default to True] **status** | [**TransactionStatus**](TransactionStatus.md) | | -**starts** | **datetime** | | [optional] +**starts** | **str** | | [optional] **expires** | **datetime** | | **created_at** | **datetime** | | **updated_at** | **datetime** | | diff --git a/package-lock.json b/package-lock.json index 537f8838..9abfd703 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@openapitools/openapi-generator-cli": "^2.13.4" + "@openapitools/openapi-generator-cli": "^2.13.5" } }, "node_modules/@lukeed/csprng": { @@ -109,16 +109,16 @@ } }, "node_modules/@openapitools/openapi-generator-cli": { - "version": "2.13.4", - "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.13.4.tgz", - "integrity": "sha512-4JKyrk55ohQK2FcuZbPdNvxdyXD14jjOIvE8hYjJ+E1cHbRbfXQXbYnjTODFE52Gx8eAxz8C9icuhDYDLn7nww==", + "version": "2.13.5", + "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.13.5.tgz", + "integrity": "sha512-9VgeKOTiiatKSwZDKKB3C86cW8tN9eDcFohotD4eisdK38UQswk/4Ysoq9KChRCbymjoMp6AIDHPtK1DQ2fTgw==", "hasInstallScript": true, "dependencies": { "@nestjs/axios": "3.0.2", "@nestjs/common": "10.3.0", "@nestjs/core": "10.3.0", "@nuxtjs/opencollective": "0.3.2", - "axios": "1.6.8", + "axios": "1.7.4", "chalk": "4.1.2", "commander": "8.3.0", "compare-versions": "4.1.4", @@ -197,9 +197,9 @@ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "node_modules/axios": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz", - "integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==", + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz", + "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==", "dependencies": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", @@ -1267,15 +1267,15 @@ } }, "@openapitools/openapi-generator-cli": { - "version": "2.13.4", - "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.13.4.tgz", - "integrity": "sha512-4JKyrk55ohQK2FcuZbPdNvxdyXD14jjOIvE8hYjJ+E1cHbRbfXQXbYnjTODFE52Gx8eAxz8C9icuhDYDLn7nww==", + "version": "2.13.5", + "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.13.5.tgz", + "integrity": "sha512-9VgeKOTiiatKSwZDKKB3C86cW8tN9eDcFohotD4eisdK38UQswk/4Ysoq9KChRCbymjoMp6AIDHPtK1DQ2fTgw==", "requires": { "@nestjs/axios": "3.0.2", "@nestjs/common": "10.3.0", "@nestjs/core": "10.3.0", "@nuxtjs/opencollective": "0.3.2", - "axios": "1.6.8", + "axios": "1.7.4", "chalk": "4.1.2", "commander": "8.3.0", "compare-versions": "4.1.4", @@ -1326,9 +1326,9 @@ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "axios": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz", - "integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==", + "version": "1.7.4", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.4.tgz", + "integrity": "sha512-DukmaFRnY6AzAALSH4J2M3k6PkaC+MfaAGdEERRWcC9q3/TWQwLpHR8ZRLKTdQ3aBDL64EdluRDjJqKw+BPZEw==", "requires": { "follow-redirects": "^1.15.6", "form-data": "^4.0.0", diff --git a/package.json b/package.json index 1383dec7..b3ec07c5 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { "dependencies": { - "@openapitools/openapi-generator-cli": "^2.13.4" + "@openapitools/openapi-generator-cli": "^2.13.5" } } diff --git a/vrchatapi/models/group.py b/vrchatapi/models/group.py index 4b3190b5..408dd6ba 100644 --- a/vrchatapi/models/group.py +++ b/vrchatapi/models/group.py @@ -174,8 +174,7 @@ def __init__(self, id=None, name=None, short_code=None, discriminator=None, desc self.created_at = created_at if updated_at is not None: self.updated_at = updated_at - if last_post_created_at is not None: - self.last_post_created_at = last_post_created_at + self.last_post_created_at = last_post_created_at if online_member_count is not None: self.online_member_count = online_member_count if membership_status is not None: @@ -568,7 +567,6 @@ def join_state(self, join_state): def tags(self): """Gets the tags of this Group. # noqa: E501 - # noqa: E501 :return: The tags of this Group. # noqa: E501 :rtype: list[str] @@ -579,7 +577,6 @@ def tags(self): def tags(self, tags): """Sets the tags of this Group. - # noqa: E501 :param tags: The tags of this Group. # noqa: E501 :type tags: list[str] @@ -614,7 +611,6 @@ def transfer_target_id(self, transfer_target_id): def galleries(self): """Gets the galleries of this Group. # noqa: E501 - # noqa: E501 :return: The galleries of this Group. # noqa: E501 :rtype: list[GroupGallery] @@ -625,7 +621,6 @@ def galleries(self): def galleries(self, galleries): """Sets the galleries of this Group. - # noqa: E501 :param galleries: The galleries of this Group. # noqa: E501 :type galleries: list[GroupGallery] diff --git a/vrchatapi/models/group_my_member.py b/vrchatapi/models/group_my_member.py index a118ef8b..f71e5d69 100644 --- a/vrchatapi/models/group_my_member.py +++ b/vrchatapi/models/group_my_member.py @@ -114,8 +114,7 @@ def __init__(self, id=None, group_id=None, user_id=None, role_ids=None, accepted self.user_id = user_id if role_ids is not None: self.role_ids = role_ids - if accepted_by_display_name is not None: - self.accepted_by_display_name = accepted_by_display_name + self.accepted_by_display_name = accepted_by_display_name if accepted_by_id is not None: self.accepted_by_id = accepted_by_id if created_at is not None: @@ -137,8 +136,7 @@ def __init__(self, id=None, group_id=None, user_id=None, role_ids=None, accepted self.has2_fa = has2_fa if has_joined_from_purchase is not None: self.has_joined_from_purchase = has_joined_from_purchase - if last_post_read_at is not None: - self.last_post_read_at = last_post_read_at + self.last_post_read_at = last_post_read_at if m_role_ids is not None: self.m_role_ids = m_role_ids if permissions is not None: diff --git a/vrchatapi/models/instance_region.py b/vrchatapi/models/instance_region.py index ef27b73e..90fd11f0 100644 --- a/vrchatapi/models/instance_region.py +++ b/vrchatapi/models/instance_region.py @@ -35,8 +35,9 @@ class InstanceRegion(object): USE = "use" EU = "eu" JP = "jp" + UNKNOWN = "unknown" - allowable_values = [US, USE, EU, JP] # noqa: E501 + allowable_values = [US, USE, EU, JP, UNKNOWN] # noqa: E501 """ Attributes: diff --git a/vrchatapi/models/user_exists.py b/vrchatapi/models/user_exists.py index 92cf249b..9b9989aa 100644 --- a/vrchatapi/models/user_exists.py +++ b/vrchatapi/models/user_exists.py @@ -36,23 +36,27 @@ class UserExists(object): and the value is json key in definition. """ openapi_types = { - 'user_exists': 'bool' + 'user_exists': 'bool', + 'name_ok': 'bool' } attribute_map = { - 'user_exists': 'userExists' + 'user_exists': 'userExists', + 'name_ok': 'nameOk' } - def __init__(self, user_exists=False, local_vars_configuration=None): # noqa: E501 + def __init__(self, user_exists=False, name_ok=False, local_vars_configuration=None): # noqa: E501 """UserExists - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration.get_default_copy() self.local_vars_configuration = local_vars_configuration self._user_exists = None + self._name_ok = None self.discriminator = None self.user_exists = user_exists + self.name_ok = name_ok @property def user_exists(self): @@ -79,6 +83,31 @@ def user_exists(self, user_exists): self._user_exists = user_exists + @property + def name_ok(self): + """Gets the name_ok of this UserExists. # noqa: E501 + + Is the username valid? # noqa: E501 + + :return: The name_ok of this UserExists. # noqa: E501 + :rtype: bool + """ + return self._name_ok + + @name_ok.setter + def name_ok(self, name_ok): + """Sets the name_ok of this UserExists. + + Is the username valid? # noqa: E501 + + :param name_ok: The name_ok of this UserExists. # noqa: E501 + :type name_ok: bool + """ + if self.local_vars_configuration.client_side_validation and name_ok is None: # noqa: E501 + raise ValueError("Invalid value for `name_ok`, must not be `None`") # noqa: E501 + + self._name_ok = name_ok + def to_dict(self, serialize=False): """Returns the model properties as a dict""" result = {} diff --git a/vrchatapi/models/user_subscription.py b/vrchatapi/models/user_subscription.py index 5004ceec..3c64f8ee 100644 --- a/vrchatapi/models/user_subscription.py +++ b/vrchatapi/models/user_subscription.py @@ -46,7 +46,7 @@ class UserSubscription(object): 'tier': 'float', 'active': 'bool', 'status': 'TransactionStatus', - 'starts': 'datetime', + 'starts': 'str', 'expires': 'datetime', 'created_at': 'datetime', 'updated_at': 'datetime', @@ -361,7 +361,7 @@ def starts(self): :return: The starts of this UserSubscription. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._starts @@ -371,7 +371,7 @@ def starts(self, starts): :param starts: The starts of this UserSubscription. # noqa: E501 - :type starts: datetime + :type starts: str """ self._starts = starts