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,415 @@
|
|
|
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 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 vrchatapi.models.group_member_limited_user import GroupMemberLimitedUser
|
|
25
|
+
from vrchatapi.models.group_member_status import GroupMemberStatus
|
|
26
|
+
from typing import Optional, Set
|
|
27
|
+
from typing_extensions import Self
|
|
28
|
+
from pydantic_core import to_jsonable_python
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
_OPENAPI_GENERATOR_TO_DICT = "_openapi_generator_to_dict"
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _get_openapi_to_dict(value: Any) -> Any:
|
|
35
|
+
# Reciprocal function references preserve inherited generated methods
|
|
36
|
+
# without reserving model member names. Checking both directions also
|
|
37
|
+
# rejects overrides whose decorators copy function attributes.
|
|
38
|
+
to_dict = getattr(value, "to_dict", None)
|
|
39
|
+
type_to_dict = getattr(type(value), "to_dict", None)
|
|
40
|
+
if (
|
|
41
|
+
not callable(to_dict)
|
|
42
|
+
or getattr(to_dict, "__func__", None) is not type_to_dict
|
|
43
|
+
):
|
|
44
|
+
return None
|
|
45
|
+
|
|
46
|
+
openapi_to_dict = getattr(
|
|
47
|
+
type_to_dict, _OPENAPI_GENERATOR_TO_DICT, None
|
|
48
|
+
)
|
|
49
|
+
if (
|
|
50
|
+
not callable(openapi_to_dict)
|
|
51
|
+
or getattr(
|
|
52
|
+
openapi_to_dict,
|
|
53
|
+
_OPENAPI_GENERATOR_TO_DICT,
|
|
54
|
+
None,
|
|
55
|
+
) is not type_to_dict
|
|
56
|
+
):
|
|
57
|
+
return None
|
|
58
|
+
return openapi_to_dict
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
def _to_legacy_item(value: Any, serialize: bool) -> Any:
|
|
62
|
+
to_dict = getattr(value, "to_dict", None)
|
|
63
|
+
if _get_openapi_to_dict(value) is not None and callable(to_dict):
|
|
64
|
+
return to_dict(serialize=serialize)
|
|
65
|
+
if callable(to_dict):
|
|
66
|
+
return to_dict()
|
|
67
|
+
return value
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def _to_legacy_value(value: Any, serialize: bool) -> Any:
|
|
71
|
+
# python-legacy converted only immediate list elements or dictionary values:
|
|
72
|
+
# https://github.com/OpenAPITools/openapi-generator/blob/c84b949df1a9ec04ba75989cb49b45c940c2f694/modules/openapi-generator/src/main/resources/python-legacy/model.mustache#L203-L231
|
|
73
|
+
if isinstance(value, list):
|
|
74
|
+
return [_to_legacy_item(item, serialize) for item in value]
|
|
75
|
+
if isinstance(value, dict):
|
|
76
|
+
return {
|
|
77
|
+
key: _to_legacy_item(item, serialize)
|
|
78
|
+
for key, item in value.items()
|
|
79
|
+
}
|
|
80
|
+
return _to_legacy_item(value, serialize)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def _to_openapi_value(value: Any) -> Any:
|
|
84
|
+
if isinstance(value, list):
|
|
85
|
+
return [_to_openapi_value(item) for item in value]
|
|
86
|
+
if isinstance(value, dict):
|
|
87
|
+
return {key: _to_openapi_value(item) for key, item in value.items()}
|
|
88
|
+
|
|
89
|
+
to_openapi_dict = _get_openapi_to_dict(value)
|
|
90
|
+
if to_openapi_dict is not None:
|
|
91
|
+
return to_openapi_dict(value)
|
|
92
|
+
|
|
93
|
+
to_dict = getattr(value, "to_dict", None)
|
|
94
|
+
if callable(to_dict):
|
|
95
|
+
return to_dict()
|
|
96
|
+
return value
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
class GroupMember(BaseModel):
|
|
100
|
+
"""
|
|
101
|
+
May be null when attempting to retrieve group membership for a user who is not part of the group
|
|
102
|
+
|
|
103
|
+
Attributes:
|
|
104
|
+
openapi_types (dict): The key is attribute name
|
|
105
|
+
and the value is attribute type.
|
|
106
|
+
attribute_map (dict): The key is attribute name
|
|
107
|
+
and the value is json key in definition.
|
|
108
|
+
""" # noqa: E501
|
|
109
|
+
accepted_by_display_name: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("acceptedByDisplayName", "accepted_by_display_name"), serialization_alias="acceptedByDisplayName", description="Only missing when explicitly fetching own user.")
|
|
110
|
+
accepted_by_id: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("acceptedById", "accepted_by_id"), serialization_alias="acceptedById", description="Only missing when explicitly fetching own user.")
|
|
111
|
+
banned_at: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("bannedAt", "banned_at"), serialization_alias="bannedAt", description="Only missing when explicitly fetching own user.")
|
|
112
|
+
created_at: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("createdAt", "created_at"), serialization_alias="createdAt", description="Only missing when explicitly fetching own user.")
|
|
113
|
+
group_id: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("groupId", "group_id"), serialization_alias="groupId", json_schema_extra={"examples": ["grp_71a7ff59-112c-4e78-a990-c7cc650776e5"]})
|
|
114
|
+
has_joined_from_purchase: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("hasJoinedFromPurchase", "has_joined_from_purchase"), serialization_alias="hasJoinedFromPurchase", description="Missing when explicitly fetching own user, or when group isn't linked to a purchase.")
|
|
115
|
+
id: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["gmem_95cdb3b4-4643-4eb6-bdab-46a4e1e5ce37"]})
|
|
116
|
+
is_representing: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("isRepresenting", "is_representing"), serialization_alias="isRepresenting", description="Whether the user is representing the group. This makes the group show up above the name tag in-game.", json_schema_extra={"examples": [True]})
|
|
117
|
+
is_subscribed_to_announcements: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("isSubscribedToAnnouncements", "is_subscribed_to_announcements"), serialization_alias="isSubscribedToAnnouncements")
|
|
118
|
+
is_subscribed_to_event_announcements: Optional[StrictBool] = Field(default=None, validation_alias=AliasChoices("isSubscribedToEventAnnouncements", "is_subscribed_to_event_announcements"), serialization_alias="isSubscribedToEventAnnouncements", description="Only missing when explicitly fetching own user.")
|
|
119
|
+
joined_at: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("joinedAt", "joined_at"), serialization_alias="joinedAt")
|
|
120
|
+
last_post_read_at: Optional[datetime] = Field(default=None, validation_alias=AliasChoices("lastPostReadAt", "last_post_read_at"), serialization_alias="lastPostReadAt")
|
|
121
|
+
m_role_ids: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("mRoleIds", "m_role_ids"), serialization_alias="mRoleIds")
|
|
122
|
+
manager_notes: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("managerNotes", "manager_notes"), serialization_alias="managerNotes", description="Only missing when explicitly fetching own user.")
|
|
123
|
+
membership_status: Optional[GroupMemberStatus] = Field(default=None, validation_alias=AliasChoices("membershipStatus", "membership_status"), serialization_alias="membershipStatus")
|
|
124
|
+
role_ids: Optional[List[StrictStr]] = Field(default=None, validation_alias=AliasChoices("roleIds", "role_ids"), serialization_alias="roleIds")
|
|
125
|
+
user: Optional[GroupMemberLimitedUser] = None
|
|
126
|
+
user_id: Optional[StrictStr] = Field(default=None, validation_alias=AliasChoices("userId", "user_id"), serialization_alias="userId", 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"]})
|
|
127
|
+
visibility: Optional[StrictStr] = Field(default=None, json_schema_extra={"examples": ["visible"]})
|
|
128
|
+
openapi_types: ClassVar[Dict[str, str]] = {
|
|
129
|
+
"accepted_by_display_name": "str",
|
|
130
|
+
"accepted_by_id": "str",
|
|
131
|
+
"banned_at": "datetime",
|
|
132
|
+
"created_at": "datetime",
|
|
133
|
+
"group_id": "str",
|
|
134
|
+
"has_joined_from_purchase": "bool",
|
|
135
|
+
"id": "str",
|
|
136
|
+
"is_representing": "bool",
|
|
137
|
+
"is_subscribed_to_announcements": "bool",
|
|
138
|
+
"is_subscribed_to_event_announcements": "bool",
|
|
139
|
+
"joined_at": "datetime",
|
|
140
|
+
"last_post_read_at": "datetime",
|
|
141
|
+
"m_role_ids": "List[str]",
|
|
142
|
+
"manager_notes": "str",
|
|
143
|
+
"membership_status": "GroupMemberStatus",
|
|
144
|
+
"role_ids": "List[str]",
|
|
145
|
+
"user": "GroupMemberLimitedUser",
|
|
146
|
+
"user_id": "str",
|
|
147
|
+
"visibility": "str"
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
attribute_map: ClassVar[Dict[str, str]] = {
|
|
151
|
+
"accepted_by_display_name": "acceptedByDisplayName",
|
|
152
|
+
"accepted_by_id": "acceptedById",
|
|
153
|
+
"banned_at": "bannedAt",
|
|
154
|
+
"created_at": "createdAt",
|
|
155
|
+
"group_id": "groupId",
|
|
156
|
+
"has_joined_from_purchase": "hasJoinedFromPurchase",
|
|
157
|
+
"id": "id",
|
|
158
|
+
"is_representing": "isRepresenting",
|
|
159
|
+
"is_subscribed_to_announcements": "isSubscribedToAnnouncements",
|
|
160
|
+
"is_subscribed_to_event_announcements": "isSubscribedToEventAnnouncements",
|
|
161
|
+
"joined_at": "joinedAt",
|
|
162
|
+
"last_post_read_at": "lastPostReadAt",
|
|
163
|
+
"m_role_ids": "mRoleIds",
|
|
164
|
+
"manager_notes": "managerNotes",
|
|
165
|
+
"membership_status": "membershipStatus",
|
|
166
|
+
"role_ids": "roleIds",
|
|
167
|
+
"user": "user",
|
|
168
|
+
"user_id": "userId",
|
|
169
|
+
"visibility": "visibility"
|
|
170
|
+
}
|
|
171
|
+
__properties: ClassVar[List[str]] = ["acceptedByDisplayName", "acceptedById", "bannedAt", "createdAt", "groupId", "hasJoinedFromPurchase", "id", "isRepresenting", "isSubscribedToAnnouncements", "isSubscribedToEventAnnouncements", "joinedAt", "lastPostReadAt", "mRoleIds", "managerNotes", "membershipStatus", "roleIds", "user", "userId", "visibility"]
|
|
172
|
+
|
|
173
|
+
@classmethod
|
|
174
|
+
def __preprocess_input_names(
|
|
175
|
+
cls,
|
|
176
|
+
obj: Any,
|
|
177
|
+
remove_hidden_storage_names: bool = True,
|
|
178
|
+
) -> Any:
|
|
179
|
+
if not isinstance(obj, _Mapping):
|
|
180
|
+
return obj
|
|
181
|
+
obj = dict(obj)
|
|
182
|
+
if "acceptedByDisplayName" not in obj and "accepted_by_display_name" in obj:
|
|
183
|
+
obj["acceptedByDisplayName"] = obj["accepted_by_display_name"]
|
|
184
|
+
obj.pop("accepted_by_display_name", None)
|
|
185
|
+
if "acceptedById" not in obj and "accepted_by_id" in obj:
|
|
186
|
+
obj["acceptedById"] = obj["accepted_by_id"]
|
|
187
|
+
obj.pop("accepted_by_id", None)
|
|
188
|
+
if "bannedAt" not in obj and "banned_at" in obj:
|
|
189
|
+
obj["bannedAt"] = obj["banned_at"]
|
|
190
|
+
obj.pop("banned_at", None)
|
|
191
|
+
if "createdAt" not in obj and "created_at" in obj:
|
|
192
|
+
obj["createdAt"] = obj["created_at"]
|
|
193
|
+
obj.pop("created_at", None)
|
|
194
|
+
if "groupId" not in obj and "group_id" in obj:
|
|
195
|
+
obj["groupId"] = obj["group_id"]
|
|
196
|
+
obj.pop("group_id", None)
|
|
197
|
+
if "hasJoinedFromPurchase" not in obj and "has_joined_from_purchase" in obj:
|
|
198
|
+
obj["hasJoinedFromPurchase"] = obj["has_joined_from_purchase"]
|
|
199
|
+
obj.pop("has_joined_from_purchase", None)
|
|
200
|
+
if "isRepresenting" not in obj and "is_representing" in obj:
|
|
201
|
+
obj["isRepresenting"] = obj["is_representing"]
|
|
202
|
+
obj.pop("is_representing", None)
|
|
203
|
+
if "isSubscribedToAnnouncements" not in obj and "is_subscribed_to_announcements" in obj:
|
|
204
|
+
obj["isSubscribedToAnnouncements"] = obj["is_subscribed_to_announcements"]
|
|
205
|
+
obj.pop("is_subscribed_to_announcements", None)
|
|
206
|
+
if "isSubscribedToEventAnnouncements" not in obj and "is_subscribed_to_event_announcements" in obj:
|
|
207
|
+
obj["isSubscribedToEventAnnouncements"] = obj["is_subscribed_to_event_announcements"]
|
|
208
|
+
obj.pop("is_subscribed_to_event_announcements", None)
|
|
209
|
+
if "joinedAt" not in obj and "joined_at" in obj:
|
|
210
|
+
obj["joinedAt"] = obj["joined_at"]
|
|
211
|
+
obj.pop("joined_at", None)
|
|
212
|
+
if "lastPostReadAt" not in obj and "last_post_read_at" in obj:
|
|
213
|
+
obj["lastPostReadAt"] = obj["last_post_read_at"]
|
|
214
|
+
obj.pop("last_post_read_at", None)
|
|
215
|
+
if "mRoleIds" not in obj and "m_role_ids" in obj:
|
|
216
|
+
obj["mRoleIds"] = obj["m_role_ids"]
|
|
217
|
+
obj.pop("m_role_ids", None)
|
|
218
|
+
if "managerNotes" not in obj and "manager_notes" in obj:
|
|
219
|
+
obj["managerNotes"] = obj["manager_notes"]
|
|
220
|
+
obj.pop("manager_notes", None)
|
|
221
|
+
if "membershipStatus" not in obj and "membership_status" in obj:
|
|
222
|
+
obj["membershipStatus"] = obj["membership_status"]
|
|
223
|
+
obj.pop("membership_status", None)
|
|
224
|
+
if "roleIds" not in obj and "role_ids" in obj:
|
|
225
|
+
obj["roleIds"] = obj["role_ids"]
|
|
226
|
+
obj.pop("role_ids", None)
|
|
227
|
+
if "userId" not in obj and "user_id" in obj:
|
|
228
|
+
obj["userId"] = obj["user_id"]
|
|
229
|
+
obj.pop("user_id", None)
|
|
230
|
+
return obj
|
|
231
|
+
|
|
232
|
+
model_config = ConfigDict(
|
|
233
|
+
validate_by_name=True,
|
|
234
|
+
validate_by_alias=True,
|
|
235
|
+
validate_assignment=True,
|
|
236
|
+
extra="forbid",
|
|
237
|
+
protected_namespaces=(),
|
|
238
|
+
)
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
def to_str(self) -> str:
|
|
242
|
+
"""Returns the string representation of the model"""
|
|
243
|
+
return pprint.pformat(self.to_dict())
|
|
244
|
+
|
|
245
|
+
def __repr__(self) -> str:
|
|
246
|
+
"""For print and pprint"""
|
|
247
|
+
return self.to_str()
|
|
248
|
+
|
|
249
|
+
def __eq__(self, other: object) -> bool:
|
|
250
|
+
"""Returns true if both objects are equal"""
|
|
251
|
+
if not isinstance(other, GroupMember):
|
|
252
|
+
return False
|
|
253
|
+
|
|
254
|
+
return self.to_dict() == other.to_dict()
|
|
255
|
+
|
|
256
|
+
def __ne__(self, other: object) -> bool:
|
|
257
|
+
"""Returns true if both objects are not equal"""
|
|
258
|
+
if not isinstance(other, GroupMember):
|
|
259
|
+
return True
|
|
260
|
+
|
|
261
|
+
return not (self == other)
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
def to_json(self) -> str:
|
|
265
|
+
"""Returns the JSON representation of the model using alias"""
|
|
266
|
+
to_openapi_dict = _get_openapi_to_dict(self)
|
|
267
|
+
if to_openapi_dict is not None:
|
|
268
|
+
return json.dumps(to_jsonable_python(to_openapi_dict(self)))
|
|
269
|
+
return json.dumps(to_jsonable_python(self.to_dict()))
|
|
270
|
+
|
|
271
|
+
@classmethod
|
|
272
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
273
|
+
"""Create an instance of GroupMember from a JSON string"""
|
|
274
|
+
return cls.from_dict(json.loads(json_str))
|
|
275
|
+
|
|
276
|
+
def to_dict(self, serialize: bool = False) -> Dict[str, Any]:
|
|
277
|
+
"""Return all declared model fields using public or wire names."""
|
|
278
|
+
return {
|
|
279
|
+
("acceptedByDisplayName" if serialize else "accepted_by_display_name"): _to_legacy_value(getattr(self, "accepted_by_display_name", None), serialize),
|
|
280
|
+
("acceptedById" if serialize else "accepted_by_id"): _to_legacy_value(getattr(self, "accepted_by_id", None), serialize),
|
|
281
|
+
("bannedAt" if serialize else "banned_at"): _to_legacy_value(getattr(self, "banned_at", None), serialize),
|
|
282
|
+
("createdAt" if serialize else "created_at"): _to_legacy_value(getattr(self, "created_at", None), serialize),
|
|
283
|
+
("groupId" if serialize else "group_id"): _to_legacy_value(getattr(self, "group_id", None), serialize),
|
|
284
|
+
("hasJoinedFromPurchase" if serialize else "has_joined_from_purchase"): _to_legacy_value(getattr(self, "has_joined_from_purchase", None), serialize),
|
|
285
|
+
("id" if serialize else "id"): _to_legacy_value(getattr(self, "id", None), serialize),
|
|
286
|
+
("isRepresenting" if serialize else "is_representing"): _to_legacy_value(getattr(self, "is_representing", None), serialize),
|
|
287
|
+
("isSubscribedToAnnouncements" if serialize else "is_subscribed_to_announcements"): _to_legacy_value(getattr(self, "is_subscribed_to_announcements", None), serialize),
|
|
288
|
+
("isSubscribedToEventAnnouncements" if serialize else "is_subscribed_to_event_announcements"): _to_legacy_value(getattr(self, "is_subscribed_to_event_announcements", None), serialize),
|
|
289
|
+
("joinedAt" if serialize else "joined_at"): _to_legacy_value(getattr(self, "joined_at", None), serialize),
|
|
290
|
+
("lastPostReadAt" if serialize else "last_post_read_at"): _to_legacy_value(getattr(self, "last_post_read_at", None), serialize),
|
|
291
|
+
("mRoleIds" if serialize else "m_role_ids"): _to_legacy_value(getattr(self, "m_role_ids", None), serialize),
|
|
292
|
+
("managerNotes" if serialize else "manager_notes"): _to_legacy_value(getattr(self, "manager_notes", None), serialize),
|
|
293
|
+
("membershipStatus" if serialize else "membership_status"): _to_legacy_value(getattr(self, "membership_status", None), serialize),
|
|
294
|
+
("roleIds" if serialize else "role_ids"): _to_legacy_value(getattr(self, "role_ids", None), serialize),
|
|
295
|
+
("user" if serialize else "user"): _to_legacy_value(getattr(self, "user", None), serialize),
|
|
296
|
+
("userId" if serialize else "user_id"): _to_legacy_value(getattr(self, "user_id", None), serialize),
|
|
297
|
+
("visibility" if serialize else "visibility"): _to_legacy_value(getattr(self, "visibility", None), serialize),
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
def __openapi_generator_modern_projection(self) -> Dict[str, Any]:
|
|
301
|
+
"""Return the dictionary representation of the model using alias.
|
|
302
|
+
|
|
303
|
+
This has the following differences from calling pydantic's
|
|
304
|
+
`self.model_dump(by_alias=True)`:
|
|
305
|
+
|
|
306
|
+
* `None` is only added to the output dict for nullable fields that
|
|
307
|
+
were set at model initialization. Other fields with value `None`
|
|
308
|
+
are ignored.
|
|
309
|
+
"""
|
|
310
|
+
excluded_fields: Set[str] = set([
|
|
311
|
+
])
|
|
312
|
+
|
|
313
|
+
_dict = self.model_dump(
|
|
314
|
+
by_alias=True,
|
|
315
|
+
exclude=excluded_fields,
|
|
316
|
+
exclude_none=True,
|
|
317
|
+
)
|
|
318
|
+
# override the default output from pydantic by calling `to_dict()` of user
|
|
319
|
+
if self.user:
|
|
320
|
+
_dict['user'] = _to_openapi_value(self.user)
|
|
321
|
+
# set to None if accepted_by_display_name (nullable) is None
|
|
322
|
+
# and model_fields_set contains the field
|
|
323
|
+
if self.accepted_by_display_name is None and "accepted_by_display_name" in self.model_fields_set:
|
|
324
|
+
_dict['acceptedByDisplayName'] = None
|
|
325
|
+
|
|
326
|
+
# set to None if accepted_by_id (nullable) is None
|
|
327
|
+
# and model_fields_set contains the field
|
|
328
|
+
if self.accepted_by_id is None and "accepted_by_id" in self.model_fields_set:
|
|
329
|
+
_dict['acceptedById'] = None
|
|
330
|
+
|
|
331
|
+
# set to None if banned_at (nullable) is None
|
|
332
|
+
# and model_fields_set contains the field
|
|
333
|
+
if self.banned_at is None and "banned_at" in self.model_fields_set:
|
|
334
|
+
_dict['bannedAt'] = None
|
|
335
|
+
|
|
336
|
+
# set to None if created_at (nullable) is None
|
|
337
|
+
# and model_fields_set contains the field
|
|
338
|
+
if self.created_at is None and "created_at" in self.model_fields_set:
|
|
339
|
+
_dict['createdAt'] = None
|
|
340
|
+
|
|
341
|
+
# set to None if joined_at (nullable) is None
|
|
342
|
+
# and model_fields_set contains the field
|
|
343
|
+
if self.joined_at is None and "joined_at" in self.model_fields_set:
|
|
344
|
+
_dict['joinedAt'] = None
|
|
345
|
+
|
|
346
|
+
# set to None if last_post_read_at (nullable) is None
|
|
347
|
+
# and model_fields_set contains the field
|
|
348
|
+
if self.last_post_read_at is None and "last_post_read_at" in self.model_fields_set:
|
|
349
|
+
_dict['lastPostReadAt'] = None
|
|
350
|
+
|
|
351
|
+
# set to None if manager_notes (nullable) is None
|
|
352
|
+
# and model_fields_set contains the field
|
|
353
|
+
if self.manager_notes is None and "manager_notes" in self.model_fields_set:
|
|
354
|
+
_dict['managerNotes'] = None
|
|
355
|
+
|
|
356
|
+
# set to None if user (nullable) is None
|
|
357
|
+
# and model_fields_set contains the field
|
|
358
|
+
if self.user is None and "user" in self.model_fields_set:
|
|
359
|
+
_dict['user'] = None
|
|
360
|
+
|
|
361
|
+
return _dict
|
|
362
|
+
|
|
363
|
+
setattr(
|
|
364
|
+
to_dict,
|
|
365
|
+
_OPENAPI_GENERATOR_TO_DICT,
|
|
366
|
+
__openapi_generator_modern_projection,
|
|
367
|
+
)
|
|
368
|
+
setattr(
|
|
369
|
+
__openapi_generator_modern_projection,
|
|
370
|
+
_OPENAPI_GENERATOR_TO_DICT,
|
|
371
|
+
to_dict,
|
|
372
|
+
)
|
|
373
|
+
del __openapi_generator_modern_projection
|
|
374
|
+
|
|
375
|
+
@classmethod
|
|
376
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
377
|
+
"""Create an instance of GroupMember from a dict"""
|
|
378
|
+
if obj is None:
|
|
379
|
+
return None
|
|
380
|
+
|
|
381
|
+
if not isinstance(obj, dict):
|
|
382
|
+
return cls.model_validate(obj)
|
|
383
|
+
|
|
384
|
+
obj = _cast(
|
|
385
|
+
Dict[str, Any],
|
|
386
|
+
cls.__preprocess_input_names(
|
|
387
|
+
obj,
|
|
388
|
+
remove_hidden_storage_names=True,
|
|
389
|
+
),
|
|
390
|
+
)
|
|
391
|
+
|
|
392
|
+
_obj = cls.model_validate({
|
|
393
|
+
"acceptedByDisplayName": obj.get("acceptedByDisplayName"),
|
|
394
|
+
"acceptedById": obj.get("acceptedById"),
|
|
395
|
+
"bannedAt": obj.get("bannedAt"),
|
|
396
|
+
"createdAt": obj.get("createdAt"),
|
|
397
|
+
"groupId": obj.get("groupId"),
|
|
398
|
+
"hasJoinedFromPurchase": obj.get("hasJoinedFromPurchase"),
|
|
399
|
+
"id": obj.get("id"),
|
|
400
|
+
"isRepresenting": obj.get("isRepresenting") if obj.get("isRepresenting") is not None else False,
|
|
401
|
+
"isSubscribedToAnnouncements": obj.get("isSubscribedToAnnouncements") if obj.get("isSubscribedToAnnouncements") is not None else False,
|
|
402
|
+
"isSubscribedToEventAnnouncements": obj.get("isSubscribedToEventAnnouncements"),
|
|
403
|
+
"joinedAt": obj.get("joinedAt"),
|
|
404
|
+
"lastPostReadAt": obj.get("lastPostReadAt"),
|
|
405
|
+
"mRoleIds": obj.get("mRoleIds"),
|
|
406
|
+
"managerNotes": obj.get("managerNotes"),
|
|
407
|
+
"membershipStatus": obj.get("membershipStatus") if obj.get("membershipStatus") is not None else GroupMemberStatus.INACTIVE,
|
|
408
|
+
"roleIds": obj.get("roleIds"),
|
|
409
|
+
"user": GroupMemberLimitedUser.from_dict(obj["user"]) if obj.get("user") is not None else None,
|
|
410
|
+
"userId": obj.get("userId"),
|
|
411
|
+
"visibility": obj.get("visibility")
|
|
412
|
+
})
|
|
413
|
+
return _obj
|
|
414
|
+
|
|
415
|
+
|