From f00727c8d3653e92b9d9f6a747f36892e86c29a4 Mon Sep 17 00:00:00 2001 From: ariesclark <10256477+ariesclark@users.noreply.github.com> Date: Thu, 3 Sep 2026 06:52:32 +0000 Subject: [PATCH] Regenerated from spec --- .../.openapi-generator/FILES | 66 +- vrchat_dart_generated/CHANGELOG.md | 3 + vrchat_dart_generated/README.md | 38 +- vrchat_dart_generated/doc/APIConfig.md | 19 +- .../doc/APIConfigAudioConfig.md | 2 + .../doc/APIConfigEventShelfCampaign.md | 17 + vrchat_dart_generated/doc/APIConfigEvents.md | 1 + .../doc/APIConfigLoadingScreenWeights.md | 17 + .../APIConfigLowMemoryGoHomeTimeoutValue.md | 15 + .../APIConfigMinSupportedClientBuildNumber.md | 2 +- .../doc/APIConfigProfileDefaults.md | 19 + .../doc/AuthenticationApi.md | 94 +- vrchat_dart_generated/doc/Avatar.md | 1 + vrchat_dart_generated/doc/BareError.md | 15 + vrchat_dart_generated/doc/CalendarApi.md | 2 +- vrchat_dart_generated/doc/CalendarEvent.md | 1 + .../doc/CalendarEventDiscovery.md | 2 +- .../doc/CreateGroupAnnouncementRequest.md | 2 +- .../doc/CreateInstanceRequest.md | 5 +- vrchat_dart_generated/doc/CurrentUser.md | 22 +- .../doc/CurrentUserPresence.md | 5 + vrchat_dart_generated/doc/DeprecatedApi.md | 441 ++++++++++ .../doc/DynamicContentRow.md | 32 +- vrchat_dart_generated/doc/EconomyApi.md | 40 +- vrchat_dart_generated/doc/EconomyBalances.md | 2 +- vrchat_dart_generated/doc/FavoritedWorld.md | 1 + vrchat_dart_generated/doc/FavoritesApi.md | 10 +- .../doc/FileAnalysisAvatarStats.md | 1 + .../doc/GetGroupPosts200Response.md | 1 + vrchat_dart_generated/doc/Group.md | 2 + .../doc/GroupAnnouncement.md | 3 + vrchat_dart_generated/doc/GroupPermission.md | 1 + vrchat_dart_generated/doc/GroupPost.md | 2 +- vrchat_dart_generated/doc/GroupRole.md | 2 + ...aluesRoles.md => GroupRoleTemplateRole.md} | 8 +- .../doc/GroupRoleTemplateValues.md | 2 +- vrchat_dart_generated/doc/InfoPush.md | 4 + vrchat_dart_generated/doc/InfoPushData.md | 21 + .../doc/InfoPushDataArticle.md | 6 +- .../doc/InfoPushDataArticleContent.md | 3 + .../doc/InfoPushDataCategory.md | 19 + .../doc/InfoPushDataDomainListInner.md | 15 + .../doc/InfoPushDataSearch.md | 19 + .../doc/InfoPushEmbeddedLink.md | 18 + .../doc/InfoPushExperiment.md | 16 + vrchat_dart_generated/doc/InfoPushIpsQuery.md | 16 + vrchat_dart_generated/doc/Instance.md | 11 + vrchat_dart_generated/doc/InstanceCategory.md | 19 + vrchat_dart_generated/doc/InstanceVibe.md | 17 + vrchat_dart_generated/doc/InstancesApi.md | 88 ++ vrchat_dart_generated/doc/InventoryDrop.md | 2 +- vrchat_dart_generated/doc/InventoryItem.md | 3 + .../doc/InventoryMetadata.md | 1 + .../doc/InventoryTemplate.md | 4 +- vrchat_dart_generated/doc/Jam.md | 2 + vrchat_dart_generated/doc/JamSubmission.md | 2 +- vrchat_dart_generated/doc/LimitedGroup.md | 2 + .../doc/LimitedUserFriend.md | 7 + .../doc/LimitedUserGroups.md | 2 + vrchat_dart_generated/doc/LimitedWorld.md | 1 + vrchat_dart_generated/doc/MiscellaneousApi.md | 2 +- vrchat_dart_generated/doc/MutualFriend.md | 6 + vrchat_dart_generated/doc/Notification.md | 2 +- vrchat_dart_generated/doc/NotificationV2.md | 1 + vrchat_dart_generated/doc/NotificationsApi.md | 4 +- .../doc/OAuthRedirectCode.md | 15 + vrchat_dart_generated/doc/PrivateProfile.md | 1 + vrchat_dart_generated/doc/ProductListing.md | 8 +- .../doc/ProductListingAttribution.md | 16 + .../doc/ProductListingAttributionCreator.md | 16 + vrchat_dart_generated/doc/PropsApi.md | 6 +- vrchat_dart_generated/doc/ReportCategory.md | 2 + vrchat_dart_generated/doc/ReportReason.md | 1 + vrchat_dart_generated/doc/RepresentedGroup.md | 2 + .../doc/RouteNotImplemented.md | 16 + vrchat_dart_generated/doc/SentNotification.md | 2 +- vrchat_dart_generated/doc/SsoProvider.md | 14 + vrchat_dart_generated/doc/SsoToken.md | 15 + vrchat_dart_generated/doc/StoreShelf.md | 3 + vrchat_dart_generated/doc/Subscription.md | 3 + .../doc/UpdateWorldRequest.md | 4 + vrchat_dart_generated/doc/User.md | 9 +- vrchat_dart_generated/doc/UsersApi.md | 2 +- vrchat_dart_generated/doc/World.md | 2 + vrchat_dart_generated/doc/WorldsApi.md | 4 +- vrchat_dart_generated/lib/src/api.dart | 7 + .../lib/src/api/authentication_api.dart | 172 +++- .../lib/src/api/avatars_api.dart | 1 - .../lib/src/api/calendar_api.dart | 2 +- .../lib/src/api/deprecated_api.dart | 818 ++++++++++++++++++ .../lib/src/api/economy_api.dart | 45 +- .../lib/src/api/favorites_api.dart | 5 +- .../lib/src/api/instances_api.dart | 162 ++++ .../lib/src/api/miscellaneous_api.dart | 2 +- .../lib/src/api/notifications_api.dart | 14 +- .../lib/src/api/props_api.dart | 9 +- .../lib/src/api/users_api.dart | 3 +- .../lib/src/api/worlds_api.dart | 5 +- .../lib/src/deserialize.dart | 86 +- .../lib/src/model/admin_asset_bundle.g.dart | 114 ++- .../lib/src/model/api_config.dart | 181 +++- .../lib/src/model/api_config.g.dart | 120 ++- .../src/model/api_config_audio_config.dart | 23 +- .../src/model/api_config_audio_config.g.dart | 10 + .../api_config_constants_instance.g.dart | 31 +- ...onstants_instancepopulationbrackets.g.dart | 65 +- .../api_config_constants_language.g.dart | 26 +- .../api_config_event_shelf_campaign.dart | 56 ++ .../api_config_event_shelf_campaign.g.dart | 29 + .../lib/src/model/api_config_events.dart | 12 + .../lib/src/model/api_config_events.g.dart | 6 + .../api_config_loading_screen_weights.dart | 57 ++ .../api_config_loading_screen_weights.g.dart | 31 + ...nfig_low_memory_go_home_timeout_value.dart | 43 + ...ig_low_memory_go_home_timeout_value.g.dart | 24 + ...fig_min_supported_client_build_number.dart | 6 +- ...g_min_supported_client_build_number.g.dart | 7 +- .../model/api_config_profile_defaults.dart | 81 ++ .../model/api_config_profile_defaults.g.dart | 41 + .../lib/src/model/avatar.dart | 7 + .../lib/src/model/avatar.g.dart | 215 +++-- .../lib/src/model/bare_error.dart | 40 + .../lib/src/model/bare_error.g.dart | 23 + .../lib/src/model/calendar_event.dart | 7 + .../lib/src/model/calendar_event.g.dart | 5 + .../src/model/calendar_event_discovery.dart | 6 +- .../src/model/calendar_event_discovery.g.dart | 6 +- .../src/model/create_avatar_request.g.dart | 77 +- .../create_group_announcement_request.dart | 6 +- .../create_group_announcement_request.g.dart | 6 +- .../src/model/create_instance_request.dart | 25 +- .../src/model/create_instance_request.g.dart | 9 + .../lib/src/model/current_user.dart | 155 +++- .../lib/src/model/current_user.g.dart | 61 ++ .../lib/src/model/current_user_presence.dart | 35 + .../src/model/current_user_presence.g.dart | 10 + .../lib/src/model/dynamic_content_row.dart | 202 ++++- .../lib/src/model/dynamic_content_row.g.dart | 128 ++- .../lib/src/model/economy_balances.dart | 6 +- .../lib/src/model/economy_balances.g.dart | 6 +- .../lib/src/model/favorited_world.dart | 11 + .../lib/src/model/favorited_world.g.dart | 193 ++--- .../src/model/file_analysis_avatar_stats.dart | 7 + .../model/file_analysis_avatar_stats.g.dart | 2 + .../model/get_group_posts200_response.dart | 11 +- .../model/get_group_posts200_response.g.dart | 2 + .../lib/src/model/group.dart | 14 + .../lib/src/model/group.g.dart | 4 + .../lib/src/model/group_announcement.dart | 27 +- .../lib/src/model/group_announcement.g.dart | 9 + .../lib/src/model/group_permission.dart | 9 + .../lib/src/model/group_permission.g.dart | 46 + .../lib/src/model/group_post.dart | 10 +- .../lib/src/model/group_post.g.dart | 6 +- .../lib/src/model/group_role.dart | 14 + .../lib/src/model/group_role.g.dart | 7 + .../src/model/group_role_template_role.dart | 67 ++ ...g.dart => group_role_template_role.g.dart} | 37 +- .../src/model/group_role_template_values.dart | 4 +- .../model/group_role_template_values.g.dart | 6 +- .../group_role_template_values_roles.dart | 67 -- .../lib/src/model/info_push.dart | 33 +- .../lib/src/model/info_push.g.dart | 19 + .../lib/src/model/info_push_data.dart | 162 +++- .../lib/src/model/info_push_data.g.dart | 136 ++- .../lib/src/model/info_push_data_article.dart | 41 +- .../src/model/info_push_data_article.g.dart | 58 +- .../model/info_push_data_article_content.dart | 36 +- .../info_push_data_article_content.g.dart | 6 + .../src/model/info_push_data_category.dart | 74 ++ .../src/model/info_push_data_category.g.dart | 40 + .../src/model/info_push_data_clickable.dart | 14 +- .../src/model/info_push_data_clickable.g.dart | 6 + .../info_push_data_domain_list_inner.dart | 41 + .../info_push_data_domain_list_inner.g.dart | 22 + .../lib/src/model/info_push_data_search.dart | 73 ++ .../src/model/info_push_data_search.g.dart | 30 + .../src/model/info_push_embedded_link.dart | 55 ++ .../src/model/info_push_embedded_link.g.dart | 33 + .../lib/src/model/info_push_experiment.dart | 46 + .../lib/src/model/info_push_experiment.g.dart | 21 + .../lib/src/model/info_push_ips_query.dart | 46 + .../lib/src/model/info_push_ips_query.g.dart | 24 + .../lib/src/model/instance.dart | 88 ++ .../lib/src/model/instance.g.dart | 47 + .../lib/src/model/instance_category.dart | 73 ++ .../lib/src/model/instance_category.g.dart | 34 + .../lib/src/model/instance_vibe.dart | 50 ++ .../lib/src/model/instance_vibe.g.dart | 27 + .../lib/src/model/inventory_drop.dart | 14 +- .../lib/src/model/inventory_drop.g.dart | 135 ++- .../lib/src/model/inventory_item.dart | 21 + .../lib/src/model/inventory_item.g.dart | 12 + .../lib/src/model/inventory_metadata.dart | 11 +- .../lib/src/model/inventory_metadata.g.dart | 2 + .../lib/src/model/inventory_template.dart | 20 +- .../lib/src/model/inventory_template.g.dart | 174 ++-- vrchat_dart_generated/lib/src/model/jam.dart | 14 + .../lib/src/model/jam.g.dart | 95 +- .../lib/src/model/jam_submission.dart | 11 +- .../lib/src/model/jam_submission.g.dart | 9 +- .../lib/src/model/limited_group.dart | 14 + .../lib/src/model/limited_group.g.dart | 4 + .../lib/src/model/limited_user_friend.dart | 50 ++ .../lib/src/model/limited_user_friend.g.dart | 17 + .../lib/src/model/limited_user_groups.dart | 14 + .../lib/src/model/limited_user_groups.g.dart | 4 + .../lib/src/model/limited_world.dart | 11 + .../lib/src/model/limited_world.g.dart | 195 ++--- .../lib/src/model/mutual_friend.dart | 43 + .../lib/src/model/mutual_friend.g.dart | 12 + .../lib/src/model/notification.dart | 5 +- .../lib/src/model/notification_v2.dart | 19 +- .../lib/src/model/notification_v2.g.dart | 6 +- .../lib/src/model/o_auth_redirect_code.dart | 41 + .../lib/src/model/o_auth_redirect_code.g.dart | 21 + .../lib/src/model/private_profile.dart | 10 +- .../lib/src/model/private_profile.g.dart | 5 + .../lib/src/model/product_listing.dart | 51 +- .../lib/src/model/product_listing.g.dart | 25 +- .../model/product_listing_attribution.dart | 47 + .../model/product_listing_attribution.g.dart | 40 + .../product_listing_attribution_creator.dart | 49 ++ ...product_listing_attribution_creator.g.dart | 27 + .../lib/src/model/prop.g.dart | 140 ++- .../lib/src/model/public_profile.dart | 2 +- .../lib/src/model/report_category.dart | 19 +- .../lib/src/model/report_category.g.dart | 4 + .../lib/src/model/report_reason.dart | 12 +- .../lib/src/model/report_reason.g.dart | 10 +- .../lib/src/model/represented_group.dart | 14 + .../lib/src/model/represented_group.g.dart | 4 + .../lib/src/model/route_not_implemented.dart | 74 ++ .../src/model/route_not_implemented.g.dart | 43 + .../lib/src/model/sent_notification.dart | 3 +- .../lib/src/model/service_status.g.dart | 85 +- .../lib/src/model/sso_provider.dart | 24 + .../lib/src/model/sso_token.dart | 40 + .../lib/src/model/sso_token.g.dart | 20 + .../lib/src/model/store_shelf.dart | 29 + .../lib/src/model/store_shelf.g.dart | 12 + .../lib/src/model/subscription.dart | 23 + .../lib/src/model/subscription.g.dart | 9 + .../lib/src/model/update_world_request.dart | 36 +- .../lib/src/model/update_world_request.g.dart | 77 +- vrchat_dart_generated/lib/src/model/user.dart | 56 +- .../lib/src/model/user.g.dart | 31 +- .../lib/src/model/user_subscription.g.dart | 125 ++- .../lib/src/model/world.dart | 18 + .../lib/src/model/world.g.dart | 250 +++--- .../lib/vrchat_dart_generated.dart | 22 +- vrchat_dart_generated/pubspec.yaml | 2 +- 252 files changed, 7544 insertions(+), 1435 deletions(-) create mode 100644 vrchat_dart_generated/doc/APIConfigEventShelfCampaign.md create mode 100644 vrchat_dart_generated/doc/APIConfigLoadingScreenWeights.md create mode 100644 vrchat_dart_generated/doc/APIConfigLowMemoryGoHomeTimeoutValue.md create mode 100644 vrchat_dart_generated/doc/APIConfigProfileDefaults.md create mode 100644 vrchat_dart_generated/doc/BareError.md create mode 100644 vrchat_dart_generated/doc/DeprecatedApi.md rename vrchat_dart_generated/doc/{GroupRoleTemplateValuesRoles.md => GroupRoleTemplateRole.md} (64%) create mode 100644 vrchat_dart_generated/doc/InfoPushDataCategory.md create mode 100644 vrchat_dart_generated/doc/InfoPushDataDomainListInner.md create mode 100644 vrchat_dart_generated/doc/InfoPushDataSearch.md create mode 100644 vrchat_dart_generated/doc/InfoPushEmbeddedLink.md create mode 100644 vrchat_dart_generated/doc/InfoPushExperiment.md create mode 100644 vrchat_dart_generated/doc/InfoPushIpsQuery.md create mode 100644 vrchat_dart_generated/doc/InstanceCategory.md create mode 100644 vrchat_dart_generated/doc/InstanceVibe.md create mode 100644 vrchat_dart_generated/doc/OAuthRedirectCode.md create mode 100644 vrchat_dart_generated/doc/ProductListingAttribution.md create mode 100644 vrchat_dart_generated/doc/ProductListingAttributionCreator.md create mode 100644 vrchat_dart_generated/doc/RouteNotImplemented.md create mode 100644 vrchat_dart_generated/doc/SsoProvider.md create mode 100644 vrchat_dart_generated/doc/SsoToken.md create mode 100644 vrchat_dart_generated/lib/src/api/deprecated_api.dart create mode 100644 vrchat_dart_generated/lib/src/model/api_config_event_shelf_campaign.dart create mode 100644 vrchat_dart_generated/lib/src/model/api_config_event_shelf_campaign.g.dart create mode 100644 vrchat_dart_generated/lib/src/model/api_config_loading_screen_weights.dart create mode 100644 vrchat_dart_generated/lib/src/model/api_config_loading_screen_weights.g.dart create mode 100644 vrchat_dart_generated/lib/src/model/api_config_low_memory_go_home_timeout_value.dart create mode 100644 vrchat_dart_generated/lib/src/model/api_config_low_memory_go_home_timeout_value.g.dart create mode 100644 vrchat_dart_generated/lib/src/model/api_config_profile_defaults.dart create mode 100644 vrchat_dart_generated/lib/src/model/api_config_profile_defaults.g.dart create mode 100644 vrchat_dart_generated/lib/src/model/bare_error.dart create mode 100644 vrchat_dart_generated/lib/src/model/bare_error.g.dart create mode 100644 vrchat_dart_generated/lib/src/model/group_role_template_role.dart rename vrchat_dart_generated/lib/src/model/{group_role_template_values_roles.g.dart => group_role_template_role.g.dart} (78%) delete mode 100644 vrchat_dart_generated/lib/src/model/group_role_template_values_roles.dart create mode 100644 vrchat_dart_generated/lib/src/model/info_push_data_category.dart create mode 100644 vrchat_dart_generated/lib/src/model/info_push_data_category.g.dart create mode 100644 vrchat_dart_generated/lib/src/model/info_push_data_domain_list_inner.dart create mode 100644 vrchat_dart_generated/lib/src/model/info_push_data_domain_list_inner.g.dart create mode 100644 vrchat_dart_generated/lib/src/model/info_push_data_search.dart create mode 100644 vrchat_dart_generated/lib/src/model/info_push_data_search.g.dart create mode 100644 vrchat_dart_generated/lib/src/model/info_push_embedded_link.dart create mode 100644 vrchat_dart_generated/lib/src/model/info_push_embedded_link.g.dart create mode 100644 vrchat_dart_generated/lib/src/model/info_push_experiment.dart create mode 100644 vrchat_dart_generated/lib/src/model/info_push_experiment.g.dart create mode 100644 vrchat_dart_generated/lib/src/model/info_push_ips_query.dart create mode 100644 vrchat_dart_generated/lib/src/model/info_push_ips_query.g.dart create mode 100644 vrchat_dart_generated/lib/src/model/instance_category.dart create mode 100644 vrchat_dart_generated/lib/src/model/instance_category.g.dart create mode 100644 vrchat_dart_generated/lib/src/model/instance_vibe.dart create mode 100644 vrchat_dart_generated/lib/src/model/instance_vibe.g.dart create mode 100644 vrchat_dart_generated/lib/src/model/o_auth_redirect_code.dart create mode 100644 vrchat_dart_generated/lib/src/model/o_auth_redirect_code.g.dart create mode 100644 vrchat_dart_generated/lib/src/model/product_listing_attribution.dart create mode 100644 vrchat_dart_generated/lib/src/model/product_listing_attribution.g.dart create mode 100644 vrchat_dart_generated/lib/src/model/product_listing_attribution_creator.dart create mode 100644 vrchat_dart_generated/lib/src/model/product_listing_attribution_creator.g.dart create mode 100644 vrchat_dart_generated/lib/src/model/route_not_implemented.dart create mode 100644 vrchat_dart_generated/lib/src/model/route_not_implemented.g.dart create mode 100644 vrchat_dart_generated/lib/src/model/sso_provider.dart create mode 100644 vrchat_dart_generated/lib/src/model/sso_token.dart create mode 100644 vrchat_dart_generated/lib/src/model/sso_token.g.dart diff --git a/vrchat_dart_generated/.openapi-generator/FILES b/vrchat_dart_generated/.openapi-generator/FILES index b2422641..1d1579d2 100644 --- a/vrchat_dart_generated/.openapi-generator/FILES +++ b/vrchat_dart_generated/.openapi-generator/FILES @@ -14,10 +14,14 @@ doc/APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW.md doc/APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY.md doc/APIConfigConstantsLANGUAGE.md doc/APIConfigDownloadURLList.md +doc/APIConfigEventShelfCampaign.md doc/APIConfigEvents.md doc/APIConfigIosVersion.md +doc/APIConfigLoadingScreenWeights.md +doc/APIConfigLowMemoryGoHomeTimeoutValue.md doc/APIConfigMinSupportedClientBuildNumber.md doc/APIConfigOfflineAnalysis.md +doc/APIConfigProfileDefaults.md doc/APIHealth.md doc/AccountDeletionLog.md doc/AddFavoriteRequest.md @@ -43,6 +47,7 @@ doc/AvatarsApi.md doc/Badge.md doc/Balance.md doc/BanGroupMemberRequest.md +doc/BareError.md doc/BoopRequest.md doc/CalendarApi.md doc/CalendarDayOfWeek.md @@ -83,6 +88,7 @@ doc/CurrentUser.md doc/CurrentUserPlatformHistoryInner.md doc/CurrentUserPresence.md doc/DeclineGroupInviteRequest.md +doc/DeprecatedApi.md doc/DeveloperType.md doc/Disable2FAResult.md doc/DiscordDetails.md @@ -144,8 +150,8 @@ doc/GroupPostVisibility.md doc/GroupPrivacy.md doc/GroupRole.md doc/GroupRoleTemplate.md +doc/GroupRoleTemplateRole.md doc/GroupRoleTemplateValues.md -doc/GroupRoleTemplateValuesRoles.md doc/GroupSearchSort.md doc/GroupTransferable.md doc/GroupTransferableRequirements.md @@ -159,13 +165,21 @@ doc/InfoPush.md doc/InfoPushData.md doc/InfoPushDataArticle.md doc/InfoPushDataArticleContent.md +doc/InfoPushDataCategory.md doc/InfoPushDataClickable.md +doc/InfoPushDataDomainListInner.md +doc/InfoPushDataSearch.md +doc/InfoPushEmbeddedLink.md +doc/InfoPushExperiment.md +doc/InfoPushIpsQuery.md doc/Instance.md +doc/InstanceCategory.md doc/InstanceContentSettings.md doc/InstancePlatforms.md doc/InstanceRegion.md doc/InstanceShortNameResponse.md doc/InstanceType.md +doc/InstanceVibe.md doc/InstancesApi.md doc/Inventory.md doc/InventoryApi.md @@ -221,6 +235,7 @@ doc/NotificationV2DetailsBoop.md doc/NotificationV2Response.md doc/NotificationV2Type.md doc/NotificationsApi.md +doc/OAuthRedirectCode.md doc/OkStatus.md doc/OkStatus2.md doc/OrderOption.md @@ -245,6 +260,8 @@ doc/PrivateProfile.md doc/PrivateProfileActivity.md doc/Product.md doc/ProductListing.md +doc/ProductListingAttribution.md +doc/ProductListingAttributionCreator.md doc/ProductListingType.md doc/ProductListingVariant.md doc/ProductPurchase.md @@ -277,6 +294,7 @@ doc/RewardRedemption.md doc/RewardRedemptionData.md doc/RewardRedemptionRequest.md doc/RewardRedemptionResult.md +doc/RouteNotImplemented.md doc/SearchGroupMembers200Response.md doc/SellerEligibility.md doc/SentNotification.md @@ -285,6 +303,8 @@ doc/ServiceStatus.md doc/ShareInventoryItemDirectRequest.md doc/SortOption.md doc/SortOptionProductPurchase.md +doc/SsoProvider.md +doc/SsoToken.md doc/Store.md doc/StoreContext.md doc/StoreShelf.md @@ -352,6 +372,7 @@ lib/src/api.dart lib/src/api/authentication_api.dart lib/src/api/avatars_api.dart lib/src/api/calendar_api.dart +lib/src/api/deprecated_api.dart lib/src/api/economy_api.dart lib/src/api/favorites_api.dart lib/src/api/files_api.dart @@ -398,10 +419,14 @@ lib/src/model/api_config_constants_instancepopulationbracketsfew.dart lib/src/model/api_config_constants_instancepopulationbracketsmany.dart lib/src/model/api_config_constants_language.dart lib/src/model/api_config_download_url_list.dart +lib/src/model/api_config_event_shelf_campaign.dart lib/src/model/api_config_events.dart lib/src/model/api_config_ios_version.dart +lib/src/model/api_config_loading_screen_weights.dart +lib/src/model/api_config_low_memory_go_home_timeout_value.dart lib/src/model/api_config_min_supported_client_build_number.dart lib/src/model/api_config_offline_analysis.dart +lib/src/model/api_config_profile_defaults.dart lib/src/model/api_health.dart lib/src/model/avatar.dart lib/src/model/avatar_moderation.dart @@ -415,6 +440,7 @@ lib/src/model/avatar_unity_package_url_object.dart lib/src/model/badge.dart lib/src/model/balance.dart lib/src/model/ban_group_member_request.dart +lib/src/model/bare_error.dart lib/src/model/boop_request.dart lib/src/model/calendar_day_of_week.dart lib/src/model/calendar_event.dart @@ -511,8 +537,8 @@ lib/src/model/group_post_visibility.dart lib/src/model/group_privacy.dart lib/src/model/group_role.dart lib/src/model/group_role_template.dart +lib/src/model/group_role_template_role.dart lib/src/model/group_role_template_values.dart -lib/src/model/group_role_template_values_roles.dart lib/src/model/group_search_sort.dart lib/src/model/group_transferable.dart lib/src/model/group_transferable_requirements.dart @@ -525,13 +551,21 @@ lib/src/model/info_push.dart lib/src/model/info_push_data.dart lib/src/model/info_push_data_article.dart lib/src/model/info_push_data_article_content.dart +lib/src/model/info_push_data_category.dart lib/src/model/info_push_data_clickable.dart +lib/src/model/info_push_data_domain_list_inner.dart +lib/src/model/info_push_data_search.dart +lib/src/model/info_push_embedded_link.dart +lib/src/model/info_push_experiment.dart +lib/src/model/info_push_ips_query.dart lib/src/model/instance.dart +lib/src/model/instance_category.dart lib/src/model/instance_content_settings.dart lib/src/model/instance_platforms.dart lib/src/model/instance_region.dart lib/src/model/instance_short_name_response.dart lib/src/model/instance_type.dart +lib/src/model/instance_vibe.dart lib/src/model/inventory.dart lib/src/model/inventory_consumption_results.dart lib/src/model/inventory_default_attributes_value.dart @@ -581,6 +615,7 @@ lib/src/model/notification_v2.dart lib/src/model/notification_v2_details_boop.dart lib/src/model/notification_v2_response.dart lib/src/model/notification_v2_type.dart +lib/src/model/o_auth_redirect_code.dart lib/src/model/ok_status.dart lib/src/model/ok_status2.dart lib/src/model/order_option.dart @@ -603,6 +638,8 @@ lib/src/model/private_profile.dart lib/src/model/private_profile_activity.dart lib/src/model/product.dart lib/src/model/product_listing.dart +lib/src/model/product_listing_attribution.dart +lib/src/model/product_listing_attribution_creator.dart lib/src/model/product_listing_type.dart lib/src/model/product_listing_variant.dart lib/src/model/product_purchase.dart @@ -634,6 +671,7 @@ lib/src/model/reward_redemption.dart lib/src/model/reward_redemption_data.dart lib/src/model/reward_redemption_request.dart lib/src/model/reward_redemption_result.dart +lib/src/model/route_not_implemented.dart lib/src/model/search_group_members200_response.dart lib/src/model/seller_eligibility.dart lib/src/model/sent_notification.dart @@ -642,6 +680,8 @@ lib/src/model/service_status.dart lib/src/model/share_inventory_item_direct_request.dart lib/src/model/sort_option.dart lib/src/model/sort_option_product_purchase.dart +lib/src/model/sso_provider.dart +lib/src/model/sso_token.dart lib/src/model/store.dart lib/src/model/store_context.dart lib/src/model/store_shelf.dart @@ -727,10 +767,14 @@ test/api_config_constants_instancepopulationbracketsmany_test.dart test/api_config_constants_language_test.dart test/api_config_constants_test.dart test/api_config_download_url_list_test.dart +test/api_config_event_shelf_campaign_test.dart test/api_config_events_test.dart test/api_config_ios_version_test.dart +test/api_config_loading_screen_weights_test.dart +test/api_config_low_memory_go_home_timeout_value_test.dart test/api_config_min_supported_client_build_number_test.dart test/api_config_offline_analysis_test.dart +test/api_config_profile_defaults_test.dart test/api_config_test.dart test/api_health_test.dart test/authentication_api_test.dart @@ -747,6 +791,7 @@ test/avatars_api_test.dart test/badge_test.dart test/balance_test.dart test/ban_group_member_request_test.dart +test/bare_error_test.dart test/boop_request_test.dart test/calendar_api_test.dart test/calendar_day_of_week_test.dart @@ -787,6 +832,7 @@ test/current_user_platform_history_inner_test.dart test/current_user_presence_test.dart test/current_user_test.dart test/decline_group_invite_request_test.dart +test/deprecated_api_test.dart test/developer_type_test.dart test/disable2_fa_result_test.dart test/discord_details_test.dart @@ -845,8 +891,8 @@ test/group_permissions_test.dart test/group_post_test.dart test/group_post_visibility_test.dart test/group_privacy_test.dart +test/group_role_template_role_test.dart test/group_role_template_test.dart -test/group_role_template_values_roles_test.dart test/group_role_template_values_test.dart test/group_role_test.dart test/group_search_sort_test.dart @@ -861,15 +907,23 @@ test/image_mask_test.dart test/image_purpose_test.dart test/info_push_data_article_content_test.dart test/info_push_data_article_test.dart +test/info_push_data_category_test.dart test/info_push_data_clickable_test.dart +test/info_push_data_domain_list_inner_test.dart +test/info_push_data_search_test.dart test/info_push_data_test.dart +test/info_push_embedded_link_test.dart +test/info_push_experiment_test.dart +test/info_push_ips_query_test.dart test/info_push_test.dart +test/instance_category_test.dart test/instance_content_settings_test.dart test/instance_platforms_test.dart test/instance_region_test.dart test/instance_short_name_response_test.dart test/instance_test.dart test/instance_type_test.dart +test/instance_vibe_test.dart test/instances_api_test.dart test/inventory_api_test.dart test/inventory_consumption_results_test.dart @@ -925,6 +979,7 @@ test/notification_v2_response_test.dart test/notification_v2_test.dart test/notification_v2_type_test.dart test/notifications_api_test.dart +test/o_auth_redirect_code_test.dart test/ok_status2_test.dart test/ok_status_test.dart test/order_option_short_test.dart @@ -947,6 +1002,8 @@ test/print_test.dart test/prints_api_test.dart test/private_profile_activity_test.dart test/private_profile_test.dart +test/product_listing_attribution_creator_test.dart +test/product_listing_attribution_test.dart test/product_listing_test.dart test/product_listing_type_test.dart test/product_listing_variant_test.dart @@ -981,6 +1038,7 @@ test/reward_redemption_data_test.dart test/reward_redemption_request_test.dart test/reward_redemption_result_test.dart test/reward_redemption_test.dart +test/route_not_implemented_test.dart test/search_group_members200_response_test.dart test/seller_eligibility_test.dart test/sent_notification_test.dart @@ -989,6 +1047,8 @@ test/service_status_test.dart test/share_inventory_item_direct_request_test.dart test/sort_option_product_purchase_test.dart test/sort_option_test.dart +test/sso_provider_test.dart +test/sso_token_test.dart test/store_context_test.dart test/store_shelf_test.dart test/store_test.dart diff --git a/vrchat_dart_generated/CHANGELOG.md b/vrchat_dart_generated/CHANGELOG.md index 27e864df..c60e66a4 100644 --- a/vrchat_dart_generated/CHANGELOG.md +++ b/vrchat_dart_generated/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.20.9 +- Updated to match spec + ## 1.20.8 - Updated to match spec diff --git a/vrchat_dart_generated/README.md b/vrchat_dart_generated/README.md index 693cce93..31c0e2ee 100644 --- a/vrchat_dart_generated/README.md +++ b/vrchat_dart_generated/README.md @@ -82,7 +82,7 @@ commit-access to the project. It also means we are very open and welcoming of ne This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.20.8 +- API version: 1.20.9 - Generator version: 7.24.0 - Build package: org.openapitools.codegen.languages.DartDioClientCodegen For more information, please visit [https://github.com/VRChatAPI](https://github.com/VRChatAPI) @@ -157,7 +157,9 @@ Class | Method | HTTP request | Description [*AuthenticationApi*](doc/AuthenticationApi.md) | [**getCurrentUser**](doc/AuthenticationApi.md#getcurrentuser) | **GET** /auth/user | Login and/or Get Current User Info [*AuthenticationApi*](doc/AuthenticationApi.md) | [**getGlobalAvatarModerations**](doc/AuthenticationApi.md#getglobalavatarmoderations) | **GET** /auth/user/avatarmoderations | Get Global Avatar Moderations [*AuthenticationApi*](doc/AuthenticationApi.md) | [**getModerationReports**](doc/AuthenticationApi.md#getmoderationreports) | **GET** /moderationReports | Get Moderation Reports +[*AuthenticationApi*](doc/AuthenticationApi.md) | [**getOAuthRedirectCode**](doc/AuthenticationApi.md#getoauthredirectcode) | **GET** /oauth/redirectCode | Get OAuth Redirect Code [*AuthenticationApi*](doc/AuthenticationApi.md) | [**getRecoveryCodes**](doc/AuthenticationApi.md#getrecoverycodes) | **GET** /auth/user/twofactorauth/otp | Get 2FA Recovery codes +[*AuthenticationApi*](doc/AuthenticationApi.md) | [**getSsoToken**](doc/AuthenticationApi.md#getssotoken) | **GET** /sso/{provider} | Get SSO Token [*AuthenticationApi*](doc/AuthenticationApi.md) | [**logout**](doc/AuthenticationApi.md#logout) | **PUT** /logout | Logout [*AuthenticationApi*](doc/AuthenticationApi.md) | [**registerUserAccount**](doc/AuthenticationApi.md#registeruseraccount) | **POST** /auth/register | Register User Account [*AuthenticationApi*](doc/AuthenticationApi.md) | [**resendEmailConfirmation**](doc/AuthenticationApi.md#resendemailconfirmation) | **POST** /auth/user/resendEmail | Resend Email Confirmation @@ -195,6 +197,15 @@ Class | Method | HTTP request | Description [*CalendarApi*](doc/CalendarApi.md) | [**getGroupNextCalendarEvent**](doc/CalendarApi.md#getgroupnextcalendarevent) | **GET** /calendar/{groupId}/next | Get next calendar event [*CalendarApi*](doc/CalendarApi.md) | [**searchCalendarEvents**](doc/CalendarApi.md#searchcalendarevents) | **GET** /calendar/search | Search for calendar events [*CalendarApi*](doc/CalendarApi.md) | [**updateGroupCalendarEvent**](doc/CalendarApi.md#updategroupcalendarevent) | **PUT** /calendar/{groupId}/{calendarId}/event | Update a calendar event +[*DeprecatedApi*](doc/DeprecatedApi.md) | [**getBalanceEarnings**](doc/DeprecatedApi.md#getbalanceearnings) | **GET** /user/{userId}/balance/earnings | Get Balance Earnings +[*DeprecatedApi*](doc/DeprecatedApi.md) | [**getPropPublishStatus**](doc/DeprecatedApi.md#getproppublishstatus) | **GET** /props/{propId}/publish | Get Prop Publish Status +[*DeprecatedApi*](doc/DeprecatedApi.md) | [**getSellerEligibility**](doc/DeprecatedApi.md#getsellereligibility) | **GET** /economy/seller/eligibility | Get Seller Eligibility +[*DeprecatedApi*](doc/DeprecatedApi.md) | [**getTiliaStatus**](doc/DeprecatedApi.md#gettiliastatus) | **GET** /tilia/status | Get Tilia Status +[*DeprecatedApi*](doc/DeprecatedApi.md) | [**getTiliaTos**](doc/DeprecatedApi.md#gettiliatos) | **GET** /user/{userId}/tilia/tos | Get Tilia TOS Agreement Status +[*DeprecatedApi*](doc/DeprecatedApi.md) | [**getUserCreditsEligible**](doc/DeprecatedApi.md#getusercreditseligible) | **GET** /users/{userId}/credits/eligible | Get User Credits Eligibility +[*DeprecatedApi*](doc/DeprecatedApi.md) | [**publishProp**](doc/DeprecatedApi.md#publishprop) | **PUT** /props/{propId}/publish | Publish Prop +[*DeprecatedApi*](doc/DeprecatedApi.md) | [**unpublishProp**](doc/DeprecatedApi.md#unpublishprop) | **DELETE** /props/{propId}/publish | Unpublish Prop +[*DeprecatedApi*](doc/DeprecatedApi.md) | [**updateTiliaTos**](doc/DeprecatedApi.md#updatetiliatos) | **PUT** /user/{userId}/tilia/tos | Update Tilia TOS Agreement Status [*EconomyApi*](doc/EconomyApi.md) | [**createProduct**](doc/EconomyApi.md#createproduct) | **POST** /products | Create Product [*EconomyApi*](doc/EconomyApi.md) | [**createProductListingDirect**](doc/EconomyApi.md#createproductlistingdirect) | **POST** /listing | Create Product Listing [*EconomyApi*](doc/EconomyApi.md) | [**deleteProduct**](doc/EconomyApi.md#deleteproduct) | **DELETE** /products/{productId} | Delete Product @@ -326,6 +337,8 @@ Class | Method | HTTP request | Description [*InstancesApi*](doc/InstancesApi.md) | [**createInstance**](doc/InstancesApi.md#createinstance) | **POST** /instances | Create Instance [*InstancesApi*](doc/InstancesApi.md) | [**getInstance**](doc/InstancesApi.md#getinstance) | **GET** /instances/{worldId}:{instanceId} | Get Instance [*InstancesApi*](doc/InstancesApi.md) | [**getInstanceByShortName**](doc/InstancesApi.md#getinstancebyshortname) | **GET** /instances/s/{shortName} | Get Instance By Short Name +[*InstancesApi*](doc/InstancesApi.md) | [**getInstanceCategories**](doc/InstancesApi.md#getinstancecategories) | **GET** /instanceCategories | List Instance Categories +[*InstancesApi*](doc/InstancesApi.md) | [**getInstanceVibes**](doc/InstancesApi.md#getinstancevibes) | **GET** /instanceVibes | List Instance Vibes [*InstancesApi*](doc/InstancesApi.md) | [**getRecentLocations**](doc/InstancesApi.md#getrecentlocations) | **GET** /instances/recent | List Recent Locations [*InstancesApi*](doc/InstancesApi.md) | [**getShortName**](doc/InstancesApi.md#getshortname) | **GET** /instances/{worldId}:{instanceId}/shortName | Get Instance Short Name [*InventoryApi*](doc/InventoryApi.md) | [**consumeOwnInventoryItem**](doc/InventoryApi.md#consumeowninventoryitem) | **PUT** /inventory/{inventoryItemId}/consume | Consume Own Inventory Item @@ -441,7 +454,7 @@ Class | Method | HTTP request | Description [*WorldsApi*](doc/WorldsApi.md) | [**getWorldMetadata**](doc/WorldsApi.md#getworldmetadata) | **GET** /worlds/{worldId}/metadata | Get World Metadata [*WorldsApi*](doc/WorldsApi.md) | [**getWorldPublishStatus**](doc/WorldsApi.md#getworldpublishstatus) | **GET** /worlds/{worldId}/publish | Get World Publish Status [*WorldsApi*](doc/WorldsApi.md) | [**publishWorld**](doc/WorldsApi.md#publishworld) | **PUT** /worlds/{worldId}/publish | Publish World -[*WorldsApi*](doc/WorldsApi.md) | [**removeWorldTags**](doc/WorldsApi.md#removeworldtags) | **POST** /worlds/{worldId}/removeTags | Remove World Tags +[*WorldsApi*](doc/WorldsApi.md) | [**removeWorldTags**](doc/WorldsApi.md#removeworldtags) | **POST** /worlds/{worldId}/deleteTags | Remove World Tags [*WorldsApi*](doc/WorldsApi.md) | [**searchWorlds**](doc/WorldsApi.md#searchworlds) | **GET** /worlds | Search All Worlds [*WorldsApi*](doc/WorldsApi.md) | [**unpublishWorld**](doc/WorldsApi.md#unpublishworld) | **DELETE** /worlds/{worldId}/publish | Unpublish World [*WorldsApi*](doc/WorldsApi.md) | [**updateWorld**](doc/WorldsApi.md#updateworld) | **PUT** /worlds/{worldId} | Update World @@ -463,10 +476,14 @@ Class | Method | HTTP request | Description - [APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY](doc/APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY.md) - [APIConfigConstantsLANGUAGE](doc/APIConfigConstantsLANGUAGE.md) - [APIConfigDownloadURLList](doc/APIConfigDownloadURLList.md) + - [APIConfigEventShelfCampaign](doc/APIConfigEventShelfCampaign.md) - [APIConfigEvents](doc/APIConfigEvents.md) - [APIConfigIosVersion](doc/APIConfigIosVersion.md) + - [APIConfigLoadingScreenWeights](doc/APIConfigLoadingScreenWeights.md) + - [APIConfigLowMemoryGoHomeTimeoutValue](doc/APIConfigLowMemoryGoHomeTimeoutValue.md) - [APIConfigMinSupportedClientBuildNumber](doc/APIConfigMinSupportedClientBuildNumber.md) - [APIConfigOfflineAnalysis](doc/APIConfigOfflineAnalysis.md) + - [APIConfigProfileDefaults](doc/APIConfigProfileDefaults.md) - [APIHealth](doc/APIHealth.md) - [AccountDeletionLog](doc/AccountDeletionLog.md) - [AddFavoriteRequest](doc/AddFavoriteRequest.md) @@ -490,6 +507,7 @@ Class | Method | HTTP request | Description - [Badge](doc/Badge.md) - [Balance](doc/Balance.md) - [BanGroupMemberRequest](doc/BanGroupMemberRequest.md) + - [BareError](doc/BareError.md) - [BoopRequest](doc/BoopRequest.md) - [CalendarDayOfWeek](doc/CalendarDayOfWeek.md) - [CalendarEvent](doc/CalendarEvent.md) @@ -586,8 +604,8 @@ Class | Method | HTTP request | Description - [GroupPrivacy](doc/GroupPrivacy.md) - [GroupRole](doc/GroupRole.md) - [GroupRoleTemplate](doc/GroupRoleTemplate.md) + - [GroupRoleTemplateRole](doc/GroupRoleTemplateRole.md) - [GroupRoleTemplateValues](doc/GroupRoleTemplateValues.md) - - [GroupRoleTemplateValuesRoles](doc/GroupRoleTemplateValuesRoles.md) - [GroupSearchSort](doc/GroupSearchSort.md) - [GroupTransferable](doc/GroupTransferable.md) - [GroupTransferableRequirements](doc/GroupTransferableRequirements.md) @@ -600,13 +618,21 @@ Class | Method | HTTP request | Description - [InfoPushData](doc/InfoPushData.md) - [InfoPushDataArticle](doc/InfoPushDataArticle.md) - [InfoPushDataArticleContent](doc/InfoPushDataArticleContent.md) + - [InfoPushDataCategory](doc/InfoPushDataCategory.md) - [InfoPushDataClickable](doc/InfoPushDataClickable.md) + - [InfoPushDataDomainListInner](doc/InfoPushDataDomainListInner.md) + - [InfoPushDataSearch](doc/InfoPushDataSearch.md) + - [InfoPushEmbeddedLink](doc/InfoPushEmbeddedLink.md) + - [InfoPushExperiment](doc/InfoPushExperiment.md) + - [InfoPushIpsQuery](doc/InfoPushIpsQuery.md) - [Instance](doc/Instance.md) + - [InstanceCategory](doc/InstanceCategory.md) - [InstanceContentSettings](doc/InstanceContentSettings.md) - [InstancePlatforms](doc/InstancePlatforms.md) - [InstanceRegion](doc/InstanceRegion.md) - [InstanceShortNameResponse](doc/InstanceShortNameResponse.md) - [InstanceType](doc/InstanceType.md) + - [InstanceVibe](doc/InstanceVibe.md) - [Inventory](doc/Inventory.md) - [InventoryConsumptionResults](doc/InventoryConsumptionResults.md) - [InventoryDefaultAttributesValue](doc/InventoryDefaultAttributesValue.md) @@ -656,6 +682,7 @@ Class | Method | HTTP request | Description - [NotificationV2DetailsBoop](doc/NotificationV2DetailsBoop.md) - [NotificationV2Response](doc/NotificationV2Response.md) - [NotificationV2Type](doc/NotificationV2Type.md) + - [OAuthRedirectCode](doc/OAuthRedirectCode.md) - [OkStatus](doc/OkStatus.md) - [OkStatus2](doc/OkStatus2.md) - [OrderOption](doc/OrderOption.md) @@ -678,6 +705,8 @@ Class | Method | HTTP request | Description - [PrivateProfileActivity](doc/PrivateProfileActivity.md) - [Product](doc/Product.md) - [ProductListing](doc/ProductListing.md) + - [ProductListingAttribution](doc/ProductListingAttribution.md) + - [ProductListingAttributionCreator](doc/ProductListingAttributionCreator.md) - [ProductListingType](doc/ProductListingType.md) - [ProductListingVariant](doc/ProductListingVariant.md) - [ProductPurchase](doc/ProductPurchase.md) @@ -709,6 +738,7 @@ Class | Method | HTTP request | Description - [RewardRedemptionData](doc/RewardRedemptionData.md) - [RewardRedemptionRequest](doc/RewardRedemptionRequest.md) - [RewardRedemptionResult](doc/RewardRedemptionResult.md) + - [RouteNotImplemented](doc/RouteNotImplemented.md) - [SearchGroupMembers200Response](doc/SearchGroupMembers200Response.md) - [SellerEligibility](doc/SellerEligibility.md) - [SentNotification](doc/SentNotification.md) @@ -717,6 +747,8 @@ Class | Method | HTTP request | Description - [ShareInventoryItemDirectRequest](doc/ShareInventoryItemDirectRequest.md) - [SortOption](doc/SortOption.md) - [SortOptionProductPurchase](doc/SortOptionProductPurchase.md) + - [SsoProvider](doc/SsoProvider.md) + - [SsoToken](doc/SsoToken.md) - [Store](doc/Store.md) - [StoreContext](doc/StoreContext.md) - [StoreShelf](doc/StoreShelf.md) diff --git a/vrchat_dart_generated/doc/APIConfig.md b/vrchat_dart_generated/doc/APIConfig.md index 133d7415..02c2628c 100644 --- a/vrchat_dart_generated/doc/APIConfig.md +++ b/vrchat_dart_generated/doc/APIConfig.md @@ -31,6 +31,7 @@ Name | Type | Description | Notes **clientApiKey** | **String** | apiKey to be used for all other requests | **clientBPSCeiling** | **int** | Unknown | [default to 18432] **clientDisconnectTimeout** | **int** | Unknown | [default to 30000] +**clientMaxDatagrams** | **int** | | [optional] **clientNetDispatchThread** | **bool** | Unknown | [optional] [default to false] **clientNetDispatchThreadMobile** | **bool** | Unknown | [default to true] **clientNetInThread** | **bool** | Unknown | [optional] [default to false] @@ -44,6 +45,7 @@ Name | Type | Description | Notes **clientQR** | **int** | Unknown | [optional] [default to 1] **clientReservedPlayerBPS** | **int** | Unknown | [default to 7168] **clientSentCountAllowance** | **int** | Unknown | [default to 15] +**clientUseAck2** | **bool** | | [optional] **constants** | [**APIConfigConstants**](APIConfigConstants.md) | | **contactEmail** | **String** | VRChat's contact email | **copyrightEmail** | **String** | VRChat's copyright-issues-related email | @@ -78,16 +80,21 @@ Name | Type | Description | Notes **downloadUrls** | [**APIConfigDownloadURLList**](APIConfigDownloadURLList.md) | | **dynamicWorldRows** | [**Set<DynamicContentRow>**](DynamicContentRow.md) | Array of DynamicWorldRow objects, used by the game to display the list of world rows | **economyLedgerBackfill** | **bool** | Unknown | -**economyLedgerMigrationStop** | **String** | Unknown | +**economyLedgerMigrationStop** | **String** | Unknown | [optional] **economyLedgerMode** | **String** | Unknown | **economyPauseEnd** | [**DateTime**](DateTime.md) | Unknown | **economyPauseStart** | [**DateTime**](DateTime.md) | Unknown | **economyPurchaseRepairEnabled** | **bool** | Unknown | **economyState** | **int** | Unknown | [default to 1] +**enableVRCPlusWorldLists** | **bool** | | [optional] +**eventShelfCampaigns** | [**List<APIConfigEventShelfCampaign>**](APIConfigEventShelfCampaign.md) | | [optional] **events** | [**APIConfigEvents**](APIConfigEvents.md) | | **forceUseLatestWorld** | **bool** | Unknown | [default to true] **giftDisplayType** | **String** | Display type of gifts | +**globalCacheVersion** | **int** | | [optional] +**globalCacheVersionDefault** | **int** | | [optional] **googleApiClientId** | **String** | Unknown | [default to '827942544393-r2ouvckvouldn9dg9uruseje575e878f.apps.googleusercontent.com'] +**googleApiUnityClientId** | **String** | | [optional] **homeWorldId** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | **homepageRedirectTarget** | **String** | Redirect target if you try to open the base API domain in your browser | [default to 'https://hello.vrchat.com'] **hubWorldId** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | @@ -95,8 +102,11 @@ Name | Type | Description | Notes **iosAppVersion** | **List<String>** | Current app version for iOS | **iosVersion** | [**APIConfigIosVersion**](APIConfigIosVersion.md) | | **jobsEmail** | **String** | VRChat's job application email | +**loadingScreenWeights** | [**Map<String, APIConfigLoadingScreenWeights>**](APIConfigLoadingScreenWeights.md) | Relative weight of each info-push category on the loading screen, per audience. | [optional] +**lowMemoryGoHomeTimeout** | [**Map<String, APIConfigLowMemoryGoHomeTimeoutValue>**](APIConfigLowMemoryGoHomeTimeoutValue.md) | Low-memory timeout, keyed by platform. | [optional] **maxUserEmoji** | **int** | The maximum number of custom emoji each user may have at a given time. | [default to 18] **maxUserStickers** | **int** | The maximum number of custom stickers each user may have at a given time. | [default to 18] +**maximumUnityVersionForUploads** | **String** | | [optional] **minSupportedClientBuildNumber** | [**APIConfigMinSupportedClientBuildNumber**](APIConfigMinSupportedClientBuildNumber.md) | | **minimumUnityVersionForUploads** | **String** | Minimum Unity version required for uploading assets | [default to '2019.0.0f1'] **moderationEmail** | **String** | VRChat's moderation related email | @@ -105,8 +115,13 @@ Name | Type | Description | Notes **photonNameserverOverrides** | **List<String>** | Unknown | **photonPublicKeys** | **List<String>** | Unknown | **playerUrlResolverSha1** | **String** | Currently used youtube-dl.exe hash in SHA1-delimited format | +**playerUrlResolverSha1GfnOverride** | **String** | Overrides `player-url-resolver-sha1` on GeForce Now. | [optional] **playerUrlResolverVersion** | **String** | Currently used youtube-dl.exe version | +**playerUrlResolverVersionGfnOverride** | **String** | Overrides `player-url-resolver-version` on GeForce Now. | [optional] +**profileDefaults** | [**APIConfigProfileDefaults**](APIConfigProfileDefaults.md) | | [optional] +**propComponentList** | **List<String>** | SDK3 component type names. | [optional] **publicKey** | **String** | Public key, hex encoded | +**questMinimumLowMemoryThreshold** | **Map<String, int>** | Low-memory threshold, keyed by platform. | [optional] **reportCategories** | [**Map<String, ReportCategory>**](ReportCategory.md) | Categories available for reporting objectionable content | **reportFormUrl** | **String** | URL to the report form | [default to 'https://help.vrchat.com/hc/en-us/requests/new?ticket_form_id=1500000182242&tf_360056455174=user_report&tf_360057451993={userId}&tf_1500001445142={reportedId}&tf_subject={reason} {category} By {contentType} {reportedName}&tf_description={description}'] **reportOptions** | [**Map<String, Map<String, List<String>>>**](Map.md) | Options for reporting content. Select a key+value from this mapping as the `type` of the report. Select one key+value from the object at reportOptions[type] as the `category` of the report. reportCategories[category] contains user-facing text to display for all possible categories. Select one value from the array at reportOptions[type][category] as the `reason` of the report. reportReasons[reason] contains user-facing text to display for all possible categories. | @@ -130,6 +145,8 @@ Name | Type | Description | Notes **urlList** | **List<String>** | List of allowed URLs that bypass the \"Allow untrusted URL's\" setting in-game | **useReliableUdpForVoice** | **bool** | Unknown | [default to false] **viveWindowsUrl** | **String** | Download link for game on the Steam website. | +**voiceMaxPlaybackSourcesMobile** | **int** | | [optional] +**voiceMaxPlaybackSourcesPC** | **int** | | [optional] **websocketMaxFriendsRefreshDelay** | **int** | Unknown | [default to 900] **websocketQuickReconnectTime** | **int** | Unknown | [default to 2] **websocketReconnectMaxDelay** | **int** | Unknown | [default to 2] diff --git a/vrchat_dart_generated/doc/APIConfigAudioConfig.md b/vrchat_dart_generated/doc/APIConfigAudioConfig.md index 061a8428..c69cfd90 100644 --- a/vrchat_dart_generated/doc/APIConfigAudioConfig.md +++ b/vrchat_dart_generated/doc/APIConfigAudioConfig.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **nearFieldILDNudge** | **num** | Unknown | **nearFieldILDNudgeDistance** | **num** | Unknown | **nearFieldILDNudgeEarRadius** | **num** | Unknown | +**nearFieldILDNudgeEarTranslate** | **num** | | [optional] **perEarDirectionalityEarRadius** | **num** | Unknown | **perEarDirectionalityFadeDistance** | **num** | Unknown | **perEarDirectionalityMaxScale** | **num** | Unknown | @@ -19,6 +20,7 @@ Name | Type | Description | Notes **trackingScaleMax** | **num** | Unknown | **trackingScaleMin** | **num** | Unknown | **trackingScaleMultiplier** | **num** | Unknown | +**useLegacyILDNudging** | **bool** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/APIConfigEventShelfCampaign.md b/vrchat_dart_generated/doc/APIConfigEventShelfCampaign.md new file mode 100644 index 00000000..2534a46c --- /dev/null +++ b/vrchat_dart_generated/doc/APIConfigEventShelfCampaign.md @@ -0,0 +1,17 @@ +# vrchat_dart_generated.model.APIConfigEventShelfCampaign + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | [optional] +**key** | **String** | | +**name** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/APIConfigEvents.md b/vrchat_dart_generated/doc/APIConfigEvents.md index 890ddfcf..27abb817 100644 --- a/vrchat_dart_generated/doc/APIConfigEvents.md +++ b/vrchat_dart_generated/doc/APIConfigEvents.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **playerOrderFactor** | **int** | Unknown | **slowUpdateFactorThreshold** | **int** | Unknown | **useDirectPlayerSerialization** | **bool** | Unknown | +**useSparseRotationForPlayerSerialization** | **bool** | | [optional] **viewSegmentLength** | **int** | Unknown | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/APIConfigLoadingScreenWeights.md b/vrchat_dart_generated/doc/APIConfigLoadingScreenWeights.md new file mode 100644 index 00000000..23953415 --- /dev/null +++ b/vrchat_dart_generated/doc/APIConfigLoadingScreenWeights.md @@ -0,0 +1,17 @@ +# vrchat_dart_generated.model.APIConfigLoadingScreenWeights + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**announcement** | **int** | | [optional] +**informational** | **int** | | [optional] +**promotional** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/APIConfigLowMemoryGoHomeTimeoutValue.md b/vrchat_dart_generated/doc/APIConfigLowMemoryGoHomeTimeoutValue.md new file mode 100644 index 00000000..37613fbc --- /dev/null +++ b/vrchat_dart_generated/doc/APIConfigLowMemoryGoHomeTimeoutValue.md @@ -0,0 +1,15 @@ +# vrchat_dart_generated.model.APIConfigLowMemoryGoHomeTimeoutValue + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**timeout** | **int** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/APIConfigMinSupportedClientBuildNumber.md b/vrchat_dart_generated/doc/APIConfigMinSupportedClientBuildNumber.md index a7360cbd..818ae6c8 100644 --- a/vrchat_dart_generated/doc/APIConfigMinSupportedClientBuildNumber.md +++ b/vrchat_dart_generated/doc/APIConfigMinSupportedClientBuildNumber.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **googlePlay** | [**PlatformBuildInfo**](PlatformBuildInfo.md) | | **PC** | [**PlatformBuildInfo**](PlatformBuildInfo.md) | | **picoStore** | [**PlatformBuildInfo**](PlatformBuildInfo.md) | | -**questAppLab** | [**PlatformBuildInfo**](PlatformBuildInfo.md) | | +**questAppLab** | [**PlatformBuildInfo**](PlatformBuildInfo.md) | | [optional] **questStore** | [**PlatformBuildInfo**](PlatformBuildInfo.md) | | **testFlight** | [**PlatformBuildInfo**](PlatformBuildInfo.md) | | **xRElite** | [**PlatformBuildInfo**](PlatformBuildInfo.md) | | diff --git a/vrchat_dart_generated/doc/APIConfigProfileDefaults.md b/vrchat_dart_generated/doc/APIConfigProfileDefaults.md new file mode 100644 index 00000000..c541443c --- /dev/null +++ b/vrchat_dart_generated/doc/APIConfigProfileDefaults.md @@ -0,0 +1,19 @@ +# vrchat_dart_generated.model.APIConfigProfileDefaults + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**backgroundGradientBottom** | **String** | | [optional] +**backgroundGradientTop** | **String** | | [optional] +**themeButtonColor** | **String** | | [optional] +**themeIconColor** | **String** | | [optional] +**themeSubtextColor** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/AuthenticationApi.md b/vrchat_dart_generated/doc/AuthenticationApi.md index 176915c3..b6aa0558 100644 --- a/vrchat_dart_generated/doc/AuthenticationApi.md +++ b/vrchat_dart_generated/doc/AuthenticationApi.md @@ -21,7 +21,9 @@ Method | HTTP request | Description [**getCurrentUser**](AuthenticationApi.md#getcurrentuser) | **GET** /auth/user | Login and/or Get Current User Info [**getGlobalAvatarModerations**](AuthenticationApi.md#getglobalavatarmoderations) | **GET** /auth/user/avatarmoderations | Get Global Avatar Moderations [**getModerationReports**](AuthenticationApi.md#getmoderationreports) | **GET** /moderationReports | Get Moderation Reports +[**getOAuthRedirectCode**](AuthenticationApi.md#getoauthredirectcode) | **GET** /oauth/redirectCode | Get OAuth Redirect Code [**getRecoveryCodes**](AuthenticationApi.md#getrecoverycodes) | **GET** /auth/user/twofactorauth/otp | Get 2FA Recovery codes +[**getSsoToken**](AuthenticationApi.md#getssotoken) | **GET** /sso/{provider} | Get SSO Token [**logout**](AuthenticationApi.md#logout) | **PUT** /logout | Logout [**registerUserAccount**](AuthenticationApi.md#registeruseraccount) | **POST** /auth/register | Register User Account [**resendEmailConfirmation**](AuthenticationApi.md#resendemailconfirmation) | **POST** /auth/user/resendEmail | Resend Email Confirmation @@ -594,6 +596,49 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **getOAuthRedirectCode** +> OAuthRedirectCode getOAuthRedirectCode() + +Get OAuth Redirect Code + +Generate a short-lived OAuth redirect code for the current session. + +### Example +```dart +import 'package:vrchat_dart_generated/api.dart'; +// TODO Configure API key authorization: authCookie +//defaultApiClient.getAuthentication('authCookie').apiKey = 'YOUR_API_KEY'; +// uncomment below to setup prefix (e.g. Bearer) for API key, if needed +//defaultApiClient.getAuthentication('authCookie').apiKeyPrefix = 'Bearer'; + +final api = VrchatDartGenerated().getAuthenticationApi(); + +try { + final response = api.getOAuthRedirectCode(); + print(response); +} on DioException catch (e) { + print('Exception when calling AuthenticationApi->getOAuthRedirectCode: $e\n'); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**OAuthRedirectCode**](OAuthRedirectCode.md) + +### Authorization + +[authCookie](../README.md#authCookie) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **getRecoveryCodes** > TwoFactorRecoveryCodes getRecoveryCodes() @@ -637,6 +682,53 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **getSsoToken** +> SsoToken getSsoToken(provider) + +Get SSO Token + +Generate a token for the specified third-party service. + +### Example +```dart +import 'package:vrchat_dart_generated/api.dart'; +// TODO Configure API key authorization: authCookie +//defaultApiClient.getAuthentication('authCookie').apiKey = 'YOUR_API_KEY'; +// uncomment below to setup prefix (e.g. Bearer) for API key, if needed +//defaultApiClient.getAuthentication('authCookie').apiKeyPrefix = 'Bearer'; + +final api = VrchatDartGenerated().getAuthenticationApi(); +final SsoProvider provider = ; // SsoProvider | The third-party service to mint a token for. + +try { + final response = api.getSsoToken(provider); + print(response); +} on DioException catch (e) { + print('Exception when calling AuthenticationApi->getSsoToken: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **provider** | [**SsoProvider**](.md)| The third-party service to mint a token for. | + +### Return type + +[**SsoToken**](SsoToken.md) + +### Authorization + +[authCookie](../README.md#authCookie) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **logout** > Success logout() @@ -685,7 +777,7 @@ This endpoint does not need any parameter. Register User Account -~~Register a new user account.~~ **DEPRECATED:** Automated creation of accounts has no legitimate public third-party use case, and would be in violation of ToS §13.2: *By using the Platform, you agree not to: i. [...] use the Platform in a manner inconsistent with individual human usage* This endpoint is documented in the interest of completeness +Register a new user account. Automated creation of accounts has no legitimate public third-party use case, and would violate ToS §13.2: *By using the Platform, you agree not to: i. [...] use the Platform in a manner inconsistent with individual human usage* This endpoint is documented in the interest of completeness. ### Example ```dart diff --git a/vrchat_dart_generated/doc/Avatar.md b/vrchat_dart_generated/doc/Avatar.md index ad1dbb20..d582a659 100644 --- a/vrchat_dart_generated/doc/Avatar.md +++ b/vrchat_dart_generated/doc/Avatar.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **activeAssetReviewId** | **String** | Only present for the avatar author on avatars under active review. | [optional] **assetUrl** | **String** | Not present from general search `/avatars`, only on specific requests `/avatars/{avatarId}`. | [optional] **assetUrlObject** | **Object** | Not present from general search `/avatars`, only on specific requests `/avatars/{avatarId}`. **Deprecation:** `Object` has unknown usage/fields, and is always empty. Use normal `Url` field instead. | [optional] +**attribution** | **Object** | | [optional] **authorId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | **authorName** | **String** | | **createdAt** | [**DateTime**](DateTime.md) | | diff --git a/vrchat_dart_generated/doc/BareError.md b/vrchat_dart_generated/doc/BareError.md new file mode 100644 index 00000000..2b1a3c3d --- /dev/null +++ b/vrchat_dart_generated/doc/BareError.md @@ -0,0 +1,15 @@ +# vrchat_dart_generated.model.BareError + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/CalendarApi.md b/vrchat_dart_generated/doc/CalendarApi.md index df78f703..f21b5ad6 100644 --- a/vrchat_dart_generated/doc/CalendarApi.md +++ b/vrchat_dart_generated/doc/CalendarApi.md @@ -545,7 +545,7 @@ Name | Type | Description | Notes Get next calendar event -Get the closest future calendar event scheduled for a group +Return the closest future calendar event scheduled for a group. A group with no future scheduled events answers 404. ### Example ```dart diff --git a/vrchat_dart_generated/doc/CalendarEvent.md b/vrchat_dart_generated/doc/CalendarEvent.md index 3c897a99..ac4fe10e 100644 --- a/vrchat_dart_generated/doc/CalendarEvent.md +++ b/vrchat_dart_generated/doc/CalendarEvent.md @@ -26,6 +26,7 @@ Name | Type | Description | Notes **isDraft** | **bool** | | [optional] **languages** | **List<String>** | Languages that might be spoken at this event | [optional] **occurrenceKind** | [**CalendarEventOccurrenceKind**](CalendarEventOccurrenceKind.md) | | [optional] +**occurrenceModified** | **bool** | | [optional] **ownerId** | **String** | | [optional] **platforms** | [**List<CalendarEventPlatform>**](CalendarEventPlatform.md) | | [optional] **recurrence** | [**CalendarEventRecurrence**](CalendarEventRecurrence.md) | | [optional] diff --git a/vrchat_dart_generated/doc/CalendarEventDiscovery.md b/vrchat_dart_generated/doc/CalendarEventDiscovery.md index 07cbcb4b..f7d4de46 100644 --- a/vrchat_dart_generated/doc/CalendarEventDiscovery.md +++ b/vrchat_dart_generated/doc/CalendarEventDiscovery.md @@ -8,7 +8,7 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**nextCursor** | **String** | Base64-encoded JSON: type: object properties: dataSource: type: string enum: - featured - personalized dataIndex: type: integer format: int32 phase: type: string enum: - all - live - upcoming description: see CalendarEventDiscoveryScope asOf: type: integer format: int64 description: milliseconds since Unix epoch paramHash: type: string format: string description: Base64-encoded 256-bit hash of the original query parameters | +**nextCursor** | **String** | Base64-encoded JSON: type: object properties: dataSource: type: string enum: - featured - personalized dataIndex: type: integer format: int32 phase: type: string enum: - all - live - upcoming description: see CalendarEventDiscoveryScope asOf: type: integer format: int64 description: milliseconds since Unix epoch paramHash: type: string format: string description: Base64-encoded 256-bit hash of the original query parameters | [optional] **results** | [**List<CalendarEvent>**](CalendarEvent.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/CreateGroupAnnouncementRequest.md b/vrchat_dart_generated/doc/CreateGroupAnnouncementRequest.md index 54f1b036..5e7bcd16 100644 --- a/vrchat_dart_generated/doc/CreateGroupAnnouncementRequest.md +++ b/vrchat_dart_generated/doc/CreateGroupAnnouncementRequest.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **imageId** | **String** | | [optional] **sendNotification** | **bool** | Send notification to group members. | [optional] [default to false] -**text** | **String** | Announcement text | [optional] +**text** | **String** | Announcement text | **title** | **String** | Announcement title | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/CreateInstanceRequest.md b/vrchat_dart_generated/doc/CreateInstanceRequest.md index 7f46c052..4dab026b 100644 --- a/vrchat_dart_generated/doc/CreateInstanceRequest.md +++ b/vrchat_dart_generated/doc/CreateInstanceRequest.md @@ -10,9 +10,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ageGate** | **bool** | | [optional] [default to false] **calendarEntryId** | **String** | | [optional] -**canRequestInvite** | **bool** | Only applies to invite type instances to make them invite+ | [optional] [default to false] +**canRequestInvite** | **bool** | Makes a private instance invite+. A friends instance is rejected. | [optional] [default to false] +**categoryId** | **String** | | [optional] **closedAt** | [**DateTime**](DateTime.md) | The time after which users won't be allowed to join the instance. This doesn't work for public instances. | [optional] **contentSettings** | [**InstanceContentSettings**](InstanceContentSettings.md) | | [optional] +**description** | **String** | | [optional] **displayName** | **String** | | [optional] **groupAccessType** | [**GroupAccessType**](GroupAccessType.md) | | [optional] **hardClose** | **bool** | Currently unused, but will eventually be a flag to set if the closing of the instance should kick people. | [optional] [default to false] @@ -24,6 +26,7 @@ Name | Type | Description | Notes **region** | [**InstanceRegion**](InstanceRegion.md) | | **roleIds** | **List<String>** | Group roleIds that are allowed to join if the type is \"group\" and groupAccessType is \"member\" | [optional] **type** | [**InstanceType**](InstanceType.md) | | +**vibeIds** | **List<String>** | | [optional] **worldId** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/CurrentUser.md b/vrchat_dart_generated/doc/CurrentUser.md index 42a3cf22..d9303099 100644 --- a/vrchat_dart_generated/doc/CurrentUser.md +++ b/vrchat_dart_generated/doc/CurrentUser.md @@ -20,8 +20,11 @@ Name | Type | Description | Notes **appleId** | **String** | | [optional] **authToken** | **String** | The auth token for NEWLY REGISTERED ACCOUNTS ONLY (/auth/register) | [optional] **badges** | [**List<Badge>**](Badge.md) | | [optional] +**bannerColor** | **String** | | [optional] +**bannerType** | **String** | | [optional] **bio** | **String** | | **bioLinks** | **List<String>** | | +**completedTutorials** | **List<String>** | | [optional] **contentFilters** | **List<String>** | These tags begin with `content_` and control content gating | [optional] **currentAvatar** | **String** | | **currentAvatarImageUrl** | **String** | When profilePicOverride is not empty, use it instead. | @@ -36,6 +39,7 @@ Name | Type | Description | Notes **fallbackAvatar** | **String** | | [optional] **friendGroupNames** | **List<String>** | Always empty array. | **friendKey** | **String** | | +**friendRequestStatus** | **String** | State of a friend request between the caller and this user. VRChat sends the string `\"null\"`, not JSON `null`. | [optional] **friends** | **List<String>** | | **googleDetails** | **Object** | | [optional] **googleId** | **String** | | [optional] @@ -47,23 +51,34 @@ Name | Type | Description | Notes **hasSharedConnectionsOptOut** | **bool** | | [optional] **hideContentFilterSettings** | **bool** | | [optional] **homeLocation** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | +**iconFrame** | **String** | | [optional] +**iconUrl** | **String** | | [optional] **id** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | +**instanceId** | **String** | InstanceID can be \"offline\" on User profiles if you are not friends with that user and \"private\" if you are friends and user is in private instance. | [optional] **isAdult** | **bool** | | **isBoopingEnabled** | **bool** | | [optional] [default to true] +**isEconomyCreator** | **bool** | | [optional] [default to false] **isFriend** | **bool** | | [default to false] +**isTemporary** | **bool** | | [optional] [default to false] **lastActivity** | [**DateTime**](DateTime.md) | | [optional] **lastLogin** | [**DateTime**](DateTime.md) | | **lastMobile** | [**DateTime**](DateTime.md) | | **lastPlatform** | **String** | 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`. | +**location** | **String** | Represents a unique location, consisting of a world identifier and an instance identifier, or \"offline\" if the user is not on your friends list. | [optional] +**nameplateEffect** | **String** | | [optional] +**note** | **String** | | [optional] **obfuscatedEmail** | **String** | | **obfuscatedPendingEmail** | **String** | | **oculusId** | **String** | | **offlineFriends** | **List<String>** | | [optional] **onlineFriends** | **List<String>** | | [optional] **pastDisplayNames** | [**List<PastDisplayName>**](PastDisplayName.md) | | +**personalizationOptOut** | **bool** | | [optional] **picoId** | **String** | | [optional] +**platform** | **String** | | [optional] **platformHistory** | [**List<CurrentUserPlatformHistoryInner>**](CurrentUserPlatformHistoryInner.md) | | [optional] **presence** | [**CurrentUserPresence**](CurrentUserPresence.md) | | [optional] +**profileEffect** | **String** | | [optional] **profilePicOverride** | **String** | | **profilePicOverrideThumbnail** | **String** | | **pronouns** | **String** | | @@ -78,6 +93,10 @@ Name | Type | Description | Notes **steamDetails** | **Object** | | **steamId** | **String** | | **tags** | **List<String>** | | +**temporaryExpiryDate** | **Object** | | [optional] +**travelingToInstance** | **String** | | [optional] +**travelingToLocation** | **String** | | [optional] +**travelingToWorld** | **String** | | [optional] **twitchDetails** | **Object** | | [optional] **twitchId** | **String** | | [optional] **twoFactorAuthEnabled** | **bool** | | @@ -87,9 +106,10 @@ Name | Type | Description | Notes **userIcon** | **String** | | **userLanguage** | **String** | | [optional] **userLanguageCode** | **String** | | [optional] -**username** | **String** | -| **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). | [optional] +**username** | **String** | Your own unique name, used during login. Distinct from `displayName`, and never returned for another user. | [optional] **usesGeneratedPassword** | **bool** | | **viveId** | **String** | | [optional] +**worldId** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/CurrentUserPresence.md b/vrchat_dart_generated/doc/CurrentUserPresence.md index 5bbbc4b8..f733bf62 100644 --- a/vrchat_dart_generated/doc/CurrentUserPresence.md +++ b/vrchat_dart_generated/doc/CurrentUserPresence.md @@ -8,16 +8,21 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**avatarImageUrl** | **String** | | [optional] **avatarThumbnail** | **String** | | [optional] +**banner** | **String** | | [optional] **currentAvatarTags** | **List<String>** | | [optional] **debugflag** | **String** | | [optional] **displayName** | **String** | | [optional] **groups** | **List<String>** | | [optional] +**iconFrame** | **String** | | [optional] **id** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional] **instance** | **String** | | [optional] **instanceType** | **String** | either an InstanceType or an empty string | [optional] **isRejoining** | **String** | | [optional] +**nameplateEffect** | **String** | | [optional] **platform** | **String** | 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`. | [optional] +**profileEffect** | **String** | | [optional] **profilePicOverride** | **String** | | [optional] **status** | **String** | either a UserStatus or empty string | [optional] **travelingToInstance** | **String** | | [optional] diff --git a/vrchat_dart_generated/doc/DeprecatedApi.md b/vrchat_dart_generated/doc/DeprecatedApi.md new file mode 100644 index 00000000..5d1ec3ff --- /dev/null +++ b/vrchat_dart_generated/doc/DeprecatedApi.md @@ -0,0 +1,441 @@ +# vrchat_dart_generated.api.DeprecatedApi + +## Load the API package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +All URIs are relative to *https://api.vrchat.cloud/api/1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getBalanceEarnings**](DeprecatedApi.md#getbalanceearnings) | **GET** /user/{userId}/balance/earnings | Get Balance Earnings +[**getPropPublishStatus**](DeprecatedApi.md#getproppublishstatus) | **GET** /props/{propId}/publish | Get Prop Publish Status +[**getSellerEligibility**](DeprecatedApi.md#getsellereligibility) | **GET** /economy/seller/eligibility | Get Seller Eligibility +[**getTiliaStatus**](DeprecatedApi.md#gettiliastatus) | **GET** /tilia/status | Get Tilia Status +[**getTiliaTos**](DeprecatedApi.md#gettiliatos) | **GET** /user/{userId}/tilia/tos | Get Tilia TOS Agreement Status +[**getUserCreditsEligible**](DeprecatedApi.md#getusercreditseligible) | **GET** /users/{userId}/credits/eligible | Get User Credits Eligibility +[**publishProp**](DeprecatedApi.md#publishprop) | **PUT** /props/{propId}/publish | Publish Prop +[**unpublishProp**](DeprecatedApi.md#unpublishprop) | **DELETE** /props/{propId}/publish | Unpublish Prop +[**updateTiliaTos**](DeprecatedApi.md#updatetiliatos) | **PUT** /user/{userId}/tilia/tos | Update Tilia TOS Agreement Status + + +# **getBalanceEarnings** +> Balance getBalanceEarnings(userId) + +Get Balance Earnings + +Return the user's balance from earnings. + +### Example +```dart +import 'package:vrchat_dart_generated/api.dart'; +// TODO Configure API key authorization: authCookie +//defaultApiClient.getAuthentication('authCookie').apiKey = 'YOUR_API_KEY'; +// uncomment below to setup prefix (e.g. Bearer) for API key, if needed +//defaultApiClient.getAuthentication('authCookie').apiKeyPrefix = 'Bearer'; + +final api = VrchatDartGenerated().getDeprecatedApi(); +final String userId = userId_example; // String | Must be a valid user ID. + +try { + final response = api.getBalanceEarnings(userId); + print(response); +} on DioException catch (e) { + print('Exception when calling DeprecatedApi->getBalanceEarnings: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **String**| Must be a valid user ID. | + +### Return type + +[**Balance**](Balance.md) + +### Authorization + +[authCookie](../README.md#authCookie) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getPropPublishStatus** +> PropPublishStatus getPropPublishStatus(propId) + +Get Prop Publish Status + +Return the PropPublishStatus object. `/props/{propId}` is still served. + +### Example +```dart +import 'package:vrchat_dart_generated/api.dart'; +// TODO Configure API key authorization: authCookie +//defaultApiClient.getAuthentication('authCookie').apiKey = 'YOUR_API_KEY'; +// uncomment below to setup prefix (e.g. Bearer) for API key, if needed +//defaultApiClient.getAuthentication('authCookie').apiKeyPrefix = 'Bearer'; + +final api = VrchatDartGenerated().getDeprecatedApi(); +final String propId = propId_example; // String | Prop ID. + +try { + final response = api.getPropPublishStatus(propId); + print(response); +} on DioException catch (e) { + print('Exception when calling DeprecatedApi->getPropPublishStatus: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **propId** | **String**| Prop ID. | + +### Return type + +[**PropPublishStatus**](PropPublishStatus.md) + +### Authorization + +[authCookie](../README.md#authCookie) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getSellerEligibility** +> SellerEligibility getSellerEligibility() + +Get Seller Eligibility + +Return the current user's eligibility to become a seller. + +### Example +```dart +import 'package:vrchat_dart_generated/api.dart'; +// TODO Configure API key authorization: authCookie +//defaultApiClient.getAuthentication('authCookie').apiKey = 'YOUR_API_KEY'; +// uncomment below to setup prefix (e.g. Bearer) for API key, if needed +//defaultApiClient.getAuthentication('authCookie').apiKeyPrefix = 'Bearer'; + +final api = VrchatDartGenerated().getDeprecatedApi(); + +try { + final response = api.getSellerEligibility(); + print(response); +} on DioException catch (e) { + print('Exception when calling DeprecatedApi->getSellerEligibility: $e\n'); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SellerEligibility**](SellerEligibility.md) + +### Authorization + +[authCookie](../README.md#authCookie) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getTiliaStatus** +> TiliaStatus getTiliaStatus() + +Get Tilia Status + +Return the Tilia integration status. + +### Example +```dart +import 'package:vrchat_dart_generated/api.dart'; +// TODO Configure API key authorization: authCookie +//defaultApiClient.getAuthentication('authCookie').apiKey = 'YOUR_API_KEY'; +// uncomment below to setup prefix (e.g. Bearer) for API key, if needed +//defaultApiClient.getAuthentication('authCookie').apiKeyPrefix = 'Bearer'; + +final api = VrchatDartGenerated().getDeprecatedApi(); + +try { + final response = api.getTiliaStatus(); + print(response); +} on DioException catch (e) { + print('Exception when calling DeprecatedApi->getTiliaStatus: $e\n'); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**TiliaStatus**](TiliaStatus.md) + +### Authorization + +[authCookie](../README.md#authCookie) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getTiliaTos** +> TiliaTOS getTiliaTos(userId) + +Get Tilia TOS Agreement Status + +Return the user's Tilia TOS agreement status. + +### Example +```dart +import 'package:vrchat_dart_generated/api.dart'; +// TODO Configure API key authorization: authCookie +//defaultApiClient.getAuthentication('authCookie').apiKey = 'YOUR_API_KEY'; +// uncomment below to setup prefix (e.g. Bearer) for API key, if needed +//defaultApiClient.getAuthentication('authCookie').apiKeyPrefix = 'Bearer'; + +final api = VrchatDartGenerated().getDeprecatedApi(); +final String userId = userId_example; // String | Must be a valid user ID. + +try { + final response = api.getTiliaTos(userId); + print(response); +} on DioException catch (e) { + print('Exception when calling DeprecatedApi->getTiliaTos: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **String**| Must be a valid user ID. | + +### Return type + +[**TiliaTOS**](TiliaTOS.md) + +### Authorization + +[authCookie](../README.md#authCookie) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getUserCreditsEligible** +> UserCreditsEligible getUserCreditsEligible(userId, subscriptionId) + +Get User Credits Eligibility + +Return the user's subscription credit eligibility. + +### Example +```dart +import 'package:vrchat_dart_generated/api.dart'; +// TODO Configure API key authorization: authCookie +//defaultApiClient.getAuthentication('authCookie').apiKey = 'YOUR_API_KEY'; +// uncomment below to setup prefix (e.g. Bearer) for API key, if needed +//defaultApiClient.getAuthentication('authCookie').apiKeyPrefix = 'Bearer'; + +final api = VrchatDartGenerated().getDeprecatedApi(); +final String userId = userId_example; // String | Must be a valid user ID. +final String subscriptionId = subscriptionId_example; // String | + +try { + final response = api.getUserCreditsEligible(userId, subscriptionId); + print(response); +} on DioException catch (e) { + print('Exception when calling DeprecatedApi->getUserCreditsEligible: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **String**| Must be a valid user ID. | + **subscriptionId** | **String**| | + +### Return type + +[**UserCreditsEligible**](UserCreditsEligible.md) + +### Authorization + +[authCookie](../README.md#authCookie) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **publishProp** +> PropPublishStatus publishProp(propId) + +Publish Prop + +Publish a prop and return the updated PropPublishStatus object. `/props/{propId}` is still served. + +### Example +```dart +import 'package:vrchat_dart_generated/api.dart'; +// TODO Configure API key authorization: authCookie +//defaultApiClient.getAuthentication('authCookie').apiKey = 'YOUR_API_KEY'; +// uncomment below to setup prefix (e.g. Bearer) for API key, if needed +//defaultApiClient.getAuthentication('authCookie').apiKeyPrefix = 'Bearer'; + +final api = VrchatDartGenerated().getDeprecatedApi(); +final String propId = propId_example; // String | Prop ID. + +try { + final response = api.publishProp(propId); + print(response); +} on DioException catch (e) { + print('Exception when calling DeprecatedApi->publishProp: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **propId** | **String**| Prop ID. | + +### Return type + +[**PropPublishStatus**](PropPublishStatus.md) + +### Authorization + +[authCookie](../README.md#authCookie) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **unpublishProp** +> PropPublishStatus unpublishProp(propId) + +Unpublish Prop + +Unpublish a prop and return the updated PropPublishStatus object. `/props/{propId}` is still served. + +### Example +```dart +import 'package:vrchat_dart_generated/api.dart'; +// TODO Configure API key authorization: authCookie +//defaultApiClient.getAuthentication('authCookie').apiKey = 'YOUR_API_KEY'; +// uncomment below to setup prefix (e.g. Bearer) for API key, if needed +//defaultApiClient.getAuthentication('authCookie').apiKeyPrefix = 'Bearer'; + +final api = VrchatDartGenerated().getDeprecatedApi(); +final String propId = propId_example; // String | Prop ID. + +try { + final response = api.unpublishProp(propId); + print(response); +} on DioException catch (e) { + print('Exception when calling DeprecatedApi->unpublishProp: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **propId** | **String**| Prop ID. | + +### Return type + +[**PropPublishStatus**](PropPublishStatus.md) + +### Authorization + +[authCookie](../README.md#authCookie) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **updateTiliaTos** +> Object updateTiliaTos(userId, updateTiliaTOSRequest) + +Update Tilia TOS Agreement Status + +Update the user's Tilia TOS agreement status. + +### Example +```dart +import 'package:vrchat_dart_generated/api.dart'; +// TODO Configure API key authorization: authCookie +//defaultApiClient.getAuthentication('authCookie').apiKey = 'YOUR_API_KEY'; +// uncomment below to setup prefix (e.g. Bearer) for API key, if needed +//defaultApiClient.getAuthentication('authCookie').apiKeyPrefix = 'Bearer'; + +final api = VrchatDartGenerated().getDeprecatedApi(); +final String userId = userId_example; // String | Must be a valid user ID. +final UpdateTiliaTOSRequest updateTiliaTOSRequest = ; // UpdateTiliaTOSRequest | + +try { + final response = api.updateTiliaTos(userId, updateTiliaTOSRequest); + print(response); +} on DioException catch (e) { + print('Exception when calling DeprecatedApi->updateTiliaTos: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **String**| Must be a valid user ID. | + **updateTiliaTOSRequest** | [**UpdateTiliaTOSRequest**](UpdateTiliaTOSRequest.md)| | [optional] + +### Return type + +**Object** + +### Authorization + +[authCookie](../README.md#authCookie) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/vrchat_dart_generated/doc/DynamicContentRow.md b/vrchat_dart_generated/doc/DynamicContentRow.md index 21749391..aae2f706 100644 --- a/vrchat_dart_generated/doc/DynamicContentRow.md +++ b/vrchat_dart_generated/doc/DynamicContentRow.md @@ -8,14 +8,38 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**anyStyle** | **List<String>** | | [optional] +**anyTag** | **List<String>** | | [optional] +**avatarSpecific** | **bool** | | [optional] +**bannersTag** | **String** | | [optional] +**categories** | **List<String>** | | [optional] +**featuredResults** | **String** | | [optional] **index** | **int** | | [optional] +**marketplace** | **String** | | [optional] +**maxPrice** | **int** | | [optional] +**minOccupants** | **int** | | [optional] +**minPrice** | **int** | | [optional] +**minimumInterestCount** | **int** | | [optional] +**minimumRemainingMinutes** | **int** | | [optional] +**mode** | **String** | | [optional] +**n** | **int** | | [optional] **name** | **String** | | +**nonFeaturedResults** | **String** | | [optional] +**notag** | **List<String>** | | [optional] +**params** | **Map<String, Object>** | | [optional] +**personalizedResults** | **String** | | [optional] **platform** | **String** | 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`. | -**sortHeading** | **String** | | -**sortOrder** | **String** | | -**sortOwnership** | **String** | | -**tag** | **String** | Tags are a way to grant various access, assign restrictions or other kinds of metadata to various to objects such as worlds, users and avatars. System tags starting with `system_` are granted automatically by the system, while admin tags with `admin_` are granted manually. More prefixes such as `language_ ` (to indicate that a player can speak the tagged language), and `author_tag_` (provided by a world author for search and sorting) exist as well. | [optional] +**region** | **String** | | [optional] +**scope** | **String** | | [optional] +**shortName** | **String** | | [optional] +**sortHeading** | **String** | | [optional] +**sortOrder** | **String** | | [optional] +**sortOwnership** | **String** | | [optional] +**style** | **String** | | [optional] +**tag** | **String** | Tag to filter content for this row. Not a `Tag`: that type forbids the empty string, which this field uses for a row that is not tag-filtered. | [optional] +**tags** | **List<String>** | | [optional] **type** | **String** | Type is not present if it is a world. | [optional] +**upcomingOffsetMinutes** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/EconomyApi.md b/vrchat_dart_generated/doc/EconomyApi.md index 566aad28..73cb9470 100644 --- a/vrchat_dart_generated/doc/EconomyApi.md +++ b/vrchat_dart_generated/doc/EconomyApi.md @@ -290,7 +290,7 @@ This endpoint does not need any parameter. Get Balance -Gets the balance of a user +Return the balance of a user. ### Example ```dart @@ -337,7 +337,7 @@ Name | Type | Description | Notes Get Balance Earnings -Gets the balance of a user from earnings +Return the user's balance from earnings. ### Example ```dart @@ -470,7 +470,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getEarningsMetrics** -> EarningsMetrics getEarningsMetrics(sellerId, metricDateStart, metricDateEnd, groupByDuration) +> EarningsMetrics getEarningsMetrics(metricDateStart, metricDateEnd, sellerId, groupByDuration) Get Earnings Metrics @@ -485,13 +485,13 @@ import 'package:vrchat_dart_generated/api.dart'; //defaultApiClient.getAuthentication('authCookie').apiKeyPrefix = 'Bearer'; final api = VrchatDartGenerated().getEconomyApi(); -final String sellerId = sellerId_example; // String | Seller to retrieve economy metrics for. final String metricDateStart = 2026-03-28T23:00:00.000Z; // String | Lower bound for economy metrics queries. Observed formats include both date-only and full ISO timestamps. final String metricDateEnd = 2026-04-04T21:59:59.999Z; // String | Upper bound for economy metrics queries. Observed formats include both date-only and full ISO timestamps. +final String sellerId = sellerId_example; // String | Filter results by seller. final String groupByDuration = days; // String | Time bucket size for economy metrics. Observed values include `days` and `years`. try { - final response = api.getEarningsMetrics(sellerId, metricDateStart, metricDateEnd, groupByDuration); + final response = api.getEarningsMetrics(metricDateStart, metricDateEnd, sellerId, groupByDuration); print(response); } on DioException catch (e) { print('Exception when calling EconomyApi->getEarningsMetrics: $e\n'); @@ -502,9 +502,9 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sellerId** | **String**| Seller to retrieve economy metrics for. | **metricDateStart** | **String**| Lower bound for economy metrics queries. Observed formats include both date-only and full ISO timestamps. | [optional] **metricDateEnd** | **String**| Upper bound for economy metrics queries. Observed formats include both date-only and full ISO timestamps. | [optional] + **sellerId** | **String**| Filter results by seller. | [optional] **groupByDuration** | **String**| Time bucket size for economy metrics. Observed values include `days` and `years`. | [optional] ### Return type @@ -1174,7 +1174,7 @@ This endpoint does not need any parameter. Get Seller Eligibility -Get the eligibility of the currently authenticated user to become a seller +Return the current user's eligibility to become a seller. ### Example ```dart @@ -1405,7 +1405,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getSubscriptions** -> List getSubscriptions() +> List getSubscriptions(gifts, recurring) List Subscriptions @@ -1420,9 +1420,11 @@ import 'package:vrchat_dart_generated/api.dart'; //defaultApiClient.getAuthentication('authCookie').apiKeyPrefix = 'Bearer'; final api = VrchatDartGenerated().getEconomyApi(); +final bool gifts = true; // bool | Return giftable subscriptions instead of standard ones. +final bool recurring = true; // bool | Return recurring subscriptions instead of standard ones. try { - final response = api.getSubscriptions(); + final response = api.getSubscriptions(gifts, recurring); print(response); } on DioException catch (e) { print('Exception when calling EconomyApi->getSubscriptions: $e\n'); @@ -1430,7 +1432,11 @@ try { ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **gifts** | **bool**| Return giftable subscriptions instead of standard ones. | [optional] + **recurring** | **bool**| Return recurring subscriptions instead of standard ones. | [optional] ### Return type @@ -1452,7 +1458,7 @@ This endpoint does not need any parameter. Get Tilia Status -Gets the status of Tilia integration +Return the Tilia integration status. ### Example ```dart @@ -1495,7 +1501,7 @@ This endpoint does not need any parameter. Get Tilia TOS Agreement Status -Gets the status of the agreement of a user to the Tilia TOS +Return the user's Tilia TOS agreement status. ### Example ```dart @@ -1585,7 +1591,7 @@ This endpoint does not need any parameter. Get User Credits Eligibility -Get the user's eligibility status for subscriptions based on available credits. +Return the user's subscription credit eligibility. ### Example ```dart @@ -1730,7 +1736,7 @@ Name | Type | Description | Notes List Stores -Lists stores, optionally filtered to a seller and adjusted for management views. +List a seller's stores, adjusted for management views. ### Example ```dart @@ -1741,7 +1747,7 @@ import 'package:vrchat_dart_generated/api.dart'; //defaultApiClient.getAuthentication('authCookie').apiKeyPrefix = 'Bearer'; final api = VrchatDartGenerated().getEconomyApi(); -final String sellerId = sellerId_example; // String | Filter results by seller. +final String sellerId = sellerId_example; // String | Seller to scope the results to. final bool managementPov = true; // bool | Return stores from the seller management point of view. final int n = 56; // int | The number of objects to return. final int offset = 56; // int | A zero-based offset from the default object sorting from where search results start. @@ -1758,7 +1764,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sellerId** | **String**| Filter results by seller. | [optional] + **sellerId** | **String**| Seller to scope the results to. | **managementPov** | **bool**| Return stores from the seller management point of view. | [optional] **n** | **int**| The number of objects to return. | [optional] [default to 60] **offset** | **int**| A zero-based offset from the default object sorting from where search results start. | [optional] @@ -1981,7 +1987,7 @@ Name | Type | Description | Notes Update Tilia TOS Agreement Status -Updates the status of the agreement of a user to the Tilia TOS +Update the user's Tilia TOS agreement status. ### Example ```dart diff --git a/vrchat_dart_generated/doc/EconomyBalances.md b/vrchat_dart_generated/doc/EconomyBalances.md index e1492c56..fada1313 100644 --- a/vrchat_dart_generated/doc/EconomyBalances.md +++ b/vrchat_dart_generated/doc/EconomyBalances.md @@ -9,7 +9,7 @@ import 'package:vrchat_dart_generated/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **balance** | **int** | | -**earnings** | **int** | | +**earnings** | **int** | | [optional] **standard** | **int** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/FavoritedWorld.md b/vrchat_dart_generated/doc/FavoritedWorld.md index 6484fdfd..633aea4a 100644 --- a/vrchat_dart_generated/doc/FavoritedWorld.md +++ b/vrchat_dart_generated/doc/FavoritedWorld.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **createdAt** | [**DateTime**](DateTime.md) | | [optional] **defaultContentSettings** | [**InstanceContentSettings**](InstanceContentSettings.md) | | [optional] **description** | **String** | | [optional] +**disabledPropAbilities** | **List<Object>** | | [optional] **favoriteGroup** | **String** | | **favoriteId** | **String** | | **favorites** | **int** | | [optional] [default to 0] diff --git a/vrchat_dart_generated/doc/FavoritesApi.md b/vrchat_dart_generated/doc/FavoritesApi.md index 5c9f841f..e8ce083a 100644 --- a/vrchat_dart_generated/doc/FavoritesApi.md +++ b/vrchat_dart_generated/doc/FavoritesApi.md @@ -169,7 +169,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getFavoriteGroups** -> List getFavoriteGroups(n, offset, userId, ownerId) +> List getFavoriteGroups(n, offset, type, userId, ownerId) List Favorite Groups @@ -186,11 +186,12 @@ import 'package:vrchat_dart_generated/api.dart'; final api = VrchatDartGenerated().getFavoritesApi(); final int n = 56; // int | The number of objects to return. final int offset = 56; // int | A zero-based offset from the default object sorting from where search results start. +final FavoriteType type = ; // FavoriteType | Filter to a single favorite group type. final String userId = userId_example; // String | Target user to see information on, admin-only. -final String ownerId = ownerId_example; // String | The owner whose favorite groups to return. Must be a UserID. +final String ownerId = ownerId_example; // String | The user whose favorite groups to return. Must be a user ID. try { - final response = api.getFavoriteGroups(n, offset, userId, ownerId); + final response = api.getFavoriteGroups(n, offset, type, userId, ownerId); print(response); } on DioException catch (e) { print('Exception when calling FavoritesApi->getFavoriteGroups: $e\n'); @@ -203,8 +204,9 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **n** | **int**| The number of objects to return. | [optional] [default to 60] **offset** | **int**| A zero-based offset from the default object sorting from where search results start. | [optional] + **type** | [**FavoriteType**](.md)| Filter to a single favorite group type. | [optional] **userId** | **String**| Target user to see information on, admin-only. | [optional] - **ownerId** | **String**| The owner whose favorite groups to return. Must be a UserID. | [optional] + **ownerId** | **String**| The user whose favorite groups to return. Must be a user ID. | [optional] ### Return type diff --git a/vrchat_dart_generated/doc/FileAnalysisAvatarStats.md b/vrchat_dart_generated/doc/FileAnalysisAvatarStats.md index d529a3eb..5a12b507 100644 --- a/vrchat_dart_generated/doc/FileAnalysisAvatarStats.md +++ b/vrchat_dart_generated/doc/FileAnalysisAvatarStats.md @@ -40,6 +40,7 @@ Name | Type | Description | Notes **physBoneTransformCount** | **int** | | **physicsColliders** | **int** | | **physicsRigidbodies** | **int** | | +**raycastCount** | **int** | | [optional] **skinnedMeshCount** | **int** | | **skinnedMeshIndices** | **int** | | **skinnedMeshPolygons** | **int** | | diff --git a/vrchat_dart_generated/doc/GetGroupPosts200Response.md b/vrchat_dart_generated/doc/GetGroupPosts200Response.md index ae626051..7f8a09f7 100644 --- a/vrchat_dart_generated/doc/GetGroupPosts200Response.md +++ b/vrchat_dart_generated/doc/GetGroupPosts200Response.md @@ -9,6 +9,7 @@ import 'package:vrchat_dart_generated/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **posts** | [**List<GroupPost>**](GroupPost.md) | | [optional] +**total** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/Group.md b/vrchat_dart_generated/doc/Group.md index 18b2b5c7..86de494a 100644 --- a/vrchat_dart_generated/doc/Group.md +++ b/vrchat_dart_generated/doc/Group.md @@ -32,6 +32,8 @@ Name | Type | Description | Notes **membershipStatus** | [**GroupMemberStatus**](GroupMemberStatus.md) | | [optional] **myMember** | [**GroupMyMember**](GroupMyMember.md) | | [optional] **name** | **String** | | [optional] +**nameplateId** | **Object** | | [optional] +**nameplateUrl** | **Object** | | [optional] **onlineMemberCount** | **int** | | [optional] **ownerId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional] **privacy** | [**GroupPrivacy**](GroupPrivacy.md) | | [optional] diff --git a/vrchat_dart_generated/doc/GroupAnnouncement.md b/vrchat_dart_generated/doc/GroupAnnouncement.md index 9a4be6fc..f0a840c1 100644 --- a/vrchat_dart_generated/doc/GroupAnnouncement.md +++ b/vrchat_dart_generated/doc/GroupAnnouncement.md @@ -10,13 +10,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **authorId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional] **createdAt** | [**DateTime**](DateTime.md) | | [optional] +**editorId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional] **groupId** | **String** | | [optional] **id** | **String** | | [optional] **imageId** | **String** | | [optional] **imageUrl** | **String** | | [optional] +**roleIds** | **List<String>** | | [optional] **text** | **String** | | [optional] **title** | **String** | | [optional] **updatedAt** | [**DateTime**](DateTime.md) | | [optional] +**visibility** | **String** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/GroupPermission.md b/vrchat_dart_generated/doc/GroupPermission.md index d95cd43c..d60f8a1e 100644 --- a/vrchat_dart_generated/doc/GroupPermission.md +++ b/vrchat_dart_generated/doc/GroupPermission.md @@ -9,6 +9,7 @@ import 'package:vrchat_dart_generated/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **allowedToAdd** | **bool** | Whether the user is allowed to add this permission to a role. | [optional] [default to false] +**dependsOn** | [**List<GroupPermissions>**](GroupPermissions.md) | Other permission names this one is listed against. | [optional] **displayName** | **String** | The display name of the permission. | [optional] **help** | **String** | Human-readable description of the permission. | [optional] **isManagementPermission** | **bool** | Whether this permission is a \"management\" permission. | [optional] [default to false] diff --git a/vrchat_dart_generated/doc/GroupPost.md b/vrchat_dart_generated/doc/GroupPost.md index 73880395..657235e4 100644 --- a/vrchat_dart_generated/doc/GroupPost.md +++ b/vrchat_dart_generated/doc/GroupPost.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **id** | **String** | | [optional] **imageId** | **String** | | [optional] **imageUrl** | **String** | | [optional] -**roleId** | **List<String>** | | [optional] +**roleIds** | **List<String>** | | [optional] **text** | **String** | | [optional] **title** | **String** | | [optional] **updatedAt** | [**DateTime**](DateTime.md) | | [optional] diff --git a/vrchat_dart_generated/doc/GroupRole.md b/vrchat_dart_generated/doc/GroupRole.md index 2b0fd8b4..0d2b0261 100644 --- a/vrchat_dart_generated/doc/GroupRole.md +++ b/vrchat_dart_generated/doc/GroupRole.md @@ -9,9 +9,11 @@ import 'package:vrchat_dart_generated/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **createdAt** | [**DateTime**](DateTime.md) | | [optional] +**defaultRole** | **bool** | | [optional] [default to false] **description** | **String** | | [optional] **groupId** | **String** | | [optional] **id** | **String** | | [optional] +**isAddedOnJoin** | **bool** | | [optional] [default to false] **isManagementRole** | **bool** | | [optional] [default to false] **isSelfAssignable** | **bool** | | [optional] [default to false] **name** | **String** | | [optional] diff --git a/vrchat_dart_generated/doc/GroupRoleTemplateValuesRoles.md b/vrchat_dart_generated/doc/GroupRoleTemplateRole.md similarity index 64% rename from vrchat_dart_generated/doc/GroupRoleTemplateValuesRoles.md rename to vrchat_dart_generated/doc/GroupRoleTemplateRole.md index ea4d1f47..a3a8a111 100644 --- a/vrchat_dart_generated/doc/GroupRoleTemplateValuesRoles.md +++ b/vrchat_dart_generated/doc/GroupRoleTemplateRole.md @@ -1,4 +1,4 @@ -# vrchat_dart_generated.model.GroupRoleTemplateValuesRoles +# vrchat_dart_generated.model.GroupRoleTemplateRole ## Load the model package ```dart @@ -8,10 +8,10 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **String** | | [optional] -**description** | **String** | | [optional] -**basePermissions** | [**List<GroupPermissions>**](GroupPermissions.md) | | [optional] +**description** | **String** | | **isAddedOnJoin** | **bool** | | [optional] [default to false] +**name** | **String** | | +**permissions** | [**List<GroupPermissions>**](GroupPermissions.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/GroupRoleTemplateValues.md b/vrchat_dart_generated/doc/GroupRoleTemplateValues.md index b006b807..95f52f72 100644 --- a/vrchat_dart_generated/doc/GroupRoleTemplateValues.md +++ b/vrchat_dart_generated/doc/GroupRoleTemplateValues.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **basePermissions** | [**List<GroupPermissions>**](GroupPermissions.md) | | **description** | **String** | | **name** | **String** | | -**roles** | [**GroupRoleTemplateValuesRoles**](GroupRoleTemplateValuesRoles.md) | | +**roles** | [**List<GroupRoleTemplateRole>**](GroupRoleTemplateRole.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/InfoPush.md b/vrchat_dart_generated/doc/InfoPush.md index 5748c1de..47d22812 100644 --- a/vrchat_dart_generated/doc/InfoPush.md +++ b/vrchat_dart_generated/doc/InfoPush.md @@ -8,14 +8,18 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**clientMinVersion** | **Object** | | [optional] **createdAt** | [**DateTime**](DateTime.md) | | **data** | [**InfoPushData**](InfoPushData.md) | | **endDate** | [**DateTime**](DateTime.md) | | [optional] +**experiment** | [**InfoPushExperiment**](InfoPushExperiment.md) | | [optional] **hash** | **String** | Unknown usage, MD5 | **id** | **String** | | **isEnabled** | **bool** | | [default to true] **priority** | **int** | | +**regions** | **List<String>** | | [optional] **releaseStatus** | [**ReleaseStatus**](ReleaseStatus.md) | | +**requireClientTags** | **List<String>** | | [optional] **startDate** | [**DateTime**](DateTime.md) | | [optional] **tags** | **List<String>** | | **updatedAt** | [**DateTime**](DateTime.md) | | diff --git a/vrchat_dart_generated/doc/InfoPushData.md b/vrchat_dart_generated/doc/InfoPushData.md index 462adc68..5d6a3e35 100644 --- a/vrchat_dart_generated/doc/InfoPushData.md +++ b/vrchat_dart_generated/doc/InfoPushData.md @@ -9,13 +9,34 @@ import 'package:vrchat_dart_generated/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **article** | [**InfoPushDataArticle**](InfoPushDataArticle.md) | | [optional] +**authorName** | **String** | | [optional] +**avatarId** | **String** | | [optional] +**bannerImageUrl** | **String** | | [optional] +**categories** | [**List<InfoPushDataCategory>**](InfoPushDataCategory.md) | | [optional] +**category** | **String** | | [optional] **contentList** | [**DynamicContentRow**](DynamicContentRow.md) | | [optional] **description** | **String** | | [optional] +**disclaimerText** | **String** | | [optional] +**domainList** | [**List<InfoPushDataDomainListInner>**](InfoPushDataDomainListInner.md) | | [optional] +**featuredAvatarCategoryId** | **String** | | [optional] +**finalName** | **String** | | [optional] +**iconImageUrl** | **String** | | [optional] **imageUrl** | **String** | | [optional] +**ipsQuery** | [**InfoPushIpsQuery**](InfoPushIpsQuery.md) | | [optional] +**isNew** | **bool** | | [optional] +**listingIds** | **List<String>** | | [optional] **name** | **String** | | [optional] **onPressed** | [**InfoPushDataClickable**](InfoPushDataClickable.md) | | [optional] +**overrideName** | **Object** | | [optional] +**rows** | **int** | Number of rows to render. | [optional] +**search** | [**InfoPushDataSearch**](InfoPushDataSearch.md) | | [optional] +**shortName** | **String** | | [optional] **template** | **String** | | [optional] +**thumbnailImageUrl** | **String** | | [optional] +**tooltipDescription** | **String** | | [optional] **version** | **String** | | [optional] +**weight** | **int** | | [optional] +**worldTag** | **String** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/InfoPushDataArticle.md b/vrchat_dart_generated/doc/InfoPushDataArticle.md index 86c27a96..ffbfab3f 100644 --- a/vrchat_dart_generated/doc/InfoPushDataArticle.md +++ b/vrchat_dart_generated/doc/InfoPushDataArticle.md @@ -8,7 +8,11 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**content** | [**InfoPushDataArticleContent**](InfoPushDataArticleContent.md) | | [optional] +**content** | [**List<InfoPushDataArticleContent>**](InfoPushDataArticleContent.md) | | [optional] +**embeddedLinkData** | [**List<InfoPushEmbeddedLink>**](InfoPushEmbeddedLink.md) | | [optional] +**jumpLinks** | **List<String>** | | [optional] +**moreInfoLinks** | [**List<InfoPushEmbeddedLink>**](InfoPushEmbeddedLink.md) | | [optional] +**sectionLinks** | **List<String>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/InfoPushDataArticleContent.md b/vrchat_dart_generated/doc/InfoPushDataArticleContent.md index bd4803d7..1dd94717 100644 --- a/vrchat_dart_generated/doc/InfoPushDataArticleContent.md +++ b/vrchat_dart_generated/doc/InfoPushDataArticleContent.md @@ -8,9 +8,12 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**id** | **String** | | [optional] **imageUrl** | **String** | | [optional] **onPressed** | [**InfoPushDataClickable**](InfoPushDataClickable.md) | | [optional] **text** | **String** | | [optional] +**title** | **String** | | [optional] +**videoUrl** | **String** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/InfoPushDataCategory.md b/vrchat_dart_generated/doc/InfoPushDataCategory.md new file mode 100644 index 00000000..fd5b8782 --- /dev/null +++ b/vrchat_dart_generated/doc/InfoPushDataCategory.md @@ -0,0 +1,19 @@ +# vrchat_dart_generated.model.InfoPushDataCategory + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ids** | **List<String>** | | [optional] +**ipsQuery** | [**InfoPushIpsQuery**](InfoPushIpsQuery.md) | | [optional] +**maxCells** | **int** | | [optional] +**name** | **String** | | [optional] +**type** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/InfoPushDataDomainListInner.md b/vrchat_dart_generated/doc/InfoPushDataDomainListInner.md new file mode 100644 index 00000000..7568aced --- /dev/null +++ b/vrchat_dart_generated/doc/InfoPushDataDomainListInner.md @@ -0,0 +1,15 @@ +# vrchat_dart_generated.model.InfoPushDataDomainListInner + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/InfoPushDataSearch.md b/vrchat_dart_generated/doc/InfoPushDataSearch.md new file mode 100644 index 00000000..34f8faa7 --- /dev/null +++ b/vrchat_dart_generated/doc/InfoPushDataSearch.md @@ -0,0 +1,19 @@ +# vrchat_dart_generated.model.InfoPushDataSearch + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**searchContent** | **String** | | [optional] +**searchInFields** | **String** | | [optional] +**searchQuery** | **String** | | [optional] +**searchTags** | **String** | | [optional] +**sortBy** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/InfoPushEmbeddedLink.md b/vrchat_dart_generated/doc/InfoPushEmbeddedLink.md new file mode 100644 index 00000000..88782f72 --- /dev/null +++ b/vrchat_dart_generated/doc/InfoPushEmbeddedLink.md @@ -0,0 +1,18 @@ +# vrchat_dart_generated.model.InfoPushEmbeddedLink + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**parameters** | **List<String>** | | [optional] +**command** | **String** | | [optional] +**id** | **String** | | [optional] +**name** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/InfoPushExperiment.md b/vrchat_dart_generated/doc/InfoPushExperiment.md new file mode 100644 index 00000000..16b99cfd --- /dev/null +++ b/vrchat_dart_generated/doc/InfoPushExperiment.md @@ -0,0 +1,16 @@ +# vrchat_dart_generated.model.InfoPushExperiment + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **String** | | [optional] +**variant** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/InfoPushIpsQuery.md b/vrchat_dart_generated/doc/InfoPushIpsQuery.md new file mode 100644 index 00000000..ddd84be4 --- /dev/null +++ b/vrchat_dart_generated/doc/InfoPushIpsQuery.md @@ -0,0 +1,16 @@ +# vrchat_dart_generated.model.InfoPushIpsQuery + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**include** | **String** | | [optional] +**require** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/Instance.md b/vrchat_dart_generated/doc/Instance.md index 881abdf6..0e3e4b3e 100644 --- a/vrchat_dart_generated/doc/Instance.md +++ b/vrchat_dart_generated/doc/Instance.md @@ -13,11 +13,16 @@ Name | Type | Description | Notes **calendarEntryId** | **String** | | [optional] **canRequestInvite** | **bool** | | [optional] [default to true] **capacity** | **int** | | [optional] +**categoryId** | **String** | | [optional] **clientNumber** | **String** | Always returns \"unknown\". | **closedAt** | [**DateTime**](DateTime.md) | | [optional] **contentSettings** | [**InstanceContentSettings**](InstanceContentSettings.md) | | [optional] +**creationLanguages** | **List<Object>** | | [optional] **creatorId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional] +**description** | **String** | | [optional] +**disabledPropAbilities** | **List<Object>** | | [optional] **displayName** | **String** | | [optional] +**dominantLanguage** | **String** | | [optional] **friends** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional] **full** | **bool** | | [default to false] **gameServerVersion** | **int** | | [optional] @@ -28,7 +33,11 @@ Name | Type | Description | Notes **id** | **String** | InstanceID can be \"offline\" on User profiles if you are not friends with that user and \"private\" if you are friends and user is in private instance. | **instanceId** | **String** | InstanceID can be \"offline\" on User profiles if you are not friends with that user and \"private\" if you are friends and user is in private instance. | **instancePersistenceEnabled** | **bool** | | [optional] +**languageRatio** | **Map<String, Object>** | | [optional] +**languages** | **List<String>** | The keys of languageRatio, ordered by their share of the instance. | [optional] +**languagesIso639** | **List<String>** | | [optional] **location** | **String** | Represents a unique location, consisting of a world identifier and an instance identifier, or \"offline\" if the user is not on your friends list. | +**minimumAvatarPerformance** | **String** | | [optional] **nUsers** | **int** | | **name** | **String** | | **nonce** | **String** | | [optional] @@ -49,7 +58,9 @@ Name | Type | Description | Notes **tags** | **List<String>** | The tags array on Instances usually contain the language tags of the people in the instance. | **type** | [**InstanceType**](InstanceType.md) | | **userCount** | **int** | | +**userIcons** | **List<String>** | | [optional] **users** | [**List<LimitedUserInstance>**](LimitedUserInstance.md) | The users field is present on instances created by the requesting user. | [optional] +**vibeIds** | **List<String>** | | [optional] **world** | [**World**](World.md) | | **worldId** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | diff --git a/vrchat_dart_generated/doc/InstanceCategory.md b/vrchat_dart_generated/doc/InstanceCategory.md new file mode 100644 index 00000000..ff3cce58 --- /dev/null +++ b/vrchat_dart_generated/doc/InstanceCategory.md @@ -0,0 +1,19 @@ +# vrchat_dart_generated.model.InstanceCategory + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**deleted** | **bool** | | +**iconUrl** | **String** | | +**id** | **String** | | +**name** | **String** | | +**order** | **int** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/InstanceVibe.md b/vrchat_dart_generated/doc/InstanceVibe.md new file mode 100644 index 00000000..868b3a10 --- /dev/null +++ b/vrchat_dart_generated/doc/InstanceVibe.md @@ -0,0 +1,17 @@ +# vrchat_dart_generated.model.InstanceVibe + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**deleted** | **bool** | | +**id** | **String** | | +**title** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/InstancesApi.md b/vrchat_dart_generated/doc/InstancesApi.md index 2a0e8f7b..bb84dfb0 100644 --- a/vrchat_dart_generated/doc/InstancesApi.md +++ b/vrchat_dart_generated/doc/InstancesApi.md @@ -13,6 +13,8 @@ Method | HTTP request | Description [**createInstance**](InstancesApi.md#createinstance) | **POST** /instances | Create Instance [**getInstance**](InstancesApi.md#getinstance) | **GET** /instances/{worldId}:{instanceId} | Get Instance [**getInstanceByShortName**](InstancesApi.md#getinstancebyshortname) | **GET** /instances/s/{shortName} | Get Instance By Short Name +[**getInstanceCategories**](InstancesApi.md#getinstancecategories) | **GET** /instanceCategories | List Instance Categories +[**getInstanceVibes**](InstancesApi.md#getinstancevibes) | **GET** /instanceVibes | List Instance Vibes [**getRecentLocations**](InstancesApi.md#getrecentlocations) | **GET** /instances/recent | List Recent Locations [**getShortName**](InstancesApi.md#getshortname) | **GET** /instances/{worldId}:{instanceId}/shortName | Get Instance Short Name @@ -213,6 +215,92 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **getInstanceCategories** +> List getInstanceCategories() + +List Instance Categories + +Returns the categories an instance can be listed under. + +### Example +```dart +import 'package:vrchat_dart_generated/api.dart'; +// TODO Configure API key authorization: authCookie +//defaultApiClient.getAuthentication('authCookie').apiKey = 'YOUR_API_KEY'; +// uncomment below to setup prefix (e.g. Bearer) for API key, if needed +//defaultApiClient.getAuthentication('authCookie').apiKeyPrefix = 'Bearer'; + +final api = VrchatDartGenerated().getInstancesApi(); + +try { + final response = api.getInstanceCategories(); + print(response); +} on DioException catch (e) { + print('Exception when calling InstancesApi->getInstanceCategories: $e\n'); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**List<InstanceCategory>**](InstanceCategory.md) + +### Authorization + +[authCookie](../README.md#authCookie) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getInstanceVibes** +> List getInstanceVibes() + +List Instance Vibes + +Returns the vibes an instance can be tagged with. + +### Example +```dart +import 'package:vrchat_dart_generated/api.dart'; +// TODO Configure API key authorization: authCookie +//defaultApiClient.getAuthentication('authCookie').apiKey = 'YOUR_API_KEY'; +// uncomment below to setup prefix (e.g. Bearer) for API key, if needed +//defaultApiClient.getAuthentication('authCookie').apiKeyPrefix = 'Bearer'; + +final api = VrchatDartGenerated().getInstancesApi(); + +try { + final response = api.getInstanceVibes(); + print(response); +} on DioException catch (e) { + print('Exception when calling InstancesApi->getInstanceVibes: $e\n'); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**List<InstanceVibe>**](InstanceVibe.md) + +### Authorization + +[authCookie](../README.md#authCookie) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **getRecentLocations** > List getRecentLocations(n, offset) diff --git a/vrchat_dart_generated/doc/InventoryDrop.md b/vrchat_dart_generated/doc/InventoryDrop.md index 8610adac..a6e2aca8 100644 --- a/vrchat_dart_generated/doc/InventoryDrop.md +++ b/vrchat_dart_generated/doc/InventoryDrop.md @@ -11,13 +11,13 @@ Name | Type | Description | Notes **authorId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | **createdAt** | [**DateTime**](DateTime.md) | | **dropExpiryDate** | [**DateTime**](DateTime.md) | | +**dropStatus** | **String** | | [optional] **endDropDate** | [**DateTime**](DateTime.md) | | **id** | **String** | | **isDisabled** | **bool** | | **name** | **String** | | **notificationDetails** | [**InventoryNotificationDetails**](InventoryNotificationDetails.md) | | **startDropDate** | [**DateTime**](DateTime.md) | | -**status** | **String** | | **tags** | **List<String>** | | **targetGroup** | **String** | | **templateIds** | **List<String>** | | diff --git a/vrchat_dart_generated/doc/InventoryItem.md b/vrchat_dart_generated/doc/InventoryItem.md index 5c8dd3a7..e1e8c252 100644 --- a/vrchat_dart_generated/doc/InventoryItem.md +++ b/vrchat_dart_generated/doc/InventoryItem.md @@ -8,6 +8,8 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**acquisition** | **String** | | [optional] +**attribution** | **Object** | | [optional] **collections** | **List<String>** | | **createdAt** | [**DateTime**](DateTime.md) | | **defaultAttributes** | [**Map<String, InventoryDefaultAttributesValue>**](InventoryDefaultAttributesValue.md) | | @@ -23,6 +25,7 @@ Name | Type | Description | Notes **isSeen** | **bool** | | **itemType** | [**InventoryItemType**](InventoryItemType.md) | | **itemTypeLabel** | **String** | | +**lastEquipped** | **Map<String, Object>** | | [optional] **metadata** | [**InventoryMetadata**](InventoryMetadata.md) | | **name** | **String** | | **quantifiable** | **bool** | | diff --git a/vrchat_dart_generated/doc/InventoryMetadata.md b/vrchat_dart_generated/doc/InventoryMetadata.md index ae8d9a55..c00ec2ae 100644 --- a/vrchat_dart_generated/doc/InventoryMetadata.md +++ b/vrchat_dart_generated/doc/InventoryMetadata.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **inventoryItemsToInstantiate** | **List<String>** | Only in bundles | [optional] **maskTag** | **String** | | [optional] **propId** | **String** | | [optional] +**propKind** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/InventoryTemplate.md b/vrchat_dart_generated/doc/InventoryTemplate.md index 6e6eb5e1..eb39786a 100644 --- a/vrchat_dart_generated/doc/InventoryTemplate.md +++ b/vrchat_dart_generated/doc/InventoryTemplate.md @@ -8,11 +8,13 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**attribution** | **Object** | | [optional] **authorId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | **collections** | **List<String>** | | **createdAt** | [**DateTime**](DateTime.md) | | **defaultAttributes** | **Object** | | **description** | **String** | | +**dropStatus** | **String** | | [optional] **equipSlots** | **List<String>** | | **flags** | **List<String>** | | **id** | **String** | | @@ -22,7 +24,7 @@ Name | Type | Description | Notes **metadata** | [**InventoryMetadata**](InventoryMetadata.md) | | [optional] **name** | **String** | | **notificationDetails** | [**InventoryNotificationDetails**](InventoryNotificationDetails.md) | | [optional] -**status** | **String** | | +**status** | **String** | | [optional] **tags** | **List<String>** | | **updatedAt** | [**DateTime**](DateTime.md) | | **validateUserAttributes** | **bool** | | diff --git a/vrchat_dart_generated/doc/Jam.md b/vrchat_dart_generated/doc/Jam.md index 99517b63..330b7cb7 100644 --- a/vrchat_dart_generated/doc/Jam.md +++ b/vrchat_dart_generated/doc/Jam.md @@ -8,6 +8,7 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**createdAt** | [**DateTime**](DateTime.md) | | [optional] **description** | **String** | | **id** | **String** | | **isVisible** | **bool** | | @@ -17,6 +18,7 @@ Name | Type | Description | Notes **submissionContentGateDate** | [**DateTime**](DateTime.md) | | **submissionContentGated** | **bool** | | **title** | **String** | | +**type** | **String** | | **updatedAt** | [**DateTime**](DateTime.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/JamSubmission.md b/vrchat_dart_generated/doc/JamSubmission.md index a86db2d3..e0506acb 100644 --- a/vrchat_dart_generated/doc/JamSubmission.md +++ b/vrchat_dart_generated/doc/JamSubmission.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **description** | **String** | | **id** | **String** | | **jamId** | **String** | | -**ratingScore** | **int** | | [optional] +**ratingsScore** | **int** | | **submitterId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/LimitedGroup.md b/vrchat_dart_generated/doc/LimitedGroup.md index 04e54f0e..d7253c5c 100644 --- a/vrchat_dart_generated/doc/LimitedGroup.md +++ b/vrchat_dart_generated/doc/LimitedGroup.md @@ -21,6 +21,8 @@ Name | Type | Description | Notes **memberCount** | **int** | | [optional] **membershipStatus** | [**GroupMemberStatus**](GroupMemberStatus.md) | | [optional] **name** | **String** | | [optional] +**nameplateId** | **Object** | | [optional] +**nameplateUrl** | **Object** | | [optional] **ownerId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional] **rules** | **String** | | [optional] **shortCode** | **String** | | [optional] diff --git a/vrchat_dart_generated/doc/LimitedUserFriend.md b/vrchat_dart_generated/doc/LimitedUserFriend.md index 0cc191bf..65459713 100644 --- a/vrchat_dart_generated/doc/LimitedUserFriend.md +++ b/vrchat_dart_generated/doc/LimitedUserFriend.md @@ -8,14 +8,19 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**bannerColor** | **String** | | [optional] +**bannerType** | **String** | | [optional] **bio** | **String** | | [optional] **bioLinks** | **List<String>** | | [optional] **currentAvatarImageUrl** | **String** | When profilePicOverride is not empty, use it instead. | [optional] **currentAvatarTags** | **List<String>** | | [optional] **currentAvatarThumbnailImageUrl** | **String** | When profilePicOverride is not empty, use it instead. | [optional] **developerType** | [**DeveloperType**](DeveloperType.md) | | +**discordId** | **String** | https://discord.com/developers/docs/reference#snowflakes | [optional] **displayName** | **String** | | **friendKey** | **String** | | +**iconFrame** | **String** | | [optional] +**iconUrl** | **String** | | [optional] **id** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | **imageUrl** | **String** | | **isFriend** | **bool** | | @@ -24,7 +29,9 @@ Name | Type | Description | Notes **lastMobile** | [**DateTime**](DateTime.md) | | **lastPlatform** | **String** | 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`. | **location** | **String** | | +**nameplateEffect** | **String** | | [optional] **platform** | **String** | | +**profileEffect** | **String** | | [optional] **profilePicOverride** | **String** | | [optional] **profilePicOverrideThumbnail** | **String** | | [optional] **status** | [**UserStatus**](UserStatus.md) | | diff --git a/vrchat_dart_generated/doc/LimitedUserGroups.md b/vrchat_dart_generated/doc/LimitedUserGroups.md index c3232299..cee5acee 100644 --- a/vrchat_dart_generated/doc/LimitedUserGroups.md +++ b/vrchat_dart_generated/doc/LimitedUserGroups.md @@ -23,6 +23,8 @@ Name | Type | Description | Notes **memberVisibility** | **String** | | [optional] **mutualGroup** | **bool** | | [optional] **name** | **String** | | [optional] +**nameplateId** | **Object** | | [optional] +**nameplateUrl** | **Object** | | [optional] **ownerId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional] **privacy** | **String** | | [optional] **shortCode** | **String** | | [optional] diff --git a/vrchat_dart_generated/doc/LimitedWorld.md b/vrchat_dart_generated/doc/LimitedWorld.md index b65a2881..6d9a9c76 100644 --- a/vrchat_dart_generated/doc/LimitedWorld.md +++ b/vrchat_dart_generated/doc/LimitedWorld.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **capacity** | **int** | | **createdAt** | [**DateTime**](DateTime.md) | | **defaultContentSettings** | [**InstanceContentSettings**](InstanceContentSettings.md) | | [optional] +**disabledPropAbilities** | **List<Object>** | | [optional] **favorites** | **int** | | [default to 0] **heat** | **int** | | [default to 0] **id** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | diff --git a/vrchat_dart_generated/doc/MiscellaneousApi.md b/vrchat_dart_generated/doc/MiscellaneousApi.md index 583256ac..804c7c59 100644 --- a/vrchat_dart_generated/doc/MiscellaneousApi.md +++ b/vrchat_dart_generated/doc/MiscellaneousApi.md @@ -191,7 +191,7 @@ No authorization required Check API Health -~~Gets the overall health status, the server name, and the current build version tag of the API.~~ **DEPRECATED:** VRChat has suddenly restricted this endpoint for unknown reasons, and now always return 401 Unauthorized. +Gets the overall health status, the server name, and the current build version tag of the API. VRChat has restricted this endpoint, which now always returns 401 Unauthorized. ### Example ```dart diff --git a/vrchat_dart_generated/doc/MutualFriend.md b/vrchat_dart_generated/doc/MutualFriend.md index 59560b80..741dece9 100644 --- a/vrchat_dart_generated/doc/MutualFriend.md +++ b/vrchat_dart_generated/doc/MutualFriend.md @@ -9,12 +9,18 @@ import 'package:vrchat_dart_generated/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **avatarThumbnail** | **String** | When profilePicOverride is not empty, use it instead. | [optional] +**bannerColor** | **String** | Hex colour without a leading `#`. | [optional] +**bannerType** | **String** | | [optional] **currentAvatarImageUrl** | **String** | When profilePicOverride is not empty, use it instead. | **currentAvatarTags** | **List<String>** | | [optional] **currentAvatarThumbnailImageUrl** | **String** | When profilePicOverride is not empty, use it instead. | [optional] **displayName** | **String** | | +**iconFrame** | **String** | | [optional] +**iconUrl** | **String** | | [optional] **id** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | **imageUrl** | **String** | | +**nameplateEffect** | **String** | | [optional] +**profileEffect** | **String** | | [optional] **profilePicOverride** | **String** | | [optional] **status** | [**UserStatus**](UserStatus.md) | | **statusDescription** | **String** | | diff --git a/vrchat_dart_generated/doc/Notification.md b/vrchat_dart_generated/doc/Notification.md index 46f6b9e7..941c689c 100644 --- a/vrchat_dart_generated/doc/Notification.md +++ b/vrchat_dart_generated/doc/Notification.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **receiverUserId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional] **seen** | **bool** | Not included in notification objects received from the Websocket API | [optional] [default to false] **senderUserId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | -**senderUsername** | **String** | -| **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). | [optional] +**senderUsername** | **String** | The name of the user who sent the notification. | [optional] **type** | [**NotificationType**](NotificationType.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/NotificationV2.md b/vrchat_dart_generated/doc/NotificationV2.md index 5d00086c..08e6d705 100644 --- a/vrchat_dart_generated/doc/NotificationV2.md +++ b/vrchat_dart_generated/doc/NotificationV2.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **createdAt** | [**DateTime**](DateTime.md) | | **data** | **Map<String, String>** | | **details** | [**NotificationV2DetailsBoop**](NotificationV2DetailsBoop.md) | | [optional] +**displayData** | **Object** | | [optional] **expiresAt** | [**DateTime**](DateTime.md) | | **expiryAfterSeen** | **int** | | **id** | **String** | | diff --git a/vrchat_dart_generated/doc/NotificationsApi.md b/vrchat_dart_generated/doc/NotificationsApi.md index 05e651c7..41861071 100644 --- a/vrchat_dart_generated/doc/NotificationsApi.md +++ b/vrchat_dart_generated/doc/NotificationsApi.md @@ -205,7 +205,7 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteNotification** -> Notification deleteNotification(notificationId) +> Success deleteNotification(notificationId) Delete Notification @@ -238,7 +238,7 @@ Name | Type | Description | Notes ### Return type -[**Notification**](Notification.md) +[**Success**](Success.md) ### Authorization diff --git a/vrchat_dart_generated/doc/OAuthRedirectCode.md b/vrchat_dart_generated/doc/OAuthRedirectCode.md new file mode 100644 index 00000000..9912f818 --- /dev/null +++ b/vrchat_dart_generated/doc/OAuthRedirectCode.md @@ -0,0 +1,15 @@ +# vrchat_dart_generated.model.OAuthRedirectCode + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/PrivateProfile.md b/vrchat_dart_generated/doc/PrivateProfile.md index a23b9f62..4e75b85b 100644 --- a/vrchat_dart_generated/doc/PrivateProfile.md +++ b/vrchat_dart_generated/doc/PrivateProfile.md @@ -9,6 +9,7 @@ import 'package:vrchat_dart_generated/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **activity** | [**PrivateProfileActivity**](PrivateProfileActivity.md) | | [optional] +**friendRequestStatus** | **String** | State of a friend request between the caller and this user. VRChat sends the string `\"null\"`, not JSON `null`. | [optional] **id** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional] **isFriend** | **bool** | | [optional] **note** | **String** | | [optional] diff --git a/vrchat_dart_generated/doc/ProductListing.md b/vrchat_dart_generated/doc/ProductListing.md index 6ed4cc49..496a6934 100644 --- a/vrchat_dart_generated/doc/ProductListing.md +++ b/vrchat_dart_generated/doc/ProductListing.md @@ -10,7 +10,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **bool** | | **archived** | **bool** | | [optional] +**attribution** | [**ProductListingAttribution**](ProductListingAttribution.md) | | [optional] **buyerRefundable** | **bool** | | +**collabUserDisplayName** | **String** | | [optional] +**collabUserId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional] **created** | [**DateTime**](DateTime.md) | | [optional] **description** | **String** | | **displayName** | **String** | | @@ -20,6 +23,8 @@ Name | Type | Description | Notes **groupId** | **String** | | [optional] **groupName** | **String** | | [optional] **hasAvatar** | **bool** | | +**hasCompanion** | **bool** | | [optional] +**hasInventory** | **bool** | | [optional] **hasUdon** | **bool** | | **hydratedProducts** | [**List<Product>**](Product.md) | | [optional] **id** | **String** | | @@ -31,7 +36,8 @@ Name | Type | Description | Notes **priceTokens** | **int** | | **productIds** | **List<String>** | | **productType** | [**ProductType**](ProductType.md) | | -**products** | **List<Object>** | | +**productTypes** | **List<String>** | | [optional] +**products** | **List<String>** | Product ids. The products themselves arrive in `hydratedProducts`. | **purchaseCount** | **int** | | [optional] **purchaseCountQuantity** | **int** | | [optional] **quantifiable** | **bool** | | [optional] diff --git a/vrchat_dart_generated/doc/ProductListingAttribution.md b/vrchat_dart_generated/doc/ProductListingAttribution.md new file mode 100644 index 00000000..c9e005ff --- /dev/null +++ b/vrchat_dart_generated/doc/ProductListingAttribution.md @@ -0,0 +1,16 @@ +# vrchat_dart_generated.model.ProductListingAttribution + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**creator** | [**ProductListingAttributionCreator**](ProductListingAttributionCreator.md) | | [optional] +**publisher** | [**ProductListingAttributionCreator**](ProductListingAttributionCreator.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/ProductListingAttributionCreator.md b/vrchat_dart_generated/doc/ProductListingAttributionCreator.md new file mode 100644 index 00000000..e6e661cb --- /dev/null +++ b/vrchat_dart_generated/doc/ProductListingAttributionCreator.md @@ -0,0 +1,16 @@ +# vrchat_dart_generated.model.ProductListingAttributionCreator + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customName** | **String** | | [optional] +**userId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/PropsApi.md b/vrchat_dart_generated/doc/PropsApi.md index 87858144..bc3bb8d3 100644 --- a/vrchat_dart_generated/doc/PropsApi.md +++ b/vrchat_dart_generated/doc/PropsApi.md @@ -164,7 +164,7 @@ Name | Type | Description | Notes Get Prop Publish Status -Returns a PropPublishStatus object. +Return the PropPublishStatus object. `/props/{propId}` is still served. ### Example ```dart @@ -262,7 +262,7 @@ Name | Type | Description | Notes Publish Prop -Publish a Prop and return the updated PropPublishStatus object. +Publish a prop and return the updated PropPublishStatus object. `/props/{propId}` is still served. ### Example ```dart @@ -309,7 +309,7 @@ Name | Type | Description | Notes Unpublish Prop -Unpublish a Prop and return the updated PropPublishStatus object. +Unpublish a prop and return the updated PropPublishStatus object. `/props/{propId}` is still served. ### Example ```dart diff --git a/vrchat_dart_generated/doc/ReportCategory.md b/vrchat_dart_generated/doc/ReportCategory.md index b7af5023..371695d2 100644 --- a/vrchat_dart_generated/doc/ReportCategory.md +++ b/vrchat_dart_generated/doc/ReportCategory.md @@ -9,6 +9,8 @@ import 'package:vrchat_dart_generated/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **String** | The description of the report category | [optional] +**ipsArticle** | **String** | | [optional] +**order** | **int** | | [optional] **text** | **String** | The label of the report category | **title** | **String** | The title of the report category | [optional] **tooltip** | **String** | The tooltip that describes the category | diff --git a/vrchat_dart_generated/doc/ReportReason.md b/vrchat_dart_generated/doc/ReportReason.md index c7aeb4f2..e57a5be8 100644 --- a/vrchat_dart_generated/doc/ReportReason.md +++ b/vrchat_dart_generated/doc/ReportReason.md @@ -8,6 +8,7 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**policy** | **List<String>** | | [optional] **text** | **String** | The label or name of the report reason | **tooltip** | **String** | A brief explanation of what this reason entails | diff --git a/vrchat_dart_generated/doc/RepresentedGroup.md b/vrchat_dart_generated/doc/RepresentedGroup.md index 7e6b9c98..f0209820 100644 --- a/vrchat_dart_generated/doc/RepresentedGroup.md +++ b/vrchat_dart_generated/doc/RepresentedGroup.md @@ -19,6 +19,8 @@ Name | Type | Description | Notes **memberCount** | **int** | | [optional] **memberVisibility** | [**GroupUserVisibility**](GroupUserVisibility.md) | | [optional] **name** | **String** | | [optional] +**nameplateId** | **Object** | | [optional] +**nameplateUrl** | **Object** | | [optional] **ownerId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional] **privacy** | [**GroupPrivacy**](GroupPrivacy.md) | | [optional] **shortCode** | **String** | | [optional] diff --git a/vrchat_dart_generated/doc/RouteNotImplemented.md b/vrchat_dart_generated/doc/RouteNotImplemented.md new file mode 100644 index 00000000..9cc5d106 --- /dev/null +++ b/vrchat_dart_generated/doc/RouteNotImplemented.md @@ -0,0 +1,16 @@ +# vrchat_dart_generated.model.RouteNotImplemented + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | **String** | | +**statusCode** | **int** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/SentNotification.md b/vrchat_dart_generated/doc/SentNotification.md index 936c92bf..6964a9e5 100644 --- a/vrchat_dart_generated/doc/SentNotification.md +++ b/vrchat_dart_generated/doc/SentNotification.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **message** | **String** | | **receiverUserId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | **senderUserId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | -**senderUsername** | **String** | -| **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). | [optional] +**senderUsername** | **String** | The name of the user who sent the notification. | [optional] **type** | [**NotificationType**](NotificationType.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/SsoProvider.md b/vrchat_dart_generated/doc/SsoProvider.md new file mode 100644 index 00000000..bb088527 --- /dev/null +++ b/vrchat_dart_generated/doc/SsoProvider.md @@ -0,0 +1,14 @@ +# vrchat_dart_generated.model.SsoProvider + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/SsoToken.md b/vrchat_dart_generated/doc/SsoToken.md new file mode 100644 index 00000000..dacced92 --- /dev/null +++ b/vrchat_dart_generated/doc/SsoToken.md @@ -0,0 +1,15 @@ +# vrchat_dart_generated.model.SsoToken + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**token** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/StoreShelf.md b/vrchat_dart_generated/doc/StoreShelf.md index 95b7b7a7..3eff047e 100644 --- a/vrchat_dart_generated/doc/StoreShelf.md +++ b/vrchat_dart_generated/doc/StoreShelf.md @@ -13,8 +13,11 @@ Name | Type | Description | Notes **id** | **String** | | **listingIds** | **List<String>** | | **listings** | [**List<ProductListing>**](ProductListing.md) | | [optional] +**shelfBackgroundImageId** | **String** | | [optional] **shelfDescription** | **String** | | +**shelfIconImageId** | **String** | | [optional] **shelfLayout** | **String** | | +**shelfTabBackgroundImageId** | **String** | | [optional] **shelfTitle** | **String** | | **updatedAt** | [**DateTime**](DateTime.md) | | diff --git a/vrchat_dart_generated/doc/Subscription.md b/vrchat_dart_generated/doc/Subscription.md index 9fcf6b52..3154bc79 100644 --- a/vrchat_dart_generated/doc/Subscription.md +++ b/vrchat_dart_generated/doc/Subscription.md @@ -10,12 +10,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **amount** | **num** | | **appleProductId** | **String** | | [optional] +**bulkSize** | **int** | How many subscriptions a gifted bundle grants. | [optional] **description** | **String** | | +**discountPercentage** | **int** | Discount applied to a gifted bundle. | [optional] **googlePlanId** | **String** | | [optional] **googleProductId** | **String** | | [optional] **id** | **String** | | **oculusSku** | **String** | | [optional] **period** | [**SubscriptionPeriod**](SubscriptionPeriod.md) | | +**periodAmount** | **Object** | | [optional] **picoSku** | **String** | | [optional] **steamItemId** | **String** | | **tier** | **int** | | diff --git a/vrchat_dart_generated/doc/UpdateWorldRequest.md b/vrchat_dart_generated/doc/UpdateWorldRequest.md index e7e9ebb4..1788655f 100644 --- a/vrchat_dart_generated/doc/UpdateWorldRequest.md +++ b/vrchat_dart_generated/doc/UpdateWorldRequest.md @@ -14,13 +14,17 @@ Name | Type | Description | Notes **authorName** | **String** | | [optional] **capacity** | **int** | | [optional] **description** | **String** | | [optional] +**disabledPropAbilities** | **List<String>** | | [optional] **imageUrl** | **String** | | [optional] **name** | **String** | | [optional] **platform** | **String** | 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`. | [optional] +**previewYoutubeId** | **String** | | [optional] +**recommendedCapacity** | **int** | | [optional] **releaseStatus** | [**ReleaseStatus**](ReleaseStatus.md) | | [optional] **tags** | **List<String>** | | [optional] **unityPackageUrl** | **String** | | [optional] **unityVersion** | **String** | | [optional] [default to '5.3.4p1'] +**urlList** | **List<String>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/User.md b/vrchat_dart_generated/doc/User.md index 0c481d69..5b0336d9 100644 --- a/vrchat_dart_generated/doc/User.md +++ b/vrchat_dart_generated/doc/User.md @@ -8,10 +8,16 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**acceptedPrivacyVersion** | **int** | | [optional] +**acceptedTOSVersion** | **int** | | [optional] +**accountDeletionDate** | **String** | | [optional] +**accountDeletionLog** | **List<Object>** | | [optional] **ageVerificationStatus** | [**AgeVerificationStatus**](AgeVerificationStatus.md) | | **ageVerified** | **bool** | `true` if, user is age verified (not 18+). | **allowAvatarCopying** | **bool** | | [default to true] +**appleDetails** | **Map<String, Object>** | | [optional] **badges** | [**List<Badge>**](Badge.md) | | [optional] +**bannerColor** | **String** | | [optional] **bannerType** | **String** | | [optional] **bannerUrl** | **String** | | [optional] **bio** | **String** | | @@ -23,7 +29,7 @@ Name | Type | Description | Notes **developerType** | [**DeveloperType**](DeveloperType.md) | | **displayName** | **String** | A users visual display name. This is what shows up in-game, and can different from their `username`. Changing display name is restricted to a cooldown period. | **friendKey** | **String** | | -**friendRequestStatus** | **String** | | [optional] +**friendRequestStatus** | **String** | State of a friend request between the caller and this user. VRChat sends the string `\"null\"`, not JSON `null`. | [optional] **iconFrame** | **String** | | [optional] **iconUrl** | **String** | | [optional] **id** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | @@ -50,7 +56,6 @@ Name | Type | Description | Notes **travelingToLocation** | **String** | | [optional] **travelingToWorld** | **String** | | [optional] **userIcon** | **String** | | -**username** | **String** | -| A users unique name, used during login. This is different from `displayName` which is what shows up in-game. A users `username` can never be changed.' **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). | [optional] **worldId** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/UsersApi.md b/vrchat_dart_generated/doc/UsersApi.md index 7d626e3e..4af213b9 100644 --- a/vrchat_dart_generated/doc/UsersApi.md +++ b/vrchat_dart_generated/doc/UsersApi.md @@ -668,7 +668,7 @@ Name | Type | Description | Notes Get User by Username -~~Get public user information about a specific user using their name.~~ **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). This endpoint now require Admin Credentials. +Get public user information about a specific user using their name. VRChat no longer returns the usernames of other users, and this endpoint now requires admin credentials. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). ### Example ```dart diff --git a/vrchat_dart_generated/doc/World.md b/vrchat_dart_generated/doc/World.md index ac890f0d..95575b0a 100644 --- a/vrchat_dart_generated/doc/World.md +++ b/vrchat_dart_generated/doc/World.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **createdAt** | [**DateTime**](DateTime.md) | | **defaultContentSettings** | [**InstanceContentSettings**](InstanceContentSettings.md) | | [optional] **description** | **String** | | +**disabledPropAbilities** | **List<Object>** | | [optional] **favorites** | **int** | | [optional] [default to 0] **featured** | **bool** | | [default to false] **heat** | **int** | | [default to 0] @@ -32,6 +33,7 @@ Name | Type | Description | Notes **publicationDate** | **String** | | **recommendedCapacity** | **int** | | **releaseStatus** | [**ReleaseStatus**](ReleaseStatus.md) | | +**slimInstances** | **List<Object>** | | [optional] **storeId** | **String** | | [optional] **tags** | **List<String>** | | **thumbnailImageUrl** | **String** | | diff --git a/vrchat_dart_generated/doc/WorldsApi.md b/vrchat_dart_generated/doc/WorldsApi.md index 64c9d1e5..05c5ed98 100644 --- a/vrchat_dart_generated/doc/WorldsApi.md +++ b/vrchat_dart_generated/doc/WorldsApi.md @@ -24,7 +24,7 @@ Method | HTTP request | Description [**getWorldMetadata**](WorldsApi.md#getworldmetadata) | **GET** /worlds/{worldId}/metadata | Get World Metadata [**getWorldPublishStatus**](WorldsApi.md#getworldpublishstatus) | **GET** /worlds/{worldId}/publish | Get World Publish Status [**publishWorld**](WorldsApi.md#publishworld) | **PUT** /worlds/{worldId}/publish | Publish World -[**removeWorldTags**](WorldsApi.md#removeworldtags) | **POST** /worlds/{worldId}/removeTags | Remove World Tags +[**removeWorldTags**](WorldsApi.md#removeworldtags) | **POST** /worlds/{worldId}/deleteTags | Remove World Tags [**searchWorlds**](WorldsApi.md#searchworlds) | **GET** /worlds | Search All Worlds [**unpublishWorld**](WorldsApi.md#unpublishworld) | **DELETE** /worlds/{worldId}/publish | Unpublish World [**updateWorld**](WorldsApi.md#updateworld) | **PUT** /worlds/{worldId} | Update World @@ -804,7 +804,7 @@ void (empty response body) Remove World Tags -Removes tags from the world's profile +Remove tags from the world's profile. The path is `deleteTags`, not `removeTags` as the user equivalent uses. ### Example ```dart diff --git a/vrchat_dart_generated/lib/src/api.dart b/vrchat_dart_generated/lib/src/api.dart index ec971f31..25f18b6d 100644 --- a/vrchat_dart_generated/lib/src/api.dart +++ b/vrchat_dart_generated/lib/src/api.dart @@ -10,6 +10,7 @@ import 'package:vrchat_dart_generated/src/auth/oauth.dart'; import 'package:vrchat_dart_generated/src/api/authentication_api.dart'; import 'package:vrchat_dart_generated/src/api/avatars_api.dart'; import 'package:vrchat_dart_generated/src/api/calendar_api.dart'; +import 'package:vrchat_dart_generated/src/api/deprecated_api.dart'; import 'package:vrchat_dart_generated/src/api/economy_api.dart'; import 'package:vrchat_dart_generated/src/api/favorites_api.dart'; import 'package:vrchat_dart_generated/src/api/files_api.dart'; @@ -168,6 +169,12 @@ class VrchatDartGenerated { return CalendarApi(dio); } + /// Get DeprecatedApi instance, base route and serializer can be overridden by a given but be careful, + /// by doing that all interceptors will not be executed + DeprecatedApi getDeprecatedApi() { + return DeprecatedApi(dio); + } + /// Get EconomyApi instance, base route and serializer can be overridden by a given but be careful, /// by doing that all interceptors will not be executed EconomyApi getEconomyApi() { diff --git a/vrchat_dart_generated/lib/src/api/authentication_api.dart b/vrchat_dart_generated/lib/src/api/authentication_api.dart index 579f2863..42f9c1a5 100644 --- a/vrchat_dart_generated/lib/src/api/authentication_api.dart +++ b/vrchat_dart_generated/lib/src/api/authentication_api.dart @@ -16,10 +16,13 @@ import 'package:vrchat_dart_generated/src/model/create_avatar_moderation_request import 'package:vrchat_dart_generated/src/model/current_user.dart'; import 'package:vrchat_dart_generated/src/model/disable2_fa_result.dart'; import 'package:vrchat_dart_generated/src/model/moderation_report.dart'; +import 'package:vrchat_dart_generated/src/model/o_auth_redirect_code.dart'; import 'package:vrchat_dart_generated/src/model/ok_status2.dart'; import 'package:vrchat_dart_generated/src/model/paginated_moderation_report_list.dart'; import 'package:vrchat_dart_generated/src/model/pending2_fa_result.dart'; import 'package:vrchat_dart_generated/src/model/register_user_account_request.dart'; +import 'package:vrchat_dart_generated/src/model/sso_provider.dart'; +import 'package:vrchat_dart_generated/src/model/sso_token.dart'; import 'package:vrchat_dart_generated/src/model/submit_moderation_report_request.dart'; import 'package:vrchat_dart_generated/src/model/success.dart'; import 'package:vrchat_dart_generated/src/model/success_flag.dart'; @@ -1038,6 +1041,86 @@ class AuthenticationApi { ); } + /// Get OAuth Redirect Code + /// Generate a short-lived OAuth redirect code for the current session. + /// + /// Parameters: + /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation + /// * [headers] - Can be used to add additional headers to the request + /// * [extras] - Can be used to add flags to the request + /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response + /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress + /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress + /// + /// Returns a [Future] containing a [Response] with a [OAuthRedirectCode] as data + /// Throws [DioException] if API call or serialization fails + Future> getOAuthRedirectCode({ + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/oauth/redirectCode'; + final _options = Options( + method: r'GET', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _response = await _dio.request( + _path, + options: _options, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + OAuthRedirectCode? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize( + rawData, + 'OAuthRedirectCode', + growable: true, + ); + } catch (error, stackTrace) { + throw DioException( + requestOptions: _response.requestOptions, + response: _response, + type: DioExceptionType.unknown, + error: error, + stackTrace: stackTrace, + ); + } + + return Response( + data: _responseData, + headers: _response.headers, + isRedirect: _response.isRedirect, + requestOptions: _response.requestOptions, + redirects: _response.redirects, + statusCode: _response.statusCode, + statusMessage: _response.statusMessage, + extra: _response.extra, + ); + } + /// Get 2FA Recovery codes /// Gets the OTP (One Time Password) recovery codes for accounts with 2FA-protection enabled. /// @@ -1118,6 +1201,93 @@ class AuthenticationApi { ); } + /// Get SSO Token + /// Generate a token for the specified third-party service. + /// + /// Parameters: + /// * [provider] - The third-party service to mint a token for. + /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation + /// * [headers] - Can be used to add additional headers to the request + /// * [extras] - Can be used to add flags to the request + /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response + /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress + /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress + /// + /// Returns a [Future] containing a [Response] with a [SsoToken] as data + /// Throws [DioException] if API call or serialization fails + Future> getSsoToken({ + required SsoProvider provider, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/sso/{provider}'.replaceAll( + '{' + r'provider' + '}', + provider.toString(), + ); + final _options = Options( + method: r'GET', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _response = await _dio.request( + _path, + options: _options, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + SsoToken? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize( + rawData, + 'SsoToken', + growable: true, + ); + } catch (error, stackTrace) { + throw DioException( + requestOptions: _response.requestOptions, + response: _response, + type: DioExceptionType.unknown, + error: error, + stackTrace: stackTrace, + ); + } + + return Response( + data: _responseData, + headers: _response.headers, + isRedirect: _response.isRedirect, + requestOptions: _response.requestOptions, + redirects: _response.redirects, + statusCode: _response.statusCode, + statusMessage: _response.statusMessage, + extra: _response.extra, + ); + } + /// Logout /// Invalidates the login session. /// @@ -1195,7 +1365,7 @@ class AuthenticationApi { } /// Register User Account - /// ~~Register a new user account.~~ **DEPRECATED:** Automated creation of accounts has no legitimate public third-party use case, and would be in violation of ToS §13.2: *By using the Platform, you agree not to: i. [...] use the Platform in a manner inconsistent with individual human usage* This endpoint is documented in the interest of completeness + /// Register a new user account. Automated creation of accounts has no legitimate public third-party use case, and would violate ToS §13.2: *By using the Platform, you agree not to: i. [...] use the Platform in a manner inconsistent with individual human usage* This endpoint is documented in the interest of completeness. /// /// Parameters: /// * [registerUserAccountRequest] diff --git a/vrchat_dart_generated/lib/src/api/avatars_api.dart b/vrchat_dart_generated/lib/src/api/avatars_api.dart index 19d75e3d..6832d2c0 100644 --- a/vrchat_dart_generated/lib/src/api/avatars_api.dart +++ b/vrchat_dart_generated/lib/src/api/avatars_api.dart @@ -1101,7 +1101,6 @@ class AvatarsApi { /// /// Returns a [Future] containing a [Response] with a [CurrentUser] as data /// Throws [DioException] if API call or serialization fails - @Deprecated('This operation has been deprecated') Future> selectFallbackAvatar({ required String avatarId, CancelToken? cancelToken, diff --git a/vrchat_dart_generated/lib/src/api/calendar_api.dart b/vrchat_dart_generated/lib/src/api/calendar_api.dart index da767551..0dd1f226 100644 --- a/vrchat_dart_generated/lib/src/api/calendar_api.dart +++ b/vrchat_dart_generated/lib/src/api/calendar_api.dart @@ -1012,7 +1012,7 @@ class CalendarApi { } /// Get next calendar event - /// Get the closest future calendar event scheduled for a group + /// Return the closest future calendar event scheduled for a group. A group with no future scheduled events answers 404. /// /// Parameters: /// * [groupId] - Must be a valid group ID. diff --git a/vrchat_dart_generated/lib/src/api/deprecated_api.dart b/vrchat_dart_generated/lib/src/api/deprecated_api.dart new file mode 100644 index 00000000..6fe53bc5 --- /dev/null +++ b/vrchat_dart_generated/lib/src/api/deprecated_api.dart @@ -0,0 +1,818 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +import 'dart:async'; + +// ignore: unused_import +import 'dart:convert'; +import 'package:vrchat_dart_generated/src/deserialize.dart'; +import 'package:dio/dio.dart'; + +import 'package:vrchat_dart_generated/src/model/balance.dart'; +import 'package:vrchat_dart_generated/src/model/prop_publish_status.dart'; +import 'package:vrchat_dart_generated/src/model/seller_eligibility.dart'; +import 'package:vrchat_dart_generated/src/model/tilia_status.dart'; +import 'package:vrchat_dart_generated/src/model/tilia_tos.dart'; +import 'package:vrchat_dart_generated/src/model/update_tilia_tos_request.dart'; +import 'package:vrchat_dart_generated/src/model/user_credits_eligible.dart'; + +class DeprecatedApi { + final Dio _dio; + + const DeprecatedApi(this._dio); + + /// Get Balance Earnings + /// Return the user's balance from earnings. + /// + /// Parameters: + /// * [userId] - Must be a valid user ID. + /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation + /// * [headers] - Can be used to add additional headers to the request + /// * [extras] - Can be used to add flags to the request + /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response + /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress + /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress + /// + /// Returns a [Future] containing a [Response] with a [Balance] as data + /// Throws [DioException] if API call or serialization fails + @Deprecated('This operation has been deprecated') + Future> getBalanceEarnings({ + required String userId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/user/{userId}/balance/earnings'.replaceAll( + '{' + r'userId' + '}', + userId.toString(), + ); + final _options = Options( + method: r'GET', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _response = await _dio.request( + _path, + options: _options, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + Balance? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize(rawData, 'Balance', growable: true); + } catch (error, stackTrace) { + throw DioException( + requestOptions: _response.requestOptions, + response: _response, + type: DioExceptionType.unknown, + error: error, + stackTrace: stackTrace, + ); + } + + return Response( + data: _responseData, + headers: _response.headers, + isRedirect: _response.isRedirect, + requestOptions: _response.requestOptions, + redirects: _response.redirects, + statusCode: _response.statusCode, + statusMessage: _response.statusMessage, + extra: _response.extra, + ); + } + + /// Get Prop Publish Status + /// Return the PropPublishStatus object. `/props/{propId}` is still served. + /// + /// Parameters: + /// * [propId] - Prop ID. + /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation + /// * [headers] - Can be used to add additional headers to the request + /// * [extras] - Can be used to add flags to the request + /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response + /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress + /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress + /// + /// Returns a [Future] containing a [Response] with a [PropPublishStatus] as data + /// Throws [DioException] if API call or serialization fails + @Deprecated('This operation has been deprecated') + Future> getPropPublishStatus({ + required String propId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/props/{propId}/publish'.replaceAll( + '{' + r'propId' + '}', + propId.toString(), + ); + final _options = Options( + method: r'GET', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _response = await _dio.request( + _path, + options: _options, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + PropPublishStatus? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize( + rawData, + 'PropPublishStatus', + growable: true, + ); + } catch (error, stackTrace) { + throw DioException( + requestOptions: _response.requestOptions, + response: _response, + type: DioExceptionType.unknown, + error: error, + stackTrace: stackTrace, + ); + } + + return Response( + data: _responseData, + headers: _response.headers, + isRedirect: _response.isRedirect, + requestOptions: _response.requestOptions, + redirects: _response.redirects, + statusCode: _response.statusCode, + statusMessage: _response.statusMessage, + extra: _response.extra, + ); + } + + /// Get Seller Eligibility + /// Return the current user's eligibility to become a seller. + /// + /// Parameters: + /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation + /// * [headers] - Can be used to add additional headers to the request + /// * [extras] - Can be used to add flags to the request + /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response + /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress + /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress + /// + /// Returns a [Future] containing a [Response] with a [SellerEligibility] as data + /// Throws [DioException] if API call or serialization fails + @Deprecated('This operation has been deprecated') + Future> getSellerEligibility({ + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/economy/seller/eligibility'; + final _options = Options( + method: r'GET', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _response = await _dio.request( + _path, + options: _options, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + SellerEligibility? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize( + rawData, + 'SellerEligibility', + growable: true, + ); + } catch (error, stackTrace) { + throw DioException( + requestOptions: _response.requestOptions, + response: _response, + type: DioExceptionType.unknown, + error: error, + stackTrace: stackTrace, + ); + } + + return Response( + data: _responseData, + headers: _response.headers, + isRedirect: _response.isRedirect, + requestOptions: _response.requestOptions, + redirects: _response.redirects, + statusCode: _response.statusCode, + statusMessage: _response.statusMessage, + extra: _response.extra, + ); + } + + /// Get Tilia Status + /// Return the Tilia integration status. + /// + /// Parameters: + /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation + /// * [headers] - Can be used to add additional headers to the request + /// * [extras] - Can be used to add flags to the request + /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response + /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress + /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress + /// + /// Returns a [Future] containing a [Response] with a [TiliaStatus] as data + /// Throws [DioException] if API call or serialization fails + @Deprecated('This operation has been deprecated') + Future> getTiliaStatus({ + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/tilia/status'; + final _options = Options( + method: r'GET', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _response = await _dio.request( + _path, + options: _options, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + TiliaStatus? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize( + rawData, + 'TiliaStatus', + growable: true, + ); + } catch (error, stackTrace) { + throw DioException( + requestOptions: _response.requestOptions, + response: _response, + type: DioExceptionType.unknown, + error: error, + stackTrace: stackTrace, + ); + } + + return Response( + data: _responseData, + headers: _response.headers, + isRedirect: _response.isRedirect, + requestOptions: _response.requestOptions, + redirects: _response.redirects, + statusCode: _response.statusCode, + statusMessage: _response.statusMessage, + extra: _response.extra, + ); + } + + /// Get Tilia TOS Agreement Status + /// Return the user's Tilia TOS agreement status. + /// + /// Parameters: + /// * [userId] - Must be a valid user ID. + /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation + /// * [headers] - Can be used to add additional headers to the request + /// * [extras] - Can be used to add flags to the request + /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response + /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress + /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress + /// + /// Returns a [Future] containing a [Response] with a [TiliaTOS] as data + /// Throws [DioException] if API call or serialization fails + @Deprecated('This operation has been deprecated') + Future> getTiliaTos({ + required String userId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/user/{userId}/tilia/tos'.replaceAll( + '{' + r'userId' + '}', + userId.toString(), + ); + final _options = Options( + method: r'GET', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _response = await _dio.request( + _path, + options: _options, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + TiliaTOS? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize( + rawData, + 'TiliaTOS', + growable: true, + ); + } catch (error, stackTrace) { + throw DioException( + requestOptions: _response.requestOptions, + response: _response, + type: DioExceptionType.unknown, + error: error, + stackTrace: stackTrace, + ); + } + + return Response( + data: _responseData, + headers: _response.headers, + isRedirect: _response.isRedirect, + requestOptions: _response.requestOptions, + redirects: _response.redirects, + statusCode: _response.statusCode, + statusMessage: _response.statusMessage, + extra: _response.extra, + ); + } + + /// Get User Credits Eligibility + /// Return the user's subscription credit eligibility. + /// + /// Parameters: + /// * [userId] - Must be a valid user ID. + /// * [subscriptionId] + /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation + /// * [headers] - Can be used to add additional headers to the request + /// * [extras] - Can be used to add flags to the request + /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response + /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress + /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress + /// + /// Returns a [Future] containing a [Response] with a [UserCreditsEligible] as data + /// Throws [DioException] if API call or serialization fails + @Deprecated('This operation has been deprecated') + Future> getUserCreditsEligible({ + required String userId, + required String subscriptionId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/users/{userId}/credits/eligible'.replaceAll( + '{' + r'userId' + '}', + userId.toString(), + ); + final _options = Options( + method: r'GET', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _queryParameters = { + r'subscriptionId': subscriptionId, + }; + + final _response = await _dio.request( + _path, + options: _options, + queryParameters: _queryParameters, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + UserCreditsEligible? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize( + rawData, + 'UserCreditsEligible', + growable: true, + ); + } catch (error, stackTrace) { + throw DioException( + requestOptions: _response.requestOptions, + response: _response, + type: DioExceptionType.unknown, + error: error, + stackTrace: stackTrace, + ); + } + + return Response( + data: _responseData, + headers: _response.headers, + isRedirect: _response.isRedirect, + requestOptions: _response.requestOptions, + redirects: _response.redirects, + statusCode: _response.statusCode, + statusMessage: _response.statusMessage, + extra: _response.extra, + ); + } + + /// Publish Prop + /// Publish a prop and return the updated PropPublishStatus object. `/props/{propId}` is still served. + /// + /// Parameters: + /// * [propId] - Prop ID. + /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation + /// * [headers] - Can be used to add additional headers to the request + /// * [extras] - Can be used to add flags to the request + /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response + /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress + /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress + /// + /// Returns a [Future] containing a [Response] with a [PropPublishStatus] as data + /// Throws [DioException] if API call or serialization fails + @Deprecated('This operation has been deprecated') + Future> publishProp({ + required String propId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/props/{propId}/publish'.replaceAll( + '{' + r'propId' + '}', + propId.toString(), + ); + final _options = Options( + method: r'PUT', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _response = await _dio.request( + _path, + options: _options, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + PropPublishStatus? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize( + rawData, + 'PropPublishStatus', + growable: true, + ); + } catch (error, stackTrace) { + throw DioException( + requestOptions: _response.requestOptions, + response: _response, + type: DioExceptionType.unknown, + error: error, + stackTrace: stackTrace, + ); + } + + return Response( + data: _responseData, + headers: _response.headers, + isRedirect: _response.isRedirect, + requestOptions: _response.requestOptions, + redirects: _response.redirects, + statusCode: _response.statusCode, + statusMessage: _response.statusMessage, + extra: _response.extra, + ); + } + + /// Unpublish Prop + /// Unpublish a prop and return the updated PropPublishStatus object. `/props/{propId}` is still served. + /// + /// Parameters: + /// * [propId] - Prop ID. + /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation + /// * [headers] - Can be used to add additional headers to the request + /// * [extras] - Can be used to add flags to the request + /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response + /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress + /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress + /// + /// Returns a [Future] containing a [Response] with a [PropPublishStatus] as data + /// Throws [DioException] if API call or serialization fails + @Deprecated('This operation has been deprecated') + Future> unpublishProp({ + required String propId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/props/{propId}/publish'.replaceAll( + '{' + r'propId' + '}', + propId.toString(), + ); + final _options = Options( + method: r'DELETE', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _response = await _dio.request( + _path, + options: _options, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + PropPublishStatus? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize( + rawData, + 'PropPublishStatus', + growable: true, + ); + } catch (error, stackTrace) { + throw DioException( + requestOptions: _response.requestOptions, + response: _response, + type: DioExceptionType.unknown, + error: error, + stackTrace: stackTrace, + ); + } + + return Response( + data: _responseData, + headers: _response.headers, + isRedirect: _response.isRedirect, + requestOptions: _response.requestOptions, + redirects: _response.redirects, + statusCode: _response.statusCode, + statusMessage: _response.statusMessage, + extra: _response.extra, + ); + } + + /// Update Tilia TOS Agreement Status + /// Update the user's Tilia TOS agreement status. + /// + /// Parameters: + /// * [userId] - Must be a valid user ID. + /// * [updateTiliaTOSRequest] + /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation + /// * [headers] - Can be used to add additional headers to the request + /// * [extras] - Can be used to add flags to the request + /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response + /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress + /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress + /// + /// Returns a [Future] containing a [Response] with a [Object] as data + /// Throws [DioException] if API call or serialization fails + @Deprecated('This operation has been deprecated') + Future> updateTiliaTos({ + required String userId, + UpdateTiliaTOSRequest? updateTiliaTOSRequest, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/user/{userId}/tilia/tos'.replaceAll( + '{' + r'userId' + '}', + userId.toString(), + ); + final _options = Options( + method: r'PUT', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + contentType: 'application/json', + validateStatus: validateStatus, + ); + + dynamic _bodyData; + + try { + _bodyData = jsonEncode(updateTiliaTOSRequest); + } catch (error, stackTrace) { + throw DioException( + requestOptions: _options.compose(_dio.options, _path), + type: DioExceptionType.unknown, + error: error, + stackTrace: stackTrace, + ); + } + + final _response = await _dio.request( + _path, + data: _bodyData, + options: _options, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + Object? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize(rawData, 'Object', growable: true); + } catch (error, stackTrace) { + throw DioException( + requestOptions: _response.requestOptions, + response: _response, + type: DioExceptionType.unknown, + error: error, + stackTrace: stackTrace, + ); + } + + return Response( + data: _responseData, + headers: _response.headers, + isRedirect: _response.isRedirect, + requestOptions: _response.requestOptions, + redirects: _response.redirects, + statusCode: _response.statusCode, + statusMessage: _response.statusMessage, + extra: _response.extra, + ); + } +} diff --git a/vrchat_dart_generated/lib/src/api/economy_api.dart b/vrchat_dart_generated/lib/src/api/economy_api.dart index 51b71043..555e2a72 100644 --- a/vrchat_dart_generated/lib/src/api/economy_api.dart +++ b/vrchat_dart_generated/lib/src/api/economy_api.dart @@ -501,7 +501,7 @@ class EconomyApi { } /// Get Balance - /// Gets the balance of a user + /// Return the balance of a user. /// /// Parameters: /// * [userId] - Must be a valid user ID. @@ -584,7 +584,7 @@ class EconomyApi { } /// Get Balance Earnings - /// Gets the balance of a user from earnings + /// Return the user's balance from earnings. /// /// Parameters: /// * [userId] - Must be a valid user ID. @@ -597,6 +597,7 @@ class EconomyApi { /// /// Returns a [Future] containing a [Response] with a [Balance] as data /// Throws [DioException] if API call or serialization fails + @Deprecated('This operation has been deprecated') Future> getBalanceEarnings({ required String userId, CancelToken? cancelToken, @@ -837,9 +838,9 @@ class EconomyApi { /// Gets earnings totals and breakdown metrics for the currently authenticated user. /// /// Parameters: - /// * [sellerId] - Seller to retrieve economy metrics for. /// * [metricDateStart] - Lower bound for economy metrics queries. Observed formats include both date-only and full ISO timestamps. /// * [metricDateEnd] - Upper bound for economy metrics queries. Observed formats include both date-only and full ISO timestamps. + /// * [sellerId] - Filter results by seller. /// * [groupByDuration] - Time bucket size for economy metrics. Observed values include `days` and `years`. /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request @@ -851,9 +852,9 @@ class EconomyApi { /// Returns a [Future] containing a [Response] with a [EarningsMetrics] as data /// Throws [DioException] if API call or serialization fails Future> getEarningsMetrics({ - required String sellerId, String? metricDateStart, String? metricDateEnd, + String? sellerId, String? groupByDuration, CancelToken? cancelToken, Map? headers, @@ -883,7 +884,7 @@ class EconomyApi { final _queryParameters = { if (metricDateStart != null) r'metricDateStart': metricDateStart, if (metricDateEnd != null) r'metricDateEnd': metricDateEnd, - r'sellerId': sellerId, + if (sellerId != null) r'sellerId': sellerId, if (groupByDuration != null) r'groupByDuration': groupByDuration, }; @@ -2127,7 +2128,7 @@ class EconomyApi { } /// Get Seller Eligibility - /// Get the eligibility of the currently authenticated user to become a seller + /// Return the current user's eligibility to become a seller. /// /// Parameters: /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation @@ -2139,6 +2140,7 @@ class EconomyApi { /// /// Returns a [Future] containing a [Response] with a [SellerEligibility] as data /// Throws [DioException] if API call or serialization fails + @Deprecated('This operation has been deprecated') Future> getSellerEligibility({ CancelToken? cancelToken, Map? headers, @@ -2220,7 +2222,6 @@ class EconomyApi { /// /// Returns a [Future] containing a [Response] with a [Transaction] as data /// Throws [DioException] if API call or serialization fails - @Deprecated('This operation has been deprecated') Future> getSteamTransaction({ required String transactionId, CancelToken? cancelToken, @@ -2560,6 +2561,8 @@ class EconomyApi { /// List all existing Subscriptions. For example, \"vrchatplus-monthly\" and \"vrchatplus-yearly\". /// /// Parameters: + /// * [gifts] - Return giftable subscriptions instead of standard ones. + /// * [recurring] - Return recurring subscriptions instead of standard ones. /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -2570,6 +2573,8 @@ class EconomyApi { /// Returns a [Future] containing a [Response] with a [List] as data /// Throws [DioException] if API call or serialization fails Future>> getSubscriptions({ + bool? gifts, + bool? recurring, CancelToken? cancelToken, Map? headers, Map? extra, @@ -2595,9 +2600,15 @@ class EconomyApi { validateStatus: validateStatus, ); + final _queryParameters = { + if (gifts != null) r'gifts': gifts, + if (recurring != null) r'recurring': recurring, + }; + final _response = await _dio.request( _path, options: _options, + queryParameters: _queryParameters, cancelToken: cancelToken, onSendProgress: onSendProgress, onReceiveProgress: onReceiveProgress, @@ -2637,7 +2648,7 @@ class EconomyApi { } /// Get Tilia Status - /// Gets the status of Tilia integration + /// Return the Tilia integration status. /// /// Parameters: /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation @@ -2649,6 +2660,7 @@ class EconomyApi { /// /// Returns a [Future] containing a [Response] with a [TiliaStatus] as data /// Throws [DioException] if API call or serialization fails + @Deprecated('This operation has been deprecated') Future> getTiliaStatus({ CancelToken? cancelToken, Map? headers, @@ -2717,7 +2729,7 @@ class EconomyApi { } /// Get Tilia TOS Agreement Status - /// Gets the status of the agreement of a user to the Tilia TOS + /// Return the user's Tilia TOS agreement status. /// /// Parameters: /// * [userId] - Must be a valid user ID. @@ -2730,6 +2742,7 @@ class EconomyApi { /// /// Returns a [Future] containing a [Response] with a [TiliaTOS] as data /// Throws [DioException] if API call or serialization fails + @Deprecated('This operation has been deprecated') Future> getTiliaTos({ required String userId, CancelToken? cancelToken, @@ -2884,7 +2897,7 @@ class EconomyApi { } /// Get User Credits Eligibility - /// Get the user's eligibility status for subscriptions based on available credits. + /// Return the user's subscription credit eligibility. /// /// Parameters: /// * [userId] - Must be a valid user ID. @@ -2898,6 +2911,7 @@ class EconomyApi { /// /// Returns a [Future] containing a [Response] with a [UserCreditsEligible] as data /// Throws [DioException] if API call or serialization fails + @Deprecated('This operation has been deprecated') Future> getUserCreditsEligible({ required String userId, required String subscriptionId, @@ -3159,10 +3173,10 @@ class EconomyApi { } /// List Stores - /// Lists stores, optionally filtered to a seller and adjusted for management views. + /// List a seller's stores, adjusted for management views. /// /// Parameters: - /// * [sellerId] - Filter results by seller. + /// * [sellerId] - Seller to scope the results to. /// * [managementPov] - Return stores from the seller management point of view. /// * [n] - The number of objects to return. /// * [offset] - A zero-based offset from the default object sorting from where search results start. @@ -3176,7 +3190,7 @@ class EconomyApi { /// Returns a [Future] containing a [Response] with a [List] as data /// Throws [DioException] if API call or serialization fails Future>> listStores({ - String? sellerId, + required String sellerId, bool? managementPov, int? n = 60, int? offset, @@ -3206,7 +3220,7 @@ class EconomyApi { ); final _queryParameters = { - if (sellerId != null) r'sellerId': sellerId, + r'sellerId': sellerId, if (managementPov != null) r'managementPov': managementPov, if (n != null) r'n': n, if (offset != null) r'offset': offset, @@ -3664,7 +3678,7 @@ class EconomyApi { } /// Update Tilia TOS Agreement Status - /// Updates the status of the agreement of a user to the Tilia TOS + /// Update the user's Tilia TOS agreement status. /// /// Parameters: /// * [userId] - Must be a valid user ID. @@ -3678,6 +3692,7 @@ class EconomyApi { /// /// Returns a [Future] containing a [Response] with a [Object] as data /// Throws [DioException] if API call or serialization fails + @Deprecated('This operation has been deprecated') Future> updateTiliaTos({ required String userId, UpdateTiliaTOSRequest? updateTiliaTOSRequest, diff --git a/vrchat_dart_generated/lib/src/api/favorites_api.dart b/vrchat_dart_generated/lib/src/api/favorites_api.dart index bcdb0aec..ee53a177 100644 --- a/vrchat_dart_generated/lib/src/api/favorites_api.dart +++ b/vrchat_dart_generated/lib/src/api/favorites_api.dart @@ -331,8 +331,9 @@ class FavoritesApi { /// Parameters: /// * [n] - The number of objects to return. /// * [offset] - A zero-based offset from the default object sorting from where search results start. + /// * [type] - Filter to a single favorite group type. /// * [userId] - Target user to see information on, admin-only. - /// * [ownerId] - The owner whose favorite groups to return. Must be a UserID. + /// * [ownerId] - The user whose favorite groups to return. Must be a user ID. /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -345,6 +346,7 @@ class FavoritesApi { Future>> getFavoriteGroups({ int? n = 60, int? offset, + FavoriteType? type, String? userId, String? ownerId, CancelToken? cancelToken, @@ -375,6 +377,7 @@ class FavoritesApi { final _queryParameters = { if (n != null) r'n': n, if (offset != null) r'offset': offset, + if (type != null) r'type': type, if (userId != null) r'userId': userId, if (ownerId != null) r'ownerId': ownerId, }; diff --git a/vrchat_dart_generated/lib/src/api/instances_api.dart b/vrchat_dart_generated/lib/src/api/instances_api.dart index 2303bb11..56e571e6 100644 --- a/vrchat_dart_generated/lib/src/api/instances_api.dart +++ b/vrchat_dart_generated/lib/src/api/instances_api.dart @@ -11,7 +11,9 @@ import 'package:dio/dio.dart'; import 'package:vrchat_dart_generated/src/model/create_instance_request.dart'; import 'package:vrchat_dart_generated/src/model/instance.dart'; +import 'package:vrchat_dart_generated/src/model/instance_category.dart'; import 'package:vrchat_dart_generated/src/model/instance_short_name_response.dart'; +import 'package:vrchat_dart_generated/src/model/instance_vibe.dart'; class InstancesApi { final Dio _dio; @@ -404,6 +406,166 @@ class InstancesApi { ); } + /// List Instance Categories + /// Returns the categories an instance can be listed under. + /// + /// Parameters: + /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation + /// * [headers] - Can be used to add additional headers to the request + /// * [extras] - Can be used to add flags to the request + /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response + /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress + /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress + /// + /// Returns a [Future] containing a [Response] with a [List] as data + /// Throws [DioException] if API call or serialization fails + Future>> getInstanceCategories({ + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/instanceCategories'; + final _options = Options( + method: r'GET', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _response = await _dio.request( + _path, + options: _options, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + List? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize, InstanceCategory>( + rawData, + 'List', + growable: true, + ); + } catch (error, stackTrace) { + throw DioException( + requestOptions: _response.requestOptions, + response: _response, + type: DioExceptionType.unknown, + error: error, + stackTrace: stackTrace, + ); + } + + return Response>( + data: _responseData, + headers: _response.headers, + isRedirect: _response.isRedirect, + requestOptions: _response.requestOptions, + redirects: _response.redirects, + statusCode: _response.statusCode, + statusMessage: _response.statusMessage, + extra: _response.extra, + ); + } + + /// List Instance Vibes + /// Returns the vibes an instance can be tagged with. + /// + /// Parameters: + /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation + /// * [headers] - Can be used to add additional headers to the request + /// * [extras] - Can be used to add flags to the request + /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response + /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress + /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress + /// + /// Returns a [Future] containing a [Response] with a [List] as data + /// Throws [DioException] if API call or serialization fails + Future>> getInstanceVibes({ + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/instanceVibes'; + final _options = Options( + method: r'GET', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _response = await _dio.request( + _path, + options: _options, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + List? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize, InstanceVibe>( + rawData, + 'List', + growable: true, + ); + } catch (error, stackTrace) { + throw DioException( + requestOptions: _response.requestOptions, + response: _response, + type: DioExceptionType.unknown, + error: error, + stackTrace: stackTrace, + ); + } + + return Response>( + data: _responseData, + headers: _response.headers, + isRedirect: _response.isRedirect, + requestOptions: _response.requestOptions, + redirects: _response.redirects, + statusCode: _response.statusCode, + statusMessage: _response.statusMessage, + extra: _response.extra, + ); + } + /// List Recent Locations /// Returns a list of recently visited locations. /// diff --git a/vrchat_dart_generated/lib/src/api/miscellaneous_api.dart b/vrchat_dart_generated/lib/src/api/miscellaneous_api.dart index 336e76f2..adbd91fa 100644 --- a/vrchat_dart_generated/lib/src/api/miscellaneous_api.dart +++ b/vrchat_dart_generated/lib/src/api/miscellaneous_api.dart @@ -312,7 +312,7 @@ class MiscellaneousApi { } /// Check API Health - /// ~~Gets the overall health status, the server name, and the current build version tag of the API.~~ **DEPRECATED:** VRChat has suddenly restricted this endpoint for unknown reasons, and now always return 401 Unauthorized. + /// Gets the overall health status, the server name, and the current build version tag of the API. VRChat has restricted this endpoint, which now always returns 401 Unauthorized. /// /// Parameters: /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation diff --git a/vrchat_dart_generated/lib/src/api/notifications_api.dart b/vrchat_dart_generated/lib/src/api/notifications_api.dart index 8288aafc..2f386a4d 100644 --- a/vrchat_dart_generated/lib/src/api/notifications_api.dart +++ b/vrchat_dart_generated/lib/src/api/notifications_api.dart @@ -354,9 +354,9 @@ class NotificationsApi { /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// - /// Returns a [Future] containing a [Response] with a [Notification] as data + /// Returns a [Future] containing a [Response] with a [Success] as data /// Throws [DioException] if API call or serialization fails - Future> deleteNotification({ + Future> deleteNotification({ required String notificationId, CancelToken? cancelToken, Map? headers, @@ -396,17 +396,13 @@ class NotificationsApi { onReceiveProgress: onReceiveProgress, ); - Notification? _responseData; + Success? _responseData; try { final rawData = _response.data; _responseData = rawData == null ? null - : deserialize( - rawData, - 'Notification', - growable: true, - ); + : deserialize(rawData, 'Success', growable: true); } catch (error, stackTrace) { throw DioException( requestOptions: _response.requestOptions, @@ -417,7 +413,7 @@ class NotificationsApi { ); } - return Response( + return Response( data: _responseData, headers: _response.headers, isRedirect: _response.isRedirect, diff --git a/vrchat_dart_generated/lib/src/api/props_api.dart b/vrchat_dart_generated/lib/src/api/props_api.dart index 75e46e39..ac0a8be5 100644 --- a/vrchat_dart_generated/lib/src/api/props_api.dart +++ b/vrchat_dart_generated/lib/src/api/props_api.dart @@ -253,7 +253,7 @@ class PropsApi { } /// Get Prop Publish Status - /// Returns a PropPublishStatus object. + /// Return the PropPublishStatus object. `/props/{propId}` is still served. /// /// Parameters: /// * [propId] - Prop ID. @@ -266,6 +266,7 @@ class PropsApi { /// /// Returns a [Future] containing a [Response] with a [PropPublishStatus] as data /// Throws [DioException] if API call or serialization fails + @Deprecated('This operation has been deprecated') Future> getPropPublishStatus({ required String propId, CancelToken? cancelToken, @@ -433,7 +434,7 @@ class PropsApi { } /// Publish Prop - /// Publish a Prop and return the updated PropPublishStatus object. + /// Publish a prop and return the updated PropPublishStatus object. `/props/{propId}` is still served. /// /// Parameters: /// * [propId] - Prop ID. @@ -446,6 +447,7 @@ class PropsApi { /// /// Returns a [Future] containing a [Response] with a [PropPublishStatus] as data /// Throws [DioException] if API call or serialization fails + @Deprecated('This operation has been deprecated') Future> publishProp({ required String propId, CancelToken? cancelToken, @@ -520,7 +522,7 @@ class PropsApi { } /// Unpublish Prop - /// Unpublish a Prop and return the updated PropPublishStatus object. + /// Unpublish a prop and return the updated PropPublishStatus object. `/props/{propId}` is still served. /// /// Parameters: /// * [propId] - Prop ID. @@ -533,6 +535,7 @@ class PropsApi { /// /// Returns a [Future] containing a [Response] with a [PropPublishStatus] as data /// Throws [DioException] if API call or serialization fails + @Deprecated('This operation has been deprecated') Future> unpublishProp({ required String propId, CancelToken? cancelToken, diff --git a/vrchat_dart_generated/lib/src/api/users_api.dart b/vrchat_dart_generated/lib/src/api/users_api.dart index 9570bc11..a6d22dd0 100644 --- a/vrchat_dart_generated/lib/src/api/users_api.dart +++ b/vrchat_dart_generated/lib/src/api/users_api.dart @@ -1131,7 +1131,7 @@ class UsersApi { } /// Get User by Username - /// ~~Get public user information about a specific user using their name.~~ **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). This endpoint now require Admin Credentials. + /// Get public user information about a specific user using their name. VRChat no longer returns the usernames of other users, and this endpoint now requires admin credentials. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). /// /// Parameters: /// * [username] - Username of the user @@ -1231,7 +1231,6 @@ class UsersApi { /// /// Returns a [Future] containing a [Response] with a [List] as data /// Throws [DioException] if API call or serialization fails - @Deprecated('This operation has been deprecated') Future>> getUserFeedback({ required String userId, String? contentId, diff --git a/vrchat_dart_generated/lib/src/api/worlds_api.dart b/vrchat_dart_generated/lib/src/api/worlds_api.dart index a8c42789..e034745c 100644 --- a/vrchat_dart_generated/lib/src/api/worlds_api.dart +++ b/vrchat_dart_generated/lib/src/api/worlds_api.dart @@ -1074,7 +1074,6 @@ class WorldsApi { /// /// Returns a [Future] containing a [Response] with a [WorldMetadata] as data /// Throws [DioException] if API call or serialization fails - @Deprecated('This operation has been deprecated') Future> getWorldMetadata({ required String worldId, CancelToken? cancelToken, @@ -1283,7 +1282,7 @@ class WorldsApi { } /// Remove World Tags - /// Removes tags from the world's profile + /// Remove tags from the world's profile. The path is `deleteTags`, not `removeTags` as the user equivalent uses. /// /// Parameters: /// * [worldId] - Must be a valid world ID. @@ -1307,7 +1306,7 @@ class WorldsApi { ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, }) async { - final _path = r'/worlds/{worldId}/removeTags'.replaceAll( + final _path = r'/worlds/{worldId}/deleteTags'.replaceAll( '{' r'worldId' '}', diff --git a/vrchat_dart_generated/lib/src/deserialize.dart b/vrchat_dart_generated/lib/src/deserialize.dart index 3e69f558..7d75c3f8 100644 --- a/vrchat_dart_generated/lib/src/deserialize.dart +++ b/vrchat_dart_generated/lib/src/deserialize.dart @@ -12,10 +12,14 @@ import 'package:vrchat_dart_generated/src/model/api_config_constants_instancepop import 'package:vrchat_dart_generated/src/model/api_config_constants_instancepopulationbracketsmany.dart'; import 'package:vrchat_dart_generated/src/model/api_config_constants_language.dart'; import 'package:vrchat_dart_generated/src/model/api_config_download_url_list.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_event_shelf_campaign.dart'; import 'package:vrchat_dart_generated/src/model/api_config_events.dart'; import 'package:vrchat_dart_generated/src/model/api_config_ios_version.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_loading_screen_weights.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_low_memory_go_home_timeout_value.dart'; import 'package:vrchat_dart_generated/src/model/api_config_min_supported_client_build_number.dart'; import 'package:vrchat_dart_generated/src/model/api_config_offline_analysis.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_profile_defaults.dart'; import 'package:vrchat_dart_generated/src/model/api_health.dart'; import 'package:vrchat_dart_generated/src/model/account_deletion_log.dart'; import 'package:vrchat_dart_generated/src/model/add_favorite_request.dart'; @@ -36,6 +40,7 @@ import 'package:vrchat_dart_generated/src/model/avatar_unity_package_url_object. import 'package:vrchat_dart_generated/src/model/badge.dart'; import 'package:vrchat_dart_generated/src/model/balance.dart'; import 'package:vrchat_dart_generated/src/model/ban_group_member_request.dart'; +import 'package:vrchat_dart_generated/src/model/bare_error.dart'; import 'package:vrchat_dart_generated/src/model/boop_request.dart'; import 'package:vrchat_dart_generated/src/model/calendar_event.dart'; import 'package:vrchat_dart_generated/src/model/calendar_event_discovery.dart'; @@ -110,19 +115,27 @@ import 'package:vrchat_dart_generated/src/model/group_my_member.dart'; import 'package:vrchat_dart_generated/src/model/group_permission.dart'; import 'package:vrchat_dart_generated/src/model/group_post.dart'; import 'package:vrchat_dart_generated/src/model/group_role.dart'; +import 'package:vrchat_dart_generated/src/model/group_role_template_role.dart'; import 'package:vrchat_dart_generated/src/model/group_role_template_values.dart'; -import 'package:vrchat_dart_generated/src/model/group_role_template_values_roles.dart'; import 'package:vrchat_dart_generated/src/model/group_transferable.dart'; import 'package:vrchat_dart_generated/src/model/group_transferable_requirements.dart'; import 'package:vrchat_dart_generated/src/model/info_push.dart'; import 'package:vrchat_dart_generated/src/model/info_push_data.dart'; import 'package:vrchat_dart_generated/src/model/info_push_data_article.dart'; import 'package:vrchat_dart_generated/src/model/info_push_data_article_content.dart'; +import 'package:vrchat_dart_generated/src/model/info_push_data_category.dart'; import 'package:vrchat_dart_generated/src/model/info_push_data_clickable.dart'; +import 'package:vrchat_dart_generated/src/model/info_push_data_domain_list_inner.dart'; +import 'package:vrchat_dart_generated/src/model/info_push_data_search.dart'; +import 'package:vrchat_dart_generated/src/model/info_push_embedded_link.dart'; +import 'package:vrchat_dart_generated/src/model/info_push_experiment.dart'; +import 'package:vrchat_dart_generated/src/model/info_push_ips_query.dart'; import 'package:vrchat_dart_generated/src/model/instance.dart'; +import 'package:vrchat_dart_generated/src/model/instance_category.dart'; import 'package:vrchat_dart_generated/src/model/instance_content_settings.dart'; import 'package:vrchat_dart_generated/src/model/instance_platforms.dart'; import 'package:vrchat_dart_generated/src/model/instance_short_name_response.dart'; +import 'package:vrchat_dart_generated/src/model/instance_vibe.dart'; import 'package:vrchat_dart_generated/src/model/inventory.dart'; import 'package:vrchat_dart_generated/src/model/inventory_consumption_results.dart'; import 'package:vrchat_dart_generated/src/model/inventory_default_attributes_value.dart'; @@ -163,6 +176,7 @@ import 'package:vrchat_dart_generated/src/model/notification_detail_vote_to_kick import 'package:vrchat_dart_generated/src/model/notification_v2.dart'; import 'package:vrchat_dart_generated/src/model/notification_v2_details_boop.dart'; import 'package:vrchat_dart_generated/src/model/notification_v2_response.dart'; +import 'package:vrchat_dart_generated/src/model/o_auth_redirect_code.dart'; import 'package:vrchat_dart_generated/src/model/ok_status.dart'; import 'package:vrchat_dart_generated/src/model/ok_status2.dart'; import 'package:vrchat_dart_generated/src/model/paginated_calendar_event_list.dart'; @@ -181,6 +195,8 @@ import 'package:vrchat_dart_generated/src/model/private_profile.dart'; import 'package:vrchat_dart_generated/src/model/private_profile_activity.dart'; import 'package:vrchat_dart_generated/src/model/product.dart'; import 'package:vrchat_dart_generated/src/model/product_listing.dart'; +import 'package:vrchat_dart_generated/src/model/product_listing_attribution.dart'; +import 'package:vrchat_dart_generated/src/model/product_listing_attribution_creator.dart'; import 'package:vrchat_dart_generated/src/model/product_listing_variant.dart'; import 'package:vrchat_dart_generated/src/model/product_purchase.dart'; import 'package:vrchat_dart_generated/src/model/product_purchase_history.dart'; @@ -207,12 +223,14 @@ import 'package:vrchat_dart_generated/src/model/reward_redemption.dart'; import 'package:vrchat_dart_generated/src/model/reward_redemption_data.dart'; import 'package:vrchat_dart_generated/src/model/reward_redemption_request.dart'; import 'package:vrchat_dart_generated/src/model/reward_redemption_result.dart'; +import 'package:vrchat_dart_generated/src/model/route_not_implemented.dart'; import 'package:vrchat_dart_generated/src/model/search_group_members200_response.dart'; import 'package:vrchat_dart_generated/src/model/seller_eligibility.dart'; import 'package:vrchat_dart_generated/src/model/sent_notification.dart'; import 'package:vrchat_dart_generated/src/model/service_queue_stats.dart'; import 'package:vrchat_dart_generated/src/model/service_status.dart'; import 'package:vrchat_dart_generated/src/model/share_inventory_item_direct_request.dart'; +import 'package:vrchat_dart_generated/src/model/sso_token.dart'; import 'package:vrchat_dart_generated/src/model/store.dart'; import 'package:vrchat_dart_generated/src/model/store_context.dart'; import 'package:vrchat_dart_generated/src/model/store_shelf.dart'; @@ -340,12 +358,25 @@ ReturnType deserialize( case 'APIConfigDownloadURLList': return APIConfigDownloadURLList.fromJson(value as Map) as ReturnType; + case 'APIConfigEventShelfCampaign': + return APIConfigEventShelfCampaign.fromJson(value as Map) + as ReturnType; case 'APIConfigEvents': return APIConfigEvents.fromJson(value as Map) as ReturnType; case 'APIConfigIosVersion': return APIConfigIosVersion.fromJson(value as Map) as ReturnType; + case 'APIConfigLoadingScreenWeights': + return APIConfigLoadingScreenWeights.fromJson( + value as Map, + ) + as ReturnType; + case 'APIConfigLowMemoryGoHomeTimeoutValue': + return APIConfigLowMemoryGoHomeTimeoutValue.fromJson( + value as Map, + ) + as ReturnType; case 'APIConfigMinSupportedClientBuildNumber': return APIConfigMinSupportedClientBuildNumber.fromJson( value as Map, @@ -354,6 +385,9 @@ ReturnType deserialize( case 'APIConfigOfflineAnalysis': return APIConfigOfflineAnalysis.fromJson(value as Map) as ReturnType; + case 'APIConfigProfileDefaults': + return APIConfigProfileDefaults.fromJson(value as Map) + as ReturnType; case 'APIHealth': return APIHealth.fromJson(value as Map) as ReturnType; case 'AccountDeletionLog': @@ -412,6 +446,8 @@ ReturnType deserialize( case 'BanGroupMemberRequest': return BanGroupMemberRequest.fromJson(value as Map) as ReturnType; + case 'BareError': + return BareError.fromJson(value as Map) as ReturnType; case 'BoopRequest': return BoopRequest.fromJson(value as Map) as ReturnType; case 'CalendarDayOfWeek': @@ -651,14 +687,12 @@ ReturnType deserialize( case 'GroupRole': return GroupRole.fromJson(value as Map) as ReturnType; case 'GroupRoleTemplate': + case 'GroupRoleTemplateRole': + return GroupRoleTemplateRole.fromJson(value as Map) + as ReturnType; case 'GroupRoleTemplateValues': return GroupRoleTemplateValues.fromJson(value as Map) as ReturnType; - case 'GroupRoleTemplateValuesRoles': - return GroupRoleTemplateValuesRoles.fromJson( - value as Map, - ) - as ReturnType; case 'GroupSearchSort': case 'GroupTransferable': return GroupTransferable.fromJson(value as Map) @@ -683,11 +717,32 @@ ReturnType deserialize( case 'InfoPushDataArticleContent': return InfoPushDataArticleContent.fromJson(value as Map) as ReturnType; + case 'InfoPushDataCategory': + return InfoPushDataCategory.fromJson(value as Map) + as ReturnType; case 'InfoPushDataClickable': return InfoPushDataClickable.fromJson(value as Map) as ReturnType; + case 'InfoPushDataDomainListInner': + return InfoPushDataDomainListInner.fromJson(value as Map) + as ReturnType; + case 'InfoPushDataSearch': + return InfoPushDataSearch.fromJson(value as Map) + as ReturnType; + case 'InfoPushEmbeddedLink': + return InfoPushEmbeddedLink.fromJson(value as Map) + as ReturnType; + case 'InfoPushExperiment': + return InfoPushExperiment.fromJson(value as Map) + as ReturnType; + case 'InfoPushIpsQuery': + return InfoPushIpsQuery.fromJson(value as Map) + as ReturnType; case 'Instance': return Instance.fromJson(value as Map) as ReturnType; + case 'InstanceCategory': + return InstanceCategory.fromJson(value as Map) + as ReturnType; case 'InstanceContentSettings': return InstanceContentSettings.fromJson(value as Map) as ReturnType; @@ -699,6 +754,8 @@ ReturnType deserialize( return InstanceShortNameResponse.fromJson(value as Map) as ReturnType; case 'InstanceType': + case 'InstanceVibe': + return InstanceVibe.fromJson(value as Map) as ReturnType; case 'Inventory': return Inventory.fromJson(value as Map) as ReturnType; case 'InventoryConsumptionResults': @@ -833,6 +890,9 @@ ReturnType deserialize( return NotificationV2Response.fromJson(value as Map) as ReturnType; case 'NotificationV2Type': + case 'OAuthRedirectCode': + return OAuthRedirectCode.fromJson(value as Map) + as ReturnType; case 'OkStatus': return OkStatus.fromJson(value as Map) as ReturnType; case 'OkStatus2': @@ -889,6 +949,14 @@ ReturnType deserialize( case 'ProductListing': return ProductListing.fromJson(value as Map) as ReturnType; + case 'ProductListingAttribution': + return ProductListingAttribution.fromJson(value as Map) + as ReturnType; + case 'ProductListingAttributionCreator': + return ProductListingAttributionCreator.fromJson( + value as Map, + ) + as ReturnType; case 'ProductListingType': case 'ProductListingVariant': return ProductListingVariant.fromJson(value as Map) @@ -974,6 +1042,9 @@ ReturnType deserialize( case 'RewardRedemptionResult': return RewardRedemptionResult.fromJson(value as Map) as ReturnType; + case 'RouteNotImplemented': + return RouteNotImplemented.fromJson(value as Map) + as ReturnType; case 'SearchGroupMembers200Response': return SearchGroupMembers200Response.fromJson( value as Map, @@ -998,6 +1069,9 @@ ReturnType deserialize( as ReturnType; case 'SortOption': case 'SortOptionProductPurchase': + case 'SsoProvider': + case 'SsoToken': + return SsoToken.fromJson(value as Map) as ReturnType; case 'Store': return Store.fromJson(value as Map) as ReturnType; case 'StoreContext': diff --git a/vrchat_dart_generated/lib/src/model/admin_asset_bundle.g.dart b/vrchat_dart_generated/lib/src/model/admin_asset_bundle.g.dart index 10012538..8d7f7773 100644 --- a/vrchat_dart_generated/lib/src/model/admin_asset_bundle.g.dart +++ b/vrchat_dart_generated/lib/src/model/admin_asset_bundle.g.dart @@ -10,67 +10,59 @@ part of 'admin_asset_bundle.dart'; AdminAssetBundle _$AdminAssetBundleFromJson( Map json, -) => $checkedCreate( - 'AdminAssetBundle', - json, - ($checkedConvert) { - $checkKeys( - json, - requiredKeys: const [ - '_created_at', - '_updated_at', - 'assetType', - 'authorId', - 'authorName', - 'description', - 'imageUrl', - 'name', - 'releaseStatus', - 'tags', - 'thumbnailImageUrl', - 'unityPackageUrl', - 'unityPackages', - ], - ); - final val = AdminAssetBundle( - createdAt: $checkedConvert( - '_created_at', - (v) => DateTime.parse(v as String), - ), - updatedAt: $checkedConvert( - '_updated_at', - (v) => DateTime.parse(v as String), - ), - assetType: $checkedConvert('assetType', (v) => v as String), - authorId: $checkedConvert('authorId', (v) => v as String), - authorName: $checkedConvert('authorName', (v) => v as String), - description: $checkedConvert('description', (v) => v as String), - imageUrl: $checkedConvert('imageUrl', (v) => v as String), - name: $checkedConvert('name', (v) => v as String), - releaseStatus: $checkedConvert( - 'releaseStatus', - (v) => $enumDecode(_$ReleaseStatusEnumMap, v), - ), - tags: $checkedConvert( - 'tags', - (v) => (v as List).map((e) => e as String).toList(), - ), - thumbnailImageUrl: $checkedConvert( - 'thumbnailImageUrl', - (v) => v as String, - ), - unityPackageUrl: $checkedConvert('unityPackageUrl', (v) => v as String?), - unityPackages: $checkedConvert( - 'unityPackages', - (v) => (v as List) - .map((e) => AdminUnityPackage.fromJson(e as Map)) - .toSet(), - ), - ); - return val; - }, - fieldKeyMap: const {'createdAt': '_created_at', 'updatedAt': '_updated_at'}, -); +) => $checkedCreate('AdminAssetBundle', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + '_created_at', + '_updated_at', + 'assetType', + 'authorId', + 'authorName', + 'description', + 'imageUrl', + 'name', + 'releaseStatus', + 'tags', + 'thumbnailImageUrl', + 'unityPackageUrl', + 'unityPackages', + ], + ); + final val = AdminAssetBundle( + createdAt: $checkedConvert( + '_created_at', + (v) => DateTime.parse(v as String), + ), + updatedAt: $checkedConvert( + '_updated_at', + (v) => DateTime.parse(v as String), + ), + assetType: $checkedConvert('assetType', (v) => v as String), + authorId: $checkedConvert('authorId', (v) => v as String), + authorName: $checkedConvert('authorName', (v) => v as String), + description: $checkedConvert('description', (v) => v as String), + imageUrl: $checkedConvert('imageUrl', (v) => v as String), + name: $checkedConvert('name', (v) => v as String), + releaseStatus: $checkedConvert( + 'releaseStatus', + (v) => $enumDecode(_$ReleaseStatusEnumMap, v), + ), + tags: $checkedConvert( + 'tags', + (v) => (v as List).map((e) => e as String).toList(), + ), + thumbnailImageUrl: $checkedConvert('thumbnailImageUrl', (v) => v as String), + unityPackageUrl: $checkedConvert('unityPackageUrl', (v) => v as String?), + unityPackages: $checkedConvert( + 'unityPackages', + (v) => (v as List) + .map((e) => AdminUnityPackage.fromJson(e as Map)) + .toSet(), + ), + ); + return val; +}, fieldKeyMap: const {'createdAt': '_created_at', 'updatedAt': '_updated_at'}); Map _$AdminAssetBundleToJson(AdminAssetBundle instance) => { diff --git a/vrchat_dart_generated/lib/src/model/api_config.dart b/vrchat_dart_generated/lib/src/model/api_config.dart index b882ebe3..d9b8a93f 100644 --- a/vrchat_dart_generated/lib/src/model/api_config.dart +++ b/vrchat_dart_generated/lib/src/model/api_config.dart @@ -11,8 +11,12 @@ import 'package:vrchat_dart_generated/src/model/api_config_constants.dart'; import 'package:vrchat_dart_generated/src/model/api_config_offline_analysis.dart'; import 'package:vrchat_dart_generated/src/model/report_category.dart'; import 'package:vrchat_dart_generated/src/model/api_config_announcement.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_loading_screen_weights.dart'; import 'package:vrchat_dart_generated/src/model/api_config_events.dart'; import 'package:vrchat_dart_generated/src/model/api_config_ios_version.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_low_memory_go_home_timeout_value.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_profile_defaults.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_event_shelf_campaign.dart'; import 'package:vrchat_dart_generated/src/model/dynamic_content_row.dart'; import 'package:vrchat_dart_generated/src/model/api_config_audio_config.dart'; import 'package:vrchat_dart_generated/src/model/report_reason.dart'; @@ -76,6 +80,8 @@ class APIConfig { this.clientDisconnectTimeout = 30000, + this.clientMaxDatagrams, + this.clientNetDispatchThread = false, this.clientNetDispatchThreadMobile = true, @@ -102,6 +108,8 @@ class APIConfig { this.clientSentCountAllowance = 15, + this.clientUseAck2, + required this.constants, required this.contactEmail, @@ -170,7 +178,7 @@ class APIConfig { required this.economyLedgerBackfill, - required this.economyLedgerMigrationStop, + this.economyLedgerMigrationStop, required this.economyLedgerMode, @@ -182,15 +190,25 @@ class APIConfig { this.economyState = 1, + this.enableVRCPlusWorldLists, + + this.eventShelfCampaigns, + required this.events, this.forceUseLatestWorld = true, required this.giftDisplayType, + this.globalCacheVersion, + + this.globalCacheVersionDefault, + this.googleApiClientId = '827942544393-r2ouvckvouldn9dg9uruseje575e878f.apps.googleusercontent.com', + this.googleApiUnityClientId, + required this.homeWorldId, this.homepageRedirectTarget = 'https://hello.vrchat.com', @@ -205,10 +223,16 @@ class APIConfig { required this.jobsEmail, + this.loadingScreenWeights, + + this.lowMemoryGoHomeTimeout, + this.maxUserEmoji = 18, this.maxUserStickers = 18, + this.maximumUnityVersionForUploads, + required this.minSupportedClientBuildNumber, this.minimumUnityVersionForUploads = '2019.0.0f1', @@ -225,10 +249,20 @@ class APIConfig { required this.playerUrlResolverSha1, + this.playerUrlResolverSha1GfnOverride, + required this.playerUrlResolverVersion, + this.playerUrlResolverVersionGfnOverride, + + this.profileDefaults, + + this.propComponentList, + required this.publicKey, + this.questMinimumLowMemoryThreshold, + required this.reportCategories, this.reportFormUrl = @@ -276,6 +310,10 @@ class APIConfig { required this.viveWindowsUrl, + this.voiceMaxPlaybackSourcesMobile, + + this.voiceMaxPlaybackSourcesPC, + this.websocketMaxFriendsRefreshDelay = 900, this.websocketQuickReconnectTime = 2, @@ -415,6 +453,9 @@ class APIConfig { ) final int clientDisconnectTimeout; + @JsonKey(name: r'clientMaxDatagrams', required: false, includeIfNull: false) + final int? clientMaxDatagrams; + /// Unknown @JsonKey( name: r'clientNetDispatchThread', @@ -499,6 +540,9 @@ class APIConfig { ) final int clientSentCountAllowance; + @JsonKey(name: r'clientUseAck2', required: false, includeIfNull: false) + final bool? clientUseAck2; + @JsonKey(name: r'constants', required: true, includeIfNull: false) final APIConfigConstants constants; @@ -646,10 +690,10 @@ class APIConfig { /// Unknown @JsonKey( name: r'economyLedgerMigrationStop', - required: true, + required: false, includeIfNull: false, ) - final String economyLedgerMigrationStop; + final String? economyLedgerMigrationStop; /// Unknown @JsonKey(name: r'economyLedgerMode', required: true, includeIfNull: false) @@ -675,6 +719,16 @@ class APIConfig { @JsonKey(name: r'economyState', required: true, includeIfNull: false) final int economyState; + @JsonKey( + name: r'enableVRCPlusWorldLists', + required: false, + includeIfNull: false, + ) + final bool? enableVRCPlusWorldLists; + + @JsonKey(name: r'eventShelfCampaigns', required: false, includeIfNull: false) + final List? eventShelfCampaigns; + @JsonKey(name: r'events', required: true, includeIfNull: false) final APIConfigEvents events; @@ -686,6 +740,16 @@ class APIConfig { @JsonKey(name: r'giftDisplayType', required: true, includeIfNull: false) final String giftDisplayType; + @JsonKey(name: r'globalCacheVersion', required: false, includeIfNull: false) + final int? globalCacheVersion; + + @JsonKey( + name: r'globalCacheVersionDefault', + required: false, + includeIfNull: false, + ) + final int? globalCacheVersionDefault; + /// Unknown @JsonKey( defaultValue: @@ -696,6 +760,13 @@ class APIConfig { ) final String googleApiClientId; + @JsonKey( + name: r'googleApiUnityClientId', + required: false, + includeIfNull: false, + ) + final String? googleApiUnityClientId; + /// WorldID be \"offline\" on User profiles if you are not friends with that user. @JsonKey(name: r'homeWorldId', required: true, includeIfNull: false) final String homeWorldId; @@ -727,6 +798,19 @@ class APIConfig { @JsonKey(name: r'jobsEmail', required: true, includeIfNull: false) final String jobsEmail; + /// Relative weight of each info-push category on the loading screen, per audience. + @JsonKey(name: r'loadingScreenWeights', required: false, includeIfNull: false) + final Map? loadingScreenWeights; + + /// Low-memory timeout, keyed by platform. + @JsonKey( + name: r'lowMemoryGoHomeTimeout', + required: false, + includeIfNull: false, + ) + final Map? + lowMemoryGoHomeTimeout; + /// The maximum number of custom emoji each user may have at a given time. @JsonKey(name: r'maxUserEmoji', required: true, includeIfNull: false) final int maxUserEmoji; @@ -735,6 +819,13 @@ class APIConfig { @JsonKey(name: r'maxUserStickers', required: true, includeIfNull: false) final int maxUserStickers; + @JsonKey( + name: r'maximumUnityVersionForUploads', + required: false, + includeIfNull: false, + ) + final String? maximumUnityVersionForUploads; + @JsonKey( name: r'minSupportedClientBuildNumber', required: true, @@ -785,6 +876,14 @@ class APIConfig { ) final String playerUrlResolverSha1; + /// Overrides `player-url-resolver-sha1` on GeForce Now. + @JsonKey( + name: r'player-url-resolver-sha1-gfn-override', + required: false, + includeIfNull: false, + ) + final String? playerUrlResolverSha1GfnOverride; + /// Currently used youtube-dl.exe version @JsonKey( name: r'player-url-resolver-version', @@ -793,10 +892,33 @@ class APIConfig { ) final String playerUrlResolverVersion; + /// Overrides `player-url-resolver-version` on GeForce Now. + @JsonKey( + name: r'player-url-resolver-version-gfn-override', + required: false, + includeIfNull: false, + ) + final String? playerUrlResolverVersionGfnOverride; + + @JsonKey(name: r'profileDefaults', required: false, includeIfNull: false) + final APIConfigProfileDefaults? profileDefaults; + + /// SDK3 component type names. + @JsonKey(name: r'propComponentList', required: false, includeIfNull: false) + final List? propComponentList; + /// Public key, hex encoded @JsonKey(name: r'publicKey', required: true, includeIfNull: false) final String publicKey; + /// Low-memory threshold, keyed by platform. + @JsonKey( + name: r'questMinimumLowMemoryThreshold', + required: false, + includeIfNull: false, + ) + final Map? questMinimumLowMemoryThreshold; + /// Categories available for reporting objectionable content @JsonKey(name: r'reportCategories', required: true, includeIfNull: false) final Map reportCategories; @@ -910,6 +1032,20 @@ class APIConfig { @JsonKey(name: r'viveWindowsUrl', required: true, includeIfNull: false) final String viveWindowsUrl; + @JsonKey( + name: r'voiceMaxPlaybackSourcesMobile', + required: false, + includeIfNull: false, + ) + final int? voiceMaxPlaybackSourcesMobile; + + @JsonKey( + name: r'voiceMaxPlaybackSourcesPC', + required: false, + includeIfNull: false, + ) + final int? voiceMaxPlaybackSourcesPC; + /// Unknown @JsonKey( name: r'websocketMaxFriendsRefreshDelay', @@ -967,6 +1103,7 @@ class APIConfig { other.clientApiKey == clientApiKey && other.clientBPSCeiling == clientBPSCeiling && other.clientDisconnectTimeout == clientDisconnectTimeout && + other.clientMaxDatagrams == clientMaxDatagrams && other.clientNetDispatchThread == clientNetDispatchThread && other.clientNetDispatchThreadMobile == clientNetDispatchThreadMobile && @@ -981,6 +1118,7 @@ class APIConfig { other.clientQR == clientQR && other.clientReservedPlayerBPS == clientReservedPlayerBPS && other.clientSentCountAllowance == clientSentCountAllowance && + other.clientUseAck2 == clientUseAck2 && other.constants == constants && other.contactEmail == contactEmail && other.copyrightEmail == copyrightEmail && @@ -1022,10 +1160,15 @@ class APIConfig { other.economyPauseStart == economyPauseStart && other.economyPurchaseRepairEnabled == economyPurchaseRepairEnabled && other.economyState == economyState && + other.enableVRCPlusWorldLists == enableVRCPlusWorldLists && + other.eventShelfCampaigns == eventShelfCampaigns && other.events == events && other.forceUseLatestWorld == forceUseLatestWorld && other.giftDisplayType == giftDisplayType && + other.globalCacheVersion == globalCacheVersion && + other.globalCacheVersionDefault == globalCacheVersionDefault && other.googleApiClientId == googleApiClientId && + other.googleApiUnityClientId == googleApiUnityClientId && other.homeWorldId == homeWorldId && other.homepageRedirectTarget == homepageRedirectTarget && other.hubWorldId == hubWorldId && @@ -1033,8 +1176,12 @@ class APIConfig { other.iosAppVersion == iosAppVersion && other.iosVersion == iosVersion && other.jobsEmail == jobsEmail && + other.loadingScreenWeights == loadingScreenWeights && + other.lowMemoryGoHomeTimeout == lowMemoryGoHomeTimeout && other.maxUserEmoji == maxUserEmoji && other.maxUserStickers == maxUserStickers && + other.maximumUnityVersionForUploads == + maximumUnityVersionForUploads && other.minSupportedClientBuildNumber == minSupportedClientBuildNumber && other.minimumUnityVersionForUploads == @@ -1046,8 +1193,16 @@ class APIConfig { other.photonNameserverOverrides == photonNameserverOverrides && other.photonPublicKeys == photonPublicKeys && other.playerUrlResolverSha1 == playerUrlResolverSha1 && + other.playerUrlResolverSha1GfnOverride == + playerUrlResolverSha1GfnOverride && other.playerUrlResolverVersion == playerUrlResolverVersion && + other.playerUrlResolverVersionGfnOverride == + playerUrlResolverVersionGfnOverride && + other.profileDefaults == profileDefaults && + other.propComponentList == propComponentList && other.publicKey == publicKey && + other.questMinimumLowMemoryThreshold == + questMinimumLowMemoryThreshold && other.reportCategories == reportCategories && other.reportFormUrl == reportFormUrl && other.reportOptions == reportOptions && @@ -1073,6 +1228,9 @@ class APIConfig { other.urlList == urlList && other.useReliableUdpForVoice == useReliableUdpForVoice && other.viveWindowsUrl == viveWindowsUrl && + other.voiceMaxPlaybackSourcesMobile == + voiceMaxPlaybackSourcesMobile && + other.voiceMaxPlaybackSourcesPC == voiceMaxPlaybackSourcesPC && other.websocketMaxFriendsRefreshDelay == websocketMaxFriendsRefreshDelay && other.websocketQuickReconnectTime == websocketQuickReconnectTime && @@ -1104,6 +1262,7 @@ class APIConfig { clientApiKey.hashCode + clientBPSCeiling.hashCode + clientDisconnectTimeout.hashCode + + clientMaxDatagrams.hashCode + clientNetDispatchThread.hashCode + clientNetDispatchThreadMobile.hashCode + clientNetInThread.hashCode + @@ -1117,6 +1276,7 @@ class APIConfig { clientQR.hashCode + clientReservedPlayerBPS.hashCode + clientSentCountAllowance.hashCode + + clientUseAck2.hashCode + constants.hashCode + contactEmail.hashCode + copyrightEmail.hashCode + @@ -1157,10 +1317,15 @@ class APIConfig { economyPauseStart.hashCode + economyPurchaseRepairEnabled.hashCode + economyState.hashCode + + enableVRCPlusWorldLists.hashCode + + eventShelfCampaigns.hashCode + events.hashCode + forceUseLatestWorld.hashCode + giftDisplayType.hashCode + + globalCacheVersion.hashCode + + globalCacheVersionDefault.hashCode + googleApiClientId.hashCode + + googleApiUnityClientId.hashCode + homeWorldId.hashCode + homepageRedirectTarget.hashCode + hubWorldId.hashCode + @@ -1168,8 +1333,11 @@ class APIConfig { iosAppVersion.hashCode + iosVersion.hashCode + jobsEmail.hashCode + + loadingScreenWeights.hashCode + + lowMemoryGoHomeTimeout.hashCode + maxUserEmoji.hashCode + maxUserStickers.hashCode + + maximumUnityVersionForUploads.hashCode + minSupportedClientBuildNumber.hashCode + minimumUnityVersionForUploads.hashCode + moderationEmail.hashCode + @@ -1178,8 +1346,13 @@ class APIConfig { photonNameserverOverrides.hashCode + photonPublicKeys.hashCode + playerUrlResolverSha1.hashCode + + playerUrlResolverSha1GfnOverride.hashCode + playerUrlResolverVersion.hashCode + + playerUrlResolverVersionGfnOverride.hashCode + + profileDefaults.hashCode + + propComponentList.hashCode + publicKey.hashCode + + questMinimumLowMemoryThreshold.hashCode + reportCategories.hashCode + reportFormUrl.hashCode + reportOptions.hashCode + @@ -1203,6 +1376,8 @@ class APIConfig { urlList.hashCode + useReliableUdpForVoice.hashCode + viveWindowsUrl.hashCode + + voiceMaxPlaybackSourcesMobile.hashCode + + voiceMaxPlaybackSourcesPC.hashCode + websocketMaxFriendsRefreshDelay.hashCode + websocketQuickReconnectTime.hashCode + websocketReconnectMaxDelay.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/api_config.g.dart b/vrchat_dart_generated/lib/src/model/api_config.g.dart index ca525647..121f43fb 100644 --- a/vrchat_dart_generated/lib/src/model/api_config.g.dart +++ b/vrchat_dart_generated/lib/src/model/api_config.g.dart @@ -71,7 +71,6 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( 'downloadUrls', 'dynamicWorldRows', 'economyLedgerBackfill', - 'economyLedgerMigrationStop', 'economyLedgerMode', 'economyPauseEnd', 'economyPauseStart', @@ -216,6 +215,10 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( 'clientDisconnectTimeout', (v) => (v as num?)?.toInt() ?? 30000, ), + clientMaxDatagrams: $checkedConvert( + 'clientMaxDatagrams', + (v) => (v as num?)?.toInt(), + ), clientNetDispatchThread: $checkedConvert( 'clientNetDispatchThread', (v) => v as bool? ?? false, @@ -265,6 +268,7 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( 'clientSentCountAllowance', (v) => (v as num?)?.toInt() ?? 15, ), + clientUseAck2: $checkedConvert('clientUseAck2', (v) => v as bool?), constants: $checkedConvert( 'constants', (v) => APIConfigConstants.fromJson(v as Map), @@ -378,7 +382,7 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( ), economyLedgerMigrationStop: $checkedConvert( 'economyLedgerMigrationStop', - (v) => v as String, + (v) => v as String?, ), economyLedgerMode: $checkedConvert( 'economyLedgerMode', @@ -400,6 +404,20 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( 'economyState', (v) => (v as num?)?.toInt() ?? 1, ), + enableVRCPlusWorldLists: $checkedConvert( + 'enableVRCPlusWorldLists', + (v) => v as bool?, + ), + eventShelfCampaigns: $checkedConvert( + 'eventShelfCampaigns', + (v) => (v as List?) + ?.map( + (e) => APIConfigEventShelfCampaign.fromJson( + e as Map, + ), + ) + .toList(), + ), events: $checkedConvert( 'events', (v) => APIConfigEvents.fromJson(v as Map), @@ -409,12 +427,24 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( (v) => v as bool? ?? true, ), giftDisplayType: $checkedConvert('giftDisplayType', (v) => v as String), + globalCacheVersion: $checkedConvert( + 'globalCacheVersion', + (v) => (v as num?)?.toInt(), + ), + globalCacheVersionDefault: $checkedConvert( + 'globalCacheVersionDefault', + (v) => (v as num?)?.toInt(), + ), googleApiClientId: $checkedConvert( 'googleApiClientId', (v) => v as String? ?? '827942544393-r2ouvckvouldn9dg9uruseje575e878f.apps.googleusercontent.com', ), + googleApiUnityClientId: $checkedConvert( + 'googleApiUnityClientId', + (v) => v as String?, + ), homeWorldId: $checkedConvert('homeWorldId', (v) => v as String), homepageRedirectTarget: $checkedConvert( 'homepageRedirectTarget', @@ -434,6 +464,26 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( (v) => APIConfigIosVersion.fromJson(v as Map), ), jobsEmail: $checkedConvert('jobsEmail', (v) => v as String), + loadingScreenWeights: $checkedConvert( + 'loadingScreenWeights', + (v) => (v as Map?)?.map( + (k, e) => MapEntry( + k, + APIConfigLoadingScreenWeights.fromJson(e as Map), + ), + ), + ), + lowMemoryGoHomeTimeout: $checkedConvert( + 'lowMemoryGoHomeTimeout', + (v) => (v as Map?)?.map( + (k, e) => MapEntry( + k, + APIConfigLowMemoryGoHomeTimeoutValue.fromJson( + e as Map, + ), + ), + ), + ), maxUserEmoji: $checkedConvert( 'maxUserEmoji', (v) => (v as num?)?.toInt() ?? 18, @@ -442,6 +492,10 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( 'maxUserStickers', (v) => (v as num?)?.toInt() ?? 18, ), + maximumUnityVersionForUploads: $checkedConvert( + 'maximumUnityVersionForUploads', + (v) => v as String?, + ), minSupportedClientBuildNumber: $checkedConvert( 'minSupportedClientBuildNumber', (v) => APIConfigMinSupportedClientBuildNumber.fromJson( @@ -473,11 +527,35 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( 'player-url-resolver-sha1', (v) => v as String, ), + playerUrlResolverSha1GfnOverride: $checkedConvert( + 'player-url-resolver-sha1-gfn-override', + (v) => v as String?, + ), playerUrlResolverVersion: $checkedConvert( 'player-url-resolver-version', (v) => v as String, ), + playerUrlResolverVersionGfnOverride: $checkedConvert( + 'player-url-resolver-version-gfn-override', + (v) => v as String?, + ), + profileDefaults: $checkedConvert( + 'profileDefaults', + (v) => v == null + ? null + : APIConfigProfileDefaults.fromJson(v as Map), + ), + propComponentList: $checkedConvert( + 'propComponentList', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), publicKey: $checkedConvert('publicKey', (v) => v as String), + questMinimumLowMemoryThreshold: $checkedConvert( + 'questMinimumLowMemoryThreshold', + (v) => (v as Map?)?.map( + (k, e) => MapEntry(k, (e as num).toInt()), + ), + ), reportCategories: $checkedConvert( 'reportCategories', (v) => (v as Map).map( @@ -564,6 +642,14 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( (v) => v as bool? ?? false, ), viveWindowsUrl: $checkedConvert('viveWindowsUrl', (v) => v as String), + voiceMaxPlaybackSourcesMobile: $checkedConvert( + 'voiceMaxPlaybackSourcesMobile', + (v) => (v as num?)?.toInt(), + ), + voiceMaxPlaybackSourcesPC: $checkedConvert( + 'voiceMaxPlaybackSourcesPC', + (v) => (v as num?)?.toInt(), + ), websocketMaxFriendsRefreshDelay: $checkedConvert( 'websocketMaxFriendsRefreshDelay', (v) => (v as num?)?.toInt() ?? 900, @@ -593,7 +679,10 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( 'analyticsSegmentNewUISalt': 'analyticsSegment_NewUI_Salt', 'disCountdown': 'dis-countdown', 'playerUrlResolverSha1': 'player-url-resolver-sha1', + 'playerUrlResolverSha1GfnOverride': 'player-url-resolver-sha1-gfn-override', 'playerUrlResolverVersion': 'player-url-resolver-version', + 'playerUrlResolverVersionGfnOverride': + 'player-url-resolver-version-gfn-override', }, ); @@ -621,6 +710,7 @@ Map _$APIConfigToJson(APIConfig instance) => { 'clientApiKey': instance.clientApiKey, 'clientBPSCeiling': instance.clientBPSCeiling, 'clientDisconnectTimeout': instance.clientDisconnectTimeout, + 'clientMaxDatagrams': ?instance.clientMaxDatagrams, 'clientNetDispatchThread': ?instance.clientNetDispatchThread, 'clientNetDispatchThreadMobile': instance.clientNetDispatchThreadMobile, 'clientNetInThread': ?instance.clientNetInThread, @@ -634,6 +724,7 @@ Map _$APIConfigToJson(APIConfig instance) => { 'clientQR': ?instance.clientQR, 'clientReservedPlayerBPS': instance.clientReservedPlayerBPS, 'clientSentCountAllowance': instance.clientSentCountAllowance, + 'clientUseAck2': ?instance.clientUseAck2, 'constants': instance.constants.toJson(), 'contactEmail': instance.contactEmail, 'copyrightEmail': instance.copyrightEmail, @@ -668,16 +759,23 @@ Map _$APIConfigToJson(APIConfig instance) => { 'downloadUrls': instance.downloadUrls.toJson(), 'dynamicWorldRows': instance.dynamicWorldRows.map((e) => e.toJson()).toList(), 'economyLedgerBackfill': instance.economyLedgerBackfill, - 'economyLedgerMigrationStop': instance.economyLedgerMigrationStop, + 'economyLedgerMigrationStop': ?instance.economyLedgerMigrationStop, 'economyLedgerMode': instance.economyLedgerMode, 'economyPauseEnd': instance.economyPauseEnd.toIso8601String(), 'economyPauseStart': instance.economyPauseStart.toIso8601String(), 'economyPurchaseRepairEnabled': instance.economyPurchaseRepairEnabled, 'economyState': instance.economyState, + 'enableVRCPlusWorldLists': ?instance.enableVRCPlusWorldLists, + 'eventShelfCampaigns': ?instance.eventShelfCampaigns + ?.map((e) => e.toJson()) + .toList(), 'events': instance.events.toJson(), 'forceUseLatestWorld': instance.forceUseLatestWorld, 'giftDisplayType': instance.giftDisplayType, + 'globalCacheVersion': ?instance.globalCacheVersion, + 'globalCacheVersionDefault': ?instance.globalCacheVersionDefault, 'googleApiClientId': instance.googleApiClientId, + 'googleApiUnityClientId': ?instance.googleApiUnityClientId, 'homeWorldId': instance.homeWorldId, 'homepageRedirectTarget': instance.homepageRedirectTarget, 'hubWorldId': instance.hubWorldId, @@ -685,8 +783,15 @@ Map _$APIConfigToJson(APIConfig instance) => { 'iosAppVersion': instance.iosAppVersion, 'iosVersion': instance.iosVersion.toJson(), 'jobsEmail': instance.jobsEmail, + 'loadingScreenWeights': ?instance.loadingScreenWeights?.map( + (k, e) => MapEntry(k, e.toJson()), + ), + 'lowMemoryGoHomeTimeout': ?instance.lowMemoryGoHomeTimeout?.map( + (k, e) => MapEntry(k, e.toJson()), + ), 'maxUserEmoji': instance.maxUserEmoji, 'maxUserStickers': instance.maxUserStickers, + 'maximumUnityVersionForUploads': ?instance.maximumUnityVersionForUploads, 'minSupportedClientBuildNumber': instance.minSupportedClientBuildNumber .toJson(), 'minimumUnityVersionForUploads': instance.minimumUnityVersionForUploads, @@ -697,8 +802,15 @@ Map _$APIConfigToJson(APIConfig instance) => { 'photonNameserverOverrides': instance.photonNameserverOverrides, 'photonPublicKeys': instance.photonPublicKeys, 'player-url-resolver-sha1': instance.playerUrlResolverSha1, + 'player-url-resolver-sha1-gfn-override': + ?instance.playerUrlResolverSha1GfnOverride, 'player-url-resolver-version': instance.playerUrlResolverVersion, + 'player-url-resolver-version-gfn-override': + ?instance.playerUrlResolverVersionGfnOverride, + 'profileDefaults': ?instance.profileDefaults?.toJson(), + 'propComponentList': ?instance.propComponentList, 'publicKey': instance.publicKey, + 'questMinimumLowMemoryThreshold': ?instance.questMinimumLowMemoryThreshold, 'reportCategories': instance.reportCategories.map( (k, e) => MapEntry(k, e.toJson()), ), @@ -726,6 +838,8 @@ Map _$APIConfigToJson(APIConfig instance) => { 'urlList': instance.urlList, 'useReliableUdpForVoice': instance.useReliableUdpForVoice, 'viveWindowsUrl': instance.viveWindowsUrl, + 'voiceMaxPlaybackSourcesMobile': ?instance.voiceMaxPlaybackSourcesMobile, + 'voiceMaxPlaybackSourcesPC': ?instance.voiceMaxPlaybackSourcesPC, 'websocketMaxFriendsRefreshDelay': instance.websocketMaxFriendsRefreshDelay, 'websocketQuickReconnectTime': instance.websocketQuickReconnectTime, 'websocketReconnectMaxDelay': instance.websocketReconnectMaxDelay, diff --git a/vrchat_dart_generated/lib/src/model/api_config_audio_config.dart b/vrchat_dart_generated/lib/src/model/api_config_audio_config.dart index bcd61c08..2e267fb9 100644 --- a/vrchat_dart_generated/lib/src/model/api_config_audio_config.dart +++ b/vrchat_dart_generated/lib/src/model/api_config_audio_config.dart @@ -25,6 +25,8 @@ class APIConfigAudioConfig { required this.nearFieldILDNudgeEarRadius, + this.nearFieldILDNudgeEarTranslate, + required this.perEarDirectionalityEarRadius, required this.perEarDirectionalityFadeDistance, @@ -38,6 +40,8 @@ class APIConfigAudioConfig { required this.trackingScaleMin, required this.trackingScaleMultiplier, + + this.useLegacyILDNudging, }); /// Unknown @@ -64,6 +68,13 @@ class APIConfigAudioConfig { ) final num nearFieldILDNudgeEarRadius; + @JsonKey( + name: r'nearFieldILDNudgeEarTranslate', + required: false, + includeIfNull: false, + ) + final num? nearFieldILDNudgeEarTranslate; + /// Unknown @JsonKey( name: r'perEarDirectionalityEarRadius', @@ -112,6 +123,9 @@ class APIConfigAudioConfig { ) final num trackingScaleMultiplier; + @JsonKey(name: r'useLegacyILDNudging', required: false, includeIfNull: false) + final bool? useLegacyILDNudging; + @override bool operator ==(Object other) => identical(this, other) || @@ -120,6 +134,8 @@ class APIConfigAudioConfig { other.nearFieldILDNudge == nearFieldILDNudge && other.nearFieldILDNudgeDistance == nearFieldILDNudgeDistance && other.nearFieldILDNudgeEarRadius == nearFieldILDNudgeEarRadius && + other.nearFieldILDNudgeEarTranslate == + nearFieldILDNudgeEarTranslate && other.perEarDirectionalityEarRadius == perEarDirectionalityEarRadius && other.perEarDirectionalityFadeDistance == @@ -128,7 +144,8 @@ class APIConfigAudioConfig { other.perEarDirectionalityPCFactor == perEarDirectionalityPCFactor && other.trackingScaleMax == trackingScaleMax && other.trackingScaleMin == trackingScaleMin && - other.trackingScaleMultiplier == trackingScaleMultiplier; + other.trackingScaleMultiplier == trackingScaleMultiplier && + other.useLegacyILDNudging == useLegacyILDNudging; @override int get hashCode => @@ -136,13 +153,15 @@ class APIConfigAudioConfig { nearFieldILDNudge.hashCode + nearFieldILDNudgeDistance.hashCode + nearFieldILDNudgeEarRadius.hashCode + + nearFieldILDNudgeEarTranslate.hashCode + perEarDirectionalityEarRadius.hashCode + perEarDirectionalityFadeDistance.hashCode + perEarDirectionalityMaxScale.hashCode + perEarDirectionalityPCFactor.hashCode + trackingScaleMax.hashCode + trackingScaleMin.hashCode + - trackingScaleMultiplier.hashCode; + trackingScaleMultiplier.hashCode + + useLegacyILDNudging.hashCode; factory APIConfigAudioConfig.fromJson(Map json) => _$APIConfigAudioConfigFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/api_config_audio_config.g.dart b/vrchat_dart_generated/lib/src/model/api_config_audio_config.g.dart index e9af9bf4..5ed517df 100644 --- a/vrchat_dart_generated/lib/src/model/api_config_audio_config.g.dart +++ b/vrchat_dart_generated/lib/src/model/api_config_audio_config.g.dart @@ -38,6 +38,10 @@ APIConfigAudioConfig _$APIConfigAudioConfigFromJson( 'nearFieldILDNudgeEarRadius', (v) => v as num, ), + nearFieldILDNudgeEarTranslate: $checkedConvert( + 'nearFieldILDNudgeEarTranslate', + (v) => v as num?, + ), perEarDirectionalityEarRadius: $checkedConvert( 'perEarDirectionalityEarRadius', (v) => v as num, @@ -60,6 +64,10 @@ APIConfigAudioConfig _$APIConfigAudioConfigFromJson( 'trackingScaleMultiplier', (v) => v as num, ), + useLegacyILDNudging: $checkedConvert( + 'useLegacyILDNudging', + (v) => v as bool?, + ), ); return val; }); @@ -71,6 +79,7 @@ Map _$APIConfigAudioConfigToJson( 'nearFieldILDNudge': instance.nearFieldILDNudge, 'nearFieldILDNudgeDistance': instance.nearFieldILDNudgeDistance, 'nearFieldILDNudgeEarRadius': instance.nearFieldILDNudgeEarRadius, + 'nearFieldILDNudgeEarTranslate': ?instance.nearFieldILDNudgeEarTranslate, 'perEarDirectionalityEarRadius': instance.perEarDirectionalityEarRadius, 'perEarDirectionalityFadeDistance': instance.perEarDirectionalityFadeDistance, 'perEarDirectionalityMaxScale': instance.perEarDirectionalityMaxScale, @@ -78,4 +87,5 @@ Map _$APIConfigAudioConfigToJson( 'trackingScaleMax': instance.trackingScaleMax, 'trackingScaleMin': instance.trackingScaleMin, 'trackingScaleMultiplier': instance.trackingScaleMultiplier, + 'useLegacyILDNudging': ?instance.useLegacyILDNudging, }; diff --git a/vrchat_dart_generated/lib/src/model/api_config_constants_instance.g.dart b/vrchat_dart_generated/lib/src/model/api_config_constants_instance.g.dart index 12808866..0e5661f9 100644 --- a/vrchat_dart_generated/lib/src/model/api_config_constants_instance.g.dart +++ b/vrchat_dart_generated/lib/src/model/api_config_constants_instance.g.dart @@ -10,24 +10,19 @@ part of 'api_config_constants_instance.dart'; APIConfigConstantsINSTANCE _$APIConfigConstantsINSTANCEFromJson( Map json, -) => $checkedCreate( - 'APIConfigConstantsINSTANCE', - json, - ($checkedConvert) { - final val = APIConfigConstantsINSTANCE( - populationBrackets: $checkedConvert( - 'POPULATION_BRACKETS', - (v) => v == null - ? null - : APIConfigConstantsINSTANCEPOPULATIONBRACKETS.fromJson( - v as Map, - ), - ), - ); - return val; - }, - fieldKeyMap: const {'populationBrackets': 'POPULATION_BRACKETS'}, -); +) => $checkedCreate('APIConfigConstantsINSTANCE', json, ($checkedConvert) { + final val = APIConfigConstantsINSTANCE( + populationBrackets: $checkedConvert( + 'POPULATION_BRACKETS', + (v) => v == null + ? null + : APIConfigConstantsINSTANCEPOPULATIONBRACKETS.fromJson( + v as Map, + ), + ), + ); + return val; +}, fieldKeyMap: const {'populationBrackets': 'POPULATION_BRACKETS'}); Map _$APIConfigConstantsINSTANCEToJson( APIConfigConstantsINSTANCE instance, diff --git a/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbrackets.g.dart b/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbrackets.g.dart index 893fff5f..df6bf769 100644 --- a/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbrackets.g.dart +++ b/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbrackets.g.dart @@ -11,40 +11,37 @@ part of 'api_config_constants_instancepopulationbrackets.dart'; APIConfigConstantsINSTANCEPOPULATIONBRACKETS _$APIConfigConstantsINSTANCEPOPULATIONBRACKETSFromJson( Map json, -) => $checkedCreate( - 'APIConfigConstantsINSTANCEPOPULATIONBRACKETS', - json, - ($checkedConvert) { - final val = APIConfigConstantsINSTANCEPOPULATIONBRACKETS( - crowded: $checkedConvert( - 'CROWDED', - (v) => v == null - ? null - : APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED.fromJson( - v as Map, - ), - ), - few: $checkedConvert( - 'FEW', - (v) => v == null - ? null - : APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW.fromJson( - v as Map, - ), - ), - many: $checkedConvert( - 'MANY', - (v) => v == null - ? null - : APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY.fromJson( - v as Map, - ), - ), - ); - return val; - }, - fieldKeyMap: const {'crowded': 'CROWDED', 'few': 'FEW', 'many': 'MANY'}, -); +) => $checkedCreate('APIConfigConstantsINSTANCEPOPULATIONBRACKETS', json, ( + $checkedConvert, +) { + final val = APIConfigConstantsINSTANCEPOPULATIONBRACKETS( + crowded: $checkedConvert( + 'CROWDED', + (v) => v == null + ? null + : APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED.fromJson( + v as Map, + ), + ), + few: $checkedConvert( + 'FEW', + (v) => v == null + ? null + : APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW.fromJson( + v as Map, + ), + ), + many: $checkedConvert( + 'MANY', + (v) => v == null + ? null + : APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY.fromJson( + v as Map, + ), + ), + ); + return val; +}, fieldKeyMap: const {'crowded': 'CROWDED', 'few': 'FEW', 'many': 'MANY'}); Map _$APIConfigConstantsINSTANCEPOPULATIONBRACKETSToJson( APIConfigConstantsINSTANCEPOPULATIONBRACKETS instance, diff --git a/vrchat_dart_generated/lib/src/model/api_config_constants_language.g.dart b/vrchat_dart_generated/lib/src/model/api_config_constants_language.g.dart index c9d0727d..14127550 100644 --- a/vrchat_dart_generated/lib/src/model/api_config_constants_language.g.dart +++ b/vrchat_dart_generated/lib/src/model/api_config_constants_language.g.dart @@ -10,22 +10,16 @@ part of 'api_config_constants_language.dart'; APIConfigConstantsLANGUAGE _$APIConfigConstantsLANGUAGEFromJson( Map json, -) => $checkedCreate( - 'APIConfigConstantsLANGUAGE', - json, - ($checkedConvert) { - final val = APIConfigConstantsLANGUAGE( - spokenLanguageOptions: $checkedConvert( - 'SPOKEN_LANGUAGE_OPTIONS', - (v) => (v as Map?)?.map( - (k, e) => MapEntry(k, e as String), - ), - ), - ); - return val; - }, - fieldKeyMap: const {'spokenLanguageOptions': 'SPOKEN_LANGUAGE_OPTIONS'}, -); +) => $checkedCreate('APIConfigConstantsLANGUAGE', json, ($checkedConvert) { + final val = APIConfigConstantsLANGUAGE( + spokenLanguageOptions: $checkedConvert( + 'SPOKEN_LANGUAGE_OPTIONS', + (v) => + (v as Map?)?.map((k, e) => MapEntry(k, e as String)), + ), + ); + return val; +}, fieldKeyMap: const {'spokenLanguageOptions': 'SPOKEN_LANGUAGE_OPTIONS'}); Map _$APIConfigConstantsLANGUAGEToJson( APIConfigConstantsLANGUAGE instance, diff --git a/vrchat_dart_generated/lib/src/model/api_config_event_shelf_campaign.dart b/vrchat_dart_generated/lib/src/model/api_config_event_shelf_campaign.dart new file mode 100644 index 00000000..16886db3 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_event_shelf_campaign.dart @@ -0,0 +1,56 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'api_config_event_shelf_campaign.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class APIConfigEventShelfCampaign { + /// Returns a new [APIConfigEventShelfCampaign] instance. + APIConfigEventShelfCampaign({ + this.description, + + required this.key, + + required this.name, + }); + + @JsonKey(name: r'description', required: false, includeIfNull: false) + final String? description; + + @JsonKey(name: r'key', required: true, includeIfNull: false) + final String key; + + @JsonKey(name: r'name', required: true, includeIfNull: false) + final String name; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is APIConfigEventShelfCampaign && + other.description == description && + other.key == key && + other.name == name; + + @override + int get hashCode => description.hashCode + key.hashCode + name.hashCode; + + factory APIConfigEventShelfCampaign.fromJson(Map json) => + _$APIConfigEventShelfCampaignFromJson(json); + + Map toJson() => _$APIConfigEventShelfCampaignToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_event_shelf_campaign.g.dart b/vrchat_dart_generated/lib/src/model/api_config_event_shelf_campaign.g.dart new file mode 100644 index 00000000..0e90c132 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_event_shelf_campaign.g.dart @@ -0,0 +1,29 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'api_config_event_shelf_campaign.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +APIConfigEventShelfCampaign _$APIConfigEventShelfCampaignFromJson( + Map json, +) => $checkedCreate('APIConfigEventShelfCampaign', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['key', 'name']); + final val = APIConfigEventShelfCampaign( + description: $checkedConvert('description', (v) => v as String?), + key: $checkedConvert('key', (v) => v as String), + name: $checkedConvert('name', (v) => v as String), + ); + return val; +}); + +Map _$APIConfigEventShelfCampaignToJson( + APIConfigEventShelfCampaign instance, +) => { + 'description': ?instance.description, + 'key': instance.key, + 'name': instance.name, +}; diff --git a/vrchat_dart_generated/lib/src/model/api_config_events.dart b/vrchat_dart_generated/lib/src/model/api_config_events.dart index cbe5a25a..88b404b7 100644 --- a/vrchat_dart_generated/lib/src/model/api_config_events.dart +++ b/vrchat_dart_generated/lib/src/model/api_config_events.dart @@ -37,6 +37,8 @@ class APIConfigEvents { required this.useDirectPlayerSerialization, + this.useSparseRotationForPlayerSerialization, + required this.viewSegmentLength, }); @@ -88,6 +90,13 @@ class APIConfigEvents { ) final bool useDirectPlayerSerialization; + @JsonKey( + name: r'useSparseRotationForPlayerSerialization', + required: false, + includeIfNull: false, + ) + final bool? useSparseRotationForPlayerSerialization; + /// Unknown @JsonKey(name: r'viewSegmentLength', required: true, includeIfNull: false) final int viewSegmentLength; @@ -106,6 +115,8 @@ class APIConfigEvents { other.playerOrderFactor == playerOrderFactor && other.slowUpdateFactorThreshold == slowUpdateFactorThreshold && other.useDirectPlayerSerialization == useDirectPlayerSerialization && + other.useSparseRotationForPlayerSerialization == + useSparseRotationForPlayerSerialization && other.viewSegmentLength == viewSegmentLength; @override @@ -120,6 +131,7 @@ class APIConfigEvents { playerOrderFactor.hashCode + slowUpdateFactorThreshold.hashCode + useDirectPlayerSerialization.hashCode + + useSparseRotationForPlayerSerialization.hashCode + viewSegmentLength.hashCode; factory APIConfigEvents.fromJson(Map json) => diff --git a/vrchat_dart_generated/lib/src/model/api_config_events.g.dart b/vrchat_dart_generated/lib/src/model/api_config_events.g.dart index 800897b2..696a095b 100644 --- a/vrchat_dart_generated/lib/src/model/api_config_events.g.dart +++ b/vrchat_dart_generated/lib/src/model/api_config_events.g.dart @@ -59,6 +59,10 @@ APIConfigEvents _$APIConfigEventsFromJson( 'useDirectPlayerSerialization', (v) => v as bool, ), + useSparseRotationForPlayerSerialization: $checkedConvert( + 'useSparseRotationForPlayerSerialization', + (v) => v as bool?, + ), viewSegmentLength: $checkedConvert( 'viewSegmentLength', (v) => (v as num).toInt(), @@ -79,5 +83,7 @@ Map _$APIConfigEventsToJson(APIConfigEvents instance) => 'playerOrderFactor': instance.playerOrderFactor, 'slowUpdateFactorThreshold': instance.slowUpdateFactorThreshold, 'useDirectPlayerSerialization': instance.useDirectPlayerSerialization, + 'useSparseRotationForPlayerSerialization': + ?instance.useSparseRotationForPlayerSerialization, 'viewSegmentLength': instance.viewSegmentLength, }; diff --git a/vrchat_dart_generated/lib/src/model/api_config_loading_screen_weights.dart b/vrchat_dart_generated/lib/src/model/api_config_loading_screen_weights.dart new file mode 100644 index 00000000..413675a4 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_loading_screen_weights.dart @@ -0,0 +1,57 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'api_config_loading_screen_weights.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class APIConfigLoadingScreenWeights { + /// Returns a new [APIConfigLoadingScreenWeights] instance. + APIConfigLoadingScreenWeights({ + this.announcement, + + this.informational, + + this.promotional, + }); + + @JsonKey(name: r'announcement', required: false, includeIfNull: false) + final int? announcement; + + @JsonKey(name: r'informational', required: false, includeIfNull: false) + final int? informational; + + @JsonKey(name: r'promotional', required: false, includeIfNull: false) + final int? promotional; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is APIConfigLoadingScreenWeights && + other.announcement == announcement && + other.informational == informational && + other.promotional == promotional; + + @override + int get hashCode => + announcement.hashCode + informational.hashCode + promotional.hashCode; + + factory APIConfigLoadingScreenWeights.fromJson(Map json) => + _$APIConfigLoadingScreenWeightsFromJson(json); + + Map toJson() => _$APIConfigLoadingScreenWeightsToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_loading_screen_weights.g.dart b/vrchat_dart_generated/lib/src/model/api_config_loading_screen_weights.g.dart new file mode 100644 index 00000000..08093c5b --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_loading_screen_weights.g.dart @@ -0,0 +1,31 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'api_config_loading_screen_weights.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +APIConfigLoadingScreenWeights _$APIConfigLoadingScreenWeightsFromJson( + Map json, +) => $checkedCreate('APIConfigLoadingScreenWeights', json, ($checkedConvert) { + final val = APIConfigLoadingScreenWeights( + announcement: $checkedConvert('announcement', (v) => (v as num?)?.toInt()), + informational: $checkedConvert( + 'informational', + (v) => (v as num?)?.toInt(), + ), + promotional: $checkedConvert('promotional', (v) => (v as num?)?.toInt()), + ); + return val; +}); + +Map _$APIConfigLoadingScreenWeightsToJson( + APIConfigLoadingScreenWeights instance, +) => { + 'announcement': ?instance.announcement, + 'informational': ?instance.informational, + 'promotional': ?instance.promotional, +}; diff --git a/vrchat_dart_generated/lib/src/model/api_config_low_memory_go_home_timeout_value.dart b/vrchat_dart_generated/lib/src/model/api_config_low_memory_go_home_timeout_value.dart new file mode 100644 index 00000000..2ed9d6c1 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_low_memory_go_home_timeout_value.dart @@ -0,0 +1,43 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'api_config_low_memory_go_home_timeout_value.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class APIConfigLowMemoryGoHomeTimeoutValue { + /// Returns a new [APIConfigLowMemoryGoHomeTimeoutValue] instance. + APIConfigLowMemoryGoHomeTimeoutValue({this.timeout}); + + @JsonKey(name: r'timeout', required: false, includeIfNull: false) + final int? timeout; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is APIConfigLowMemoryGoHomeTimeoutValue && other.timeout == timeout; + + @override + int get hashCode => timeout.hashCode; + + factory APIConfigLowMemoryGoHomeTimeoutValue.fromJson( + Map json, + ) => _$APIConfigLowMemoryGoHomeTimeoutValueFromJson(json); + + Map toJson() => + _$APIConfigLowMemoryGoHomeTimeoutValueToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_low_memory_go_home_timeout_value.g.dart b/vrchat_dart_generated/lib/src/model/api_config_low_memory_go_home_timeout_value.g.dart new file mode 100644 index 00000000..37cab8ec --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_low_memory_go_home_timeout_value.g.dart @@ -0,0 +1,24 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'api_config_low_memory_go_home_timeout_value.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +APIConfigLowMemoryGoHomeTimeoutValue +_$APIConfigLowMemoryGoHomeTimeoutValueFromJson(Map json) => + $checkedCreate('APIConfigLowMemoryGoHomeTimeoutValue', json, ( + $checkedConvert, + ) { + final val = APIConfigLowMemoryGoHomeTimeoutValue( + timeout: $checkedConvert('timeout', (v) => (v as num?)?.toInt()), + ); + return val; + }); + +Map _$APIConfigLowMemoryGoHomeTimeoutValueToJson( + APIConfigLowMemoryGoHomeTimeoutValue instance, +) => {'timeout': ?instance.timeout}; diff --git a/vrchat_dart_generated/lib/src/model/api_config_min_supported_client_build_number.dart b/vrchat_dart_generated/lib/src/model/api_config_min_supported_client_build_number.dart index 4127fde6..dfe2437b 100644 --- a/vrchat_dart_generated/lib/src/model/api_config_min_supported_client_build_number.dart +++ b/vrchat_dart_generated/lib/src/model/api_config_min_supported_client_build_number.dart @@ -32,7 +32,7 @@ class APIConfigMinSupportedClientBuildNumber { required this.picoStore, - required this.questAppLab, + this.questAppLab, required this.questStore, @@ -62,8 +62,8 @@ class APIConfigMinSupportedClientBuildNumber { @JsonKey(name: r'PicoStore', required: true, includeIfNull: false) final PlatformBuildInfo picoStore; - @JsonKey(name: r'QuestAppLab', required: true, includeIfNull: false) - final PlatformBuildInfo questAppLab; + @JsonKey(name: r'QuestAppLab', required: false, includeIfNull: false) + final PlatformBuildInfo? questAppLab; @JsonKey(name: r'QuestStore', required: true, includeIfNull: false) final PlatformBuildInfo questStore; diff --git a/vrchat_dart_generated/lib/src/model/api_config_min_supported_client_build_number.g.dart b/vrchat_dart_generated/lib/src/model/api_config_min_supported_client_build_number.g.dart index e45302ab..1798a6c0 100644 --- a/vrchat_dart_generated/lib/src/model/api_config_min_supported_client_build_number.g.dart +++ b/vrchat_dart_generated/lib/src/model/api_config_min_supported_client_build_number.g.dart @@ -24,7 +24,6 @@ _$APIConfigMinSupportedClientBuildNumberFromJson(Map json) => 'GooglePlay', 'PC', 'PicoStore', - 'QuestAppLab', 'QuestStore', 'TestFlight', 'XRElite', @@ -61,7 +60,9 @@ _$APIConfigMinSupportedClientBuildNumberFromJson(Map json) => ), questAppLab: $checkedConvert( 'QuestAppLab', - (v) => PlatformBuildInfo.fromJson(v as Map), + (v) => v == null + ? null + : PlatformBuildInfo.fromJson(v as Map), ), questStore: $checkedConvert( 'QuestStore', @@ -103,7 +104,7 @@ Map _$APIConfigMinSupportedClientBuildNumberToJson( 'GooglePlay': instance.googlePlay.toJson(), 'PC': instance.pc.toJson(), 'PicoStore': instance.picoStore.toJson(), - 'QuestAppLab': instance.questAppLab.toJson(), + 'QuestAppLab': ?instance.questAppLab?.toJson(), 'QuestStore': instance.questStore.toJson(), 'TestFlight': instance.testFlight.toJson(), 'XRElite': instance.xRElite.toJson(), diff --git a/vrchat_dart_generated/lib/src/model/api_config_profile_defaults.dart b/vrchat_dart_generated/lib/src/model/api_config_profile_defaults.dart new file mode 100644 index 00000000..789e9163 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_profile_defaults.dart @@ -0,0 +1,81 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'api_config_profile_defaults.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class APIConfigProfileDefaults { + /// Returns a new [APIConfigProfileDefaults] instance. + APIConfigProfileDefaults({ + this.backgroundGradientBottom, + + this.backgroundGradientTop, + + this.themeButtonColor, + + this.themeIconColor, + + this.themeSubtextColor, + }); + + @JsonKey( + name: r'backgroundGradientBottom', + required: false, + includeIfNull: false, + ) + final String? backgroundGradientBottom; + + @JsonKey( + name: r'backgroundGradientTop', + required: false, + includeIfNull: false, + ) + final String? backgroundGradientTop; + + @JsonKey(name: r'themeButtonColor', required: false, includeIfNull: false) + final String? themeButtonColor; + + @JsonKey(name: r'themeIconColor', required: false, includeIfNull: false) + final String? themeIconColor; + + @JsonKey(name: r'themeSubtextColor', required: false, includeIfNull: false) + final String? themeSubtextColor; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is APIConfigProfileDefaults && + other.backgroundGradientBottom == backgroundGradientBottom && + other.backgroundGradientTop == backgroundGradientTop && + other.themeButtonColor == themeButtonColor && + other.themeIconColor == themeIconColor && + other.themeSubtextColor == themeSubtextColor; + + @override + int get hashCode => + backgroundGradientBottom.hashCode + + backgroundGradientTop.hashCode + + themeButtonColor.hashCode + + themeIconColor.hashCode + + themeSubtextColor.hashCode; + + factory APIConfigProfileDefaults.fromJson(Map json) => + _$APIConfigProfileDefaultsFromJson(json); + + Map toJson() => _$APIConfigProfileDefaultsToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_profile_defaults.g.dart b/vrchat_dart_generated/lib/src/model/api_config_profile_defaults.g.dart new file mode 100644 index 00000000..350e577d --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_profile_defaults.g.dart @@ -0,0 +1,41 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'api_config_profile_defaults.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +APIConfigProfileDefaults _$APIConfigProfileDefaultsFromJson( + Map json, +) => $checkedCreate('APIConfigProfileDefaults', json, ($checkedConvert) { + final val = APIConfigProfileDefaults( + backgroundGradientBottom: $checkedConvert( + 'backgroundGradientBottom', + (v) => v as String?, + ), + backgroundGradientTop: $checkedConvert( + 'backgroundGradientTop', + (v) => v as String?, + ), + themeButtonColor: $checkedConvert('themeButtonColor', (v) => v as String?), + themeIconColor: $checkedConvert('themeIconColor', (v) => v as String?), + themeSubtextColor: $checkedConvert( + 'themeSubtextColor', + (v) => v as String?, + ), + ); + return val; +}); + +Map _$APIConfigProfileDefaultsToJson( + APIConfigProfileDefaults instance, +) => { + 'backgroundGradientBottom': ?instance.backgroundGradientBottom, + 'backgroundGradientTop': ?instance.backgroundGradientTop, + 'themeButtonColor': ?instance.themeButtonColor, + 'themeIconColor': ?instance.themeIconColor, + 'themeSubtextColor': ?instance.themeSubtextColor, +}; diff --git a/vrchat_dart_generated/lib/src/model/avatar.dart b/vrchat_dart_generated/lib/src/model/avatar.dart index fb982dcb..f149ff1f 100644 --- a/vrchat_dart_generated/lib/src/model/avatar.dart +++ b/vrchat_dart_generated/lib/src/model/avatar.dart @@ -31,6 +31,8 @@ class Avatar { this.assetUrlObject, + this.attribution, + required this.authorId, required this.authorName, @@ -99,6 +101,9 @@ class Avatar { @JsonKey(name: r'assetUrlObject', required: false, includeIfNull: false) final Object? assetUrlObject; + @JsonKey(name: r'attribution', required: false, includeIfNull: false) + final Object? attribution; + /// 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. @JsonKey(name: r'authorId', required: true, includeIfNull: false) final String authorId; @@ -189,6 +194,7 @@ class Avatar { other.activeAssetReviewId == activeAssetReviewId && other.assetUrl == assetUrl && other.assetUrlObject == assetUrlObject && + other.attribution == attribution && other.authorId == authorId && other.authorName == authorName && other.createdAt == createdAt && @@ -222,6 +228,7 @@ class Avatar { activeAssetReviewId.hashCode + assetUrl.hashCode + assetUrlObject.hashCode + + (attribution == null ? 0 : attribution.hashCode) + authorId.hashCode + authorName.hashCode + createdAt.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/avatar.g.dart b/vrchat_dart_generated/lib/src/model/avatar.g.dart index 31ea758e..cd45b4af 100644 --- a/vrchat_dart_generated/lib/src/model/avatar.g.dart +++ b/vrchat_dart_generated/lib/src/model/avatar.g.dart @@ -8,126 +8,113 @@ part of 'avatar.dart'; // JsonSerializableGenerator // ************************************************************************** -Avatar _$AvatarFromJson(Map json) => $checkedCreate( - 'Avatar', - json, - ($checkedConvert) { - $checkKeys( - json, - requiredKeys: const [ - 'authorId', - 'authorName', - 'created_at', - 'description', - 'featured', - 'id', - 'imageUrl', - 'listingDate', - 'name', - 'performance', - 'releaseStatus', - 'styles', - 'tags', - 'thumbnailImageUrl', - 'unityPackageUrl', - 'unityPackageUrlObject', - 'unityPackages', - 'updated_at', - 'version', - ], - ); - final val = Avatar( - acknowledgements: $checkedConvert( - 'acknowledgements', - (v) => v as String?, - ), - activeAssetReviewId: $checkedConvert( - 'activeAssetReviewId', - (v) => v as String?, - ), - assetUrl: $checkedConvert('assetUrl', (v) => v as String?), - assetUrlObject: $checkedConvert('assetUrlObject', (v) => v), - authorId: $checkedConvert('authorId', (v) => v as String), - authorName: $checkedConvert('authorName', (v) => v as String), - createdAt: $checkedConvert( - 'created_at', - (v) => DateTime.parse(v as String), - ), - description: $checkedConvert('description', (v) => v as String), - featured: $checkedConvert('featured', (v) => v as bool? ?? false), - highestPrice: $checkedConvert( - 'highestPrice', - (v) => (v as num?)?.toInt(), - ), - id: $checkedConvert('id', (v) => v as String), - imageUrl: $checkedConvert('imageUrl', (v) => v as String), - listingDate: $checkedConvert('listingDate', (v) => v as String?), - lock: $checkedConvert('lock', (v) => v as bool?), - lowestPrice: $checkedConvert('lowestPrice', (v) => (v as num?)?.toInt()), - name: $checkedConvert('name', (v) => v as String), - pendingUpload: $checkedConvert( - 'pendingUpload', - (v) => v as bool? ?? false, - ), - performance: $checkedConvert( - 'performance', - (v) => AvatarPerformance.fromJson(v as Map), - ), - productId: $checkedConvert('productId', (v) => v as String?), - publishedListings: $checkedConvert( - 'publishedListings', - (v) => (v as List?) - ?.map( - (e) => AvatarPublishedListingsInner.fromJson( - e as Map, - ), - ) - .toList(), - ), - releaseStatus: $checkedConvert( - 'releaseStatus', - (v) => $enumDecode(_$ReleaseStatusEnumMap, v), - ), - searchable: $checkedConvert('searchable', (v) => v as bool? ?? false), - styles: $checkedConvert( - 'styles', - (v) => AvatarStyles.fromJson(v as Map), - ), - tags: $checkedConvert( - 'tags', - (v) => (v as List).map((e) => e as String).toList(), - ), - thumbnailImageUrl: $checkedConvert( - 'thumbnailImageUrl', - (v) => v as String, - ), - unityPackageUrl: $checkedConvert('unityPackageUrl', (v) => v as String), - unityPackageUrlObject: $checkedConvert( - 'unityPackageUrlObject', - (v) => AvatarUnityPackageUrlObject.fromJson(v as Map), - ), - unityPackages: $checkedConvert( - 'unityPackages', - (v) => (v as List) - .map((e) => UnityPackage.fromJson(e as Map)) - .toSet(), - ), - updatedAt: $checkedConvert( - 'updated_at', - (v) => DateTime.parse(v as String), - ), - version: $checkedConvert('version', (v) => (v as num?)?.toInt() ?? 0), - ); - return val; - }, - fieldKeyMap: const {'createdAt': 'created_at', 'updatedAt': 'updated_at'}, -); +Avatar _$AvatarFromJson( + Map json, +) => $checkedCreate('Avatar', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + 'authorId', + 'authorName', + 'created_at', + 'description', + 'featured', + 'id', + 'imageUrl', + 'listingDate', + 'name', + 'performance', + 'releaseStatus', + 'styles', + 'tags', + 'thumbnailImageUrl', + 'unityPackageUrl', + 'unityPackageUrlObject', + 'unityPackages', + 'updated_at', + 'version', + ], + ); + final val = Avatar( + acknowledgements: $checkedConvert('acknowledgements', (v) => v as String?), + activeAssetReviewId: $checkedConvert( + 'activeAssetReviewId', + (v) => v as String?, + ), + assetUrl: $checkedConvert('assetUrl', (v) => v as String?), + assetUrlObject: $checkedConvert('assetUrlObject', (v) => v), + attribution: $checkedConvert('attribution', (v) => v), + authorId: $checkedConvert('authorId', (v) => v as String), + authorName: $checkedConvert('authorName', (v) => v as String), + createdAt: $checkedConvert( + 'created_at', + (v) => DateTime.parse(v as String), + ), + description: $checkedConvert('description', (v) => v as String), + featured: $checkedConvert('featured', (v) => v as bool? ?? false), + highestPrice: $checkedConvert('highestPrice', (v) => (v as num?)?.toInt()), + id: $checkedConvert('id', (v) => v as String), + imageUrl: $checkedConvert('imageUrl', (v) => v as String), + listingDate: $checkedConvert('listingDate', (v) => v as String?), + lock: $checkedConvert('lock', (v) => v as bool?), + lowestPrice: $checkedConvert('lowestPrice', (v) => (v as num?)?.toInt()), + name: $checkedConvert('name', (v) => v as String), + pendingUpload: $checkedConvert('pendingUpload', (v) => v as bool? ?? false), + performance: $checkedConvert( + 'performance', + (v) => AvatarPerformance.fromJson(v as Map), + ), + productId: $checkedConvert('productId', (v) => v as String?), + publishedListings: $checkedConvert( + 'publishedListings', + (v) => (v as List?) + ?.map( + (e) => AvatarPublishedListingsInner.fromJson( + e as Map, + ), + ) + .toList(), + ), + releaseStatus: $checkedConvert( + 'releaseStatus', + (v) => $enumDecode(_$ReleaseStatusEnumMap, v), + ), + searchable: $checkedConvert('searchable', (v) => v as bool? ?? false), + styles: $checkedConvert( + 'styles', + (v) => AvatarStyles.fromJson(v as Map), + ), + tags: $checkedConvert( + 'tags', + (v) => (v as List).map((e) => e as String).toList(), + ), + thumbnailImageUrl: $checkedConvert('thumbnailImageUrl', (v) => v as String), + unityPackageUrl: $checkedConvert('unityPackageUrl', (v) => v as String), + unityPackageUrlObject: $checkedConvert( + 'unityPackageUrlObject', + (v) => AvatarUnityPackageUrlObject.fromJson(v as Map), + ), + unityPackages: $checkedConvert( + 'unityPackages', + (v) => (v as List) + .map((e) => UnityPackage.fromJson(e as Map)) + .toSet(), + ), + updatedAt: $checkedConvert( + 'updated_at', + (v) => DateTime.parse(v as String), + ), + version: $checkedConvert('version', (v) => (v as num?)?.toInt() ?? 0), + ); + return val; +}, fieldKeyMap: const {'createdAt': 'created_at', 'updatedAt': 'updated_at'}); Map _$AvatarToJson(Avatar instance) => { 'acknowledgements': ?instance.acknowledgements, 'activeAssetReviewId': ?instance.activeAssetReviewId, 'assetUrl': ?instance.assetUrl, 'assetUrlObject': ?instance.assetUrlObject, + 'attribution': ?instance.attribution, 'authorId': instance.authorId, 'authorName': instance.authorName, 'created_at': instance.createdAt.toIso8601String(), diff --git a/vrchat_dart_generated/lib/src/model/bare_error.dart b/vrchat_dart_generated/lib/src/model/bare_error.dart new file mode 100644 index 00000000..6d02453b --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/bare_error.dart @@ -0,0 +1,40 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'bare_error.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class BareError { + /// Returns a new [BareError] instance. + BareError({required this.error}); + + @JsonKey(name: r'error', required: true, includeIfNull: false) + final String error; + + @override + bool operator ==(Object other) => + identical(this, other) || other is BareError && other.error == error; + + @override + int get hashCode => error.hashCode; + + factory BareError.fromJson(Map json) => + _$BareErrorFromJson(json); + + Map toJson() => _$BareErrorToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/bare_error.g.dart b/vrchat_dart_generated/lib/src/model/bare_error.g.dart new file mode 100644 index 00000000..fa79fb1d --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/bare_error.g.dart @@ -0,0 +1,23 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'bare_error.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +BareError _$BareErrorFromJson(Map json) => $checkedCreate( + 'BareError', + json, + ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['error']); + final val = BareError(error: $checkedConvert('error', (v) => v as String)); + return val; + }, +); + +Map _$BareErrorToJson(BareError instance) => { + 'error': instance.error, +}; diff --git a/vrchat_dart_generated/lib/src/model/calendar_event.dart b/vrchat_dart_generated/lib/src/model/calendar_event.dart index 9895e8d6..946e594e 100644 --- a/vrchat_dart_generated/lib/src/model/calendar_event.dart +++ b/vrchat_dart_generated/lib/src/model/calendar_event.dart @@ -59,6 +59,8 @@ class CalendarEvent { this.occurrenceKind, + this.occurrenceModified, + this.ownerId, this.platforms, @@ -147,6 +149,9 @@ class CalendarEvent { @JsonKey(name: r'occurrenceKind', required: false, includeIfNull: false) final CalendarEventOccurrenceKind? occurrenceKind; + @JsonKey(name: r'occurrenceModified', required: false, includeIfNull: false) + final bool? occurrenceModified; + @JsonKey(name: r'ownerId', required: false, includeIfNull: false) final String? ownerId; @@ -208,6 +213,7 @@ class CalendarEvent { other.isDraft == isDraft && other.languages == languages && other.occurrenceKind == occurrenceKind && + other.occurrenceModified == occurrenceModified && other.ownerId == ownerId && other.platforms == platforms && other.recurrence == recurrence && @@ -241,6 +247,7 @@ class CalendarEvent { isDraft.hashCode + languages.hashCode + occurrenceKind.hashCode + + (occurrenceModified == null ? 0 : occurrenceModified.hashCode) + ownerId.hashCode + platforms.hashCode + (recurrence == null ? 0 : recurrence.hashCode) + diff --git a/vrchat_dart_generated/lib/src/model/calendar_event.g.dart b/vrchat_dart_generated/lib/src/model/calendar_event.g.dart index 478b017a..b79c5cee 100644 --- a/vrchat_dart_generated/lib/src/model/calendar_event.g.dart +++ b/vrchat_dart_generated/lib/src/model/calendar_event.g.dart @@ -72,6 +72,10 @@ CalendarEvent _$CalendarEventFromJson( 'occurrenceKind', (v) => $enumDecodeNullable(_$CalendarEventOccurrenceKindEnumMap, v), ), + occurrenceModified: $checkedConvert( + 'occurrenceModified', + (v) => v as bool?, + ), ownerId: $checkedConvert('ownerId', (v) => v as String?), platforms: $checkedConvert( 'platforms', @@ -136,6 +140,7 @@ Map _$CalendarEventToJson(CalendarEvent instance) => 'languages': ?instance.languages, 'occurrenceKind': ?_$CalendarEventOccurrenceKindEnumMap[instance.occurrenceKind], + 'occurrenceModified': ?instance.occurrenceModified, 'ownerId': ?instance.ownerId, 'platforms': ?instance.platforms ?.map((e) => _$CalendarEventPlatformEnumMap[e]!) diff --git a/vrchat_dart_generated/lib/src/model/calendar_event_discovery.dart b/vrchat_dart_generated/lib/src/model/calendar_event_discovery.dart index 006988f1..93795576 100644 --- a/vrchat_dart_generated/lib/src/model/calendar_event_discovery.dart +++ b/vrchat_dart_generated/lib/src/model/calendar_event_discovery.dart @@ -17,11 +17,11 @@ part 'calendar_event_discovery.g.dart'; ) class CalendarEventDiscovery { /// Returns a new [CalendarEventDiscovery] instance. - CalendarEventDiscovery({required this.nextCursor, required this.results}); + CalendarEventDiscovery({this.nextCursor, required this.results}); /// Base64-encoded JSON: type: object properties: dataSource: type: string enum: - featured - personalized dataIndex: type: integer format: int32 phase: type: string enum: - all - live - upcoming description: see CalendarEventDiscoveryScope asOf: type: integer format: int64 description: milliseconds since Unix epoch paramHash: type: string format: string description: Base64-encoded 256-bit hash of the original query parameters - @JsonKey(name: r'nextCursor', required: true, includeIfNull: false) - final String nextCursor; + @JsonKey(name: r'nextCursor', required: false, includeIfNull: false) + final String? nextCursor; @JsonKey(name: r'results', required: true, includeIfNull: false) final List results; diff --git a/vrchat_dart_generated/lib/src/model/calendar_event_discovery.g.dart b/vrchat_dart_generated/lib/src/model/calendar_event_discovery.g.dart index 5e480694..365a8e5a 100644 --- a/vrchat_dart_generated/lib/src/model/calendar_event_discovery.g.dart +++ b/vrchat_dart_generated/lib/src/model/calendar_event_discovery.g.dart @@ -11,9 +11,9 @@ part of 'calendar_event_discovery.dart'; CalendarEventDiscovery _$CalendarEventDiscoveryFromJson( Map json, ) => $checkedCreate('CalendarEventDiscovery', json, ($checkedConvert) { - $checkKeys(json, requiredKeys: const ['nextCursor', 'results']); + $checkKeys(json, requiredKeys: const ['results']); final val = CalendarEventDiscovery( - nextCursor: $checkedConvert('nextCursor', (v) => v as String), + nextCursor: $checkedConvert('nextCursor', (v) => v as String?), results: $checkedConvert( 'results', (v) => (v as List) @@ -27,6 +27,6 @@ CalendarEventDiscovery _$CalendarEventDiscoveryFromJson( Map _$CalendarEventDiscoveryToJson( CalendarEventDiscovery instance, ) => { - 'nextCursor': instance.nextCursor, + 'nextCursor': ?instance.nextCursor, 'results': instance.results.map((e) => e.toJson()).toList(), }; diff --git a/vrchat_dart_generated/lib/src/model/create_avatar_request.g.dart b/vrchat_dart_generated/lib/src/model/create_avatar_request.g.dart index 4ce01bee..beb12793 100644 --- a/vrchat_dart_generated/lib/src/model/create_avatar_request.g.dart +++ b/vrchat_dart_generated/lib/src/model/create_avatar_request.g.dart @@ -8,48 +8,41 @@ part of 'create_avatar_request.dart'; // JsonSerializableGenerator // ************************************************************************** -CreateAvatarRequest _$CreateAvatarRequestFromJson(Map json) => - $checkedCreate( - 'CreateAvatarRequest', - json, - ($checkedConvert) { - $checkKeys(json, requiredKeys: const ['imageUrl', 'name']); - final val = CreateAvatarRequest( - assetUrl: $checkedConvert('assetUrl', (v) => v as String?), - assetVersion: $checkedConvert('assetVersion', (v) => v as String?), - createdAt: $checkedConvert('created_at', (v) => v as String?), - description: $checkedConvert('description', (v) => v as String?), - id: $checkedConvert('id', (v) => v as String?), - imageUrl: $checkedConvert('imageUrl', (v) => v as String), - name: $checkedConvert('name', (v) => v as String), - platform: $checkedConvert('platform', (v) => v as String?), - releaseStatus: $checkedConvert( - 'releaseStatus', - (v) => $enumDecodeNullable(_$ReleaseStatusEnumMap, v), - ), - tags: $checkedConvert( - 'tags', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - thumbnailImageUrl: $checkedConvert( - 'thumbnailImageUrl', - (v) => v as String?, - ), - unityPackageUrl: $checkedConvert( - 'unityPackageUrl', - (v) => v as String?, - ), - unityVersion: $checkedConvert( - 'unityVersion', - (v) => v as String? ?? '5.3.4p1', - ), - updatedAt: $checkedConvert('updated_at', (v) => v as String?), - version: $checkedConvert('version', (v) => (v as num?)?.toInt() ?? 1), - ); - return val; - }, - fieldKeyMap: const {'createdAt': 'created_at', 'updatedAt': 'updated_at'}, - ); +CreateAvatarRequest _$CreateAvatarRequestFromJson( + Map json, +) => $checkedCreate('CreateAvatarRequest', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['imageUrl', 'name']); + final val = CreateAvatarRequest( + assetUrl: $checkedConvert('assetUrl', (v) => v as String?), + assetVersion: $checkedConvert('assetVersion', (v) => v as String?), + createdAt: $checkedConvert('created_at', (v) => v as String?), + description: $checkedConvert('description', (v) => v as String?), + id: $checkedConvert('id', (v) => v as String?), + imageUrl: $checkedConvert('imageUrl', (v) => v as String), + name: $checkedConvert('name', (v) => v as String), + platform: $checkedConvert('platform', (v) => v as String?), + releaseStatus: $checkedConvert( + 'releaseStatus', + (v) => $enumDecodeNullable(_$ReleaseStatusEnumMap, v), + ), + tags: $checkedConvert( + 'tags', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + thumbnailImageUrl: $checkedConvert( + 'thumbnailImageUrl', + (v) => v as String?, + ), + unityPackageUrl: $checkedConvert('unityPackageUrl', (v) => v as String?), + unityVersion: $checkedConvert( + 'unityVersion', + (v) => v as String? ?? '5.3.4p1', + ), + updatedAt: $checkedConvert('updated_at', (v) => v as String?), + version: $checkedConvert('version', (v) => (v as num?)?.toInt() ?? 1), + ); + return val; +}, fieldKeyMap: const {'createdAt': 'created_at', 'updatedAt': 'updated_at'}); Map _$CreateAvatarRequestToJson( CreateAvatarRequest instance, diff --git a/vrchat_dart_generated/lib/src/model/create_group_announcement_request.dart b/vrchat_dart_generated/lib/src/model/create_group_announcement_request.dart index 7d3f2ba6..db5cff2e 100644 --- a/vrchat_dart_generated/lib/src/model/create_group_announcement_request.dart +++ b/vrchat_dart_generated/lib/src/model/create_group_announcement_request.dart @@ -21,7 +21,7 @@ class CreateGroupAnnouncementRequest { this.sendNotification = false, - this.text, + required this.text, required this.title, }); @@ -34,8 +34,8 @@ class CreateGroupAnnouncementRequest { final bool? sendNotification; /// Announcement text - @JsonKey(name: r'text', required: false, includeIfNull: false) - final String? text; + @JsonKey(name: r'text', required: true, includeIfNull: false) + final String text; /// Announcement title @JsonKey(name: r'title', required: true, includeIfNull: false) diff --git a/vrchat_dart_generated/lib/src/model/create_group_announcement_request.g.dart b/vrchat_dart_generated/lib/src/model/create_group_announcement_request.g.dart index a103fde3..ad846410 100644 --- a/vrchat_dart_generated/lib/src/model/create_group_announcement_request.g.dart +++ b/vrchat_dart_generated/lib/src/model/create_group_announcement_request.g.dart @@ -11,14 +11,14 @@ part of 'create_group_announcement_request.dart'; CreateGroupAnnouncementRequest _$CreateGroupAnnouncementRequestFromJson( Map json, ) => $checkedCreate('CreateGroupAnnouncementRequest', json, ($checkedConvert) { - $checkKeys(json, requiredKeys: const ['title']); + $checkKeys(json, requiredKeys: const ['text', 'title']); final val = CreateGroupAnnouncementRequest( imageId: $checkedConvert('imageId', (v) => v as String?), sendNotification: $checkedConvert( 'sendNotification', (v) => v as bool? ?? false, ), - text: $checkedConvert('text', (v) => v as String?), + text: $checkedConvert('text', (v) => v as String), title: $checkedConvert('title', (v) => v as String), ); return val; @@ -29,6 +29,6 @@ Map _$CreateGroupAnnouncementRequestToJson( ) => { 'imageId': ?instance.imageId, 'sendNotification': ?instance.sendNotification, - 'text': ?instance.text, + 'text': instance.text, 'title': instance.title, }; diff --git a/vrchat_dart_generated/lib/src/model/create_instance_request.dart b/vrchat_dart_generated/lib/src/model/create_instance_request.dart index f5d4bcf6..42100093 100644 --- a/vrchat_dart_generated/lib/src/model/create_instance_request.dart +++ b/vrchat_dart_generated/lib/src/model/create_instance_request.dart @@ -27,10 +27,14 @@ class CreateInstanceRequest { this.canRequestInvite = false, + this.categoryId, + this.closedAt, this.contentSettings, + this.description, + this.displayName, this.groupAccessType, @@ -53,6 +57,8 @@ class CreateInstanceRequest { required this.type, + this.vibeIds, + required this.worldId, }); @@ -62,10 +68,13 @@ class CreateInstanceRequest { @JsonKey(name: r'calendarEntryId', required: false, includeIfNull: false) final String? calendarEntryId; - /// Only applies to invite type instances to make them invite+ + /// Makes a private instance invite+. A friends instance is rejected. @JsonKey(name: r'canRequestInvite', required: false, includeIfNull: false) final bool? canRequestInvite; + @JsonKey(name: r'categoryId', required: false, includeIfNull: false) + final String? categoryId; + /// The time after which users won't be allowed to join the instance. This doesn't work for public instances. @JsonKey(name: r'closedAt', required: false, includeIfNull: false) final DateTime? closedAt; @@ -73,6 +82,9 @@ class CreateInstanceRequest { @JsonKey(name: r'contentSettings', required: false, includeIfNull: false) final InstanceContentSettings? contentSettings; + @JsonKey(name: r'description', required: false, includeIfNull: false) + final String? description; + @JsonKey(name: r'displayName', required: false, includeIfNull: false) final String? displayName; @@ -117,6 +129,9 @@ class CreateInstanceRequest { @JsonKey(name: r'type', required: true, includeIfNull: false) final InstanceType type; + @JsonKey(name: r'vibeIds', required: false, includeIfNull: false) + final List? vibeIds; + /// WorldID be \"offline\" on User profiles if you are not friends with that user. @JsonKey(name: r'worldId', required: true, includeIfNull: false) final String worldId; @@ -128,8 +143,10 @@ class CreateInstanceRequest { other.ageGate == ageGate && other.calendarEntryId == calendarEntryId && other.canRequestInvite == canRequestInvite && + other.categoryId == categoryId && other.closedAt == closedAt && other.contentSettings == contentSettings && + other.description == description && other.displayName == displayName && other.groupAccessType == groupAccessType && other.hardClose == hardClose && @@ -141,6 +158,7 @@ class CreateInstanceRequest { other.region == region && other.roleIds == roleIds && other.type == type && + other.vibeIds == vibeIds && other.worldId == worldId; @override @@ -148,9 +166,11 @@ class CreateInstanceRequest { ageGate.hashCode + calendarEntryId.hashCode + canRequestInvite.hashCode + + categoryId.hashCode + closedAt.hashCode + contentSettings.hashCode + - (displayName == null ? 0 : displayName.hashCode) + + description.hashCode + + displayName.hashCode + groupAccessType.hashCode + hardClose.hashCode + (instancePersistenceEnabled == null @@ -165,6 +185,7 @@ class CreateInstanceRequest { region.hashCode + roleIds.hashCode + type.hashCode + + vibeIds.hashCode + worldId.hashCode; factory CreateInstanceRequest.fromJson(Map json) => diff --git a/vrchat_dart_generated/lib/src/model/create_instance_request.g.dart b/vrchat_dart_generated/lib/src/model/create_instance_request.g.dart index 355cfc03..2b087e61 100644 --- a/vrchat_dart_generated/lib/src/model/create_instance_request.g.dart +++ b/vrchat_dart_generated/lib/src/model/create_instance_request.g.dart @@ -19,6 +19,7 @@ CreateInstanceRequest _$CreateInstanceRequestFromJson( 'canRequestInvite', (v) => v as bool? ?? false, ), + categoryId: $checkedConvert('categoryId', (v) => v as String?), closedAt: $checkedConvert( 'closedAt', (v) => v == null ? null : DateTime.parse(v as String), @@ -29,6 +30,7 @@ CreateInstanceRequest _$CreateInstanceRequestFromJson( ? null : InstanceContentSettings.fromJson(v as Map), ), + description: $checkedConvert('description', (v) => v as String?), displayName: $checkedConvert('displayName', (v) => v as String?), groupAccessType: $checkedConvert( 'groupAccessType', @@ -55,6 +57,10 @@ CreateInstanceRequest _$CreateInstanceRequestFromJson( (v) => (v as List?)?.map((e) => e as String).toList(), ), type: $checkedConvert('type', (v) => $enumDecode(_$InstanceTypeEnumMap, v)), + vibeIds: $checkedConvert( + 'vibeIds', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), worldId: $checkedConvert('worldId', (v) => v as String), ); return val; @@ -66,8 +72,10 @@ Map _$CreateInstanceRequestToJson( 'ageGate': ?instance.ageGate, 'calendarEntryId': ?instance.calendarEntryId, 'canRequestInvite': ?instance.canRequestInvite, + 'categoryId': ?instance.categoryId, 'closedAt': ?instance.closedAt?.toIso8601String(), 'contentSettings': ?instance.contentSettings?.toJson(), + 'description': ?instance.description, 'displayName': ?instance.displayName, 'groupAccessType': ?_$GroupAccessTypeEnumMap[instance.groupAccessType], 'hardClose': ?instance.hardClose, @@ -79,6 +87,7 @@ Map _$CreateInstanceRequestToJson( 'region': _$InstanceRegionEnumMap[instance.region]!, 'roleIds': ?instance.roleIds, 'type': _$InstanceTypeEnumMap[instance.type]!, + 'vibeIds': ?instance.vibeIds, 'worldId': instance.worldId, }; diff --git a/vrchat_dart_generated/lib/src/model/current_user.dart b/vrchat_dart_generated/lib/src/model/current_user.dart index a4f397c7..472db9af 100644 --- a/vrchat_dart_generated/lib/src/model/current_user.dart +++ b/vrchat_dart_generated/lib/src/model/current_user.dart @@ -51,10 +51,16 @@ class CurrentUser { this.badges, + this.bannerColor, + + this.bannerType, + required this.bio, required this.bioLinks, + this.completedTutorials, + this.contentFilters, required this.currentAvatar, @@ -83,6 +89,8 @@ class CurrentUser { required this.friendKey, + this.friendRequestStatus, + required this.friends, this.googleDetails, @@ -105,14 +113,24 @@ class CurrentUser { required this.homeLocation, + this.iconFrame, + + this.iconUrl, + required this.id, + this.instanceId, + required this.isAdult, this.isBoopingEnabled = true, + this.isEconomyCreator = false, + this.isFriend = false, + this.isTemporary = false, + this.lastActivity, required this.lastLogin, @@ -121,6 +139,12 @@ class CurrentUser { required this.lastPlatform, + this.location, + + this.nameplateEffect, + + this.note, + required this.obfuscatedEmail, required this.obfuscatedPendingEmail, @@ -133,12 +157,18 @@ class CurrentUser { required this.pastDisplayNames, + this.personalizationOptOut, + this.picoId, + this.platform, + this.platformHistory, this.presence, + this.profileEffect, + required this.profilePicOverride, required this.profilePicOverrideThumbnail, @@ -167,6 +197,14 @@ class CurrentUser { required this.tags, + this.temporaryExpiryDate, + + this.travelingToInstance, + + this.travelingToLocation, + + this.travelingToWorld, + this.twitchDetails, this.twitchId, @@ -190,6 +228,8 @@ class CurrentUser { required this.usesGeneratedPassword, this.viveId, + + this.worldId, }); // minimum: 0 @@ -239,6 +279,12 @@ class CurrentUser { @JsonKey(name: r'badges', required: false, includeIfNull: false) final List? badges; + @JsonKey(name: r'bannerColor', required: false, includeIfNull: false) + final String? bannerColor; + + @JsonKey(name: r'bannerType', required: false, includeIfNull: false) + final String? bannerType; + @JsonKey(name: r'bio', required: true, includeIfNull: false) final String bio; @@ -246,6 +292,9 @@ class CurrentUser { @JsonKey(name: r'bioLinks', required: true, includeIfNull: false) final List bioLinks; + @JsonKey(name: r'completedTutorials', required: false, includeIfNull: false) + final List? completedTutorials; + /// These tags begin with `content_` and control content gating @JsonKey(name: r'contentFilters', required: false, includeIfNull: false) final List? contentFilters; @@ -298,6 +347,10 @@ class CurrentUser { @JsonKey(name: r'friendKey', required: true, includeIfNull: false) final String friendKey; + /// State of a friend request between the caller and this user. VRChat sends the string `\"null\"`, not JSON `null`. + @JsonKey(name: r'friendRequestStatus', required: false, includeIfNull: false) + final String? friendRequestStatus; + @JsonKey(name: r'friends', required: true, includeIfNull: false) final List friends; @@ -344,19 +397,35 @@ class CurrentUser { @JsonKey(name: r'homeLocation', required: true, includeIfNull: false) final String homeLocation; + @JsonKey(name: r'iconFrame', required: false, includeIfNull: false) + final String? iconFrame; + + @JsonKey(name: r'iconUrl', required: false, includeIfNull: false) + final String? iconUrl; + /// 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. @JsonKey(name: r'id', required: true, includeIfNull: false) final String id; + /// InstanceID can be \"offline\" on User profiles if you are not friends with that user and \"private\" if you are friends and user is in private instance. + @JsonKey(name: r'instanceId', required: false, includeIfNull: false) + final String? instanceId; + @JsonKey(name: r'isAdult', required: true, includeIfNull: false) final bool isAdult; @JsonKey(name: r'isBoopingEnabled', required: false, includeIfNull: false) final bool? isBoopingEnabled; + @JsonKey(name: r'isEconomyCreator', required: false, includeIfNull: false) + final bool? isEconomyCreator; + @JsonKey(name: r'isFriend', required: true, includeIfNull: false) final bool isFriend; + @JsonKey(name: r'isTemporary', required: false, includeIfNull: false) + final bool? isTemporary; + @JsonKey(name: r'last_activity', required: false, includeIfNull: false) final DateTime? lastActivity; @@ -370,6 +439,16 @@ class CurrentUser { @JsonKey(name: r'last_platform', required: true, includeIfNull: false) final String lastPlatform; + /// Represents a unique location, consisting of a world identifier and an instance identifier, or \"offline\" if the user is not on your friends list. + @JsonKey(name: r'location', required: false, includeIfNull: false) + final String? location; + + @JsonKey(name: r'nameplateEffect', required: false, includeIfNull: false) + final String? nameplateEffect; + + @JsonKey(name: r'note', required: false, includeIfNull: false) + final String? note; + @JsonKey(name: r'obfuscatedEmail', required: true, includeIfNull: false) final String obfuscatedEmail; @@ -393,15 +472,28 @@ class CurrentUser { @JsonKey(name: r'pastDisplayNames', required: true, includeIfNull: false) final List pastDisplayNames; + @JsonKey( + name: r'personalizationOptOut', + required: false, + includeIfNull: false, + ) + final bool? personalizationOptOut; + @JsonKey(name: r'picoId', required: false, includeIfNull: false) final String? picoId; + @JsonKey(name: r'platform', required: false, includeIfNull: false) + final String? platform; + @JsonKey(name: r'platform_history', required: false, includeIfNull: false) final List? platformHistory; @JsonKey(name: r'presence', required: false, includeIfNull: false) final CurrentUserPresence? presence; + @JsonKey(name: r'profileEffect', required: false, includeIfNull: false) + final String? profileEffect; + @JsonKey(name: r'profilePicOverride', required: true, includeIfNull: false) final String profilePicOverride; @@ -452,6 +544,18 @@ class CurrentUser { @JsonKey(name: r'tags', required: true, includeIfNull: false) final List tags; + @JsonKey(name: r'temporaryExpiryDate', required: false, includeIfNull: false) + final Object? temporaryExpiryDate; + + @JsonKey(name: r'travelingToInstance', required: false, includeIfNull: false) + final String? travelingToInstance; + + @JsonKey(name: r'travelingToLocation', required: false, includeIfNull: false) + final String? travelingToLocation; + + @JsonKey(name: r'travelingToWorld', required: false, includeIfNull: false) + final String? travelingToWorld; + @JsonKey(name: r'twitchDetails', required: false, includeIfNull: false) final Object? twitchDetails; @@ -483,8 +587,7 @@ class CurrentUser { @JsonKey(name: r'userLanguageCode', required: false, includeIfNull: false) final String? userLanguageCode; - /// -| **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). - @Deprecated('username has been deprecated') + /// Your own unique name, used during login. Distinct from `displayName`, and never returned for another user. @JsonKey(name: r'username', required: false, includeIfNull: false) final String? username; @@ -494,6 +597,10 @@ class CurrentUser { @JsonKey(name: r'viveId', required: false, includeIfNull: false) final String? viveId; + /// WorldID be \"offline\" on User profiles if you are not friends with that user. + @JsonKey(name: r'worldId', required: false, includeIfNull: false) + final String? worldId; + @override bool operator ==(Object other) => identical(this, other) || @@ -510,8 +617,11 @@ class CurrentUser { other.appleId == appleId && other.authToken == authToken && other.badges == badges && + other.bannerColor == bannerColor && + other.bannerType == bannerType && other.bio == bio && other.bioLinks == bioLinks && + other.completedTutorials == completedTutorials && other.contentFilters == contentFilters && other.currentAvatar == currentAvatar && other.currentAvatarImageUrl == currentAvatarImageUrl && @@ -527,6 +637,7 @@ class CurrentUser { other.fallbackAvatar == fallbackAvatar && other.friendGroupNames == friendGroupNames && other.friendKey == friendKey && + other.friendRequestStatus == friendRequestStatus && other.friends == friends && other.googleDetails == googleDetails && other.googleId == googleId && @@ -538,23 +649,34 @@ class CurrentUser { other.hasSharedConnectionsOptOut == hasSharedConnectionsOptOut && other.hideContentFilterSettings == hideContentFilterSettings && other.homeLocation == homeLocation && + other.iconFrame == iconFrame && + other.iconUrl == iconUrl && other.id == id && + other.instanceId == instanceId && other.isAdult == isAdult && other.isBoopingEnabled == isBoopingEnabled && + other.isEconomyCreator == isEconomyCreator && other.isFriend == isFriend && + other.isTemporary == isTemporary && other.lastActivity == lastActivity && other.lastLogin == lastLogin && other.lastMobile == lastMobile && other.lastPlatform == lastPlatform && + other.location == location && + other.nameplateEffect == nameplateEffect && + other.note == note && other.obfuscatedEmail == obfuscatedEmail && other.obfuscatedPendingEmail == obfuscatedPendingEmail && other.oculusId == oculusId && other.offlineFriends == offlineFriends && other.onlineFriends == onlineFriends && other.pastDisplayNames == pastDisplayNames && + other.personalizationOptOut == personalizationOptOut && other.picoId == picoId && + other.platform == platform && other.platformHistory == platformHistory && other.presence == presence && + other.profileEffect == profileEffect && other.profilePicOverride == profilePicOverride && other.profilePicOverrideThumbnail == profilePicOverrideThumbnail && other.pronouns == pronouns && @@ -569,6 +691,10 @@ class CurrentUser { other.steamDetails == steamDetails && other.steamId == steamId && other.tags == tags && + other.temporaryExpiryDate == temporaryExpiryDate && + other.travelingToInstance == travelingToInstance && + other.travelingToLocation == travelingToLocation && + other.travelingToWorld == travelingToWorld && other.twitchDetails == twitchDetails && other.twitchId == twitchId && other.twoFactorAuthEnabled == twoFactorAuthEnabled && @@ -580,7 +706,8 @@ class CurrentUser { other.userLanguageCode == userLanguageCode && other.username == username && other.usesGeneratedPassword == usesGeneratedPassword && - other.viveId == viveId; + other.viveId == viveId && + other.worldId == worldId; @override int get hashCode => @@ -596,8 +723,11 @@ class CurrentUser { appleId.hashCode + authToken.hashCode + badges.hashCode + + bannerColor.hashCode + + bannerType.hashCode + bio.hashCode + bioLinks.hashCode + + completedTutorials.hashCode + contentFilters.hashCode + currentAvatar.hashCode + currentAvatarImageUrl.hashCode + @@ -612,6 +742,7 @@ class CurrentUser { fallbackAvatar.hashCode + friendGroupNames.hashCode + friendKey.hashCode + + friendRequestStatus.hashCode + friends.hashCode + googleDetails.hashCode + googleId.hashCode + @@ -623,23 +754,34 @@ class CurrentUser { hasSharedConnectionsOptOut.hashCode + hideContentFilterSettings.hashCode + homeLocation.hashCode + + iconFrame.hashCode + + iconUrl.hashCode + id.hashCode + + instanceId.hashCode + isAdult.hashCode + isBoopingEnabled.hashCode + + isEconomyCreator.hashCode + isFriend.hashCode + + isTemporary.hashCode + lastActivity.hashCode + lastLogin.hashCode + (lastMobile == null ? 0 : lastMobile.hashCode) + lastPlatform.hashCode + + location.hashCode + + nameplateEffect.hashCode + + note.hashCode + obfuscatedEmail.hashCode + obfuscatedPendingEmail.hashCode + oculusId.hashCode + offlineFriends.hashCode + onlineFriends.hashCode + pastDisplayNames.hashCode + + personalizationOptOut.hashCode + picoId.hashCode + + platform.hashCode + platformHistory.hashCode + presence.hashCode + + profileEffect.hashCode + profilePicOverride.hashCode + profilePicOverrideThumbnail.hashCode + pronouns.hashCode + @@ -654,6 +796,10 @@ class CurrentUser { steamDetails.hashCode + steamId.hashCode + tags.hashCode + + (temporaryExpiryDate == null ? 0 : temporaryExpiryDate.hashCode) + + travelingToInstance.hashCode + + travelingToLocation.hashCode + + travelingToWorld.hashCode + twitchDetails.hashCode + twitchId.hashCode + twoFactorAuthEnabled.hashCode + @@ -667,7 +813,8 @@ class CurrentUser { (userLanguageCode == null ? 0 : userLanguageCode.hashCode) + username.hashCode + usesGeneratedPassword.hashCode + - viveId.hashCode; + viveId.hashCode + + worldId.hashCode; factory CurrentUser.fromJson(Map json) => _$CurrentUserFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/current_user.g.dart b/vrchat_dart_generated/lib/src/model/current_user.g.dart index aaca5355..6daa8857 100644 --- a/vrchat_dart_generated/lib/src/model/current_user.g.dart +++ b/vrchat_dart_generated/lib/src/model/current_user.g.dart @@ -106,11 +106,17 @@ CurrentUser _$CurrentUserFromJson(Map json) => $checkedCreate( ?.map((e) => Badge.fromJson(e as Map)) .toList(), ), + bannerColor: $checkedConvert('bannerColor', (v) => v as String?), + bannerType: $checkedConvert('bannerType', (v) => v as String?), bio: $checkedConvert('bio', (v) => v as String), bioLinks: $checkedConvert( 'bioLinks', (v) => (v as List).map((e) => e as String).toList(), ), + completedTutorials: $checkedConvert( + 'completedTutorials', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), contentFilters: $checkedConvert( 'contentFilters', (v) => (v as List?)?.map((e) => e as String).toList(), @@ -151,6 +157,10 @@ CurrentUser _$CurrentUserFromJson(Map json) => $checkedCreate( (v) => (v as List).map((e) => e as String).toList(), ), friendKey: $checkedConvert('friendKey', (v) => v as String), + friendRequestStatus: $checkedConvert( + 'friendRequestStatus', + (v) => v as String?, + ), friends: $checkedConvert( 'friends', (v) => (v as List).map((e) => e as String).toList(), @@ -177,13 +187,21 @@ CurrentUser _$CurrentUserFromJson(Map json) => $checkedCreate( (v) => v as bool?, ), homeLocation: $checkedConvert('homeLocation', (v) => v as String), + iconFrame: $checkedConvert('iconFrame', (v) => v as String?), + iconUrl: $checkedConvert('iconUrl', (v) => v as String?), id: $checkedConvert('id', (v) => v as String), + instanceId: $checkedConvert('instanceId', (v) => v as String?), isAdult: $checkedConvert('isAdult', (v) => v as bool), isBoopingEnabled: $checkedConvert( 'isBoopingEnabled', (v) => v as bool? ?? true, ), + isEconomyCreator: $checkedConvert( + 'isEconomyCreator', + (v) => v as bool? ?? false, + ), isFriend: $checkedConvert('isFriend', (v) => v as bool? ?? false), + isTemporary: $checkedConvert('isTemporary', (v) => v as bool? ?? false), lastActivity: $checkedConvert( 'last_activity', (v) => v == null ? null : DateTime.parse(v as String), @@ -197,6 +215,9 @@ CurrentUser _$CurrentUserFromJson(Map json) => $checkedCreate( (v) => v == null ? null : DateTime.parse(v as String), ), lastPlatform: $checkedConvert('last_platform', (v) => v as String), + location: $checkedConvert('location', (v) => v as String?), + nameplateEffect: $checkedConvert('nameplateEffect', (v) => v as String?), + note: $checkedConvert('note', (v) => v as String?), obfuscatedEmail: $checkedConvert('obfuscatedEmail', (v) => v as String), obfuscatedPendingEmail: $checkedConvert( 'obfuscatedPendingEmail', @@ -217,7 +238,12 @@ CurrentUser _$CurrentUserFromJson(Map json) => $checkedCreate( .map((e) => PastDisplayName.fromJson(e as Map)) .toList(), ), + personalizationOptOut: $checkedConvert( + 'personalizationOptOut', + (v) => v as bool?, + ), picoId: $checkedConvert('picoId', (v) => v as String?), + platform: $checkedConvert('platform', (v) => v as String?), platformHistory: $checkedConvert( 'platform_history', (v) => (v as List?) @@ -234,6 +260,7 @@ CurrentUser _$CurrentUserFromJson(Map json) => $checkedCreate( ? null : CurrentUserPresence.fromJson(v as Map), ), + profileEffect: $checkedConvert('profileEffect', (v) => v as String?), profilePicOverride: $checkedConvert( 'profilePicOverride', (v) => v as String, @@ -275,6 +302,19 @@ CurrentUser _$CurrentUserFromJson(Map json) => $checkedCreate( 'tags', (v) => (v as List).map((e) => e as String).toList(), ), + temporaryExpiryDate: $checkedConvert('temporaryExpiryDate', (v) => v), + travelingToInstance: $checkedConvert( + 'travelingToInstance', + (v) => v as String?, + ), + travelingToLocation: $checkedConvert( + 'travelingToLocation', + (v) => v as String?, + ), + travelingToWorld: $checkedConvert( + 'travelingToWorld', + (v) => v as String?, + ), twitchDetails: $checkedConvert('twitchDetails', (v) => v), twitchId: $checkedConvert('twitchId', (v) => v as String?), twoFactorAuthEnabled: $checkedConvert( @@ -302,6 +342,7 @@ CurrentUser _$CurrentUserFromJson(Map json) => $checkedCreate( (v) => v as bool, ), viveId: $checkedConvert('viveId', (v) => v as String?), + worldId: $checkedConvert('worldId', (v) => v as String?), ); return val; }, @@ -334,8 +375,11 @@ Map _$CurrentUserToJson( 'appleId': ?instance.appleId, 'authToken': ?instance.authToken, 'badges': ?instance.badges?.map((e) => e.toJson()).toList(), + 'bannerColor': ?instance.bannerColor, + 'bannerType': ?instance.bannerType, 'bio': instance.bio, 'bioLinks': instance.bioLinks, + 'completedTutorials': ?instance.completedTutorials, 'contentFilters': ?instance.contentFilters, 'currentAvatar': instance.currentAvatar, 'currentAvatarImageUrl': instance.currentAvatarImageUrl, @@ -350,6 +394,7 @@ Map _$CurrentUserToJson( 'fallbackAvatar': ?instance.fallbackAvatar, 'friendGroupNames': instance.friendGroupNames, 'friendKey': instance.friendKey, + 'friendRequestStatus': ?instance.friendRequestStatus, 'friends': instance.friends, 'googleDetails': ?instance.googleDetails, 'googleId': ?instance.googleId, @@ -361,25 +406,36 @@ Map _$CurrentUserToJson( 'hasSharedConnectionsOptOut': ?instance.hasSharedConnectionsOptOut, 'hideContentFilterSettings': ?instance.hideContentFilterSettings, 'homeLocation': instance.homeLocation, + 'iconFrame': ?instance.iconFrame, + 'iconUrl': ?instance.iconUrl, 'id': instance.id, + 'instanceId': ?instance.instanceId, 'isAdult': instance.isAdult, 'isBoopingEnabled': ?instance.isBoopingEnabled, + 'isEconomyCreator': ?instance.isEconomyCreator, 'isFriend': instance.isFriend, + 'isTemporary': ?instance.isTemporary, 'last_activity': ?instance.lastActivity?.toIso8601String(), 'last_login': instance.lastLogin.toIso8601String(), 'last_mobile': instance.lastMobile?.toIso8601String(), 'last_platform': instance.lastPlatform, + 'location': ?instance.location, + 'nameplateEffect': ?instance.nameplateEffect, + 'note': ?instance.note, 'obfuscatedEmail': instance.obfuscatedEmail, 'obfuscatedPendingEmail': instance.obfuscatedPendingEmail, 'oculusId': instance.oculusId, 'offlineFriends': ?instance.offlineFriends, 'onlineFriends': ?instance.onlineFriends, 'pastDisplayNames': instance.pastDisplayNames.map((e) => e.toJson()).toList(), + 'personalizationOptOut': ?instance.personalizationOptOut, 'picoId': ?instance.picoId, + 'platform': ?instance.platform, 'platform_history': ?instance.platformHistory ?.map((e) => e.toJson()) .toList(), 'presence': ?instance.presence?.toJson(), + 'profileEffect': ?instance.profileEffect, 'profilePicOverride': instance.profilePicOverride, 'profilePicOverrideThumbnail': instance.profilePicOverrideThumbnail, 'pronouns': instance.pronouns, @@ -394,6 +450,10 @@ Map _$CurrentUserToJson( 'steamDetails': instance.steamDetails, 'steamId': instance.steamId, 'tags': instance.tags, + 'temporaryExpiryDate': ?instance.temporaryExpiryDate, + 'travelingToInstance': ?instance.travelingToInstance, + 'travelingToLocation': ?instance.travelingToLocation, + 'travelingToWorld': ?instance.travelingToWorld, 'twitchDetails': ?instance.twitchDetails, 'twitchId': ?instance.twitchId, 'twoFactorAuthEnabled': instance.twoFactorAuthEnabled, @@ -407,6 +467,7 @@ Map _$CurrentUserToJson( 'username': ?instance.username, 'usesGeneratedPassword': instance.usesGeneratedPassword, 'viveId': ?instance.viveId, + 'worldId': ?instance.worldId, }; const _$AgeVerificationStatusEnumMap = { diff --git a/vrchat_dart_generated/lib/src/model/current_user_presence.dart b/vrchat_dart_generated/lib/src/model/current_user_presence.dart index 6e7f2911..68f22411 100644 --- a/vrchat_dart_generated/lib/src/model/current_user_presence.dart +++ b/vrchat_dart_generated/lib/src/model/current_user_presence.dart @@ -17,8 +17,12 @@ part 'current_user_presence.g.dart'; class CurrentUserPresence { /// Returns a new [CurrentUserPresence] instance. CurrentUserPresence({ + this.avatarImageUrl, + this.avatarThumbnail, + this.banner, + this.currentAvatarTags, this.debugflag, @@ -27,6 +31,8 @@ class CurrentUserPresence { this.groups, + this.iconFrame, + this.id, this.instance, @@ -35,8 +41,12 @@ class CurrentUserPresence { this.isRejoining, + this.nameplateEffect, + this.platform, + this.profileEffect, + this.profilePicOverride, this.status, @@ -50,9 +60,15 @@ class CurrentUserPresence { this.world, }); + @JsonKey(name: r'avatarImageUrl', required: false, includeIfNull: false) + final String? avatarImageUrl; + @JsonKey(name: r'avatarThumbnail', required: false, includeIfNull: false) final String? avatarThumbnail; + @JsonKey(name: r'banner', required: false, includeIfNull: false) + final String? banner; + @JsonKey(name: r'currentAvatarTags', required: false, includeIfNull: false) final List? currentAvatarTags; @@ -65,6 +81,9 @@ class CurrentUserPresence { @JsonKey(name: r'groups', required: false, includeIfNull: false) final List? groups; + @JsonKey(name: r'iconFrame', required: false, includeIfNull: false) + final String? iconFrame; + /// 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. @JsonKey(name: r'id', required: false, includeIfNull: false) final String? id; @@ -79,10 +98,16 @@ class CurrentUserPresence { @JsonKey(name: r'isRejoining', required: false, includeIfNull: false) final String? isRejoining; + @JsonKey(name: r'nameplateEffect', required: false, includeIfNull: false) + final String? nameplateEffect; + /// 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`. @JsonKey(name: r'platform', required: false, includeIfNull: false) final String? platform; + @JsonKey(name: r'profileEffect', required: false, includeIfNull: false) + final String? profileEffect; + @JsonKey(name: r'profilePicOverride', required: false, includeIfNull: false) final String? profilePicOverride; @@ -108,16 +133,21 @@ class CurrentUserPresence { bool operator ==(Object other) => identical(this, other) || other is CurrentUserPresence && + other.avatarImageUrl == avatarImageUrl && other.avatarThumbnail == avatarThumbnail && + other.banner == banner && other.currentAvatarTags == currentAvatarTags && other.debugflag == debugflag && other.displayName == displayName && other.groups == groups && + other.iconFrame == iconFrame && other.id == id && other.instance == instance && other.instanceType == instanceType && other.isRejoining == isRejoining && + other.nameplateEffect == nameplateEffect && other.platform == platform && + other.profileEffect == profileEffect && other.profilePicOverride == profilePicOverride && other.status == status && other.travelingToInstance == travelingToInstance && @@ -127,16 +157,21 @@ class CurrentUserPresence { @override int get hashCode => + avatarImageUrl.hashCode + (avatarThumbnail == null ? 0 : avatarThumbnail.hashCode) + + banner.hashCode + currentAvatarTags.hashCode + debugflag.hashCode + displayName.hashCode + (groups == null ? 0 : groups.hashCode) + + iconFrame.hashCode + id.hashCode + (instance == null ? 0 : instance.hashCode) + (instanceType == null ? 0 : instanceType.hashCode) + (isRejoining == null ? 0 : isRejoining.hashCode) + + nameplateEffect.hashCode + platform.hashCode + + profileEffect.hashCode + (profilePicOverride == null ? 0 : profilePicOverride.hashCode) + (status == null ? 0 : status.hashCode) + (travelingToInstance == null ? 0 : travelingToInstance.hashCode) + diff --git a/vrchat_dart_generated/lib/src/model/current_user_presence.g.dart b/vrchat_dart_generated/lib/src/model/current_user_presence.g.dart index 71612619..395668e4 100644 --- a/vrchat_dart_generated/lib/src/model/current_user_presence.g.dart +++ b/vrchat_dart_generated/lib/src/model/current_user_presence.g.dart @@ -12,7 +12,9 @@ CurrentUserPresence _$CurrentUserPresenceFromJson( Map json, ) => $checkedCreate('CurrentUserPresence', json, ($checkedConvert) { final val = CurrentUserPresence( + avatarImageUrl: $checkedConvert('avatarImageUrl', (v) => v as String?), avatarThumbnail: $checkedConvert('avatarThumbnail', (v) => v as String?), + banner: $checkedConvert('banner', (v) => v as String?), currentAvatarTags: $checkedConvert( 'currentAvatarTags', (v) => (v as List?)?.map((e) => e as String).toList(), @@ -23,11 +25,14 @@ CurrentUserPresence _$CurrentUserPresenceFromJson( 'groups', (v) => (v as List?)?.map((e) => e as String).toList(), ), + iconFrame: $checkedConvert('iconFrame', (v) => v as String?), id: $checkedConvert('id', (v) => v as String?), instance: $checkedConvert('instance', (v) => v as String?), instanceType: $checkedConvert('instanceType', (v) => v as String?), isRejoining: $checkedConvert('isRejoining', (v) => v as String?), + nameplateEffect: $checkedConvert('nameplateEffect', (v) => v as String?), platform: $checkedConvert('platform', (v) => v as String?), + profileEffect: $checkedConvert('profileEffect', (v) => v as String?), profilePicOverride: $checkedConvert( 'profilePicOverride', (v) => v as String?, @@ -47,16 +52,21 @@ CurrentUserPresence _$CurrentUserPresenceFromJson( Map _$CurrentUserPresenceToJson( CurrentUserPresence instance, ) => { + 'avatarImageUrl': ?instance.avatarImageUrl, 'avatarThumbnail': ?instance.avatarThumbnail, + 'banner': ?instance.banner, 'currentAvatarTags': ?instance.currentAvatarTags, 'debugflag': ?instance.debugflag, 'displayName': ?instance.displayName, 'groups': ?instance.groups, + 'iconFrame': ?instance.iconFrame, 'id': ?instance.id, 'instance': ?instance.instance, 'instanceType': ?instance.instanceType, 'isRejoining': ?instance.isRejoining, + 'nameplateEffect': ?instance.nameplateEffect, 'platform': ?instance.platform, + 'profileEffect': ?instance.profileEffect, 'profilePicOverride': ?instance.profilePicOverride, 'status': ?instance.status, 'travelingToInstance': ?instance.travelingToInstance, diff --git a/vrchat_dart_generated/lib/src/model/dynamic_content_row.dart b/vrchat_dart_generated/lib/src/model/dynamic_content_row.dart index 66562c37..8d462612 100644 --- a/vrchat_dart_generated/lib/src/model/dynamic_content_row.dart +++ b/vrchat_dart_generated/lib/src/model/dynamic_content_row.dart @@ -17,74 +17,250 @@ part 'dynamic_content_row.g.dart'; class DynamicContentRow { /// Returns a new [DynamicContentRow] instance. DynamicContentRow({ + this.anyStyle, + + this.anyTag, + + this.avatarSpecific, + + this.bannersTag, + + this.categories, + + this.featuredResults, + this.index, + this.marketplace, + + this.maxPrice, + + this.minOccupants, + + this.minPrice, + + this.minimumInterestCount, + + this.minimumRemainingMinutes, + + this.mode, + + this.n, + required this.name, + this.nonFeaturedResults, + + this.notag, + + this.params, + + this.personalizedResults, + required this.platform, - required this.sortHeading, + this.region, - required this.sortOrder, + this.scope, - required this.sortOwnership, + this.shortName, + + this.sortHeading, + + this.sortOrder, + + this.sortOwnership, + + this.style, this.tag, + this.tags, + this.type, + + this.upcomingOffsetMinutes, }); + @JsonKey(name: r'anyStyle', required: false, includeIfNull: false) + final List? anyStyle; + + @JsonKey(name: r'anyTag', required: false, includeIfNull: false) + final List? anyTag; + + @JsonKey(name: r'avatarSpecific', required: false, includeIfNull: false) + final bool? avatarSpecific; + + @JsonKey(name: r'bannersTag', required: false, includeIfNull: false) + final String? bannersTag; + + @JsonKey(name: r'categories', required: false, includeIfNull: false) + final List? categories; + + @JsonKey(name: r'featuredResults', required: false, includeIfNull: false) + final String? featuredResults; + // minimum: 0 @JsonKey(name: r'index', required: false, includeIfNull: false) final int? index; + @JsonKey(name: r'marketplace', required: false, includeIfNull: false) + final String? marketplace; + + @JsonKey(name: r'maxPrice', required: false, includeIfNull: false) + final int? maxPrice; + + @JsonKey(name: r'minOccupants', required: false, includeIfNull: false) + final int? minOccupants; + + @JsonKey(name: r'minPrice', required: false, includeIfNull: false) + final int? minPrice; + + @JsonKey(name: r'minimumInterestCount', required: false, includeIfNull: false) + final int? minimumInterestCount; + + @JsonKey( + name: r'minimumRemainingMinutes', + required: false, + includeIfNull: false, + ) + final int? minimumRemainingMinutes; + + @JsonKey(name: r'mode', required: false, includeIfNull: false) + final String? mode; + + @JsonKey(name: r'n', required: false, includeIfNull: false) + final int? n; + @JsonKey(name: r'name', required: true, includeIfNull: false) final String name; + @JsonKey(name: r'nonFeaturedResults', required: false, includeIfNull: false) + final String? nonFeaturedResults; + + @JsonKey(name: r'notag', required: false, includeIfNull: false) + final List? notag; + + @JsonKey(name: r'params', required: false, includeIfNull: false) + final Map? params; + + @JsonKey(name: r'personalizedResults', required: false, includeIfNull: false) + final String? personalizedResults; + /// 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`. @JsonKey(name: r'platform', required: true, includeIfNull: false) final String platform; - @JsonKey(name: r'sortHeading', required: true, includeIfNull: false) - final String sortHeading; + @JsonKey(name: r'region', required: false, includeIfNull: false) + final String? region; - @JsonKey(name: r'sortOrder', required: true, includeIfNull: false) - final String sortOrder; + @JsonKey(name: r'scope', required: false, includeIfNull: false) + final String? scope; - @JsonKey(name: r'sortOwnership', required: true, includeIfNull: false) - final String sortOwnership; + @JsonKey(name: r'shortName', required: false, includeIfNull: false) + final String? shortName; - /// Tags are a way to grant various access, assign restrictions or other kinds of metadata to various to objects such as worlds, users and avatars. System tags starting with `system_` are granted automatically by the system, while admin tags with `admin_` are granted manually. More prefixes such as `language_ ` (to indicate that a player can speak the tagged language), and `author_tag_` (provided by a world author for search and sorting) exist as well. + @JsonKey(name: r'sortHeading', required: false, includeIfNull: false) + final String? sortHeading; + + @JsonKey(name: r'sortOrder', required: false, includeIfNull: false) + final String? sortOrder; + + @JsonKey(name: r'sortOwnership', required: false, includeIfNull: false) + final String? sortOwnership; + + @JsonKey(name: r'style', required: false, includeIfNull: false) + final String? style; + + /// Tag to filter content for this row. Not a `Tag`: that type forbids the empty string, which this field uses for a row that is not tag-filtered. @JsonKey(name: r'tag', required: false, includeIfNull: false) final String? tag; + @JsonKey(name: r'tags', required: false, includeIfNull: false) + final List? tags; + /// Type is not present if it is a world. @JsonKey(name: r'type', required: false, includeIfNull: false) final String? type; + @JsonKey( + name: r'upcomingOffsetMinutes', + required: false, + includeIfNull: false, + ) + final int? upcomingOffsetMinutes; + @override bool operator ==(Object other) => identical(this, other) || other is DynamicContentRow && + other.anyStyle == anyStyle && + other.anyTag == anyTag && + other.avatarSpecific == avatarSpecific && + other.bannersTag == bannersTag && + other.categories == categories && + other.featuredResults == featuredResults && other.index == index && + other.marketplace == marketplace && + other.maxPrice == maxPrice && + other.minOccupants == minOccupants && + other.minPrice == minPrice && + other.minimumInterestCount == minimumInterestCount && + other.minimumRemainingMinutes == minimumRemainingMinutes && + other.mode == mode && + other.n == n && other.name == name && + other.nonFeaturedResults == nonFeaturedResults && + other.notag == notag && + other.params == params && + other.personalizedResults == personalizedResults && other.platform == platform && + other.region == region && + other.scope == scope && + other.shortName == shortName && other.sortHeading == sortHeading && other.sortOrder == sortOrder && other.sortOwnership == sortOwnership && + other.style == style && other.tag == tag && - other.type == type; + other.tags == tags && + other.type == type && + other.upcomingOffsetMinutes == upcomingOffsetMinutes; @override int get hashCode => + (anyStyle == null ? 0 : anyStyle.hashCode) + + (anyTag == null ? 0 : anyTag.hashCode) + + avatarSpecific.hashCode + + bannersTag.hashCode + + categories.hashCode + + featuredResults.hashCode + index.hashCode + + marketplace.hashCode + + maxPrice.hashCode + + minOccupants.hashCode + + minPrice.hashCode + + minimumInterestCount.hashCode + + minimumRemainingMinutes.hashCode + + mode.hashCode + + n.hashCode + name.hashCode + + nonFeaturedResults.hashCode + + (notag == null ? 0 : notag.hashCode) + + params.hashCode + + personalizedResults.hashCode + platform.hashCode + + (region == null ? 0 : region.hashCode) + + scope.hashCode + + (shortName == null ? 0 : shortName.hashCode) + sortHeading.hashCode + sortOrder.hashCode + sortOwnership.hashCode + - tag.hashCode + - type.hashCode; + (style == null ? 0 : style.hashCode) + + (tag == null ? 0 : tag.hashCode) + + (tags == null ? 0 : tags.hashCode) + + type.hashCode + + upcomingOffsetMinutes.hashCode; factory DynamicContentRow.fromJson(Map json) => _$DynamicContentRowFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/dynamic_content_row.g.dart b/vrchat_dart_generated/lib/src/model/dynamic_content_row.g.dart index 8fc5981d..17fa9c97 100644 --- a/vrchat_dart_generated/lib/src/model/dynamic_content_row.g.dart +++ b/vrchat_dart_generated/lib/src/model/dynamic_content_row.g.dart @@ -8,39 +8,113 @@ part of 'dynamic_content_row.dart'; // JsonSerializableGenerator // ************************************************************************** -DynamicContentRow _$DynamicContentRowFromJson(Map json) => - $checkedCreate('DynamicContentRow', json, ($checkedConvert) { - $checkKeys( - json, - requiredKeys: const [ - 'name', - 'platform', - 'sortHeading', - 'sortOrder', - 'sortOwnership', - ], - ); - final val = DynamicContentRow( - index: $checkedConvert('index', (v) => (v as num?)?.toInt()), - name: $checkedConvert('name', (v) => v as String), - platform: $checkedConvert('platform', (v) => v as String), - sortHeading: $checkedConvert('sortHeading', (v) => v as String), - sortOrder: $checkedConvert('sortOrder', (v) => v as String), - sortOwnership: $checkedConvert('sortOwnership', (v) => v as String), - tag: $checkedConvert('tag', (v) => v as String?), - type: $checkedConvert('type', (v) => v as String?), - ); - return val; - }); +DynamicContentRow _$DynamicContentRowFromJson( + Map json, +) => $checkedCreate('DynamicContentRow', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['name', 'platform']); + final val = DynamicContentRow( + anyStyle: $checkedConvert( + 'anyStyle', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + anyTag: $checkedConvert( + 'anyTag', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + avatarSpecific: $checkedConvert('avatarSpecific', (v) => v as bool?), + bannersTag: $checkedConvert('bannersTag', (v) => v as String?), + categories: $checkedConvert( + 'categories', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + featuredResults: $checkedConvert('featuredResults', (v) => v as String?), + index: $checkedConvert('index', (v) => (v as num?)?.toInt()), + marketplace: $checkedConvert('marketplace', (v) => v as String?), + maxPrice: $checkedConvert('maxPrice', (v) => (v as num?)?.toInt()), + minOccupants: $checkedConvert('minOccupants', (v) => (v as num?)?.toInt()), + minPrice: $checkedConvert('minPrice', (v) => (v as num?)?.toInt()), + minimumInterestCount: $checkedConvert( + 'minimumInterestCount', + (v) => (v as num?)?.toInt(), + ), + minimumRemainingMinutes: $checkedConvert( + 'minimumRemainingMinutes', + (v) => (v as num?)?.toInt(), + ), + mode: $checkedConvert('mode', (v) => v as String?), + n: $checkedConvert('n', (v) => (v as num?)?.toInt()), + name: $checkedConvert('name', (v) => v as String), + nonFeaturedResults: $checkedConvert( + 'nonFeaturedResults', + (v) => v as String?, + ), + notag: $checkedConvert( + 'notag', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + params: $checkedConvert( + 'params', + (v) => + (v as Map?)?.map((k, e) => MapEntry(k, e as Object)), + ), + personalizedResults: $checkedConvert( + 'personalizedResults', + (v) => v as String?, + ), + platform: $checkedConvert('platform', (v) => v as String), + region: $checkedConvert('region', (v) => v as String?), + scope: $checkedConvert('scope', (v) => v as String?), + shortName: $checkedConvert('shortName', (v) => v as String?), + sortHeading: $checkedConvert('sortHeading', (v) => v as String?), + sortOrder: $checkedConvert('sortOrder', (v) => v as String?), + sortOwnership: $checkedConvert('sortOwnership', (v) => v as String?), + style: $checkedConvert('style', (v) => v as String?), + tag: $checkedConvert('tag', (v) => v as String?), + tags: $checkedConvert( + 'tags', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + type: $checkedConvert('type', (v) => v as String?), + upcomingOffsetMinutes: $checkedConvert( + 'upcomingOffsetMinutes', + (v) => (v as num?)?.toInt(), + ), + ); + return val; +}); Map _$DynamicContentRowToJson(DynamicContentRow instance) => { + 'anyStyle': ?instance.anyStyle, + 'anyTag': ?instance.anyTag, + 'avatarSpecific': ?instance.avatarSpecific, + 'bannersTag': ?instance.bannersTag, + 'categories': ?instance.categories, + 'featuredResults': ?instance.featuredResults, 'index': ?instance.index, + 'marketplace': ?instance.marketplace, + 'maxPrice': ?instance.maxPrice, + 'minOccupants': ?instance.minOccupants, + 'minPrice': ?instance.minPrice, + 'minimumInterestCount': ?instance.minimumInterestCount, + 'minimumRemainingMinutes': ?instance.minimumRemainingMinutes, + 'mode': ?instance.mode, + 'n': ?instance.n, 'name': instance.name, + 'nonFeaturedResults': ?instance.nonFeaturedResults, + 'notag': ?instance.notag, + 'params': ?instance.params, + 'personalizedResults': ?instance.personalizedResults, 'platform': instance.platform, - 'sortHeading': instance.sortHeading, - 'sortOrder': instance.sortOrder, - 'sortOwnership': instance.sortOwnership, + 'region': ?instance.region, + 'scope': ?instance.scope, + 'shortName': ?instance.shortName, + 'sortHeading': ?instance.sortHeading, + 'sortOrder': ?instance.sortOrder, + 'sortOwnership': ?instance.sortOwnership, + 'style': ?instance.style, 'tag': ?instance.tag, + 'tags': ?instance.tags, 'type': ?instance.type, + 'upcomingOffsetMinutes': ?instance.upcomingOffsetMinutes, }; diff --git a/vrchat_dart_generated/lib/src/model/economy_balances.dart b/vrchat_dart_generated/lib/src/model/economy_balances.dart index a296b09d..6eb14c19 100644 --- a/vrchat_dart_generated/lib/src/model/economy_balances.dart +++ b/vrchat_dart_generated/lib/src/model/economy_balances.dart @@ -19,7 +19,7 @@ class EconomyBalances { EconomyBalances({ required this.balance, - required this.earnings, + this.earnings, required this.standard, }); @@ -27,8 +27,8 @@ class EconomyBalances { @JsonKey(name: r'balance', required: true, includeIfNull: false) final int balance; - @JsonKey(name: r'earnings', required: true, includeIfNull: false) - final int earnings; + @JsonKey(name: r'earnings', required: false, includeIfNull: false) + final int? earnings; @JsonKey(name: r'standard', required: true, includeIfNull: false) final int standard; diff --git a/vrchat_dart_generated/lib/src/model/economy_balances.g.dart b/vrchat_dart_generated/lib/src/model/economy_balances.g.dart index 6890b369..20da3daf 100644 --- a/vrchat_dart_generated/lib/src/model/economy_balances.g.dart +++ b/vrchat_dart_generated/lib/src/model/economy_balances.g.dart @@ -10,10 +10,10 @@ part of 'economy_balances.dart'; EconomyBalances _$EconomyBalancesFromJson(Map json) => $checkedCreate('EconomyBalances', json, ($checkedConvert) { - $checkKeys(json, requiredKeys: const ['balance', 'earnings', 'standard']); + $checkKeys(json, requiredKeys: const ['balance', 'standard']); final val = EconomyBalances( balance: $checkedConvert('balance', (v) => (v as num).toInt()), - earnings: $checkedConvert('earnings', (v) => (v as num).toInt()), + earnings: $checkedConvert('earnings', (v) => (v as num?)?.toInt()), standard: $checkedConvert('standard', (v) => (v as num).toInt()), ); return val; @@ -22,6 +22,6 @@ EconomyBalances _$EconomyBalancesFromJson(Map json) => Map _$EconomyBalancesToJson(EconomyBalances instance) => { 'balance': instance.balance, - 'earnings': instance.earnings, + 'earnings': ?instance.earnings, 'standard': instance.standard, }; diff --git a/vrchat_dart_generated/lib/src/model/favorited_world.dart b/vrchat_dart_generated/lib/src/model/favorited_world.dart index c0b2640b..ae90768c 100644 --- a/vrchat_dart_generated/lib/src/model/favorited_world.dart +++ b/vrchat_dart_generated/lib/src/model/favorited_world.dart @@ -32,6 +32,8 @@ class FavoritedWorld { this.description, + this.disabledPropAbilities, + required this.favoriteGroup, required this.favoriteId, @@ -104,6 +106,13 @@ class FavoritedWorld { @JsonKey(name: r'description', required: false, includeIfNull: false) final String? description; + @JsonKey( + name: r'disabledPropAbilities', + required: false, + includeIfNull: false, + ) + final List? disabledPropAbilities; + @JsonKey(name: r'favoriteGroup', required: true, includeIfNull: false) final String favoriteGroup; @@ -195,6 +204,7 @@ class FavoritedWorld { other.createdAt == createdAt && other.defaultContentSettings == defaultContentSettings && other.description == description && + other.disabledPropAbilities == disabledPropAbilities && other.favoriteGroup == favoriteGroup && other.favoriteId == favoriteId && other.favorites == favorites && @@ -228,6 +238,7 @@ class FavoritedWorld { createdAt.hashCode + defaultContentSettings.hashCode + description.hashCode + + disabledPropAbilities.hashCode + favoriteGroup.hashCode + favoriteId.hashCode + favorites.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/favorited_world.g.dart b/vrchat_dart_generated/lib/src/model/favorited_world.g.dart index b987db13..9f6448e1 100644 --- a/vrchat_dart_generated/lib/src/model/favorited_world.g.dart +++ b/vrchat_dart_generated/lib/src/model/favorited_world.g.dart @@ -10,107 +10,97 @@ part of 'favorited_world.dart'; FavoritedWorld _$FavoritedWorldFromJson( Map json, -) => $checkedCreate( - 'FavoritedWorld', - json, - ($checkedConvert) { - $checkKeys( - json, - requiredKeys: const [ - 'authorName', - 'capacity', - 'favoriteGroup', - 'favoriteId', - 'id', - 'imageUrl', - 'name', - 'occupants', - 'releaseStatus', - 'thumbnailImageUrl', - ], - ); - final val = FavoritedWorld( - authorId: $checkedConvert('authorId', (v) => v as String?), - authorName: $checkedConvert('authorName', (v) => v as String), - capacity: $checkedConvert('capacity', (v) => (v as num).toInt()), - createdAt: $checkedConvert( - 'created_at', - (v) => v == null ? null : DateTime.parse(v as String), - ), - defaultContentSettings: $checkedConvert( - 'defaultContentSettings', - (v) => v == null - ? null - : InstanceContentSettings.fromJson(v as Map), - ), - description: $checkedConvert('description', (v) => v as String?), - favoriteGroup: $checkedConvert('favoriteGroup', (v) => v as String), - favoriteId: $checkedConvert('favoriteId', (v) => v as String), - favorites: $checkedConvert('favorites', (v) => (v as num?)?.toInt() ?? 0), - featured: $checkedConvert('featured', (v) => v as bool? ?? false), - heat: $checkedConvert('heat', (v) => (v as num?)?.toInt() ?? 0), - id: $checkedConvert('id', (v) => v as String), - imageUrl: $checkedConvert('imageUrl', (v) => v as String), - labsPublicationDate: $checkedConvert( - 'labsPublicationDate', - (v) => v as String?, - ), - name: $checkedConvert('name', (v) => v as String), - occupants: $checkedConvert('occupants', (v) => (v as num?)?.toInt() ?? 0), - organization: $checkedConvert( - 'organization', - (v) => v as String? ?? 'vrchat', - ), - popularity: $checkedConvert( - 'popularity', - (v) => (v as num?)?.toInt() ?? 0, - ), - previewYoutubeId: $checkedConvert( - 'previewYoutubeId', - (v) => v as String?, - ), - publicationDate: $checkedConvert('publicationDate', (v) => v as String?), - recommendedCapacity: $checkedConvert( - 'recommendedCapacity', - (v) => (v as num?)?.toInt(), - ), - releaseStatus: $checkedConvert( - 'releaseStatus', - (v) => $enumDecode(_$ReleaseStatusEnumMap, v), - ), - tags: $checkedConvert( - 'tags', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - thumbnailImageUrl: $checkedConvert( - 'thumbnailImageUrl', - (v) => v as String, - ), - udonProducts: $checkedConvert( - 'udonProducts', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - unityPackages: $checkedConvert( - 'unityPackages', - (v) => (v as List?) - ?.map((e) => UnityPackage.fromJson(e as Map)) - .toList(), - ), - updatedAt: $checkedConvert( - 'updated_at', - (v) => v == null ? null : DateTime.parse(v as String), - ), - urlList: $checkedConvert( - 'urlList', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - version: $checkedConvert('version', (v) => (v as num?)?.toInt()), - visits: $checkedConvert('visits', (v) => (v as num?)?.toInt() ?? 0), - ); - return val; - }, - fieldKeyMap: const {'createdAt': 'created_at', 'updatedAt': 'updated_at'}, -); +) => $checkedCreate('FavoritedWorld', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + 'authorName', + 'capacity', + 'favoriteGroup', + 'favoriteId', + 'id', + 'imageUrl', + 'name', + 'occupants', + 'releaseStatus', + 'thumbnailImageUrl', + ], + ); + final val = FavoritedWorld( + authorId: $checkedConvert('authorId', (v) => v as String?), + authorName: $checkedConvert('authorName', (v) => v as String), + capacity: $checkedConvert('capacity', (v) => (v as num).toInt()), + createdAt: $checkedConvert( + 'created_at', + (v) => v == null ? null : DateTime.parse(v as String), + ), + defaultContentSettings: $checkedConvert( + 'defaultContentSettings', + (v) => v == null + ? null + : InstanceContentSettings.fromJson(v as Map), + ), + description: $checkedConvert('description', (v) => v as String?), + disabledPropAbilities: $checkedConvert( + 'disabledPropAbilities', + (v) => (v as List?)?.map((e) => e as Object).toList(), + ), + favoriteGroup: $checkedConvert('favoriteGroup', (v) => v as String), + favoriteId: $checkedConvert('favoriteId', (v) => v as String), + favorites: $checkedConvert('favorites', (v) => (v as num?)?.toInt() ?? 0), + featured: $checkedConvert('featured', (v) => v as bool? ?? false), + heat: $checkedConvert('heat', (v) => (v as num?)?.toInt() ?? 0), + id: $checkedConvert('id', (v) => v as String), + imageUrl: $checkedConvert('imageUrl', (v) => v as String), + labsPublicationDate: $checkedConvert( + 'labsPublicationDate', + (v) => v as String?, + ), + name: $checkedConvert('name', (v) => v as String), + occupants: $checkedConvert('occupants', (v) => (v as num?)?.toInt() ?? 0), + organization: $checkedConvert( + 'organization', + (v) => v as String? ?? 'vrchat', + ), + popularity: $checkedConvert('popularity', (v) => (v as num?)?.toInt() ?? 0), + previewYoutubeId: $checkedConvert('previewYoutubeId', (v) => v as String?), + publicationDate: $checkedConvert('publicationDate', (v) => v as String?), + recommendedCapacity: $checkedConvert( + 'recommendedCapacity', + (v) => (v as num?)?.toInt(), + ), + releaseStatus: $checkedConvert( + 'releaseStatus', + (v) => $enumDecode(_$ReleaseStatusEnumMap, v), + ), + tags: $checkedConvert( + 'tags', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + thumbnailImageUrl: $checkedConvert('thumbnailImageUrl', (v) => v as String), + udonProducts: $checkedConvert( + 'udonProducts', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + unityPackages: $checkedConvert( + 'unityPackages', + (v) => (v as List?) + ?.map((e) => UnityPackage.fromJson(e as Map)) + .toList(), + ), + updatedAt: $checkedConvert( + 'updated_at', + (v) => v == null ? null : DateTime.parse(v as String), + ), + urlList: $checkedConvert( + 'urlList', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + version: $checkedConvert('version', (v) => (v as num?)?.toInt()), + visits: $checkedConvert('visits', (v) => (v as num?)?.toInt() ?? 0), + ); + return val; +}, fieldKeyMap: const {'createdAt': 'created_at', 'updatedAt': 'updated_at'}); Map _$FavoritedWorldToJson(FavoritedWorld instance) => { @@ -120,6 +110,7 @@ Map _$FavoritedWorldToJson(FavoritedWorld instance) => 'created_at': ?instance.createdAt?.toIso8601String(), 'defaultContentSettings': ?instance.defaultContentSettings?.toJson(), 'description': ?instance.description, + 'disabledPropAbilities': ?instance.disabledPropAbilities, 'favoriteGroup': instance.favoriteGroup, 'favoriteId': instance.favoriteId, 'favorites': ?instance.favorites, diff --git a/vrchat_dart_generated/lib/src/model/file_analysis_avatar_stats.dart b/vrchat_dart_generated/lib/src/model/file_analysis_avatar_stats.dart index c2599b5e..3d1a5312 100644 --- a/vrchat_dart_generated/lib/src/model/file_analysis_avatar_stats.dart +++ b/vrchat_dart_generated/lib/src/model/file_analysis_avatar_stats.dart @@ -81,6 +81,8 @@ class FileAnalysisAvatarStats { required this.physicsRigidbodies, + this.raycastCount, + required this.skinnedMeshCount, required this.skinnedMeshIndices, @@ -226,6 +228,9 @@ class FileAnalysisAvatarStats { @JsonKey(name: r'physicsRigidbodies', required: true, includeIfNull: false) final int physicsRigidbodies; + @JsonKey(name: r'raycastCount', required: false, includeIfNull: false) + final int? raycastCount; + @JsonKey(name: r'skinnedMeshCount', required: true, includeIfNull: false) final int skinnedMeshCount; @@ -298,6 +303,7 @@ class FileAnalysisAvatarStats { other.physBoneTransformCount == physBoneTransformCount && other.physicsColliders == physicsColliders && other.physicsRigidbodies == physicsRigidbodies && + other.raycastCount == raycastCount && other.skinnedMeshCount == skinnedMeshCount && other.skinnedMeshIndices == skinnedMeshIndices && other.skinnedMeshPolygons == skinnedMeshPolygons && @@ -345,6 +351,7 @@ class FileAnalysisAvatarStats { physBoneTransformCount.hashCode + physicsColliders.hashCode + physicsRigidbodies.hashCode + + raycastCount.hashCode + skinnedMeshCount.hashCode + skinnedMeshIndices.hashCode + skinnedMeshPolygons.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/file_analysis_avatar_stats.g.dart b/vrchat_dart_generated/lib/src/model/file_analysis_avatar_stats.g.dart index b656d841..15f52289 100644 --- a/vrchat_dart_generated/lib/src/model/file_analysis_avatar_stats.g.dart +++ b/vrchat_dart_generated/lib/src/model/file_analysis_avatar_stats.g.dart @@ -146,6 +146,7 @@ FileAnalysisAvatarStats _$FileAnalysisAvatarStatsFromJson( 'physicsRigidbodies', (v) => (v as num).toInt(), ), + raycastCount: $checkedConvert('raycastCount', (v) => (v as num?)?.toInt()), skinnedMeshCount: $checkedConvert( 'skinnedMeshCount', (v) => (v as num).toInt(), @@ -221,6 +222,7 @@ Map _$FileAnalysisAvatarStatsToJson( 'physBoneTransformCount': instance.physBoneTransformCount, 'physicsColliders': instance.physicsColliders, 'physicsRigidbodies': instance.physicsRigidbodies, + 'raycastCount': ?instance.raycastCount, 'skinnedMeshCount': instance.skinnedMeshCount, 'skinnedMeshIndices': instance.skinnedMeshIndices, 'skinnedMeshPolygons': instance.skinnedMeshPolygons, diff --git a/vrchat_dart_generated/lib/src/model/get_group_posts200_response.dart b/vrchat_dart_generated/lib/src/model/get_group_posts200_response.dart index 3902f27a..7127f15f 100644 --- a/vrchat_dart_generated/lib/src/model/get_group_posts200_response.dart +++ b/vrchat_dart_generated/lib/src/model/get_group_posts200_response.dart @@ -17,18 +17,23 @@ part 'get_group_posts200_response.g.dart'; ) class GetGroupPosts200Response { /// Returns a new [GetGroupPosts200Response] instance. - GetGroupPosts200Response({this.posts}); + GetGroupPosts200Response({this.posts, this.total}); @JsonKey(name: r'posts', required: false, includeIfNull: false) final List? posts; + @JsonKey(name: r'total', required: false, includeIfNull: false) + final int? total; + @override bool operator ==(Object other) => identical(this, other) || - other is GetGroupPosts200Response && other.posts == posts; + other is GetGroupPosts200Response && + other.posts == posts && + other.total == total; @override - int get hashCode => posts.hashCode; + int get hashCode => posts.hashCode + total.hashCode; factory GetGroupPosts200Response.fromJson(Map json) => _$GetGroupPosts200ResponseFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/get_group_posts200_response.g.dart b/vrchat_dart_generated/lib/src/model/get_group_posts200_response.g.dart index 11e67370..68bb36a1 100644 --- a/vrchat_dart_generated/lib/src/model/get_group_posts200_response.g.dart +++ b/vrchat_dart_generated/lib/src/model/get_group_posts200_response.g.dart @@ -18,6 +18,7 @@ GetGroupPosts200Response _$GetGroupPosts200ResponseFromJson( ?.map((e) => GroupPost.fromJson(e as Map)) .toList(), ), + total: $checkedConvert('total', (v) => (v as num?)?.toInt()), ); return val; }); @@ -26,4 +27,5 @@ Map _$GetGroupPosts200ResponseToJson( GetGroupPosts200Response instance, ) => { 'posts': ?instance.posts?.map((e) => e.toJson()).toList(), + 'total': ?instance.total, }; diff --git a/vrchat_dart_generated/lib/src/model/group.dart b/vrchat_dart_generated/lib/src/model/group.dart index 377dffef..e3d8b1de 100644 --- a/vrchat_dart_generated/lib/src/model/group.dart +++ b/vrchat_dart_generated/lib/src/model/group.dart @@ -71,6 +71,10 @@ class Group { this.name, + this.nameplateId, + + this.nameplateUrl, + this.onlineMemberCount, this.ownerId, @@ -174,6 +178,12 @@ class Group { @JsonKey(name: r'name', required: false, includeIfNull: false) final String? name; + @JsonKey(name: r'nameplateId', required: false, includeIfNull: false) + final Object? nameplateId; + + @JsonKey(name: r'nameplateUrl', required: false, includeIfNull: false) + final Object? nameplateUrl; + @JsonKey(name: r'onlineMemberCount', required: false, includeIfNull: false) final int? onlineMemberCount; @@ -233,6 +243,8 @@ class Group { other.membershipStatus == membershipStatus && other.myMember == myMember && other.name == name && + other.nameplateId == nameplateId && + other.nameplateUrl == nameplateUrl && other.onlineMemberCount == onlineMemberCount && other.ownerId == ownerId && other.privacy == privacy && @@ -269,6 +281,8 @@ class Group { membershipStatus.hashCode + myMember.hashCode + name.hashCode + + (nameplateId == null ? 0 : nameplateId.hashCode) + + (nameplateUrl == null ? 0 : nameplateUrl.hashCode) + onlineMemberCount.hashCode + ownerId.hashCode + privacy.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/group.g.dart b/vrchat_dart_generated/lib/src/model/group.g.dart index c308b3e8..860c649a 100644 --- a/vrchat_dart_generated/lib/src/model/group.g.dart +++ b/vrchat_dart_generated/lib/src/model/group.g.dart @@ -81,6 +81,8 @@ Group _$GroupFromJson( v == null ? null : GroupMyMember.fromJson(v as Map), ), name: $checkedConvert('name', (v) => v as String?), + nameplateId: $checkedConvert('nameplateId', (v) => v), + nameplateUrl: $checkedConvert('nameplateUrl', (v) => v), onlineMemberCount: $checkedConvert( 'onlineMemberCount', (v) => (v as num?)?.toInt(), @@ -136,6 +138,8 @@ Map _$GroupToJson(Group instance) => { 'membershipStatus': ?_$GroupMemberStatusEnumMap[instance.membershipStatus], 'myMember': ?instance.myMember?.toJson(), 'name': ?instance.name, + 'nameplateId': ?instance.nameplateId, + 'nameplateUrl': ?instance.nameplateUrl, 'onlineMemberCount': ?instance.onlineMemberCount, 'ownerId': ?instance.ownerId, 'privacy': ?_$GroupPrivacyEnumMap[instance.privacy], diff --git a/vrchat_dart_generated/lib/src/model/group_announcement.dart b/vrchat_dart_generated/lib/src/model/group_announcement.dart index 2eb789e5..e69a71f4 100644 --- a/vrchat_dart_generated/lib/src/model/group_announcement.dart +++ b/vrchat_dart_generated/lib/src/model/group_announcement.dart @@ -21,6 +21,8 @@ class GroupAnnouncement { this.createdAt, + this.editorId, + this.groupId, this.id, @@ -29,11 +31,15 @@ class GroupAnnouncement { this.imageUrl, + this.roleIds, + this.text, this.title, this.updatedAt, + + this.visibility, }); /// 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. @@ -43,6 +49,10 @@ class GroupAnnouncement { @JsonKey(name: r'createdAt', required: false, includeIfNull: false) final DateTime? createdAt; + /// 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. + @JsonKey(name: r'editorId', required: false, includeIfNull: false) + final String? editorId; + @JsonKey(name: r'groupId', required: false, includeIfNull: false) final String? groupId; @@ -55,6 +65,10 @@ class GroupAnnouncement { @JsonKey(name: r'imageUrl', required: false, includeIfNull: false) final String? imageUrl; + /// + @JsonKey(name: r'roleIds', required: false, includeIfNull: false) + final List? roleIds; + @JsonKey(name: r'text', required: false, includeIfNull: false) final String? text; @@ -64,31 +78,40 @@ class GroupAnnouncement { @JsonKey(name: r'updatedAt', required: false, includeIfNull: false) final DateTime? updatedAt; + @JsonKey(name: r'visibility', required: false, includeIfNull: false) + final String? visibility; + @override bool operator ==(Object other) => identical(this, other) || other is GroupAnnouncement && other.authorId == authorId && other.createdAt == createdAt && + other.editorId == editorId && other.groupId == groupId && other.id == id && other.imageId == imageId && other.imageUrl == imageUrl && + other.roleIds == roleIds && other.text == text && other.title == title && - other.updatedAt == updatedAt; + other.updatedAt == updatedAt && + other.visibility == visibility; @override int get hashCode => authorId.hashCode + (createdAt == null ? 0 : createdAt.hashCode) + + editorId.hashCode + groupId.hashCode + id.hashCode + imageId.hashCode + (imageUrl == null ? 0 : imageUrl.hashCode) + + roleIds.hashCode + (text == null ? 0 : text.hashCode) + (title == null ? 0 : title.hashCode) + - (updatedAt == null ? 0 : updatedAt.hashCode); + (updatedAt == null ? 0 : updatedAt.hashCode) + + visibility.hashCode; factory GroupAnnouncement.fromJson(Map json) => _$GroupAnnouncementFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/group_announcement.g.dart b/vrchat_dart_generated/lib/src/model/group_announcement.g.dart index 8b34dcc9..50997712 100644 --- a/vrchat_dart_generated/lib/src/model/group_announcement.g.dart +++ b/vrchat_dart_generated/lib/src/model/group_announcement.g.dart @@ -16,16 +16,22 @@ GroupAnnouncement _$GroupAnnouncementFromJson(Map json) => 'createdAt', (v) => v == null ? null : DateTime.parse(v as String), ), + editorId: $checkedConvert('editorId', (v) => v as String?), groupId: $checkedConvert('groupId', (v) => v as String?), id: $checkedConvert('id', (v) => v as String?), imageId: $checkedConvert('imageId', (v) => v as String?), imageUrl: $checkedConvert('imageUrl', (v) => v as String?), + roleIds: $checkedConvert( + 'roleIds', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), text: $checkedConvert('text', (v) => v as String?), title: $checkedConvert('title', (v) => v as String?), updatedAt: $checkedConvert( 'updatedAt', (v) => v == null ? null : DateTime.parse(v as String), ), + visibility: $checkedConvert('visibility', (v) => v as String?), ); return val; }); @@ -34,11 +40,14 @@ Map _$GroupAnnouncementToJson(GroupAnnouncement instance) => { 'authorId': ?instance.authorId, 'createdAt': ?instance.createdAt?.toIso8601String(), + 'editorId': ?instance.editorId, 'groupId': ?instance.groupId, 'id': ?instance.id, 'imageId': ?instance.imageId, 'imageUrl': ?instance.imageUrl, + 'roleIds': ?instance.roleIds, 'text': ?instance.text, 'title': ?instance.title, 'updatedAt': ?instance.updatedAt?.toIso8601String(), + 'visibility': ?instance.visibility, }; diff --git a/vrchat_dart_generated/lib/src/model/group_permission.dart b/vrchat_dart_generated/lib/src/model/group_permission.dart index 52255577..81cfd747 100644 --- a/vrchat_dart_generated/lib/src/model/group_permission.dart +++ b/vrchat_dart_generated/lib/src/model/group_permission.dart @@ -3,6 +3,7 @@ // // ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/group_permissions.dart'; import 'package:json_annotation/json_annotation.dart'; @@ -19,6 +20,8 @@ class GroupPermission { GroupPermission({ this.allowedToAdd = false, + this.dependsOn, + this.displayName, this.help, @@ -32,6 +35,10 @@ class GroupPermission { @JsonKey(name: r'allowedToAdd', required: false, includeIfNull: false) final bool? allowedToAdd; + /// Other permission names this one is listed against. + @JsonKey(name: r'dependsOn', required: false, includeIfNull: false) + final List? dependsOn; + /// The display name of the permission. @JsonKey(name: r'displayName', required: false, includeIfNull: false) final String? displayName; @@ -57,6 +64,7 @@ class GroupPermission { identical(this, other) || other is GroupPermission && other.allowedToAdd == allowedToAdd && + other.dependsOn == dependsOn && other.displayName == displayName && other.help == help && other.isManagementPermission == isManagementPermission && @@ -65,6 +73,7 @@ class GroupPermission { @override int get hashCode => allowedToAdd.hashCode + + dependsOn.hashCode + displayName.hashCode + help.hashCode + isManagementPermission.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/group_permission.g.dart b/vrchat_dart_generated/lib/src/model/group_permission.g.dart index 19b9a412..3cca912e 100644 --- a/vrchat_dart_generated/lib/src/model/group_permission.g.dart +++ b/vrchat_dart_generated/lib/src/model/group_permission.g.dart @@ -15,6 +15,12 @@ GroupPermission _$GroupPermissionFromJson(Map json) => 'allowedToAdd', (v) => v as bool? ?? false, ), + dependsOn: $checkedConvert( + 'dependsOn', + (v) => (v as List?) + ?.map((e) => $enumDecode(_$GroupPermissionsEnumMap, e)) + .toList(), + ), displayName: $checkedConvert('displayName', (v) => v as String?), help: $checkedConvert('help', (v) => v as String?), isManagementPermission: $checkedConvert( @@ -29,8 +35,48 @@ GroupPermission _$GroupPermissionFromJson(Map json) => Map _$GroupPermissionToJson(GroupPermission instance) => { 'allowedToAdd': ?instance.allowedToAdd, + 'dependsOn': ?instance.dependsOn + ?.map((e) => _$GroupPermissionsEnumMap[e]!) + .toList(), 'displayName': ?instance.displayName, 'help': ?instance.help, 'isManagementPermission': ?instance.isManagementPermission, 'name': ?instance.name, }; + +const _$GroupPermissionsEnumMap = { + GroupPermissions.group_all: '*', + GroupPermissions.group_announcement_manage: 'group-announcement-manage', + GroupPermissions.group_audit_view: 'group-audit-view', + GroupPermissions.group_bans_manage: 'group-bans-manage', + GroupPermissions.group_calendar_manage: 'group-calendar-manage', + GroupPermissions.group_data_manage: 'group-data-manage', + GroupPermissions.group_default_role_manage: 'group-default-role-manage', + GroupPermissions.group_galleries_manage: 'group-galleries-manage', + GroupPermissions.group_instance_age_gated_create: + 'group-instance-age-gated-create', + GroupPermissions.group_instance_announcement_create: + 'group-instance-announcement-create', + GroupPermissions.group_instance_bypass_avatar_performance: + 'group-instance-bypass-avatar-performance', + GroupPermissions.group_instance_calendar_link: 'group-instance-calendar-link', + GroupPermissions.group_instance_join: 'group-instance-join', + GroupPermissions.group_instance_manage: 'group-instance-manage', + GroupPermissions.group_instance_moderate: 'group-instance-moderate', + GroupPermissions.group_instance_open_create: 'group-instance-open-create', + GroupPermissions.group_instance_plus_create: 'group-instance-plus-create', + GroupPermissions.group_instance_plus_portal: 'group-instance-plus-portal', + GroupPermissions.group_instance_plus_portal_unlocked: + 'group-instance-plus-portal-unlocked', + GroupPermissions.group_instance_public_create: 'group-instance-public-create', + GroupPermissions.group_instance_queue_priority: + 'group-instance-queue-priority', + GroupPermissions.group_instance_restricted_create: + 'group-instance-restricted-create', + GroupPermissions.group_invites_manage: 'group-invites-manage', + GroupPermissions.group_members_manage: 'group-members-manage', + GroupPermissions.group_members_remove: 'group-members-remove', + GroupPermissions.group_members_viewall: 'group-members-viewall', + GroupPermissions.group_roles_assign: 'group-roles-assign', + GroupPermissions.group_roles_manage: 'group-roles-manage', +}; diff --git a/vrchat_dart_generated/lib/src/model/group_post.dart b/vrchat_dart_generated/lib/src/model/group_post.dart index 039e1f75..213f3ca4 100644 --- a/vrchat_dart_generated/lib/src/model/group_post.dart +++ b/vrchat_dart_generated/lib/src/model/group_post.dart @@ -32,7 +32,7 @@ class GroupPost { this.imageUrl, - this.roleId, + this.roleIds, this.text, @@ -67,8 +67,8 @@ class GroupPost { final String? imageUrl; /// - @JsonKey(name: r'roleId', required: false, includeIfNull: false) - final List? roleId; + @JsonKey(name: r'roleIds', required: false, includeIfNull: false) + final List? roleIds; @JsonKey(name: r'text', required: false, includeIfNull: false) final String? text; @@ -93,7 +93,7 @@ class GroupPost { other.id == id && other.imageId == imageId && other.imageUrl == imageUrl && - other.roleId == roleId && + other.roleIds == roleIds && other.text == text && other.title == title && other.updatedAt == updatedAt && @@ -108,7 +108,7 @@ class GroupPost { id.hashCode + imageId.hashCode + (imageUrl == null ? 0 : imageUrl.hashCode) + - roleId.hashCode + + roleIds.hashCode + text.hashCode + title.hashCode + updatedAt.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/group_post.g.dart b/vrchat_dart_generated/lib/src/model/group_post.g.dart index b8bd10a2..b25afd81 100644 --- a/vrchat_dart_generated/lib/src/model/group_post.g.dart +++ b/vrchat_dart_generated/lib/src/model/group_post.g.dart @@ -21,8 +21,8 @@ GroupPost _$GroupPostFromJson(Map json) => id: $checkedConvert('id', (v) => v as String?), imageId: $checkedConvert('imageId', (v) => v as String?), imageUrl: $checkedConvert('imageUrl', (v) => v as String?), - roleId: $checkedConvert( - 'roleId', + roleIds: $checkedConvert( + 'roleIds', (v) => (v as List?)?.map((e) => e as String).toList(), ), text: $checkedConvert('text', (v) => v as String?), @@ -47,7 +47,7 @@ Map _$GroupPostToJson(GroupPost instance) => { 'id': ?instance.id, 'imageId': ?instance.imageId, 'imageUrl': ?instance.imageUrl, - 'roleId': ?instance.roleId, + 'roleIds': ?instance.roleIds, 'text': ?instance.text, 'title': ?instance.title, 'updatedAt': ?instance.updatedAt?.toIso8601String(), diff --git a/vrchat_dart_generated/lib/src/model/group_role.dart b/vrchat_dart_generated/lib/src/model/group_role.dart index 3dab19b5..70a2f119 100644 --- a/vrchat_dart_generated/lib/src/model/group_role.dart +++ b/vrchat_dart_generated/lib/src/model/group_role.dart @@ -20,12 +20,16 @@ class GroupRole { GroupRole({ this.createdAt, + this.defaultRole = false, + this.description, this.groupId, this.id, + this.isAddedOnJoin = false, + this.isManagementRole = false, this.isSelfAssignable = false, @@ -46,6 +50,9 @@ class GroupRole { @JsonKey(name: r'createdAt', required: false, includeIfNull: false) final DateTime? createdAt; + @JsonKey(name: r'defaultRole', required: false, includeIfNull: false) + final bool? defaultRole; + @JsonKey(name: r'description', required: false, includeIfNull: false) final String? description; @@ -55,6 +62,9 @@ class GroupRole { @JsonKey(name: r'id', required: false, includeIfNull: false) final String? id; + @JsonKey(name: r'isAddedOnJoin', required: false, includeIfNull: false) + final bool? isAddedOnJoin; + @JsonKey(name: r'isManagementRole', required: false, includeIfNull: false) final bool? isManagementRole; @@ -84,9 +94,11 @@ class GroupRole { identical(this, other) || other is GroupRole && other.createdAt == createdAt && + other.defaultRole == defaultRole && other.description == description && other.groupId == groupId && other.id == id && + other.isAddedOnJoin == isAddedOnJoin && other.isManagementRole == isManagementRole && other.isSelfAssignable == isSelfAssignable && other.name == name && @@ -99,9 +111,11 @@ class GroupRole { @override int get hashCode => createdAt.hashCode + + defaultRole.hashCode + description.hashCode + groupId.hashCode + id.hashCode + + isAddedOnJoin.hashCode + isManagementRole.hashCode + isSelfAssignable.hashCode + name.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/group_role.g.dart b/vrchat_dart_generated/lib/src/model/group_role.g.dart index c9df59d3..3467fe91 100644 --- a/vrchat_dart_generated/lib/src/model/group_role.g.dart +++ b/vrchat_dart_generated/lib/src/model/group_role.g.dart @@ -15,9 +15,14 @@ GroupRole _$GroupRoleFromJson(Map json) => 'createdAt', (v) => v == null ? null : DateTime.parse(v as String), ), + defaultRole: $checkedConvert('defaultRole', (v) => v as bool? ?? false), description: $checkedConvert('description', (v) => v as String?), groupId: $checkedConvert('groupId', (v) => v as String?), id: $checkedConvert('id', (v) => v as String?), + isAddedOnJoin: $checkedConvert( + 'isAddedOnJoin', + (v) => v as bool? ?? false, + ), isManagementRole: $checkedConvert( 'isManagementRole', (v) => v as bool? ?? false, @@ -52,9 +57,11 @@ GroupRole _$GroupRoleFromJson(Map json) => Map _$GroupRoleToJson(GroupRole instance) => { 'createdAt': ?instance.createdAt?.toIso8601String(), + 'defaultRole': ?instance.defaultRole, 'description': ?instance.description, 'groupId': ?instance.groupId, 'id': ?instance.id, + 'isAddedOnJoin': ?instance.isAddedOnJoin, 'isManagementRole': ?instance.isManagementRole, 'isSelfAssignable': ?instance.isSelfAssignable, 'name': ?instance.name, diff --git a/vrchat_dart_generated/lib/src/model/group_role_template_role.dart b/vrchat_dart_generated/lib/src/model/group_role_template_role.dart new file mode 100644 index 00000000..6527efe3 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/group_role_template_role.dart @@ -0,0 +1,67 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/group_permissions.dart'; + +import 'package:json_annotation/json_annotation.dart'; + +part 'group_role_template_role.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class GroupRoleTemplateRole { + /// Returns a new [GroupRoleTemplateRole] instance. + GroupRoleTemplateRole({ + required this.description, + + this.isAddedOnJoin = false, + + required this.name, + + required this.permissions, + }); + + @JsonKey(name: r'description', required: true, includeIfNull: false) + final String description; + + @JsonKey(name: r'isAddedOnJoin', required: false, includeIfNull: false) + final bool? isAddedOnJoin; + + @JsonKey(name: r'name', required: true, includeIfNull: false) + final String name; + + @JsonKey(name: r'permissions', required: true, includeIfNull: false) + final List permissions; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is GroupRoleTemplateRole && + other.description == description && + other.isAddedOnJoin == isAddedOnJoin && + other.name == name && + other.permissions == permissions; + + @override + int get hashCode => + description.hashCode + + isAddedOnJoin.hashCode + + name.hashCode + + permissions.hashCode; + + factory GroupRoleTemplateRole.fromJson(Map json) => + _$GroupRoleTemplateRoleFromJson(json); + + Map toJson() => _$GroupRoleTemplateRoleToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/group_role_template_values_roles.g.dart b/vrchat_dart_generated/lib/src/model/group_role_template_role.g.dart similarity index 78% rename from vrchat_dart_generated/lib/src/model/group_role_template_values_roles.g.dart rename to vrchat_dart_generated/lib/src/model/group_role_template_role.g.dart index a00ebefe..352bd259 100644 --- a/vrchat_dart_generated/lib/src/model/group_role_template_values_roles.g.dart +++ b/vrchat_dart_generated/lib/src/model/group_role_template_role.g.dart @@ -2,38 +2,39 @@ // ignore_for_file: deprecated_member_use_from_same_package -part of 'group_role_template_values_roles.dart'; +part of 'group_role_template_role.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** -GroupRoleTemplateValuesRoles _$GroupRoleTemplateValuesRolesFromJson( +GroupRoleTemplateRole _$GroupRoleTemplateRoleFromJson( Map json, -) => $checkedCreate('GroupRoleTemplateValuesRoles', json, ($checkedConvert) { - final val = GroupRoleTemplateValuesRoles( - name: $checkedConvert('name', (v) => v as String?), - description: $checkedConvert('description', (v) => v as String?), - basePermissions: $checkedConvert( - 'basePermissions', - (v) => (v as List?) - ?.map((e) => $enumDecode(_$GroupPermissionsEnumMap, e)) +) => $checkedCreate('GroupRoleTemplateRole', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['description', 'name', 'permissions']); + final val = GroupRoleTemplateRole( + description: $checkedConvert('description', (v) => v as String), + isAddedOnJoin: $checkedConvert('isAddedOnJoin', (v) => v as bool? ?? false), + name: $checkedConvert('name', (v) => v as String), + permissions: $checkedConvert( + 'permissions', + (v) => (v as List) + .map((e) => $enumDecode(_$GroupPermissionsEnumMap, e)) .toList(), ), - isAddedOnJoin: $checkedConvert('isAddedOnJoin', (v) => v as bool? ?? false), ); return val; }); -Map _$GroupRoleTemplateValuesRolesToJson( - GroupRoleTemplateValuesRoles instance, +Map _$GroupRoleTemplateRoleToJson( + GroupRoleTemplateRole instance, ) => { - 'name': ?instance.name, - 'description': ?instance.description, - 'basePermissions': ?instance.basePermissions - ?.map((e) => _$GroupPermissionsEnumMap[e]!) - .toList(), + 'description': instance.description, 'isAddedOnJoin': ?instance.isAddedOnJoin, + 'name': instance.name, + 'permissions': instance.permissions + .map((e) => _$GroupPermissionsEnumMap[e]!) + .toList(), }; const _$GroupPermissionsEnumMap = { diff --git a/vrchat_dart_generated/lib/src/model/group_role_template_values.dart b/vrchat_dart_generated/lib/src/model/group_role_template_values.dart index a9e6a67b..3e17d202 100644 --- a/vrchat_dart_generated/lib/src/model/group_role_template_values.dart +++ b/vrchat_dart_generated/lib/src/model/group_role_template_values.dart @@ -3,7 +3,7 @@ // // ignore_for_file: unused_element -import 'package:vrchat_dart_generated/src/model/group_role_template_values_roles.dart'; +import 'package:vrchat_dart_generated/src/model/group_role_template_role.dart'; import 'package:vrchat_dart_generated/src/model/group_permissions.dart'; import 'package:json_annotation/json_annotation.dart'; @@ -38,7 +38,7 @@ class GroupRoleTemplateValues { final String name; @JsonKey(name: r'roles', required: true, includeIfNull: false) - final GroupRoleTemplateValuesRoles roles; + final List roles; @override bool operator ==(Object other) => diff --git a/vrchat_dart_generated/lib/src/model/group_role_template_values.g.dart b/vrchat_dart_generated/lib/src/model/group_role_template_values.g.dart index a74b661e..92bc0702 100644 --- a/vrchat_dart_generated/lib/src/model/group_role_template_values.g.dart +++ b/vrchat_dart_generated/lib/src/model/group_role_template_values.g.dart @@ -26,7 +26,9 @@ GroupRoleTemplateValues _$GroupRoleTemplateValuesFromJson( name: $checkedConvert('name', (v) => v as String), roles: $checkedConvert( 'roles', - (v) => GroupRoleTemplateValuesRoles.fromJson(v as Map), + (v) => (v as List) + .map((e) => GroupRoleTemplateRole.fromJson(e as Map)) + .toList(), ), ); return val; @@ -40,7 +42,7 @@ Map _$GroupRoleTemplateValuesToJson( .toList(), 'description': instance.description, 'name': instance.name, - 'roles': instance.roles.toJson(), + 'roles': instance.roles.map((e) => e.toJson()).toList(), }; const _$GroupPermissionsEnumMap = { diff --git a/vrchat_dart_generated/lib/src/model/group_role_template_values_roles.dart b/vrchat_dart_generated/lib/src/model/group_role_template_values_roles.dart deleted file mode 100644 index 1c1aa00a..00000000 --- a/vrchat_dart_generated/lib/src/model/group_role_template_values_roles.dart +++ /dev/null @@ -1,67 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:vrchat_dart_generated/src/model/group_permissions.dart'; - -import 'package:json_annotation/json_annotation.dart'; - -part 'group_role_template_values_roles.g.dart'; - -@JsonSerializable( - checked: true, - createToJson: true, - disallowUnrecognizedKeys: false, - explicitToJson: true, -) -class GroupRoleTemplateValuesRoles { - /// Returns a new [GroupRoleTemplateValuesRoles] instance. - GroupRoleTemplateValuesRoles({ - this.name, - - this.description, - - this.basePermissions, - - this.isAddedOnJoin = false, - }); - - @JsonKey(name: r'name', required: false, includeIfNull: false) - final String? name; - - @JsonKey(name: r'description', required: false, includeIfNull: false) - final String? description; - - @JsonKey(name: r'basePermissions', required: false, includeIfNull: false) - final List? basePermissions; - - @JsonKey(name: r'isAddedOnJoin', required: false, includeIfNull: false) - final bool? isAddedOnJoin; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is GroupRoleTemplateValuesRoles && - other.name == name && - other.description == description && - other.basePermissions == basePermissions && - other.isAddedOnJoin == isAddedOnJoin; - - @override - int get hashCode => - name.hashCode + - description.hashCode + - basePermissions.hashCode + - isAddedOnJoin.hashCode; - - factory GroupRoleTemplateValuesRoles.fromJson(Map json) => - _$GroupRoleTemplateValuesRolesFromJson(json); - - Map toJson() => _$GroupRoleTemplateValuesRolesToJson(this); - - @override - String toString() { - return toJson().toString(); - } -} diff --git a/vrchat_dart_generated/lib/src/model/info_push.dart b/vrchat_dart_generated/lib/src/model/info_push.dart index 4d84e7a6..b9a77510 100644 --- a/vrchat_dart_generated/lib/src/model/info_push.dart +++ b/vrchat_dart_generated/lib/src/model/info_push.dart @@ -3,6 +3,7 @@ // // ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/info_push_experiment.dart'; import 'package:vrchat_dart_generated/src/model/info_push_data.dart'; import 'package:vrchat_dart_generated/src/model/release_status.dart'; @@ -19,12 +20,16 @@ part 'info_push.g.dart'; class InfoPush { /// Returns a new [InfoPush] instance. InfoPush({ + this.clientMinVersion, + required this.createdAt, required this.data, this.endDate, + this.experiment, + required this.hash, required this.id, @@ -33,8 +38,12 @@ class InfoPush { required this.priority, + this.regions, + required this.releaseStatus, + this.requireClientTags, + this.startDate, required this.tags, @@ -42,6 +51,9 @@ class InfoPush { required this.updatedAt, }); + @JsonKey(name: r'clientMinVersion', required: false, includeIfNull: false) + final Object? clientMinVersion; + @JsonKey(name: r'createdAt', required: true, includeIfNull: false) final DateTime createdAt; @@ -51,6 +63,9 @@ class InfoPush { @JsonKey(name: r'endDate', required: false, includeIfNull: false) final DateTime? endDate; + @JsonKey(name: r'experiment', required: false, includeIfNull: false) + final InfoPushExperiment? experiment; + /// Unknown usage, MD5 @JsonKey(name: r'hash', required: true, includeIfNull: false) final String hash; @@ -64,9 +79,15 @@ class InfoPush { @JsonKey(name: r'priority', required: true, includeIfNull: false) final int priority; + @JsonKey(name: r'regions', required: false, includeIfNull: false) + final List? regions; + @JsonKey(name: r'releaseStatus', required: true, includeIfNull: false) final ReleaseStatus releaseStatus; + @JsonKey(name: r'requireClientTags', required: false, includeIfNull: false) + final List? requireClientTags; + /// @JsonKey(name: r'startDate', required: false, includeIfNull: false) final DateTime? startDate; @@ -82,29 +103,37 @@ class InfoPush { bool operator ==(Object other) => identical(this, other) || other is InfoPush && + other.clientMinVersion == clientMinVersion && other.createdAt == createdAt && other.data == data && other.endDate == endDate && + other.experiment == experiment && other.hash == hash && other.id == id && other.isEnabled == isEnabled && other.priority == priority && + other.regions == regions && other.releaseStatus == releaseStatus && + other.requireClientTags == requireClientTags && other.startDate == startDate && other.tags == tags && other.updatedAt == updatedAt; @override int get hashCode => + (clientMinVersion == null ? 0 : clientMinVersion.hashCode) + createdAt.hashCode + data.hashCode + - endDate.hashCode + + (endDate == null ? 0 : endDate.hashCode) + + experiment.hashCode + hash.hashCode + id.hashCode + isEnabled.hashCode + priority.hashCode + + regions.hashCode + releaseStatus.hashCode + - startDate.hashCode + + requireClientTags.hashCode + + (startDate == null ? 0 : startDate.hashCode) + tags.hashCode + updatedAt.hashCode; diff --git a/vrchat_dart_generated/lib/src/model/info_push.g.dart b/vrchat_dart_generated/lib/src/model/info_push.g.dart index d0b2304e..cdd0cbb9 100644 --- a/vrchat_dart_generated/lib/src/model/info_push.g.dart +++ b/vrchat_dart_generated/lib/src/model/info_push.g.dart @@ -26,6 +26,7 @@ InfoPush _$InfoPushFromJson( ], ); final val = InfoPush( + clientMinVersion: $checkedConvert('clientMinVersion', (v) => v), createdAt: $checkedConvert('createdAt', (v) => DateTime.parse(v as String)), data: $checkedConvert( 'data', @@ -35,14 +36,28 @@ InfoPush _$InfoPushFromJson( 'endDate', (v) => v == null ? null : DateTime.parse(v as String), ), + experiment: $checkedConvert( + 'experiment', + (v) => v == null + ? null + : InfoPushExperiment.fromJson(v as Map), + ), hash: $checkedConvert('hash', (v) => v as String), id: $checkedConvert('id', (v) => v as String), isEnabled: $checkedConvert('isEnabled', (v) => v as bool? ?? true), priority: $checkedConvert('priority', (v) => (v as num).toInt()), + regions: $checkedConvert( + 'regions', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), releaseStatus: $checkedConvert( 'releaseStatus', (v) => $enumDecode(_$ReleaseStatusEnumMap, v), ), + requireClientTags: $checkedConvert( + 'requireClientTags', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), startDate: $checkedConvert( 'startDate', (v) => v == null ? null : DateTime.parse(v as String), @@ -57,14 +72,18 @@ InfoPush _$InfoPushFromJson( }); Map _$InfoPushToJson(InfoPush instance) => { + 'clientMinVersion': ?instance.clientMinVersion, 'createdAt': instance.createdAt.toIso8601String(), 'data': instance.data.toJson(), 'endDate': ?instance.endDate?.toIso8601String(), + 'experiment': ?instance.experiment?.toJson(), 'hash': instance.hash, 'id': instance.id, 'isEnabled': instance.isEnabled, 'priority': instance.priority, + 'regions': ?instance.regions, 'releaseStatus': _$ReleaseStatusEnumMap[instance.releaseStatus]!, + 'requireClientTags': ?instance.requireClientTags, 'startDate': ?instance.startDate?.toIso8601String(), 'tags': instance.tags, 'updatedAt': instance.updatedAt.toIso8601String(), diff --git a/vrchat_dart_generated/lib/src/model/info_push_data.dart b/vrchat_dart_generated/lib/src/model/info_push_data.dart index db73d65c..bdf2cb27 100644 --- a/vrchat_dart_generated/lib/src/model/info_push_data.dart +++ b/vrchat_dart_generated/lib/src/model/info_push_data.dart @@ -4,6 +4,10 @@ // ignore_for_file: unused_element import 'package:vrchat_dart_generated/src/model/info_push_data_article.dart'; +import 'package:vrchat_dart_generated/src/model/info_push_data_domain_list_inner.dart'; +import 'package:vrchat_dart_generated/src/model/info_push_ips_query.dart'; +import 'package:vrchat_dart_generated/src/model/info_push_data_search.dart'; +import 'package:vrchat_dart_generated/src/model/info_push_data_category.dart'; import 'package:vrchat_dart_generated/src/model/info_push_data_clickable.dart'; import 'package:vrchat_dart_generated/src/model/dynamic_content_row.dart'; @@ -22,68 +26,220 @@ class InfoPushData { InfoPushData({ this.article, + this.authorName, + + this.avatarId, + + this.bannerImageUrl, + + this.categories, + + this.category, + this.contentList, this.description, + this.disclaimerText, + + this.domainList, + + this.featuredAvatarCategoryId, + + this.finalName, + + this.iconImageUrl, + this.imageUrl, + this.ipsQuery, + + this.isNew, + + this.listingIds, + this.name, this.onPressed, + this.overrideName, + + this.rows, + + this.search, + + this.shortName, + this.template, + this.thumbnailImageUrl, + + this.tooltipDescription, + this.version, + + this.weight, + + this.worldTag, }); @JsonKey(name: r'article', required: false, includeIfNull: false) final InfoPushDataArticle? article; + @JsonKey(name: r'authorName', required: false, includeIfNull: false) + final String? authorName; + + @JsonKey(name: r'avatarId', required: false, includeIfNull: false) + final String? avatarId; + + @JsonKey(name: r'bannerImageUrl', required: false, includeIfNull: false) + final String? bannerImageUrl; + + @JsonKey(name: r'categories', required: false, includeIfNull: false) + final List? categories; + + @JsonKey(name: r'category', required: false, includeIfNull: false) + final String? category; + @JsonKey(name: r'contentList', required: false, includeIfNull: false) final DynamicContentRow? contentList; @JsonKey(name: r'description', required: false, includeIfNull: false) final String? description; + @JsonKey(name: r'disclaimerText', required: false, includeIfNull: false) + final String? disclaimerText; + + @JsonKey(name: r'domainList', required: false, includeIfNull: false) + final List? domainList; + + @JsonKey( + name: r'featuredAvatarCategoryId', + required: false, + includeIfNull: false, + ) + final String? featuredAvatarCategoryId; + + @JsonKey(name: r'finalName', required: false, includeIfNull: false) + final String? finalName; + + @JsonKey(name: r'iconImageUrl', required: false, includeIfNull: false) + final String? iconImageUrl; + @JsonKey(name: r'imageUrl', required: false, includeIfNull: false) final String? imageUrl; + @JsonKey(name: r'ipsQuery', required: false, includeIfNull: false) + final InfoPushIpsQuery? ipsQuery; + + @JsonKey(name: r'isNew', required: false, includeIfNull: false) + final bool? isNew; + + @JsonKey(name: r'listingIds', required: false, includeIfNull: false) + final List? listingIds; + @JsonKey(name: r'name', required: false, includeIfNull: false) final String? name; @JsonKey(name: r'onPressed', required: false, includeIfNull: false) final InfoPushDataClickable? onPressed; + @JsonKey(name: r'overrideName', required: false, includeIfNull: false) + final Object? overrideName; + + /// Number of rows to render. + @JsonKey(name: r'rows', required: false, includeIfNull: false) + final int? rows; + + @JsonKey(name: r'search', required: false, includeIfNull: false) + final InfoPushDataSearch? search; + + @JsonKey(name: r'shortName', required: false, includeIfNull: false) + final String? shortName; + @JsonKey(name: r'template', required: false, includeIfNull: false) final String? template; + @JsonKey(name: r'thumbnailImageUrl', required: false, includeIfNull: false) + final String? thumbnailImageUrl; + + @JsonKey(name: r'tooltipDescription', required: false, includeIfNull: false) + final String? tooltipDescription; + @JsonKey(name: r'version', required: false, includeIfNull: false) final String? version; + @JsonKey(name: r'weight', required: false, includeIfNull: false) + final int? weight; + + @JsonKey(name: r'worldTag', required: false, includeIfNull: false) + final String? worldTag; + @override bool operator ==(Object other) => identical(this, other) || other is InfoPushData && other.article == article && + other.authorName == authorName && + other.avatarId == avatarId && + other.bannerImageUrl == bannerImageUrl && + other.categories == categories && + other.category == category && other.contentList == contentList && other.description == description && + other.disclaimerText == disclaimerText && + other.domainList == domainList && + other.featuredAvatarCategoryId == featuredAvatarCategoryId && + other.finalName == finalName && + other.iconImageUrl == iconImageUrl && other.imageUrl == imageUrl && + other.ipsQuery == ipsQuery && + other.isNew == isNew && + other.listingIds == listingIds && other.name == name && other.onPressed == onPressed && + other.overrideName == overrideName && + other.rows == rows && + other.search == search && + other.shortName == shortName && other.template == template && - other.version == version; + other.thumbnailImageUrl == thumbnailImageUrl && + other.tooltipDescription == tooltipDescription && + other.version == version && + other.weight == weight && + other.worldTag == worldTag; @override int get hashCode => article.hashCode + + authorName.hashCode + + avatarId.hashCode + + bannerImageUrl.hashCode + + categories.hashCode + + category.hashCode + contentList.hashCode + description.hashCode + - imageUrl.hashCode + + disclaimerText.hashCode + + domainList.hashCode + + featuredAvatarCategoryId.hashCode + + finalName.hashCode + + iconImageUrl.hashCode + + (imageUrl == null ? 0 : imageUrl.hashCode) + + ipsQuery.hashCode + + isNew.hashCode + + listingIds.hashCode + name.hashCode + onPressed.hashCode + + (overrideName == null ? 0 : overrideName.hashCode) + + (rows == null ? 0 : rows.hashCode) + + search.hashCode + + (shortName == null ? 0 : shortName.hashCode) + template.hashCode + - version.hashCode; + (thumbnailImageUrl == null ? 0 : thumbnailImageUrl.hashCode) + + tooltipDescription.hashCode + + version.hashCode + + weight.hashCode + + worldTag.hashCode; factory InfoPushData.fromJson(Map json) => _$InfoPushDataFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/info_push_data.g.dart b/vrchat_dart_generated/lib/src/model/info_push_data.g.dart index 5572b0bf..f433d8dc 100644 --- a/vrchat_dart_generated/lib/src/model/info_push_data.g.dart +++ b/vrchat_dart_generated/lib/src/model/info_push_data.g.dart @@ -8,44 +8,122 @@ part of 'info_push_data.dart'; // JsonSerializableGenerator // ************************************************************************** -InfoPushData _$InfoPushDataFromJson(Map json) => - $checkedCreate('InfoPushData', json, ($checkedConvert) { - final val = InfoPushData( - article: $checkedConvert( - 'article', - (v) => v == null - ? null - : InfoPushDataArticle.fromJson(v as Map), - ), - contentList: $checkedConvert( - 'contentList', - (v) => v == null - ? null - : DynamicContentRow.fromJson(v as Map), - ), - description: $checkedConvert('description', (v) => v as String?), - imageUrl: $checkedConvert('imageUrl', (v) => v as String?), - name: $checkedConvert('name', (v) => v as String?), - onPressed: $checkedConvert( - 'onPressed', - (v) => v == null - ? null - : InfoPushDataClickable.fromJson(v as Map), - ), - template: $checkedConvert('template', (v) => v as String?), - version: $checkedConvert('version', (v) => v as String?), - ); - return val; - }); +InfoPushData _$InfoPushDataFromJson( + Map json, +) => $checkedCreate('InfoPushData', json, ($checkedConvert) { + final val = InfoPushData( + article: $checkedConvert( + 'article', + (v) => v == null + ? null + : InfoPushDataArticle.fromJson(v as Map), + ), + authorName: $checkedConvert('authorName', (v) => v as String?), + avatarId: $checkedConvert('avatarId', (v) => v as String?), + bannerImageUrl: $checkedConvert('bannerImageUrl', (v) => v as String?), + categories: $checkedConvert( + 'categories', + (v) => (v as List?) + ?.map((e) => InfoPushDataCategory.fromJson(e as Map)) + .toList(), + ), + category: $checkedConvert('category', (v) => v as String?), + contentList: $checkedConvert( + 'contentList', + (v) => v == null + ? null + : DynamicContentRow.fromJson(v as Map), + ), + description: $checkedConvert('description', (v) => v as String?), + disclaimerText: $checkedConvert('disclaimerText', (v) => v as String?), + domainList: $checkedConvert( + 'domainList', + (v) => (v as List?) + ?.map( + (e) => + InfoPushDataDomainListInner.fromJson(e as Map), + ) + .toList(), + ), + featuredAvatarCategoryId: $checkedConvert( + 'featuredAvatarCategoryId', + (v) => v as String?, + ), + finalName: $checkedConvert('finalName', (v) => v as String?), + iconImageUrl: $checkedConvert('iconImageUrl', (v) => v as String?), + imageUrl: $checkedConvert('imageUrl', (v) => v as String?), + ipsQuery: $checkedConvert( + 'ipsQuery', + (v) => v == null + ? null + : InfoPushIpsQuery.fromJson(v as Map), + ), + isNew: $checkedConvert('isNew', (v) => v as bool?), + listingIds: $checkedConvert( + 'listingIds', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + name: $checkedConvert('name', (v) => v as String?), + onPressed: $checkedConvert( + 'onPressed', + (v) => v == null + ? null + : InfoPushDataClickable.fromJson(v as Map), + ), + overrideName: $checkedConvert('overrideName', (v) => v), + rows: $checkedConvert('rows', (v) => (v as num?)?.toInt()), + search: $checkedConvert( + 'search', + (v) => v == null + ? null + : InfoPushDataSearch.fromJson(v as Map), + ), + shortName: $checkedConvert('shortName', (v) => v as String?), + template: $checkedConvert('template', (v) => v as String?), + thumbnailImageUrl: $checkedConvert( + 'thumbnailImageUrl', + (v) => v as String?, + ), + tooltipDescription: $checkedConvert( + 'tooltipDescription', + (v) => v as String?, + ), + version: $checkedConvert('version', (v) => v as String?), + weight: $checkedConvert('weight', (v) => (v as num?)?.toInt()), + worldTag: $checkedConvert('worldTag', (v) => v as String?), + ); + return val; +}); Map _$InfoPushDataToJson(InfoPushData instance) => { 'article': ?instance.article?.toJson(), + 'authorName': ?instance.authorName, + 'avatarId': ?instance.avatarId, + 'bannerImageUrl': ?instance.bannerImageUrl, + 'categories': ?instance.categories?.map((e) => e.toJson()).toList(), + 'category': ?instance.category, 'contentList': ?instance.contentList?.toJson(), 'description': ?instance.description, + 'disclaimerText': ?instance.disclaimerText, + 'domainList': ?instance.domainList?.map((e) => e.toJson()).toList(), + 'featuredAvatarCategoryId': ?instance.featuredAvatarCategoryId, + 'finalName': ?instance.finalName, + 'iconImageUrl': ?instance.iconImageUrl, 'imageUrl': ?instance.imageUrl, + 'ipsQuery': ?instance.ipsQuery?.toJson(), + 'isNew': ?instance.isNew, + 'listingIds': ?instance.listingIds, 'name': ?instance.name, 'onPressed': ?instance.onPressed?.toJson(), + 'overrideName': ?instance.overrideName, + 'rows': ?instance.rows, + 'search': ?instance.search?.toJson(), + 'shortName': ?instance.shortName, 'template': ?instance.template, + 'thumbnailImageUrl': ?instance.thumbnailImageUrl, + 'tooltipDescription': ?instance.tooltipDescription, 'version': ?instance.version, + 'weight': ?instance.weight, + 'worldTag': ?instance.worldTag, }; diff --git a/vrchat_dart_generated/lib/src/model/info_push_data_article.dart b/vrchat_dart_generated/lib/src/model/info_push_data_article.dart index e7ad7c48..dd17e8f1 100644 --- a/vrchat_dart_generated/lib/src/model/info_push_data_article.dart +++ b/vrchat_dart_generated/lib/src/model/info_push_data_article.dart @@ -3,6 +3,7 @@ // // ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/info_push_embedded_link.dart'; import 'package:vrchat_dart_generated/src/model/info_push_data_article_content.dart'; import 'package:json_annotation/json_annotation.dart'; @@ -17,18 +18,50 @@ part 'info_push_data_article.g.dart'; ) class InfoPushDataArticle { /// Returns a new [InfoPushDataArticle] instance. - InfoPushDataArticle({this.content}); + InfoPushDataArticle({ + this.content, + + this.embeddedLinkData, + + this.jumpLinks, + + this.moreInfoLinks, + + this.sectionLinks, + }); @JsonKey(name: r'content', required: false, includeIfNull: false) - final InfoPushDataArticleContent? content; + final List? content; + + @JsonKey(name: r'embeddedLinkData', required: false, includeIfNull: false) + final List? embeddedLinkData; + + @JsonKey(name: r'jumpLinks', required: false, includeIfNull: false) + final List? jumpLinks; + + @JsonKey(name: r'moreInfoLinks', required: false, includeIfNull: false) + final List? moreInfoLinks; + + @JsonKey(name: r'sectionLinks', required: false, includeIfNull: false) + final List? sectionLinks; @override bool operator ==(Object other) => identical(this, other) || - other is InfoPushDataArticle && other.content == content; + other is InfoPushDataArticle && + other.content == content && + other.embeddedLinkData == embeddedLinkData && + other.jumpLinks == jumpLinks && + other.moreInfoLinks == moreInfoLinks && + other.sectionLinks == sectionLinks; @override - int get hashCode => content.hashCode; + int get hashCode => + content.hashCode + + embeddedLinkData.hashCode + + jumpLinks.hashCode + + moreInfoLinks.hashCode + + sectionLinks.hashCode; factory InfoPushDataArticle.fromJson(Map json) => _$InfoPushDataArticleFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/info_push_data_article.g.dart b/vrchat_dart_generated/lib/src/model/info_push_data_article.g.dart index ff575f90..f97a40f6 100644 --- a/vrchat_dart_generated/lib/src/model/info_push_data_article.g.dart +++ b/vrchat_dart_generated/lib/src/model/info_push_data_article.g.dart @@ -8,19 +8,51 @@ part of 'info_push_data_article.dart'; // JsonSerializableGenerator // ************************************************************************** -InfoPushDataArticle _$InfoPushDataArticleFromJson(Map json) => - $checkedCreate('InfoPushDataArticle', json, ($checkedConvert) { - final val = InfoPushDataArticle( - content: $checkedConvert( - 'content', - (v) => v == null - ? null - : InfoPushDataArticleContent.fromJson(v as Map), - ), - ); - return val; - }); +InfoPushDataArticle _$InfoPushDataArticleFromJson( + Map json, +) => $checkedCreate('InfoPushDataArticle', json, ($checkedConvert) { + final val = InfoPushDataArticle( + content: $checkedConvert( + 'content', + (v) => (v as List?) + ?.map( + (e) => + InfoPushDataArticleContent.fromJson(e as Map), + ) + .toList(), + ), + embeddedLinkData: $checkedConvert( + 'embeddedLinkData', + (v) => (v as List?) + ?.map((e) => InfoPushEmbeddedLink.fromJson(e as Map)) + .toList(), + ), + jumpLinks: $checkedConvert( + 'jumpLinks', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + moreInfoLinks: $checkedConvert( + 'moreInfoLinks', + (v) => (v as List?) + ?.map((e) => InfoPushEmbeddedLink.fromJson(e as Map)) + .toList(), + ), + sectionLinks: $checkedConvert( + 'sectionLinks', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + ); + return val; +}); Map _$InfoPushDataArticleToJson( InfoPushDataArticle instance, -) => {'content': ?instance.content?.toJson()}; +) => { + 'content': ?instance.content?.map((e) => e.toJson()).toList(), + 'embeddedLinkData': ?instance.embeddedLinkData + ?.map((e) => e.toJson()) + .toList(), + 'jumpLinks': ?instance.jumpLinks, + 'moreInfoLinks': ?instance.moreInfoLinks?.map((e) => e.toJson()).toList(), + 'sectionLinks': ?instance.sectionLinks, +}; diff --git a/vrchat_dart_generated/lib/src/model/info_push_data_article_content.dart b/vrchat_dart_generated/lib/src/model/info_push_data_article_content.dart index f0f9cec3..015e3a00 100644 --- a/vrchat_dart_generated/lib/src/model/info_push_data_article_content.dart +++ b/vrchat_dart_generated/lib/src/model/info_push_data_article_content.dart @@ -17,7 +17,22 @@ part 'info_push_data_article_content.g.dart'; ) class InfoPushDataArticleContent { /// Returns a new [InfoPushDataArticleContent] instance. - InfoPushDataArticleContent({this.imageUrl, this.onPressed, this.text}); + InfoPushDataArticleContent({ + this.id, + + this.imageUrl, + + this.onPressed, + + this.text, + + this.title, + + this.videoUrl, + }); + + @JsonKey(name: r'id', required: false, includeIfNull: false) + final String? id; @JsonKey(name: r'imageUrl', required: false, includeIfNull: false) final String? imageUrl; @@ -28,16 +43,31 @@ class InfoPushDataArticleContent { @JsonKey(name: r'text', required: false, includeIfNull: false) final String? text; + @JsonKey(name: r'title', required: false, includeIfNull: false) + final String? title; + + @JsonKey(name: r'videoUrl', required: false, includeIfNull: false) + final String? videoUrl; + @override bool operator ==(Object other) => identical(this, other) || other is InfoPushDataArticleContent && + other.id == id && other.imageUrl == imageUrl && other.onPressed == onPressed && - other.text == text; + other.text == text && + other.title == title && + other.videoUrl == videoUrl; @override - int get hashCode => imageUrl.hashCode + onPressed.hashCode + text.hashCode; + int get hashCode => + id.hashCode + + imageUrl.hashCode + + onPressed.hashCode + + text.hashCode + + title.hashCode + + videoUrl.hashCode; factory InfoPushDataArticleContent.fromJson(Map json) => _$InfoPushDataArticleContentFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/info_push_data_article_content.g.dart b/vrchat_dart_generated/lib/src/model/info_push_data_article_content.g.dart index 2ad5ae17..21a1dc26 100644 --- a/vrchat_dart_generated/lib/src/model/info_push_data_article_content.g.dart +++ b/vrchat_dart_generated/lib/src/model/info_push_data_article_content.g.dart @@ -12,6 +12,7 @@ InfoPushDataArticleContent _$InfoPushDataArticleContentFromJson( Map json, ) => $checkedCreate('InfoPushDataArticleContent', json, ($checkedConvert) { final val = InfoPushDataArticleContent( + id: $checkedConvert('id', (v) => v as String?), imageUrl: $checkedConvert('imageUrl', (v) => v as String?), onPressed: $checkedConvert( 'onPressed', @@ -20,6 +21,8 @@ InfoPushDataArticleContent _$InfoPushDataArticleContentFromJson( : InfoPushDataClickable.fromJson(v as Map), ), text: $checkedConvert('text', (v) => v as String?), + title: $checkedConvert('title', (v) => v as String?), + videoUrl: $checkedConvert('videoUrl', (v) => v as String?), ); return val; }); @@ -27,7 +30,10 @@ InfoPushDataArticleContent _$InfoPushDataArticleContentFromJson( Map _$InfoPushDataArticleContentToJson( InfoPushDataArticleContent instance, ) => { + 'id': ?instance.id, 'imageUrl': ?instance.imageUrl, 'onPressed': ?instance.onPressed?.toJson(), 'text': ?instance.text, + 'title': ?instance.title, + 'videoUrl': ?instance.videoUrl, }; diff --git a/vrchat_dart_generated/lib/src/model/info_push_data_category.dart b/vrchat_dart_generated/lib/src/model/info_push_data_category.dart new file mode 100644 index 00000000..ebd07d5a --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/info_push_data_category.dart @@ -0,0 +1,74 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/info_push_ips_query.dart'; + +import 'package:json_annotation/json_annotation.dart'; + +part 'info_push_data_category.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class InfoPushDataCategory { + /// Returns a new [InfoPushDataCategory] instance. + InfoPushDataCategory({ + this.ids, + + this.ipsQuery, + + this.maxCells, + + this.name, + + this.type, + }); + + @JsonKey(name: r'ids', required: false, includeIfNull: false) + final List? ids; + + @JsonKey(name: r'ipsQuery', required: false, includeIfNull: false) + final InfoPushIpsQuery? ipsQuery; + + @JsonKey(name: r'maxCells', required: false, includeIfNull: false) + final int? maxCells; + + @JsonKey(name: r'name', required: false, includeIfNull: false) + final String? name; + + @JsonKey(name: r'type', required: false, includeIfNull: false) + final String? type; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is InfoPushDataCategory && + other.ids == ids && + other.ipsQuery == ipsQuery && + other.maxCells == maxCells && + other.name == name && + other.type == type; + + @override + int get hashCode => + ids.hashCode + + ipsQuery.hashCode + + maxCells.hashCode + + name.hashCode + + type.hashCode; + + factory InfoPushDataCategory.fromJson(Map json) => + _$InfoPushDataCategoryFromJson(json); + + Map toJson() => _$InfoPushDataCategoryToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/info_push_data_category.g.dart b/vrchat_dart_generated/lib/src/model/info_push_data_category.g.dart new file mode 100644 index 00000000..d4d87813 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/info_push_data_category.g.dart @@ -0,0 +1,40 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'info_push_data_category.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +InfoPushDataCategory _$InfoPushDataCategoryFromJson( + Map json, +) => $checkedCreate('InfoPushDataCategory', json, ($checkedConvert) { + final val = InfoPushDataCategory( + ids: $checkedConvert( + 'ids', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + ipsQuery: $checkedConvert( + 'ipsQuery', + (v) => v == null + ? null + : InfoPushIpsQuery.fromJson(v as Map), + ), + maxCells: $checkedConvert('maxCells', (v) => (v as num?)?.toInt()), + name: $checkedConvert('name', (v) => v as String?), + type: $checkedConvert('type', (v) => v as String?), + ); + return val; +}); + +Map _$InfoPushDataCategoryToJson( + InfoPushDataCategory instance, +) => { + 'ids': ?instance.ids, + 'ipsQuery': ?instance.ipsQuery?.toJson(), + 'maxCells': ?instance.maxCells, + 'name': ?instance.name, + 'type': ?instance.type, +}; diff --git a/vrchat_dart_generated/lib/src/model/info_push_data_clickable.dart b/vrchat_dart_generated/lib/src/model/info_push_data_clickable.dart index a84d3b76..19976f5a 100644 --- a/vrchat_dart_generated/lib/src/model/info_push_data_clickable.dart +++ b/vrchat_dart_generated/lib/src/model/info_push_data_clickable.dart @@ -49,12 +49,24 @@ class InfoPushDataClickable { enum InfoPushDataClickableCommandEnum { @JsonValue(r'CannedWorldSearch') cannedWorldSearch(r'CannedWorldSearch'), + @JsonValue(r'OpenAccountUpgrade') + openAccountUpgrade(r'OpenAccountUpgrade'), + @JsonValue(r'OpenAvatarsMenu') + openAvatarsMenu(r'OpenAvatarsMenu'), + @JsonValue(r'OpenHelpArticle') + openHelpArticle(r'OpenHelpArticle'), + @JsonValue(r'OpenListingDetails') + openListingDetails(r'OpenListingDetails'), @JsonValue(r'OpenSafetyMenu') openSafetyMenu(r'OpenSafetyMenu'), @JsonValue(r'OpenURL') openURL(r'OpenURL'), @JsonValue(r'OpenVRCPlusMenu') - openVRCPlusMenu(r'OpenVRCPlusMenu'); + openVRCPlusMenu(r'OpenVRCPlusMenu'), + @JsonValue(r'OpenVRChatStore') + openVRChatStore(r'OpenVRChatStore'), + @JsonValue(r'OpenWorldDetails') + openWorldDetails(r'OpenWorldDetails'); const InfoPushDataClickableCommandEnum(this.value); diff --git a/vrchat_dart_generated/lib/src/model/info_push_data_clickable.g.dart b/vrchat_dart_generated/lib/src/model/info_push_data_clickable.g.dart index 042dac3e..5db2c780 100644 --- a/vrchat_dart_generated/lib/src/model/info_push_data_clickable.g.dart +++ b/vrchat_dart_generated/lib/src/model/info_push_data_clickable.g.dart @@ -34,7 +34,13 @@ Map _$InfoPushDataClickableToJson( const _$InfoPushDataClickableCommandEnumEnumMap = { InfoPushDataClickableCommandEnum.cannedWorldSearch: 'CannedWorldSearch', + InfoPushDataClickableCommandEnum.openAccountUpgrade: 'OpenAccountUpgrade', + InfoPushDataClickableCommandEnum.openAvatarsMenu: 'OpenAvatarsMenu', + InfoPushDataClickableCommandEnum.openHelpArticle: 'OpenHelpArticle', + InfoPushDataClickableCommandEnum.openListingDetails: 'OpenListingDetails', InfoPushDataClickableCommandEnum.openSafetyMenu: 'OpenSafetyMenu', InfoPushDataClickableCommandEnum.openURL: 'OpenURL', InfoPushDataClickableCommandEnum.openVRCPlusMenu: 'OpenVRCPlusMenu', + InfoPushDataClickableCommandEnum.openVRChatStore: 'OpenVRChatStore', + InfoPushDataClickableCommandEnum.openWorldDetails: 'OpenWorldDetails', }; diff --git a/vrchat_dart_generated/lib/src/model/info_push_data_domain_list_inner.dart b/vrchat_dart_generated/lib/src/model/info_push_data_domain_list_inner.dart new file mode 100644 index 00000000..6c269aa4 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/info_push_data_domain_list_inner.dart @@ -0,0 +1,41 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'info_push_data_domain_list_inner.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class InfoPushDataDomainListInner { + /// Returns a new [InfoPushDataDomainListInner] instance. + InfoPushDataDomainListInner({this.domain}); + + @JsonKey(name: r'domain', required: false, includeIfNull: false) + final String? domain; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is InfoPushDataDomainListInner && other.domain == domain; + + @override + int get hashCode => domain.hashCode; + + factory InfoPushDataDomainListInner.fromJson(Map json) => + _$InfoPushDataDomainListInnerFromJson(json); + + Map toJson() => _$InfoPushDataDomainListInnerToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/info_push_data_domain_list_inner.g.dart b/vrchat_dart_generated/lib/src/model/info_push_data_domain_list_inner.g.dart new file mode 100644 index 00000000..bb899c3f --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/info_push_data_domain_list_inner.g.dart @@ -0,0 +1,22 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'info_push_data_domain_list_inner.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +InfoPushDataDomainListInner _$InfoPushDataDomainListInnerFromJson( + Map json, +) => $checkedCreate('InfoPushDataDomainListInner', json, ($checkedConvert) { + final val = InfoPushDataDomainListInner( + domain: $checkedConvert('domain', (v) => v as String?), + ); + return val; +}); + +Map _$InfoPushDataDomainListInnerToJson( + InfoPushDataDomainListInner instance, +) => {'domain': ?instance.domain}; diff --git a/vrchat_dart_generated/lib/src/model/info_push_data_search.dart b/vrchat_dart_generated/lib/src/model/info_push_data_search.dart new file mode 100644 index 00000000..09b0dc41 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/info_push_data_search.dart @@ -0,0 +1,73 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'info_push_data_search.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class InfoPushDataSearch { + /// Returns a new [InfoPushDataSearch] instance. + InfoPushDataSearch({ + this.searchContent, + + this.searchInFields, + + this.searchQuery, + + this.searchTags, + + this.sortBy, + }); + + @JsonKey(name: r'searchContent', required: false, includeIfNull: false) + final String? searchContent; + + @JsonKey(name: r'searchInFields', required: false, includeIfNull: false) + final String? searchInFields; + + @JsonKey(name: r'searchQuery', required: false, includeIfNull: false) + final String? searchQuery; + + @JsonKey(name: r'searchTags', required: false, includeIfNull: false) + final String? searchTags; + + @JsonKey(name: r'sortBy', required: false, includeIfNull: false) + final String? sortBy; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is InfoPushDataSearch && + other.searchContent == searchContent && + other.searchInFields == searchInFields && + other.searchQuery == searchQuery && + other.searchTags == searchTags && + other.sortBy == sortBy; + + @override + int get hashCode => + searchContent.hashCode + + searchInFields.hashCode + + searchQuery.hashCode + + searchTags.hashCode + + sortBy.hashCode; + + factory InfoPushDataSearch.fromJson(Map json) => + _$InfoPushDataSearchFromJson(json); + + Map toJson() => _$InfoPushDataSearchToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/info_push_data_search.g.dart b/vrchat_dart_generated/lib/src/model/info_push_data_search.g.dart new file mode 100644 index 00000000..e1a209bf --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/info_push_data_search.g.dart @@ -0,0 +1,30 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'info_push_data_search.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +InfoPushDataSearch _$InfoPushDataSearchFromJson(Map json) => + $checkedCreate('InfoPushDataSearch', json, ($checkedConvert) { + final val = InfoPushDataSearch( + searchContent: $checkedConvert('searchContent', (v) => v as String?), + searchInFields: $checkedConvert('searchInFields', (v) => v as String?), + searchQuery: $checkedConvert('searchQuery', (v) => v as String?), + searchTags: $checkedConvert('searchTags', (v) => v as String?), + sortBy: $checkedConvert('sortBy', (v) => v as String?), + ); + return val; + }); + +Map _$InfoPushDataSearchToJson(InfoPushDataSearch instance) => + { + 'searchContent': ?instance.searchContent, + 'searchInFields': ?instance.searchInFields, + 'searchQuery': ?instance.searchQuery, + 'searchTags': ?instance.searchTags, + 'sortBy': ?instance.sortBy, + }; diff --git a/vrchat_dart_generated/lib/src/model/info_push_embedded_link.dart b/vrchat_dart_generated/lib/src/model/info_push_embedded_link.dart new file mode 100644 index 00000000..da436383 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/info_push_embedded_link.dart @@ -0,0 +1,55 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'info_push_embedded_link.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class InfoPushEmbeddedLink { + /// Returns a new [InfoPushEmbeddedLink] instance. + InfoPushEmbeddedLink({this.parameters, this.command, this.id, this.name}); + + @JsonKey(name: r'parameters', required: false, includeIfNull: false) + final List? parameters; + + @JsonKey(name: r'command', required: false, includeIfNull: false) + final String? command; + + @JsonKey(name: r'id', required: false, includeIfNull: false) + final String? id; + + @JsonKey(name: r'name', required: false, includeIfNull: false) + final String? name; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is InfoPushEmbeddedLink && + other.parameters == parameters && + other.command == command && + other.id == id && + other.name == name; + + @override + int get hashCode => + parameters.hashCode + command.hashCode + id.hashCode + name.hashCode; + + factory InfoPushEmbeddedLink.fromJson(Map json) => + _$InfoPushEmbeddedLinkFromJson(json); + + Map toJson() => _$InfoPushEmbeddedLinkToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/info_push_embedded_link.g.dart b/vrchat_dart_generated/lib/src/model/info_push_embedded_link.g.dart new file mode 100644 index 00000000..f6182dcc --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/info_push_embedded_link.g.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'info_push_embedded_link.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +InfoPushEmbeddedLink _$InfoPushEmbeddedLinkFromJson( + Map json, +) => $checkedCreate('InfoPushEmbeddedLink', json, ($checkedConvert) { + final val = InfoPushEmbeddedLink( + parameters: $checkedConvert( + 'parameters', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + command: $checkedConvert('command', (v) => v as String?), + id: $checkedConvert('id', (v) => v as String?), + name: $checkedConvert('name', (v) => v as String?), + ); + return val; +}); + +Map _$InfoPushEmbeddedLinkToJson( + InfoPushEmbeddedLink instance, +) => { + 'parameters': ?instance.parameters, + 'command': ?instance.command, + 'id': ?instance.id, + 'name': ?instance.name, +}; diff --git a/vrchat_dart_generated/lib/src/model/info_push_experiment.dart b/vrchat_dart_generated/lib/src/model/info_push_experiment.dart new file mode 100644 index 00000000..7feb0bfd --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/info_push_experiment.dart @@ -0,0 +1,46 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'info_push_experiment.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class InfoPushExperiment { + /// Returns a new [InfoPushExperiment] instance. + InfoPushExperiment({this.key, this.variant}); + + @JsonKey(name: r'key', required: false, includeIfNull: false) + final String? key; + + @JsonKey(name: r'variant', required: false, includeIfNull: false) + final String? variant; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is InfoPushExperiment && + other.key == key && + other.variant == variant; + + @override + int get hashCode => key.hashCode + variant.hashCode; + + factory InfoPushExperiment.fromJson(Map json) => + _$InfoPushExperimentFromJson(json); + + Map toJson() => _$InfoPushExperimentToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/info_push_experiment.g.dart b/vrchat_dart_generated/lib/src/model/info_push_experiment.g.dart new file mode 100644 index 00000000..c9146fcf --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/info_push_experiment.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'info_push_experiment.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +InfoPushExperiment _$InfoPushExperimentFromJson(Map json) => + $checkedCreate('InfoPushExperiment', json, ($checkedConvert) { + final val = InfoPushExperiment( + key: $checkedConvert('key', (v) => v as String?), + variant: $checkedConvert('variant', (v) => v as String?), + ); + return val; + }); + +Map _$InfoPushExperimentToJson(InfoPushExperiment instance) => + {'key': ?instance.key, 'variant': ?instance.variant}; diff --git a/vrchat_dart_generated/lib/src/model/info_push_ips_query.dart b/vrchat_dart_generated/lib/src/model/info_push_ips_query.dart new file mode 100644 index 00000000..fb197439 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/info_push_ips_query.dart @@ -0,0 +1,46 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'info_push_ips_query.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class InfoPushIpsQuery { + /// Returns a new [InfoPushIpsQuery] instance. + InfoPushIpsQuery({this.include, this.require}); + + @JsonKey(name: r'include', required: false, includeIfNull: false) + final String? include; + + @JsonKey(name: r'require', required: false, includeIfNull: false) + final String? require; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is InfoPushIpsQuery && + other.include == include && + other.require == require; + + @override + int get hashCode => include.hashCode + require.hashCode; + + factory InfoPushIpsQuery.fromJson(Map json) => + _$InfoPushIpsQueryFromJson(json); + + Map toJson() => _$InfoPushIpsQueryToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/info_push_ips_query.g.dart b/vrchat_dart_generated/lib/src/model/info_push_ips_query.g.dart new file mode 100644 index 00000000..2209b7c9 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/info_push_ips_query.g.dart @@ -0,0 +1,24 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'info_push_ips_query.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +InfoPushIpsQuery _$InfoPushIpsQueryFromJson(Map json) => + $checkedCreate('InfoPushIpsQuery', json, ($checkedConvert) { + final val = InfoPushIpsQuery( + include: $checkedConvert('include', (v) => v as String?), + require: $checkedConvert('require', (v) => v as String?), + ); + return val; + }); + +Map _$InfoPushIpsQueryToJson(InfoPushIpsQuery instance) => + { + 'include': ?instance.include, + 'require': ?instance.require, + }; diff --git a/vrchat_dart_generated/lib/src/model/instance.dart b/vrchat_dart_generated/lib/src/model/instance.dart index f0a17008..cce21974 100644 --- a/vrchat_dart_generated/lib/src/model/instance.dart +++ b/vrchat_dart_generated/lib/src/model/instance.dart @@ -35,16 +35,26 @@ class Instance { this.capacity, + this.categoryId, + required this.clientNumber, this.closedAt, this.contentSettings, + this.creationLanguages, + this.creatorId, + this.description, + + this.disabledPropAbilities, + this.displayName, + this.dominantLanguage, + this.friends, this.full = false, @@ -65,8 +75,16 @@ class Instance { this.instancePersistenceEnabled, + this.languageRatio, + + this.languages, + + this.languagesIso639, + required this.location, + this.minimumAvatarPerformance, + required this.nUsers, required this.name, @@ -107,8 +125,12 @@ class Instance { required this.userCount, + this.userIcons, + this.users, + this.vibeIds, + required this.world, required this.worldId, @@ -130,6 +152,9 @@ class Instance { @JsonKey(name: r'capacity', required: false, includeIfNull: false) final int? capacity; + @JsonKey(name: r'categoryId', required: false, includeIfNull: false) + final String? categoryId; + /// Always returns \"unknown\". @Deprecated('clientNumber has been deprecated') @JsonKey(name: r'clientNumber', required: true, includeIfNull: false) @@ -141,13 +166,29 @@ class Instance { @JsonKey(name: r'contentSettings', required: false, includeIfNull: false) final InstanceContentSettings? contentSettings; + @JsonKey(name: r'creationLanguages', required: false, includeIfNull: false) + final List? creationLanguages; + /// 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. @JsonKey(name: r'creatorId', required: false, includeIfNull: false) final String? creatorId; + @JsonKey(name: r'description', required: false, includeIfNull: false) + final String? description; + + @JsonKey( + name: r'disabledPropAbilities', + required: false, + includeIfNull: false, + ) + final List? disabledPropAbilities; + @JsonKey(name: r'displayName', required: false, includeIfNull: false) final String? displayName; + @JsonKey(name: r'dominantLanguage', required: false, includeIfNull: false) + final String? dominantLanguage; + /// 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. @JsonKey(name: r'friends', required: false, includeIfNull: false) final String? friends; @@ -186,10 +227,27 @@ class Instance { ) final bool? instancePersistenceEnabled; + @JsonKey(name: r'languageRatio', required: false, includeIfNull: false) + final Map? languageRatio; + + /// The keys of languageRatio, ordered by their share of the instance. + @JsonKey(name: r'languages', required: false, includeIfNull: false) + final List? languages; + + @JsonKey(name: r'languagesIso639', required: false, includeIfNull: false) + final List? languagesIso639; + /// Represents a unique location, consisting of a world identifier and an instance identifier, or \"offline\" if the user is not on your friends list. @JsonKey(name: r'location', required: true, includeIfNull: false) final String location; + @JsonKey( + name: r'minimumAvatarPerformance', + required: false, + includeIfNull: false, + ) + final String? minimumAvatarPerformance; + // minimum: 0 @JsonKey(name: r'n_users', required: true, includeIfNull: false) final int nUsers; @@ -261,10 +319,16 @@ class Instance { @JsonKey(name: r'userCount', required: true, includeIfNull: false) final int userCount; + @JsonKey(name: r'userIcons', required: false, includeIfNull: false) + final List? userIcons; + /// The users field is present on instances created by the requesting user. @JsonKey(name: r'users', required: false, includeIfNull: false) final List? users; + @JsonKey(name: r'vibeIds', required: false, includeIfNull: false) + final List? vibeIds; + @JsonKey(name: r'world', required: true, includeIfNull: false) final World world; @@ -281,11 +345,16 @@ class Instance { other.calendarEntryId == calendarEntryId && other.canRequestInvite == canRequestInvite && other.capacity == capacity && + other.categoryId == categoryId && other.clientNumber == clientNumber && other.closedAt == closedAt && other.contentSettings == contentSettings && + other.creationLanguages == creationLanguages && other.creatorId == creatorId && + other.description == description && + other.disabledPropAbilities == disabledPropAbilities && other.displayName == displayName && + other.dominantLanguage == dominantLanguage && other.friends == friends && other.full == full && other.gameServerVersion == gameServerVersion && @@ -296,7 +365,11 @@ class Instance { other.id == id && other.instanceId == instanceId && other.instancePersistenceEnabled == instancePersistenceEnabled && + other.languageRatio == languageRatio && + other.languages == languages && + other.languagesIso639 == languagesIso639 && other.location == location && + other.minimumAvatarPerformance == minimumAvatarPerformance && other.nUsers == nUsers && other.name == name && other.nonce == nonce && @@ -317,7 +390,9 @@ class Instance { other.tags == tags && other.type == type && other.userCount == userCount && + other.userIcons == userIcons && other.users == users && + other.vibeIds == vibeIds && other.world == world && other.worldId == worldId; @@ -328,11 +403,16 @@ class Instance { (calendarEntryId == null ? 0 : calendarEntryId.hashCode) + canRequestInvite.hashCode + capacity.hashCode + + categoryId.hashCode + clientNumber.hashCode + (closedAt == null ? 0 : closedAt.hashCode) + contentSettings.hashCode + + creationLanguages.hashCode + creatorId.hashCode + + (description == null ? 0 : description.hashCode) + + disabledPropAbilities.hashCode + (displayName == null ? 0 : displayName.hashCode) + + dominantLanguage.hashCode + friends.hashCode + full.hashCode + (gameServerVersion == null ? 0 : gameServerVersion.hashCode) + @@ -345,7 +425,13 @@ class Instance { (instancePersistenceEnabled == null ? 0 : instancePersistenceEnabled.hashCode) + + languageRatio.hashCode + + languages.hashCode + + languagesIso639.hashCode + location.hashCode + + (minimumAvatarPerformance == null + ? 0 + : minimumAvatarPerformance.hashCode) + nUsers.hashCode + name.hashCode + nonce.hashCode + @@ -368,7 +454,9 @@ class Instance { tags.hashCode + type.hashCode + userCount.hashCode + + userIcons.hashCode + users.hashCode + + vibeIds.hashCode + world.hashCode + worldId.hashCode; diff --git a/vrchat_dart_generated/lib/src/model/instance.g.dart b/vrchat_dart_generated/lib/src/model/instance.g.dart index 230175c3..85761fb2 100644 --- a/vrchat_dart_generated/lib/src/model/instance.g.dart +++ b/vrchat_dart_generated/lib/src/model/instance.g.dart @@ -46,6 +46,7 @@ Instance _$InstanceFromJson( (v) => v as bool? ?? true, ), capacity: $checkedConvert('capacity', (v) => (v as num?)?.toInt()), + categoryId: $checkedConvert('categoryId', (v) => v as String?), clientNumber: $checkedConvert('clientNumber', (v) => v as String), closedAt: $checkedConvert( 'closedAt', @@ -57,8 +58,18 @@ Instance _$InstanceFromJson( ? null : InstanceContentSettings.fromJson(v as Map), ), + creationLanguages: $checkedConvert( + 'creationLanguages', + (v) => (v as List?)?.map((e) => e as Object).toList(), + ), creatorId: $checkedConvert('creatorId', (v) => v as String?), + description: $checkedConvert('description', (v) => v as String?), + disabledPropAbilities: $checkedConvert( + 'disabledPropAbilities', + (v) => (v as List?)?.map((e) => e as Object).toList(), + ), displayName: $checkedConvert('displayName', (v) => v as String?), + dominantLanguage: $checkedConvert('dominantLanguage', (v) => v as String?), friends: $checkedConvert('friends', (v) => v as String?), full: $checkedConvert('full', (v) => v as bool? ?? false), gameServerVersion: $checkedConvert( @@ -78,7 +89,24 @@ Instance _$InstanceFromJson( 'instancePersistenceEnabled', (v) => v as bool?, ), + languageRatio: $checkedConvert( + 'languageRatio', + (v) => + (v as Map?)?.map((k, e) => MapEntry(k, e as Object)), + ), + languages: $checkedConvert( + 'languages', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + languagesIso639: $checkedConvert( + 'languagesIso639', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), location: $checkedConvert('location', (v) => v as String), + minimumAvatarPerformance: $checkedConvert( + 'minimumAvatarPerformance', + (v) => v as String?, + ), nUsers: $checkedConvert('n_users', (v) => (v as num).toInt()), name: $checkedConvert('name', (v) => v as String), nonce: $checkedConvert('nonce', (v) => v as String?), @@ -117,12 +145,20 @@ Instance _$InstanceFromJson( ), type: $checkedConvert('type', (v) => $enumDecode(_$InstanceTypeEnumMap, v)), userCount: $checkedConvert('userCount', (v) => (v as num).toInt()), + userIcons: $checkedConvert( + 'userIcons', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), users: $checkedConvert( 'users', (v) => (v as List?) ?.map((e) => LimitedUserInstance.fromJson(e as Map)) .toList(), ), + vibeIds: $checkedConvert( + 'vibeIds', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), world: $checkedConvert( 'world', (v) => World.fromJson(v as Map), @@ -138,11 +174,16 @@ Map _$InstanceToJson(Instance instance) => { 'calendarEntryId': ?instance.calendarEntryId, 'canRequestInvite': ?instance.canRequestInvite, 'capacity': ?instance.capacity, + 'categoryId': ?instance.categoryId, 'clientNumber': instance.clientNumber, 'closedAt': ?instance.closedAt?.toIso8601String(), 'contentSettings': ?instance.contentSettings?.toJson(), + 'creationLanguages': ?instance.creationLanguages, 'creatorId': ?instance.creatorId, + 'description': ?instance.description, + 'disabledPropAbilities': ?instance.disabledPropAbilities, 'displayName': ?instance.displayName, + 'dominantLanguage': ?instance.dominantLanguage, 'friends': ?instance.friends, 'full': instance.full, 'gameServerVersion': ?instance.gameServerVersion, @@ -153,7 +194,11 @@ Map _$InstanceToJson(Instance instance) => { 'id': instance.id, 'instanceId': instance.instanceId, 'instancePersistenceEnabled': ?instance.instancePersistenceEnabled, + 'languageRatio': ?instance.languageRatio, + 'languages': ?instance.languages, + 'languagesIso639': ?instance.languagesIso639, 'location': instance.location, + 'minimumAvatarPerformance': ?instance.minimumAvatarPerformance, 'n_users': instance.nUsers, 'name': instance.name, 'nonce': ?instance.nonce, @@ -174,7 +219,9 @@ Map _$InstanceToJson(Instance instance) => { 'tags': instance.tags, 'type': _$InstanceTypeEnumMap[instance.type]!, 'userCount': instance.userCount, + 'userIcons': ?instance.userIcons, 'users': ?instance.users?.map((e) => e.toJson()).toList(), + 'vibeIds': ?instance.vibeIds, 'world': instance.world.toJson(), 'worldId': instance.worldId, }; diff --git a/vrchat_dart_generated/lib/src/model/instance_category.dart b/vrchat_dart_generated/lib/src/model/instance_category.dart new file mode 100644 index 00000000..1121f690 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/instance_category.dart @@ -0,0 +1,73 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'instance_category.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class InstanceCategory { + /// Returns a new [InstanceCategory] instance. + InstanceCategory({ + required this.deleted, + + required this.iconUrl, + + required this.id, + + required this.name, + + required this.order, + }); + + @JsonKey(name: r'deleted', required: true, includeIfNull: false) + final bool deleted; + + @JsonKey(name: r'iconUrl', required: true, includeIfNull: false) + final String iconUrl; + + @JsonKey(name: r'id', required: true, includeIfNull: false) + final String id; + + @JsonKey(name: r'name', required: true, includeIfNull: false) + final String name; + + @JsonKey(name: r'order', required: true, includeIfNull: false) + final int order; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is InstanceCategory && + other.deleted == deleted && + other.iconUrl == iconUrl && + other.id == id && + other.name == name && + other.order == order; + + @override + int get hashCode => + deleted.hashCode + + iconUrl.hashCode + + id.hashCode + + name.hashCode + + order.hashCode; + + factory InstanceCategory.fromJson(Map json) => + _$InstanceCategoryFromJson(json); + + Map toJson() => _$InstanceCategoryToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/instance_category.g.dart b/vrchat_dart_generated/lib/src/model/instance_category.g.dart new file mode 100644 index 00000000..589e3812 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/instance_category.g.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'instance_category.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +InstanceCategory _$InstanceCategoryFromJson(Map json) => + $checkedCreate('InstanceCategory', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const ['deleted', 'iconUrl', 'id', 'name', 'order'], + ); + final val = InstanceCategory( + deleted: $checkedConvert('deleted', (v) => v as bool), + iconUrl: $checkedConvert('iconUrl', (v) => v as String), + id: $checkedConvert('id', (v) => v as String), + name: $checkedConvert('name', (v) => v as String), + order: $checkedConvert('order', (v) => (v as num).toInt()), + ); + return val; + }); + +Map _$InstanceCategoryToJson(InstanceCategory instance) => + { + 'deleted': instance.deleted, + 'iconUrl': instance.iconUrl, + 'id': instance.id, + 'name': instance.name, + 'order': instance.order, + }; diff --git a/vrchat_dart_generated/lib/src/model/instance_vibe.dart b/vrchat_dart_generated/lib/src/model/instance_vibe.dart new file mode 100644 index 00000000..dd012ea1 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/instance_vibe.dart @@ -0,0 +1,50 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'instance_vibe.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class InstanceVibe { + /// Returns a new [InstanceVibe] instance. + InstanceVibe({required this.deleted, required this.id, required this.title}); + + @JsonKey(name: r'deleted', required: true, includeIfNull: false) + final bool deleted; + + @JsonKey(name: r'id', required: true, includeIfNull: false) + final String id; + + @JsonKey(name: r'title', required: true, includeIfNull: false) + final String title; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is InstanceVibe && + other.deleted == deleted && + other.id == id && + other.title == title; + + @override + int get hashCode => deleted.hashCode + id.hashCode + title.hashCode; + + factory InstanceVibe.fromJson(Map json) => + _$InstanceVibeFromJson(json); + + Map toJson() => _$InstanceVibeToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/instance_vibe.g.dart b/vrchat_dart_generated/lib/src/model/instance_vibe.g.dart new file mode 100644 index 00000000..a5701a2d --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/instance_vibe.g.dart @@ -0,0 +1,27 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'instance_vibe.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +InstanceVibe _$InstanceVibeFromJson(Map json) => + $checkedCreate('InstanceVibe', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['deleted', 'id', 'title']); + final val = InstanceVibe( + deleted: $checkedConvert('deleted', (v) => v as bool), + id: $checkedConvert('id', (v) => v as String), + title: $checkedConvert('title', (v) => v as String), + ); + return val; + }); + +Map _$InstanceVibeToJson(InstanceVibe instance) => + { + 'deleted': instance.deleted, + 'id': instance.id, + 'title': instance.title, + }; diff --git a/vrchat_dart_generated/lib/src/model/inventory_drop.dart b/vrchat_dart_generated/lib/src/model/inventory_drop.dart index ffb622e5..b216896b 100644 --- a/vrchat_dart_generated/lib/src/model/inventory_drop.dart +++ b/vrchat_dart_generated/lib/src/model/inventory_drop.dart @@ -24,6 +24,8 @@ class InventoryDrop { required this.dropExpiryDate, + this.dropStatus, + required this.endDropDate, required this.id, @@ -36,8 +38,6 @@ class InventoryDrop { required this.startDropDate, - required this.status, - required this.tags, required this.targetGroup, @@ -57,6 +57,9 @@ class InventoryDrop { @JsonKey(name: r'dropExpiryDate', required: true, includeIfNull: true) final DateTime? dropExpiryDate; + @JsonKey(name: r'dropStatus', required: false, includeIfNull: false) + final String? dropStatus; + @JsonKey(name: r'endDropDate', required: true, includeIfNull: false) final DateTime endDropDate; @@ -75,9 +78,6 @@ class InventoryDrop { @JsonKey(name: r'startDropDate', required: true, includeIfNull: false) final DateTime startDropDate; - @JsonKey(name: r'status', required: true, includeIfNull: false) - final String status; - @JsonKey(name: r'tags', required: true, includeIfNull: false) final List tags; @@ -97,13 +97,13 @@ class InventoryDrop { other.authorId == authorId && other.createdAt == createdAt && other.dropExpiryDate == dropExpiryDate && + other.dropStatus == dropStatus && other.endDropDate == endDropDate && other.id == id && other.isDisabled == isDisabled && other.name == name && other.notificationDetails == notificationDetails && other.startDropDate == startDropDate && - other.status == status && other.tags == tags && other.targetGroup == targetGroup && other.templateIds == templateIds && @@ -114,13 +114,13 @@ class InventoryDrop { authorId.hashCode + createdAt.hashCode + (dropExpiryDate == null ? 0 : dropExpiryDate.hashCode) + + dropStatus.hashCode + endDropDate.hashCode + id.hashCode + isDisabled.hashCode + name.hashCode + notificationDetails.hashCode + startDropDate.hashCode + - status.hashCode + tags.hashCode + targetGroup.hashCode + templateIds.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/inventory_drop.g.dart b/vrchat_dart_generated/lib/src/model/inventory_drop.g.dart index 344d385b..7b5b2bb6 100644 --- a/vrchat_dart_generated/lib/src/model/inventory_drop.g.dart +++ b/vrchat_dart_generated/lib/src/model/inventory_drop.g.dart @@ -8,89 +8,82 @@ part of 'inventory_drop.dart'; // JsonSerializableGenerator // ************************************************************************** -InventoryDrop _$InventoryDropFromJson(Map json) => - $checkedCreate( - 'InventoryDrop', - json, - ($checkedConvert) { - $checkKeys( - json, - requiredKeys: const [ - 'authorId', - 'created_at', - 'dropExpiryDate', - 'endDropDate', - 'id', - 'isDisabled', - 'name', - 'notificationDetails', - 'startDropDate', - 'status', - 'tags', - 'targetGroup', - 'templateIds', - 'updated_at', - ], - ); - final val = InventoryDrop( - authorId: $checkedConvert('authorId', (v) => v as String), - createdAt: $checkedConvert( - 'created_at', - (v) => DateTime.parse(v as String), - ), - dropExpiryDate: $checkedConvert( - 'dropExpiryDate', - (v) => v == null ? null : DateTime.parse(v as String), - ), - endDropDate: $checkedConvert( - 'endDropDate', - (v) => DateTime.parse(v as String), - ), - id: $checkedConvert('id', (v) => v as String), - isDisabled: $checkedConvert('isDisabled', (v) => v as bool), - name: $checkedConvert('name', (v) => v as String), - notificationDetails: $checkedConvert( - 'notificationDetails', - (v) => InventoryNotificationDetails.fromJson( - v as Map, - ), - ), - startDropDate: $checkedConvert( - 'startDropDate', - (v) => DateTime.parse(v as String), - ), - status: $checkedConvert('status', (v) => v as String), - tags: $checkedConvert( - 'tags', - (v) => (v as List).map((e) => e as String).toList(), - ), - targetGroup: $checkedConvert('targetGroup', (v) => v as String), - templateIds: $checkedConvert( - 'templateIds', - (v) => (v as List).map((e) => e as String).toList(), - ), - updatedAt: $checkedConvert( - 'updated_at', - (v) => DateTime.parse(v as String), - ), - ); - return val; - }, - fieldKeyMap: const {'createdAt': 'created_at', 'updatedAt': 'updated_at'}, - ); +InventoryDrop _$InventoryDropFromJson( + Map json, +) => $checkedCreate('InventoryDrop', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + 'authorId', + 'created_at', + 'dropExpiryDate', + 'endDropDate', + 'id', + 'isDisabled', + 'name', + 'notificationDetails', + 'startDropDate', + 'tags', + 'targetGroup', + 'templateIds', + 'updated_at', + ], + ); + final val = InventoryDrop( + authorId: $checkedConvert('authorId', (v) => v as String), + createdAt: $checkedConvert( + 'created_at', + (v) => DateTime.parse(v as String), + ), + dropExpiryDate: $checkedConvert( + 'dropExpiryDate', + (v) => v == null ? null : DateTime.parse(v as String), + ), + dropStatus: $checkedConvert('dropStatus', (v) => v as String?), + endDropDate: $checkedConvert( + 'endDropDate', + (v) => DateTime.parse(v as String), + ), + id: $checkedConvert('id', (v) => v as String), + isDisabled: $checkedConvert('isDisabled', (v) => v as bool), + name: $checkedConvert('name', (v) => v as String), + notificationDetails: $checkedConvert( + 'notificationDetails', + (v) => InventoryNotificationDetails.fromJson(v as Map), + ), + startDropDate: $checkedConvert( + 'startDropDate', + (v) => DateTime.parse(v as String), + ), + tags: $checkedConvert( + 'tags', + (v) => (v as List).map((e) => e as String).toList(), + ), + targetGroup: $checkedConvert('targetGroup', (v) => v as String), + templateIds: $checkedConvert( + 'templateIds', + (v) => (v as List).map((e) => e as String).toList(), + ), + updatedAt: $checkedConvert( + 'updated_at', + (v) => DateTime.parse(v as String), + ), + ); + return val; +}, fieldKeyMap: const {'createdAt': 'created_at', 'updatedAt': 'updated_at'}); Map _$InventoryDropToJson(InventoryDrop instance) => { 'authorId': instance.authorId, 'created_at': instance.createdAt.toIso8601String(), 'dropExpiryDate': instance.dropExpiryDate?.toIso8601String(), + 'dropStatus': ?instance.dropStatus, 'endDropDate': instance.endDropDate.toIso8601String(), 'id': instance.id, 'isDisabled': instance.isDisabled, 'name': instance.name, 'notificationDetails': instance.notificationDetails.toJson(), 'startDropDate': instance.startDropDate.toIso8601String(), - 'status': instance.status, 'tags': instance.tags, 'targetGroup': instance.targetGroup, 'templateIds': instance.templateIds, diff --git a/vrchat_dart_generated/lib/src/model/inventory_item.dart b/vrchat_dart_generated/lib/src/model/inventory_item.dart index 47ee1e5d..d30049af 100644 --- a/vrchat_dart_generated/lib/src/model/inventory_item.dart +++ b/vrchat_dart_generated/lib/src/model/inventory_item.dart @@ -22,6 +22,10 @@ part 'inventory_item.g.dart'; class InventoryItem { /// Returns a new [InventoryItem] instance. InventoryItem({ + this.acquisition, + + this.attribution, + required this.collections, required this.createdAt, @@ -52,6 +56,8 @@ class InventoryItem { required this.itemTypeLabel, + this.lastEquipped, + required this.metadata, required this.name, @@ -73,6 +79,12 @@ class InventoryItem { required this.validateUserAttributes, }); + @JsonKey(name: r'acquisition', required: false, includeIfNull: false) + final String? acquisition; + + @JsonKey(name: r'attribution', required: false, includeIfNull: false) + final Object? attribution; + @JsonKey(name: r'collections', required: true, includeIfNull: false) final List collections; @@ -119,6 +131,9 @@ class InventoryItem { @JsonKey(name: r'itemTypeLabel', required: true, includeIfNull: false) final String itemTypeLabel; + @JsonKey(name: r'last_equipped', required: false, includeIfNull: false) + final Map? lastEquipped; + @JsonKey(name: r'metadata', required: true, includeIfNull: false) final InventoryMetadata metadata; @@ -157,6 +172,8 @@ class InventoryItem { bool operator ==(Object other) => identical(this, other) || other is InventoryItem && + other.acquisition == acquisition && + other.attribution == attribution && other.collections == collections && other.createdAt == createdAt && other.defaultAttributes == defaultAttributes && @@ -172,6 +189,7 @@ class InventoryItem { other.isSeen == isSeen && other.itemType == itemType && other.itemTypeLabel == itemTypeLabel && + other.lastEquipped == lastEquipped && other.metadata == metadata && other.name == name && other.quantifiable == quantifiable && @@ -185,6 +203,8 @@ class InventoryItem { @override int get hashCode => + acquisition.hashCode + + (attribution == null ? 0 : attribution.hashCode) + collections.hashCode + createdAt.hashCode + defaultAttributes.hashCode + @@ -200,6 +220,7 @@ class InventoryItem { isSeen.hashCode + itemType.hashCode + itemTypeLabel.hashCode + + lastEquipped.hashCode + metadata.hashCode + name.hashCode + quantifiable.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/inventory_item.g.dart b/vrchat_dart_generated/lib/src/model/inventory_item.g.dart index 7a749207..ef6017f1 100644 --- a/vrchat_dart_generated/lib/src/model/inventory_item.g.dart +++ b/vrchat_dart_generated/lib/src/model/inventory_item.g.dart @@ -41,6 +41,8 @@ InventoryItem _$InventoryItemFromJson(Map json) => ], ); final val = InventoryItem( + acquisition: $checkedConvert('acquisition', (v) => v as String?), + attribution: $checkedConvert('attribution', (v) => v), collections: $checkedConvert( 'collections', (v) => (v as List).map((e) => e as String).toList(), @@ -89,6 +91,12 @@ InventoryItem _$InventoryItemFromJson(Map json) => (v) => $enumDecode(_$InventoryItemTypeEnumMap, v), ), itemTypeLabel: $checkedConvert('itemTypeLabel', (v) => v as String), + lastEquipped: $checkedConvert( + 'last_equipped', + (v) => (v as Map?)?.map( + (k, e) => MapEntry(k, e as Object), + ), + ), metadata: $checkedConvert( 'metadata', (v) => InventoryMetadata.fromJson(v as Map), @@ -125,6 +133,7 @@ InventoryItem _$InventoryItemFromJson(Map json) => }, fieldKeyMap: const { 'createdAt': 'created_at', + 'lastEquipped': 'last_equipped', 'templateCreatedAt': 'template_created_at', 'templateUpdatedAt': 'template_updated_at', 'updatedAt': 'updated_at', @@ -133,6 +142,8 @@ InventoryItem _$InventoryItemFromJson(Map json) => Map _$InventoryItemToJson(InventoryItem instance) => { + 'acquisition': ?instance.acquisition, + 'attribution': ?instance.attribution, 'collections': instance.collections, 'created_at': instance.createdAt.toIso8601String(), 'defaultAttributes': instance.defaultAttributes.map( @@ -152,6 +163,7 @@ Map _$InventoryItemToJson(InventoryItem instance) => 'isSeen': instance.isSeen, 'itemType': _$InventoryItemTypeEnumMap[instance.itemType]!, 'itemTypeLabel': instance.itemTypeLabel, + 'last_equipped': ?instance.lastEquipped, 'metadata': instance.metadata.toJson(), 'name': instance.name, 'quantifiable': instance.quantifiable, diff --git a/vrchat_dart_generated/lib/src/model/inventory_metadata.dart b/vrchat_dart_generated/lib/src/model/inventory_metadata.dart index 05c55a28..1802ef7c 100644 --- a/vrchat_dart_generated/lib/src/model/inventory_metadata.dart +++ b/vrchat_dart_generated/lib/src/model/inventory_metadata.dart @@ -32,6 +32,8 @@ class InventoryMetadata { this.maskTag, this.propId, + + this.propKind, }); @JsonKey(name: r'animated', required: false, includeIfNull: false) @@ -63,6 +65,9 @@ class InventoryMetadata { @JsonKey(name: r'propId', required: false, includeIfNull: false) final String? propId; + @JsonKey(name: r'propKind', required: false, includeIfNull: false) + final int? propKind; + @override bool operator ==(Object other) => identical(this, other) || @@ -74,7 +79,8 @@ class InventoryMetadata { other.imageUrl == imageUrl && other.inventoryItemsToInstantiate == inventoryItemsToInstantiate && other.maskTag == maskTag && - other.propId == propId; + other.propId == propId && + other.propKind == propKind; @override int get hashCode => @@ -85,7 +91,8 @@ class InventoryMetadata { imageUrl.hashCode + inventoryItemsToInstantiate.hashCode + maskTag.hashCode + - propId.hashCode; + propId.hashCode + + propKind.hashCode; factory InventoryMetadata.fromJson(Map json) => _$InventoryMetadataFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/inventory_metadata.g.dart b/vrchat_dart_generated/lib/src/model/inventory_metadata.g.dart index f677b270..66b09783 100644 --- a/vrchat_dart_generated/lib/src/model/inventory_metadata.g.dart +++ b/vrchat_dart_generated/lib/src/model/inventory_metadata.g.dart @@ -22,6 +22,7 @@ InventoryMetadata _$InventoryMetadataFromJson(Map json) => ), maskTag: $checkedConvert('maskTag', (v) => v as String?), propId: $checkedConvert('propId', (v) => v as String?), + propKind: $checkedConvert('propKind', (v) => (v as num?)?.toInt()), ); return val; }); @@ -36,4 +37,5 @@ Map _$InventoryMetadataToJson(InventoryMetadata instance) => 'inventoryItemsToInstantiate': ?instance.inventoryItemsToInstantiate, 'maskTag': ?instance.maskTag, 'propId': ?instance.propId, + 'propKind': ?instance.propKind, }; diff --git a/vrchat_dart_generated/lib/src/model/inventory_template.dart b/vrchat_dart_generated/lib/src/model/inventory_template.dart index d30bf720..8e3b5ace 100644 --- a/vrchat_dart_generated/lib/src/model/inventory_template.dart +++ b/vrchat_dart_generated/lib/src/model/inventory_template.dart @@ -20,6 +20,8 @@ part 'inventory_template.g.dart'; class InventoryTemplate { /// Returns a new [InventoryTemplate] instance. InventoryTemplate({ + this.attribution, + required this.authorId, required this.collections, @@ -30,6 +32,8 @@ class InventoryTemplate { required this.description, + this.dropStatus, + required this.equipSlots, required this.flags, @@ -48,7 +52,7 @@ class InventoryTemplate { this.notificationDetails, - required this.status, + this.status, required this.tags, @@ -57,6 +61,9 @@ class InventoryTemplate { required this.validateUserAttributes, }); + @JsonKey(name: r'attribution', required: false, includeIfNull: false) + final Object? attribution; + /// 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. @JsonKey(name: r'authorId', required: true, includeIfNull: false) final String authorId; @@ -73,6 +80,9 @@ class InventoryTemplate { @JsonKey(name: r'description', required: true, includeIfNull: false) final String description; + @JsonKey(name: r'dropStatus', required: false, includeIfNull: false) + final String? dropStatus; + @JsonKey(name: r'equipSlots', required: true, includeIfNull: false) final List equipSlots; @@ -100,8 +110,8 @@ class InventoryTemplate { @JsonKey(name: r'notificationDetails', required: false, includeIfNull: false) final InventoryNotificationDetails? notificationDetails; - @JsonKey(name: r'status', required: true, includeIfNull: false) - final String status; + @JsonKey(name: r'status', required: false, includeIfNull: false) + final String? status; @JsonKey(name: r'tags', required: true, includeIfNull: false) final List tags; @@ -120,11 +130,13 @@ class InventoryTemplate { bool operator ==(Object other) => identical(this, other) || other is InventoryTemplate && + other.attribution == attribution && other.authorId == authorId && other.collections == collections && other.createdAt == createdAt && other.defaultAttributes == defaultAttributes && other.description == description && + other.dropStatus == dropStatus && other.equipSlots == equipSlots && other.flags == flags && other.id == id && @@ -141,11 +153,13 @@ class InventoryTemplate { @override int get hashCode => + (attribution == null ? 0 : attribution.hashCode) + authorId.hashCode + collections.hashCode + createdAt.hashCode + defaultAttributes.hashCode + description.hashCode + + dropStatus.hashCode + equipSlots.hashCode + flags.hashCode + id.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/inventory_template.g.dart b/vrchat_dart_generated/lib/src/model/inventory_template.g.dart index 6c65250b..10093cd4 100644 --- a/vrchat_dart_generated/lib/src/model/inventory_template.g.dart +++ b/vrchat_dart_generated/lib/src/model/inventory_template.g.dart @@ -8,103 +8,97 @@ part of 'inventory_template.dart'; // JsonSerializableGenerator // ************************************************************************** -InventoryTemplate _$InventoryTemplateFromJson(Map json) => - $checkedCreate( - 'InventoryTemplate', - json, - ($checkedConvert) { - $checkKeys( - json, - requiredKeys: const [ - 'authorId', - 'collections', - 'created_at', - 'defaultAttributes', - 'description', - 'equipSlots', - 'flags', - 'id', - 'imageUrl', - 'itemType', - 'itemTypeLabel', - 'name', - 'status', - 'tags', - 'updated_at', - 'validateUserAttributes', - ], - ); - final val = InventoryTemplate( - authorId: $checkedConvert('authorId', (v) => v as String), - collections: $checkedConvert( - 'collections', - (v) => (v as List).map((e) => e as String).toList(), - ), - createdAt: $checkedConvert( - 'created_at', - (v) => DateTime.parse(v as String), - ), - defaultAttributes: $checkedConvert( - 'defaultAttributes', - (v) => v as Object, - ), - description: $checkedConvert('description', (v) => v as String), - equipSlots: $checkedConvert( - 'equipSlots', - (v) => (v as List).map((e) => e as String).toList(), - ), - flags: $checkedConvert( - 'flags', - (v) => (v as List).map((e) => e as String).toList(), - ), - id: $checkedConvert('id', (v) => v as String), - imageUrl: $checkedConvert('imageUrl', (v) => v as String), - itemType: $checkedConvert( - 'itemType', - (v) => $enumDecode(_$InventoryItemTypeEnumMap, v), - ), - itemTypeLabel: $checkedConvert('itemTypeLabel', (v) => v as String), - metadata: $checkedConvert( - 'metadata', - (v) => v == null - ? null - : InventoryMetadata.fromJson(v as Map), - ), - name: $checkedConvert('name', (v) => v as String), - notificationDetails: $checkedConvert( - 'notificationDetails', - (v) => v == null - ? null - : InventoryNotificationDetails.fromJson( - v as Map, - ), - ), - status: $checkedConvert('status', (v) => v as String), - tags: $checkedConvert( - 'tags', - (v) => (v as List).map((e) => e as String).toList(), - ), - updatedAt: $checkedConvert( - 'updated_at', - (v) => DateTime.parse(v as String), - ), - validateUserAttributes: $checkedConvert( - 'validateUserAttributes', - (v) => v as bool, - ), - ); - return val; - }, - fieldKeyMap: const {'createdAt': 'created_at', 'updatedAt': 'updated_at'}, - ); +InventoryTemplate _$InventoryTemplateFromJson( + Map json, +) => $checkedCreate('InventoryTemplate', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + 'authorId', + 'collections', + 'created_at', + 'defaultAttributes', + 'description', + 'equipSlots', + 'flags', + 'id', + 'imageUrl', + 'itemType', + 'itemTypeLabel', + 'name', + 'tags', + 'updated_at', + 'validateUserAttributes', + ], + ); + final val = InventoryTemplate( + attribution: $checkedConvert('attribution', (v) => v), + authorId: $checkedConvert('authorId', (v) => v as String), + collections: $checkedConvert( + 'collections', + (v) => (v as List).map((e) => e as String).toList(), + ), + createdAt: $checkedConvert( + 'created_at', + (v) => DateTime.parse(v as String), + ), + defaultAttributes: $checkedConvert('defaultAttributes', (v) => v as Object), + description: $checkedConvert('description', (v) => v as String), + dropStatus: $checkedConvert('dropStatus', (v) => v as String?), + equipSlots: $checkedConvert( + 'equipSlots', + (v) => (v as List).map((e) => e as String).toList(), + ), + flags: $checkedConvert( + 'flags', + (v) => (v as List).map((e) => e as String).toList(), + ), + id: $checkedConvert('id', (v) => v as String), + imageUrl: $checkedConvert('imageUrl', (v) => v as String), + itemType: $checkedConvert( + 'itemType', + (v) => $enumDecode(_$InventoryItemTypeEnumMap, v), + ), + itemTypeLabel: $checkedConvert('itemTypeLabel', (v) => v as String), + metadata: $checkedConvert( + 'metadata', + (v) => v == null + ? null + : InventoryMetadata.fromJson(v as Map), + ), + name: $checkedConvert('name', (v) => v as String), + notificationDetails: $checkedConvert( + 'notificationDetails', + (v) => v == null + ? null + : InventoryNotificationDetails.fromJson(v as Map), + ), + status: $checkedConvert('status', (v) => v as String?), + tags: $checkedConvert( + 'tags', + (v) => (v as List).map((e) => e as String).toList(), + ), + updatedAt: $checkedConvert( + 'updated_at', + (v) => DateTime.parse(v as String), + ), + validateUserAttributes: $checkedConvert( + 'validateUserAttributes', + (v) => v as bool, + ), + ); + return val; +}, fieldKeyMap: const {'createdAt': 'created_at', 'updatedAt': 'updated_at'}); Map _$InventoryTemplateToJson(InventoryTemplate instance) => { + 'attribution': ?instance.attribution, 'authorId': instance.authorId, 'collections': instance.collections, 'created_at': instance.createdAt.toIso8601String(), 'defaultAttributes': instance.defaultAttributes, 'description': instance.description, + 'dropStatus': ?instance.dropStatus, 'equipSlots': instance.equipSlots, 'flags': instance.flags, 'id': instance.id, @@ -114,7 +108,7 @@ Map _$InventoryTemplateToJson(InventoryTemplate instance) => 'metadata': ?instance.metadata?.toJson(), 'name': instance.name, 'notificationDetails': ?instance.notificationDetails?.toJson(), - 'status': instance.status, + 'status': ?instance.status, 'tags': instance.tags, 'updated_at': instance.updatedAt.toIso8601String(), 'validateUserAttributes': instance.validateUserAttributes, diff --git a/vrchat_dart_generated/lib/src/model/jam.dart b/vrchat_dart_generated/lib/src/model/jam.dart index fb33498b..67ab45ec 100644 --- a/vrchat_dart_generated/lib/src/model/jam.dart +++ b/vrchat_dart_generated/lib/src/model/jam.dart @@ -18,6 +18,8 @@ part 'jam.g.dart'; class Jam { /// Returns a new [Jam] instance. Jam({ + this.createdAt, + required this.description, required this.id, @@ -36,9 +38,14 @@ class Jam { required this.title, + required this.type, + required this.updatedAt, }); + @JsonKey(name: r'created_at', required: false, includeIfNull: false) + final DateTime? createdAt; + @JsonKey(name: r'description', required: true, includeIfNull: false) final String description; @@ -75,6 +82,9 @@ class Jam { @JsonKey(name: r'title', required: true, includeIfNull: false) final String title; + @JsonKey(name: r'type', required: true, includeIfNull: false) + final String type; + @JsonKey(name: r'updated_at', required: true, includeIfNull: false) final DateTime updatedAt; @@ -82,6 +92,7 @@ class Jam { bool operator ==(Object other) => identical(this, other) || other is Jam && + other.createdAt == createdAt && other.description == description && other.id == id && other.isVisible == isVisible && @@ -91,10 +102,12 @@ class Jam { other.submissionContentGateDate == submissionContentGateDate && other.submissionContentGated == submissionContentGated && other.title == title && + other.type == type && other.updatedAt == updatedAt; @override int get hashCode => + createdAt.hashCode + description.hashCode + id.hashCode + isVisible.hashCode + @@ -106,6 +119,7 @@ class Jam { : submissionContentGateDate.hashCode) + submissionContentGated.hashCode + title.hashCode + + type.hashCode + updatedAt.hashCode; factory Jam.fromJson(Map json) => _$JamFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/jam.g.dart b/vrchat_dart_generated/lib/src/model/jam.g.dart index 22c700a4..fecf0474 100644 --- a/vrchat_dart_generated/lib/src/model/jam.g.dart +++ b/vrchat_dart_generated/lib/src/model/jam.g.dart @@ -8,51 +8,59 @@ part of 'jam.dart'; // JsonSerializableGenerator // ************************************************************************** -Jam _$JamFromJson(Map json) => - $checkedCreate('Jam', json, ($checkedConvert) { - $checkKeys( - json, - requiredKeys: const [ - 'description', - 'id', - 'isVisible', - 'moreInfo', - 'state', - 'stateChangeDates', - 'submissionContentGateDate', - 'submissionContentGated', - 'title', - 'updated_at', - ], - ); - final val = Jam( - description: $checkedConvert('description', (v) => v as String), - id: $checkedConvert('id', (v) => v as String), - isVisible: $checkedConvert('isVisible', (v) => v as bool), - moreInfo: $checkedConvert('moreInfo', (v) => v as String), - state: $checkedConvert('state', (v) => v as String), - stateChangeDates: $checkedConvert( - 'stateChangeDates', - (v) => JamStateChangeDates.fromJson(v as Map), - ), - submissionContentGateDate: $checkedConvert( - 'submissionContentGateDate', - (v) => v == null ? null : DateTime.parse(v as String), - ), - submissionContentGated: $checkedConvert( - 'submissionContentGated', - (v) => v as bool, - ), - title: $checkedConvert('title', (v) => v as String), - updatedAt: $checkedConvert( - 'updated_at', - (v) => DateTime.parse(v as String), - ), - ); - return val; - }, fieldKeyMap: const {'updatedAt': 'updated_at'}); +Jam _$JamFromJson(Map json) => $checkedCreate('Jam', json, ( + $checkedConvert, +) { + $checkKeys( + json, + requiredKeys: const [ + 'description', + 'id', + 'isVisible', + 'moreInfo', + 'state', + 'stateChangeDates', + 'submissionContentGateDate', + 'submissionContentGated', + 'title', + 'type', + 'updated_at', + ], + ); + final val = Jam( + createdAt: $checkedConvert( + 'created_at', + (v) => v == null ? null : DateTime.parse(v as String), + ), + description: $checkedConvert('description', (v) => v as String), + id: $checkedConvert('id', (v) => v as String), + isVisible: $checkedConvert('isVisible', (v) => v as bool), + moreInfo: $checkedConvert('moreInfo', (v) => v as String), + state: $checkedConvert('state', (v) => v as String), + stateChangeDates: $checkedConvert( + 'stateChangeDates', + (v) => JamStateChangeDates.fromJson(v as Map), + ), + submissionContentGateDate: $checkedConvert( + 'submissionContentGateDate', + (v) => v == null ? null : DateTime.parse(v as String), + ), + submissionContentGated: $checkedConvert( + 'submissionContentGated', + (v) => v as bool, + ), + title: $checkedConvert('title', (v) => v as String), + type: $checkedConvert('type', (v) => v as String), + updatedAt: $checkedConvert( + 'updated_at', + (v) => DateTime.parse(v as String), + ), + ); + return val; +}, fieldKeyMap: const {'createdAt': 'created_at', 'updatedAt': 'updated_at'}); Map _$JamToJson(Jam instance) => { + 'created_at': ?instance.createdAt?.toIso8601String(), 'description': instance.description, 'id': instance.id, 'isVisible': instance.isVisible, @@ -63,5 +71,6 @@ Map _$JamToJson(Jam instance) => { ?.toIso8601String(), 'submissionContentGated': instance.submissionContentGated, 'title': instance.title, + 'type': instance.type, 'updated_at': instance.updatedAt.toIso8601String(), }; diff --git a/vrchat_dart_generated/lib/src/model/jam_submission.dart b/vrchat_dart_generated/lib/src/model/jam_submission.dart index 1fef3999..296f6deb 100644 --- a/vrchat_dart_generated/lib/src/model/jam_submission.dart +++ b/vrchat_dart_generated/lib/src/model/jam_submission.dart @@ -27,7 +27,7 @@ class JamSubmission { required this.jamId, - this.ratingScore, + required this.ratingsScore, required this.submitterId, }); @@ -48,9 +48,8 @@ class JamSubmission { @JsonKey(name: r'jamId', required: true, includeIfNull: false) final String jamId; - // minimum: 0 - @JsonKey(name: r'ratingScore', required: false, includeIfNull: false) - final int? ratingScore; + @JsonKey(name: r'ratingsScore', required: true, includeIfNull: false) + final int ratingsScore; /// 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. @JsonKey(name: r'submitterId', required: true, includeIfNull: false) @@ -65,7 +64,7 @@ class JamSubmission { other.description == description && other.id == id && other.jamId == jamId && - other.ratingScore == ratingScore && + other.ratingsScore == ratingsScore && other.submitterId == submitterId; @override @@ -75,7 +74,7 @@ class JamSubmission { description.hashCode + id.hashCode + jamId.hashCode + - ratingScore.hashCode + + ratingsScore.hashCode + submitterId.hashCode; factory JamSubmission.fromJson(Map json) => diff --git a/vrchat_dart_generated/lib/src/model/jam_submission.g.dart b/vrchat_dart_generated/lib/src/model/jam_submission.g.dart index 06071226..5817cb7d 100644 --- a/vrchat_dart_generated/lib/src/model/jam_submission.g.dart +++ b/vrchat_dart_generated/lib/src/model/jam_submission.g.dart @@ -18,6 +18,7 @@ JamSubmission _$JamSubmissionFromJson(Map json) => 'description', 'id', 'jamId', + 'ratingsScore', 'submitterId', ], ); @@ -30,9 +31,9 @@ JamSubmission _$JamSubmissionFromJson(Map json) => description: $checkedConvert('description', (v) => v as String), id: $checkedConvert('id', (v) => v as String), jamId: $checkedConvert('jamId', (v) => v as String), - ratingScore: $checkedConvert( - 'ratingScore', - (v) => (v as num?)?.toInt(), + ratingsScore: $checkedConvert( + 'ratingsScore', + (v) => (v as num).toInt(), ), submitterId: $checkedConvert('submitterId', (v) => v as String), ); @@ -46,6 +47,6 @@ Map _$JamSubmissionToJson(JamSubmission instance) => 'description': instance.description, 'id': instance.id, 'jamId': instance.jamId, - 'ratingScore': ?instance.ratingScore, + 'ratingsScore': instance.ratingsScore, 'submitterId': instance.submitterId, }; diff --git a/vrchat_dart_generated/lib/src/model/limited_group.dart b/vrchat_dart_generated/lib/src/model/limited_group.dart index a9ae3c78..e39e17fe 100644 --- a/vrchat_dart_generated/lib/src/model/limited_group.dart +++ b/vrchat_dart_generated/lib/src/model/limited_group.dart @@ -45,6 +45,10 @@ class LimitedGroup { this.name, + this.nameplateId, + + this.nameplateUrl, + this.ownerId, this.rules, @@ -94,6 +98,12 @@ class LimitedGroup { @JsonKey(name: r'name', required: false, includeIfNull: false) final String? name; + @JsonKey(name: r'nameplateId', required: false, includeIfNull: false) + final Object? nameplateId; + + @JsonKey(name: r'nameplateUrl', required: false, includeIfNull: false) + final Object? nameplateUrl; + /// 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. @JsonKey(name: r'ownerId', required: false, includeIfNull: false) final String? ownerId; @@ -125,6 +135,8 @@ class LimitedGroup { other.memberCount == memberCount && other.membershipStatus == membershipStatus && other.name == name && + other.nameplateId == nameplateId && + other.nameplateUrl == nameplateUrl && other.ownerId == ownerId && other.rules == rules && other.shortCode == shortCode && @@ -145,6 +157,8 @@ class LimitedGroup { memberCount.hashCode + membershipStatus.hashCode + name.hashCode + + (nameplateId == null ? 0 : nameplateId.hashCode) + + (nameplateUrl == null ? 0 : nameplateUrl.hashCode) + ownerId.hashCode + (rules == null ? 0 : rules.hashCode) + shortCode.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/limited_group.g.dart b/vrchat_dart_generated/lib/src/model/limited_group.g.dart index c1affed4..d7aea70c 100644 --- a/vrchat_dart_generated/lib/src/model/limited_group.g.dart +++ b/vrchat_dart_generated/lib/src/model/limited_group.g.dart @@ -38,6 +38,8 @@ LimitedGroup _$LimitedGroupFromJson(Map json) => (v) => $enumDecodeNullable(_$GroupMemberStatusEnumMap, v), ), name: $checkedConvert('name', (v) => v as String?), + nameplateId: $checkedConvert('nameplateId', (v) => v), + nameplateUrl: $checkedConvert('nameplateUrl', (v) => v), ownerId: $checkedConvert('ownerId', (v) => v as String?), rules: $checkedConvert('rules', (v) => v as String?), shortCode: $checkedConvert('shortCode', (v) => v as String?), @@ -65,6 +67,8 @@ Map _$LimitedGroupToJson( 'memberCount': ?instance.memberCount, 'membershipStatus': ?_$GroupMemberStatusEnumMap[instance.membershipStatus], 'name': ?instance.name, + 'nameplateId': ?instance.nameplateId, + 'nameplateUrl': ?instance.nameplateUrl, 'ownerId': ?instance.ownerId, 'rules': ?instance.rules, 'shortCode': ?instance.shortCode, diff --git a/vrchat_dart_generated/lib/src/model/limited_user_friend.dart b/vrchat_dart_generated/lib/src/model/limited_user_friend.dart index e91b6156..cfa56b54 100644 --- a/vrchat_dart_generated/lib/src/model/limited_user_friend.dart +++ b/vrchat_dart_generated/lib/src/model/limited_user_friend.dart @@ -19,6 +19,10 @@ part 'limited_user_friend.g.dart'; class LimitedUserFriend { /// Returns a new [LimitedUserFriend] instance. LimitedUserFriend({ + this.bannerColor, + + this.bannerType, + this.bio, this.bioLinks, @@ -31,10 +35,16 @@ class LimitedUserFriend { required this.developerType, + this.discordId, + required this.displayName, required this.friendKey, + this.iconFrame, + + this.iconUrl, + required this.id, required this.imageUrl, @@ -51,8 +61,12 @@ class LimitedUserFriend { required this.location, + this.nameplateEffect, + required this.platform, + this.profileEffect, + this.profilePicOverride, this.profilePicOverrideThumbnail, @@ -66,6 +80,12 @@ class LimitedUserFriend { this.userIcon, }); + @JsonKey(name: r'bannerColor', required: false, includeIfNull: false) + final String? bannerColor; + + @JsonKey(name: r'bannerType', required: false, includeIfNull: false) + final String? bannerType; + @JsonKey(name: r'bio', required: false, includeIfNull: false) final String? bio; @@ -95,12 +115,22 @@ class LimitedUserFriend { @JsonKey(name: r'developerType', required: true, includeIfNull: false) final DeveloperType developerType; + /// https://discord.com/developers/docs/reference#snowflakes + @JsonKey(name: r'discordId', required: false, includeIfNull: false) + final String? discordId; + @JsonKey(name: r'displayName', required: true, includeIfNull: false) final String displayName; @JsonKey(name: r'friendKey', required: true, includeIfNull: false) final String friendKey; + @JsonKey(name: r'iconFrame', required: false, includeIfNull: false) + final String? iconFrame; + + @JsonKey(name: r'iconUrl', required: false, includeIfNull: false) + final String? iconUrl; + /// 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. @JsonKey(name: r'id', required: true, includeIfNull: false) final String id; @@ -127,9 +157,15 @@ class LimitedUserFriend { @JsonKey(name: r'location', required: true, includeIfNull: false) final String location; + @JsonKey(name: r'nameplateEffect', required: false, includeIfNull: false) + final String? nameplateEffect; + @JsonKey(name: r'platform', required: true, includeIfNull: false) final String platform; + @JsonKey(name: r'profileEffect', required: false, includeIfNull: false) + final String? profileEffect; + @JsonKey(name: r'profilePicOverride', required: false, includeIfNull: false) final String? profilePicOverride; @@ -157,6 +193,8 @@ class LimitedUserFriend { bool operator ==(Object other) => identical(this, other) || other is LimitedUserFriend && + other.bannerColor == bannerColor && + other.bannerType == bannerType && other.bio == bio && other.bioLinks == bioLinks && other.currentAvatarImageUrl == currentAvatarImageUrl && @@ -164,8 +202,11 @@ class LimitedUserFriend { other.currentAvatarThumbnailImageUrl == currentAvatarThumbnailImageUrl && other.developerType == developerType && + other.discordId == discordId && other.displayName == displayName && other.friendKey == friendKey && + other.iconFrame == iconFrame && + other.iconUrl == iconUrl && other.id == id && other.imageUrl == imageUrl && other.isFriend == isFriend && @@ -174,7 +215,9 @@ class LimitedUserFriend { other.lastMobile == lastMobile && other.lastPlatform == lastPlatform && other.location == location && + other.nameplateEffect == nameplateEffect && other.platform == platform && + other.profileEffect == profileEffect && other.profilePicOverride == profilePicOverride && other.profilePicOverrideThumbnail == profilePicOverrideThumbnail && other.status == status && @@ -184,14 +227,19 @@ class LimitedUserFriend { @override int get hashCode => + bannerColor.hashCode + + bannerType.hashCode + bio.hashCode + bioLinks.hashCode + currentAvatarImageUrl.hashCode + currentAvatarTags.hashCode + currentAvatarThumbnailImageUrl.hashCode + developerType.hashCode + + discordId.hashCode + displayName.hashCode + friendKey.hashCode + + iconFrame.hashCode + + iconUrl.hashCode + id.hashCode + imageUrl.hashCode + isFriend.hashCode + @@ -200,7 +248,9 @@ class LimitedUserFriend { (lastMobile == null ? 0 : lastMobile.hashCode) + lastPlatform.hashCode + location.hashCode + + nameplateEffect.hashCode + platform.hashCode + + profileEffect.hashCode + profilePicOverride.hashCode + profilePicOverrideThumbnail.hashCode + status.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/limited_user_friend.g.dart b/vrchat_dart_generated/lib/src/model/limited_user_friend.g.dart index 60c7f30b..b1abf264 100644 --- a/vrchat_dart_generated/lib/src/model/limited_user_friend.g.dart +++ b/vrchat_dart_generated/lib/src/model/limited_user_friend.g.dart @@ -34,6 +34,8 @@ LimitedUserFriend _$LimitedUserFriendFromJson(Map json) => ], ); final val = LimitedUserFriend( + bannerColor: $checkedConvert('bannerColor', (v) => v as String?), + bannerType: $checkedConvert('bannerType', (v) => v as String?), bio: $checkedConvert('bio', (v) => v as String?), bioLinks: $checkedConvert( 'bioLinks', @@ -55,8 +57,11 @@ LimitedUserFriend _$LimitedUserFriendFromJson(Map json) => 'developerType', (v) => $enumDecode(_$DeveloperTypeEnumMap, v), ), + discordId: $checkedConvert('discordId', (v) => v as String?), displayName: $checkedConvert('displayName', (v) => v as String), friendKey: $checkedConvert('friendKey', (v) => v as String), + iconFrame: $checkedConvert('iconFrame', (v) => v as String?), + iconUrl: $checkedConvert('iconUrl', (v) => v as String?), id: $checkedConvert('id', (v) => v as String), imageUrl: $checkedConvert('imageUrl', (v) => v as String), isFriend: $checkedConvert('isFriend', (v) => v as bool), @@ -74,7 +79,12 @@ LimitedUserFriend _$LimitedUserFriendFromJson(Map json) => ), lastPlatform: $checkedConvert('last_platform', (v) => v as String), location: $checkedConvert('location', (v) => v as String), + nameplateEffect: $checkedConvert( + 'nameplateEffect', + (v) => v as String?, + ), platform: $checkedConvert('platform', (v) => v as String), + profileEffect: $checkedConvert('profileEffect', (v) => v as String?), profilePicOverride: $checkedConvert( 'profilePicOverride', (v) => v as String?, @@ -110,14 +120,19 @@ LimitedUserFriend _$LimitedUserFriendFromJson(Map json) => Map _$LimitedUserFriendToJson( LimitedUserFriend instance, ) => { + 'bannerColor': ?instance.bannerColor, + 'bannerType': ?instance.bannerType, 'bio': ?instance.bio, 'bioLinks': ?instance.bioLinks, 'currentAvatarImageUrl': ?instance.currentAvatarImageUrl, 'currentAvatarTags': ?instance.currentAvatarTags, 'currentAvatarThumbnailImageUrl': ?instance.currentAvatarThumbnailImageUrl, 'developerType': _$DeveloperTypeEnumMap[instance.developerType]!, + 'discordId': ?instance.discordId, 'displayName': instance.displayName, 'friendKey': instance.friendKey, + 'iconFrame': ?instance.iconFrame, + 'iconUrl': ?instance.iconUrl, 'id': instance.id, 'imageUrl': instance.imageUrl, 'isFriend': instance.isFriend, @@ -126,7 +141,9 @@ Map _$LimitedUserFriendToJson( 'last_mobile': instance.lastMobile?.toIso8601String(), 'last_platform': instance.lastPlatform, 'location': instance.location, + 'nameplateEffect': ?instance.nameplateEffect, 'platform': instance.platform, + 'profileEffect': ?instance.profileEffect, 'profilePicOverride': ?instance.profilePicOverride, 'profilePicOverrideThumbnail': ?instance.profilePicOverrideThumbnail, 'status': _$UserStatusEnumMap[instance.status]!, diff --git a/vrchat_dart_generated/lib/src/model/limited_user_groups.dart b/vrchat_dart_generated/lib/src/model/limited_user_groups.dart index d826bfca..ec125471 100644 --- a/vrchat_dart_generated/lib/src/model/limited_user_groups.dart +++ b/vrchat_dart_generated/lib/src/model/limited_user_groups.dart @@ -47,6 +47,10 @@ class LimitedUserGroups { this.name, + this.nameplateId, + + this.nameplateUrl, + this.ownerId, this.privacy, @@ -99,6 +103,12 @@ class LimitedUserGroups { @JsonKey(name: r'name', required: false, includeIfNull: false) final String? name; + @JsonKey(name: r'nameplateId', required: false, includeIfNull: false) + final Object? nameplateId; + + @JsonKey(name: r'nameplateUrl', required: false, includeIfNull: false) + final Object? nameplateUrl; + /// 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. @JsonKey(name: r'ownerId', required: false, includeIfNull: false) final String? ownerId; @@ -128,6 +138,8 @@ class LimitedUserGroups { other.memberVisibility == memberVisibility && other.mutualGroup == mutualGroup && other.name == name && + other.nameplateId == nameplateId && + other.nameplateUrl == nameplateUrl && other.ownerId == ownerId && other.privacy == privacy && other.shortCode == shortCode; @@ -149,6 +161,8 @@ class LimitedUserGroups { memberVisibility.hashCode + mutualGroup.hashCode + name.hashCode + + (nameplateId == null ? 0 : nameplateId.hashCode) + + (nameplateUrl == null ? 0 : nameplateUrl.hashCode) + ownerId.hashCode + privacy.hashCode + shortCode.hashCode; diff --git a/vrchat_dart_generated/lib/src/model/limited_user_groups.g.dart b/vrchat_dart_generated/lib/src/model/limited_user_groups.g.dart index 30f83deb..9f04c70c 100644 --- a/vrchat_dart_generated/lib/src/model/limited_user_groups.g.dart +++ b/vrchat_dart_generated/lib/src/model/limited_user_groups.g.dart @@ -33,6 +33,8 @@ LimitedUserGroups _$LimitedUserGroupsFromJson( memberVisibility: $checkedConvert('memberVisibility', (v) => v as String?), mutualGroup: $checkedConvert('mutualGroup', (v) => v as bool?), name: $checkedConvert('name', (v) => v as String?), + nameplateId: $checkedConvert('nameplateId', (v) => v), + nameplateUrl: $checkedConvert('nameplateUrl', (v) => v), ownerId: $checkedConvert('ownerId', (v) => v as String?), privacy: $checkedConvert('privacy', (v) => v as String?), shortCode: $checkedConvert('shortCode', (v) => v as String?), @@ -57,6 +59,8 @@ Map _$LimitedUserGroupsToJson(LimitedUserGroups instance) => 'memberVisibility': ?instance.memberVisibility, 'mutualGroup': ?instance.mutualGroup, 'name': ?instance.name, + 'nameplateId': ?instance.nameplateId, + 'nameplateUrl': ?instance.nameplateUrl, 'ownerId': ?instance.ownerId, 'privacy': ?instance.privacy, 'shortCode': ?instance.shortCode, diff --git a/vrchat_dart_generated/lib/src/model/limited_world.dart b/vrchat_dart_generated/lib/src/model/limited_world.dart index 822f92ee..5f892e59 100644 --- a/vrchat_dart_generated/lib/src/model/limited_world.dart +++ b/vrchat_dart_generated/lib/src/model/limited_world.dart @@ -30,6 +30,8 @@ class LimitedWorld { this.defaultContentSettings, + this.disabledPropAbilities, + this.favorites = 0, this.heat = 0, @@ -91,6 +93,13 @@ class LimitedWorld { ) final InstanceContentSettings? defaultContentSettings; + @JsonKey( + name: r'disabledPropAbilities', + required: false, + includeIfNull: false, + ) + final List? disabledPropAbilities; + // minimum: 0 @JsonKey(name: r'favorites', required: true, includeIfNull: false) final int favorites; @@ -168,6 +177,7 @@ class LimitedWorld { other.capacity == capacity && other.createdAt == createdAt && other.defaultContentSettings == defaultContentSettings && + other.disabledPropAbilities == disabledPropAbilities && other.favorites == favorites && other.heat == heat && other.id == id && @@ -196,6 +206,7 @@ class LimitedWorld { capacity.hashCode + createdAt.hashCode + defaultContentSettings.hashCode + + disabledPropAbilities.hashCode + favorites.hashCode + heat.hashCode + id.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/limited_world.g.dart b/vrchat_dart_generated/lib/src/model/limited_world.g.dart index 20404a54..dd33edcb 100644 --- a/vrchat_dart_generated/lib/src/model/limited_world.g.dart +++ b/vrchat_dart_generated/lib/src/model/limited_world.g.dart @@ -10,108 +10,98 @@ part of 'limited_world.dart'; LimitedWorld _$LimitedWorldFromJson( Map json, -) => $checkedCreate( - 'LimitedWorld', - json, - ($checkedConvert) { - $checkKeys( - json, - requiredKeys: const [ - 'authorId', - 'authorName', - 'capacity', - 'created_at', - 'favorites', - 'heat', - 'id', - 'imageUrl', - 'labsPublicationDate', - 'name', - 'occupants', - 'organization', - 'popularity', - 'publicationDate', - 'releaseStatus', - 'tags', - 'thumbnailImageUrl', - 'unityPackages', - 'updated_at', - ], - ); - final val = LimitedWorld( - authorId: $checkedConvert('authorId', (v) => v as String), - authorName: $checkedConvert('authorName', (v) => v as String), - capacity: $checkedConvert('capacity', (v) => (v as num).toInt()), - createdAt: $checkedConvert( - 'created_at', - (v) => DateTime.parse(v as String), - ), - defaultContentSettings: $checkedConvert( - 'defaultContentSettings', - (v) => v == null - ? null - : InstanceContentSettings.fromJson(v as Map), - ), - favorites: $checkedConvert('favorites', (v) => (v as num?)?.toInt() ?? 0), - heat: $checkedConvert('heat', (v) => (v as num?)?.toInt() ?? 0), - id: $checkedConvert('id', (v) => v as String), - imageUrl: $checkedConvert('imageUrl', (v) => v as String), - labsPublicationDate: $checkedConvert( - 'labsPublicationDate', - (v) => v as String, - ), - name: $checkedConvert('name', (v) => v as String), - occupants: $checkedConvert('occupants', (v) => (v as num?)?.toInt() ?? 0), - organization: $checkedConvert( - 'organization', - (v) => v as String? ?? 'vrchat', - ), - popularity: $checkedConvert( - 'popularity', - (v) => (v as num?)?.toInt() ?? 0, - ), - previewYoutubeId: $checkedConvert( - 'previewYoutubeId', - (v) => v as String?, - ), - publicationDate: $checkedConvert('publicationDate', (v) => v as String), - recommendedCapacity: $checkedConvert( - 'recommendedCapacity', - (v) => (v as num?)?.toInt(), - ), - releaseStatus: $checkedConvert( - 'releaseStatus', - (v) => $enumDecode(_$ReleaseStatusEnumMap, v), - ), - storeId: $checkedConvert('storeId', (v) => v as String?), - tags: $checkedConvert( - 'tags', - (v) => (v as List).map((e) => e as String).toList(), - ), - thumbnailImageUrl: $checkedConvert( - 'thumbnailImageUrl', - (v) => v as String, - ), - udonProducts: $checkedConvert( - 'udonProducts', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - unityPackages: $checkedConvert( - 'unityPackages', - (v) => (v as List) - .map((e) => LimitedUnityPackage.fromJson(e as Map)) - .toList(), - ), - updatedAt: $checkedConvert( - 'updated_at', - (v) => DateTime.parse(v as String), - ), - visits: $checkedConvert('visits', (v) => (v as num?)?.toInt() ?? 0), - ); - return val; - }, - fieldKeyMap: const {'createdAt': 'created_at', 'updatedAt': 'updated_at'}, -); +) => $checkedCreate('LimitedWorld', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + 'authorId', + 'authorName', + 'capacity', + 'created_at', + 'favorites', + 'heat', + 'id', + 'imageUrl', + 'labsPublicationDate', + 'name', + 'occupants', + 'organization', + 'popularity', + 'publicationDate', + 'releaseStatus', + 'tags', + 'thumbnailImageUrl', + 'unityPackages', + 'updated_at', + ], + ); + final val = LimitedWorld( + authorId: $checkedConvert('authorId', (v) => v as String), + authorName: $checkedConvert('authorName', (v) => v as String), + capacity: $checkedConvert('capacity', (v) => (v as num).toInt()), + createdAt: $checkedConvert( + 'created_at', + (v) => DateTime.parse(v as String), + ), + defaultContentSettings: $checkedConvert( + 'defaultContentSettings', + (v) => v == null + ? null + : InstanceContentSettings.fromJson(v as Map), + ), + disabledPropAbilities: $checkedConvert( + 'disabledPropAbilities', + (v) => (v as List?)?.map((e) => e as Object).toList(), + ), + favorites: $checkedConvert('favorites', (v) => (v as num?)?.toInt() ?? 0), + heat: $checkedConvert('heat', (v) => (v as num?)?.toInt() ?? 0), + id: $checkedConvert('id', (v) => v as String), + imageUrl: $checkedConvert('imageUrl', (v) => v as String), + labsPublicationDate: $checkedConvert( + 'labsPublicationDate', + (v) => v as String, + ), + name: $checkedConvert('name', (v) => v as String), + occupants: $checkedConvert('occupants', (v) => (v as num?)?.toInt() ?? 0), + organization: $checkedConvert( + 'organization', + (v) => v as String? ?? 'vrchat', + ), + popularity: $checkedConvert('popularity', (v) => (v as num?)?.toInt() ?? 0), + previewYoutubeId: $checkedConvert('previewYoutubeId', (v) => v as String?), + publicationDate: $checkedConvert('publicationDate', (v) => v as String), + recommendedCapacity: $checkedConvert( + 'recommendedCapacity', + (v) => (v as num?)?.toInt(), + ), + releaseStatus: $checkedConvert( + 'releaseStatus', + (v) => $enumDecode(_$ReleaseStatusEnumMap, v), + ), + storeId: $checkedConvert('storeId', (v) => v as String?), + tags: $checkedConvert( + 'tags', + (v) => (v as List).map((e) => e as String).toList(), + ), + thumbnailImageUrl: $checkedConvert('thumbnailImageUrl', (v) => v as String), + udonProducts: $checkedConvert( + 'udonProducts', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + unityPackages: $checkedConvert( + 'unityPackages', + (v) => (v as List) + .map((e) => LimitedUnityPackage.fromJson(e as Map)) + .toList(), + ), + updatedAt: $checkedConvert( + 'updated_at', + (v) => DateTime.parse(v as String), + ), + visits: $checkedConvert('visits', (v) => (v as num?)?.toInt() ?? 0), + ); + return val; +}, fieldKeyMap: const {'createdAt': 'created_at', 'updatedAt': 'updated_at'}); Map _$LimitedWorldToJson(LimitedWorld instance) => { @@ -120,6 +110,7 @@ Map _$LimitedWorldToJson(LimitedWorld instance) => 'capacity': instance.capacity, 'created_at': instance.createdAt.toIso8601String(), 'defaultContentSettings': ?instance.defaultContentSettings?.toJson(), + 'disabledPropAbilities': ?instance.disabledPropAbilities, 'favorites': instance.favorites, 'heat': instance.heat, 'id': instance.id, diff --git a/vrchat_dart_generated/lib/src/model/mutual_friend.dart b/vrchat_dart_generated/lib/src/model/mutual_friend.dart index 05b37a19..213a12bb 100644 --- a/vrchat_dart_generated/lib/src/model/mutual_friend.dart +++ b/vrchat_dart_generated/lib/src/model/mutual_friend.dart @@ -20,6 +20,10 @@ class MutualFriend { MutualFriend({ this.avatarThumbnail, + this.bannerColor, + + this.bannerType, + required this.currentAvatarImageUrl, this.currentAvatarTags, @@ -28,10 +32,18 @@ class MutualFriend { required this.displayName, + this.iconFrame, + + this.iconUrl, + required this.id, required this.imageUrl, + this.nameplateEffect, + + this.profileEffect, + this.profilePicOverride, required this.status, @@ -43,6 +55,13 @@ class MutualFriend { @JsonKey(name: r'avatarThumbnail', required: false, includeIfNull: false) final String? avatarThumbnail; + /// Hex colour without a leading `#`. + @JsonKey(name: r'bannerColor', required: false, includeIfNull: false) + final String? bannerColor; + + @JsonKey(name: r'bannerType', required: false, includeIfNull: false) + final String? bannerType; + /// When profilePicOverride is not empty, use it instead. @JsonKey(name: r'currentAvatarImageUrl', required: true, includeIfNull: false) final String currentAvatarImageUrl; @@ -61,6 +80,12 @@ class MutualFriend { @JsonKey(name: r'displayName', required: true, includeIfNull: false) final String displayName; + @JsonKey(name: r'iconFrame', required: false, includeIfNull: false) + final String? iconFrame; + + @JsonKey(name: r'iconUrl', required: false, includeIfNull: false) + final String? iconUrl; + /// 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. @JsonKey(name: r'id', required: true, includeIfNull: false) final String id; @@ -68,6 +93,12 @@ class MutualFriend { @JsonKey(name: r'imageUrl', required: true, includeIfNull: false) final String imageUrl; + @JsonKey(name: r'nameplateEffect', required: false, includeIfNull: false) + final String? nameplateEffect; + + @JsonKey(name: r'profileEffect', required: false, includeIfNull: false) + final String? profileEffect; + @JsonKey(name: r'profilePicOverride', required: false, includeIfNull: false) final String? profilePicOverride; @@ -82,13 +113,19 @@ class MutualFriend { identical(this, other) || other is MutualFriend && other.avatarThumbnail == avatarThumbnail && + other.bannerColor == bannerColor && + other.bannerType == bannerType && other.currentAvatarImageUrl == currentAvatarImageUrl && other.currentAvatarTags == currentAvatarTags && other.currentAvatarThumbnailImageUrl == currentAvatarThumbnailImageUrl && other.displayName == displayName && + other.iconFrame == iconFrame && + other.iconUrl == iconUrl && other.id == id && other.imageUrl == imageUrl && + other.nameplateEffect == nameplateEffect && + other.profileEffect == profileEffect && other.profilePicOverride == profilePicOverride && other.status == status && other.statusDescription == statusDescription; @@ -96,12 +133,18 @@ class MutualFriend { @override int get hashCode => avatarThumbnail.hashCode + + bannerColor.hashCode + + bannerType.hashCode + currentAvatarImageUrl.hashCode + currentAvatarTags.hashCode + currentAvatarThumbnailImageUrl.hashCode + displayName.hashCode + + iconFrame.hashCode + + iconUrl.hashCode + id.hashCode + imageUrl.hashCode + + nameplateEffect.hashCode + + profileEffect.hashCode + profilePicOverride.hashCode + status.hashCode + statusDescription.hashCode; diff --git a/vrchat_dart_generated/lib/src/model/mutual_friend.g.dart b/vrchat_dart_generated/lib/src/model/mutual_friend.g.dart index 309769c4..dd502226 100644 --- a/vrchat_dart_generated/lib/src/model/mutual_friend.g.dart +++ b/vrchat_dart_generated/lib/src/model/mutual_friend.g.dart @@ -24,6 +24,8 @@ MutualFriend _$MutualFriendFromJson( ); final val = MutualFriend( avatarThumbnail: $checkedConvert('avatarThumbnail', (v) => v as String?), + bannerColor: $checkedConvert('bannerColor', (v) => v as String?), + bannerType: $checkedConvert('bannerType', (v) => v as String?), currentAvatarImageUrl: $checkedConvert( 'currentAvatarImageUrl', (v) => v as String, @@ -37,8 +39,12 @@ MutualFriend _$MutualFriendFromJson( (v) => v as String?, ), displayName: $checkedConvert('displayName', (v) => v as String), + iconFrame: $checkedConvert('iconFrame', (v) => v as String?), + iconUrl: $checkedConvert('iconUrl', (v) => v as String?), id: $checkedConvert('id', (v) => v as String), imageUrl: $checkedConvert('imageUrl', (v) => v as String), + nameplateEffect: $checkedConvert('nameplateEffect', (v) => v as String?), + profileEffect: $checkedConvert('profileEffect', (v) => v as String?), profilePicOverride: $checkedConvert( 'profilePicOverride', (v) => v as String?, @@ -56,12 +62,18 @@ Map _$MutualFriendToJson( MutualFriend instance, ) => { 'avatarThumbnail': ?instance.avatarThumbnail, + 'bannerColor': ?instance.bannerColor, + 'bannerType': ?instance.bannerType, 'currentAvatarImageUrl': instance.currentAvatarImageUrl, 'currentAvatarTags': ?instance.currentAvatarTags, 'currentAvatarThumbnailImageUrl': ?instance.currentAvatarThumbnailImageUrl, 'displayName': instance.displayName, + 'iconFrame': ?instance.iconFrame, + 'iconUrl': ?instance.iconUrl, 'id': instance.id, 'imageUrl': instance.imageUrl, + 'nameplateEffect': ?instance.nameplateEffect, + 'profileEffect': ?instance.profileEffect, 'profilePicOverride': ?instance.profilePicOverride, 'status': _$UserStatusEnumMap[instance.status]!, 'statusDescription': instance.statusDescription, diff --git a/vrchat_dart_generated/lib/src/model/notification.dart b/vrchat_dart_generated/lib/src/model/notification.dart index d552ca53..a860beb6 100644 --- a/vrchat_dart_generated/lib/src/model/notification.dart +++ b/vrchat_dart_generated/lib/src/model/notification.dart @@ -63,8 +63,7 @@ class Notification { @JsonKey(name: r'senderUserId', required: true, includeIfNull: false) final String senderUserId; - /// -| **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). - @Deprecated('senderUsername has been deprecated') + /// The name of the user who sent the notification. @JsonKey(name: r'senderUsername', required: false, includeIfNull: false) final String? senderUsername; @@ -94,7 +93,7 @@ class Notification { receiverUserId.hashCode + seen.hashCode + senderUserId.hashCode + - senderUsername.hashCode + + (senderUsername == null ? 0 : senderUsername.hashCode) + type.hashCode; factory Notification.fromJson(Map json) => diff --git a/vrchat_dart_generated/lib/src/model/notification_v2.dart b/vrchat_dart_generated/lib/src/model/notification_v2.dart index 41201eda..6aa86797 100644 --- a/vrchat_dart_generated/lib/src/model/notification_v2.dart +++ b/vrchat_dart_generated/lib/src/model/notification_v2.dart @@ -30,6 +30,8 @@ class NotificationV2 { this.details, + this.displayData, + required this.expiresAt, required this.expiryAfterSeen, @@ -92,6 +94,9 @@ class NotificationV2 { @JsonKey(name: r'details', required: false, includeIfNull: false) final NotificationV2DetailsBoop? details; + @JsonKey(name: r'displayData', required: false, includeIfNull: false) + final Object? displayData; + @JsonKey(name: r'expiresAt', required: true, includeIfNull: false) final DateTime expiresAt; @@ -110,11 +115,11 @@ class NotificationV2 { @JsonKey(name: r'isSystem', required: true, includeIfNull: false) final bool isSystem; - @JsonKey(name: r'link', required: true, includeIfNull: false) - final String link; + @JsonKey(name: r'link', required: true, includeIfNull: true) + final String? link; - @JsonKey(name: r'linkText', required: true, includeIfNull: false) - final String linkText; + @JsonKey(name: r'linkText', required: true, includeIfNull: true) + final String? linkText; @JsonKey(name: r'linkTextKey', required: true, includeIfNull: true) final String? linkTextKey; @@ -172,6 +177,7 @@ class NotificationV2 { other.createdAt == createdAt && other.data == data && other.details == details && + other.displayData == displayData && other.expiresAt == expiresAt && other.expiryAfterSeen == expiryAfterSeen && other.id == id && @@ -203,14 +209,15 @@ class NotificationV2 { createdAt.hashCode + data.hashCode + details.hashCode + + (displayData == null ? 0 : displayData.hashCode) + expiresAt.hashCode + (expiryAfterSeen == null ? 0 : expiryAfterSeen.hashCode) + id.hashCode + ignoreDND.hashCode + (imageUrl == null ? 0 : imageUrl.hashCode) + isSystem.hashCode + - link.hashCode + - linkText.hashCode + + (link == null ? 0 : link.hashCode) + + (linkText == null ? 0 : linkText.hashCode) + (linkTextKey == null ? 0 : linkTextKey.hashCode) + message.hashCode + (messageKey == null ? 0 : messageKey.hashCode) + diff --git a/vrchat_dart_generated/lib/src/model/notification_v2.g.dart b/vrchat_dart_generated/lib/src/model/notification_v2.g.dart index 2009737e..757fb8cd 100644 --- a/vrchat_dart_generated/lib/src/model/notification_v2.g.dart +++ b/vrchat_dart_generated/lib/src/model/notification_v2.g.dart @@ -53,6 +53,7 @@ NotificationV2 _$NotificationV2FromJson( ? null : NotificationV2DetailsBoop.fromJson(v as Map), ), + displayData: $checkedConvert('displayData', (v) => v), expiresAt: $checkedConvert('expiresAt', (v) => DateTime.parse(v as String)), expiryAfterSeen: $checkedConvert( 'expiryAfterSeen', @@ -62,8 +63,8 @@ NotificationV2 _$NotificationV2FromJson( ignoreDND: $checkedConvert('ignoreDND', (v) => v as bool), imageUrl: $checkedConvert('imageUrl', (v) => v as String?), isSystem: $checkedConvert('isSystem', (v) => v as bool), - link: $checkedConvert('link', (v) => v as String), - linkText: $checkedConvert('linkText', (v) => v as String), + link: $checkedConvert('link', (v) => v as String?), + linkText: $checkedConvert('linkText', (v) => v as String?), linkTextKey: $checkedConvert('linkTextKey', (v) => v as String?), message: $checkedConvert('message', (v) => v as String), messageKey: $checkedConvert('messageKey', (v) => v as String?), @@ -103,6 +104,7 @@ Map _$NotificationV2ToJson(NotificationV2 instance) => 'createdAt': instance.createdAt.toIso8601String(), 'data': instance.data, 'details': ?instance.details?.toJson(), + 'displayData': ?instance.displayData, 'expiresAt': instance.expiresAt.toIso8601String(), 'expiryAfterSeen': instance.expiryAfterSeen, 'id': instance.id, diff --git a/vrchat_dart_generated/lib/src/model/o_auth_redirect_code.dart b/vrchat_dart_generated/lib/src/model/o_auth_redirect_code.dart new file mode 100644 index 00000000..92bed82d --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/o_auth_redirect_code.dart @@ -0,0 +1,41 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'o_auth_redirect_code.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class OAuthRedirectCode { + /// Returns a new [OAuthRedirectCode] instance. + OAuthRedirectCode({required this.code}); + + @JsonKey(name: r'code', required: true, includeIfNull: false) + final String code; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is OAuthRedirectCode && other.code == code; + + @override + int get hashCode => code.hashCode; + + factory OAuthRedirectCode.fromJson(Map json) => + _$OAuthRedirectCodeFromJson(json); + + Map toJson() => _$OAuthRedirectCodeToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/o_auth_redirect_code.g.dart b/vrchat_dart_generated/lib/src/model/o_auth_redirect_code.g.dart new file mode 100644 index 00000000..81ea76b3 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/o_auth_redirect_code.g.dart @@ -0,0 +1,21 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'o_auth_redirect_code.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +OAuthRedirectCode _$OAuthRedirectCodeFromJson(Map json) => + $checkedCreate('OAuthRedirectCode', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['code']); + final val = OAuthRedirectCode( + code: $checkedConvert('code', (v) => v as String), + ); + return val; + }); + +Map _$OAuthRedirectCodeToJson(OAuthRedirectCode instance) => + {'code': instance.code}; diff --git a/vrchat_dart_generated/lib/src/model/private_profile.dart b/vrchat_dart_generated/lib/src/model/private_profile.dart index b0dd9ad8..9827cff9 100644 --- a/vrchat_dart_generated/lib/src/model/private_profile.dart +++ b/vrchat_dart_generated/lib/src/model/private_profile.dart @@ -21,6 +21,8 @@ class PrivateProfile { PrivateProfile({ this.activity, + this.friendRequestStatus, + this.id, this.isFriend, @@ -35,6 +37,10 @@ class PrivateProfile { @JsonKey(name: r'activity', required: false, includeIfNull: false) final PrivateProfileActivity? activity; + /// State of a friend request between the caller and this user. VRChat sends the string `\"null\"`, not JSON `null`. + @JsonKey(name: r'friendRequestStatus', required: false, includeIfNull: false) + final String? friendRequestStatus; + /// 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. @JsonKey(name: r'id', required: false, includeIfNull: false) final String? id; @@ -56,6 +62,7 @@ class PrivateProfile { identical(this, other) || other is PrivateProfile && other.activity == activity && + other.friendRequestStatus == friendRequestStatus && other.id == id && other.isFriend == isFriend && other.note == note && @@ -65,9 +72,10 @@ class PrivateProfile { @override int get hashCode => activity.hashCode + + friendRequestStatus.hashCode + id.hashCode + isFriend.hashCode + - note.hashCode + + (note == null ? 0 : note.hashCode) + status.hashCode + statusDescription.hashCode; diff --git a/vrchat_dart_generated/lib/src/model/private_profile.g.dart b/vrchat_dart_generated/lib/src/model/private_profile.g.dart index 3d6e3922..b3eae400 100644 --- a/vrchat_dart_generated/lib/src/model/private_profile.g.dart +++ b/vrchat_dart_generated/lib/src/model/private_profile.g.dart @@ -17,6 +17,10 @@ PrivateProfile _$PrivateProfileFromJson(Map json) => ? null : PrivateProfileActivity.fromJson(v as Map), ), + friendRequestStatus: $checkedConvert( + 'friendRequestStatus', + (v) => v as String?, + ), id: $checkedConvert('id', (v) => v as String?), isFriend: $checkedConvert('isFriend', (v) => v as bool?), note: $checkedConvert('note', (v) => v as String?), @@ -35,6 +39,7 @@ PrivateProfile _$PrivateProfileFromJson(Map json) => Map _$PrivateProfileToJson(PrivateProfile instance) => { 'activity': ?instance.activity?.toJson(), + 'friendRequestStatus': ?instance.friendRequestStatus, 'id': ?instance.id, 'isFriend': ?instance.isFriend, 'note': ?instance.note, diff --git a/vrchat_dart_generated/lib/src/model/product_listing.dart b/vrchat_dart_generated/lib/src/model/product_listing.dart index 43a3c980..147772d6 100644 --- a/vrchat_dart_generated/lib/src/model/product_listing.dart +++ b/vrchat_dart_generated/lib/src/model/product_listing.dart @@ -6,6 +6,7 @@ import 'package:vrchat_dart_generated/src/model/product_type.dart'; import 'package:vrchat_dart_generated/src/model/product.dart'; import 'package:vrchat_dart_generated/src/model/product_listing_variant.dart'; +import 'package:vrchat_dart_generated/src/model/product_listing_attribution.dart'; import 'package:vrchat_dart_generated/src/model/product_listing_type.dart'; import 'package:json_annotation/json_annotation.dart'; @@ -25,8 +26,14 @@ class ProductListing { this.archived, + this.attribution, + required this.buyerRefundable, + this.collabUserDisplayName, + + this.collabUserId, + this.created, required this.description, @@ -45,6 +52,10 @@ class ProductListing { required this.hasAvatar, + this.hasCompanion, + + this.hasInventory, + required this.hasUdon, this.hydratedProducts, @@ -67,6 +78,8 @@ class ProductListing { required this.productType, + this.productTypes, + required this.products, this.purchaseCount, @@ -106,9 +119,23 @@ class ProductListing { @JsonKey(name: r'archived', required: false, includeIfNull: false) final bool? archived; + @JsonKey(name: r'attribution', required: false, includeIfNull: false) + final ProductListingAttribution? attribution; + @JsonKey(name: r'buyerRefundable', required: true, includeIfNull: false) final bool buyerRefundable; + @JsonKey( + name: r'collabUserDisplayName', + required: false, + includeIfNull: false, + ) + final String? collabUserDisplayName; + + /// 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. + @JsonKey(name: r'collabUserId', required: false, includeIfNull: false) + final String? collabUserId; + @JsonKey(name: r'created', required: false, includeIfNull: false) final DateTime? created; @@ -136,6 +163,12 @@ class ProductListing { @JsonKey(name: r'hasAvatar', required: true, includeIfNull: false) final bool hasAvatar; + @JsonKey(name: r'hasCompanion', required: false, includeIfNull: false) + final bool? hasCompanion; + + @JsonKey(name: r'hasInventory', required: false, includeIfNull: false) + final bool? hasInventory; + @JsonKey(name: r'hasUdon', required: true, includeIfNull: false) final bool hasUdon; @@ -169,8 +202,12 @@ class ProductListing { @JsonKey(name: r'productType', required: true, includeIfNull: false) final ProductType productType; + @JsonKey(name: r'productTypes', required: false, includeIfNull: false) + final List? productTypes; + + /// Product ids. The products themselves arrive in `hydratedProducts`. @JsonKey(name: r'products', required: true, includeIfNull: false) - final List products; + final List products; @JsonKey(name: r'purchaseCount', required: false, includeIfNull: false) final int? purchaseCount; @@ -227,7 +264,10 @@ class ProductListing { other is ProductListing && other.active == active && other.archived == archived && + other.attribution == attribution && other.buyerRefundable == buyerRefundable && + other.collabUserDisplayName == collabUserDisplayName && + other.collabUserId == collabUserId && other.created == created && other.description == description && other.displayName == displayName && @@ -237,6 +277,8 @@ class ProductListing { other.groupId == groupId && other.groupName == groupName && other.hasAvatar == hasAvatar && + other.hasCompanion == hasCompanion && + other.hasInventory == hasInventory && other.hasUdon == hasUdon && other.hydratedProducts == hydratedProducts && other.id == id && @@ -248,6 +290,7 @@ class ProductListing { other.priceTokens == priceTokens && other.productIds == productIds && other.productType == productType && + other.productTypes == productTypes && other.products == products && other.purchaseCount == purchaseCount && other.purchaseCountQuantity == purchaseCountQuantity && @@ -269,7 +312,10 @@ class ProductListing { int get hashCode => active.hashCode + archived.hashCode + + attribution.hashCode + buyerRefundable.hashCode + + (collabUserDisplayName == null ? 0 : collabUserDisplayName.hashCode) + + collabUserId.hashCode + created.hashCode + description.hashCode + displayName.hashCode + @@ -279,6 +325,8 @@ class ProductListing { groupId.hashCode + (groupName == null ? 0 : groupName.hashCode) + hasAvatar.hashCode + + hasCompanion.hashCode + + hasInventory.hashCode + hasUdon.hashCode + hydratedProducts.hashCode + id.hashCode + @@ -290,6 +338,7 @@ class ProductListing { priceTokens.hashCode + productIds.hashCode + productType.hashCode + + productTypes.hashCode + products.hashCode + purchaseCount.hashCode + purchaseCountQuantity.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/product_listing.g.dart b/vrchat_dart_generated/lib/src/model/product_listing.g.dart index 60f7ec9c..f5ec8a69 100644 --- a/vrchat_dart_generated/lib/src/model/product_listing.g.dart +++ b/vrchat_dart_generated/lib/src/model/product_listing.g.dart @@ -36,7 +36,18 @@ ProductListing _$ProductListingFromJson(Map json) => final val = ProductListing( active: $checkedConvert('active', (v) => v as bool), archived: $checkedConvert('archived', (v) => v as bool?), + attribution: $checkedConvert( + 'attribution', + (v) => v == null + ? null + : ProductListingAttribution.fromJson(v as Map), + ), buyerRefundable: $checkedConvert('buyerRefundable', (v) => v as bool), + collabUserDisplayName: $checkedConvert( + 'collabUserDisplayName', + (v) => v as String?, + ), + collabUserId: $checkedConvert('collabUserId', (v) => v as String?), created: $checkedConvert( 'created', (v) => v == null ? null : DateTime.parse(v as String), @@ -49,6 +60,8 @@ ProductListing _$ProductListingFromJson(Map json) => groupId: $checkedConvert('groupId', (v) => v as String?), groupName: $checkedConvert('groupName', (v) => v as String?), hasAvatar: $checkedConvert('hasAvatar', (v) => v as bool), + hasCompanion: $checkedConvert('hasCompanion', (v) => v as bool?), + hasInventory: $checkedConvert('hasInventory', (v) => v as bool?), hasUdon: $checkedConvert('hasUdon', (v) => v as bool), hydratedProducts: $checkedConvert( 'hydratedProducts', @@ -82,9 +95,13 @@ ProductListing _$ProductListingFromJson(Map json) => 'productType', (v) => $enumDecode(_$ProductTypeEnumMap, v), ), + productTypes: $checkedConvert( + 'productTypes', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), products: $checkedConvert( 'products', - (v) => (v as List).map((e) => e as Object).toList(), + (v) => (v as List).map((e) => e as String).toList(), ), purchaseCount: $checkedConvert( 'purchaseCount', @@ -134,7 +151,10 @@ Map _$ProductListingToJson( ) => { 'active': instance.active, 'archived': ?instance.archived, + 'attribution': ?instance.attribution?.toJson(), 'buyerRefundable': instance.buyerRefundable, + 'collabUserDisplayName': ?instance.collabUserDisplayName, + 'collabUserId': ?instance.collabUserId, 'created': ?instance.created?.toIso8601String(), 'description': instance.description, 'displayName': instance.displayName, @@ -144,6 +164,8 @@ Map _$ProductListingToJson( 'groupId': ?instance.groupId, 'groupName': ?instance.groupName, 'hasAvatar': instance.hasAvatar, + 'hasCompanion': ?instance.hasCompanion, + 'hasInventory': ?instance.hasInventory, 'hasUdon': instance.hasUdon, 'hydratedProducts': ?instance.hydratedProducts ?.map((e) => e.toJson()) @@ -157,6 +179,7 @@ Map _$ProductListingToJson( 'priceTokens': instance.priceTokens, 'productIds': instance.productIds, 'productType': _$ProductTypeEnumMap[instance.productType]!, + 'productTypes': ?instance.productTypes, 'products': instance.products, 'purchaseCount': ?instance.purchaseCount, 'purchaseCountQuantity': ?instance.purchaseCountQuantity, diff --git a/vrchat_dart_generated/lib/src/model/product_listing_attribution.dart b/vrchat_dart_generated/lib/src/model/product_listing_attribution.dart new file mode 100644 index 00000000..0c05ea47 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/product_listing_attribution.dart @@ -0,0 +1,47 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/product_listing_attribution_creator.dart'; + +import 'package:json_annotation/json_annotation.dart'; + +part 'product_listing_attribution.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class ProductListingAttribution { + /// Returns a new [ProductListingAttribution] instance. + ProductListingAttribution({this.creator, this.publisher}); + + @JsonKey(name: r'creator', required: false, includeIfNull: false) + final ProductListingAttributionCreator? creator; + + @JsonKey(name: r'publisher', required: false, includeIfNull: false) + final ProductListingAttributionCreator? publisher; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is ProductListingAttribution && + other.creator == creator && + other.publisher == publisher; + + @override + int get hashCode => creator.hashCode + publisher.hashCode; + + factory ProductListingAttribution.fromJson(Map json) => + _$ProductListingAttributionFromJson(json); + + Map toJson() => _$ProductListingAttributionToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/product_listing_attribution.g.dart b/vrchat_dart_generated/lib/src/model/product_listing_attribution.g.dart new file mode 100644 index 00000000..ee0c244a --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/product_listing_attribution.g.dart @@ -0,0 +1,40 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'product_listing_attribution.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ProductListingAttribution _$ProductListingAttributionFromJson( + Map json, +) => $checkedCreate('ProductListingAttribution', json, ($checkedConvert) { + final val = ProductListingAttribution( + creator: $checkedConvert( + 'creator', + (v) => v == null + ? null + : ProductListingAttributionCreator.fromJson( + v as Map, + ), + ), + publisher: $checkedConvert( + 'publisher', + (v) => v == null + ? null + : ProductListingAttributionCreator.fromJson( + v as Map, + ), + ), + ); + return val; +}); + +Map _$ProductListingAttributionToJson( + ProductListingAttribution instance, +) => { + 'creator': ?instance.creator?.toJson(), + 'publisher': ?instance.publisher?.toJson(), +}; diff --git a/vrchat_dart_generated/lib/src/model/product_listing_attribution_creator.dart b/vrchat_dart_generated/lib/src/model/product_listing_attribution_creator.dart new file mode 100644 index 00000000..cb30c893 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/product_listing_attribution_creator.dart @@ -0,0 +1,49 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'product_listing_attribution_creator.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class ProductListingAttributionCreator { + /// Returns a new [ProductListingAttributionCreator] instance. + ProductListingAttributionCreator({this.customName, this.userId}); + + @JsonKey(name: r'customName', required: false, includeIfNull: false) + final String? customName; + + /// 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. + @JsonKey(name: r'userId', required: false, includeIfNull: false) + final String? userId; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is ProductListingAttributionCreator && + other.customName == customName && + other.userId == userId; + + @override + int get hashCode => customName.hashCode + userId.hashCode; + + factory ProductListingAttributionCreator.fromJson( + Map json, + ) => _$ProductListingAttributionCreatorFromJson(json); + + Map toJson() => + _$ProductListingAttributionCreatorToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/product_listing_attribution_creator.g.dart b/vrchat_dart_generated/lib/src/model/product_listing_attribution_creator.g.dart new file mode 100644 index 00000000..7cc82137 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/product_listing_attribution_creator.g.dart @@ -0,0 +1,27 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'product_listing_attribution_creator.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ProductListingAttributionCreator _$ProductListingAttributionCreatorFromJson( + Map json, +) => + $checkedCreate('ProductListingAttributionCreator', json, ($checkedConvert) { + final val = ProductListingAttributionCreator( + customName: $checkedConvert('customName', (v) => v as String?), + userId: $checkedConvert('userId', (v) => v as String?), + ); + return val; + }); + +Map _$ProductListingAttributionCreatorToJson( + ProductListingAttributionCreator instance, +) => { + 'customName': ?instance.customName, + 'userId': ?instance.userId, +}; diff --git a/vrchat_dart_generated/lib/src/model/prop.g.dart b/vrchat_dart_generated/lib/src/model/prop.g.dart index 751a6bf1..96fea312 100644 --- a/vrchat_dart_generated/lib/src/model/prop.g.dart +++ b/vrchat_dart_generated/lib/src/model/prop.g.dart @@ -8,79 +8,73 @@ part of 'prop.dart'; // JsonSerializableGenerator // ************************************************************************** -Prop _$PropFromJson(Map json) => $checkedCreate( - 'Prop', - json, - ($checkedConvert) { - $checkKeys( - json, - requiredKeys: const [ - '_created_at', - '_updated_at', - 'authorId', - 'authorName', - 'description', - 'id', - 'imageUrl', - 'maxCountPerUser', - 'name', - 'releaseStatus', - 'spawnType', - 'tags', - 'thumbnailImageUrl', - 'unityPackageUrl', - 'unityPackages', - 'worldPlacementMask', - ], - ); - final val = Prop( - createdAt: $checkedConvert( - '_created_at', - (v) => DateTime.parse(v as String), - ), - updatedAt: $checkedConvert( - '_updated_at', - (v) => DateTime.parse(v as String), - ), - authorId: $checkedConvert('authorId', (v) => v as String), - authorName: $checkedConvert('authorName', (v) => v as String), - description: $checkedConvert('description', (v) => v as String), - id: $checkedConvert('id', (v) => v as String), - imageUrl: $checkedConvert('imageUrl', (v) => v as String), - maxCountPerUser: $checkedConvert( - 'maxCountPerUser', - (v) => (v as num?)?.toInt() ?? 1, - ), - name: $checkedConvert('name', (v) => v as String), - releaseStatus: $checkedConvert( - 'releaseStatus', - (v) => $enumDecode(_$ReleaseStatusEnumMap, v), - ), - spawnType: $checkedConvert('spawnType', (v) => (v as num?)?.toInt() ?? 1), - tags: $checkedConvert( - 'tags', - (v) => (v as List).map((e) => e as String).toList(), - ), - thumbnailImageUrl: $checkedConvert( - 'thumbnailImageUrl', - (v) => v as String, - ), - unityPackageUrl: $checkedConvert('unityPackageUrl', (v) => v as String?), - unityPackages: $checkedConvert( - 'unityPackages', - (v) => (v as List) - .map((e) => PropUnityPackage.fromJson(e as Map)) - .toSet(), - ), - worldPlacementMask: $checkedConvert( - 'worldPlacementMask', - (v) => (v as num?)?.toInt() ?? 1, - ), - ); - return val; - }, - fieldKeyMap: const {'createdAt': '_created_at', 'updatedAt': '_updated_at'}, -); +Prop _$PropFromJson(Map json) => $checkedCreate('Prop', json, ( + $checkedConvert, +) { + $checkKeys( + json, + requiredKeys: const [ + '_created_at', + '_updated_at', + 'authorId', + 'authorName', + 'description', + 'id', + 'imageUrl', + 'maxCountPerUser', + 'name', + 'releaseStatus', + 'spawnType', + 'tags', + 'thumbnailImageUrl', + 'unityPackageUrl', + 'unityPackages', + 'worldPlacementMask', + ], + ); + final val = Prop( + createdAt: $checkedConvert( + '_created_at', + (v) => DateTime.parse(v as String), + ), + updatedAt: $checkedConvert( + '_updated_at', + (v) => DateTime.parse(v as String), + ), + authorId: $checkedConvert('authorId', (v) => v as String), + authorName: $checkedConvert('authorName', (v) => v as String), + description: $checkedConvert('description', (v) => v as String), + id: $checkedConvert('id', (v) => v as String), + imageUrl: $checkedConvert('imageUrl', (v) => v as String), + maxCountPerUser: $checkedConvert( + 'maxCountPerUser', + (v) => (v as num?)?.toInt() ?? 1, + ), + name: $checkedConvert('name', (v) => v as String), + releaseStatus: $checkedConvert( + 'releaseStatus', + (v) => $enumDecode(_$ReleaseStatusEnumMap, v), + ), + spawnType: $checkedConvert('spawnType', (v) => (v as num?)?.toInt() ?? 1), + tags: $checkedConvert( + 'tags', + (v) => (v as List).map((e) => e as String).toList(), + ), + thumbnailImageUrl: $checkedConvert('thumbnailImageUrl', (v) => v as String), + unityPackageUrl: $checkedConvert('unityPackageUrl', (v) => v as String?), + unityPackages: $checkedConvert( + 'unityPackages', + (v) => (v as List) + .map((e) => PropUnityPackage.fromJson(e as Map)) + .toSet(), + ), + worldPlacementMask: $checkedConvert( + 'worldPlacementMask', + (v) => (v as num?)?.toInt() ?? 1, + ), + ); + return val; +}, fieldKeyMap: const {'createdAt': '_created_at', 'updatedAt': '_updated_at'}); Map _$PropToJson(Prop instance) => { '_created_at': instance.createdAt.toIso8601String(), diff --git a/vrchat_dart_generated/lib/src/model/public_profile.dart b/vrchat_dart_generated/lib/src/model/public_profile.dart index 6daa7a50..ebfd351d 100644 --- a/vrchat_dart_generated/lib/src/model/public_profile.dart +++ b/vrchat_dart_generated/lib/src/model/public_profile.dart @@ -178,7 +178,7 @@ class PublicProfile { nameplateEffect.hashCode + profileEffect.hashCode + pronouns.hashCode + - (representedGroup == null ? 0 : representedGroup.hashCode) + + representedGroup.hashCode + themeId.hashCode + trustTags.hashCode; diff --git a/vrchat_dart_generated/lib/src/model/report_category.dart b/vrchat_dart_generated/lib/src/model/report_category.dart index ecaa19f4..b57788d7 100644 --- a/vrchat_dart_generated/lib/src/model/report_category.dart +++ b/vrchat_dart_generated/lib/src/model/report_category.dart @@ -19,6 +19,10 @@ class ReportCategory { ReportCategory({ this.description, + this.ipsArticle, + + this.order, + required this.text, this.title, @@ -30,6 +34,12 @@ class ReportCategory { @JsonKey(name: r'description', required: false, includeIfNull: false) final String? description; + @JsonKey(name: r'ipsArticle', required: false, includeIfNull: false) + final String? ipsArticle; + + @JsonKey(name: r'order', required: false, includeIfNull: false) + final int? order; + /// The label of the report category @JsonKey(name: r'text', required: true, includeIfNull: false) final String text; @@ -47,13 +57,20 @@ class ReportCategory { identical(this, other) || other is ReportCategory && other.description == description && + other.ipsArticle == ipsArticle && + other.order == order && other.text == text && other.title == title && other.tooltip == tooltip; @override int get hashCode => - description.hashCode + text.hashCode + title.hashCode + tooltip.hashCode; + description.hashCode + + ipsArticle.hashCode + + order.hashCode + + text.hashCode + + title.hashCode + + tooltip.hashCode; factory ReportCategory.fromJson(Map json) => _$ReportCategoryFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/report_category.g.dart b/vrchat_dart_generated/lib/src/model/report_category.g.dart index 69b37795..3c56b460 100644 --- a/vrchat_dart_generated/lib/src/model/report_category.g.dart +++ b/vrchat_dart_generated/lib/src/model/report_category.g.dart @@ -13,6 +13,8 @@ ReportCategory _$ReportCategoryFromJson(Map json) => $checkKeys(json, requiredKeys: const ['text', 'tooltip']); final val = ReportCategory( description: $checkedConvert('description', (v) => v as String?), + ipsArticle: $checkedConvert('ipsArticle', (v) => v as String?), + order: $checkedConvert('order', (v) => (v as num?)?.toInt()), text: $checkedConvert('text', (v) => v as String), title: $checkedConvert('title', (v) => v as String?), tooltip: $checkedConvert('tooltip', (v) => v as String), @@ -23,6 +25,8 @@ ReportCategory _$ReportCategoryFromJson(Map json) => Map _$ReportCategoryToJson(ReportCategory instance) => { 'description': ?instance.description, + 'ipsArticle': ?instance.ipsArticle, + 'order': ?instance.order, 'text': instance.text, 'title': ?instance.title, 'tooltip': instance.tooltip, diff --git a/vrchat_dart_generated/lib/src/model/report_reason.dart b/vrchat_dart_generated/lib/src/model/report_reason.dart index 10b7486c..f73ca43b 100644 --- a/vrchat_dart_generated/lib/src/model/report_reason.dart +++ b/vrchat_dart_generated/lib/src/model/report_reason.dart @@ -16,7 +16,10 @@ part 'report_reason.g.dart'; ) class ReportReason { /// Returns a new [ReportReason] instance. - ReportReason({required this.text, required this.tooltip}); + ReportReason({this.policy, required this.text, required this.tooltip}); + + @JsonKey(name: r'policy', required: false, includeIfNull: false) + final List? policy; /// The label or name of the report reason @JsonKey(name: r'text', required: true, includeIfNull: false) @@ -29,10 +32,13 @@ class ReportReason { @override bool operator ==(Object other) => identical(this, other) || - other is ReportReason && other.text == text && other.tooltip == tooltip; + other is ReportReason && + other.policy == policy && + other.text == text && + other.tooltip == tooltip; @override - int get hashCode => text.hashCode + tooltip.hashCode; + int get hashCode => policy.hashCode + text.hashCode + tooltip.hashCode; factory ReportReason.fromJson(Map json) => _$ReportReasonFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/report_reason.g.dart b/vrchat_dart_generated/lib/src/model/report_reason.g.dart index ff87293d..87c1e6e9 100644 --- a/vrchat_dart_generated/lib/src/model/report_reason.g.dart +++ b/vrchat_dart_generated/lib/src/model/report_reason.g.dart @@ -12,6 +12,10 @@ ReportReason _$ReportReasonFromJson(Map json) => $checkedCreate('ReportReason', json, ($checkedConvert) { $checkKeys(json, requiredKeys: const ['text', 'tooltip']); final val = ReportReason( + policy: $checkedConvert( + 'policy', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), text: $checkedConvert('text', (v) => v as String), tooltip: $checkedConvert('tooltip', (v) => v as String), ); @@ -19,4 +23,8 @@ ReportReason _$ReportReasonFromJson(Map json) => }); Map _$ReportReasonToJson(ReportReason instance) => - {'text': instance.text, 'tooltip': instance.tooltip}; + { + 'policy': ?instance.policy, + 'text': instance.text, + 'tooltip': instance.tooltip, + }; diff --git a/vrchat_dart_generated/lib/src/model/represented_group.dart b/vrchat_dart_generated/lib/src/model/represented_group.dart index 97740ee2..51ae3a25 100644 --- a/vrchat_dart_generated/lib/src/model/represented_group.dart +++ b/vrchat_dart_generated/lib/src/model/represented_group.dart @@ -41,6 +41,10 @@ class RepresentedGroup { this.name, + this.nameplateId, + + this.nameplateUrl, + this.ownerId, this.privacy, @@ -81,6 +85,12 @@ class RepresentedGroup { @JsonKey(name: r'name', required: false, includeIfNull: false) final String? name; + @JsonKey(name: r'nameplateId', required: false, includeIfNull: false) + final Object? nameplateId; + + @JsonKey(name: r'nameplateUrl', required: false, includeIfNull: false) + final Object? nameplateUrl; + /// 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. @JsonKey(name: r'ownerId', required: false, includeIfNull: false) final String? ownerId; @@ -106,6 +116,8 @@ class RepresentedGroup { other.memberCount == memberCount && other.memberVisibility == memberVisibility && other.name == name && + other.nameplateId == nameplateId && + other.nameplateUrl == nameplateUrl && other.ownerId == ownerId && other.privacy == privacy && other.shortCode == shortCode; @@ -123,6 +135,8 @@ class RepresentedGroup { memberCount.hashCode + memberVisibility.hashCode + name.hashCode + + (nameplateId == null ? 0 : nameplateId.hashCode) + + (nameplateUrl == null ? 0 : nameplateUrl.hashCode) + ownerId.hashCode + privacy.hashCode + shortCode.hashCode; diff --git a/vrchat_dart_generated/lib/src/model/represented_group.g.dart b/vrchat_dart_generated/lib/src/model/represented_group.g.dart index cd7cf5f3..f34fab3c 100644 --- a/vrchat_dart_generated/lib/src/model/represented_group.g.dart +++ b/vrchat_dart_generated/lib/src/model/represented_group.g.dart @@ -28,6 +28,8 @@ RepresentedGroup _$RepresentedGroupFromJson(Map json) => (v) => $enumDecodeNullable(_$GroupUserVisibilityEnumMap, v), ), name: $checkedConvert('name', (v) => v as String?), + nameplateId: $checkedConvert('nameplateId', (v) => v), + nameplateUrl: $checkedConvert('nameplateUrl', (v) => v), ownerId: $checkedConvert('ownerId', (v) => v as String?), privacy: $checkedConvert( 'privacy', @@ -52,6 +54,8 @@ Map _$RepresentedGroupToJson( 'memberCount': ?instance.memberCount, 'memberVisibility': ?_$GroupUserVisibilityEnumMap[instance.memberVisibility], 'name': ?instance.name, + 'nameplateId': ?instance.nameplateId, + 'nameplateUrl': ?instance.nameplateUrl, 'ownerId': ?instance.ownerId, 'privacy': ?_$GroupPrivacyEnumMap[instance.privacy], 'shortCode': ?instance.shortCode, diff --git a/vrchat_dart_generated/lib/src/model/route_not_implemented.dart b/vrchat_dart_generated/lib/src/model/route_not_implemented.dart new file mode 100644 index 00000000..d4f1d27f --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/route_not_implemented.dart @@ -0,0 +1,74 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'route_not_implemented.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class RouteNotImplemented { + /// Returns a new [RouteNotImplemented] instance. + RouteNotImplemented({required this.error, required this.statusCode}); + + @JsonKey(name: r'error', required: true, includeIfNull: false) + final RouteNotImplementedErrorEnum error; + + @JsonKey(name: r'status_code', required: true, includeIfNull: false) + final RouteNotImplementedStatusCodeEnum statusCode; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is RouteNotImplemented && + other.error == error && + other.statusCode == statusCode; + + @override + int get hashCode => error.hashCode + statusCode.hashCode; + + factory RouteNotImplemented.fromJson(Map json) => + _$RouteNotImplementedFromJson(json); + + Map toJson() => _$RouteNotImplementedToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} + +enum RouteNotImplementedErrorEnum { + @JsonValue( + r"The endpoint you're looking for is not implemented by our system.", + ) + theEndpointYouQuoteReLookingForIsNotImplementedByOurSystemPeriod( + r"The endpoint you're looking for is not implemented by our system.", + ); + + const RouteNotImplementedErrorEnum(this.value); + + final String value; + + @override + String toString() => value; +} + +enum RouteNotImplementedStatusCodeEnum { + @JsonValue(404) + number404('404'); + + const RouteNotImplementedStatusCodeEnum(this.value); + + final String value; + + @override + String toString() => value; +} diff --git a/vrchat_dart_generated/lib/src/model/route_not_implemented.g.dart b/vrchat_dart_generated/lib/src/model/route_not_implemented.g.dart new file mode 100644 index 00000000..a93bf660 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/route_not_implemented.g.dart @@ -0,0 +1,43 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'route_not_implemented.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +RouteNotImplemented _$RouteNotImplementedFromJson(Map json) => + $checkedCreate('RouteNotImplemented', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['error', 'status_code']); + final val = RouteNotImplemented( + error: $checkedConvert( + 'error', + (v) => $enumDecode(_$RouteNotImplementedErrorEnumEnumMap, v), + ), + statusCode: $checkedConvert( + 'status_code', + (v) => $enumDecode(_$RouteNotImplementedStatusCodeEnumEnumMap, v), + ), + ); + return val; + }, fieldKeyMap: const {'statusCode': 'status_code'}); + +Map _$RouteNotImplementedToJson( + RouteNotImplemented instance, +) => { + 'error': _$RouteNotImplementedErrorEnumEnumMap[instance.error]!, + 'status_code': + _$RouteNotImplementedStatusCodeEnumEnumMap[instance.statusCode]!, +}; + +const _$RouteNotImplementedErrorEnumEnumMap = { + RouteNotImplementedErrorEnum + .theEndpointYouQuoteReLookingForIsNotImplementedByOurSystemPeriod: + "The endpoint you're looking for is not implemented by our system.", +}; + +const _$RouteNotImplementedStatusCodeEnumEnumMap = { + RouteNotImplementedStatusCodeEnum.number404: 404, +}; diff --git a/vrchat_dart_generated/lib/src/model/sent_notification.dart b/vrchat_dart_generated/lib/src/model/sent_notification.dart index c74b186e..70de832e 100644 --- a/vrchat_dart_generated/lib/src/model/sent_notification.dart +++ b/vrchat_dart_generated/lib/src/model/sent_notification.dart @@ -56,8 +56,7 @@ class SentNotification { @JsonKey(name: r'senderUserId', required: true, includeIfNull: false) final String senderUserId; - /// -| **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). - @Deprecated('senderUsername has been deprecated') + /// The name of the user who sent the notification. @JsonKey(name: r'senderUsername', required: false, includeIfNull: false) final String? senderUsername; diff --git a/vrchat_dart_generated/lib/src/model/service_status.g.dart b/vrchat_dart_generated/lib/src/model/service_status.g.dart index 1cb2e1b7..d9a3a1f9 100644 --- a/vrchat_dart_generated/lib/src/model/service_status.g.dart +++ b/vrchat_dart_generated/lib/src/model/service_status.g.dart @@ -8,52 +8,45 @@ part of 'service_status.dart'; // JsonSerializableGenerator // ************************************************************************** -ServiceStatus _$ServiceStatusFromJson(Map json) => - $checkedCreate( - 'ServiceStatus', - json, - ($checkedConvert) { - $checkKeys( - json, - requiredKeys: const [ - 'created_at', - 'id', - 'progress', - 'requesterUserId', - 'state', - 'subjectId', - 'subjectType', - 'type', - 'updated_at', - ], - ); - final val = ServiceStatus( - createdAt: $checkedConvert( - 'created_at', - (v) => DateTime.parse(v as String), - ), - id: $checkedConvert('id', (v) => v as String), - progress: $checkedConvert( - 'progress', - (v) => (v as List).map((e) => e as Object).toList(), - ), - requesterUserId: $checkedConvert( - 'requesterUserId', - (v) => v as String, - ), - state: $checkedConvert('state', (v) => v as String), - subjectId: $checkedConvert('subjectId', (v) => v as String), - subjectType: $checkedConvert('subjectType', (v) => v as String), - type: $checkedConvert('type', (v) => v as String), - updatedAt: $checkedConvert( - 'updated_at', - (v) => DateTime.parse(v as String), - ), - ); - return val; - }, - fieldKeyMap: const {'createdAt': 'created_at', 'updatedAt': 'updated_at'}, - ); +ServiceStatus _$ServiceStatusFromJson( + Map json, +) => $checkedCreate('ServiceStatus', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + 'created_at', + 'id', + 'progress', + 'requesterUserId', + 'state', + 'subjectId', + 'subjectType', + 'type', + 'updated_at', + ], + ); + final val = ServiceStatus( + createdAt: $checkedConvert( + 'created_at', + (v) => DateTime.parse(v as String), + ), + id: $checkedConvert('id', (v) => v as String), + progress: $checkedConvert( + 'progress', + (v) => (v as List).map((e) => e as Object).toList(), + ), + requesterUserId: $checkedConvert('requesterUserId', (v) => v as String), + state: $checkedConvert('state', (v) => v as String), + subjectId: $checkedConvert('subjectId', (v) => v as String), + subjectType: $checkedConvert('subjectType', (v) => v as String), + type: $checkedConvert('type', (v) => v as String), + updatedAt: $checkedConvert( + 'updated_at', + (v) => DateTime.parse(v as String), + ), + ); + return val; +}, fieldKeyMap: const {'createdAt': 'created_at', 'updatedAt': 'updated_at'}); Map _$ServiceStatusToJson(ServiceStatus instance) => { diff --git a/vrchat_dart_generated/lib/src/model/sso_provider.dart b/vrchat_dart_generated/lib/src/model/sso_provider.dart new file mode 100644 index 00000000..c4d4228f --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/sso_provider.dart @@ -0,0 +1,24 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:json_annotation/json_annotation.dart'; + +/// A third-party service VRChat mints an SSO token for. Anything else is refused with \"That is not a supported SSO provider.\" +enum SsoProvider { + /// A third-party service VRChat mints an SSO token for. Anything else is refused with \"That is not a supported SSO provider.\" + @JsonValue(r'canny') + canny(r'canny'), + + /// A third-party service VRChat mints an SSO token for. Anything else is refused with \"That is not a supported SSO provider.\" + @JsonValue(r'furality') + furality(r'furality'); + + const SsoProvider(this.value); + + final String value; + + @override + String toString() => value; +} diff --git a/vrchat_dart_generated/lib/src/model/sso_token.dart b/vrchat_dart_generated/lib/src/model/sso_token.dart new file mode 100644 index 00000000..98ab9bba --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/sso_token.dart @@ -0,0 +1,40 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'sso_token.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class SsoToken { + /// Returns a new [SsoToken] instance. + SsoToken({required this.token}); + + @JsonKey(name: r'token', required: true, includeIfNull: false) + final String token; + + @override + bool operator ==(Object other) => + identical(this, other) || other is SsoToken && other.token == token; + + @override + int get hashCode => token.hashCode; + + factory SsoToken.fromJson(Map json) => + _$SsoTokenFromJson(json); + + Map toJson() => _$SsoTokenToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/sso_token.g.dart b/vrchat_dart_generated/lib/src/model/sso_token.g.dart new file mode 100644 index 00000000..73f982d8 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/sso_token.g.dart @@ -0,0 +1,20 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'sso_token.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +SsoToken _$SsoTokenFromJson(Map json) => + $checkedCreate('SsoToken', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['token']); + final val = SsoToken(token: $checkedConvert('token', (v) => v as String)); + return val; + }); + +Map _$SsoTokenToJson(SsoToken instance) => { + 'token': instance.token, +}; diff --git a/vrchat_dart_generated/lib/src/model/store_shelf.dart b/vrchat_dart_generated/lib/src/model/store_shelf.dart index b8c9aa61..314a6515 100644 --- a/vrchat_dart_generated/lib/src/model/store_shelf.dart +++ b/vrchat_dart_generated/lib/src/model/store_shelf.dart @@ -28,10 +28,16 @@ class StoreShelf { this.listings, + this.shelfBackgroundImageId, + required this.shelfDescription, + this.shelfIconImageId, + required this.shelfLayout, + this.shelfTabBackgroundImageId, + required this.shelfTitle, required this.updatedAt, @@ -52,12 +58,29 @@ class StoreShelf { @JsonKey(name: r'listings', required: false, includeIfNull: false) final List? listings; + @JsonKey( + name: r'shelfBackgroundImageId', + required: false, + includeIfNull: false, + ) + final String? shelfBackgroundImageId; + @JsonKey(name: r'shelfDescription', required: true, includeIfNull: false) final String shelfDescription; + @JsonKey(name: r'shelfIconImageId', required: false, includeIfNull: false) + final String? shelfIconImageId; + @JsonKey(name: r'shelfLayout', required: true, includeIfNull: false) final String shelfLayout; + @JsonKey( + name: r'shelfTabBackgroundImageId', + required: false, + includeIfNull: false, + ) + final String? shelfTabBackgroundImageId; + @JsonKey(name: r'shelfTitle', required: true, includeIfNull: false) final String shelfTitle; @@ -73,8 +96,11 @@ class StoreShelf { other.id == id && other.listingIds == listingIds && other.listings == listings && + other.shelfBackgroundImageId == shelfBackgroundImageId && other.shelfDescription == shelfDescription && + other.shelfIconImageId == shelfIconImageId && other.shelfLayout == shelfLayout && + other.shelfTabBackgroundImageId == shelfTabBackgroundImageId && other.shelfTitle == shelfTitle && other.updatedAt == updatedAt; @@ -85,8 +111,11 @@ class StoreShelf { id.hashCode + listingIds.hashCode + listings.hashCode + + shelfBackgroundImageId.hashCode + shelfDescription.hashCode + + shelfIconImageId.hashCode + shelfLayout.hashCode + + shelfTabBackgroundImageId.hashCode + shelfTitle.hashCode + updatedAt.hashCode; diff --git a/vrchat_dart_generated/lib/src/model/store_shelf.g.dart b/vrchat_dart_generated/lib/src/model/store_shelf.g.dart index f84e247e..38958486 100644 --- a/vrchat_dart_generated/lib/src/model/store_shelf.g.dart +++ b/vrchat_dart_generated/lib/src/model/store_shelf.g.dart @@ -43,8 +43,17 @@ StoreShelf _$StoreShelfFromJson( ?.map((e) => ProductListing.fromJson(e as Map)) .toList(), ), + shelfBackgroundImageId: $checkedConvert( + 'shelfBackgroundImageId', + (v) => v as String?, + ), shelfDescription: $checkedConvert('shelfDescription', (v) => v as String), + shelfIconImageId: $checkedConvert('shelfIconImageId', (v) => v as String?), shelfLayout: $checkedConvert('shelfLayout', (v) => v as String), + shelfTabBackgroundImageId: $checkedConvert( + 'shelfTabBackgroundImageId', + (v) => v as String?, + ), shelfTitle: $checkedConvert('shelfTitle', (v) => v as String), updatedAt: $checkedConvert('updatedAt', (v) => DateTime.parse(v as String)), ); @@ -58,8 +67,11 @@ Map _$StoreShelfToJson(StoreShelf instance) => 'id': instance.id, 'listingIds': instance.listingIds, 'listings': ?instance.listings?.map((e) => e.toJson()).toList(), + 'shelfBackgroundImageId': ?instance.shelfBackgroundImageId, 'shelfDescription': instance.shelfDescription, + 'shelfIconImageId': ?instance.shelfIconImageId, 'shelfLayout': instance.shelfLayout, + 'shelfTabBackgroundImageId': ?instance.shelfTabBackgroundImageId, 'shelfTitle': instance.shelfTitle, 'updatedAt': instance.updatedAt.toIso8601String(), }; diff --git a/vrchat_dart_generated/lib/src/model/subscription.dart b/vrchat_dart_generated/lib/src/model/subscription.dart index 09f82afb..775c34e2 100644 --- a/vrchat_dart_generated/lib/src/model/subscription.dart +++ b/vrchat_dart_generated/lib/src/model/subscription.dart @@ -22,8 +22,12 @@ class Subscription { this.appleProductId, + this.bulkSize, + required this.description, + this.discountPercentage, + this.googlePlanId, this.googleProductId, @@ -34,6 +38,8 @@ class Subscription { required this.period, + this.periodAmount, + this.picoSku, required this.steamItemId, @@ -47,9 +53,17 @@ class Subscription { @JsonKey(name: r'appleProductId', required: false, includeIfNull: false) final String? appleProductId; + /// How many subscriptions a gifted bundle grants. + @JsonKey(name: r'bulkSize', required: false, includeIfNull: false) + final int? bulkSize; + @JsonKey(name: r'description', required: true, includeIfNull: false) final String description; + /// Discount applied to a gifted bundle. + @JsonKey(name: r'discountPercentage', required: false, includeIfNull: false) + final int? discountPercentage; + @JsonKey(name: r'googlePlanId', required: false, includeIfNull: false) final String? googlePlanId; @@ -65,6 +79,9 @@ class Subscription { @JsonKey(name: r'period', required: true, includeIfNull: false) final SubscriptionPeriod period; + @JsonKey(name: r'periodAmount', required: false, includeIfNull: false) + final Object? periodAmount; + @JsonKey(name: r'picoSku', required: false, includeIfNull: false) final String? picoSku; @@ -80,12 +97,15 @@ class Subscription { other is Subscription && other.amount == amount && other.appleProductId == appleProductId && + other.bulkSize == bulkSize && other.description == description && + other.discountPercentage == discountPercentage && other.googlePlanId == googlePlanId && other.googleProductId == googleProductId && other.id == id && other.oculusSku == oculusSku && other.period == period && + other.periodAmount == periodAmount && other.picoSku == picoSku && other.steamItemId == steamItemId && other.tier == tier; @@ -94,12 +114,15 @@ class Subscription { int get hashCode => amount.hashCode + appleProductId.hashCode + + bulkSize.hashCode + description.hashCode + + discountPercentage.hashCode + googlePlanId.hashCode + googleProductId.hashCode + id.hashCode + oculusSku.hashCode + period.hashCode + + (periodAmount == null ? 0 : periodAmount.hashCode) + picoSku.hashCode + steamItemId.hashCode + tier.hashCode; diff --git a/vrchat_dart_generated/lib/src/model/subscription.g.dart b/vrchat_dart_generated/lib/src/model/subscription.g.dart index 9c7e4cbe..3500f1a4 100644 --- a/vrchat_dart_generated/lib/src/model/subscription.g.dart +++ b/vrchat_dart_generated/lib/src/model/subscription.g.dart @@ -24,7 +24,12 @@ Subscription _$SubscriptionFromJson(Map json) => final val = Subscription( amount: $checkedConvert('amount', (v) => v as num), appleProductId: $checkedConvert('appleProductId', (v) => v as String?), + bulkSize: $checkedConvert('bulkSize', (v) => (v as num?)?.toInt()), description: $checkedConvert('description', (v) => v as String), + discountPercentage: $checkedConvert( + 'discountPercentage', + (v) => (v as num?)?.toInt(), + ), googlePlanId: $checkedConvert('googlePlanId', (v) => v as String?), googleProductId: $checkedConvert( 'googleProductId', @@ -36,6 +41,7 @@ Subscription _$SubscriptionFromJson(Map json) => 'period', (v) => $enumDecode(_$SubscriptionPeriodEnumMap, v), ), + periodAmount: $checkedConvert('periodAmount', (v) => v), picoSku: $checkedConvert('picoSku', (v) => v as String?), steamItemId: $checkedConvert('steamItemId', (v) => v as String), tier: $checkedConvert('tier', (v) => (v as num).toInt()), @@ -47,12 +53,15 @@ Map _$SubscriptionToJson(Subscription instance) => { 'amount': instance.amount, 'appleProductId': ?instance.appleProductId, + 'bulkSize': ?instance.bulkSize, 'description': instance.description, + 'discountPercentage': ?instance.discountPercentage, 'googlePlanId': ?instance.googlePlanId, 'googleProductId': ?instance.googleProductId, 'id': instance.id, 'oculusSku': ?instance.oculusSku, 'period': _$SubscriptionPeriodEnumMap[instance.period]!, + 'periodAmount': ?instance.periodAmount, 'picoSku': ?instance.picoSku, 'steamItemId': instance.steamItemId, 'tier': instance.tier, diff --git a/vrchat_dart_generated/lib/src/model/update_world_request.dart b/vrchat_dart_generated/lib/src/model/update_world_request.dart index 2c3b8253..d8b9d26c 100644 --- a/vrchat_dart_generated/lib/src/model/update_world_request.dart +++ b/vrchat_dart_generated/lib/src/model/update_world_request.dart @@ -30,12 +30,18 @@ class UpdateWorldRequest { this.description, + this.disabledPropAbilities, + this.imageUrl, this.name, this.platform, + this.previewYoutubeId, + + this.recommendedCapacity, + this.releaseStatus, this.tags, @@ -43,6 +49,8 @@ class UpdateWorldRequest { this.unityPackageUrl, this.unityVersion = '5.3.4p1', + + this.urlList, }); @JsonKey(name: r'assetUrl', required: false, includeIfNull: false) @@ -66,6 +74,13 @@ class UpdateWorldRequest { @JsonKey(name: r'description', required: false, includeIfNull: false) final String? description; + @JsonKey( + name: r'disabledPropAbilities', + required: false, + includeIfNull: false, + ) + final List? disabledPropAbilities; + @JsonKey(name: r'imageUrl', required: false, includeIfNull: false) final String? imageUrl; @@ -76,6 +91,12 @@ class UpdateWorldRequest { @JsonKey(name: r'platform', required: false, includeIfNull: false) final String? platform; + @JsonKey(name: r'previewYoutubeId', required: false, includeIfNull: false) + final String? previewYoutubeId; + + @JsonKey(name: r'recommendedCapacity', required: false, includeIfNull: false) + final int? recommendedCapacity; + @JsonKey(name: r'releaseStatus', required: false, includeIfNull: false) final ReleaseStatus? releaseStatus; @@ -89,6 +110,9 @@ class UpdateWorldRequest { @JsonKey(name: r'unityVersion', required: false, includeIfNull: false) final String? unityVersion; + @JsonKey(name: r'urlList', required: false, includeIfNull: false) + final List? urlList; + @override bool operator ==(Object other) => identical(this, other) || @@ -99,13 +123,17 @@ class UpdateWorldRequest { other.authorName == authorName && other.capacity == capacity && other.description == description && + other.disabledPropAbilities == disabledPropAbilities && other.imageUrl == imageUrl && other.name == name && other.platform == platform && + other.previewYoutubeId == previewYoutubeId && + other.recommendedCapacity == recommendedCapacity && other.releaseStatus == releaseStatus && other.tags == tags && other.unityPackageUrl == unityPackageUrl && - other.unityVersion == unityVersion; + other.unityVersion == unityVersion && + other.urlList == urlList; @override int get hashCode => @@ -115,13 +143,17 @@ class UpdateWorldRequest { authorName.hashCode + capacity.hashCode + description.hashCode + + disabledPropAbilities.hashCode + imageUrl.hashCode + name.hashCode + platform.hashCode + + (previewYoutubeId == null ? 0 : previewYoutubeId.hashCode) + + recommendedCapacity.hashCode + releaseStatus.hashCode + tags.hashCode + unityPackageUrl.hashCode + - unityVersion.hashCode; + unityVersion.hashCode + + urlList.hashCode; factory UpdateWorldRequest.fromJson(Map json) => _$UpdateWorldRequestFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/update_world_request.g.dart b/vrchat_dart_generated/lib/src/model/update_world_request.g.dart index 1432f17b..85f8b71d 100644 --- a/vrchat_dart_generated/lib/src/model/update_world_request.g.dart +++ b/vrchat_dart_generated/lib/src/model/update_world_request.g.dart @@ -8,37 +8,48 @@ part of 'update_world_request.dart'; // JsonSerializableGenerator // ************************************************************************** -UpdateWorldRequest _$UpdateWorldRequestFromJson(Map json) => - $checkedCreate('UpdateWorldRequest', json, ($checkedConvert) { - final val = UpdateWorldRequest( - assetUrl: $checkedConvert('assetUrl', (v) => v as String?), - assetVersion: $checkedConvert('assetVersion', (v) => v as String?), - authorId: $checkedConvert('authorId', (v) => v as String?), - authorName: $checkedConvert('authorName', (v) => v as String?), - capacity: $checkedConvert('capacity', (v) => (v as num?)?.toInt()), - description: $checkedConvert('description', (v) => v as String?), - imageUrl: $checkedConvert('imageUrl', (v) => v as String?), - name: $checkedConvert('name', (v) => v as String?), - platform: $checkedConvert('platform', (v) => v as String?), - releaseStatus: $checkedConvert( - 'releaseStatus', - (v) => $enumDecodeNullable(_$ReleaseStatusEnumMap, v), - ), - tags: $checkedConvert( - 'tags', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - unityPackageUrl: $checkedConvert( - 'unityPackageUrl', - (v) => v as String?, - ), - unityVersion: $checkedConvert( - 'unityVersion', - (v) => v as String? ?? '5.3.4p1', - ), - ); - return val; - }); +UpdateWorldRequest _$UpdateWorldRequestFromJson( + Map json, +) => $checkedCreate('UpdateWorldRequest', json, ($checkedConvert) { + final val = UpdateWorldRequest( + assetUrl: $checkedConvert('assetUrl', (v) => v as String?), + assetVersion: $checkedConvert('assetVersion', (v) => v as String?), + authorId: $checkedConvert('authorId', (v) => v as String?), + authorName: $checkedConvert('authorName', (v) => v as String?), + capacity: $checkedConvert('capacity', (v) => (v as num?)?.toInt()), + description: $checkedConvert('description', (v) => v as String?), + disabledPropAbilities: $checkedConvert( + 'disabledPropAbilities', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + imageUrl: $checkedConvert('imageUrl', (v) => v as String?), + name: $checkedConvert('name', (v) => v as String?), + platform: $checkedConvert('platform', (v) => v as String?), + previewYoutubeId: $checkedConvert('previewYoutubeId', (v) => v as String?), + recommendedCapacity: $checkedConvert( + 'recommendedCapacity', + (v) => (v as num?)?.toInt(), + ), + releaseStatus: $checkedConvert( + 'releaseStatus', + (v) => $enumDecodeNullable(_$ReleaseStatusEnumMap, v), + ), + tags: $checkedConvert( + 'tags', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + unityPackageUrl: $checkedConvert('unityPackageUrl', (v) => v as String?), + unityVersion: $checkedConvert( + 'unityVersion', + (v) => v as String? ?? '5.3.4p1', + ), + urlList: $checkedConvert( + 'urlList', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + ); + return val; +}); Map _$UpdateWorldRequestToJson(UpdateWorldRequest instance) => { @@ -48,13 +59,17 @@ Map _$UpdateWorldRequestToJson(UpdateWorldRequest instance) => 'authorName': ?instance.authorName, 'capacity': ?instance.capacity, 'description': ?instance.description, + 'disabledPropAbilities': ?instance.disabledPropAbilities, 'imageUrl': ?instance.imageUrl, 'name': ?instance.name, 'platform': ?instance.platform, + 'previewYoutubeId': ?instance.previewYoutubeId, + 'recommendedCapacity': ?instance.recommendedCapacity, 'releaseStatus': ?_$ReleaseStatusEnumMap[instance.releaseStatus], 'tags': ?instance.tags, 'unityPackageUrl': ?instance.unityPackageUrl, 'unityVersion': ?instance.unityVersion, + 'urlList': ?instance.urlList, }; const _$ReleaseStatusEnumMap = { diff --git a/vrchat_dart_generated/lib/src/model/user.dart b/vrchat_dart_generated/lib/src/model/user.dart index 93b3d5ab..503a2ce0 100644 --- a/vrchat_dart_generated/lib/src/model/user.dart +++ b/vrchat_dart_generated/lib/src/model/user.dart @@ -22,14 +22,26 @@ part 'user.g.dart'; class User { /// Returns a new [User] instance. User({ + this.acceptedPrivacyVersion, + + this.acceptedTOSVersion, + + this.accountDeletionDate, + + this.accountDeletionLog, + required this.ageVerificationStatus, required this.ageVerified, this.allowAvatarCopying = true, + this.appleDetails, + this.badges, + this.bannerColor, + this.bannerType, this.bannerUrl, @@ -106,11 +118,25 @@ class User { required this.userIcon, - this.username, - this.worldId, }); + @JsonKey( + name: r'acceptedPrivacyVersion', + required: false, + includeIfNull: false, + ) + final int? acceptedPrivacyVersion; + + @JsonKey(name: r'acceptedTOSVersion', required: false, includeIfNull: false) + final int? acceptedTOSVersion; + + @JsonKey(name: r'accountDeletionDate', required: false, includeIfNull: false) + final String? accountDeletionDate; + + @JsonKey(name: r'accountDeletionLog', required: false, includeIfNull: false) + final List? accountDeletionLog; + @JsonKey(name: r'ageVerificationStatus', required: true, includeIfNull: false) final AgeVerificationStatus ageVerificationStatus; @@ -121,10 +147,16 @@ class User { @JsonKey(name: r'allowAvatarCopying', required: true, includeIfNull: false) final bool allowAvatarCopying; + @JsonKey(name: r'appleDetails', required: false, includeIfNull: false) + final Map? appleDetails; + /// @JsonKey(name: r'badges', required: false, includeIfNull: false) final List? badges; + @JsonKey(name: r'bannerColor', required: false, includeIfNull: false) + final String? bannerColor; + @JsonKey(name: r'bannerType', required: false, includeIfNull: false) final String? bannerType; @@ -165,6 +197,7 @@ class User { @JsonKey(name: r'friendKey', required: true, includeIfNull: false) final String friendKey; + /// State of a friend request between the caller and this user. VRChat sends the string `\"null\"`, not JSON `null`. @JsonKey(name: r'friendRequestStatus', required: false, includeIfNull: false) final String? friendRequestStatus; @@ -258,11 +291,6 @@ class User { @JsonKey(name: r'userIcon', required: true, includeIfNull: false) final String userIcon; - /// -| A users unique name, used during login. This is different from `displayName` which is what shows up in-game. A users `username` can never be changed.' **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). - @Deprecated('username has been deprecated') - @JsonKey(name: r'username', required: false, includeIfNull: false) - final String? username; - /// WorldID be \"offline\" on User profiles if you are not friends with that user. @JsonKey(name: r'worldId', required: false, includeIfNull: false) final String? worldId; @@ -271,10 +299,16 @@ class User { bool operator ==(Object other) => identical(this, other) || other is User && + other.acceptedPrivacyVersion == acceptedPrivacyVersion && + other.acceptedTOSVersion == acceptedTOSVersion && + other.accountDeletionDate == accountDeletionDate && + other.accountDeletionLog == accountDeletionLog && other.ageVerificationStatus == ageVerificationStatus && other.ageVerified == ageVerified && other.allowAvatarCopying == allowAvatarCopying && + other.appleDetails == appleDetails && other.badges == badges && + other.bannerColor == bannerColor && other.bannerType == bannerType && other.bannerUrl == bannerUrl && other.bio == bio && @@ -314,15 +348,20 @@ class User { other.travelingToLocation == travelingToLocation && other.travelingToWorld == travelingToWorld && other.userIcon == userIcon && - other.username == username && other.worldId == worldId; @override int get hashCode => + acceptedPrivacyVersion.hashCode + + acceptedTOSVersion.hashCode + + (accountDeletionDate == null ? 0 : accountDeletionDate.hashCode) + + (accountDeletionLog == null ? 0 : accountDeletionLog.hashCode) + ageVerificationStatus.hashCode + ageVerified.hashCode + allowAvatarCopying.hashCode + + appleDetails.hashCode + badges.hashCode + + bannerColor.hashCode + bannerType.hashCode + bannerUrl.hashCode + bio.hashCode + @@ -361,7 +400,6 @@ class User { travelingToLocation.hashCode + travelingToWorld.hashCode + userIcon.hashCode + - username.hashCode + worldId.hashCode; factory User.fromJson(Map json) => _$UserFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/user.g.dart b/vrchat_dart_generated/lib/src/model/user.g.dart index 042acf31..7f4d9758 100644 --- a/vrchat_dart_generated/lib/src/model/user.g.dart +++ b/vrchat_dart_generated/lib/src/model/user.g.dart @@ -43,6 +43,22 @@ User _$UserFromJson(Map json) => $checkedCreate( ], ); final val = User( + acceptedPrivacyVersion: $checkedConvert( + 'acceptedPrivacyVersion', + (v) => (v as num?)?.toInt(), + ), + acceptedTOSVersion: $checkedConvert( + 'acceptedTOSVersion', + (v) => (v as num?)?.toInt(), + ), + accountDeletionDate: $checkedConvert( + 'accountDeletionDate', + (v) => v as String?, + ), + accountDeletionLog: $checkedConvert( + 'accountDeletionLog', + (v) => (v as List?)?.map((e) => e as Object).toList(), + ), ageVerificationStatus: $checkedConvert( 'ageVerificationStatus', (v) => $enumDecode(_$AgeVerificationStatusEnumMap, v), @@ -52,12 +68,19 @@ User _$UserFromJson(Map json) => $checkedCreate( 'allowAvatarCopying', (v) => v as bool? ?? true, ), + appleDetails: $checkedConvert( + 'appleDetails', + (v) => (v as Map?)?.map( + (k, e) => MapEntry(k, e as Object), + ), + ), badges: $checkedConvert( 'badges', (v) => (v as List?) ?.map((e) => Badge.fromJson(e as Map)) .toList(), ), + bannerColor: $checkedConvert('bannerColor', (v) => v as String?), bannerType: $checkedConvert('bannerType', (v) => v as String?), bannerUrl: $checkedConvert('bannerUrl', (v) => v as String?), bio: $checkedConvert('bio', (v) => v as String), @@ -144,7 +167,6 @@ User _$UserFromJson(Map json) => $checkedCreate( (v) => v as String?, ), userIcon: $checkedConvert('userIcon', (v) => v as String), - username: $checkedConvert('username', (v) => v as String?), worldId: $checkedConvert('worldId', (v) => v as String?), ); return val; @@ -159,11 +181,17 @@ User _$UserFromJson(Map json) => $checkedCreate( ); Map _$UserToJson(User instance) => { + 'acceptedPrivacyVersion': ?instance.acceptedPrivacyVersion, + 'acceptedTOSVersion': ?instance.acceptedTOSVersion, + 'accountDeletionDate': ?instance.accountDeletionDate, + 'accountDeletionLog': ?instance.accountDeletionLog, 'ageVerificationStatus': _$AgeVerificationStatusEnumMap[instance.ageVerificationStatus]!, 'ageVerified': instance.ageVerified, 'allowAvatarCopying': instance.allowAvatarCopying, + 'appleDetails': ?instance.appleDetails, 'badges': ?instance.badges?.map((e) => e.toJson()).toList(), + 'bannerColor': ?instance.bannerColor, 'bannerType': ?instance.bannerType, 'bannerUrl': ?instance.bannerUrl, 'bio': instance.bio, @@ -202,7 +230,6 @@ Map _$UserToJson(User instance) => { 'travelingToLocation': ?instance.travelingToLocation, 'travelingToWorld': ?instance.travelingToWorld, 'userIcon': instance.userIcon, - 'username': ?instance.username, 'worldId': ?instance.worldId, }; diff --git a/vrchat_dart_generated/lib/src/model/user_subscription.g.dart b/vrchat_dart_generated/lib/src/model/user_subscription.g.dart index 90a8aab3..8778bc49 100644 --- a/vrchat_dart_generated/lib/src/model/user_subscription.g.dart +++ b/vrchat_dart_generated/lib/src/model/user_subscription.g.dart @@ -8,72 +8,65 @@ part of 'user_subscription.dart'; // JsonSerializableGenerator // ************************************************************************** -UserSubscription _$UserSubscriptionFromJson(Map json) => - $checkedCreate( - 'UserSubscription', - json, - ($checkedConvert) { - $checkKeys( - json, - requiredKeys: const [ - 'active', - 'amount', - 'created_at', - 'description', - 'expires', - 'id', - 'isBulkGift', - 'isGift', - 'licenseGroups', - 'period', - 'status', - 'store', - 'tier', - 'transactionId', - 'updated_at', - ], - ); - final val = UserSubscription( - active: $checkedConvert('active', (v) => v as bool? ?? true), - amount: $checkedConvert('amount', (v) => v as num), - createdAt: $checkedConvert( - 'created_at', - (v) => DateTime.parse(v as String), - ), - description: $checkedConvert('description', (v) => v as String), - expires: $checkedConvert( - 'expires', - (v) => DateTime.parse(v as String), - ), - id: $checkedConvert('id', (v) => v as String), - isBulkGift: $checkedConvert('isBulkGift', (v) => v as bool? ?? false), - isGift: $checkedConvert('isGift', (v) => v as bool? ?? false), - licenseGroups: $checkedConvert( - 'licenseGroups', - (v) => (v as List).map((e) => e as String).toList(), - ), - period: $checkedConvert( - 'period', - (v) => $enumDecode(_$SubscriptionPeriodEnumMap, v), - ), - starts: $checkedConvert('starts', (v) => v as String?), - status: $checkedConvert( - 'status', - (v) => $enumDecode(_$TransactionStatusEnumMap, v), - ), - steamItemId: $checkedConvert('steamItemId', (v) => v as String?), - store: $checkedConvert('store', (v) => v as String), - tier: $checkedConvert('tier', (v) => (v as num).toInt()), - transactionId: $checkedConvert('transactionId', (v) => v as String), - updatedAt: $checkedConvert( - 'updated_at', - (v) => DateTime.parse(v as String), - ), - ); - return val; - }, - fieldKeyMap: const {'createdAt': 'created_at', 'updatedAt': 'updated_at'}, - ); +UserSubscription _$UserSubscriptionFromJson( + Map json, +) => $checkedCreate('UserSubscription', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + 'active', + 'amount', + 'created_at', + 'description', + 'expires', + 'id', + 'isBulkGift', + 'isGift', + 'licenseGroups', + 'period', + 'status', + 'store', + 'tier', + 'transactionId', + 'updated_at', + ], + ); + final val = UserSubscription( + active: $checkedConvert('active', (v) => v as bool? ?? true), + amount: $checkedConvert('amount', (v) => v as num), + createdAt: $checkedConvert( + 'created_at', + (v) => DateTime.parse(v as String), + ), + description: $checkedConvert('description', (v) => v as String), + expires: $checkedConvert('expires', (v) => DateTime.parse(v as String)), + id: $checkedConvert('id', (v) => v as String), + isBulkGift: $checkedConvert('isBulkGift', (v) => v as bool? ?? false), + isGift: $checkedConvert('isGift', (v) => v as bool? ?? false), + licenseGroups: $checkedConvert( + 'licenseGroups', + (v) => (v as List).map((e) => e as String).toList(), + ), + period: $checkedConvert( + 'period', + (v) => $enumDecode(_$SubscriptionPeriodEnumMap, v), + ), + starts: $checkedConvert('starts', (v) => v as String?), + status: $checkedConvert( + 'status', + (v) => $enumDecode(_$TransactionStatusEnumMap, v), + ), + steamItemId: $checkedConvert('steamItemId', (v) => v as String?), + store: $checkedConvert('store', (v) => v as String), + tier: $checkedConvert('tier', (v) => (v as num).toInt()), + transactionId: $checkedConvert('transactionId', (v) => v as String), + updatedAt: $checkedConvert( + 'updated_at', + (v) => DateTime.parse(v as String), + ), + ); + return val; +}, fieldKeyMap: const {'createdAt': 'created_at', 'updatedAt': 'updated_at'}); Map _$UserSubscriptionToJson(UserSubscription instance) => { diff --git a/vrchat_dart_generated/lib/src/model/world.dart b/vrchat_dart_generated/lib/src/model/world.dart index 0f64c14b..3a5b0e52 100644 --- a/vrchat_dart_generated/lib/src/model/world.dart +++ b/vrchat_dart_generated/lib/src/model/world.dart @@ -32,6 +32,8 @@ class World { required this.description, + this.disabledPropAbilities, + this.favorites = 0, this.featured = false, @@ -68,6 +70,8 @@ class World { required this.releaseStatus, + this.slimInstances, + this.storeId, required this.tags, @@ -110,6 +114,13 @@ class World { @JsonKey(name: r'description', required: true, includeIfNull: false) final String description; + @JsonKey( + name: r'disabledPropAbilities', + required: false, + includeIfNull: false, + ) + final List? disabledPropAbilities; + // minimum: 0 @JsonKey(name: r'favorites', required: false, includeIfNull: false) final int? favorites; @@ -175,6 +186,9 @@ class World { @JsonKey(name: r'releaseStatus', required: true, includeIfNull: false) final ReleaseStatus releaseStatus; + @JsonKey(name: r'slimInstances', required: false, includeIfNull: false) + final List? slimInstances; + @JsonKey(name: r'storeId', required: false, includeIfNull: false) final String? storeId; @@ -216,6 +230,7 @@ class World { other.createdAt == createdAt && other.defaultContentSettings == defaultContentSettings && other.description == description && + other.disabledPropAbilities == disabledPropAbilities && other.favorites == favorites && other.featured == featured && other.heat == heat && @@ -234,6 +249,7 @@ class World { other.publicationDate == publicationDate && other.recommendedCapacity == recommendedCapacity && other.releaseStatus == releaseStatus && + other.slimInstances == slimInstances && other.storeId == storeId && other.tags == tags && other.thumbnailImageUrl == thumbnailImageUrl && @@ -252,6 +268,7 @@ class World { createdAt.hashCode + defaultContentSettings.hashCode + description.hashCode + + disabledPropAbilities.hashCode + favorites.hashCode + featured.hashCode + heat.hashCode + @@ -270,6 +287,7 @@ class World { publicationDate.hashCode + recommendedCapacity.hashCode + releaseStatus.hashCode + + slimInstances.hashCode + storeId.hashCode + tags.hashCode + thumbnailImageUrl.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/world.g.dart b/vrchat_dart_generated/lib/src/model/world.g.dart index cc54ec99..8b6bf619 100644 --- a/vrchat_dart_generated/lib/src/model/world.g.dart +++ b/vrchat_dart_generated/lib/src/model/world.g.dart @@ -8,132 +8,128 @@ part of 'world.dart'; // JsonSerializableGenerator // ************************************************************************** -World _$WorldFromJson(Map json) => $checkedCreate( - 'World', - json, - ($checkedConvert) { - $checkKeys( - json, - requiredKeys: const [ - 'authorId', - 'authorName', - 'capacity', - 'created_at', - 'description', - 'featured', - 'heat', - 'id', - 'imageUrl', - 'labsPublicationDate', - 'name', - 'organization', - 'popularity', - 'publicationDate', - 'recommendedCapacity', - 'releaseStatus', - 'tags', - 'thumbnailImageUrl', - 'updated_at', - 'version', - 'visits', - ], - ); - final val = World( - authorId: $checkedConvert('authorId', (v) => v as String), - authorName: $checkedConvert('authorName', (v) => v as String), - capacity: $checkedConvert('capacity', (v) => (v as num).toInt()), - createdAt: $checkedConvert( - 'created_at', - (v) => DateTime.parse(v as String), - ), - defaultContentSettings: $checkedConvert( - 'defaultContentSettings', - (v) => v == null - ? null - : InstanceContentSettings.fromJson(v as Map), - ), - description: $checkedConvert('description', (v) => v as String), - favorites: $checkedConvert('favorites', (v) => (v as num?)?.toInt() ?? 0), - featured: $checkedConvert('featured', (v) => v as bool? ?? false), - heat: $checkedConvert('heat', (v) => (v as num?)?.toInt() ?? 0), - id: $checkedConvert('id', (v) => v as String), - imageUrl: $checkedConvert('imageUrl', (v) => v as String), - instances: $checkedConvert( - 'instances', - (v) => (v as List?) - ?.map((e) => (e as List).map((e) => e as Object).toList()) - .toList(), - ), - labsPublicationDate: $checkedConvert( - 'labsPublicationDate', - (v) => v as String, - ), - name: $checkedConvert('name', (v) => v as String), - namespace: $checkedConvert('namespace', (v) => v as String?), - occupants: $checkedConvert('occupants', (v) => (v as num?)?.toInt() ?? 0), - organization: $checkedConvert( - 'organization', - (v) => v as String? ?? 'vrchat', - ), - popularity: $checkedConvert( - 'popularity', - (v) => (v as num?)?.toInt() ?? 0, - ), - previewYoutubeId: $checkedConvert( - 'previewYoutubeId', - (v) => v as String?, - ), - privateOccupants: $checkedConvert( - 'privateOccupants', - (v) => (v as num?)?.toInt() ?? 0, - ), - publicOccupants: $checkedConvert( - 'publicOccupants', - (v) => (v as num?)?.toInt() ?? 0, - ), - publicationDate: $checkedConvert('publicationDate', (v) => v as String), - recommendedCapacity: $checkedConvert( - 'recommendedCapacity', - (v) => (v as num).toInt(), - ), - releaseStatus: $checkedConvert( - 'releaseStatus', - (v) => $enumDecode(_$ReleaseStatusEnumMap, v), - ), - storeId: $checkedConvert('storeId', (v) => v as String?), - tags: $checkedConvert( - 'tags', - (v) => (v as List).map((e) => e as String).toList(), - ), - thumbnailImageUrl: $checkedConvert( - 'thumbnailImageUrl', - (v) => v as String, - ), - udonProducts: $checkedConvert( - 'udonProducts', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - unityPackages: $checkedConvert( - 'unityPackages', - (v) => (v as List?) - ?.map((e) => UnityPackage.fromJson(e as Map)) - .toList(), - ), - updatedAt: $checkedConvert( - 'updated_at', - (v) => DateTime.parse(v as String), - ), - urlList: $checkedConvert( - 'urlList', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - version: $checkedConvert('version', (v) => (v as num?)?.toInt() ?? 0), - visits: $checkedConvert('visits', (v) => (v as num?)?.toInt() ?? 0), - ); - return val; - }, - fieldKeyMap: const {'createdAt': 'created_at', 'updatedAt': 'updated_at'}, -); +World _$WorldFromJson( + Map json, +) => $checkedCreate('World', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + 'authorId', + 'authorName', + 'capacity', + 'created_at', + 'description', + 'featured', + 'heat', + 'id', + 'imageUrl', + 'labsPublicationDate', + 'name', + 'organization', + 'popularity', + 'publicationDate', + 'recommendedCapacity', + 'releaseStatus', + 'tags', + 'thumbnailImageUrl', + 'updated_at', + 'version', + 'visits', + ], + ); + final val = World( + authorId: $checkedConvert('authorId', (v) => v as String), + authorName: $checkedConvert('authorName', (v) => v as String), + capacity: $checkedConvert('capacity', (v) => (v as num).toInt()), + createdAt: $checkedConvert( + 'created_at', + (v) => DateTime.parse(v as String), + ), + defaultContentSettings: $checkedConvert( + 'defaultContentSettings', + (v) => v == null + ? null + : InstanceContentSettings.fromJson(v as Map), + ), + description: $checkedConvert('description', (v) => v as String), + disabledPropAbilities: $checkedConvert( + 'disabledPropAbilities', + (v) => (v as List?)?.map((e) => e as Object).toList(), + ), + favorites: $checkedConvert('favorites', (v) => (v as num?)?.toInt() ?? 0), + featured: $checkedConvert('featured', (v) => v as bool? ?? false), + heat: $checkedConvert('heat', (v) => (v as num?)?.toInt() ?? 0), + id: $checkedConvert('id', (v) => v as String), + imageUrl: $checkedConvert('imageUrl', (v) => v as String), + instances: $checkedConvert( + 'instances', + (v) => (v as List?) + ?.map((e) => (e as List).map((e) => e as Object).toList()) + .toList(), + ), + labsPublicationDate: $checkedConvert( + 'labsPublicationDate', + (v) => v as String, + ), + name: $checkedConvert('name', (v) => v as String), + namespace: $checkedConvert('namespace', (v) => v as String?), + occupants: $checkedConvert('occupants', (v) => (v as num?)?.toInt() ?? 0), + organization: $checkedConvert( + 'organization', + (v) => v as String? ?? 'vrchat', + ), + popularity: $checkedConvert('popularity', (v) => (v as num?)?.toInt() ?? 0), + previewYoutubeId: $checkedConvert('previewYoutubeId', (v) => v as String?), + privateOccupants: $checkedConvert( + 'privateOccupants', + (v) => (v as num?)?.toInt() ?? 0, + ), + publicOccupants: $checkedConvert( + 'publicOccupants', + (v) => (v as num?)?.toInt() ?? 0, + ), + publicationDate: $checkedConvert('publicationDate', (v) => v as String), + recommendedCapacity: $checkedConvert( + 'recommendedCapacity', + (v) => (v as num).toInt(), + ), + releaseStatus: $checkedConvert( + 'releaseStatus', + (v) => $enumDecode(_$ReleaseStatusEnumMap, v), + ), + slimInstances: $checkedConvert( + 'slimInstances', + (v) => (v as List?)?.map((e) => e as Object).toList(), + ), + storeId: $checkedConvert('storeId', (v) => v as String?), + tags: $checkedConvert( + 'tags', + (v) => (v as List).map((e) => e as String).toList(), + ), + thumbnailImageUrl: $checkedConvert('thumbnailImageUrl', (v) => v as String), + udonProducts: $checkedConvert( + 'udonProducts', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + unityPackages: $checkedConvert( + 'unityPackages', + (v) => (v as List?) + ?.map((e) => UnityPackage.fromJson(e as Map)) + .toList(), + ), + updatedAt: $checkedConvert( + 'updated_at', + (v) => DateTime.parse(v as String), + ), + urlList: $checkedConvert( + 'urlList', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + version: $checkedConvert('version', (v) => (v as num?)?.toInt() ?? 0), + visits: $checkedConvert('visits', (v) => (v as num?)?.toInt() ?? 0), + ); + return val; +}, fieldKeyMap: const {'createdAt': 'created_at', 'updatedAt': 'updated_at'}); Map _$WorldToJson(World instance) => { 'authorId': instance.authorId, @@ -142,6 +138,7 @@ Map _$WorldToJson(World instance) => { 'created_at': instance.createdAt.toIso8601String(), 'defaultContentSettings': ?instance.defaultContentSettings?.toJson(), 'description': instance.description, + 'disabledPropAbilities': ?instance.disabledPropAbilities, 'favorites': ?instance.favorites, 'featured': instance.featured, 'heat': instance.heat, @@ -160,6 +157,7 @@ Map _$WorldToJson(World instance) => { 'publicationDate': instance.publicationDate, 'recommendedCapacity': instance.recommendedCapacity, 'releaseStatus': _$ReleaseStatusEnumMap[instance.releaseStatus]!, + 'slimInstances': ?instance.slimInstances, 'storeId': ?instance.storeId, 'tags': instance.tags, 'thumbnailImageUrl': instance.thumbnailImageUrl, diff --git a/vrchat_dart_generated/lib/vrchat_dart_generated.dart b/vrchat_dart_generated/lib/vrchat_dart_generated.dart index bd5423eb..50b13528 100644 --- a/vrchat_dart_generated/lib/vrchat_dart_generated.dart +++ b/vrchat_dart_generated/lib/vrchat_dart_generated.dart @@ -11,6 +11,7 @@ export 'package:vrchat_dart_generated/src/auth/oauth.dart'; export 'package:vrchat_dart_generated/src/api/authentication_api.dart'; export 'package:vrchat_dart_generated/src/api/avatars_api.dart'; export 'package:vrchat_dart_generated/src/api/calendar_api.dart'; +export 'package:vrchat_dart_generated/src/api/deprecated_api.dart'; export 'package:vrchat_dart_generated/src/api/economy_api.dart'; export 'package:vrchat_dart_generated/src/api/favorites_api.dart'; export 'package:vrchat_dart_generated/src/api/files_api.dart'; @@ -42,10 +43,14 @@ export 'package:vrchat_dart_generated/src/model/api_config_constants_instancepop export 'package:vrchat_dart_generated/src/model/api_config_constants_instancepopulationbracketsmany.dart'; export 'package:vrchat_dart_generated/src/model/api_config_constants_language.dart'; export 'package:vrchat_dart_generated/src/model/api_config_download_url_list.dart'; +export 'package:vrchat_dart_generated/src/model/api_config_event_shelf_campaign.dart'; export 'package:vrchat_dart_generated/src/model/api_config_events.dart'; export 'package:vrchat_dart_generated/src/model/api_config_ios_version.dart'; +export 'package:vrchat_dart_generated/src/model/api_config_loading_screen_weights.dart'; +export 'package:vrchat_dart_generated/src/model/api_config_low_memory_go_home_timeout_value.dart'; export 'package:vrchat_dart_generated/src/model/api_config_min_supported_client_build_number.dart'; export 'package:vrchat_dart_generated/src/model/api_config_offline_analysis.dart'; +export 'package:vrchat_dart_generated/src/model/api_config_profile_defaults.dart'; export 'package:vrchat_dart_generated/src/model/api_health.dart'; export 'package:vrchat_dart_generated/src/model/account_deletion_log.dart'; export 'package:vrchat_dart_generated/src/model/add_favorite_request.dart'; @@ -69,6 +74,7 @@ export 'package:vrchat_dart_generated/src/model/avatar_unity_package_url_object. export 'package:vrchat_dart_generated/src/model/badge.dart'; export 'package:vrchat_dart_generated/src/model/balance.dart'; export 'package:vrchat_dart_generated/src/model/ban_group_member_request.dart'; +export 'package:vrchat_dart_generated/src/model/bare_error.dart'; export 'package:vrchat_dart_generated/src/model/boop_request.dart'; export 'package:vrchat_dart_generated/src/model/calendar_day_of_week.dart'; export 'package:vrchat_dart_generated/src/model/calendar_event.dart'; @@ -165,8 +171,8 @@ export 'package:vrchat_dart_generated/src/model/group_post_visibility.dart'; export 'package:vrchat_dart_generated/src/model/group_privacy.dart'; export 'package:vrchat_dart_generated/src/model/group_role.dart'; export 'package:vrchat_dart_generated/src/model/group_role_template.dart'; +export 'package:vrchat_dart_generated/src/model/group_role_template_role.dart'; export 'package:vrchat_dart_generated/src/model/group_role_template_values.dart'; -export 'package:vrchat_dart_generated/src/model/group_role_template_values_roles.dart'; export 'package:vrchat_dart_generated/src/model/group_search_sort.dart'; export 'package:vrchat_dart_generated/src/model/group_transferable.dart'; export 'package:vrchat_dart_generated/src/model/group_transferable_requirements.dart'; @@ -179,13 +185,21 @@ export 'package:vrchat_dart_generated/src/model/info_push.dart'; export 'package:vrchat_dart_generated/src/model/info_push_data.dart'; export 'package:vrchat_dart_generated/src/model/info_push_data_article.dart'; export 'package:vrchat_dart_generated/src/model/info_push_data_article_content.dart'; +export 'package:vrchat_dart_generated/src/model/info_push_data_category.dart'; export 'package:vrchat_dart_generated/src/model/info_push_data_clickable.dart'; +export 'package:vrchat_dart_generated/src/model/info_push_data_domain_list_inner.dart'; +export 'package:vrchat_dart_generated/src/model/info_push_data_search.dart'; +export 'package:vrchat_dart_generated/src/model/info_push_embedded_link.dart'; +export 'package:vrchat_dart_generated/src/model/info_push_experiment.dart'; +export 'package:vrchat_dart_generated/src/model/info_push_ips_query.dart'; export 'package:vrchat_dart_generated/src/model/instance.dart'; +export 'package:vrchat_dart_generated/src/model/instance_category.dart'; export 'package:vrchat_dart_generated/src/model/instance_content_settings.dart'; export 'package:vrchat_dart_generated/src/model/instance_platforms.dart'; export 'package:vrchat_dart_generated/src/model/instance_region.dart'; export 'package:vrchat_dart_generated/src/model/instance_short_name_response.dart'; export 'package:vrchat_dart_generated/src/model/instance_type.dart'; +export 'package:vrchat_dart_generated/src/model/instance_vibe.dart'; export 'package:vrchat_dart_generated/src/model/inventory.dart'; export 'package:vrchat_dart_generated/src/model/inventory_consumption_results.dart'; export 'package:vrchat_dart_generated/src/model/inventory_default_attributes_value.dart'; @@ -235,6 +249,7 @@ export 'package:vrchat_dart_generated/src/model/notification_v2.dart'; export 'package:vrchat_dart_generated/src/model/notification_v2_details_boop.dart'; export 'package:vrchat_dart_generated/src/model/notification_v2_response.dart'; export 'package:vrchat_dart_generated/src/model/notification_v2_type.dart'; +export 'package:vrchat_dart_generated/src/model/o_auth_redirect_code.dart'; export 'package:vrchat_dart_generated/src/model/ok_status.dart'; export 'package:vrchat_dart_generated/src/model/ok_status2.dart'; export 'package:vrchat_dart_generated/src/model/order_option.dart'; @@ -257,6 +272,8 @@ export 'package:vrchat_dart_generated/src/model/private_profile.dart'; export 'package:vrchat_dart_generated/src/model/private_profile_activity.dart'; export 'package:vrchat_dart_generated/src/model/product.dart'; export 'package:vrchat_dart_generated/src/model/product_listing.dart'; +export 'package:vrchat_dart_generated/src/model/product_listing_attribution.dart'; +export 'package:vrchat_dart_generated/src/model/product_listing_attribution_creator.dart'; export 'package:vrchat_dart_generated/src/model/product_listing_type.dart'; export 'package:vrchat_dart_generated/src/model/product_listing_variant.dart'; export 'package:vrchat_dart_generated/src/model/product_purchase.dart'; @@ -288,6 +305,7 @@ export 'package:vrchat_dart_generated/src/model/reward_redemption.dart'; export 'package:vrchat_dart_generated/src/model/reward_redemption_data.dart'; export 'package:vrchat_dart_generated/src/model/reward_redemption_request.dart'; export 'package:vrchat_dart_generated/src/model/reward_redemption_result.dart'; +export 'package:vrchat_dart_generated/src/model/route_not_implemented.dart'; export 'package:vrchat_dart_generated/src/model/search_group_members200_response.dart'; export 'package:vrchat_dart_generated/src/model/seller_eligibility.dart'; export 'package:vrchat_dart_generated/src/model/sent_notification.dart'; @@ -296,6 +314,8 @@ export 'package:vrchat_dart_generated/src/model/service_status.dart'; export 'package:vrchat_dart_generated/src/model/share_inventory_item_direct_request.dart'; export 'package:vrchat_dart_generated/src/model/sort_option.dart'; export 'package:vrchat_dart_generated/src/model/sort_option_product_purchase.dart'; +export 'package:vrchat_dart_generated/src/model/sso_provider.dart'; +export 'package:vrchat_dart_generated/src/model/sso_token.dart'; export 'package:vrchat_dart_generated/src/model/store.dart'; export 'package:vrchat_dart_generated/src/model/store_context.dart'; export 'package:vrchat_dart_generated/src/model/store_shelf.dart'; diff --git a/vrchat_dart_generated/pubspec.yaml b/vrchat_dart_generated/pubspec.yaml index 842862b0..a8278206 100644 --- a/vrchat_dart_generated/pubspec.yaml +++ b/vrchat_dart_generated/pubspec.yaml @@ -1,5 +1,5 @@ name: vrchat_dart_generated -version: 1.20.8 +version: 1.20.9 description: The generated API used by vrchat_dart. Generated from https://github.com/vrchatapi/specification. homepage: https://github.com/vrchatapi/vrchatapi-dart