vrchatapi-async 1.20.8.dev1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- vrchatapi/__init__.py +742 -0
- vrchatapi/api/__init__.py +23 -0
- vrchatapi/api/authentication_api.py +6253 -0
- vrchatapi/api/avatars_api.py +4234 -0
- vrchatapi/api/calendar_api.py +4090 -0
- vrchatapi/api/economy_api.py +11547 -0
- vrchatapi/api/favorites_api.py +2368 -0
- vrchatapi/api/files_api.py +6109 -0
- vrchatapi/api/friends_api.py +1708 -0
- vrchatapi/api/groups_api.py +15085 -0
- vrchatapi/api/instances_api.py +1754 -0
- vrchatapi/api/inventory_api.py +4333 -0
- vrchatapi/api/invite_api.py +3337 -0
- vrchatapi/api/jams_api.py +1446 -0
- vrchatapi/api/miscellaneous_api.py +2384 -0
- vrchatapi/api/notifications_api.py +3624 -0
- vrchatapi/api/playermoderation_api.py +1127 -0
- vrchatapi/api/prints_api.py +1478 -0
- vrchatapi/api/props_api.py +2269 -0
- vrchatapi/api/users_api.py +7894 -0
- vrchatapi/api/worlds_api.py +6153 -0
- vrchatapi/api_client.py +865 -0
- vrchatapi/api_response.py +21 -0
- vrchatapi/configuration.py +686 -0
- vrchatapi/exceptions.py +218 -0
- vrchatapi/models/__init__.py +345 -0
- vrchatapi/models/account_deletion_log.py +253 -0
- vrchatapi/models/add_favorite_request.py +246 -0
- vrchatapi/models/add_group_gallery_image_request.py +234 -0
- vrchatapi/models/admin_asset_bundle.py +337 -0
- vrchatapi/models/admin_unity_package.py +261 -0
- vrchatapi/models/age_verification_status.py +38 -0
- vrchatapi/models/agreement.py +280 -0
- vrchatapi/models/agreement_code.py +36 -0
- vrchatapi/models/agreement_request.py +256 -0
- vrchatapi/models/agreement_status.py +261 -0
- vrchatapi/models/api_config.py +1299 -0
- vrchatapi/models/api_config_access_logs_urls.py +258 -0
- vrchatapi/models/api_config_announcement.py +217 -0
- vrchatapi/models/api_config_audio_config.py +311 -0
- vrchatapi/models/api_config_avatar_perf_limiter.py +293 -0
- vrchatapi/models/api_config_constants.py +262 -0
- vrchatapi/models/api_config_constants_groups.py +306 -0
- vrchatapi/models/api_config_constants_instance.py +238 -0
- vrchatapi/models/api_config_constants_instancepopulationbrackets.py +262 -0
- vrchatapi/models/api_config_constants_instancepopulationbracketscrowded.py +216 -0
- vrchatapi/models/api_config_constants_instancepopulationbracketsfew.py +216 -0
- vrchatapi/models/api_config_constants_instancepopulationbracketsmany.py +216 -0
- vrchatapi/models/api_config_constants_language.py +234 -0
- vrchatapi/models/api_config_download_url_list.py +258 -0
- vrchatapi/models/api_config_events.py +314 -0
- vrchatapi/models/api_config_ios_version.py +216 -0
- vrchatapi/models/api_config_min_supported_client_build_number.py +348 -0
- vrchatapi/models/api_config_offline_analysis.py +216 -0
- vrchatapi/models/api_health.py +248 -0
- vrchatapi/models/avatar.py +463 -0
- vrchatapi/models/avatar_moderation.py +249 -0
- vrchatapi/models/avatar_moderation_created.py +248 -0
- vrchatapi/models/avatar_moderation_type.py +36 -0
- vrchatapi/models/avatar_performance.py +265 -0
- vrchatapi/models/avatar_published_listings_inner.py +271 -0
- vrchatapi/models/avatar_style.py +239 -0
- vrchatapi/models/avatar_styles.py +231 -0
- vrchatapi/models/avatar_unity_package_url_object.py +234 -0
- vrchatapi/models/badge.py +308 -0
- vrchatapi/models/balance.py +247 -0
- vrchatapi/models/ban_group_member_request.py +234 -0
- vrchatapi/models/boop_request.py +250 -0
- vrchatapi/models/calendar_day_of_week.py +42 -0
- vrchatapi/models/calendar_event.py +475 -0
- vrchatapi/models/calendar_event_access.py +37 -0
- vrchatapi/models/calendar_event_category.py +48 -0
- vrchatapi/models/calendar_event_discovery.py +247 -0
- vrchatapi/models/calendar_event_discovery_inclusion.py +38 -0
- vrchatapi/models/calendar_event_discovery_scope.py +38 -0
- vrchatapi/models/calendar_event_frequency.py +39 -0
- vrchatapi/models/calendar_event_occurrence_kind.py +38 -0
- vrchatapi/models/calendar_event_platform.py +38 -0
- vrchatapi/models/calendar_event_recurrence.py +261 -0
- vrchatapi/models/calendar_event_recurrence_end.py +246 -0
- vrchatapi/models/calendar_event_recurrence_end_type.py +37 -0
- vrchatapi/models/calendar_event_user_interest.py +251 -0
- vrchatapi/models/change_user_tags_request.py +212 -0
- vrchatapi/models/change_world_tags_request.py +212 -0
- vrchatapi/models/content_filter.py +40 -0
- vrchatapi/models/create_avatar_moderation_request.py +243 -0
- vrchatapi/models/create_avatar_request.py +324 -0
- vrchatapi/models/create_calendar_event_request.py +385 -0
- vrchatapi/models/create_file_request.py +251 -0
- vrchatapi/models/create_file_version_request.py +259 -0
- vrchatapi/models/create_group_announcement_request.py +253 -0
- vrchatapi/models/create_group_gallery_request.py +297 -0
- vrchatapi/models/create_group_invite_request.py +242 -0
- vrchatapi/models/create_group_post_request.py +267 -0
- vrchatapi/models/create_group_request.py +295 -0
- vrchatapi/models/create_group_role_request.py +255 -0
- vrchatapi/models/create_instance_request.py +384 -0
- vrchatapi/models/create_jam_submission_request.py +239 -0
- vrchatapi/models/create_listing_request.py +285 -0
- vrchatapi/models/create_product_request.py +270 -0
- vrchatapi/models/create_prop_request.py +308 -0
- vrchatapi/models/create_world_request.py +322 -0
- vrchatapi/models/current_user.py +909 -0
- vrchatapi/models/current_user_platform_history_inner.py +245 -0
- vrchatapi/models/current_user_presence.py +379 -0
- vrchatapi/models/decline_group_invite_request.py +211 -0
- vrchatapi/models/developer_type.py +39 -0
- vrchatapi/models/disable2_fa_result.py +211 -0
- vrchatapi/models/discord_details.py +216 -0
- vrchatapi/models/dynamic_content_row.py +276 -0
- vrchatapi/models/earnings_metrics.py +248 -0
- vrchatapi/models/earnings_metrics_totals.py +267 -0
- vrchatapi/models/economy_account.py +360 -0
- vrchatapi/models/economy_balances.py +221 -0
- vrchatapi/models/economy_payout.py +385 -0
- vrchatapi/models/economy_payout_eligibility.py +263 -0
- vrchatapi/models/economy_payout_list.py +219 -0
- vrchatapi/models/economy_payout_status.py +295 -0
- vrchatapi/models/equip_inventory_item_request.py +235 -0
- vrchatapi/models/error.py +215 -0
- vrchatapi/models/favorite.py +251 -0
- vrchatapi/models/favorite_group.py +278 -0
- vrchatapi/models/favorite_group_limits.py +249 -0
- vrchatapi/models/favorite_group_visibility.py +38 -0
- vrchatapi/models/favorite_limits.py +265 -0
- vrchatapi/models/favorite_type.py +39 -0
- vrchatapi/models/favorited_world.py +441 -0
- vrchatapi/models/feedback.py +331 -0
- vrchatapi/models/file.py +325 -0
- vrchatapi/models/file_analysis.py +281 -0
- vrchatapi/models/file_analysis_avatar_stats.py +575 -0
- vrchatapi/models/file_data.py +279 -0
- vrchatapi/models/file_status.py +39 -0
- vrchatapi/models/file_upload_url.py +212 -0
- vrchatapi/models/file_version.py +254 -0
- vrchatapi/models/file_version_upload_status.py +269 -0
- vrchatapi/models/finish_file_data_upload_request.py +248 -0
- vrchatapi/models/follow_calendar_event_request.py +234 -0
- vrchatapi/models/friend_status.py +250 -0
- vrchatapi/models/get_group_posts200_response.py +219 -0
- vrchatapi/models/get_user_group_instances200_response.py +248 -0
- vrchatapi/models/group.py +514 -0
- vrchatapi/models/group_access_type.py +38 -0
- vrchatapi/models/group_announcement.py +315 -0
- vrchatapi/models/group_audit_log_entry.py +287 -0
- vrchatapi/models/group_gallery.py +319 -0
- vrchatapi/models/group_gallery_file_order.py +211 -0
- vrchatapi/models/group_gallery_file_order_request.py +239 -0
- vrchatapi/models/group_gallery_image.py +301 -0
- vrchatapi/models/group_instance.py +257 -0
- vrchatapi/models/group_join_request_action.py +37 -0
- vrchatapi/models/group_join_state.py +39 -0
- vrchatapi/models/group_member.py +415 -0
- vrchatapi/models/group_member_limited_user.py +290 -0
- vrchatapi/models/group_member_status.py +41 -0
- vrchatapi/models/group_my_member.py +399 -0
- vrchatapi/models/group_permission.py +260 -0
- vrchatapi/models/group_permissions.py +63 -0
- vrchatapi/models/group_post.py +317 -0
- vrchatapi/models/group_post_visibility.py +37 -0
- vrchatapi/models/group_privacy.py +37 -0
- vrchatapi/models/group_role.py +309 -0
- vrchatapi/models/group_role_template.py +39 -0
- vrchatapi/models/group_role_template_values.py +254 -0
- vrchatapi/models/group_role_template_values_roles.py +253 -0
- vrchatapi/models/group_search_sort.py +37 -0
- vrchatapi/models/group_transferable.py +215 -0
- vrchatapi/models/group_transferable_requirements.py +266 -0
- vrchatapi/models/group_user_visibility.py +38 -0
- vrchatapi/models/image_animation_style.py +62 -0
- vrchatapi/models/image_loop_style.py +37 -0
- vrchatapi/models/image_mask.py +41 -0
- vrchatapi/models/image_purpose.py +46 -0
- vrchatapi/models/info_push.py +306 -0
- vrchatapi/models/info_push_data.py +288 -0
- vrchatapi/models/info_push_data_article.py +215 -0
- vrchatapi/models/info_push_data_article_content.py +251 -0
- vrchatapi/models/info_push_data_clickable.py +224 -0
- vrchatapi/models/instance.py +597 -0
- vrchatapi/models/instance_content_settings.py +236 -0
- vrchatapi/models/instance_platforms.py +222 -0
- vrchatapi/models/instance_region.py +40 -0
- vrchatapi/models/instance_short_name_response.py +248 -0
- vrchatapi/models/instance_type.py +40 -0
- vrchatapi/models/inventory.py +247 -0
- vrchatapi/models/inventory_consumption_results.py +255 -0
- vrchatapi/models/inventory_default_attributes_value.py +243 -0
- vrchatapi/models/inventory_default_attributes_value_validator.py +211 -0
- vrchatapi/models/inventory_drop.py +331 -0
- vrchatapi/models/inventory_equip_slot.py +39 -0
- vrchatapi/models/inventory_flag.py +43 -0
- vrchatapi/models/inventory_item.py +420 -0
- vrchatapi/models/inventory_item_type.py +42 -0
- vrchatapi/models/inventory_metadata.py +287 -0
- vrchatapi/models/inventory_notification_details.py +244 -0
- vrchatapi/models/inventory_spawn.py +216 -0
- vrchatapi/models/inventory_template.py +351 -0
- vrchatapi/models/inventory_user_attributes.py +250 -0
- vrchatapi/models/invite_message.py +276 -0
- vrchatapi/models/invite_message_type.py +39 -0
- vrchatapi/models/invite_request.py +243 -0
- vrchatapi/models/invite_response.py +235 -0
- vrchatapi/models/jam.py +302 -0
- vrchatapi/models/jam_state_change_dates.py +276 -0
- vrchatapi/models/jam_submission.py +275 -0
- vrchatapi/models/join_group_request.py +234 -0
- vrchatapi/models/license.py +261 -0
- vrchatapi/models/license_action.py +37 -0
- vrchatapi/models/license_group.py +235 -0
- vrchatapi/models/license_type.py +39 -0
- vrchatapi/models/limited_group.py +377 -0
- vrchatapi/models/limited_unity_package.py +251 -0
- vrchatapi/models/limited_user_friend.py +399 -0
- vrchatapi/models/limited_user_groups.py +386 -0
- vrchatapi/models/limited_user_instance.py +430 -0
- vrchatapi/models/limited_user_search.py +395 -0
- vrchatapi/models/limited_world.py +410 -0
- vrchatapi/models/mime_type.py +50 -0
- vrchatapi/models/model_print.py +299 -0
- vrchatapi/models/moderate_user_request.py +217 -0
- vrchatapi/models/moderation_report.py +296 -0
- vrchatapi/models/mutual_friend.py +302 -0
- vrchatapi/models/mutuals.py +217 -0
- vrchatapi/models/notification.py +283 -0
- vrchatapi/models/notification_detail_invite.py +250 -0
- vrchatapi/models/notification_detail_invite_response.py +242 -0
- vrchatapi/models/notification_detail_request_invite.py +239 -0
- vrchatapi/models/notification_detail_request_invite_response.py +242 -0
- vrchatapi/models/notification_detail_vote_to_kick.py +242 -0
- vrchatapi/models/notification_type.py +43 -0
- vrchatapi/models/notification_v2.py +466 -0
- vrchatapi/models/notification_v2_details_boop.py +255 -0
- vrchatapi/models/notification_v2_response.py +259 -0
- vrchatapi/models/notification_v2_type.py +58 -0
- vrchatapi/models/ok_status.py +211 -0
- vrchatapi/models/ok_status2.py +234 -0
- vrchatapi/models/order_option.py +37 -0
- vrchatapi/models/order_option_short.py +37 -0
- vrchatapi/models/paginated_calendar_event_list.py +255 -0
- vrchatapi/models/paginated_group_audit_log_entry_list.py +255 -0
- vrchatapi/models/paginated_moderation_report_list.py +255 -0
- vrchatapi/models/past_display_name.py +241 -0
- vrchatapi/models/pending2_fa_result.py +239 -0
- vrchatapi/models/performance_limiter_info.py +234 -0
- vrchatapi/models/performance_ratings.py +41 -0
- vrchatapi/models/permission.py +280 -0
- vrchatapi/models/permission_data.py +258 -0
- vrchatapi/models/platform_build_info.py +242 -0
- vrchatapi/models/player_moderation.py +276 -0
- vrchatapi/models/player_moderation_type.py +44 -0
- vrchatapi/models/print_files.py +239 -0
- vrchatapi/models/private_profile.py +267 -0
- vrchatapi/models/private_profile_activity.py +292 -0
- vrchatapi/models/product.py +389 -0
- vrchatapi/models/product_listing.py +538 -0
- vrchatapi/models/product_listing_type.py +39 -0
- vrchatapi/models/product_listing_variant.py +272 -0
- vrchatapi/models/product_purchase.py +571 -0
- vrchatapi/models/product_purchase_history.py +256 -0
- vrchatapi/models/product_purchase_location_type.py +46 -0
- vrchatapi/models/product_purchase_product.py +269 -0
- vrchatapi/models/product_purchase_purchase_context.py +250 -0
- vrchatapi/models/product_purchase_record.py +312 -0
- vrchatapi/models/product_type.py +39 -0
- vrchatapi/models/profile_represented_group.py +262 -0
- vrchatapi/models/prop.py +358 -0
- vrchatapi/models/prop_publish_status.py +234 -0
- vrchatapi/models/prop_unity_package.py +269 -0
- vrchatapi/models/public_profile.py +398 -0
- vrchatapi/models/purchase_context_data.py +251 -0
- vrchatapi/models/purchase_product_listing_request.py +281 -0
- vrchatapi/models/region.py +42 -0
- vrchatapi/models/register_user_account_request.py +278 -0
- vrchatapi/models/release_status.py +39 -0
- vrchatapi/models/report_category.py +226 -0
- vrchatapi/models/report_reason.py +216 -0
- vrchatapi/models/represented_group.py +348 -0
- vrchatapi/models/request_invite_request.py +235 -0
- vrchatapi/models/respond_group_join_request.py +217 -0
- vrchatapi/models/respond_notification_v2_request.py +242 -0
- vrchatapi/models/response.py +217 -0
- vrchatapi/models/reward_badge.py +308 -0
- vrchatapi/models/reward_redemption.py +220 -0
- vrchatapi/models/reward_redemption_data.py +224 -0
- vrchatapi/models/reward_redemption_request.py +211 -0
- vrchatapi/models/reward_redemption_result.py +250 -0
- vrchatapi/models/search_group_members200_response.py +224 -0
- vrchatapi/models/seller_eligibility.py +211 -0
- vrchatapi/models/sent_notification.py +278 -0
- vrchatapi/models/service_queue_stats.py +234 -0
- vrchatapi/models/service_status.py +281 -0
- vrchatapi/models/share_inventory_item_direct_request.py +239 -0
- vrchatapi/models/sort_option.py +53 -0
- vrchatapi/models/sort_option_product_purchase.py +36 -0
- vrchatapi/models/store.py +372 -0
- vrchatapi/models/store_context.py +249 -0
- vrchatapi/models/store_shelf.py +304 -0
- vrchatapi/models/store_type.py +38 -0
- vrchatapi/models/store_view.py +40 -0
- vrchatapi/models/submit_moderation_report_request.py +263 -0
- vrchatapi/models/submit_moderation_report_request_details.py +283 -0
- vrchatapi/models/subscription.py +301 -0
- vrchatapi/models/subscription_period.py +40 -0
- vrchatapi/models/success.py +215 -0
- vrchatapi/models/success_flag.py +211 -0
- vrchatapi/models/tilia_kyc.py +246 -0
- vrchatapi/models/tilia_status.py +259 -0
- vrchatapi/models/tilia_tos.py +211 -0
- vrchatapi/models/token_bundle.py +286 -0
- vrchatapi/models/transaction.py +322 -0
- vrchatapi/models/transaction_agreement.py +353 -0
- vrchatapi/models/transaction_status.py +39 -0
- vrchatapi/models/transaction_steam_info.py +271 -0
- vrchatapi/models/transaction_steam_wallet_info.py +227 -0
- vrchatapi/models/transfer_group_request.py +234 -0
- vrchatapi/models/tutorial_status.py +255 -0
- vrchatapi/models/two_factor_auth_code.py +211 -0
- vrchatapi/models/two_factor_email_code.py +211 -0
- vrchatapi/models/two_factor_recovery_codes.py +247 -0
- vrchatapi/models/two_factor_recovery_codes_otp_inner.py +216 -0
- vrchatapi/models/unity_package.py +360 -0
- vrchatapi/models/update_asset_review_notes_request.py +234 -0
- vrchatapi/models/update_avatar_request.py +293 -0
- vrchatapi/models/update_calendar_event_request.py +365 -0
- vrchatapi/models/update_favorite_group_request.py +246 -0
- vrchatapi/models/update_group_gallery_request.py +297 -0
- vrchatapi/models/update_group_member_request.py +256 -0
- vrchatapi/models/update_group_representation_request.py +234 -0
- vrchatapi/models/update_group_request.py +300 -0
- vrchatapi/models/update_group_role_request.py +255 -0
- vrchatapi/models/update_inventory_item_request.py +254 -0
- vrchatapi/models/update_invite_message_request.py +211 -0
- vrchatapi/models/update_listing_request.py +211 -0
- vrchatapi/models/update_product_request.py +261 -0
- vrchatapi/models/update_prop_request.py +303 -0
- vrchatapi/models/update_tilia_tos_request.py +211 -0
- vrchatapi/models/update_user_badge_request.py +216 -0
- vrchatapi/models/update_user_note_request.py +239 -0
- vrchatapi/models/update_user_request.py +358 -0
- vrchatapi/models/update_world_request.py +317 -0
- vrchatapi/models/user.py +549 -0
- vrchatapi/models/user_credits_eligible.py +216 -0
- vrchatapi/models/user_exists.py +242 -0
- vrchatapi/models/user_note.py +273 -0
- vrchatapi/models/user_note_target_user.py +277 -0
- vrchatapi/models/user_state.py +38 -0
- vrchatapi/models/user_status.py +40 -0
- vrchatapi/models/user_subscription.py +330 -0
- vrchatapi/models/user_subscription_eligible.py +274 -0
- vrchatapi/models/verify2_fa_email_code_result.py +211 -0
- vrchatapi/models/verify2_fa_result.py +216 -0
- vrchatapi/models/verify_auth_token_result.py +217 -0
- vrchatapi/models/world.py +459 -0
- vrchatapi/models/world_metadata.py +216 -0
- vrchatapi/models/world_publish_status.py +234 -0
- vrchatapi/py.typed +0 -0
- vrchatapi/rest.py +303 -0
- vrchatapi_async-1.20.8.dev1.dist-info/METADATA +137 -0
- vrchatapi_async-1.20.8.dev1.dist-info/RECORD +362 -0
- vrchatapi_async-1.20.8.dev1.dist-info/WHEEL +5 -0
- vrchatapi_async-1.20.8.dev1.dist-info/licenses/LICENSE +21 -0
- vrchatapi_async-1.20.8.dev1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,909 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
VRChat API Documentation
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
The version of the OpenAPI document: 1.20.8
|
|
8
|
+
Contact: vrchatapi.lpv0t@aries.fyi
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from collections.abc import Mapping as _Mapping
|
|
21
|
+
from datetime import date, datetime
|
|
22
|
+
from pydantic import AliasChoices, BaseModel, ConfigDict, Field, StrictBool, StrictStr
|
|
23
|
+
from typing import Any, ClassVar, Dict, List, Optional, cast as _cast
|
|
24
|
+
from typing_extensions import Annotated
|
|
25
|
+
from vrchatapi.models.account_deletion_log import AccountDeletionLog
|
|
26
|
+
from vrchatapi.models.age_verification_status import AgeVerificationStatus
|
|
27
|
+
from vrchatapi.models.badge import Badge
|
|
28
|
+
from vrchatapi.models.current_user_platform_history_inner import CurrentUserPlatformHistoryInner
|
|
29
|
+
from vrchatapi.models.current_user_presence import CurrentUserPresence
|
|
30
|
+
from vrchatapi.models.developer_type import DeveloperType
|
|
31
|
+
from vrchatapi.models.discord_details import DiscordDetails
|
|
32
|
+
from vrchatapi.models.past_display_name import PastDisplayName
|
|
33
|
+
from vrchatapi.models.user_state import UserState
|
|
34
|
+
from vrchatapi.models.user_status import UserStatus
|
|
35
|
+
from typing import Optional, Set
|
|
36
|
+
from typing_extensions import Self
|
|
37
|
+
from pydantic_core import to_jsonable_python
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict"
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def _get_openapi_to_dict(value: Any) -> Any:
|
|
44
|
+
# Reciprocal function references preserve inherited generated methods
|
|
45
|
+
# without reserving model member names. Checking both directions also
|
|
46
|
+
# rejects overrides whose decorators copy function attributes.
|
|
47
|
+
to_dict = getattr(value, "to_dict", None)
|
|
48
|
+
type_to_dict = getattr(type(value), "to_dict", None)
|
|
49
|
+
if (
|
|
50
|
+
not callable(to_dict)
|
|
51
|
+
or getattr(to_dict, "__func__", None) is not type_to_dict
|
|
52
|
+
):
|
|
53
|
+
return None
|
|
54
|
+
|
|
55
|
+
openapi_to_dict = getattr(
|
|
56
|
+
type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None
|
|
57
|
+
)
|
|
58
|
+
if (
|
|
59
|
+
not callable(openapi_to_dict)
|
|
60
|
+
or getattr(
|
|
61
|
+
openapi_to_dict,
|
|
62
|
+
_OPENAPI_GENERATOR_TO_DICT,
|
|
63
|
+
None,
|
|
64
|
+
) is not type_to_dict
|
|
65
|
+
):
|
|
66
|
+
return None
|
|
67
|
+
return openapi_to_dict
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def _to_legacy_item(value: Any, serialize: bool) -> Any:
|
|
71
|
+
to_dict = getattr(value, "to_dict", None)
|
|
72
|
+
if _get_openapi_to_dict(value) is not None and callable(to_dict):
|
|
73
|
+
return to_dict(serialize=serialize)
|
|
74
|
+
if callable(to_dict):
|
|
75
|
+
return to_dict()
|
|
76
|
+
return value
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def _to_legacy_value(value: Any, serialize: bool) -> Any:
|
|
80
|
+
# python-legacy converted only immediate list elements or dictionary values:
|
|
81
|
+
# https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231
|
|
82
|
+
if isinstance(value, list):
|
|
83
|
+
return [_to_legacy_item(item, serialize) for item in value]
|
|
84
|
+
if isinstance(value, dict):
|
|
85
|
+
return {
|
|
86
|
+
key: _to_legacy_item(item, serialize)
|
|
87
|
+
for key, item in value.items()
|
|
88
|
+
}
|
|
89
|
+
return _to_legacy_item(value, serialize)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
def _to_openapi_value(value: Any) -> Any:
|
|
93
|
+
if isinstance(value, list):
|
|
94
|
+
return [_to_openapi_value(item) for item in value]
|
|
95
|
+
if isinstance(value, dict):
|
|
96
|
+
return {key: _to_openapi_value(item) for key, item in value.items()}
|
|
97
|
+
|
|
98
|
+
to_openapi_dict = _get_openapi_to_dict(value)
|
|
99
|
+
if to_openapi_dict is not None:
|
|
100
|
+
return to_openapi_dict(value)
|
|
101
|
+
|
|
102
|
+
to_dict = getattr(value, "to_dict", None)
|
|
103
|
+
if callable(to_dict):
|
|
104
|
+
return to_dict()
|
|
105
|
+
return value
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
class CurrentUser(BaseModel):
|
|
109
|
+
"""
|
|
110
|
+
CurrentUser
|
|
111
|
+
|
|
112
|
+
Attributes:
|
|
113
|
+
openapi_types (dict): The key is attribute name
|
|
114
|
+
and the value is attribute type.
|
|
115
|
+
attribute_map (dict): The key is attribute name
|
|
116
|
+
and the value is json key in definition.
|
|
117
|
+
""" # noqa: E501
|
|
118
|
+
accepted_privacy_version: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, validation_alias=AliasChoices("acceptedPrivacyVersion", "accepted_privacy_version"), serialization_alias="acceptedPrivacyVersion", json_schema_extra={"examples": [0]})
|
|
119
|
+
accepted_tos_version: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, validation_alias=AliasChoices("acceptedTOSVersion", "accepted_tos_version"), serialization_alias="acceptedTOSVersion", json_schema_extra={"examples": [7]})
|
|
120
|
+
account_deletion_date: Optional[date] = Field(default=None, validation_alias=AliasChoices("accountDeletionDate", "account_deletion_date"), serialization_alias="accountDeletionDate")
|
|
121
|
+
account_deletion_log: Optional[List[AccountDeletionLog]] = Field(default=None, validation_alias=AliasChoices("accountDeletionLog", "account_deletion_log"), serialization_alias="accountDeletionLog", description=" ")
|
|
122
|
+
active_friends: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("activeFriends", "active_friends"), serialization_alias="activeFriends", description=" ")
|
|
123
|
+
age_verification_status: Optional[AgeVerificationStatus] = Field(default=None, validation_alias=AliasChoices("ageVerificationStatus", "age_verification_status"), serialization_alias="ageVerificationStatus")
|
|
124
|
+
age_verified: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("ageVerified", "age_verified"), serialization_alias="ageVerified", description="`true` if, user is age verified (not 18+).")
|
|
125
|
+
allow_avatar_copying: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("allowAvatarCopying", "allow_avatar_copying"), serialization_alias="allowAvatarCopying")
|
|
126
|
+
apple_details: Optional[Dict[str, Any]] = Field(default=None, validation_alias=AliasChoices("appleDetails", "apple_details"), serialization_alias="appleDetails")
|
|
127
|
+
apple_id: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("appleId", "apple_id"), serialization_alias="appleId")
|
|
128
|
+
auth_token: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("authToken", "auth_token"), serialization_alias="authToken", description="The auth token for NEWLY REGISTERED ACCOUNTS ONLY (/auth/register)")
|
|
129
|
+
badges: Optional[List[Badge]] = Field(default=None, description=" ")
|
|
130
|
+
bio: Optional[StrictStr] = None
|
|
131
|
+
bio_links: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("bioLinks", "bio_links"), serialization_alias="bioLinks", description=" ")
|
|
132
|
+
content_filters: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = Field(default=None, validation_alias=AliasChoices("contentFilters", "content_filters"), serialization_alias="contentFilters", description="These tags begin with `content_` and control content gating")
|
|
133
|
+
current_avatar: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("currentAvatar", "current_avatar"), serialization_alias="currentAvatar", json_schema_extra={"examples": ["avtr_912d66a4-4714-43b8-8407-7de2cafbf55b"]})
|
|
134
|
+
current_avatar_image_url: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("currentAvatarImageUrl", "current_avatar_image_url"), serialization_alias="currentAvatarImageUrl", description="When profilePicOverride is not empty, use it instead.", json_schema_extra={"examples": ["https://api.vrchat.cloud/api/1/file/file_ae46d521-7281-4b38-b365-804b32a1d6a7/1/file"]})
|
|
135
|
+
current_avatar_tags: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = Field(default=None, validation_alias=AliasChoices("currentAvatarTags", "current_avatar_tags"), serialization_alias="currentAvatarTags")
|
|
136
|
+
current_avatar_thumbnail_image_url: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("currentAvatarThumbnailImageUrl", "current_avatar_thumbnail_image_url"), serialization_alias="currentAvatarThumbnailImageUrl", description="When profilePicOverride is not empty, use it instead.", json_schema_extra={"examples": ["https://api.vrchat.cloud/api/1/image/file_aae83ed9-d42d-4d72-9f4b-9f1e41ed17e1/1/256"]})
|
|
137
|
+
date_joined: Optional[date] = None
|
|
138
|
+
developer_type: Optional[DeveloperType] = Field(default=None, validation_alias=AliasChoices("developerType", "developer_type"), serialization_alias="developerType")
|
|
139
|
+
discord_details: Optional[DiscordDetails] = Field(default=None, validation_alias=AliasChoices("discordDetails", "discord_details"), serialization_alias="discordDetails")
|
|
140
|
+
discord_id: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("discordId", "discord_id"), serialization_alias="discordId", description="https://discord.com/developers/docs/reference#snowflakes", json_schema_extra={"examples": ["1280064052206370848"]})
|
|
141
|
+
display_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("displayName", "display_name"), serialization_alias="displayName")
|
|
142
|
+
email_verified: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("emailVerified", "email_verified"), serialization_alias="emailVerified")
|
|
143
|
+
fallback_avatar: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("fallbackAvatar", "fallback_avatar"), serialization_alias="fallbackAvatar", json_schema_extra={"examples": ["avtr_912d66a4-4714-43b8-8407-7de2cafbf55b"]})
|
|
144
|
+
friend_group_names: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("friendGroupNames", "friend_group_names"), serialization_alias="friendGroupNames", description="Always empty array.")
|
|
145
|
+
friend_key: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("friendKey", "friend_key"), serialization_alias="friendKey")
|
|
146
|
+
friends: Optional[List[StrictStr]] = None
|
|
147
|
+
google_details: Optional[Dict[str, Any]] = Field(default=None, validation_alias=AliasChoices("googleDetails", "google_details"), serialization_alias="googleDetails")
|
|
148
|
+
google_id: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("googleId", "google_id"), serialization_alias="googleId")
|
|
149
|
+
has_birthday: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("hasBirthday", "has_birthday"), serialization_alias="hasBirthday")
|
|
150
|
+
has_discord_friends_opt_out: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("hasDiscordFriendsOptOut", "has_discord_friends_opt_out"), serialization_alias="hasDiscordFriendsOptOut")
|
|
151
|
+
has_email: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("hasEmail", "has_email"), serialization_alias="hasEmail")
|
|
152
|
+
has_logged_in_from_client: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("hasLoggedInFromClient", "has_logged_in_from_client"), serialization_alias="hasLoggedInFromClient")
|
|
153
|
+
has_pending_email: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("hasPendingEmail", "has_pending_email"), serialization_alias="hasPendingEmail")
|
|
154
|
+
has_shared_connections_opt_out: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("hasSharedConnectionsOptOut", "has_shared_connections_opt_out"), serialization_alias="hasSharedConnectionsOptOut")
|
|
155
|
+
hide_content_filter_settings: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("hideContentFilterSettings", "hide_content_filter_settings"), serialization_alias="hideContentFilterSettings")
|
|
156
|
+
home_location: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("homeLocation", "home_location"), serialization_alias="homeLocation", description="WorldID be \"offline\" on User profiles if you are not friends with that user.", json_schema_extra={"examples": ["wrld_4432ea9b-729c-46e3-8eaf-846aa0a37fdd"]})
|
|
157
|
+
id: Optional[StrictStr] = Field(default=None, description="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.", json_schema_extra={"examples": ["usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469"]})
|
|
158
|
+
is_adult: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("isAdult", "is_adult"), serialization_alias="isAdult")
|
|
159
|
+
is_booping_enabled: Optional[StrictBool] = Field(default=True, validation_alias=AliasChoices("isBoopingEnabled", "is_booping_enabled"), serialization_alias="isBoopingEnabled")
|
|
160
|
+
is_friend: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("isFriend", "is_friend"), serialization_alias="isFriend")
|
|
161
|
+
last_activity: Optional[datetime] = None
|
|
162
|
+
last_login: Optional[datetime] = None
|
|
163
|
+
last_mobile: Optional[datetime] = None
|
|
164
|
+
last_platform: Optional[StrictStr] = Field(default=None, description="This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`.", json_schema_extra={"examples": ["standalonewindows"]})
|
|
165
|
+
obfuscated_email: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("obfuscatedEmail", "obfuscated_email"), serialization_alias="obfuscatedEmail")
|
|
166
|
+
obfuscated_pending_email: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("obfuscatedPendingEmail", "obfuscated_pending_email"), serialization_alias="obfuscatedPendingEmail")
|
|
167
|
+
oculus_id: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("oculusId", "oculus_id"), serialization_alias="oculusId")
|
|
168
|
+
offline_friends: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("offlineFriends", "offline_friends"), serialization_alias="offlineFriends")
|
|
169
|
+
online_friends: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("onlineFriends", "online_friends"), serialization_alias="onlineFriends")
|
|
170
|
+
past_display_names: Optional[List[PastDisplayName]] = Field(default=None, validation_alias=AliasChoices("pastDisplayNames", "past_display_names"), serialization_alias="pastDisplayNames", description=" ")
|
|
171
|
+
pico_id: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("picoId", "pico_id"), serialization_alias="picoId")
|
|
172
|
+
platform_history: Optional[List[CurrentUserPlatformHistoryInner]] = None
|
|
173
|
+
presence: Optional[CurrentUserPresence] = None
|
|
174
|
+
profile_pic_override: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("profilePicOverride", "profile_pic_override"), serialization_alias="profilePicOverride")
|
|
175
|
+
profile_pic_override_thumbnail: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("profilePicOverrideThumbnail", "profile_pic_override_thumbnail"), serialization_alias="profilePicOverrideThumbnail")
|
|
176
|
+
pronouns: Optional[StrictStr] = None
|
|
177
|
+
pronouns_history: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("pronounsHistory", "pronouns_history"), serialization_alias="pronounsHistory")
|
|
178
|
+
queued_instance: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("queuedInstance", "queued_instance"), serialization_alias="queuedInstance")
|
|
179
|
+
receive_mobile_invitations: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("receiveMobileInvitations", "receive_mobile_invitations"), serialization_alias="receiveMobileInvitations")
|
|
180
|
+
state: Optional[UserState] = None
|
|
181
|
+
status: Optional[UserStatus] = None
|
|
182
|
+
status_description: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("statusDescription", "status_description"), serialization_alias="statusDescription")
|
|
183
|
+
status_first_time: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("statusFirstTime", "status_first_time"), serialization_alias="statusFirstTime")
|
|
184
|
+
status_history: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("statusHistory", "status_history"), serialization_alias="statusHistory")
|
|
185
|
+
steam_details: Optional[Dict[str, Any]] = Field(default=None, validation_alias=AliasChoices("steamDetails", "steam_details"), serialization_alias="steamDetails")
|
|
186
|
+
steam_id: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("steamId", "steam_id"), serialization_alias="steamId")
|
|
187
|
+
tags: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = None
|
|
188
|
+
twitch_details: Optional[Dict[str, Any]] = Field(default=None, validation_alias=AliasChoices("twitchDetails", "twitch_details"), serialization_alias="twitchDetails")
|
|
189
|
+
twitch_id: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("twitchId", "twitch_id"), serialization_alias="twitchId")
|
|
190
|
+
two_factor_auth_enabled: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("twoFactorAuthEnabled", "two_factor_auth_enabled"), serialization_alias="twoFactorAuthEnabled")
|
|
191
|
+
two_factor_auth_enabled_date: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("twoFactorAuthEnabledDate", "two_factor_auth_enabled_date"), serialization_alias="twoFactorAuthEnabledDate")
|
|
192
|
+
unsubscribe: Optional[StrictBool] = None
|
|
193
|
+
updated_at: Optional[datetime] = None
|
|
194
|
+
user_icon: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("userIcon", "user_icon"), serialization_alias="userIcon")
|
|
195
|
+
user_language: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("userLanguage", "user_language"), serialization_alias="userLanguage")
|
|
196
|
+
user_language_code: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("userLanguageCode", "user_language_code"), serialization_alias="userLanguageCode")
|
|
197
|
+
username: Optional[StrictStr] = Field(default=None, description="-| **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429).")
|
|
198
|
+
uses_generated_password: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("usesGeneratedPassword", "uses_generated_password"), serialization_alias="usesGeneratedPassword")
|
|
199
|
+
vive_id: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("viveId", "vive_id"), serialization_alias="viveId")
|
|
200
|
+
openapi_types: ClassVar[Dict[str, str]] = {
|
|
201
|
+
"accepted_privacy_version": "int",
|
|
202
|
+
"accepted_tos_version": "int",
|
|
203
|
+
"account_deletion_date": "date",
|
|
204
|
+
"account_deletion_log": "List[AccountDeletionLog]",
|
|
205
|
+
"active_friends": "List[str]",
|
|
206
|
+
"age_verification_status": "AgeVerificationStatus",
|
|
207
|
+
"age_verified": "bool",
|
|
208
|
+
"allow_avatar_copying": "bool",
|
|
209
|
+
"apple_details": "object",
|
|
210
|
+
"apple_id": "str",
|
|
211
|
+
"auth_token": "str",
|
|
212
|
+
"badges": "List[Badge]",
|
|
213
|
+
"bio": "str",
|
|
214
|
+
"bio_links": "List[str]",
|
|
215
|
+
"content_filters": "List[str]",
|
|
216
|
+
"current_avatar": "str",
|
|
217
|
+
"current_avatar_image_url": "str",
|
|
218
|
+
"current_avatar_tags": "List[str]",
|
|
219
|
+
"current_avatar_thumbnail_image_url": "str",
|
|
220
|
+
"date_joined": "date",
|
|
221
|
+
"developer_type": "DeveloperType",
|
|
222
|
+
"discord_details": "DiscordDetails",
|
|
223
|
+
"discord_id": "str",
|
|
224
|
+
"display_name": "str",
|
|
225
|
+
"email_verified": "bool",
|
|
226
|
+
"fallback_avatar": "str",
|
|
227
|
+
"friend_group_names": "List[str]",
|
|
228
|
+
"friend_key": "str",
|
|
229
|
+
"friends": "List[str]",
|
|
230
|
+
"google_details": "object",
|
|
231
|
+
"google_id": "str",
|
|
232
|
+
"has_birthday": "bool",
|
|
233
|
+
"has_discord_friends_opt_out": "bool",
|
|
234
|
+
"has_email": "bool",
|
|
235
|
+
"has_logged_in_from_client": "bool",
|
|
236
|
+
"has_pending_email": "bool",
|
|
237
|
+
"has_shared_connections_opt_out": "bool",
|
|
238
|
+
"hide_content_filter_settings": "bool",
|
|
239
|
+
"home_location": "str",
|
|
240
|
+
"id": "str",
|
|
241
|
+
"is_adult": "bool",
|
|
242
|
+
"is_booping_enabled": "bool",
|
|
243
|
+
"is_friend": "bool",
|
|
244
|
+
"last_activity": "datetime",
|
|
245
|
+
"last_login": "datetime",
|
|
246
|
+
"last_mobile": "datetime",
|
|
247
|
+
"last_platform": "str",
|
|
248
|
+
"obfuscated_email": "str",
|
|
249
|
+
"obfuscated_pending_email": "str",
|
|
250
|
+
"oculus_id": "str",
|
|
251
|
+
"offline_friends": "List[str]",
|
|
252
|
+
"online_friends": "List[str]",
|
|
253
|
+
"past_display_names": "List[PastDisplayName]",
|
|
254
|
+
"pico_id": "str",
|
|
255
|
+
"platform_history": "List[CurrentUserPlatformHistoryInner]",
|
|
256
|
+
"presence": "CurrentUserPresence",
|
|
257
|
+
"profile_pic_override": "str",
|
|
258
|
+
"profile_pic_override_thumbnail": "str",
|
|
259
|
+
"pronouns": "str",
|
|
260
|
+
"pronouns_history": "List[str]",
|
|
261
|
+
"queued_instance": "str",
|
|
262
|
+
"receive_mobile_invitations": "bool",
|
|
263
|
+
"state": "UserState",
|
|
264
|
+
"status": "UserStatus",
|
|
265
|
+
"status_description": "str",
|
|
266
|
+
"status_first_time": "bool",
|
|
267
|
+
"status_history": "List[str]",
|
|
268
|
+
"steam_details": "object",
|
|
269
|
+
"steam_id": "str",
|
|
270
|
+
"tags": "List[str]",
|
|
271
|
+
"twitch_details": "object",
|
|
272
|
+
"twitch_id": "str",
|
|
273
|
+
"two_factor_auth_enabled": "bool",
|
|
274
|
+
"two_factor_auth_enabled_date": "datetime",
|
|
275
|
+
"unsubscribe": "bool",
|
|
276
|
+
"updated_at": "datetime",
|
|
277
|
+
"user_icon": "str",
|
|
278
|
+
"user_language": "str",
|
|
279
|
+
"user_language_code": "str",
|
|
280
|
+
"username": "str",
|
|
281
|
+
"uses_generated_password": "bool",
|
|
282
|
+
"vive_id": "str"
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
attribute_map: ClassVar[Dict[str, str]] = {
|
|
286
|
+
"accepted_privacy_version": "acceptedPrivacyVersion",
|
|
287
|
+
"accepted_tos_version": "acceptedTOSVersion",
|
|
288
|
+
"account_deletion_date": "accountDeletionDate",
|
|
289
|
+
"account_deletion_log": "accountDeletionLog",
|
|
290
|
+
"active_friends": "activeFriends",
|
|
291
|
+
"age_verification_status": "ageVerificationStatus",
|
|
292
|
+
"age_verified": "ageVerified",
|
|
293
|
+
"allow_avatar_copying": "allowAvatarCopying",
|
|
294
|
+
"apple_details": "appleDetails",
|
|
295
|
+
"apple_id": "appleId",
|
|
296
|
+
"auth_token": "authToken",
|
|
297
|
+
"badges": "badges",
|
|
298
|
+
"bio": "bio",
|
|
299
|
+
"bio_links": "bioLinks",
|
|
300
|
+
"content_filters": "contentFilters",
|
|
301
|
+
"current_avatar": "currentAvatar",
|
|
302
|
+
"current_avatar_image_url": "currentAvatarImageUrl",
|
|
303
|
+
"current_avatar_tags": "currentAvatarTags",
|
|
304
|
+
"current_avatar_thumbnail_image_url": "currentAvatarThumbnailImageUrl",
|
|
305
|
+
"date_joined": "date_joined",
|
|
306
|
+
"developer_type": "developerType",
|
|
307
|
+
"discord_details": "discordDetails",
|
|
308
|
+
"discord_id": "discordId",
|
|
309
|
+
"display_name": "displayName",
|
|
310
|
+
"email_verified": "emailVerified",
|
|
311
|
+
"fallback_avatar": "fallbackAvatar",
|
|
312
|
+
"friend_group_names": "friendGroupNames",
|
|
313
|
+
"friend_key": "friendKey",
|
|
314
|
+
"friends": "friends",
|
|
315
|
+
"google_details": "googleDetails",
|
|
316
|
+
"google_id": "googleId",
|
|
317
|
+
"has_birthday": "hasBirthday",
|
|
318
|
+
"has_discord_friends_opt_out": "hasDiscordFriendsOptOut",
|
|
319
|
+
"has_email": "hasEmail",
|
|
320
|
+
"has_logged_in_from_client": "hasLoggedInFromClient",
|
|
321
|
+
"has_pending_email": "hasPendingEmail",
|
|
322
|
+
"has_shared_connections_opt_out": "hasSharedConnectionsOptOut",
|
|
323
|
+
"hide_content_filter_settings": "hideContentFilterSettings",
|
|
324
|
+
"home_location": "homeLocation",
|
|
325
|
+
"id": "id",
|
|
326
|
+
"is_adult": "isAdult",
|
|
327
|
+
"is_booping_enabled": "isBoopingEnabled",
|
|
328
|
+
"is_friend": "isFriend",
|
|
329
|
+
"last_activity": "last_activity",
|
|
330
|
+
"last_login": "last_login",
|
|
331
|
+
"last_mobile": "last_mobile",
|
|
332
|
+
"last_platform": "last_platform",
|
|
333
|
+
"obfuscated_email": "obfuscatedEmail",
|
|
334
|
+
"obfuscated_pending_email": "obfuscatedPendingEmail",
|
|
335
|
+
"oculus_id": "oculusId",
|
|
336
|
+
"offline_friends": "offlineFriends",
|
|
337
|
+
"online_friends": "onlineFriends",
|
|
338
|
+
"past_display_names": "pastDisplayNames",
|
|
339
|
+
"pico_id": "picoId",
|
|
340
|
+
"platform_history": "platform_history",
|
|
341
|
+
"presence": "presence",
|
|
342
|
+
"profile_pic_override": "profilePicOverride",
|
|
343
|
+
"profile_pic_override_thumbnail": "profilePicOverrideThumbnail",
|
|
344
|
+
"pronouns": "pronouns",
|
|
345
|
+
"pronouns_history": "pronounsHistory",
|
|
346
|
+
"queued_instance": "queuedInstance",
|
|
347
|
+
"receive_mobile_invitations": "receiveMobileInvitations",
|
|
348
|
+
"state": "state",
|
|
349
|
+
"status": "status",
|
|
350
|
+
"status_description": "statusDescription",
|
|
351
|
+
"status_first_time": "statusFirstTime",
|
|
352
|
+
"status_history": "statusHistory",
|
|
353
|
+
"steam_details": "steamDetails",
|
|
354
|
+
"steam_id": "steamId",
|
|
355
|
+
"tags": "tags",
|
|
356
|
+
"twitch_details": "twitchDetails",
|
|
357
|
+
"twitch_id": "twitchId",
|
|
358
|
+
"two_factor_auth_enabled": "twoFactorAuthEnabled",
|
|
359
|
+
"two_factor_auth_enabled_date": "twoFactorAuthEnabledDate",
|
|
360
|
+
"unsubscribe": "unsubscribe",
|
|
361
|
+
"updated_at": "updated_at",
|
|
362
|
+
"user_icon": "userIcon",
|
|
363
|
+
"user_language": "userLanguage",
|
|
364
|
+
"user_language_code": "userLanguageCode",
|
|
365
|
+
"username": "username",
|
|
366
|
+
"uses_generated_password": "usesGeneratedPassword",
|
|
367
|
+
"vive_id": "viveId"
|
|
368
|
+
}
|
|
369
|
+
__properties: ClassVar[List[str]] = ["acceptedPrivacyVersion", "acceptedTOSVersion", "accountDeletionDate", "accountDeletionLog", "activeFriends", "ageVerificationStatus", "ageVerified", "allowAvatarCopying", "appleDetails", "appleId", "authToken", "badges", "bio", "bioLinks", "contentFilters", "currentAvatar", "currentAvatarImageUrl", "currentAvatarTags", "currentAvatarThumbnailImageUrl", "date_joined", "developerType", "discordDetails", "discordId", "displayName", "emailVerified", "fallbackAvatar", "friendGroupNames", "friendKey", "friends", "googleDetails", "googleId", "hasBirthday", "hasDiscordFriendsOptOut", "hasEmail", "hasLoggedInFromClient", "hasPendingEmail", "hasSharedConnectionsOptOut", "hideContentFilterSettings", "homeLocation", "id", "isAdult", "isBoopingEnabled", "isFriend", "last_activity", "last_login", "last_mobile", "last_platform", "obfuscatedEmail", "obfuscatedPendingEmail", "oculusId", "offlineFriends", "onlineFriends", "pastDisplayNames", "picoId", "platform_history", "presence", "profilePicOverride", "profilePicOverrideThumbnail", "pronouns", "pronounsHistory", "queuedInstance", "receiveMobileInvitations", "state", "status", "statusDescription", "statusFirstTime", "statusHistory", "steamDetails", "steamId", "tags", "twitchDetails", "twitchId", "twoFactorAuthEnabled", "twoFactorAuthEnabledDate", "unsubscribe", "updated_at", "userIcon", "userLanguage", "userLanguageCode", "username", "usesGeneratedPassword", "viveId"]
|
|
370
|
+
|
|
371
|
+
@classmethod
|
|
372
|
+
def __preprocess_input_names(
|
|
373
|
+
cls,
|
|
374
|
+
obj: Any,
|
|
375
|
+
remove_hidden_storage_names: bool = True,
|
|
376
|
+
) -> Any:
|
|
377
|
+
if not isinstance(obj, _Mapping):
|
|
378
|
+
return obj
|
|
379
|
+
obj = dict(obj)
|
|
380
|
+
if "acceptedPrivacyVersion" not in obj and "accepted_privacy_version" in obj:
|
|
381
|
+
obj["acceptedPrivacyVersion"] = obj["accepted_privacy_version"]
|
|
382
|
+
obj.pop("accepted_privacy_version", None)
|
|
383
|
+
if "acceptedTOSVersion" not in obj and "accepted_tos_version" in obj:
|
|
384
|
+
obj["acceptedTOSVersion"] = obj["accepted_tos_version"]
|
|
385
|
+
obj.pop("accepted_tos_version", None)
|
|
386
|
+
if "accountDeletionDate" not in obj and "account_deletion_date" in obj:
|
|
387
|
+
obj["accountDeletionDate"] = obj["account_deletion_date"]
|
|
388
|
+
obj.pop("account_deletion_date", None)
|
|
389
|
+
if "accountDeletionLog" not in obj and "account_deletion_log" in obj:
|
|
390
|
+
obj["accountDeletionLog"] = obj["account_deletion_log"]
|
|
391
|
+
obj.pop("account_deletion_log", None)
|
|
392
|
+
if "activeFriends" not in obj and "active_friends" in obj:
|
|
393
|
+
obj["activeFriends"] = obj["active_friends"]
|
|
394
|
+
obj.pop("active_friends", None)
|
|
395
|
+
if "ageVerificationStatus" not in obj and "age_verification_status" in obj:
|
|
396
|
+
obj["ageVerificationStatus"] = obj["age_verification_status"]
|
|
397
|
+
obj.pop("age_verification_status", None)
|
|
398
|
+
if "ageVerified" not in obj and "age_verified" in obj:
|
|
399
|
+
obj["ageVerified"] = obj["age_verified"]
|
|
400
|
+
obj.pop("age_verified", None)
|
|
401
|
+
if "allowAvatarCopying" not in obj and "allow_avatar_copying" in obj:
|
|
402
|
+
obj["allowAvatarCopying"] = obj["allow_avatar_copying"]
|
|
403
|
+
obj.pop("allow_avatar_copying", None)
|
|
404
|
+
if "appleDetails" not in obj and "apple_details" in obj:
|
|
405
|
+
obj["appleDetails"] = obj["apple_details"]
|
|
406
|
+
obj.pop("apple_details", None)
|
|
407
|
+
if "appleId" not in obj and "apple_id" in obj:
|
|
408
|
+
obj["appleId"] = obj["apple_id"]
|
|
409
|
+
obj.pop("apple_id", None)
|
|
410
|
+
if "authToken" not in obj and "auth_token" in obj:
|
|
411
|
+
obj["authToken"] = obj["auth_token"]
|
|
412
|
+
obj.pop("auth_token", None)
|
|
413
|
+
if "bioLinks" not in obj and "bio_links" in obj:
|
|
414
|
+
obj["bioLinks"] = obj["bio_links"]
|
|
415
|
+
obj.pop("bio_links", None)
|
|
416
|
+
if "contentFilters" not in obj and "content_filters" in obj:
|
|
417
|
+
obj["contentFilters"] = obj["content_filters"]
|
|
418
|
+
obj.pop("content_filters", None)
|
|
419
|
+
if "currentAvatar" not in obj and "current_avatar" in obj:
|
|
420
|
+
obj["currentAvatar"] = obj["current_avatar"]
|
|
421
|
+
obj.pop("current_avatar", None)
|
|
422
|
+
if "currentAvatarImageUrl" not in obj and "current_avatar_image_url" in obj:
|
|
423
|
+
obj["currentAvatarImageUrl"] = obj["current_avatar_image_url"]
|
|
424
|
+
obj.pop("current_avatar_image_url", None)
|
|
425
|
+
if "currentAvatarTags" not in obj and "current_avatar_tags" in obj:
|
|
426
|
+
obj["currentAvatarTags"] = obj["current_avatar_tags"]
|
|
427
|
+
obj.pop("current_avatar_tags", None)
|
|
428
|
+
if "currentAvatarThumbnailImageUrl" not in obj and "current_avatar_thumbnail_image_url" in obj:
|
|
429
|
+
obj["currentAvatarThumbnailImageUrl"] = obj["current_avatar_thumbnail_image_url"]
|
|
430
|
+
obj.pop("current_avatar_thumbnail_image_url", None)
|
|
431
|
+
if "developerType" not in obj and "developer_type" in obj:
|
|
432
|
+
obj["developerType"] = obj["developer_type"]
|
|
433
|
+
obj.pop("developer_type", None)
|
|
434
|
+
if "discordDetails" not in obj and "discord_details" in obj:
|
|
435
|
+
obj["discordDetails"] = obj["discord_details"]
|
|
436
|
+
obj.pop("discord_details", None)
|
|
437
|
+
if "discordId" not in obj and "discord_id" in obj:
|
|
438
|
+
obj["discordId"] = obj["discord_id"]
|
|
439
|
+
obj.pop("discord_id", None)
|
|
440
|
+
if "displayName" not in obj and "display_name" in obj:
|
|
441
|
+
obj["displayName"] = obj["display_name"]
|
|
442
|
+
obj.pop("display_name", None)
|
|
443
|
+
if "emailVerified" not in obj and "email_verified" in obj:
|
|
444
|
+
obj["emailVerified"] = obj["email_verified"]
|
|
445
|
+
obj.pop("email_verified", None)
|
|
446
|
+
if "fallbackAvatar" not in obj and "fallback_avatar" in obj:
|
|
447
|
+
obj["fallbackAvatar"] = obj["fallback_avatar"]
|
|
448
|
+
obj.pop("fallback_avatar", None)
|
|
449
|
+
if "friendGroupNames" not in obj and "friend_group_names" in obj:
|
|
450
|
+
obj["friendGroupNames"] = obj["friend_group_names"]
|
|
451
|
+
obj.pop("friend_group_names", None)
|
|
452
|
+
if "friendKey" not in obj and "friend_key" in obj:
|
|
453
|
+
obj["friendKey"] = obj["friend_key"]
|
|
454
|
+
obj.pop("friend_key", None)
|
|
455
|
+
if "googleDetails" not in obj and "google_details" in obj:
|
|
456
|
+
obj["googleDetails"] = obj["google_details"]
|
|
457
|
+
obj.pop("google_details", None)
|
|
458
|
+
if "googleId" not in obj and "google_id" in obj:
|
|
459
|
+
obj["googleId"] = obj["google_id"]
|
|
460
|
+
obj.pop("google_id", None)
|
|
461
|
+
if "hasBirthday" not in obj and "has_birthday" in obj:
|
|
462
|
+
obj["hasBirthday"] = obj["has_birthday"]
|
|
463
|
+
obj.pop("has_birthday", None)
|
|
464
|
+
if "hasDiscordFriendsOptOut" not in obj and "has_discord_friends_opt_out" in obj:
|
|
465
|
+
obj["hasDiscordFriendsOptOut"] = obj["has_discord_friends_opt_out"]
|
|
466
|
+
obj.pop("has_discord_friends_opt_out", None)
|
|
467
|
+
if "hasEmail" not in obj and "has_email" in obj:
|
|
468
|
+
obj["hasEmail"] = obj["has_email"]
|
|
469
|
+
obj.pop("has_email", None)
|
|
470
|
+
if "hasLoggedInFromClient" not in obj and "has_logged_in_from_client" in obj:
|
|
471
|
+
obj["hasLoggedInFromClient"] = obj["has_logged_in_from_client"]
|
|
472
|
+
obj.pop("has_logged_in_from_client", None)
|
|
473
|
+
if "hasPendingEmail" not in obj and "has_pending_email" in obj:
|
|
474
|
+
obj["hasPendingEmail"] = obj["has_pending_email"]
|
|
475
|
+
obj.pop("has_pending_email", None)
|
|
476
|
+
if "hasSharedConnectionsOptOut" not in obj and "has_shared_connections_opt_out" in obj:
|
|
477
|
+
obj["hasSharedConnectionsOptOut"] = obj["has_shared_connections_opt_out"]
|
|
478
|
+
obj.pop("has_shared_connections_opt_out", None)
|
|
479
|
+
if "hideContentFilterSettings" not in obj and "hide_content_filter_settings" in obj:
|
|
480
|
+
obj["hideContentFilterSettings"] = obj["hide_content_filter_settings"]
|
|
481
|
+
obj.pop("hide_content_filter_settings", None)
|
|
482
|
+
if "homeLocation" not in obj and "home_location" in obj:
|
|
483
|
+
obj["homeLocation"] = obj["home_location"]
|
|
484
|
+
obj.pop("home_location", None)
|
|
485
|
+
if "isAdult" not in obj and "is_adult" in obj:
|
|
486
|
+
obj["isAdult"] = obj["is_adult"]
|
|
487
|
+
obj.pop("is_adult", None)
|
|
488
|
+
if "isBoopingEnabled" not in obj and "is_booping_enabled" in obj:
|
|
489
|
+
obj["isBoopingEnabled"] = obj["is_booping_enabled"]
|
|
490
|
+
obj.pop("is_booping_enabled", None)
|
|
491
|
+
if "isFriend" not in obj and "is_friend" in obj:
|
|
492
|
+
obj["isFriend"] = obj["is_friend"]
|
|
493
|
+
obj.pop("is_friend", None)
|
|
494
|
+
if "obfuscatedEmail" not in obj and "obfuscated_email" in obj:
|
|
495
|
+
obj["obfuscatedEmail"] = obj["obfuscated_email"]
|
|
496
|
+
obj.pop("obfuscated_email", None)
|
|
497
|
+
if "obfuscatedPendingEmail" not in obj and "obfuscated_pending_email" in obj:
|
|
498
|
+
obj["obfuscatedPendingEmail"] = obj["obfuscated_pending_email"]
|
|
499
|
+
obj.pop("obfuscated_pending_email", None)
|
|
500
|
+
if "oculusId" not in obj and "oculus_id" in obj:
|
|
501
|
+
obj["oculusId"] = obj["oculus_id"]
|
|
502
|
+
obj.pop("oculus_id", None)
|
|
503
|
+
if "offlineFriends" not in obj and "offline_friends" in obj:
|
|
504
|
+
obj["offlineFriends"] = obj["offline_friends"]
|
|
505
|
+
obj.pop("offline_friends", None)
|
|
506
|
+
if "onlineFriends" not in obj and "online_friends" in obj:
|
|
507
|
+
obj["onlineFriends"] = obj["online_friends"]
|
|
508
|
+
obj.pop("online_friends", None)
|
|
509
|
+
if "pastDisplayNames" not in obj and "past_display_names" in obj:
|
|
510
|
+
obj["pastDisplayNames"] = obj["past_display_names"]
|
|
511
|
+
obj.pop("past_display_names", None)
|
|
512
|
+
if "picoId" not in obj and "pico_id" in obj:
|
|
513
|
+
obj["picoId"] = obj["pico_id"]
|
|
514
|
+
obj.pop("pico_id", None)
|
|
515
|
+
if "profilePicOverride" not in obj and "profile_pic_override" in obj:
|
|
516
|
+
obj["profilePicOverride"] = obj["profile_pic_override"]
|
|
517
|
+
obj.pop("profile_pic_override", None)
|
|
518
|
+
if "profilePicOverrideThumbnail" not in obj and "profile_pic_override_thumbnail" in obj:
|
|
519
|
+
obj["profilePicOverrideThumbnail"] = obj["profile_pic_override_thumbnail"]
|
|
520
|
+
obj.pop("profile_pic_override_thumbnail", None)
|
|
521
|
+
if "pronounsHistory" not in obj and "pronouns_history" in obj:
|
|
522
|
+
obj["pronounsHistory"] = obj["pronouns_history"]
|
|
523
|
+
obj.pop("pronouns_history", None)
|
|
524
|
+
if "queuedInstance" not in obj and "queued_instance" in obj:
|
|
525
|
+
obj["queuedInstance"] = obj["queued_instance"]
|
|
526
|
+
obj.pop("queued_instance", None)
|
|
527
|
+
if "receiveMobileInvitations" not in obj and "receive_mobile_invitations" in obj:
|
|
528
|
+
obj["receiveMobileInvitations"] = obj["receive_mobile_invitations"]
|
|
529
|
+
obj.pop("receive_mobile_invitations", None)
|
|
530
|
+
if "statusDescription" not in obj and "status_description" in obj:
|
|
531
|
+
obj["statusDescription"] = obj["status_description"]
|
|
532
|
+
obj.pop("status_description", None)
|
|
533
|
+
if "statusFirstTime" not in obj and "status_first_time" in obj:
|
|
534
|
+
obj["statusFirstTime"] = obj["status_first_time"]
|
|
535
|
+
obj.pop("status_first_time", None)
|
|
536
|
+
if "statusHistory" not in obj and "status_history" in obj:
|
|
537
|
+
obj["statusHistory"] = obj["status_history"]
|
|
538
|
+
obj.pop("status_history", None)
|
|
539
|
+
if "steamDetails" not in obj and "steam_details" in obj:
|
|
540
|
+
obj["steamDetails"] = obj["steam_details"]
|
|
541
|
+
obj.pop("steam_details", None)
|
|
542
|
+
if "steamId" not in obj and "steam_id" in obj:
|
|
543
|
+
obj["steamId"] = obj["steam_id"]
|
|
544
|
+
obj.pop("steam_id", None)
|
|
545
|
+
if "twitchDetails" not in obj and "twitch_details" in obj:
|
|
546
|
+
obj["twitchDetails"] = obj["twitch_details"]
|
|
547
|
+
obj.pop("twitch_details", None)
|
|
548
|
+
if "twitchId" not in obj and "twitch_id" in obj:
|
|
549
|
+
obj["twitchId"] = obj["twitch_id"]
|
|
550
|
+
obj.pop("twitch_id", None)
|
|
551
|
+
if "twoFactorAuthEnabled" not in obj and "two_factor_auth_enabled" in obj:
|
|
552
|
+
obj["twoFactorAuthEnabled"] = obj["two_factor_auth_enabled"]
|
|
553
|
+
obj.pop("two_factor_auth_enabled", None)
|
|
554
|
+
if "twoFactorAuthEnabledDate" not in obj and "two_factor_auth_enabled_date" in obj:
|
|
555
|
+
obj["twoFactorAuthEnabledDate"] = obj["two_factor_auth_enabled_date"]
|
|
556
|
+
obj.pop("two_factor_auth_enabled_date", None)
|
|
557
|
+
if "userIcon" not in obj and "user_icon" in obj:
|
|
558
|
+
obj["userIcon"] = obj["user_icon"]
|
|
559
|
+
obj.pop("user_icon", None)
|
|
560
|
+
if "userLanguage" not in obj and "user_language" in obj:
|
|
561
|
+
obj["userLanguage"] = obj["user_language"]
|
|
562
|
+
obj.pop("user_language", None)
|
|
563
|
+
if "userLanguageCode" not in obj and "user_language_code" in obj:
|
|
564
|
+
obj["userLanguageCode"] = obj["user_language_code"]
|
|
565
|
+
obj.pop("user_language_code", None)
|
|
566
|
+
if "usesGeneratedPassword" not in obj and "uses_generated_password" in obj:
|
|
567
|
+
obj["usesGeneratedPassword"] = obj["uses_generated_password"]
|
|
568
|
+
obj.pop("uses_generated_password", None)
|
|
569
|
+
if "viveId" not in obj and "vive_id" in obj:
|
|
570
|
+
obj["viveId"] = obj["vive_id"]
|
|
571
|
+
obj.pop("vive_id", None)
|
|
572
|
+
return obj
|
|
573
|
+
|
|
574
|
+
model_config = ConfigDict(
|
|
575
|
+
validate_by_name=True,
|
|
576
|
+
validate_by_alias=True,
|
|
577
|
+
validate_assignment=True,
|
|
578
|
+
extra="forbid",
|
|
579
|
+
protected_namespaces=(),
|
|
580
|
+
)
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
def to_str(self) -> str:
|
|
584
|
+
"""Returns the string representation of the model"""
|
|
585
|
+
return pprint.pformat(self.to_dict())
|
|
586
|
+
|
|
587
|
+
def __repr__(self) -> str:
|
|
588
|
+
"""For print and pprint"""
|
|
589
|
+
return self.to_str()
|
|
590
|
+
|
|
591
|
+
def __eq__(self, other: object) -> bool:
|
|
592
|
+
"""Returns true if both objects are equal"""
|
|
593
|
+
if not isinstance(other, CurrentUser):
|
|
594
|
+
return False
|
|
595
|
+
|
|
596
|
+
return self.to_dict() == other.to_dict()
|
|
597
|
+
|
|
598
|
+
def __ne__(self, other: object) -> bool:
|
|
599
|
+
"""Returns true if both objects are not equal"""
|
|
600
|
+
if not isinstance(other, CurrentUser):
|
|
601
|
+
return True
|
|
602
|
+
|
|
603
|
+
return not (self == other)
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
def to_json(self) -> str:
|
|
607
|
+
"""Returns the JSON representation of the model using alias"""
|
|
608
|
+
to_openapi_dict = _get_openapi_to_dict(self)
|
|
609
|
+
if to_openapi_dict is not None:
|
|
610
|
+
return json.dumps(to_jsonable_python(to_openapi_dict(self)))
|
|
611
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
612
|
+
|
|
613
|
+
@classmethod
|
|
614
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
615
|
+
"""Create an instance of CurrentUser from a JSON string"""
|
|
616
|
+
return cls.from_dict(json.loads(json_str))
|
|
617
|
+
|
|
618
|
+
def to_dict(self, serialize: bool = False) -> Dict[str, Any]:
|
|
619
|
+
"""Return all declared model fields using public or wire names."""
|
|
620
|
+
return {
|
|
621
|
+
("acceptedPrivacyVersion" if serialize else "accepted_privacy_version"): _to_legacy_value(getattr(self, "accepted_privacy_version", None), serialize),
|
|
622
|
+
("acceptedTOSVersion" if serialize else "accepted_tos_version"): _to_legacy_value(getattr(self, "accepted_tos_version", None), serialize),
|
|
623
|
+
("accountDeletionDate" if serialize else "account_deletion_date"): _to_legacy_value(getattr(self, "account_deletion_date", None), serialize),
|
|
624
|
+
("accountDeletionLog" if serialize else "account_deletion_log"): _to_legacy_value(getattr(self, "account_deletion_log", None), serialize),
|
|
625
|
+
("activeFriends" if serialize else "active_friends"): _to_legacy_value(getattr(self, "active_friends", None), serialize),
|
|
626
|
+
("ageVerificationStatus" if serialize else "age_verification_status"): _to_legacy_value(getattr(self, "age_verification_status", None), serialize),
|
|
627
|
+
("ageVerified" if serialize else "age_verified"): _to_legacy_value(getattr(self, "age_verified", None), serialize),
|
|
628
|
+
("allowAvatarCopying" if serialize else "allow_avatar_copying"): _to_legacy_value(getattr(self, "allow_avatar_copying", None), serialize),
|
|
629
|
+
("appleDetails" if serialize else "apple_details"): _to_legacy_value(getattr(self, "apple_details", None), serialize),
|
|
630
|
+
("appleId" if serialize else "apple_id"): _to_legacy_value(getattr(self, "apple_id", None), serialize),
|
|
631
|
+
("authToken" if serialize else "auth_token"): _to_legacy_value(getattr(self, "auth_token", None), serialize),
|
|
632
|
+
("badges" if serialize else "badges"): _to_legacy_value(getattr(self, "badges", None), serialize),
|
|
633
|
+
("bio" if serialize else "bio"): _to_legacy_value(getattr(self, "bio", None), serialize),
|
|
634
|
+
("bioLinks" if serialize else "bio_links"): _to_legacy_value(getattr(self, "bio_links", None), serialize),
|
|
635
|
+
("contentFilters" if serialize else "content_filters"): _to_legacy_value(getattr(self, "content_filters", None), serialize),
|
|
636
|
+
("currentAvatar" if serialize else "current_avatar"): _to_legacy_value(getattr(self, "current_avatar", None), serialize),
|
|
637
|
+
("currentAvatarImageUrl" if serialize else "current_avatar_image_url"): _to_legacy_value(getattr(self, "current_avatar_image_url", None), serialize),
|
|
638
|
+
("currentAvatarTags" if serialize else "current_avatar_tags"): _to_legacy_value(getattr(self, "current_avatar_tags", None), serialize),
|
|
639
|
+
("currentAvatarThumbnailImageUrl" if serialize else "current_avatar_thumbnail_image_url"): _to_legacy_value(getattr(self, "current_avatar_thumbnail_image_url", None), serialize),
|
|
640
|
+
("date_joined" if serialize else "date_joined"): _to_legacy_value(getattr(self, "date_joined", None), serialize),
|
|
641
|
+
("developerType" if serialize else "developer_type"): _to_legacy_value(getattr(self, "developer_type", None), serialize),
|
|
642
|
+
("discordDetails" if serialize else "discord_details"): _to_legacy_value(getattr(self, "discord_details", None), serialize),
|
|
643
|
+
("discordId" if serialize else "discord_id"): _to_legacy_value(getattr(self, "discord_id", None), serialize),
|
|
644
|
+
("displayName" if serialize else "display_name"): _to_legacy_value(getattr(self, "display_name", None), serialize),
|
|
645
|
+
("emailVerified" if serialize else "email_verified"): _to_legacy_value(getattr(self, "email_verified", None), serialize),
|
|
646
|
+
("fallbackAvatar" if serialize else "fallback_avatar"): _to_legacy_value(getattr(self, "fallback_avatar", None), serialize),
|
|
647
|
+
("friendGroupNames" if serialize else "friend_group_names"): _to_legacy_value(getattr(self, "friend_group_names", None), serialize),
|
|
648
|
+
("friendKey" if serialize else "friend_key"): _to_legacy_value(getattr(self, "friend_key", None), serialize),
|
|
649
|
+
("friends" if serialize else "friends"): _to_legacy_value(getattr(self, "friends", None), serialize),
|
|
650
|
+
("googleDetails" if serialize else "google_details"): _to_legacy_value(getattr(self, "google_details", None), serialize),
|
|
651
|
+
("googleId" if serialize else "google_id"): _to_legacy_value(getattr(self, "google_id", None), serialize),
|
|
652
|
+
("hasBirthday" if serialize else "has_birthday"): _to_legacy_value(getattr(self, "has_birthday", None), serialize),
|
|
653
|
+
("hasDiscordFriendsOptOut" if serialize else "has_discord_friends_opt_out"): _to_legacy_value(getattr(self, "has_discord_friends_opt_out", None), serialize),
|
|
654
|
+
("hasEmail" if serialize else "has_email"): _to_legacy_value(getattr(self, "has_email", None), serialize),
|
|
655
|
+
("hasLoggedInFromClient" if serialize else "has_logged_in_from_client"): _to_legacy_value(getattr(self, "has_logged_in_from_client", None), serialize),
|
|
656
|
+
("hasPendingEmail" if serialize else "has_pending_email"): _to_legacy_value(getattr(self, "has_pending_email", None), serialize),
|
|
657
|
+
("hasSharedConnectionsOptOut" if serialize else "has_shared_connections_opt_out"): _to_legacy_value(getattr(self, "has_shared_connections_opt_out", None), serialize),
|
|
658
|
+
("hideContentFilterSettings" if serialize else "hide_content_filter_settings"): _to_legacy_value(getattr(self, "hide_content_filter_settings", None), serialize),
|
|
659
|
+
("homeLocation" if serialize else "home_location"): _to_legacy_value(getattr(self, "home_location", None), serialize),
|
|
660
|
+
("id" if serialize else "id"): _to_legacy_value(getattr(self, "id", None), serialize),
|
|
661
|
+
("isAdult" if serialize else "is_adult"): _to_legacy_value(getattr(self, "is_adult", None), serialize),
|
|
662
|
+
("isBoopingEnabled" if serialize else "is_booping_enabled"): _to_legacy_value(getattr(self, "is_booping_enabled", None), serialize),
|
|
663
|
+
("isFriend" if serialize else "is_friend"): _to_legacy_value(getattr(self, "is_friend", None), serialize),
|
|
664
|
+
("last_activity" if serialize else "last_activity"): _to_legacy_value(getattr(self, "last_activity", None), serialize),
|
|
665
|
+
("last_login" if serialize else "last_login"): _to_legacy_value(getattr(self, "last_login", None), serialize),
|
|
666
|
+
("last_mobile" if serialize else "last_mobile"): _to_legacy_value(getattr(self, "last_mobile", None), serialize),
|
|
667
|
+
("last_platform" if serialize else "last_platform"): _to_legacy_value(getattr(self, "last_platform", None), serialize),
|
|
668
|
+
("obfuscatedEmail" if serialize else "obfuscated_email"): _to_legacy_value(getattr(self, "obfuscated_email", None), serialize),
|
|
669
|
+
("obfuscatedPendingEmail" if serialize else "obfuscated_pending_email"): _to_legacy_value(getattr(self, "obfuscated_pending_email", None), serialize),
|
|
670
|
+
("oculusId" if serialize else "oculus_id"): _to_legacy_value(getattr(self, "oculus_id", None), serialize),
|
|
671
|
+
("offlineFriends" if serialize else "offline_friends"): _to_legacy_value(getattr(self, "offline_friends", None), serialize),
|
|
672
|
+
("onlineFriends" if serialize else "online_friends"): _to_legacy_value(getattr(self, "online_friends", None), serialize),
|
|
673
|
+
("pastDisplayNames" if serialize else "past_display_names"): _to_legacy_value(getattr(self, "past_display_names", None), serialize),
|
|
674
|
+
("picoId" if serialize else "pico_id"): _to_legacy_value(getattr(self, "pico_id", None), serialize),
|
|
675
|
+
("platform_history" if serialize else "platform_history"): _to_legacy_value(getattr(self, "platform_history", None), serialize),
|
|
676
|
+
("presence" if serialize else "presence"): _to_legacy_value(getattr(self, "presence", None), serialize),
|
|
677
|
+
("profilePicOverride" if serialize else "profile_pic_override"): _to_legacy_value(getattr(self, "profile_pic_override", None), serialize),
|
|
678
|
+
("profilePicOverrideThumbnail" if serialize else "profile_pic_override_thumbnail"): _to_legacy_value(getattr(self, "profile_pic_override_thumbnail", None), serialize),
|
|
679
|
+
("pronouns" if serialize else "pronouns"): _to_legacy_value(getattr(self, "pronouns", None), serialize),
|
|
680
|
+
("pronounsHistory" if serialize else "pronouns_history"): _to_legacy_value(getattr(self, "pronouns_history", None), serialize),
|
|
681
|
+
("queuedInstance" if serialize else "queued_instance"): _to_legacy_value(getattr(self, "queued_instance", None), serialize),
|
|
682
|
+
("receiveMobileInvitations" if serialize else "receive_mobile_invitations"): _to_legacy_value(getattr(self, "receive_mobile_invitations", None), serialize),
|
|
683
|
+
("state" if serialize else "state"): _to_legacy_value(getattr(self, "state", None), serialize),
|
|
684
|
+
("status" if serialize else "status"): _to_legacy_value(getattr(self, "status", None), serialize),
|
|
685
|
+
("statusDescription" if serialize else "status_description"): _to_legacy_value(getattr(self, "status_description", None), serialize),
|
|
686
|
+
("statusFirstTime" if serialize else "status_first_time"): _to_legacy_value(getattr(self, "status_first_time", None), serialize),
|
|
687
|
+
("statusHistory" if serialize else "status_history"): _to_legacy_value(getattr(self, "status_history", None), serialize),
|
|
688
|
+
("steamDetails" if serialize else "steam_details"): _to_legacy_value(getattr(self, "steam_details", None), serialize),
|
|
689
|
+
("steamId" if serialize else "steam_id"): _to_legacy_value(getattr(self, "steam_id", None), serialize),
|
|
690
|
+
("tags" if serialize else "tags"): _to_legacy_value(getattr(self, "tags", None), serialize),
|
|
691
|
+
("twitchDetails" if serialize else "twitch_details"): _to_legacy_value(getattr(self, "twitch_details", None), serialize),
|
|
692
|
+
("twitchId" if serialize else "twitch_id"): _to_legacy_value(getattr(self, "twitch_id", None), serialize),
|
|
693
|
+
("twoFactorAuthEnabled" if serialize else "two_factor_auth_enabled"): _to_legacy_value(getattr(self, "two_factor_auth_enabled", None), serialize),
|
|
694
|
+
("twoFactorAuthEnabledDate" if serialize else "two_factor_auth_enabled_date"): _to_legacy_value(getattr(self, "two_factor_auth_enabled_date", None), serialize),
|
|
695
|
+
("unsubscribe" if serialize else "unsubscribe"): _to_legacy_value(getattr(self, "unsubscribe", None), serialize),
|
|
696
|
+
("updated_at" if serialize else "updated_at"): _to_legacy_value(getattr(self, "updated_at", None), serialize),
|
|
697
|
+
("userIcon" if serialize else "user_icon"): _to_legacy_value(getattr(self, "user_icon", None), serialize),
|
|
698
|
+
("userLanguage" if serialize else "user_language"): _to_legacy_value(getattr(self, "user_language", None), serialize),
|
|
699
|
+
("userLanguageCode" if serialize else "user_language_code"): _to_legacy_value(getattr(self, "user_language_code", None), serialize),
|
|
700
|
+
("username" if serialize else "username"): _to_legacy_value(getattr(self, "username", None), serialize),
|
|
701
|
+
("usesGeneratedPassword" if serialize else "uses_generated_password"): _to_legacy_value(getattr(self, "uses_generated_password", None), serialize),
|
|
702
|
+
("viveId" if serialize else "vive_id"): _to_legacy_value(getattr(self, "vive_id", None), serialize),
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
def __openapi_generator_modern_projection(self) -> Dict[str, Any]:
|
|
706
|
+
"""Return the dictionary representation of the model using alias.
|
|
707
|
+
|
|
708
|
+
This has the following differences from calling pydantic's
|
|
709
|
+
`self.model_dump(by_alias=True)`:
|
|
710
|
+
|
|
711
|
+
* `None` is only added to the output dict for nullable fields that
|
|
712
|
+
were set at model initialization. Other fields with value `None`
|
|
713
|
+
are ignored.
|
|
714
|
+
"""
|
|
715
|
+
excluded_fields: Set[str] = set([
|
|
716
|
+
])
|
|
717
|
+
|
|
718
|
+
_dict = self.model_dump(
|
|
719
|
+
by_alias=True,
|
|
720
|
+
exclude=excluded_fields,
|
|
721
|
+
exclude_none=True,
|
|
722
|
+
)
|
|
723
|
+
# override the default output from pydantic by calling `to_dict()` of each item in account_deletion_log (list)
|
|
724
|
+
_items = []
|
|
725
|
+
if self.account_deletion_log:
|
|
726
|
+
for _item_account_deletion_log in self.account_deletion_log:
|
|
727
|
+
if _item_account_deletion_log:
|
|
728
|
+
_items.append(_to_openapi_value(_item_account_deletion_log))
|
|
729
|
+
_dict['accountDeletionLog'] = _items
|
|
730
|
+
# override the default output from pydantic by calling `to_dict()` of each item in badges (list)
|
|
731
|
+
_items = []
|
|
732
|
+
if self.badges:
|
|
733
|
+
for _item_badges in self.badges:
|
|
734
|
+
if _item_badges:
|
|
735
|
+
_items.append(_to_openapi_value(_item_badges))
|
|
736
|
+
_dict['badges'] = _items
|
|
737
|
+
# override the default output from pydantic by calling `to_dict()` of discord_details
|
|
738
|
+
if self.discord_details:
|
|
739
|
+
_dict['discordDetails'] = _to_openapi_value(self.discord_details)
|
|
740
|
+
# override the default output from pydantic by calling `to_dict()` of each item in past_display_names (list)
|
|
741
|
+
_items = []
|
|
742
|
+
if self.past_display_names:
|
|
743
|
+
for _item_past_display_names in self.past_display_names:
|
|
744
|
+
if _item_past_display_names:
|
|
745
|
+
_items.append(_to_openapi_value(_item_past_display_names))
|
|
746
|
+
_dict['pastDisplayNames'] = _items
|
|
747
|
+
# override the default output from pydantic by calling `to_dict()` of each item in platform_history (list)
|
|
748
|
+
_items = []
|
|
749
|
+
if self.platform_history:
|
|
750
|
+
for _item_platform_history in self.platform_history:
|
|
751
|
+
if _item_platform_history:
|
|
752
|
+
_items.append(_to_openapi_value(_item_platform_history))
|
|
753
|
+
_dict['platform_history'] = _items
|
|
754
|
+
# override the default output from pydantic by calling `to_dict()` of presence
|
|
755
|
+
if self.presence:
|
|
756
|
+
_dict['presence'] = _to_openapi_value(self.presence)
|
|
757
|
+
# set to None if account_deletion_date (nullable) is None
|
|
758
|
+
# and model_fields_set contains the field
|
|
759
|
+
if self.account_deletion_date is None and "account_deletion_date" in self.model_fields_set:
|
|
760
|
+
_dict['accountDeletionDate'] = None
|
|
761
|
+
|
|
762
|
+
# set to None if account_deletion_log (nullable) is None
|
|
763
|
+
# and model_fields_set contains the field
|
|
764
|
+
if self.account_deletion_log is None and "account_deletion_log" in self.model_fields_set:
|
|
765
|
+
_dict['accountDeletionLog'] = None
|
|
766
|
+
|
|
767
|
+
# set to None if last_mobile (nullable) is None
|
|
768
|
+
# and model_fields_set contains the field
|
|
769
|
+
if self.last_mobile is None and "last_mobile" in self.model_fields_set:
|
|
770
|
+
_dict['last_mobile'] = None
|
|
771
|
+
|
|
772
|
+
# set to None if queued_instance (nullable) is None
|
|
773
|
+
# and model_fields_set contains the field
|
|
774
|
+
if self.queued_instance is None and "queued_instance" in self.model_fields_set:
|
|
775
|
+
_dict['queuedInstance'] = None
|
|
776
|
+
|
|
777
|
+
# set to None if two_factor_auth_enabled_date (nullable) is None
|
|
778
|
+
# and model_fields_set contains the field
|
|
779
|
+
if self.two_factor_auth_enabled_date is None and "two_factor_auth_enabled_date" in self.model_fields_set:
|
|
780
|
+
_dict['twoFactorAuthEnabledDate'] = None
|
|
781
|
+
|
|
782
|
+
# set to None if user_language (nullable) is None
|
|
783
|
+
# and model_fields_set contains the field
|
|
784
|
+
if self.user_language is None and "user_language" in self.model_fields_set:
|
|
785
|
+
_dict['userLanguage'] = None
|
|
786
|
+
|
|
787
|
+
# set to None if user_language_code (nullable) is None
|
|
788
|
+
# and model_fields_set contains the field
|
|
789
|
+
if self.user_language_code is None and "user_language_code" in self.model_fields_set:
|
|
790
|
+
_dict['userLanguageCode'] = None
|
|
791
|
+
|
|
792
|
+
return _dict
|
|
793
|
+
|
|
794
|
+
setattr(
|
|
795
|
+
to_dict,
|
|
796
|
+
_OPENAPI_GENERATOR_TO_DICT,
|
|
797
|
+
__openapi_generator_modern_projection,
|
|
798
|
+
)
|
|
799
|
+
setattr(
|
|
800
|
+
__openapi_generator_modern_projection,
|
|
801
|
+
_OPENAPI_GENERATOR_TO_DICT,
|
|
802
|
+
to_dict,
|
|
803
|
+
)
|
|
804
|
+
del __openapi_generator_modern_projection
|
|
805
|
+
|
|
806
|
+
@classmethod
|
|
807
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
808
|
+
"""Create an instance of CurrentUser from a dict"""
|
|
809
|
+
if obj is None:
|
|
810
|
+
return None
|
|
811
|
+
|
|
812
|
+
if not isinstance(obj, dict):
|
|
813
|
+
return cls.model_validate(obj)
|
|
814
|
+
|
|
815
|
+
obj = _cast(
|
|
816
|
+
Dict[str, Any],
|
|
817
|
+
cls.__preprocess_input_names(
|
|
818
|
+
obj,
|
|
819
|
+
remove_hidden_storage_names=True,
|
|
820
|
+
),
|
|
821
|
+
)
|
|
822
|
+
|
|
823
|
+
_obj = cls.model_validate({
|
|
824
|
+
"acceptedPrivacyVersion": obj.get("acceptedPrivacyVersion"),
|
|
825
|
+
"acceptedTOSVersion": obj.get("acceptedTOSVersion"),
|
|
826
|
+
"accountDeletionDate": obj.get("accountDeletionDate"),
|
|
827
|
+
"accountDeletionLog": [AccountDeletionLog.from_dict(_item) for _item in obj["accountDeletionLog"]] if obj.get("accountDeletionLog") is not None else None,
|
|
828
|
+
"activeFriends": obj.get("activeFriends"),
|
|
829
|
+
"ageVerificationStatus": obj.get("ageVerificationStatus"),
|
|
830
|
+
"ageVerified": obj.get("ageVerified"),
|
|
831
|
+
"allowAvatarCopying": obj.get("allowAvatarCopying"),
|
|
832
|
+
"appleDetails": obj.get("appleDetails"),
|
|
833
|
+
"appleId": obj.get("appleId"),
|
|
834
|
+
"authToken": obj.get("authToken"),
|
|
835
|
+
"badges": [Badge.from_dict(_item) for _item in obj["badges"]] if obj.get("badges") is not None else None,
|
|
836
|
+
"bio": obj.get("bio"),
|
|
837
|
+
"bioLinks": obj.get("bioLinks"),
|
|
838
|
+
"contentFilters": obj.get("contentFilters"),
|
|
839
|
+
"currentAvatar": obj.get("currentAvatar"),
|
|
840
|
+
"currentAvatarImageUrl": obj.get("currentAvatarImageUrl"),
|
|
841
|
+
"currentAvatarTags": obj.get("currentAvatarTags"),
|
|
842
|
+
"currentAvatarThumbnailImageUrl": obj.get("currentAvatarThumbnailImageUrl"),
|
|
843
|
+
"date_joined": obj.get("date_joined"),
|
|
844
|
+
"developerType": obj.get("developerType") if obj.get("developerType") is not None else DeveloperType.NONE,
|
|
845
|
+
"discordDetails": DiscordDetails.from_dict(obj["discordDetails"]) if obj.get("discordDetails") is not None else None,
|
|
846
|
+
"discordId": obj.get("discordId"),
|
|
847
|
+
"displayName": obj.get("displayName"),
|
|
848
|
+
"emailVerified": obj.get("emailVerified"),
|
|
849
|
+
"fallbackAvatar": obj.get("fallbackAvatar"),
|
|
850
|
+
"friendGroupNames": obj.get("friendGroupNames"),
|
|
851
|
+
"friendKey": obj.get("friendKey"),
|
|
852
|
+
"friends": obj.get("friends"),
|
|
853
|
+
"googleDetails": obj.get("googleDetails"),
|
|
854
|
+
"googleId": obj.get("googleId"),
|
|
855
|
+
"hasBirthday": obj.get("hasBirthday"),
|
|
856
|
+
"hasDiscordFriendsOptOut": obj.get("hasDiscordFriendsOptOut"),
|
|
857
|
+
"hasEmail": obj.get("hasEmail"),
|
|
858
|
+
"hasLoggedInFromClient": obj.get("hasLoggedInFromClient"),
|
|
859
|
+
"hasPendingEmail": obj.get("hasPendingEmail"),
|
|
860
|
+
"hasSharedConnectionsOptOut": obj.get("hasSharedConnectionsOptOut"),
|
|
861
|
+
"hideContentFilterSettings": obj.get("hideContentFilterSettings"),
|
|
862
|
+
"homeLocation": obj.get("homeLocation"),
|
|
863
|
+
"id": obj.get("id"),
|
|
864
|
+
"isAdult": obj.get("isAdult"),
|
|
865
|
+
"isBoopingEnabled": obj.get("isBoopingEnabled") if obj.get("isBoopingEnabled") is not None else True,
|
|
866
|
+
"isFriend": obj.get("isFriend") if obj.get("isFriend") is not None else False,
|
|
867
|
+
"last_activity": obj.get("last_activity"),
|
|
868
|
+
"last_login": obj.get("last_login"),
|
|
869
|
+
"last_mobile": obj.get("last_mobile"),
|
|
870
|
+
"last_platform": obj.get("last_platform"),
|
|
871
|
+
"obfuscatedEmail": obj.get("obfuscatedEmail"),
|
|
872
|
+
"obfuscatedPendingEmail": obj.get("obfuscatedPendingEmail"),
|
|
873
|
+
"oculusId": obj.get("oculusId"),
|
|
874
|
+
"offlineFriends": obj.get("offlineFriends"),
|
|
875
|
+
"onlineFriends": obj.get("onlineFriends"),
|
|
876
|
+
"pastDisplayNames": [PastDisplayName.from_dict(_item) for _item in obj["pastDisplayNames"]] if obj.get("pastDisplayNames") is not None else None,
|
|
877
|
+
"picoId": obj.get("picoId"),
|
|
878
|
+
"platform_history": [CurrentUserPlatformHistoryInner.from_dict(_item) for _item in obj["platform_history"]] if obj.get("platform_history") is not None else None,
|
|
879
|
+
"presence": CurrentUserPresence.from_dict(obj["presence"]) if obj.get("presence") is not None else None,
|
|
880
|
+
"profilePicOverride": obj.get("profilePicOverride"),
|
|
881
|
+
"profilePicOverrideThumbnail": obj.get("profilePicOverrideThumbnail"),
|
|
882
|
+
"pronouns": obj.get("pronouns"),
|
|
883
|
+
"pronounsHistory": obj.get("pronounsHistory"),
|
|
884
|
+
"queuedInstance": obj.get("queuedInstance"),
|
|
885
|
+
"receiveMobileInvitations": obj.get("receiveMobileInvitations"),
|
|
886
|
+
"state": obj.get("state") if obj.get("state") is not None else UserState.OFFLINE,
|
|
887
|
+
"status": obj.get("status") if obj.get("status") is not None else UserStatus.OFFLINE,
|
|
888
|
+
"statusDescription": obj.get("statusDescription"),
|
|
889
|
+
"statusFirstTime": obj.get("statusFirstTime"),
|
|
890
|
+
"statusHistory": obj.get("statusHistory"),
|
|
891
|
+
"steamDetails": obj.get("steamDetails"),
|
|
892
|
+
"steamId": obj.get("steamId"),
|
|
893
|
+
"tags": obj.get("tags"),
|
|
894
|
+
"twitchDetails": obj.get("twitchDetails"),
|
|
895
|
+
"twitchId": obj.get("twitchId"),
|
|
896
|
+
"twoFactorAuthEnabled": obj.get("twoFactorAuthEnabled"),
|
|
897
|
+
"twoFactorAuthEnabledDate": obj.get("twoFactorAuthEnabledDate"),
|
|
898
|
+
"unsubscribe": obj.get("unsubscribe"),
|
|
899
|
+
"updated_at": obj.get("updated_at"),
|
|
900
|
+
"userIcon": obj.get("userIcon"),
|
|
901
|
+
"userLanguage": obj.get("userLanguage"),
|
|
902
|
+
"userLanguageCode": obj.get("userLanguageCode"),
|
|
903
|
+
"username": obj.get("username"),
|
|
904
|
+
"usesGeneratedPassword": obj.get("usesGeneratedPassword"),
|
|
905
|
+
"viveId": obj.get("viveId")
|
|
906
|
+
})
|
|
907
|
+
return _obj
|
|
908
|
+
|
|
909
|
+
|