diff --git a/vrchat_dart_generated/.openapi-generator/FILES b/vrchat_dart_generated/.openapi-generator/FILES index 1d1579d..e3ec6a2 100644 --- a/vrchat_dart_generated/.openapi-generator/FILES +++ b/vrchat_dart_generated/.openapi-generator/FILES @@ -29,6 +29,7 @@ doc/AddGroupGalleryImageRequest.md doc/AdminAssetBundle.md doc/AdminUnityPackage.md doc/AgeVerificationStatus.md +doc/AgeVerificationStatusResult.md doc/Agreement.md doc/AgreementCode.md doc/AgreementRequest.md @@ -48,6 +49,9 @@ doc/Badge.md doc/Balance.md doc/BanGroupMemberRequest.md doc/BareError.md +doc/Beta.md +doc/BetaRegistrationNotFoundError.md +doc/BetaUserField.md doc/BoopRequest.md doc/CalendarApi.md doc/CalendarDayOfWeek.md @@ -96,17 +100,24 @@ doc/DynamicContentRow.md doc/EarningsMetrics.md doc/EarningsMetricsTotals.md doc/EconomyAccount.md +doc/EconomyAccountLimits.md doc/EconomyApi.md doc/EconomyBalances.md doc/EconomyPayout.md doc/EconomyPayoutEligibility.md doc/EconomyPayoutList.md doc/EconomyPayoutStatus.md +doc/EconomyStatus.md doc/EquipInventoryItemRequest.md doc/Error.md doc/Favorite.md doc/FavoriteGroup.md +doc/FavoriteGroupContents.md +doc/FavoriteGroupContentsEntry.md +doc/FavoriteGroupContentsEntryWorld.md doc/FavoriteGroupLimits.md +doc/FavoriteGroupList.md +doc/FavoriteGroupSummary.md doc/FavoriteGroupVisibility.md doc/FavoriteLimits.md doc/FavoriteType.md @@ -126,6 +137,7 @@ doc/FinishFileDataUploadRequest.md doc/FollowCalendarEventRequest.md doc/FriendStatus.md doc/FriendsApi.md +doc/GetGroupGalleryImages200Response.md doc/GetGroupPosts200Response.md doc/GetUserGroupInstances200Response.md doc/Group.md @@ -136,6 +148,7 @@ doc/GroupGallery.md doc/GroupGalleryFileOrder.md doc/GroupGalleryFileOrderRequest.md doc/GroupGalleryImage.md +doc/GroupGalleryImageList.md doc/GroupInstance.md doc/GroupJoinRequestAction.md doc/GroupJoinState.md @@ -183,6 +196,7 @@ doc/InstanceVibe.md doc/InstancesApi.md doc/Inventory.md doc/InventoryApi.md +doc/InventoryAsset.md doc/InventoryConsumptionResults.md doc/InventoryDefaultAttributesValue.md doc/InventoryDefaultAttributesValueValidator.md @@ -271,6 +285,8 @@ doc/ProductPurchaseProduct.md doc/ProductPurchasePurchaseContext.md doc/ProductPurchaseRecord.md doc/ProductType.md +doc/ProfileGroup.md +doc/ProfileGroups.md doc/ProfileRepresentedGroup.md doc/Prop.md doc/PropPublishStatus.md @@ -331,6 +347,7 @@ doc/TwoFactorAuthCode.md doc/TwoFactorEmailCode.md doc/TwoFactorRecoveryCodes.md doc/TwoFactorRecoveryCodesOtpInner.md +doc/UnavailableWorld.md doc/UnityPackage.md doc/UpdateAssetReviewNotesRequest.md doc/UpdateAvatarRequest.md @@ -345,13 +362,17 @@ doc/UpdateInventoryItemRequest.md doc/UpdateInviteMessageRequest.md doc/UpdateListingRequest.md doc/UpdateProductRequest.md +doc/UpdateProfileRequest.md doc/UpdatePropRequest.md doc/UpdateTiliaTOSRequest.md doc/UpdateUserBadgeRequest.md +doc/UpdateUserClientConfigRequest.md doc/UpdateUserNoteRequest.md doc/UpdateUserRequest.md doc/UpdateWorldRequest.md doc/User.md +doc/UserClientConfig.md +doc/UserCosmetic.md doc/UserCreditsEligible.md doc/UserExists.md doc/UserNote.md @@ -365,6 +386,7 @@ doc/Verify2FAEmailCodeResult.md doc/Verify2FAResult.md doc/VerifyAuthTokenResult.md doc/World.md +doc/WorldFavoriteList.md doc/WorldMetadata.md doc/WorldPublishStatus.md doc/WorldsApi.md @@ -401,6 +423,7 @@ lib/src/model/add_group_gallery_image_request.dart lib/src/model/admin_asset_bundle.dart lib/src/model/admin_unity_package.dart lib/src/model/age_verification_status.dart +lib/src/model/age_verification_status_result.dart lib/src/model/agreement.dart lib/src/model/agreement_code.dart lib/src/model/agreement_request.dart @@ -441,6 +464,9 @@ 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/beta.dart +lib/src/model/beta_registration_not_found_error.dart +lib/src/model/beta_user_field.dart lib/src/model/boop_request.dart lib/src/model/calendar_day_of_week.dart lib/src/model/calendar_event.dart @@ -487,16 +513,23 @@ lib/src/model/dynamic_content_row.dart lib/src/model/earnings_metrics.dart lib/src/model/earnings_metrics_totals.dart lib/src/model/economy_account.dart +lib/src/model/economy_account_limits.dart lib/src/model/economy_balances.dart lib/src/model/economy_payout.dart lib/src/model/economy_payout_eligibility.dart lib/src/model/economy_payout_list.dart lib/src/model/economy_payout_status.dart +lib/src/model/economy_status.dart lib/src/model/equip_inventory_item_request.dart lib/src/model/error.dart lib/src/model/favorite.dart lib/src/model/favorite_group.dart +lib/src/model/favorite_group_contents.dart +lib/src/model/favorite_group_contents_entry.dart +lib/src/model/favorite_group_contents_entry_world.dart lib/src/model/favorite_group_limits.dart +lib/src/model/favorite_group_list.dart +lib/src/model/favorite_group_summary.dart lib/src/model/favorite_group_visibility.dart lib/src/model/favorite_limits.dart lib/src/model/favorite_type.dart @@ -513,6 +546,7 @@ lib/src/model/file_version_upload_status.dart lib/src/model/finish_file_data_upload_request.dart lib/src/model/follow_calendar_event_request.dart lib/src/model/friend_status.dart +lib/src/model/get_group_gallery_images200_response.dart lib/src/model/get_group_posts200_response.dart lib/src/model/get_user_group_instances200_response.dart lib/src/model/group.dart @@ -523,6 +557,7 @@ lib/src/model/group_gallery.dart lib/src/model/group_gallery_file_order.dart lib/src/model/group_gallery_file_order_request.dart lib/src/model/group_gallery_image.dart +lib/src/model/group_gallery_image_list.dart lib/src/model/group_instance.dart lib/src/model/group_join_request_action.dart lib/src/model/group_join_state.dart @@ -567,6 +602,7 @@ 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_asset.dart lib/src/model/inventory_consumption_results.dart lib/src/model/inventory_default_attributes_value.dart lib/src/model/inventory_default_attributes_value_validator.dart @@ -649,6 +685,8 @@ lib/src/model/product_purchase_product.dart lib/src/model/product_purchase_purchase_context.dart lib/src/model/product_purchase_record.dart lib/src/model/product_type.dart +lib/src/model/profile_group.dart +lib/src/model/profile_groups.dart lib/src/model/profile_represented_group.dart lib/src/model/prop.dart lib/src/model/prop_publish_status.dart @@ -708,6 +746,7 @@ lib/src/model/two_factor_auth_code.dart lib/src/model/two_factor_email_code.dart lib/src/model/two_factor_recovery_codes.dart lib/src/model/two_factor_recovery_codes_otp_inner.dart +lib/src/model/unavailable_world.dart lib/src/model/unity_package.dart lib/src/model/update_asset_review_notes_request.dart lib/src/model/update_avatar_request.dart @@ -722,13 +761,17 @@ lib/src/model/update_inventory_item_request.dart lib/src/model/update_invite_message_request.dart lib/src/model/update_listing_request.dart lib/src/model/update_product_request.dart +lib/src/model/update_profile_request.dart lib/src/model/update_prop_request.dart lib/src/model/update_tilia_tos_request.dart lib/src/model/update_user_badge_request.dart +lib/src/model/update_user_client_config_request.dart lib/src/model/update_user_note_request.dart lib/src/model/update_user_request.dart lib/src/model/update_world_request.dart lib/src/model/user.dart +lib/src/model/user_client_config.dart +lib/src/model/user_cosmetic.dart lib/src/model/user_credits_eligible.dart lib/src/model/user_exists.dart lib/src/model/user_note.dart @@ -741,6 +784,7 @@ lib/src/model/verify2_fa_email_code_result.dart lib/src/model/verify2_fa_result.dart lib/src/model/verify_auth_token_result.dart lib/src/model/world.dart +lib/src/model/world_favorite_list.dart lib/src/model/world_metadata.dart lib/src/model/world_publish_status.dart lib/vrchat_dart_generated.dart @@ -749,6 +793,7 @@ test/add_favorite_request_test.dart test/add_group_gallery_image_request_test.dart test/admin_asset_bundle_test.dart test/admin_unity_package_test.dart +test/age_verification_status_result_test.dart test/age_verification_status_test.dart test/agreement_code_test.dart test/agreement_request_test.dart @@ -792,6 +837,9 @@ test/badge_test.dart test/balance_test.dart test/ban_group_member_request_test.dart test/bare_error_test.dart +test/beta_registration_not_found_error_test.dart +test/beta_test.dart +test/beta_user_field_test.dart test/boop_request_test.dart test/calendar_api_test.dart test/calendar_day_of_week_test.dart @@ -839,6 +887,7 @@ test/discord_details_test.dart test/dynamic_content_row_test.dart test/earnings_metrics_test.dart test/earnings_metrics_totals_test.dart +test/economy_account_limits_test.dart test/economy_account_test.dart test/economy_api_test.dart test/economy_balances_test.dart @@ -846,9 +895,15 @@ test/economy_payout_eligibility_test.dart test/economy_payout_list_test.dart test/economy_payout_status_test.dart test/economy_payout_test.dart +test/economy_status_test.dart test/equip_inventory_item_request_test.dart test/error_test.dart +test/favorite_group_contents_entry_test.dart +test/favorite_group_contents_entry_world_test.dart +test/favorite_group_contents_test.dart test/favorite_group_limits_test.dart +test/favorite_group_list_test.dart +test/favorite_group_summary_test.dart test/favorite_group_test.dart test/favorite_group_visibility_test.dart test/favorite_limits_test.dart @@ -870,6 +925,7 @@ test/finish_file_data_upload_request_test.dart test/follow_calendar_event_request_test.dart test/friend_status_test.dart test/friends_api_test.dart +test/get_group_gallery_images200_response_test.dart test/get_group_posts200_response_test.dart test/get_user_group_instances200_response_test.dart test/group_access_type_test.dart @@ -877,6 +933,7 @@ test/group_announcement_test.dart test/group_audit_log_entry_test.dart test/group_gallery_file_order_request_test.dart test/group_gallery_file_order_test.dart +test/group_gallery_image_list_test.dart test/group_gallery_image_test.dart test/group_gallery_test.dart test/group_instance_test.dart @@ -926,6 +983,7 @@ test/instance_type_test.dart test/instance_vibe_test.dart test/instances_api_test.dart test/inventory_api_test.dart +test/inventory_asset_test.dart test/inventory_consumption_results_test.dart test/inventory_default_attributes_value_test.dart test/inventory_default_attributes_value_validator_test.dart @@ -1015,6 +1073,8 @@ test/product_purchase_record_test.dart test/product_purchase_test.dart test/product_test.dart test/product_type_test.dart +test/profile_group_test.dart +test/profile_groups_test.dart test/profile_represented_group_test.dart test/prop_publish_status_test.dart test/prop_test.dart @@ -1075,6 +1135,7 @@ test/two_factor_auth_code_test.dart test/two_factor_email_code_test.dart test/two_factor_recovery_codes_otp_inner_test.dart test/two_factor_recovery_codes_test.dart +test/unavailable_world_test.dart test/unity_package_test.dart test/update_asset_review_notes_request_test.dart test/update_avatar_request_test.dart @@ -1089,12 +1150,16 @@ test/update_inventory_item_request_test.dart test/update_invite_message_request_test.dart test/update_listing_request_test.dart test/update_product_request_test.dart +test/update_profile_request_test.dart test/update_prop_request_test.dart test/update_tilia_tos_request_test.dart test/update_user_badge_request_test.dart +test/update_user_client_config_request_test.dart test/update_user_note_request_test.dart test/update_user_request_test.dart test/update_world_request_test.dart +test/user_client_config_test.dart +test/user_cosmetic_test.dart test/user_credits_eligible_test.dart test/user_exists_test.dart test/user_note_target_user_test.dart @@ -1108,6 +1173,7 @@ test/users_api_test.dart test/verify2_fa_email_code_result_test.dart test/verify2_fa_result_test.dart test/verify_auth_token_result_test.dart +test/world_favorite_list_test.dart test/world_metadata_test.dart test/world_publish_status_test.dart test/world_test.dart diff --git a/vrchat_dart_generated/CHANGELOG.md b/vrchat_dart_generated/CHANGELOG.md index c60e66a..0c962cf 100644 --- a/vrchat_dart_generated/CHANGELOG.md +++ b/vrchat_dart_generated/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.21.0 +- Updated to match spec + ## 1.20.9 - Updated to match spec diff --git a/vrchat_dart_generated/README.md b/vrchat_dart_generated/README.md index 31c0e2e..9be60f4 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.9 +- API version: 1.21.0 - 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) @@ -217,12 +217,15 @@ Class | Method | HTTP request | Description [*EconomyApi*](doc/EconomyApi.md) | [**getCurrentSubscriptions**](doc/EconomyApi.md#getcurrentsubscriptions) | **GET** /auth/user/subscription | Get Current Subscriptions [*EconomyApi*](doc/EconomyApi.md) | [**getEarningsMetrics**](doc/EconomyApi.md#getearningsmetrics) | **GET** /economy/metrics/earnings | Get Earnings Metrics [*EconomyApi*](doc/EconomyApi.md) | [**getEconomyAccount**](doc/EconomyApi.md#geteconomyaccount) | **GET** /user/{userId}/economy/account | Get Economy Account +[*EconomyApi*](doc/EconomyApi.md) | [**getEconomyBalance**](doc/EconomyApi.md#geteconomybalance) | **GET** /user/{userId}/economy/balance | Get Economy Balance [*EconomyApi*](doc/EconomyApi.md) | [**getEconomyBalances**](doc/EconomyApi.md#geteconomybalances) | **GET** /user/{userId}/economy/balances | Get Economy Balances [*EconomyApi*](doc/EconomyApi.md) | [**getEconomyPayoutStatus**](doc/EconomyApi.md#geteconomypayoutstatus) | **GET** /user/{userId}/economy/payouts/status | Get Economy Payout Status [*EconomyApi*](doc/EconomyApi.md) | [**getEconomyPayouts**](doc/EconomyApi.md#geteconomypayouts) | **GET** /user/{userId}/economy/payouts/list | Get Economy Payouts +[*EconomyApi*](doc/EconomyApi.md) | [**getEconomyStatus**](doc/EconomyApi.md#geteconomystatus) | **GET** /economy/status | Get Economy Status [*EconomyApi*](doc/EconomyApi.md) | [**getLicenseGroup**](doc/EconomyApi.md#getlicensegroup) | **GET** /licenseGroups/{licenseGroupId} | Get License Group [*EconomyApi*](doc/EconomyApi.md) | [**getProductListing**](doc/EconomyApi.md#getproductlisting) | **GET** /listing/{productId} | Get Product Listing [*EconomyApi*](doc/EconomyApi.md) | [**getProductListingAlternate**](doc/EconomyApi.md#getproductlistingalternate) | **GET** /products/{productId} | Get Product Listing (alternate) +[*EconomyApi*](doc/EconomyApi.md) | [**getProductListingProducts**](doc/EconomyApi.md#getproductlistingproducts) | **GET** /listing/{productId}/products | Get Product Listing Products [*EconomyApi*](doc/EconomyApi.md) | [**getProductListings**](doc/EconomyApi.md#getproductlistings) | **GET** /user/{userId}/listings | Get User Product Listings [*EconomyApi*](doc/EconomyApi.md) | [**getProductPurchase**](doc/EconomyApi.md#getproductpurchase) | **GET** /economy/purchases/{productPurchaseId} | Get Product Purchase [*EconomyApi*](doc/EconomyApi.md) | [**getProductPurchaseHistory**](doc/EconomyApi.md#getproductpurchasehistory) | **GET** /user/{userId}/economy/transactions | Get Product Purchase History @@ -250,7 +253,9 @@ Class | Method | HTTP request | Description [*FavoritesApi*](doc/FavoritesApi.md) | [**addFavorite**](doc/FavoritesApi.md#addfavorite) | **POST** /favorites | Add Favorite [*FavoritesApi*](doc/FavoritesApi.md) | [**clearFavoriteGroup**](doc/FavoritesApi.md#clearfavoritegroup) | **DELETE** /favorite/group/{favoriteGroupType}/{favoriteGroupName}/{userId} | Clear Favorite Group [*FavoritesApi*](doc/FavoritesApi.md) | [**getFavoriteGroup**](doc/FavoritesApi.md#getfavoritegroup) | **GET** /favorite/group/{favoriteGroupType}/{favoriteGroupName}/{userId} | Show Favorite Group +[*FavoritesApi*](doc/FavoritesApi.md) | [**getFavoriteGroupContents**](doc/FavoritesApi.md#getfavoritegroupcontents) | **GET** /favorites/groups/{favoriteGroupType}/{favoriteGroupName} | List Favorite Group Contents [*FavoritesApi*](doc/FavoritesApi.md) | [**getFavoriteGroups**](doc/FavoritesApi.md#getfavoritegroups) | **GET** /favorite/groups | List Favorite Groups +[*FavoritesApi*](doc/FavoritesApi.md) | [**getFavoriteGroupsByType**](doc/FavoritesApi.md#getfavoritegroupsbytype) | **GET** /favorites/groups/{favoriteGroupType} | List Favorite Groups By Type [*FavoritesApi*](doc/FavoritesApi.md) | [**getFavoriteLimits**](doc/FavoritesApi.md#getfavoritelimits) | **GET** /auth/user/favoritelimits | Get Favorite Limits [*FavoritesApi*](doc/FavoritesApi.md) | [**getFavorites**](doc/FavoritesApi.md#getfavorites) | **GET** /favorites | List Favorites [*FavoritesApi*](doc/FavoritesApi.md) | [**removeFavorite**](doc/FavoritesApi.md#removefavorite) | **DELETE** /favorites/{favoriteId} | Remove Favorite @@ -344,11 +349,13 @@ Class | Method | HTTP request | Description [*InventoryApi*](doc/InventoryApi.md) | [**consumeOwnInventoryItem**](doc/InventoryApi.md#consumeowninventoryitem) | **PUT** /inventory/{inventoryItemId}/consume | Consume Own Inventory Item [*InventoryApi*](doc/InventoryApi.md) | [**deleteOwnInventoryItem**](doc/InventoryApi.md#deleteowninventoryitem) | **DELETE** /inventory/{inventoryItemId} | Delete Own Inventory Item [*InventoryApi*](doc/InventoryApi.md) | [**equipOwnInventoryItem**](doc/InventoryApi.md#equipowninventoryitem) | **PUT** /inventory/{inventoryItemId}/equip | Equip Own Inventory Item +[*InventoryApi*](doc/InventoryApi.md) | [**getCosmeticIndex**](doc/InventoryApi.md#getcosmeticindex) | **GET** /cosmetics/index/{itemType} | List Cosmetics [*InventoryApi*](doc/InventoryApi.md) | [**getInventory**](doc/InventoryApi.md#getinventory) | **GET** /inventory | Get Inventory [*InventoryApi*](doc/InventoryApi.md) | [**getInventoryCollections**](doc/InventoryApi.md#getinventorycollections) | **GET** /inventory/collections | List Inventory Collections [*InventoryApi*](doc/InventoryApi.md) | [**getInventoryDrops**](doc/InventoryApi.md#getinventorydrops) | **GET** /inventory/drops | List Inventory Drops [*InventoryApi*](doc/InventoryApi.md) | [**getInventoryTemplate**](doc/InventoryApi.md#getinventorytemplate) | **GET** /inventory/template/{inventoryTemplateId} | Get Inventory Template [*InventoryApi*](doc/InventoryApi.md) | [**getOwnInventoryItem**](doc/InventoryApi.md#getowninventoryitem) | **GET** /inventory/{inventoryItemId} | Get Own Inventory Item +[*InventoryApi*](doc/InventoryApi.md) | [**getUserCosmetics**](doc/InventoryApi.md#getusercosmetics) | **GET** /user/{userId}/cosmetics | List User Cosmetics [*InventoryApi*](doc/InventoryApi.md) | [**getUserInventoryItem**](doc/InventoryApi.md#getuserinventoryitem) | **GET** /user/{userId}/inventory/{inventoryItemId} | Get User Inventory Item [*InventoryApi*](doc/InventoryApi.md) | [**redeemReward**](doc/InventoryApi.md#redeemreward) | **POST** /reward/redeem | Redeem Reward [*InventoryApi*](doc/InventoryApi.md) | [**shareInventoryItemDirect**](doc/InventoryApi.md#shareinventoryitemdirect) | **POST** /inventory/cloning/direct | Share Inventory Item Direct @@ -373,9 +380,12 @@ Class | Method | HTTP request | Description [*JamsApi*](doc/JamsApi.md) | [**getJams**](doc/JamsApi.md#getjams) | **GET** /jams | Show jams list [*JamsApi*](doc/JamsApi.md) | [**submitJamContent**](doc/JamsApi.md#submitjamcontent) | **POST** /jams/{jamId}/submissions | Submit Jam Content [*MiscellaneousApi*](doc/MiscellaneousApi.md) | [**getAssignedPermissions**](doc/MiscellaneousApi.md#getassignedpermissions) | **GET** /auth/permissions | Get Assigned Permissions +[*MiscellaneousApi*](doc/MiscellaneousApi.md) | [**getBeta**](doc/MiscellaneousApi.md#getbeta) | **GET** /beta/{betaName} | Get Beta Program +[*MiscellaneousApi*](doc/MiscellaneousApi.md) | [**getBetaRegistration**](doc/MiscellaneousApi.md#getbetaregistration) | **GET** /beta/{betaName}/register | Get Beta Registration [*MiscellaneousApi*](doc/MiscellaneousApi.md) | [**getCSS**](doc/MiscellaneousApi.md#getcss) | **GET** /css/app.css | Download CSS [*MiscellaneousApi*](doc/MiscellaneousApi.md) | [**getConfig**](doc/MiscellaneousApi.md#getconfig) | **GET** /config | Fetch API Config [*MiscellaneousApi*](doc/MiscellaneousApi.md) | [**getCurrentOnlineUsers**](doc/MiscellaneousApi.md#getcurrentonlineusers) | **GET** /visits | Current Online Users +[*MiscellaneousApi*](doc/MiscellaneousApi.md) | [**getFrontendBranches**](doc/MiscellaneousApi.md#getfrontendbranches) | **GET** /frontend/branches | List Frontend Branches [*MiscellaneousApi*](doc/MiscellaneousApi.md) | [**getHealth**](doc/MiscellaneousApi.md#gethealth) | **GET** /health | Check API Health [*MiscellaneousApi*](doc/MiscellaneousApi.md) | [**getInfoPush**](doc/MiscellaneousApi.md#getinfopush) | **GET** /infoPush | Show Information Notices [*MiscellaneousApi*](doc/MiscellaneousApi.md) | [**getJavaScript**](doc/MiscellaneousApi.md#getjavascript) | **GET** /js/app.js | Download JavaScript @@ -415,6 +425,7 @@ Class | Method | HTTP request | Description [*UsersApi*](doc/UsersApi.md) | [**checkUserPersistenceExists**](doc/UsersApi.md#checkuserpersistenceexists) | **GET** /users/{userId}/{worldId}/persist/exists | Check User Persistence Exists [*UsersApi*](doc/UsersApi.md) | [**deleteAllUserPersistenceData**](doc/UsersApi.md#deletealluserpersistencedata) | **DELETE** /users/{userId}/persist | Delete All User Persistence Data [*UsersApi*](doc/UsersApi.md) | [**deleteUserPersistence**](doc/UsersApi.md#deleteuserpersistence) | **DELETE** /users/{userId}/{worldId}/persist | Delete User Persistence +[*UsersApi*](doc/UsersApi.md) | [**getAgeVerificationStatus**](doc/UsersApi.md#getageverificationstatus) | **GET** /ageVerification/status | Get Age Verification Status [*UsersApi*](doc/UsersApi.md) | [**getBlockedGroups**](doc/UsersApi.md#getblockedgroups) | **GET** /users/{userId}/groups/userblocked | Get User Group Blocks [*UsersApi*](doc/UsersApi.md) | [**getInvitedGroups**](doc/UsersApi.md#getinvitedgroups) | **GET** /users/{userId}/groups/invited | Get User Group Invited [*UsersApi*](doc/UsersApi.md) | [**getMutualFriends**](doc/UsersApi.md#getmutualfriends) | **GET** /users/{userId}/mutuals/friends | Get User Mutual Friends @@ -425,6 +436,7 @@ Class | Method | HTTP request | Description [*UsersApi*](doc/UsersApi.md) | [**getUser**](doc/UsersApi.md#getuser) | **GET** /users/{userId} | Get User by ID [*UsersApi*](doc/UsersApi.md) | [**getUserAllGroupPermissions**](doc/UsersApi.md#getuserallgrouppermissions) | **GET** /users/{userId}/groups/permissions | Get user's permissions for all joined groups. [*UsersApi*](doc/UsersApi.md) | [**getUserByName**](doc/UsersApi.md#getuserbyname) | **GET** /users/{username}/name | Get User by Username +[*UsersApi*](doc/UsersApi.md) | [**getUserClientConfig**](doc/UsersApi.md#getuserclientconfig) | **GET** /users/{userId}/clientConfig | Get User Client Config [*UsersApi*](doc/UsersApi.md) | [**getUserFeedback**](doc/UsersApi.md#getuserfeedback) | **GET** /users/{userId}/feedback | Get User Feedback [*UsersApi*](doc/UsersApi.md) | [**getUserGroupInstances**](doc/UsersApi.md#getusergroupinstances) | **GET** /users/{userId}/instances/groups | Get User Group Instances [*UsersApi*](doc/UsersApi.md) | [**getUserGroupInstancesForGroup**](doc/UsersApi.md#getusergroupinstancesforgroup) | **GET** /users/{userId}/instances/groups/{groupId} | Get User Group Instances for a specific Group @@ -437,7 +449,9 @@ Class | Method | HTTP request | Description [*UsersApi*](doc/UsersApi.md) | [**removeTags**](doc/UsersApi.md#removetags) | **POST** /users/{userId}/removeTags | Remove User Tags [*UsersApi*](doc/UsersApi.md) | [**searchUsers**](doc/UsersApi.md#searchusers) | **GET** /users | Search All Users [*UsersApi*](doc/UsersApi.md) | [**updateBadge**](doc/UsersApi.md#updatebadge) | **PUT** /users/{userId}/badges/{badgeId} | Update User Badge +[*UsersApi*](doc/UsersApi.md) | [**updateProfile**](doc/UsersApi.md#updateprofile) | **PUT** /profile/{userId} | Update Profile [*UsersApi*](doc/UsersApi.md) | [**updateUser**](doc/UsersApi.md#updateuser) | **PUT** /users/{userId} | Update User Info +[*UsersApi*](doc/UsersApi.md) | [**updateUserClientConfig**](doc/UsersApi.md#updateuserclientconfig) | **PUT** /users/{userId}/clientConfig | Update User Client Config [*UsersApi*](doc/UsersApi.md) | [**updateUserNote**](doc/UsersApi.md#updateusernote) | **POST** /userNotes | Update User Note [*WorldsApi*](doc/WorldsApi.md) | [**addWorldTags**](doc/WorldsApi.md#addworldtags) | **POST** /worlds/{worldId}/addTags | Add World Tags [*WorldsApi*](doc/WorldsApi.md) | [**checkUserPersistenceExists**](doc/WorldsApi.md#checkuserpersistenceexists) | **GET** /users/{userId}/{worldId}/persist/exists | Check User Persistence Exists @@ -491,6 +505,7 @@ Class | Method | HTTP request | Description - [AdminAssetBundle](doc/AdminAssetBundle.md) - [AdminUnityPackage](doc/AdminUnityPackage.md) - [AgeVerificationStatus](doc/AgeVerificationStatus.md) + - [AgeVerificationStatusResult](doc/AgeVerificationStatusResult.md) - [Agreement](doc/Agreement.md) - [AgreementCode](doc/AgreementCode.md) - [AgreementRequest](doc/AgreementRequest.md) @@ -508,6 +523,9 @@ Class | Method | HTTP request | Description - [Balance](doc/Balance.md) - [BanGroupMemberRequest](doc/BanGroupMemberRequest.md) - [BareError](doc/BareError.md) + - [Beta](doc/Beta.md) + - [BetaRegistrationNotFoundError](doc/BetaRegistrationNotFoundError.md) + - [BetaUserField](doc/BetaUserField.md) - [BoopRequest](doc/BoopRequest.md) - [CalendarDayOfWeek](doc/CalendarDayOfWeek.md) - [CalendarEvent](doc/CalendarEvent.md) @@ -554,16 +572,23 @@ Class | Method | HTTP request | Description - [EarningsMetrics](doc/EarningsMetrics.md) - [EarningsMetricsTotals](doc/EarningsMetricsTotals.md) - [EconomyAccount](doc/EconomyAccount.md) + - [EconomyAccountLimits](doc/EconomyAccountLimits.md) - [EconomyBalances](doc/EconomyBalances.md) - [EconomyPayout](doc/EconomyPayout.md) - [EconomyPayoutEligibility](doc/EconomyPayoutEligibility.md) - [EconomyPayoutList](doc/EconomyPayoutList.md) - [EconomyPayoutStatus](doc/EconomyPayoutStatus.md) + - [EconomyStatus](doc/EconomyStatus.md) - [EquipInventoryItemRequest](doc/EquipInventoryItemRequest.md) - [Error](doc/Error.md) - [Favorite](doc/Favorite.md) - [FavoriteGroup](doc/FavoriteGroup.md) + - [FavoriteGroupContents](doc/FavoriteGroupContents.md) + - [FavoriteGroupContentsEntry](doc/FavoriteGroupContentsEntry.md) + - [FavoriteGroupContentsEntryWorld](doc/FavoriteGroupContentsEntryWorld.md) - [FavoriteGroupLimits](doc/FavoriteGroupLimits.md) + - [FavoriteGroupList](doc/FavoriteGroupList.md) + - [FavoriteGroupSummary](doc/FavoriteGroupSummary.md) - [FavoriteGroupVisibility](doc/FavoriteGroupVisibility.md) - [FavoriteLimits](doc/FavoriteLimits.md) - [FavoriteType](doc/FavoriteType.md) @@ -580,6 +605,7 @@ Class | Method | HTTP request | Description - [FinishFileDataUploadRequest](doc/FinishFileDataUploadRequest.md) - [FollowCalendarEventRequest](doc/FollowCalendarEventRequest.md) - [FriendStatus](doc/FriendStatus.md) + - [GetGroupGalleryImages200Response](doc/GetGroupGalleryImages200Response.md) - [GetGroupPosts200Response](doc/GetGroupPosts200Response.md) - [GetUserGroupInstances200Response](doc/GetUserGroupInstances200Response.md) - [Group](doc/Group.md) @@ -590,6 +616,7 @@ Class | Method | HTTP request | Description - [GroupGalleryFileOrder](doc/GroupGalleryFileOrder.md) - [GroupGalleryFileOrderRequest](doc/GroupGalleryFileOrderRequest.md) - [GroupGalleryImage](doc/GroupGalleryImage.md) + - [GroupGalleryImageList](doc/GroupGalleryImageList.md) - [GroupInstance](doc/GroupInstance.md) - [GroupJoinRequestAction](doc/GroupJoinRequestAction.md) - [GroupJoinState](doc/GroupJoinState.md) @@ -634,6 +661,7 @@ Class | Method | HTTP request | Description - [InstanceType](doc/InstanceType.md) - [InstanceVibe](doc/InstanceVibe.md) - [Inventory](doc/Inventory.md) + - [InventoryAsset](doc/InventoryAsset.md) - [InventoryConsumptionResults](doc/InventoryConsumptionResults.md) - [InventoryDefaultAttributesValue](doc/InventoryDefaultAttributesValue.md) - [InventoryDefaultAttributesValueValidator](doc/InventoryDefaultAttributesValueValidator.md) @@ -716,6 +744,8 @@ Class | Method | HTTP request | Description - [ProductPurchasePurchaseContext](doc/ProductPurchasePurchaseContext.md) - [ProductPurchaseRecord](doc/ProductPurchaseRecord.md) - [ProductType](doc/ProductType.md) + - [ProfileGroup](doc/ProfileGroup.md) + - [ProfileGroups](doc/ProfileGroups.md) - [ProfileRepresentedGroup](doc/ProfileRepresentedGroup.md) - [Prop](doc/Prop.md) - [PropPublishStatus](doc/PropPublishStatus.md) @@ -775,6 +805,7 @@ Class | Method | HTTP request | Description - [TwoFactorEmailCode](doc/TwoFactorEmailCode.md) - [TwoFactorRecoveryCodes](doc/TwoFactorRecoveryCodes.md) - [TwoFactorRecoveryCodesOtpInner](doc/TwoFactorRecoveryCodesOtpInner.md) + - [UnavailableWorld](doc/UnavailableWorld.md) - [UnityPackage](doc/UnityPackage.md) - [UpdateAssetReviewNotesRequest](doc/UpdateAssetReviewNotesRequest.md) - [UpdateAvatarRequest](doc/UpdateAvatarRequest.md) @@ -789,13 +820,17 @@ Class | Method | HTTP request | Description - [UpdateInviteMessageRequest](doc/UpdateInviteMessageRequest.md) - [UpdateListingRequest](doc/UpdateListingRequest.md) - [UpdateProductRequest](doc/UpdateProductRequest.md) + - [UpdateProfileRequest](doc/UpdateProfileRequest.md) - [UpdatePropRequest](doc/UpdatePropRequest.md) - [UpdateTiliaTOSRequest](doc/UpdateTiliaTOSRequest.md) - [UpdateUserBadgeRequest](doc/UpdateUserBadgeRequest.md) + - [UpdateUserClientConfigRequest](doc/UpdateUserClientConfigRequest.md) - [UpdateUserNoteRequest](doc/UpdateUserNoteRequest.md) - [UpdateUserRequest](doc/UpdateUserRequest.md) - [UpdateWorldRequest](doc/UpdateWorldRequest.md) - [User](doc/User.md) + - [UserClientConfig](doc/UserClientConfig.md) + - [UserCosmetic](doc/UserCosmetic.md) - [UserCreditsEligible](doc/UserCreditsEligible.md) - [UserExists](doc/UserExists.md) - [UserNote](doc/UserNote.md) @@ -808,6 +843,7 @@ Class | Method | HTTP request | Description - [Verify2FAResult](doc/Verify2FAResult.md) - [VerifyAuthTokenResult](doc/VerifyAuthTokenResult.md) - [World](doc/World.md) + - [WorldFavoriteList](doc/WorldFavoriteList.md) - [WorldMetadata](doc/WorldMetadata.md) - [WorldPublishStatus](doc/WorldPublishStatus.md) diff --git a/vrchat_dart_generated/doc/APIConfig.md b/vrchat_dart_generated/doc/APIConfig.md index 02c2628..23e42e6 100644 --- a/vrchat_dart_generated/doc/APIConfig.md +++ b/vrchat_dart_generated/doc/APIConfig.md @@ -79,7 +79,7 @@ Name | Type | Description | Notes **downloadLinkWindows** | **String** | Download link for game on the Oculus Rift website. | **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 | +**economyLedgerBackfill** | **bool** | Unknown | [optional] **economyLedgerMigrationStop** | **String** | Unknown | [optional] **economyLedgerMode** | **String** | Unknown | **economyPauseEnd** | [**DateTime**](DateTime.md) | Unknown | diff --git a/vrchat_dart_generated/doc/AgeVerificationStatusResult.md b/vrchat_dart_generated/doc/AgeVerificationStatusResult.md new file mode 100644 index 0000000..03330b8 --- /dev/null +++ b/vrchat_dart_generated/doc/AgeVerificationStatusResult.md @@ -0,0 +1,15 @@ +# vrchat_dart_generated.model.AgeVerificationStatusResult + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **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/Beta.md b/vrchat_dart_generated/doc/Beta.md new file mode 100644 index 0000000..705ba4d --- /dev/null +++ b/vrchat_dart_generated/doc/Beta.md @@ -0,0 +1,24 @@ +# vrchat_dart_generated.model.Beta + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**active** | **bool** | | +**betaAppId** | **String** | | [optional] +**betaGroupId** | **String** | | [optional] +**betaName** | **String** | | +**createdAt** | [**DateTime**](DateTime.md) | | +**id** | **String** | | +**lastSynchronizedAt** | [**DateTime**](DateTime.md) | | [optional] +**type** | **String** | | +**updatedAt** | [**DateTime**](DateTime.md) | | +**userFields** | [**Map<String, BetaUserField>**](BetaUserField.md) | The fields a registration must supply, keyed by field name. | + +[[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/BetaRegistrationNotFoundError.md b/vrchat_dart_generated/doc/BetaRegistrationNotFoundError.md new file mode 100644 index 0000000..80b59cf --- /dev/null +++ b/vrchat_dart_generated/doc/BetaRegistrationNotFoundError.md @@ -0,0 +1,15 @@ +# vrchat_dart_generated.model.BetaRegistrationNotFoundError + +## 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/BetaUserField.md b/vrchat_dart_generated/doc/BetaUserField.md new file mode 100644 index 0000000..b75fe3a --- /dev/null +++ b/vrchat_dart_generated/doc/BetaUserField.md @@ -0,0 +1,17 @@ +# vrchat_dart_generated.model.BetaUserField + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowedValues** | **List<String>** | | [optional] +**excludeFromAnalytics** | **bool** | | [optional] +**required_** | **bool** | | + +[[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 f21b5ad..c1087df 100644 --- a/vrchat_dart_generated/doc/CalendarApi.md +++ b/vrchat_dart_generated/doc/CalendarApi.md @@ -488,7 +488,7 @@ No authorization required [[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) # **getGroupCalendarEvents** -> PaginatedCalendarEventList getGroupCalendarEvents(groupId, date, n, offset) +> PaginatedCalendarEventList getGroupCalendarEvents(groupId, date, n, offset, limit, after, sort) List a group's calendar events @@ -507,9 +507,12 @@ final String groupId = groupId_example; // String | Must be a valid group ID. final DateTime date = 2013-10-20T19:20:30+01:00; // DateTime | The month to search in. 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 int limit = 100; // int | The maximum number of entries to get. +final DateTime after = 2013-10-20T19:20:30+01:00; // DateTime | Only return events starting after this date. +final String sort = startTime_ascending; // String | try { - final response = api.getGroupCalendarEvents(groupId, date, n, offset); + final response = api.getGroupCalendarEvents(groupId, date, n, offset, limit, after, sort); print(response); } on DioException catch (e) { print('Exception when calling CalendarApi->getGroupCalendarEvents: $e\n'); @@ -524,6 +527,9 @@ Name | Type | Description | Notes **date** | **DateTime**| The month to search in. | [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] + **limit** | **int**| The maximum number of entries to get. | [optional] + **after** | **DateTime**| Only return events starting after this date. | [optional] + **sort** | **String**| | [optional] ### Return type diff --git a/vrchat_dart_generated/doc/CurrentUser.md b/vrchat_dart_generated/doc/CurrentUser.md index d930309..25b945e 100644 --- a/vrchat_dart_generated/doc/CurrentUser.md +++ b/vrchat_dart_generated/doc/CurrentUser.md @@ -19,11 +19,9 @@ Name | Type | Description | Notes **appleDetails** | **Object** | | [optional] **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>** | | +**bannerUrl** | **String** | | [optional] **completedTutorials** | **List<String>** | | [optional] **contentFilters** | **List<String>** | These tags begin with `content_` and control content gating | [optional] **currentAvatar** | **String** | | @@ -79,8 +77,6 @@ Name | Type | Description | Notes **platformHistory** | [**List<CurrentUserPlatformHistoryInner>**](CurrentUserPlatformHistoryInner.md) | | [optional] **presence** | [**CurrentUserPresence**](CurrentUserPresence.md) | | [optional] **profileEffect** | **String** | | [optional] -**profilePicOverride** | **String** | | -**profilePicOverrideThumbnail** | **String** | | **pronouns** | **String** | | **pronounsHistory** | **List<String>** | | **queuedInstance** | **String** | | [optional] @@ -103,7 +99,6 @@ Name | Type | Description | Notes **twoFactorAuthEnabledDate** | [**DateTime**](DateTime.md) | | [optional] **unsubscribe** | **bool** | | **updatedAt** | [**DateTime**](DateTime.md) | | [optional] -**userIcon** | **String** | | **userLanguage** | **String** | | [optional] **userLanguageCode** | **String** | | [optional] **username** | **String** | Your own unique name, used during login. Distinct from `displayName`, and never returned for another user. | [optional] diff --git a/vrchat_dart_generated/doc/CurrentUserPresence.md b/vrchat_dart_generated/doc/CurrentUserPresence.md index f733bf6..be1648c 100644 --- a/vrchat_dart_generated/doc/CurrentUserPresence.md +++ b/vrchat_dart_generated/doc/CurrentUserPresence.md @@ -11,11 +11,15 @@ Name | Type | Description | Notes **avatarImageUrl** | **String** | | [optional] **avatarThumbnail** | **String** | | [optional] **banner** | **String** | | [optional] -**currentAvatarTags** | **List<String>** | | [optional] +**bannerColor** | **String** | | [optional] +**bannerType** | **String** | | [optional] +**bannerUrl** | **String** | | [optional] +**currentAvatarTags** | **String** | | [optional] **debugflag** | **String** | | [optional] **displayName** | **String** | | [optional] **groups** | **List<String>** | | [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. | [optional] **instance** | **String** | | [optional] **instanceType** | **String** | either an InstanceType or an empty string | [optional] diff --git a/vrchat_dart_generated/doc/DynamicContentRow.md b/vrchat_dart_generated/doc/DynamicContentRow.md index aae2f70..ce83b55 100644 --- a/vrchat_dart_generated/doc/DynamicContentRow.md +++ b/vrchat_dart_generated/doc/DynamicContentRow.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **bannersTag** | **String** | | [optional] **categories** | **List<String>** | | [optional] **featuredResults** | **String** | | [optional] +**groupPool** | **String** | | [optional] **index** | **int** | | [optional] **marketplace** | **String** | | [optional] **maxPrice** | **int** | | [optional] @@ -40,6 +41,7 @@ Name | Type | Description | Notes **tags** | **List<String>** | | [optional] **type** | **String** | Type is not present if it is a world. | [optional] **upcomingOffsetMinutes** | **int** | | [optional] +**worldPool** | **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/EconomyAccount.md b/vrchat_dart_generated/doc/EconomyAccount.md index a6e6e32..e918b62 100644 --- a/vrchat_dart_generated/doc/EconomyAccount.md +++ b/vrchat_dart_generated/doc/EconomyAccount.md @@ -9,13 +9,14 @@ import 'package:vrchat_dart_generated/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **accountActivatedOn** | [**DateTime**](DateTime.md) | | -**accountId** | **String** | | +**accountId** | **int** | | **accountSellerRegisteredOn** | [**DateTime**](DateTime.md) | | [optional] **accountSellerStatus** | **String** | | [optional] **blocked** | **bool** | | **canEarn** | **bool** | | [optional] **canPayout** | **bool** | | [optional] **canSpend** | **bool** | | +**limits** | [**EconomyAccountLimits**](EconomyAccountLimits.md) | | [optional] **skrillEmail** | **String** | | [optional] **source_** | **String** | | **tiliaId** | **String** | | [optional] diff --git a/vrchat_dart_generated/doc/EconomyAccountLimits.md b/vrchat_dart_generated/doc/EconomyAccountLimits.md new file mode 100644 index 0000000..b56153b --- /dev/null +++ b/vrchat_dart_generated/doc/EconomyAccountLimits.md @@ -0,0 +1,16 @@ +# vrchat_dart_generated.model.EconomyAccountLimits + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**buyingTokenMaxPerDay** | **int** | | +**buyingTokenRemainingAllowed** | **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/EconomyApi.md b/vrchat_dart_generated/doc/EconomyApi.md index 73cb947..c978ecc 100644 --- a/vrchat_dart_generated/doc/EconomyApi.md +++ b/vrchat_dart_generated/doc/EconomyApi.md @@ -20,12 +20,15 @@ Method | HTTP request | Description [**getCurrentSubscriptions**](EconomyApi.md#getcurrentsubscriptions) | **GET** /auth/user/subscription | Get Current Subscriptions [**getEarningsMetrics**](EconomyApi.md#getearningsmetrics) | **GET** /economy/metrics/earnings | Get Earnings Metrics [**getEconomyAccount**](EconomyApi.md#geteconomyaccount) | **GET** /user/{userId}/economy/account | Get Economy Account +[**getEconomyBalance**](EconomyApi.md#geteconomybalance) | **GET** /user/{userId}/economy/balance | Get Economy Balance [**getEconomyBalances**](EconomyApi.md#geteconomybalances) | **GET** /user/{userId}/economy/balances | Get Economy Balances [**getEconomyPayoutStatus**](EconomyApi.md#geteconomypayoutstatus) | **GET** /user/{userId}/economy/payouts/status | Get Economy Payout Status [**getEconomyPayouts**](EconomyApi.md#geteconomypayouts) | **GET** /user/{userId}/economy/payouts/list | Get Economy Payouts +[**getEconomyStatus**](EconomyApi.md#geteconomystatus) | **GET** /economy/status | Get Economy Status [**getLicenseGroup**](EconomyApi.md#getlicensegroup) | **GET** /licenseGroups/{licenseGroupId} | Get License Group [**getProductListing**](EconomyApi.md#getproductlisting) | **GET** /listing/{productId} | Get Product Listing [**getProductListingAlternate**](EconomyApi.md#getproductlistingalternate) | **GET** /products/{productId} | Get Product Listing (alternate) +[**getProductListingProducts**](EconomyApi.md#getproductlistingproducts) | **GET** /listing/{productId}/products | Get Product Listing Products [**getProductListings**](EconomyApi.md#getproductlistings) | **GET** /user/{userId}/listings | Get User Product Listings [**getProductPurchase**](EconomyApi.md#getproductpurchase) | **GET** /economy/purchases/{productPurchaseId} | Get Product Purchase [**getProductPurchaseHistory**](EconomyApi.md#getproductpurchasehistory) | **GET** /user/{userId}/economy/transactions | Get Product Purchase History @@ -523,7 +526,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) # **getEconomyAccount** -> EconomyAccount getEconomyAccount(userId) +> EconomyAccount getEconomyAccount(userId, getLimits) Get Economy Account @@ -539,9 +542,10 @@ import 'package:vrchat_dart_generated/api.dart'; final api = VrchatDartGenerated().getEconomyApi(); final String userId = userId_example; // String | Must be a valid user ID. +final bool getLimits = true; // bool | Include the account's spending limits in the response. try { - final response = api.getEconomyAccount(userId); + final response = api.getEconomyAccount(userId, getLimits); print(response); } on DioException catch (e) { print('Exception when calling EconomyApi->getEconomyAccount: $e\n'); @@ -553,6 +557,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **userId** | **String**| Must be a valid user ID. | + **getLimits** | **bool**| Include the account's spending limits in the response. | [optional] ### Return type @@ -569,6 +574,53 @@ 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) +# **getEconomyBalance** +> Balance getEconomyBalance(userId) + +Get Economy Balance + +Return the balance of a user's economy account. + +### 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().getEconomyApi(); +final String userId = userId_example; // String | Must be a valid user ID. + +try { + final response = api.getEconomyBalance(userId); + print(response); +} on DioException catch (e) { + print('Exception when calling EconomyApi->getEconomyBalance: $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) + # **getEconomyBalances** > EconomyBalances getEconomyBalances(userId) @@ -710,6 +762,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) +# **getEconomyStatus** +> EconomyStatus getEconomyStatus() + +Get Economy Status + +Get whether the economy is accepting requests. + +### 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().getEconomyApi(); + +try { + final response = api.getEconomyStatus(); + print(response); +} on DioException catch (e) { + print('Exception when calling EconomyApi->getEconomyStatus: $e\n'); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**EconomyStatus**](EconomyStatus.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) + # **getLicenseGroup** > LicenseGroup getLicenseGroup(licenseGroupId) @@ -853,6 +948,53 @@ 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) +# **getProductListingProducts** +> List getProductListingProducts(productId) + +Get Product Listing Products + +List the products a listing sells. + +### 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().getEconomyApi(); +final String productId = productId_example; // String | Must be a valid product ID. + +try { + final response = api.getProductListingProducts(productId); + print(response); +} on DioException catch (e) { + print('Exception when calling EconomyApi->getProductListingProducts: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **productId** | **String**| Must be a valid product ID. | + +### Return type + +[**List<Product>**](Product.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) + # **getProductListings** > List getProductListings(userId, n, offset, hydrate, listingType, groupId, active) @@ -1068,7 +1210,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) # **getProductPurchases** -> List getProductPurchases(buyerId, sellerId, n, offset, mostRecent, sort, order) +> List getProductPurchases(active, buyerId, receiverId, sellerId, n, offset, mostRecent, sort, order) Get Product Purchases @@ -1083,7 +1225,9 @@ import 'package:vrchat_dart_generated/api.dart'; //defaultApiClient.getAuthentication('authCookie').apiKeyPrefix = 'Bearer'; final api = VrchatDartGenerated().getEconomyApi(); +final bool active = true; // bool | Filter for users' listings and inventory bundles. final String buyerId = buyerId_example; // String | Must be a valid user ID. +final String receiverId = receiverId_example; // String | Must be a valid user ID. final String sellerId = sellerId_example; // String | Filter results by seller. 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. @@ -1092,7 +1236,7 @@ final SortOptionProductPurchase sort = ; // SortOptionProductPurchase | The sort final OrderOptionShort order = ; // OrderOptionShort | Result ordering try { - final response = api.getProductPurchases(buyerId, sellerId, n, offset, mostRecent, sort, order); + final response = api.getProductPurchases(active, buyerId, receiverId, sellerId, n, offset, mostRecent, sort, order); print(response); } on DioException catch (e) { print('Exception when calling EconomyApi->getProductPurchases: $e\n'); @@ -1103,7 +1247,9 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **buyerId** | **String**| Must be a valid user ID. | + **active** | **bool**| Filter for users' listings and inventory bundles. | [optional] + **buyerId** | **String**| Must be a valid user ID. | [optional] + **receiverId** | **String**| Must be a valid user ID. | [optional] **sellerId** | **String**| Filter results by seller. | [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] @@ -1127,7 +1273,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) # **getRecentSubscription** -> UserSubscription getRecentSubscription() +> UserSubscription getRecentSubscription(userId) Get Recent Subscription @@ -1142,9 +1288,10 @@ import 'package:vrchat_dart_generated/api.dart'; //defaultApiClient.getAuthentication('authCookie').apiKeyPrefix = 'Bearer'; final api = VrchatDartGenerated().getEconomyApi(); +final String userId = userId_example; // String | Filter by UserID. try { - final response = api.getRecentSubscription(); + final response = api.getRecentSubscription(userId); print(response); } on DioException catch (e) { print('Exception when calling EconomyApi->getRecentSubscription: $e\n'); @@ -1152,7 +1299,10 @@ try { ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **String**| Filter by UserID. | [optional] ### Return type @@ -1303,7 +1453,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) # **getStore** -> Store getStore(storeId, hydrateListings, hydrateProducts) +> Store getStore(storeId, hydrateContext, hydrateListings, hydrateProducts) Get Store @@ -1319,11 +1469,12 @@ import 'package:vrchat_dart_generated/api.dart'; final api = VrchatDartGenerated().getEconomyApi(); final String storeId = storeId_example; // String | +final bool hydrateContext = true; // bool | final bool hydrateListings = true; // bool | Listings fields will be populated. final bool hydrateProducts = true; // bool | Products fields will be populated. try { - final response = api.getStore(storeId, hydrateListings, hydrateProducts); + final response = api.getStore(storeId, hydrateContext, hydrateListings, hydrateProducts); print(response); } on DioException catch (e) { print('Exception when calling EconomyApi->getStore: $e\n'); @@ -1335,6 +1486,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **storeId** | **String**| | + **hydrateContext** | **bool**| | [optional] **hydrateListings** | **bool**| Listings fields will be populated. | [optional] **hydrateProducts** | **bool**| Products fields will be populated. | [optional] diff --git a/vrchat_dart_generated/doc/EconomyStatus.md b/vrchat_dart_generated/doc/EconomyStatus.md new file mode 100644 index 0000000..67d4a50 --- /dev/null +++ b/vrchat_dart_generated/doc/EconomyStatus.md @@ -0,0 +1,16 @@ +# vrchat_dart_generated.model.EconomyStatus + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**economyOnline** | **bool** | | +**economyState** | **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/FavoriteGroupContents.md b/vrchat_dart_generated/doc/FavoriteGroupContents.md new file mode 100644 index 0000000..b77fd11 --- /dev/null +++ b/vrchat_dart_generated/doc/FavoriteGroupContents.md @@ -0,0 +1,16 @@ +# vrchat_dart_generated.model.FavoriteGroupContents + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**favorites** | [**List<FavoriteGroupContentsEntry>**](FavoriteGroupContentsEntry.md) | | +**totalCount** | **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/FavoriteGroupContentsEntry.md b/vrchat_dart_generated/doc/FavoriteGroupContentsEntry.md new file mode 100644 index 0000000..c9b055c --- /dev/null +++ b/vrchat_dart_generated/doc/FavoriteGroupContentsEntry.md @@ -0,0 +1,20 @@ +# vrchat_dart_generated.model.FavoriteGroupContentsEntry + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**avatar** | [**Avatar**](Avatar.md) | | [optional] +**favoriteId** | **String** | | +**id** | **String** | | +**tags** | **List<String>** | | +**type** | [**FavoriteType**](FavoriteType.md) | | +**world** | [**FavoriteGroupContentsEntryWorld**](FavoriteGroupContentsEntryWorld.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/FavoriteGroupContentsEntryWorld.md b/vrchat_dart_generated/doc/FavoriteGroupContentsEntryWorld.md new file mode 100644 index 0000000..8926176 --- /dev/null +++ b/vrchat_dart_generated/doc/FavoriteGroupContentsEntryWorld.md @@ -0,0 +1,48 @@ +# vrchat_dart_generated.model.FavoriteGroupContentsEntryWorld + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +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] +**authorName** | **String** | | +**capacity** | **int** | | +**createdAt** | [**DateTime**](DateTime.md) | | [optional] +**defaultContentSettings** | [**InstanceContentSettings**](InstanceContentSettings.md) | | [optional] +**description** | **String** | | [optional] +**disabledPropAbilities** | **List<Object>** | | [optional] +**favoriteGroup** | **String** | | [optional] +**favoriteId** | **String** | | [optional] +**favorites** | **int** | | [optional] [default to 0] +**featured** | **bool** | | [optional] [default to false] +**heat** | **int** | | [optional] [default to 0] +**id** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | +**imageUrl** | **String** | | +**isHypeTrainEligible** | **bool** | | [optional] +**labsPublicationDate** | **String** | | [optional] +**name** | **String** | | +**occupants** | **int** | | +**organization** | **String** | | [optional] [default to 'vrchat'] +**popularity** | **int** | | [optional] [default to 0] +**previewYoutubeId** | **String** | | [optional] +**publicationDate** | **String** | | [optional] +**recommendedCapacity** | **int** | | [optional] +**releaseStatus** | [**ReleaseStatus**](ReleaseStatus.md) | | +**storeId** | **String** | | [optional] +**tags** | **List<String>** | | [optional] +**thumbnailImageUrl** | **String** | | +**udonProducts** | **List<String>** | | [optional] +**unityPackages** | [**List<UnityPackage>**](UnityPackage.md) | | [optional] +**updatedAt** | [**DateTime**](DateTime.md) | | [optional] +**urlList** | **List<String>** | | [optional] +**version** | **int** | | [optional] +**visits** | **int** | | [optional] [default to 0] +**isSecure** | **bool** | | + +[[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/FavoriteGroupList.md b/vrchat_dart_generated/doc/FavoriteGroupList.md new file mode 100644 index 0000000..da447a7 --- /dev/null +++ b/vrchat_dart_generated/doc/FavoriteGroupList.md @@ -0,0 +1,17 @@ +# vrchat_dart_generated.model.FavoriteGroupList + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**favoriteGroups** | [**List<FavoriteGroupSummary>**](FavoriteGroupSummary.md) | | +**maxFavoriteGroups** | **int** | Only returned when the owner is the currently authenticated user. | [optional] +**maxFavoritesPerGroup** | **int** | Only returned when the owner is the currently authenticated 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/FavoriteGroupSummary.md b/vrchat_dart_generated/doc/FavoriteGroupSummary.md new file mode 100644 index 0000000..e64ca71 --- /dev/null +++ b/vrchat_dart_generated/doc/FavoriteGroupSummary.md @@ -0,0 +1,19 @@ +# vrchat_dart_generated.model.FavoriteGroupSummary + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**displayName** | **String** | | +**id** | **String** | | +**name** | **String** | | +**numFavorites** | **int** | | +**visibility** | [**FavoriteGroupVisibility**](FavoriteGroupVisibility.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/FavoritedWorld.md b/vrchat_dart_generated/doc/FavoritedWorld.md index 633aea4..4867baf 100644 --- a/vrchat_dart_generated/doc/FavoritedWorld.md +++ b/vrchat_dart_generated/doc/FavoritedWorld.md @@ -15,22 +15,24 @@ Name | Type | Description | Notes **defaultContentSettings** | [**InstanceContentSettings**](InstanceContentSettings.md) | | [optional] **description** | **String** | | [optional] **disabledPropAbilities** | **List<Object>** | | [optional] -**favoriteGroup** | **String** | | -**favoriteId** | **String** | | +**favoriteGroup** | **String** | | [optional] +**favoriteId** | **String** | | [optional] **favorites** | **int** | | [optional] [default to 0] **featured** | **bool** | | [optional] [default to false] **heat** | **int** | | [optional] [default to 0] **id** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | **imageUrl** | **String** | | +**isHypeTrainEligible** | **bool** | | [optional] **labsPublicationDate** | **String** | | [optional] **name** | **String** | | -**occupants** | **int** | | [default to 0] +**occupants** | **int** | | [optional] [default to 0] **organization** | **String** | | [optional] [default to 'vrchat'] **popularity** | **int** | | [optional] [default to 0] **previewYoutubeId** | **String** | | [optional] **publicationDate** | **String** | | [optional] **recommendedCapacity** | **int** | | [optional] **releaseStatus** | [**ReleaseStatus**](ReleaseStatus.md) | | +**storeId** | **String** | | [optional] **tags** | **List<String>** | | [optional] **thumbnailImageUrl** | **String** | | **udonProducts** | **List<String>** | | [optional] diff --git a/vrchat_dart_generated/doc/FavoritesApi.md b/vrchat_dart_generated/doc/FavoritesApi.md index e8ce083..8b2c219 100644 --- a/vrchat_dart_generated/doc/FavoritesApi.md +++ b/vrchat_dart_generated/doc/FavoritesApi.md @@ -12,7 +12,9 @@ Method | HTTP request | Description [**addFavorite**](FavoritesApi.md#addfavorite) | **POST** /favorites | Add Favorite [**clearFavoriteGroup**](FavoritesApi.md#clearfavoritegroup) | **DELETE** /favorite/group/{favoriteGroupType}/{favoriteGroupName}/{userId} | Clear Favorite Group [**getFavoriteGroup**](FavoritesApi.md#getfavoritegroup) | **GET** /favorite/group/{favoriteGroupType}/{favoriteGroupName}/{userId} | Show Favorite Group +[**getFavoriteGroupContents**](FavoritesApi.md#getfavoritegroupcontents) | **GET** /favorites/groups/{favoriteGroupType}/{favoriteGroupName} | List Favorite Group Contents [**getFavoriteGroups**](FavoritesApi.md#getfavoritegroups) | **GET** /favorite/groups | List Favorite Groups +[**getFavoriteGroupsByType**](FavoritesApi.md#getfavoritegroupsbytype) | **GET** /favorites/groups/{favoriteGroupType} | List Favorite Groups By Type [**getFavoriteLimits**](FavoritesApi.md#getfavoritelimits) | **GET** /auth/user/favoritelimits | Get Favorite Limits [**getFavorites**](FavoritesApi.md#getfavorites) | **GET** /favorites | List Favorites [**removeFavorite**](FavoritesApi.md#removefavorite) | **DELETE** /favorites/{favoriteId} | Remove Favorite @@ -168,6 +170,57 @@ 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) +# **getFavoriteGroupContents** +> FavoriteGroupContents getFavoriteGroupContents(favoriteGroupType, favoriteGroupName, ownerId) + +List Favorite Group Contents + +List the favorites in a group, each alongside the object it points at. + +### 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().getFavoritesApi(); +final FavoriteType favoriteGroupType = ; // FavoriteType | The type of group to fetch, must be a valid FavoriteType. +final String favoriteGroupName = favoriteGroupName_example; // String | The name of the group to fetch, must be a name of a FavoriteGroup. +final String ownerId = ownerId_example; // String | The user whose favorite group to return. Must be a user ID. + +try { + final response = api.getFavoriteGroupContents(favoriteGroupType, favoriteGroupName, ownerId); + print(response); +} on DioException catch (e) { + print('Exception when calling FavoritesApi->getFavoriteGroupContents: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **favoriteGroupType** | [**FavoriteType**](.md)| The type of group to fetch, must be a valid FavoriteType. | + **favoriteGroupName** | **String**| The name of the group to fetch, must be a name of a FavoriteGroup. | [default to 'group_0'] + **ownerId** | **String**| The user whose favorite group to return. Must be a user ID. | [optional] + +### Return type + +[**FavoriteGroupContents**](FavoriteGroupContents.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) + # **getFavoriteGroups** > List getFavoriteGroups(n, offset, type, userId, ownerId) @@ -223,6 +276,55 @@ 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) +# **getFavoriteGroupsByType** +> FavoriteGroupList getFavoriteGroupsByType(favoriteGroupType, ownerId) + +List Favorite Groups By Type + +List a user's favorite groups of one type. + +### 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().getFavoritesApi(); +final FavoriteType favoriteGroupType = ; // FavoriteType | The type of group to fetch, must be a valid FavoriteType. +final String ownerId = ownerId_example; // String | The user whose favorite groups to return. Must be a user ID. + +try { + final response = api.getFavoriteGroupsByType(favoriteGroupType, ownerId); + print(response); +} on DioException catch (e) { + print('Exception when calling FavoritesApi->getFavoriteGroupsByType: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **favoriteGroupType** | [**FavoriteType**](.md)| The type of group to fetch, must be a valid FavoriteType. | + **ownerId** | **String**| The user whose favorite groups to return. Must be a user ID. | [optional] + +### Return type + +[**FavoriteGroupList**](FavoriteGroupList.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) + # **getFavoriteLimits** > FavoriteLimits getFavoriteLimits() diff --git a/vrchat_dart_generated/doc/GetGroupGalleryImages200Response.md b/vrchat_dart_generated/doc/GetGroupGalleryImages200Response.md new file mode 100644 index 0000000..b314432 --- /dev/null +++ b/vrchat_dart_generated/doc/GetGroupGalleryImages200Response.md @@ -0,0 +1,16 @@ +# vrchat_dart_generated.model.GetGroupGalleryImages200Response + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**List<GroupGalleryImage>**](GroupGalleryImage.md) | | +**totalCount** | **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/Group.md b/vrchat_dart_generated/doc/Group.md index 86de494..d4d379e 100644 --- a/vrchat_dart_generated/doc/Group.md +++ b/vrchat_dart_generated/doc/Group.md @@ -40,6 +40,7 @@ Name | Type | Description | Notes **roles** | [**List<GroupRole>**](GroupRole.md) | Only returned if ?includeRoles=true is specified. | [optional] **rules** | **String** | | [optional] **shortCode** | **String** | | [optional] +**storeId** | **String** | | [optional] **tags** | **List<String>** | | [optional] **transferTargetId** | **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] **updatedAt** | [**DateTime**](DateTime.md) | | [optional] diff --git a/vrchat_dart_generated/doc/GroupGalleryImageList.md b/vrchat_dart_generated/doc/GroupGalleryImageList.md new file mode 100644 index 0000000..96e1d5d --- /dev/null +++ b/vrchat_dart_generated/doc/GroupGalleryImageList.md @@ -0,0 +1,16 @@ +# vrchat_dart_generated.model.GroupGalleryImageList + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**List<GroupGalleryImage>**](GroupGalleryImage.md) | | +**totalCount** | **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/GroupMember.md b/vrchat_dart_generated/doc/GroupMember.md index cdf85f1..989122b 100644 --- a/vrchat_dart_generated/doc/GroupMember.md +++ b/vrchat_dart_generated/doc/GroupMember.md @@ -16,17 +16,17 @@ Name | Type | Description | Notes **hasJoinedFromPurchase** | **bool** | Missing when explicitly fetching own user, or when group isn't linked to a purchase. | [optional] **id** | **String** | | **isRepresenting** | **bool** | Whether the user is representing the group. This makes the group show up above the name tag in-game. | [default to false] -**isSubscribedToAnnouncements** | **bool** | | [default to false] +**isSubscribedToAnnouncements** | **bool** | | [optional] [default to false] **isSubscribedToEventAnnouncements** | **bool** | Only missing when explicitly fetching own user. | [optional] -**joinedAt** | [**DateTime**](DateTime.md) | | -**lastPostReadAt** | [**DateTime**](DateTime.md) | | +**joinedAt** | [**DateTime**](DateTime.md) | | [optional] +**lastPostReadAt** | [**DateTime**](DateTime.md) | | [optional] **mRoleIds** | **List<String>** | | **managerNotes** | **String** | Only missing when explicitly fetching own user. | [optional] -**membershipStatus** | [**GroupMemberStatus**](GroupMemberStatus.md) | | +**membershipStatus** | [**GroupMemberStatus**](GroupMemberStatus.md) | | [optional] **roleIds** | **List<String>** | | **user** | [**GroupMemberLimitedUser**](GroupMemberLimitedUser.md) | | [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. | -**visibility** | **String** | | +**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/GroupMemberLimitedUser.md b/vrchat_dart_generated/doc/GroupMemberLimitedUser.md index e50d899..266bb73 100644 --- a/vrchat_dart_generated/doc/GroupMemberLimitedUser.md +++ b/vrchat_dart_generated/doc/GroupMemberLimitedUser.md @@ -8,13 +8,15 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**currentAvatarTags** | **List<String>** | | [optional] -**currentAvatarThumbnailImageUrl** | **String** | | [optional] +**bannerColor** | **String** | | [optional] +**bannerType** | **String** | | [optional] +**bannerUrl** | **String** | | [optional] **displayName** | **String** | | [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. | [optional] -**profilePicOverride** | **String** | | [optional] -**thumbnailUrl** | **String** | | [optional] +**nameplateEffect** | **String** | | [optional] +**profileEffect** | **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/GroupRole.md b/vrchat_dart_generated/doc/GroupRole.md index 0d2b026..2b7d483 100644 --- a/vrchat_dart_generated/doc/GroupRole.md +++ b/vrchat_dart_generated/doc/GroupRole.md @@ -19,6 +19,7 @@ Name | Type | Description | Notes **name** | **String** | | [optional] **order** | **int** | | [optional] **permissions** | [**List<GroupPermissions>**](GroupPermissions.md) | | [optional] +**productId** | **String** | | [optional] **requiresPurchase** | **bool** | | [optional] [default to false] **requiresTwoFactor** | **bool** | | [optional] [default to false] **updatedAt** | [**DateTime**](DateTime.md) | | [optional] diff --git a/vrchat_dart_generated/doc/GroupsApi.md b/vrchat_dart_generated/doc/GroupsApi.md index bb6b73f..524e9c8 100644 --- a/vrchat_dart_generated/doc/GroupsApi.md +++ b/vrchat_dart_generated/doc/GroupsApi.md @@ -1036,7 +1036,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) # **getGroup** -> Group getGroup(groupId, includeRoles) +> Group getGroup(groupId, includeRoles, purpose) Get Group by ID @@ -1053,9 +1053,10 @@ import 'package:vrchat_dart_generated/api.dart'; final api = VrchatDartGenerated().getGroupsApi(); final String groupId = groupId_example; // String | Must be a valid group ID. final bool includeRoles = true; // bool | Include roles for the Group object. Defaults to false. +final String purpose = purpose_example; // String | try { - final response = api.getGroup(groupId, includeRoles); + final response = api.getGroup(groupId, includeRoles, purpose); print(response); } on DioException catch (e) { print('Exception when calling GroupsApi->getGroup: $e\n'); @@ -1068,6 +1069,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **groupId** | **String**| Must be a valid group ID. | **includeRoles** | **bool**| Include roles for the Group object. Defaults to false. | [optional] + **purpose** | **String**| | [optional] ### Return type @@ -1291,7 +1293,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) # **getGroupGalleryImages** -> List getGroupGalleryImages(groupId, groupGalleryId, n, offset, approved) +> GetGroupGalleryImages200Response getGroupGalleryImages(groupId, groupGalleryId, n, offset, v, approved) Get Group Gallery Images @@ -1310,10 +1312,11 @@ final String groupId = groupId_example; // String | Must be a valid group ID. final String groupGalleryId = groupGalleryId_example; // String | Must be a valid group gallery ID. 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 int v = 56; // int | Response version. `2` wraps the images in a paginated object. final bool approved = true; // bool | If specified, only returns images that have been approved or not approved. try { - final response = api.getGroupGalleryImages(groupId, groupGalleryId, n, offset, approved); + final response = api.getGroupGalleryImages(groupId, groupGalleryId, n, offset, v, approved); print(response); } on DioException catch (e) { print('Exception when calling GroupsApi->getGroupGalleryImages: $e\n'); @@ -1328,11 +1331,12 @@ Name | Type | Description | Notes **groupGalleryId** | **String**| Must be a valid group gallery ID. | **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] + **v** | **int**| Response version. `2` wraps the images in a paginated object. | [optional] **approved** | **bool**| If specified, only returns images that have been approved or not approved. | [optional] ### Return type -[**List<GroupGalleryImage>**](GroupGalleryImage.md) +[**GetGroupGalleryImages200Response**](GetGroupGalleryImages200Response.md) ### Authorization diff --git a/vrchat_dart_generated/doc/InfoPushData.md b/vrchat_dart_generated/doc/InfoPushData.md index 5d6a3e3..73d4111 100644 --- a/vrchat_dart_generated/doc/InfoPushData.md +++ b/vrchat_dart_generated/doc/InfoPushData.md @@ -20,6 +20,7 @@ Name | Type | Description | Notes **domainList** | [**List<InfoPushDataDomainListInner>**](InfoPushDataDomainListInner.md) | | [optional] **featuredAvatarCategoryId** | **String** | | [optional] **finalName** | **String** | | [optional] +**hoverToJoin** | **bool** | | [optional] **iconImageUrl** | **String** | | [optional] **imageUrl** | **String** | | [optional] **ipsQuery** | [**InfoPushIpsQuery**](InfoPushIpsQuery.md) | | [optional] diff --git a/vrchat_dart_generated/doc/InventoryApi.md b/vrchat_dart_generated/doc/InventoryApi.md index 743938e..d39c43d 100644 --- a/vrchat_dart_generated/doc/InventoryApi.md +++ b/vrchat_dart_generated/doc/InventoryApi.md @@ -12,11 +12,13 @@ Method | HTTP request | Description [**consumeOwnInventoryItem**](InventoryApi.md#consumeowninventoryitem) | **PUT** /inventory/{inventoryItemId}/consume | Consume Own Inventory Item [**deleteOwnInventoryItem**](InventoryApi.md#deleteowninventoryitem) | **DELETE** /inventory/{inventoryItemId} | Delete Own Inventory Item [**equipOwnInventoryItem**](InventoryApi.md#equipowninventoryitem) | **PUT** /inventory/{inventoryItemId}/equip | Equip Own Inventory Item +[**getCosmeticIndex**](InventoryApi.md#getcosmeticindex) | **GET** /cosmetics/index/{itemType} | List Cosmetics [**getInventory**](InventoryApi.md#getinventory) | **GET** /inventory | Get Inventory [**getInventoryCollections**](InventoryApi.md#getinventorycollections) | **GET** /inventory/collections | List Inventory Collections [**getInventoryDrops**](InventoryApi.md#getinventorydrops) | **GET** /inventory/drops | List Inventory Drops [**getInventoryTemplate**](InventoryApi.md#getinventorytemplate) | **GET** /inventory/template/{inventoryTemplateId} | Get Inventory Template [**getOwnInventoryItem**](InventoryApi.md#getowninventoryitem) | **GET** /inventory/{inventoryItemId} | Get Own Inventory Item +[**getUserCosmetics**](InventoryApi.md#getusercosmetics) | **GET** /user/{userId}/cosmetics | List User Cosmetics [**getUserInventoryItem**](InventoryApi.md#getuserinventoryitem) | **GET** /user/{userId}/inventory/{inventoryItemId} | Get User Inventory Item [**redeemReward**](InventoryApi.md#redeemreward) | **POST** /reward/redeem | Redeem Reward [**shareInventoryItemDirect**](InventoryApi.md#shareinventoryitemdirect) | **POST** /inventory/cloning/direct | Share Inventory Item Direct @@ -169,8 +171,55 @@ 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) +# **getCosmeticIndex** +> List getCosmeticIndex(itemType) + +List Cosmetics + +List every cosmetic of a kind that VRChat has published, whether or not the caller owns it. + +### 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().getInventoryApi(); +final String itemType = itemType_example; // String | The kind of cosmetic to list. + +try { + final response = api.getCosmeticIndex(itemType); + print(response); +} on DioException catch (e) { + print('Exception when calling InventoryApi->getCosmeticIndex: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **itemType** | **String**| The kind of cosmetic to list. | + +### Return type + +[**List<InventoryTemplate>**](InventoryTemplate.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) + # **getInventory** -> Inventory getInventory(n, offset, holderId, equipSlot, order, tags, types, flags, notTypes, notFlags, archived) +> Inventory getInventory(n, offset, holderId, equipSlot, order, tags, types, flags, notTypes, notFlags, archived, seen, isNavBar) Get Inventory @@ -196,9 +245,11 @@ final InventoryFlag flags = ; // InventoryFlag | Filter flags for inventory retr final InventoryItemType notTypes = ; // InventoryItemType | Filter out types for inventory retrieval (comma-separated). final InventoryFlag notFlags = ; // InventoryFlag | Filter out flags for inventory retrieval (comma-separated). final bool archived = true; // bool | Filter archived status for inventory retrieval. +final bool seen = true; // bool | +final bool isNavBar = true; // bool | try { - final response = api.getInventory(n, offset, holderId, equipSlot, order, tags, types, flags, notTypes, notFlags, archived); + final response = api.getInventory(n, offset, holderId, equipSlot, order, tags, types, flags, notTypes, notFlags, archived, seen, isNavBar); print(response); } on DioException catch (e) { print('Exception when calling InventoryApi->getInventory: $e\n'); @@ -220,6 +271,8 @@ Name | Type | Description | Notes **notTypes** | [**InventoryItemType**](.md)| Filter out types for inventory retrieval (comma-separated). | [optional] **notFlags** | [**InventoryFlag**](.md)| Filter out flags for inventory retrieval (comma-separated). | [optional] **archived** | **bool**| Filter archived status for inventory retrieval. | [optional] + **seen** | **bool**| | [optional] + **isNavBar** | **bool**| | [optional] ### Return type @@ -420,6 +473,53 @@ 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) +# **getUserCosmetics** +> List getUserCosmetics(userId) + +List User Cosmetics + +List the cosmetics a user holds. + +### 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().getInventoryApi(); +final String userId = userId_example; // String | Must be a valid user ID. + +try { + final response = api.getUserCosmetics(userId); + print(response); +} on DioException catch (e) { + print('Exception when calling InventoryApi->getUserCosmetics: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **String**| Must be a valid user ID. | + +### Return type + +[**List<UserCosmetic>**](UserCosmetic.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) + # **getUserInventoryItem** > InventoryItem getUserInventoryItem(userId, inventoryItemId) diff --git a/vrchat_dart_generated/doc/InventoryAsset.md b/vrchat_dart_generated/doc/InventoryAsset.md new file mode 100644 index 0000000..8baedde --- /dev/null +++ b/vrchat_dart_generated/doc/InventoryAsset.md @@ -0,0 +1,21 @@ +# vrchat_dart_generated.model.InventoryAsset + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**fileId** | **String** | | [optional] +**frameCount** | **int** | | [optional] +**framesPerSecond** | **num** | | [optional] +**loopCount** | **int** | | [optional] +**totalDurationMs** | **int** | | [optional] +**type** | **String** | | +**url** | **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/InventoryMetadata.md b/vrchat_dart_generated/doc/InventoryMetadata.md index c00ec2a..e936ba5 100644 --- a/vrchat_dart_generated/doc/InventoryMetadata.md +++ b/vrchat_dart_generated/doc/InventoryMetadata.md @@ -11,12 +11,16 @@ Name | Type | Description | Notes **animated** | **bool** | | [optional] **animationStyle** | **String** | | [optional] **assetBundleId** | **String** | | [optional] +**assets** | [**List<InventoryAsset>**](InventoryAsset.md) | | [optional] **fileId** | **String** | | [optional] +**gradientEnd** | **String** | Hex colour without a leading `#`. | [optional] +**gradientStart** | **String** | Hex colour without a leading `#`. | [optional] **imageUrl** | **String** | | [optional] **inventoryItemsToInstantiate** | **List<String>** | Only in bundles | [optional] **maskTag** | **String** | | [optional] **propId** | **String** | | [optional] **propKind** | **int** | | [optional] +**viewfinderBundleId** | **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/InventoryTemplate.md b/vrchat_dart_generated/doc/InventoryTemplate.md index eb39786..a177bb6 100644 --- a/vrchat_dart_generated/doc/InventoryTemplate.md +++ b/vrchat_dart_generated/doc/InventoryTemplate.md @@ -19,11 +19,14 @@ Name | Type | Description | Notes **flags** | **List<String>** | | **id** | **String** | | **imageUrl** | **String** | | +**initialToggleState** | **bool** | | [optional] **itemType** | [**InventoryItemType**](InventoryItemType.md) | | **itemTypeLabel** | **String** | | **metadata** | [**InventoryMetadata**](InventoryMetadata.md) | | [optional] **name** | **String** | | **notificationDetails** | [**InventoryNotificationDetails**](InventoryNotificationDetails.md) | | [optional] +**productId** | **String** | | [optional] +**publishedListings** | **List<String>** | | [optional] **status** | **String** | | [optional] **tags** | **List<String>** | | **updatedAt** | [**DateTime**](DateTime.md) | | diff --git a/vrchat_dart_generated/doc/LimitedUserFriend.md b/vrchat_dart_generated/doc/LimitedUserFriend.md index 6545971..7741661 100644 --- a/vrchat_dart_generated/doc/LimitedUserFriend.md +++ b/vrchat_dart_generated/doc/LimitedUserFriend.md @@ -10,11 +10,7 @@ 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] +**bannerUrl** | **String** | | [optional] **developerType** | [**DeveloperType**](DeveloperType.md) | | **discordId** | **String** | https://discord.com/developers/docs/reference#snowflakes | [optional] **displayName** | **String** | | @@ -22,7 +18,6 @@ Name | Type | Description | Notes **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** | | **lastActivity** | [**DateTime**](DateTime.md) | | **lastLogin** | [**DateTime**](DateTime.md) | | @@ -32,12 +27,9 @@ Name | Type | Description | Notes **nameplateEffect** | **String** | | [optional] **platform** | **String** | | **profileEffect** | **String** | | [optional] -**profilePicOverride** | **String** | | [optional] -**profilePicOverrideThumbnail** | **String** | | [optional] **status** | [**UserStatus**](UserStatus.md) | | **statusDescription** | **String** | | **tags** | **List<String>** | <- Always empty. | -**userIcon** | **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/LimitedUserSearch.md b/vrchat_dart_generated/doc/LimitedUserSearch.md index a0f4ff9..97b75b8 100644 --- a/vrchat_dart_generated/doc/LimitedUserSearch.md +++ b/vrchat_dart_generated/doc/LimitedUserSearch.md @@ -11,11 +11,6 @@ Name | Type | Description | Notes **bannerColor** | **String** | | [optional] **bannerType** | **String** | | [optional] **bannerUrl** | **String** | | [optional] -**bio** | **String** | | [optional] -**bioLinks** | **List<String>** | | [optional] -**currentAvatarImageUrl** | **String** | When profilePicOverride is not empty, use it instead. | -**currentAvatarTags** | **List<String>** | | -**currentAvatarThumbnailImageUrl** | **String** | When profilePicOverride is not empty, use it instead. | **developerType** | [**DeveloperType**](DeveloperType.md) | | **displayName** | **String** | | **iconFrame** | **String** | | [optional] @@ -25,12 +20,10 @@ Name | Type | Description | Notes **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`. | **nameplateEffect** | **String** | | [optional] **profileEffect** | **String** | | [optional] -**profilePicOverride** | **String** | | [optional] **pronouns** | **String** | | [optional] **status** | [**UserStatus**](UserStatus.md) | | **statusDescription** | **String** | | **tags** | **List<String>** | <- Always empty. | -**userIcon** | **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/LimitedWorld.md b/vrchat_dart_generated/doc/LimitedWorld.md index 6d9a9c7..e6a3071 100644 --- a/vrchat_dart_generated/doc/LimitedWorld.md +++ b/vrchat_dart_generated/doc/LimitedWorld.md @@ -18,10 +18,12 @@ Name | Type | Description | Notes **heat** | **int** | | [default to 0] **id** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | **imageUrl** | **String** | | +**isHypeTrainEligible** | **bool** | | [optional] **labsPublicationDate** | **String** | | **name** | **String** | | **occupants** | **int** | | [default to 0] **organization** | **String** | | [default to 'vrchat'] +**pendingUpload** | **bool** | | [optional] **popularity** | **int** | | [default to 0] **previewYoutubeId** | **String** | | [optional] **publicationDate** | **String** | | diff --git a/vrchat_dart_generated/doc/MiscellaneousApi.md b/vrchat_dart_generated/doc/MiscellaneousApi.md index 804c7c5..e7e6777 100644 --- a/vrchat_dart_generated/doc/MiscellaneousApi.md +++ b/vrchat_dart_generated/doc/MiscellaneousApi.md @@ -10,9 +10,12 @@ All URIs are relative to *https://api.vrchat.cloud/api/1* Method | HTTP request | Description ------------- | ------------- | ------------- [**getAssignedPermissions**](MiscellaneousApi.md#getassignedpermissions) | **GET** /auth/permissions | Get Assigned Permissions +[**getBeta**](MiscellaneousApi.md#getbeta) | **GET** /beta/{betaName} | Get Beta Program +[**getBetaRegistration**](MiscellaneousApi.md#getbetaregistration) | **GET** /beta/{betaName}/register | Get Beta Registration [**getCSS**](MiscellaneousApi.md#getcss) | **GET** /css/app.css | Download CSS [**getConfig**](MiscellaneousApi.md#getconfig) | **GET** /config | Fetch API Config [**getCurrentOnlineUsers**](MiscellaneousApi.md#getcurrentonlineusers) | **GET** /visits | Current Online Users +[**getFrontendBranches**](MiscellaneousApi.md#getfrontendbranches) | **GET** /frontend/branches | List Frontend Branches [**getHealth**](MiscellaneousApi.md#gethealth) | **GET** /health | Check API Health [**getInfoPush**](MiscellaneousApi.md#getinfopush) | **GET** /infoPush | Show Information Notices [**getJavaScript**](MiscellaneousApi.md#getjavascript) | **GET** /js/app.js | Download JavaScript @@ -63,6 +66,95 @@ 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) +# **getBeta** +> Beta getBeta(betaName) + +Get Beta Program + +Get a beta program and the fields a registration must supply. + +### Example +```dart +import 'package:vrchat_dart_generated/api.dart'; + +final api = VrchatDartGenerated().getMiscellaneousApi(); +final String betaName = ios-closed-beta; // String | The name of a beta program. + +try { + final response = api.getBeta(betaName); + print(response); +} on DioException catch (e) { + print('Exception when calling MiscellaneousApi->getBeta: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **betaName** | **String**| The name of a beta program. | + +### Return type + +[**Beta**](Beta.md) + +### Authorization + +No authorization required + +### 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) + +# **getBetaRegistration** +> getBetaRegistration(betaName) + +Get Beta Registration + +Get the currently authenticated user's registration for a beta program. + +### 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().getMiscellaneousApi(); +final String betaName = ios-closed-beta; // String | The name of a beta program. + +try { + api.getBetaRegistration(betaName); +} on DioException catch (e) { + print('Exception when calling MiscellaneousApi->getBetaRegistration: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **betaName** | **String**| The name of a beta program. | + +### Return type + +void (empty response body) + +### 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) + # **getCSS** > String getCSS(variant, branch) @@ -186,6 +278,49 @@ No authorization required [[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) +# **getFrontendBranches** +> List getFrontendBranches() + +List Frontend Branches + +List the frontend branches the currently authenticated user may switch to. + +### 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().getMiscellaneousApi(); + +try { + final response = api.getFrontendBranches(); + print(response); +} on DioException catch (e) { + print('Exception when calling MiscellaneousApi->getFrontendBranches: $e\n'); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +**List<Object>** + +### 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) + # **getHealth** > APIHealth getHealth() diff --git a/vrchat_dart_generated/doc/MutualFriend.md b/vrchat_dart_generated/doc/MutualFriend.md index 741dece..12d4fb0 100644 --- a/vrchat_dart_generated/doc/MutualFriend.md +++ b/vrchat_dart_generated/doc/MutualFriend.md @@ -8,20 +8,15 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties 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] +**bannerUrl** | **String** | | [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/PastDisplayName.md b/vrchat_dart_generated/doc/PastDisplayName.md index 320d12f..7b93586 100644 --- a/vrchat_dart_generated/doc/PastDisplayName.md +++ b/vrchat_dart_generated/doc/PastDisplayName.md @@ -9,6 +9,7 @@ import 'package:vrchat_dart_generated/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **displayName** | **String** | | +**reverted** | **bool** | | **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/ProductListing.md b/vrchat_dart_generated/doc/ProductListing.md index 496a693..de43aa3 100644 --- a/vrchat_dart_generated/doc/ProductListing.md +++ b/vrchat_dart_generated/doc/ProductListing.md @@ -42,12 +42,12 @@ Name | Type | Description | Notes **purchaseCountQuantity** | **int** | | [optional] **quantifiable** | **bool** | | [optional] **recurrable** | **bool** | | -**refundable** | **bool** | | +**refundable** | **bool** | | [optional] **sellerDisplayName** | **String** | | **sellerId** | **String** | | **soldByVrc** | **bool** | | [optional] **stackable** | **bool** | | -**storeIds** | **List<String>** | | +**storeIds** | **List<String>** | | [optional] **subtitle** | **String** | | [optional] **tags** | **List<String>** | | [optional] **updated** | [**DateTime**](DateTime.md) | | [optional] diff --git a/vrchat_dart_generated/doc/ProductListingAttribution.md b/vrchat_dart_generated/doc/ProductListingAttribution.md index c9e005f..0efa4e7 100644 --- a/vrchat_dart_generated/doc/ProductListingAttribution.md +++ b/vrchat_dart_generated/doc/ProductListingAttribution.md @@ -8,6 +8,7 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**collaborationId** | **String** | | [optional] **creator** | [**ProductListingAttributionCreator**](ProductListingAttributionCreator.md) | | [optional] **publisher** | [**ProductListingAttributionCreator**](ProductListingAttributionCreator.md) | | [optional] diff --git a/vrchat_dart_generated/doc/ProfileGroup.md b/vrchat_dart_generated/doc/ProfileGroup.md new file mode 100644 index 0000000..5535081 --- /dev/null +++ b/vrchat_dart_generated/doc/ProfileGroup.md @@ -0,0 +1,17 @@ +# vrchat_dart_generated.model.ProfileGroup + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**iconUrl** | **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/ProfileGroups.md b/vrchat_dart_generated/doc/ProfileGroups.md new file mode 100644 index 0000000..e58d4cd --- /dev/null +++ b/vrchat_dart_generated/doc/ProfileGroups.md @@ -0,0 +1,16 @@ +# vrchat_dart_generated.model.ProfileGroups + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | [optional] +**list** | [**List<ProfileGroup>**](ProfileGroup.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/PropsApi.md b/vrchat_dart_generated/doc/PropsApi.md index bc3bb8d..d9c9157 100644 --- a/vrchat_dart_generated/doc/PropsApi.md +++ b/vrchat_dart_generated/doc/PropsApi.md @@ -207,7 +207,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) # **listProps** -> List listProps(authorId, n, offset) +> List listProps(n, offset, authorId) List Props @@ -222,12 +222,12 @@ import 'package:vrchat_dart_generated/api.dart'; //defaultApiClient.getAuthentication('authCookie').apiKeyPrefix = 'Bearer'; final api = VrchatDartGenerated().getPropsApi(); -final String authorId = authorId_example; // String | Must be a valid user ID. 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 String authorId = authorId_example; // String | Must be a valid user ID. try { - final response = api.listProps(authorId, n, offset); + final response = api.listProps(n, offset, authorId); print(response); } on DioException catch (e) { print('Exception when calling PropsApi->listProps: $e\n'); @@ -238,9 +238,9 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **authorId** | **String**| Must be a valid user ID. | **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] + **authorId** | **String**| Must be a valid user ID. | [optional] ### Return type diff --git a/vrchat_dart_generated/doc/PublicProfile.md b/vrchat_dart_generated/doc/PublicProfile.md index ec76dfb..bdb71b6 100644 --- a/vrchat_dart_generated/doc/PublicProfile.md +++ b/vrchat_dart_generated/doc/PublicProfile.md @@ -10,15 +10,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ageVerificationStatus** | [**AgeVerificationStatus**](AgeVerificationStatus.md) | | [optional] **ageVerified** | **bool** | `true` if, user is age verified (not 18+). | [optional] +**backgroundGradientBottom** | **String** | Hex colour without a leading `#`. | [optional] +**backgroundGradientTop** | **String** | Hex colour without a leading `#`. | [optional] +**backgroundTemplateId** | **String** | | [optional] +**backgroundTextureId** | **String** | | [optional] **backgroundType** | **String** | | [optional] **badges** | [**List<Badge>**](Badge.md) | | [optional] **bannerColor** | **String** | | [optional] +**bannerCustomUrl** | **String** | | [optional] **bannerType** | **String** | | [optional] +**bannerUrl** | **String** | | [optional] **bio** | **String** | | [optional] **bioLinks** | **List<String>** | | [optional] +**currentAvatar** | **String** | | [optional] +**currentAvatarAuthorName** | **String** | | [optional] +**currentAvatarImageUrl** | **String** | When profilePicOverride is not empty, use it instead. | [optional] +**currentAvatarName** | **String** | | [optional] +**currentAvatarTags** | **List<String>** | | [optional] +**currentAvatarThumbnailImageUrl** | **String** | When profilePicOverride is not empty, use it instead. | [optional] **displayName** | **String** | | [optional] +**groups** | [**ProfileGroups**](ProfileGroups.md) | | [optional] **hasVrcPlus** | **bool** | | [optional] **iconFrame** | **String** | | [optional] +**iconType** | **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. | [optional] **isEconomyCreator** | **bool** | | [optional] @@ -26,9 +40,19 @@ Name | Type | Description | Notes **nameplateEffect** | **String** | | [optional] **profileEffect** | **String** | | [optional] **pronouns** | **String** | | [optional] +**publicWorlds** | [**List<LimitedWorld>**](LimitedWorld.md) | | [optional] **representedGroup** | [**ProfileRepresentedGroup**](ProfileRepresentedGroup.md) | | [optional] +**status** | [**UserStatus**](UserStatus.md) | | [optional] +**statusDescription** | **String** | | [optional] +**themeButtonColor** | **String** | Hex colour without a leading `#`. | [optional] +**themeIconColor** | **String** | Hex colour without a leading `#`. | [optional] **themeId** | **String** | | [optional] +**themeSubtextColor** | **String** | Hex colour without a leading `#`. | [optional] +**themes** | **List<Object>** | | [optional] +**totalPublicWorldsCount** | **int** | | [optional] **trustTags** | **List<String>** | | [optional] +**userIcon** | **String** | | [optional] +**worldFavoriteLists** | [**List<WorldFavoriteList>**](WorldFavoriteList.md) | The owner's public world favorite groups. | [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/StoreShelf.md b/vrchat_dart_generated/doc/StoreShelf.md index 3eff047..4bbe8e4 100644 --- a/vrchat_dart_generated/doc/StoreShelf.md +++ b/vrchat_dart_generated/doc/StoreShelf.md @@ -14,9 +14,13 @@ Name | Type | Description | Notes **listingIds** | **List<String>** | | **listings** | [**List<ProductListing>**](ProductListing.md) | | [optional] **shelfBackgroundImageId** | **String** | | [optional] +**shelfClientBannerImageId** | **String** | | [optional] **shelfDescription** | **String** | | **shelfIconImageId** | **String** | | [optional] **shelfLayout** | **String** | | +**shelfMobileHeroBannerImageId** | **String** | | [optional] +**shelfMobileLogoImageId** | **String** | | [optional] +**shelfMobileSecondaryBannerImageId** | **String** | | [optional] **shelfTabBackgroundImageId** | **String** | | [optional] **shelfTitle** | **String** | | **updatedAt** | [**DateTime**](DateTime.md) | | diff --git a/vrchat_dart_generated/doc/UnavailableWorld.md b/vrchat_dart_generated/doc/UnavailableWorld.md new file mode 100644 index 0000000..6a7d5be --- /dev/null +++ b/vrchat_dart_generated/doc/UnavailableWorld.md @@ -0,0 +1,22 @@ +# vrchat_dart_generated.model.UnavailableWorld + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authorName** | **String** | | +**capacity** | **int** | | +**id** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | +**imageUrl** | **String** | | +**isSecure** | **bool** | | +**name** | **String** | | +**occupants** | **int** | | +**thumbnailImageUrl** | **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/UpdateProfileRequest.md b/vrchat_dart_generated/doc/UpdateProfileRequest.md new file mode 100644 index 0000000..5df123d --- /dev/null +++ b/vrchat_dart_generated/doc/UpdateProfileRequest.md @@ -0,0 +1,26 @@ +# vrchat_dart_generated.model.UpdateProfileRequest + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**backgroundTextureId** | **String** | | [optional] +**backgroundType** | **String** | | [optional] +**bannerColor** | **String** | Hex colour without a leading `#`. | [optional] +**bannerType** | **String** | | [optional] +**bio** | **String** | | [optional] +**bioLinks** | **List<String>** | | [optional] +**iconFrame** | **String** | | [optional] +**languages** | **List<String>** | | [optional] +**nameplateEffect** | **String** | | [optional] +**profileEffect** | **String** | | [optional] +**themeId** | **String** | | [optional] +**userIcon** | **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/UpdateUserClientConfigRequest.md b/vrchat_dart_generated/doc/UpdateUserClientConfigRequest.md new file mode 100644 index 0000000..3a22dcb --- /dev/null +++ b/vrchat_dart_generated/doc/UpdateUserClientConfigRequest.md @@ -0,0 +1,15 @@ +# vrchat_dart_generated.model.UpdateUserClientConfigRequest + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accessReduceDecorAnim** | **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/UpdateUserRequest.md b/vrchat_dart_generated/doc/UpdateUserRequest.md index 872a45c..8064448 100644 --- a/vrchat_dart_generated/doc/UpdateUserRequest.md +++ b/vrchat_dart_generated/doc/UpdateUserRequest.md @@ -9,8 +9,6 @@ import 'package:vrchat_dart_generated/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **acceptedTOSVersion** | **int** | | [optional] -**bio** | **String** | | [optional] -**bioLinks** | **List<String>** | | [optional] **birthday** | [**DateTime**](DateTime.md) | | [optional] **contentFilters** | [**List<ContentFilter>**](ContentFilter.md) | These tags begin with `content_` and control content gating | [optional] **currentPassword** | **String** | | [optional] @@ -26,7 +24,6 @@ Name | Type | Description | Notes **statusDescription** | **String** | | [optional] **tags** | **List<String>** | | [optional] **unsubscribe** | **bool** | | [optional] -**userIcon** | **String** | MUST be a valid VRChat /file/ url. | [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 5b0336d..7b95e08 100644 --- a/vrchat_dart_generated/doc/User.md +++ b/vrchat_dart_generated/doc/User.md @@ -16,15 +16,9 @@ Name | Type | Description | Notes **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** | | -**bioLinks** | **List<String>** | | -**currentAvatarImageUrl** | **String** | When profilePicOverride is not empty, use it instead. | -**currentAvatarTags** | **List<String>** | | -**currentAvatarThumbnailImageUrl** | **String** | When profilePicOverride is not empty, use it instead. | **dateJoined** | [**DateTime**](DateTime.md) | | **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. | @@ -45,8 +39,6 @@ Name | Type | Description | Notes **note** | **String** | | [optional] **platform** | **String** | | [optional] **profileEffect** | **String** | | [optional] -**profilePicOverride** | **String** | | -**profilePicOverrideThumbnail** | **String** | | **pronouns** | **String** | | **state** | [**UserState**](UserState.md) | | **status** | [**UserStatus**](UserStatus.md) | | @@ -55,7 +47,6 @@ Name | Type | Description | Notes **travelingToInstance** | **String** | | [optional] **travelingToLocation** | **String** | | [optional] **travelingToWorld** | **String** | | [optional] -**userIcon** | **String** | | **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/UserClientConfig.md b/vrchat_dart_generated/doc/UserClientConfig.md new file mode 100644 index 0000000..4ae07a5 --- /dev/null +++ b/vrchat_dart_generated/doc/UserClientConfig.md @@ -0,0 +1,16 @@ +# vrchat_dart_generated.model.UserClientConfig + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accessReduceDecorAnim** | **bool** | | +**configString** | **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/UserCosmetic.md b/vrchat_dart_generated/doc/UserCosmetic.md new file mode 100644 index 0000000..f69dcb4 --- /dev/null +++ b/vrchat_dart_generated/doc/UserCosmetic.md @@ -0,0 +1,20 @@ +# vrchat_dart_generated.model.UserCosmetic + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**acquiredOn** | [**DateTime**](DateTime.md) | | +**acquisition** | **String** | | +**id** | **String** | | +**itemType** | [**InventoryItemType**](InventoryItemType.md) | | +**templateId** | **String** | | +**userAttributes** | [**InventoryUserAttributes**](InventoryUserAttributes.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/UserNoteTargetUser.md b/vrchat_dart_generated/doc/UserNoteTargetUser.md index 049bb71..762b221 100644 --- a/vrchat_dart_generated/doc/UserNoteTargetUser.md +++ b/vrchat_dart_generated/doc/UserNoteTargetUser.md @@ -9,11 +9,7 @@ import 'package:vrchat_dart_generated/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **String** | | [optional] -**currentAvatarTags** | **List<String>** | | [optional] -**currentAvatarThumbnailImageUrl** | **String** | When profilePicOverride is not empty, use it instead. | [optional] **displayName** | **String** | | [optional] -**profilePicOverride** | **String** | | [optional] -**userIcon** | **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/UsersApi.md b/vrchat_dart_generated/doc/UsersApi.md index 4af213b..d5b61be 100644 --- a/vrchat_dart_generated/doc/UsersApi.md +++ b/vrchat_dart_generated/doc/UsersApi.md @@ -13,6 +13,7 @@ Method | HTTP request | Description [**checkUserPersistenceExists**](UsersApi.md#checkuserpersistenceexists) | **GET** /users/{userId}/{worldId}/persist/exists | Check User Persistence Exists [**deleteAllUserPersistenceData**](UsersApi.md#deletealluserpersistencedata) | **DELETE** /users/{userId}/persist | Delete All User Persistence Data [**deleteUserPersistence**](UsersApi.md#deleteuserpersistence) | **DELETE** /users/{userId}/{worldId}/persist | Delete User Persistence +[**getAgeVerificationStatus**](UsersApi.md#getageverificationstatus) | **GET** /ageVerification/status | Get Age Verification Status [**getBlockedGroups**](UsersApi.md#getblockedgroups) | **GET** /users/{userId}/groups/userblocked | Get User Group Blocks [**getInvitedGroups**](UsersApi.md#getinvitedgroups) | **GET** /users/{userId}/groups/invited | Get User Group Invited [**getMutualFriends**](UsersApi.md#getmutualfriends) | **GET** /users/{userId}/mutuals/friends | Get User Mutual Friends @@ -23,6 +24,7 @@ Method | HTTP request | Description [**getUser**](UsersApi.md#getuser) | **GET** /users/{userId} | Get User by ID [**getUserAllGroupPermissions**](UsersApi.md#getuserallgrouppermissions) | **GET** /users/{userId}/groups/permissions | Get user's permissions for all joined groups. [**getUserByName**](UsersApi.md#getuserbyname) | **GET** /users/{username}/name | Get User by Username +[**getUserClientConfig**](UsersApi.md#getuserclientconfig) | **GET** /users/{userId}/clientConfig | Get User Client Config [**getUserFeedback**](UsersApi.md#getuserfeedback) | **GET** /users/{userId}/feedback | Get User Feedback [**getUserGroupInstances**](UsersApi.md#getusergroupinstances) | **GET** /users/{userId}/instances/groups | Get User Group Instances [**getUserGroupInstancesForGroup**](UsersApi.md#getusergroupinstancesforgroup) | **GET** /users/{userId}/instances/groups/{groupId} | Get User Group Instances for a specific Group @@ -35,7 +37,9 @@ Method | HTTP request | Description [**removeTags**](UsersApi.md#removetags) | **POST** /users/{userId}/removeTags | Remove User Tags [**searchUsers**](UsersApi.md#searchusers) | **GET** /users | Search All Users [**updateBadge**](UsersApi.md#updatebadge) | **PUT** /users/{userId}/badges/{badgeId} | Update User Badge +[**updateProfile**](UsersApi.md#updateprofile) | **PUT** /profile/{userId} | Update Profile [**updateUser**](UsersApi.md#updateuser) | **PUT** /users/{userId} | Update User Info +[**updateUserClientConfig**](UsersApi.md#updateuserclientconfig) | **PUT** /users/{userId}/clientConfig | Update User Client Config [**updateUserNote**](UsersApi.md#updateusernote) | **POST** /userNotes | Update User Note @@ -230,6 +234,49 @@ void (empty response body) [[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) +# **getAgeVerificationStatus** +> AgeVerificationStatusResult getAgeVerificationStatus() + +Get Age Verification Status + +Get the currently authenticated user's age verification 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().getUsersApi(); + +try { + final response = api.getAgeVerificationStatus(); + print(response); +} on DioException catch (e) { + print('Exception when calling UsersApi->getAgeVerificationStatus: $e\n'); +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**AgeVerificationStatusResult**](AgeVerificationStatusResult.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) + # **getBlockedGroups** > List getBlockedGroups(userId) @@ -521,7 +568,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) # **getPublicProfile** -> PublicProfile getPublicProfile(userId) +> PublicProfile getPublicProfile(userId, asSelf, withGroupsAndWorlds) Get Public Profile @@ -537,9 +584,11 @@ import 'package:vrchat_dart_generated/api.dart'; final api = VrchatDartGenerated().getUsersApi(); final String userId = userId_example; // String | Must be a valid user ID. +final bool asSelf = true; // bool | Include the properties VRChat shows a user on their own profile. Ignored for any other user. +final bool withGroupsAndWorlds = true; // bool | Include `groups`, `publicWorlds`, `totalPublicWorldsCount` and `worldFavoriteLists` in the response. try { - final response = api.getPublicProfile(userId); + final response = api.getPublicProfile(userId, asSelf, withGroupsAndWorlds); print(response); } on DioException catch (e) { print('Exception when calling UsersApi->getPublicProfile: $e\n'); @@ -551,6 +600,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **userId** | **String**| Must be a valid user ID. | + **asSelf** | **bool**| Include the properties VRChat shows a user on their own profile. Ignored for any other user. | [optional] + **withGroupsAndWorlds** | **bool**| Include `groups`, `publicWorlds`, `totalPublicWorldsCount` and `worldFavoriteLists` in the response. | [optional] ### Return type @@ -710,6 +761,53 @@ 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) +# **getUserClientConfig** +> UserClientConfig getUserClientConfig(userId) + +Get User Client Config + +Get the client settings VRChat stores against a user. + +### 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().getUsersApi(); +final String userId = userId_example; // String | Must be a valid user ID. + +try { + final response = api.getUserClientConfig(userId); + print(response); +} on DioException catch (e) { + print('Exception when calling UsersApi->getUserClientConfig: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **String**| Must be a valid user ID. | + +### Return type + +[**UserClientConfig**](UserClientConfig.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) + # **getUserFeedback** > List getUserFeedback(userId, contentId, n, offset) @@ -1297,6 +1395,55 @@ void (empty response body) [[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) +# **updateProfile** +> PublicProfile updateProfile(userId, updateProfileRequest) + +Update Profile + +Update a user's profile. `pronouns`, `status` and `statusDescription` are written through `updateUser` instead. + +### 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().getUsersApi(); +final String userId = userId_example; // String | Must be a valid user ID. +final UpdateProfileRequest updateProfileRequest = ; // UpdateProfileRequest | + +try { + final response = api.updateProfile(userId, updateProfileRequest); + print(response); +} on DioException catch (e) { + print('Exception when calling UsersApi->updateProfile: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **String**| Must be a valid user ID. | + **updateProfileRequest** | [**UpdateProfileRequest**](UpdateProfileRequest.md)| | [optional] + +### Return type + +[**PublicProfile**](PublicProfile.md) + +### 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) + # **updateUser** > CurrentUser updateUser(userId, updateUserRequest) @@ -1346,6 +1493,55 @@ 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) +# **updateUserClientConfig** +> UserClientConfig updateUserClientConfig(userId, updateUserClientConfigRequest) + +Update User Client Config + +Update the client settings VRChat stores against a user. + +### 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().getUsersApi(); +final String userId = userId_example; // String | Must be a valid user ID. +final UpdateUserClientConfigRequest updateUserClientConfigRequest = ; // UpdateUserClientConfigRequest | + +try { + final response = api.updateUserClientConfig(userId, updateUserClientConfigRequest); + print(response); +} on DioException catch (e) { + print('Exception when calling UsersApi->updateUserClientConfig: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **String**| Must be a valid user ID. | + **updateUserClientConfigRequest** | [**UpdateUserClientConfigRequest**](UpdateUserClientConfigRequest.md)| | [optional] + +### Return type + +[**UserClientConfig**](UserClientConfig.md) + +### 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) + # **updateUserNote** > UserNote updateUserNote(updateUserNoteRequest) diff --git a/vrchat_dart_generated/doc/World.md b/vrchat_dart_generated/doc/World.md index 95575b0..e06da79 100644 --- a/vrchat_dart_generated/doc/World.md +++ b/vrchat_dart_generated/doc/World.md @@ -21,6 +21,7 @@ Name | Type | Description | Notes **id** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | **imageUrl** | **String** | | **instances** | [**List<List<Object>>**](List.md) | Will always be an empty list when unauthenticated. | [optional] +**isHypeTrainEligible** | **bool** | | [optional] **labsPublicationDate** | **String** | | **name** | **String** | | **namespace** | **String** | | [optional] diff --git a/vrchat_dart_generated/doc/WorldFavoriteList.md b/vrchat_dart_generated/doc/WorldFavoriteList.md new file mode 100644 index 0000000..e34bc42 --- /dev/null +++ b/vrchat_dart_generated/doc/WorldFavoriteList.md @@ -0,0 +1,18 @@ +# vrchat_dart_generated.model.WorldFavoriteList + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | | +**id** | **String** | | +**name** | **String** | | +**thumbnails** | **List<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/lib/src/api/calendar_api.dart b/vrchat_dart_generated/lib/src/api/calendar_api.dart index 0dd1f22..bea0aaf 100644 --- a/vrchat_dart_generated/lib/src/api/calendar_api.dart +++ b/vrchat_dart_generated/lib/src/api/calendar_api.dart @@ -919,6 +919,9 @@ class CalendarApi { /// * [date] - The month to search in. /// * [n] - The number of objects to return. /// * [offset] - A zero-based offset from the default object sorting from where search results start. + /// * [limit] - The maximum number of entries to get. + /// * [after] - Only return events starting after this date. + /// * [sort] /// * [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 @@ -933,6 +936,9 @@ class CalendarApi { DateTime? date, int? n = 60, int? offset, + int? limit, + DateTime? after, + String? sort, CancelToken? cancelToken, Map? headers, Map? extra, @@ -967,6 +973,9 @@ class CalendarApi { if (date != null) r'date': date, if (n != null) r'n': n, if (offset != null) r'offset': offset, + if (limit != null) r'limit': limit, + if (after != null) r'after': after, + if (sort != null) r'sort': sort, }; final _response = await _dio.request( diff --git a/vrchat_dart_generated/lib/src/api/economy_api.dart b/vrchat_dart_generated/lib/src/api/economy_api.dart index 555e2a7..05135ce 100644 --- a/vrchat_dart_generated/lib/src/api/economy_api.dart +++ b/vrchat_dart_generated/lib/src/api/economy_api.dart @@ -17,6 +17,7 @@ import 'package:vrchat_dart_generated/src/model/economy_account.dart'; import 'package:vrchat_dart_generated/src/model/economy_balances.dart'; import 'package:vrchat_dart_generated/src/model/economy_payout_list.dart'; import 'package:vrchat_dart_generated/src/model/economy_payout_status.dart'; +import 'package:vrchat_dart_generated/src/model/economy_status.dart'; import 'package:vrchat_dart_generated/src/model/license.dart'; import 'package:vrchat_dart_generated/src/model/license_group.dart'; import 'package:vrchat_dart_generated/src/model/order_option_short.dart'; @@ -935,6 +936,7 @@ class EconomyApi { /// /// Parameters: /// * [userId] - Must be a valid user ID. + /// * [getLimits] - Include the account's spending limits in the response. /// * [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 @@ -946,6 +948,7 @@ class EconomyApi { /// Throws [DioException] if API call or serialization fails Future> getEconomyAccount({ required String userId, + bool? getLimits, CancelToken? cancelToken, Map? headers, Map? extra, @@ -976,9 +979,14 @@ class EconomyApi { validateStatus: validateStatus, ); + final _queryParameters = { + if (getLimits != null) r'getLimits': getLimits, + }; + final _response = await _dio.request( _path, options: _options, + queryParameters: _queryParameters, cancelToken: cancelToken, onSendProgress: onSendProgress, onReceiveProgress: onReceiveProgress, @@ -1017,6 +1025,89 @@ class EconomyApi { ); } + /// Get Economy Balance + /// Return the balance of a user's economy account. + /// + /// 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 + Future> getEconomyBalance({ + required String userId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/user/{userId}/economy/balance'.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 Economy Balances /// Gets the combined balances for a user. /// @@ -1278,6 +1369,86 @@ class EconomyApi { ); } + /// Get Economy Status + /// Get whether the economy is accepting requests. + /// + /// 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 [EconomyStatus] as data + /// Throws [DioException] if API call or serialization fails + Future> getEconomyStatus({ + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/economy/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, + ); + + EconomyStatus? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize( + rawData, + 'EconomyStatus', + 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 License Group /// Get a single License Group by given ID. /// @@ -1547,6 +1718,93 @@ class EconomyApi { ); } + /// Get Product Listing Products + /// List the products a listing sells. + /// + /// Parameters: + /// * [productId] - Must be a valid product 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 [List] as data + /// Throws [DioException] if API call or serialization fails + Future>> getProductListingProducts({ + required String productId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/listing/{productId}/products'.replaceAll( + '{' + r'productId' + '}', + productId.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, + ); + + List? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize, Product>( + 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, + ); + } + /// Get User Product Listings /// Gets the product listings of a given user /// @@ -1946,7 +2204,9 @@ class EconomyApi { /// Gets product purchases /// /// Parameters: + /// * [active] - Filter for users' listings and inventory bundles. /// * [buyerId] - Must be a valid user ID. + /// * [receiverId] - Must be a valid user ID. /// * [sellerId] - Filter results by seller. /// * [n] - The number of objects to return. /// * [offset] - A zero-based offset from the default object sorting from where search results start. @@ -1963,7 +2223,9 @@ class EconomyApi { /// Returns a [Future] containing a [Response] with a [List] as data /// Throws [DioException] if API call or serialization fails Future>> getProductPurchases({ - required String buyerId, + bool? active, + String? buyerId, + String? receiverId, String? sellerId, int? n = 60, int? offset, @@ -1996,7 +2258,9 @@ class EconomyApi { ); final _queryParameters = { - r'buyerId': buyerId, + if (active != null) r'active': active, + if (buyerId != null) r'buyerId': buyerId, + if (receiverId != null) r'receiverId': receiverId, if (sellerId != null) r'sellerId': sellerId, if (n != null) r'n': n, if (offset != null) r'offset': offset, @@ -2051,6 +2315,7 @@ class EconomyApi { /// Get the most recent user subscription. /// /// Parameters: + /// * [userId] - Filter by UserID. /// * [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 @@ -2061,6 +2326,7 @@ class EconomyApi { /// Returns a [Future] containing a [Response] with a [UserSubscription] as data /// Throws [DioException] if API call or serialization fails Future> getRecentSubscription({ + String? userId, CancelToken? cancelToken, Map? headers, Map? extra, @@ -2086,9 +2352,14 @@ class EconomyApi { validateStatus: validateStatus, ); + final _queryParameters = { + if (userId != null) r'userId': userId, + }; + final _response = await _dio.request( _path, options: _options, + queryParameters: _queryParameters, cancelToken: cancelToken, onSendProgress: onSendProgress, onReceiveProgress: onReceiveProgress, @@ -2380,6 +2651,7 @@ class EconomyApi { /// /// Parameters: /// * [storeId] + /// * [hydrateContext] /// * [hydrateListings] - Listings fields will be populated. /// * [hydrateProducts] - Products fields will be populated. /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation @@ -2393,6 +2665,7 @@ class EconomyApi { /// Throws [DioException] if API call or serialization fails Future> getStore({ required String storeId, + bool? hydrateContext, bool? hydrateListings, bool? hydrateProducts, CancelToken? cancelToken, @@ -2422,6 +2695,7 @@ class EconomyApi { final _queryParameters = { r'storeId': storeId, + if (hydrateContext != null) r'hydrateContext': hydrateContext, if (hydrateListings != null) r'hydrateListings': hydrateListings, if (hydrateProducts != null) r'hydrateProducts': hydrateProducts, }; diff --git a/vrchat_dart_generated/lib/src/api/favorites_api.dart b/vrchat_dart_generated/lib/src/api/favorites_api.dart index ee53a17..cf202c5 100644 --- a/vrchat_dart_generated/lib/src/api/favorites_api.dart +++ b/vrchat_dart_generated/lib/src/api/favorites_api.dart @@ -12,6 +12,8 @@ import 'package:dio/dio.dart'; import 'package:vrchat_dart_generated/src/model/add_favorite_request.dart'; import 'package:vrchat_dart_generated/src/model/favorite.dart'; import 'package:vrchat_dart_generated/src/model/favorite_group.dart'; +import 'package:vrchat_dart_generated/src/model/favorite_group_contents.dart'; +import 'package:vrchat_dart_generated/src/model/favorite_group_list.dart'; import 'package:vrchat_dart_generated/src/model/favorite_limits.dart'; import 'package:vrchat_dart_generated/src/model/favorite_type.dart'; import 'package:vrchat_dart_generated/src/model/success.dart'; @@ -325,6 +327,109 @@ class FavoritesApi { ); } + /// List Favorite Group Contents + /// List the favorites in a group, each alongside the object it points at. + /// + /// Parameters: + /// * [favoriteGroupType] - The type of group to fetch, must be a valid FavoriteType. + /// * [favoriteGroupName] - The name of the group to fetch, must be a name of a FavoriteGroup. + /// * [ownerId] - The user whose favorite group 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 + /// * [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 [FavoriteGroupContents] as data + /// Throws [DioException] if API call or serialization fails + Future> getFavoriteGroupContents({ + required FavoriteType favoriteGroupType, + required String favoriteGroupName, + String? ownerId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/favorites/groups/{favoriteGroupType}/{favoriteGroupName}' + .replaceAll( + '{' + r'favoriteGroupType' + '}', + favoriteGroupType.toString(), + ) + .replaceAll( + '{' + r'favoriteGroupName' + '}', + favoriteGroupName.toString(), + ); + final _options = Options( + method: r'GET', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _queryParameters = { + if (ownerId != null) r'ownerId': ownerId, + }; + + final _response = await _dio.request( + _path, + options: _options, + queryParameters: _queryParameters, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + FavoriteGroupContents? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize( + rawData, + 'FavoriteGroupContents', + 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 Favorite Groups /// Return a list of favorite groups owned by a user. Returns the same information as `getFavoriteGroups`. /// @@ -424,6 +529,100 @@ class FavoritesApi { ); } + /// List Favorite Groups By Type + /// List a user's favorite groups of one type. + /// + /// Parameters: + /// * [favoriteGroupType] - The type of group to fetch, must be a valid FavoriteType. + /// * [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 + /// * [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 [FavoriteGroupList] as data + /// Throws [DioException] if API call or serialization fails + Future> getFavoriteGroupsByType({ + required FavoriteType favoriteGroupType, + String? ownerId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/favorites/groups/{favoriteGroupType}'.replaceAll( + '{' + r'favoriteGroupType' + '}', + favoriteGroupType.toString(), + ); + final _options = Options( + method: r'GET', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _queryParameters = { + if (ownerId != null) r'ownerId': ownerId, + }; + + final _response = await _dio.request( + _path, + options: _options, + queryParameters: _queryParameters, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + FavoriteGroupList? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize( + rawData, + 'FavoriteGroupList', + 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 Favorite Limits /// Return information about a specific Favorite. /// diff --git a/vrchat_dart_generated/lib/src/api/groups_api.dart b/vrchat_dart_generated/lib/src/api/groups_api.dart index 804254d..7c275ce 100644 --- a/vrchat_dart_generated/lib/src/api/groups_api.dart +++ b/vrchat_dart_generated/lib/src/api/groups_api.dart @@ -18,6 +18,7 @@ import 'package:vrchat_dart_generated/src/model/create_group_post_request.dart'; import 'package:vrchat_dart_generated/src/model/create_group_request.dart'; import 'package:vrchat_dart_generated/src/model/create_group_role_request.dart'; import 'package:vrchat_dart_generated/src/model/decline_group_invite_request.dart'; +import 'package:vrchat_dart_generated/src/model/get_group_gallery_images200_response.dart'; import 'package:vrchat_dart_generated/src/model/get_group_posts200_response.dart'; import 'package:vrchat_dart_generated/src/model/group.dart'; import 'package:vrchat_dart_generated/src/model/group_announcement.dart'; @@ -1902,6 +1903,7 @@ class GroupsApi { /// Parameters: /// * [groupId] - Must be a valid group ID. /// * [includeRoles] - Include roles for the Group object. Defaults to false. + /// * [purpose] /// * [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 @@ -1914,6 +1916,7 @@ class GroupsApi { Future> getGroup({ required String groupId, bool? includeRoles, + String? purpose, CancelToken? cancelToken, Map? headers, Map? extra, @@ -1946,6 +1949,7 @@ class GroupsApi { final _queryParameters = { if (includeRoles != null) r'includeRoles': includeRoles, + if (purpose != null) r'purpose': purpose, }; final _response = await _dio.request( @@ -2376,6 +2380,7 @@ class GroupsApi { /// * [groupGalleryId] - Must be a valid group gallery ID. /// * [n] - The number of objects to return. /// * [offset] - A zero-based offset from the default object sorting from where search results start. + /// * [v] - Response version. `2` wraps the images in a paginated object. /// * [approved] - If specified, only returns images that have been approved or not approved. /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request @@ -2384,13 +2389,14 @@ class GroupsApi { /// * [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 + /// Returns a [Future] containing a [Response] with a [GetGroupGalleryImages200Response] as data /// Throws [DioException] if API call or serialization fails - Future>> getGroupGalleryImages({ + Future> getGroupGalleryImages({ required String groupId, required String groupGalleryId, int? n = 60, int? offset, + int? v, bool? approved, CancelToken? cancelToken, Map? headers, @@ -2432,6 +2438,7 @@ class GroupsApi { final _queryParameters = { if (n != null) r'n': n, if (offset != null) r'offset': offset, + if (v != null) r'v': v, if (approved != null) r'approved': approved, }; @@ -2444,17 +2451,16 @@ class GroupsApi { onReceiveProgress: onReceiveProgress, ); - List? _responseData; + GetGroupGalleryImages200Response? _responseData; try { final rawData = _response.data; _responseData = rawData == null ? null - : deserialize, GroupGalleryImage>( - rawData, - 'List', - growable: true, - ); + : deserialize< + GetGroupGalleryImages200Response, + GetGroupGalleryImages200Response + >(rawData, 'GetGroupGalleryImages200Response', growable: true); } catch (error, stackTrace) { throw DioException( requestOptions: _response.requestOptions, @@ -2465,7 +2471,7 @@ class GroupsApi { ); } - return Response>( + return Response( data: _responseData, headers: _response.headers, isRedirect: _response.isRedirect, diff --git a/vrchat_dart_generated/lib/src/api/inventory_api.dart b/vrchat_dart_generated/lib/src/api/inventory_api.dart index 34c0857..ab991cf 100644 --- a/vrchat_dart_generated/lib/src/api/inventory_api.dart +++ b/vrchat_dart_generated/lib/src/api/inventory_api.dart @@ -25,6 +25,7 @@ import 'package:vrchat_dart_generated/src/model/reward_redemption_result.dart'; import 'package:vrchat_dart_generated/src/model/share_inventory_item_direct_request.dart'; import 'package:vrchat_dart_generated/src/model/success_flag.dart'; import 'package:vrchat_dart_generated/src/model/update_inventory_item_request.dart'; +import 'package:vrchat_dart_generated/src/model/user_cosmetic.dart'; class InventoryApi { final Dio _dio; @@ -308,6 +309,93 @@ class InventoryApi { ); } + /// List Cosmetics + /// List every cosmetic of a kind that VRChat has published, whether or not the caller owns it. + /// + /// Parameters: + /// * [itemType] - The kind of cosmetic to list. + /// * [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>> getCosmeticIndex({ + required String itemType, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/cosmetics/index/{itemType}'.replaceAll( + '{' + r'itemType' + '}', + itemType.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, + ); + + List? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize, InventoryTemplate>( + 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, + ); + } + /// Get Inventory /// Returns an Inventory object. /// @@ -323,6 +411,8 @@ class InventoryApi { /// * [notTypes] - Filter out types for inventory retrieval (comma-separated). /// * [notFlags] - Filter out flags for inventory retrieval (comma-separated). /// * [archived] - Filter archived status for inventory retrieval. + /// * [seen] + /// * [isNavBar] /// * [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 @@ -344,6 +434,8 @@ class InventoryApi { InventoryItemType? notTypes, InventoryFlag? notFlags, bool? archived, + bool? seen, + bool? isNavBar, CancelToken? cancelToken, Map? headers, Map? extra, @@ -381,6 +473,8 @@ class InventoryApi { if (notTypes != null) r'notTypes': notTypes, if (notFlags != null) r'notFlags': notFlags, if (archived != null) r'archived': archived, + if (seen != null) r'seen': seen, + if (isNavBar != null) r'isNavBar': isNavBar, }; final _response = await _dio.request( @@ -766,6 +860,93 @@ class InventoryApi { ); } + /// List User Cosmetics + /// List the cosmetics a user holds. + /// + /// 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 [List] as data + /// Throws [DioException] if API call or serialization fails + Future>> getUserCosmetics({ + required String userId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/user/{userId}/cosmetics'.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, + ); + + List? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize, UserCosmetic>( + 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, + ); + } + /// Get User Inventory Item /// Returns an InventoryItem object held by the given user. /// diff --git a/vrchat_dart_generated/lib/src/api/miscellaneous_api.dart b/vrchat_dart_generated/lib/src/api/miscellaneous_api.dart index adbd91f..52d7a4b 100644 --- a/vrchat_dart_generated/lib/src/api/miscellaneous_api.dart +++ b/vrchat_dart_generated/lib/src/api/miscellaneous_api.dart @@ -11,6 +11,7 @@ import 'package:dio/dio.dart'; import 'package:vrchat_dart_generated/src/model/api_config.dart'; import 'package:vrchat_dart_generated/src/model/api_health.dart'; +import 'package:vrchat_dart_generated/src/model/beta.dart'; import 'package:vrchat_dart_generated/src/model/info_push.dart'; import 'package:vrchat_dart_generated/src/model/permission.dart'; @@ -99,6 +100,136 @@ class MiscellaneousApi { ); } + /// Get Beta Program + /// Get a beta program and the fields a registration must supply. + /// + /// Parameters: + /// * [betaName] - The name of a beta program. + /// * [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 [Beta] as data + /// Throws [DioException] if API call or serialization fails + Future> getBeta({ + required String betaName, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/beta/{betaName}'.replaceAll( + '{' + r'betaName' + '}', + betaName.toString(), + ); + final _options = Options( + method: r'GET', + headers: {...?headers}, + extra: {'secure': >[], ...?extra}, + validateStatus: validateStatus, + ); + + final _response = await _dio.request( + _path, + options: _options, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + Beta? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize(rawData, 'Beta', 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 Beta Registration + /// Get the currently authenticated user's registration for a beta program. + /// + /// Parameters: + /// * [betaName] - The name of a beta program. + /// * [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] + /// Throws [DioException] if API call or serialization fails + Future> getBetaRegistration({ + required String betaName, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/beta/{betaName}/register'.replaceAll( + '{' + r'betaName' + '}', + betaName.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, + ); + + return _response; + } + /// Download CSS /// Fetches the CSS code to the frontend React website. /// @@ -311,6 +442,86 @@ class MiscellaneousApi { ); } + /// List Frontend Branches + /// List the frontend branches the currently authenticated user may switch to. + /// + /// 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>> getFrontendBranches({ + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/frontend/branches'; + 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, Object>( + 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, + ); + } + /// Check API Health /// 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. /// diff --git a/vrchat_dart_generated/lib/src/api/props_api.dart b/vrchat_dart_generated/lib/src/api/props_api.dart index ac0a8be..f26fc6c 100644 --- a/vrchat_dart_generated/lib/src/api/props_api.dart +++ b/vrchat_dart_generated/lib/src/api/props_api.dart @@ -344,9 +344,9 @@ class PropsApi { /// Returns a list Prop objects. /// /// Parameters: - /// * [authorId] - Must be a valid user ID. /// * [n] - The number of objects to return. /// * [offset] - A zero-based offset from the default object sorting from where search results start. + /// * [authorId] - 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 @@ -357,9 +357,9 @@ class PropsApi { /// Returns a [Future] containing a [Response] with a [List] as data /// Throws [DioException] if API call or serialization fails Future>> listProps({ - required String authorId, int? n = 60, int? offset, + String? authorId, CancelToken? cancelToken, Map? headers, Map? extra, @@ -388,7 +388,7 @@ class PropsApi { final _queryParameters = { if (n != null) r'n': n, if (offset != null) r'offset': offset, - r'authorId': authorId, + if (authorId != null) r'authorId': authorId, }; final _response = await _dio.request( diff --git a/vrchat_dart_generated/lib/src/api/users_api.dart b/vrchat_dart_generated/lib/src/api/users_api.dart index a6d22dd..d63020c 100644 --- a/vrchat_dart_generated/lib/src/api/users_api.dart +++ b/vrchat_dart_generated/lib/src/api/users_api.dart @@ -9,6 +9,7 @@ import 'dart:convert'; import 'package:vrchat_dart_generated/src/deserialize.dart'; import 'package:dio/dio.dart'; +import 'package:vrchat_dart_generated/src/model/age_verification_status_result.dart'; import 'package:vrchat_dart_generated/src/model/change_user_tags_request.dart'; import 'package:vrchat_dart_generated/src/model/current_user.dart'; import 'package:vrchat_dart_generated/src/model/feedback.dart'; @@ -23,10 +24,13 @@ import 'package:vrchat_dart_generated/src/model/private_profile.dart'; import 'package:vrchat_dart_generated/src/model/public_profile.dart'; import 'package:vrchat_dart_generated/src/model/represented_group.dart'; import 'package:vrchat_dart_generated/src/model/tutorial_status.dart'; +import 'package:vrchat_dart_generated/src/model/update_profile_request.dart'; import 'package:vrchat_dart_generated/src/model/update_user_badge_request.dart'; +import 'package:vrchat_dart_generated/src/model/update_user_client_config_request.dart'; import 'package:vrchat_dart_generated/src/model/update_user_note_request.dart'; import 'package:vrchat_dart_generated/src/model/update_user_request.dart'; import 'package:vrchat_dart_generated/src/model/user.dart'; +import 'package:vrchat_dart_generated/src/model/user_client_config.dart'; import 'package:vrchat_dart_generated/src/model/user_note.dart'; class UsersApi { @@ -327,6 +331,85 @@ class UsersApi { return _response; } + /// Get Age Verification Status + /// Get the currently authenticated user's age verification 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 [AgeVerificationStatusResult] as data + /// Throws [DioException] if API call or serialization fails + Future> getAgeVerificationStatus({ + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/ageVerification/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, + ); + + AgeVerificationStatusResult? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize< + AgeVerificationStatusResult, + AgeVerificationStatusResult + >(rawData, 'AgeVerificationStatusResult', 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 Group Blocks /// Returns a list of Groups the user has blocked. /// @@ -870,6 +953,8 @@ class UsersApi { /// /// Parameters: /// * [userId] - Must be a valid user ID. + /// * [asSelf] - Include the properties VRChat shows a user on their own profile. Ignored for any other user. + /// * [withGroupsAndWorlds] - Include `groups`, `publicWorlds`, `totalPublicWorldsCount` and `worldFavoriteLists` in the response. /// * [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 @@ -881,6 +966,8 @@ class UsersApi { /// Throws [DioException] if API call or serialization fails Future> getPublicProfile({ required String userId, + bool? asSelf, + bool? withGroupsAndWorlds, CancelToken? cancelToken, Map? headers, Map? extra, @@ -911,9 +998,16 @@ class UsersApi { validateStatus: validateStatus, ); + final _queryParameters = { + if (asSelf != null) r'asSelf': asSelf, + if (withGroupsAndWorlds != null) + r'withGroupsAndWorlds': withGroupsAndWorlds, + }; + final _response = await _dio.request( _path, options: _options, + queryParameters: _queryParameters, cancelToken: cancelToken, onSendProgress: onSendProgress, onReceiveProgress: onReceiveProgress, @@ -1214,6 +1308,93 @@ class UsersApi { ); } + /// Get User Client Config + /// Get the client settings VRChat stores against a user. + /// + /// 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 [UserClientConfig] as data + /// Throws [DioException] if API call or serialization fails + Future> getUserClientConfig({ + required String userId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/users/{userId}/clientConfig'.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, + ); + + UserClientConfig? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize( + rawData, + 'UserClientConfig', + 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 Feedback /// Get user's submitted feedback /// @@ -2307,6 +2488,110 @@ class UsersApi { return _response; } + /// Update Profile + /// Update a user's profile. `pronouns`, `status` and `statusDescription` are written through `updateUser` instead. + /// + /// Parameters: + /// * [userId] - Must be a valid user ID. + /// * [updateProfileRequest] + /// * [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 [PublicProfile] as data + /// Throws [DioException] if API call or serialization fails + Future> updateProfile({ + required String userId, + UpdateProfileRequest? updateProfileRequest, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/profile/{userId}'.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(updateProfileRequest); + } 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, + ); + + PublicProfile? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize( + rawData, + 'PublicProfile', + 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 User Info /// Update a users information such as the email and birthday. /// @@ -2411,6 +2696,110 @@ class UsersApi { ); } + /// Update User Client Config + /// Update the client settings VRChat stores against a user. + /// + /// Parameters: + /// * [userId] - Must be a valid user ID. + /// * [updateUserClientConfigRequest] + /// * [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 [UserClientConfig] as data + /// Throws [DioException] if API call or serialization fails + Future> updateUserClientConfig({ + required String userId, + UpdateUserClientConfigRequest? updateUserClientConfigRequest, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/users/{userId}/clientConfig'.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(updateUserClientConfigRequest); + } 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, + ); + + UserClientConfig? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize( + rawData, + 'UserClientConfig', + 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 User Note /// Updates the currently authenticated user's note on a user /// diff --git a/vrchat_dart_generated/lib/src/deserialize.dart b/vrchat_dart_generated/lib/src/deserialize.dart index 7d75c3f..8b067e6 100644 --- a/vrchat_dart_generated/lib/src/deserialize.dart +++ b/vrchat_dart_generated/lib/src/deserialize.dart @@ -26,6 +26,7 @@ import 'package:vrchat_dart_generated/src/model/add_favorite_request.dart'; import 'package:vrchat_dart_generated/src/model/add_group_gallery_image_request.dart'; import 'package:vrchat_dart_generated/src/model/admin_asset_bundle.dart'; import 'package:vrchat_dart_generated/src/model/admin_unity_package.dart'; +import 'package:vrchat_dart_generated/src/model/age_verification_status_result.dart'; import 'package:vrchat_dart_generated/src/model/agreement.dart'; import 'package:vrchat_dart_generated/src/model/agreement_request.dart'; import 'package:vrchat_dart_generated/src/model/agreement_status.dart'; @@ -41,6 +42,9 @@ 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/beta.dart'; +import 'package:vrchat_dart_generated/src/model/beta_registration_not_found_error.dart'; +import 'package:vrchat_dart_generated/src/model/beta_user_field.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'; @@ -76,16 +80,23 @@ import 'package:vrchat_dart_generated/src/model/dynamic_content_row.dart'; import 'package:vrchat_dart_generated/src/model/earnings_metrics.dart'; import 'package:vrchat_dart_generated/src/model/earnings_metrics_totals.dart'; import 'package:vrchat_dart_generated/src/model/economy_account.dart'; +import 'package:vrchat_dart_generated/src/model/economy_account_limits.dart'; import 'package:vrchat_dart_generated/src/model/economy_balances.dart'; import 'package:vrchat_dart_generated/src/model/economy_payout.dart'; import 'package:vrchat_dart_generated/src/model/economy_payout_eligibility.dart'; import 'package:vrchat_dart_generated/src/model/economy_payout_list.dart'; import 'package:vrchat_dart_generated/src/model/economy_payout_status.dart'; +import 'package:vrchat_dart_generated/src/model/economy_status.dart'; import 'package:vrchat_dart_generated/src/model/equip_inventory_item_request.dart'; import 'package:vrchat_dart_generated/src/model/error.dart'; import 'package:vrchat_dart_generated/src/model/favorite.dart'; import 'package:vrchat_dart_generated/src/model/favorite_group.dart'; +import 'package:vrchat_dart_generated/src/model/favorite_group_contents.dart'; +import 'package:vrchat_dart_generated/src/model/favorite_group_contents_entry.dart'; +import 'package:vrchat_dart_generated/src/model/favorite_group_contents_entry_world.dart'; import 'package:vrchat_dart_generated/src/model/favorite_group_limits.dart'; +import 'package:vrchat_dart_generated/src/model/favorite_group_list.dart'; +import 'package:vrchat_dart_generated/src/model/favorite_group_summary.dart'; import 'package:vrchat_dart_generated/src/model/favorite_limits.dart'; import 'package:vrchat_dart_generated/src/model/favorited_world.dart'; import 'package:vrchat_dart_generated/src/model/feedback.dart'; @@ -99,6 +110,7 @@ import 'package:vrchat_dart_generated/src/model/file_version_upload_status.dart' import 'package:vrchat_dart_generated/src/model/finish_file_data_upload_request.dart'; import 'package:vrchat_dart_generated/src/model/follow_calendar_event_request.dart'; import 'package:vrchat_dart_generated/src/model/friend_status.dart'; +import 'package:vrchat_dart_generated/src/model/get_group_gallery_images200_response.dart'; import 'package:vrchat_dart_generated/src/model/get_group_posts200_response.dart'; import 'package:vrchat_dart_generated/src/model/get_user_group_instances200_response.dart'; import 'package:vrchat_dart_generated/src/model/group.dart'; @@ -108,6 +120,7 @@ import 'package:vrchat_dart_generated/src/model/group_gallery.dart'; import 'package:vrchat_dart_generated/src/model/group_gallery_file_order.dart'; import 'package:vrchat_dart_generated/src/model/group_gallery_file_order_request.dart'; import 'package:vrchat_dart_generated/src/model/group_gallery_image.dart'; +import 'package:vrchat_dart_generated/src/model/group_gallery_image_list.dart'; import 'package:vrchat_dart_generated/src/model/group_instance.dart'; import 'package:vrchat_dart_generated/src/model/group_member.dart'; import 'package:vrchat_dart_generated/src/model/group_member_limited_user.dart'; @@ -137,6 +150,7 @@ 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_asset.dart'; import 'package:vrchat_dart_generated/src/model/inventory_consumption_results.dart'; import 'package:vrchat_dart_generated/src/model/inventory_default_attributes_value.dart'; import 'package:vrchat_dart_generated/src/model/inventory_default_attributes_value_validator.dart'; @@ -203,6 +217,8 @@ import 'package:vrchat_dart_generated/src/model/product_purchase_history.dart'; import 'package:vrchat_dart_generated/src/model/product_purchase_product.dart'; import 'package:vrchat_dart_generated/src/model/product_purchase_purchase_context.dart'; import 'package:vrchat_dart_generated/src/model/product_purchase_record.dart'; +import 'package:vrchat_dart_generated/src/model/profile_group.dart'; +import 'package:vrchat_dart_generated/src/model/profile_groups.dart'; import 'package:vrchat_dart_generated/src/model/profile_represented_group.dart'; import 'package:vrchat_dart_generated/src/model/prop.dart'; import 'package:vrchat_dart_generated/src/model/prop_publish_status.dart'; @@ -253,6 +269,7 @@ import 'package:vrchat_dart_generated/src/model/two_factor_auth_code.dart'; import 'package:vrchat_dart_generated/src/model/two_factor_email_code.dart'; import 'package:vrchat_dart_generated/src/model/two_factor_recovery_codes.dart'; import 'package:vrchat_dart_generated/src/model/two_factor_recovery_codes_otp_inner.dart'; +import 'package:vrchat_dart_generated/src/model/unavailable_world.dart'; import 'package:vrchat_dart_generated/src/model/unity_package.dart'; import 'package:vrchat_dart_generated/src/model/update_asset_review_notes_request.dart'; import 'package:vrchat_dart_generated/src/model/update_avatar_request.dart'; @@ -267,13 +284,17 @@ import 'package:vrchat_dart_generated/src/model/update_inventory_item_request.da import 'package:vrchat_dart_generated/src/model/update_invite_message_request.dart'; import 'package:vrchat_dart_generated/src/model/update_listing_request.dart'; import 'package:vrchat_dart_generated/src/model/update_product_request.dart'; +import 'package:vrchat_dart_generated/src/model/update_profile_request.dart'; import 'package:vrchat_dart_generated/src/model/update_prop_request.dart'; import 'package:vrchat_dart_generated/src/model/update_tilia_tos_request.dart'; import 'package:vrchat_dart_generated/src/model/update_user_badge_request.dart'; +import 'package:vrchat_dart_generated/src/model/update_user_client_config_request.dart'; import 'package:vrchat_dart_generated/src/model/update_user_note_request.dart'; import 'package:vrchat_dart_generated/src/model/update_user_request.dart'; import 'package:vrchat_dart_generated/src/model/update_world_request.dart'; import 'package:vrchat_dart_generated/src/model/user.dart'; +import 'package:vrchat_dart_generated/src/model/user_client_config.dart'; +import 'package:vrchat_dart_generated/src/model/user_cosmetic.dart'; import 'package:vrchat_dart_generated/src/model/user_credits_eligible.dart'; import 'package:vrchat_dart_generated/src/model/user_exists.dart'; import 'package:vrchat_dart_generated/src/model/user_note.dart'; @@ -284,6 +305,7 @@ import 'package:vrchat_dart_generated/src/model/verify2_fa_email_code_result.dar import 'package:vrchat_dart_generated/src/model/verify2_fa_result.dart'; import 'package:vrchat_dart_generated/src/model/verify_auth_token_result.dart'; import 'package:vrchat_dart_generated/src/model/world.dart'; +import 'package:vrchat_dart_generated/src/model/world_favorite_list.dart'; import 'package:vrchat_dart_generated/src/model/world_metadata.dart'; import 'package:vrchat_dart_generated/src/model/world_publish_status.dart'; @@ -406,6 +428,9 @@ ReturnType deserialize( return AdminUnityPackage.fromJson(value as Map) as ReturnType; case 'AgeVerificationStatus': + case 'AgeVerificationStatusResult': + return AgeVerificationStatusResult.fromJson(value as Map) + as ReturnType; case 'Agreement': return Agreement.fromJson(value as Map) as ReturnType; case 'AgreementCode': @@ -448,6 +473,16 @@ ReturnType deserialize( as ReturnType; case 'BareError': return BareError.fromJson(value as Map) as ReturnType; + case 'Beta': + return Beta.fromJson(value as Map) as ReturnType; + case 'BetaRegistrationNotFoundError': + return BetaRegistrationNotFoundError.fromJson( + value as Map, + ) + as ReturnType; + case 'BetaUserField': + return BetaUserField.fromJson(value as Map) + as ReturnType; case 'BoopRequest': return BoopRequest.fromJson(value as Map) as ReturnType; case 'CalendarDayOfWeek': @@ -568,6 +603,9 @@ ReturnType deserialize( case 'EconomyAccount': return EconomyAccount.fromJson(value as Map) as ReturnType; + case 'EconomyAccountLimits': + return EconomyAccountLimits.fromJson(value as Map) + as ReturnType; case 'EconomyBalances': return EconomyBalances.fromJson(value as Map) as ReturnType; @@ -583,6 +621,9 @@ ReturnType deserialize( case 'EconomyPayoutStatus': return EconomyPayoutStatus.fromJson(value as Map) as ReturnType; + case 'EconomyStatus': + return EconomyStatus.fromJson(value as Map) + as ReturnType; case 'EquipInventoryItemRequest': return EquipInventoryItemRequest.fromJson(value as Map) as ReturnType; @@ -593,9 +634,26 @@ ReturnType deserialize( case 'FavoriteGroup': return FavoriteGroup.fromJson(value as Map) as ReturnType; + case 'FavoriteGroupContents': + return FavoriteGroupContents.fromJson(value as Map) + as ReturnType; + case 'FavoriteGroupContentsEntry': + return FavoriteGroupContentsEntry.fromJson(value as Map) + as ReturnType; + case 'FavoriteGroupContentsEntryWorld': + return FavoriteGroupContentsEntryWorld.fromJson( + value as Map, + ) + as ReturnType; case 'FavoriteGroupLimits': return FavoriteGroupLimits.fromJson(value as Map) as ReturnType; + case 'FavoriteGroupList': + return FavoriteGroupList.fromJson(value as Map) + as ReturnType; + case 'FavoriteGroupSummary': + return FavoriteGroupSummary.fromJson(value as Map) + as ReturnType; case 'FavoriteGroupVisibility': case 'FavoriteLimits': return FavoriteLimits.fromJson(value as Map) @@ -632,6 +690,11 @@ ReturnType deserialize( as ReturnType; case 'FriendStatus': return FriendStatus.fromJson(value as Map) as ReturnType; + case 'GetGroupGalleryImages200Response': + return GetGroupGalleryImages200Response.fromJson( + value as Map, + ) + as ReturnType; case 'GetGroupPosts200Response': return GetGroupPosts200Response.fromJson(value as Map) as ReturnType; @@ -662,6 +725,9 @@ ReturnType deserialize( case 'GroupGalleryImage': return GroupGalleryImage.fromJson(value as Map) as ReturnType; + case 'GroupGalleryImageList': + return GroupGalleryImageList.fromJson(value as Map) + as ReturnType; case 'GroupInstance': return GroupInstance.fromJson(value as Map) as ReturnType; @@ -758,6 +824,9 @@ ReturnType deserialize( return InstanceVibe.fromJson(value as Map) as ReturnType; case 'Inventory': return Inventory.fromJson(value as Map) as ReturnType; + case 'InventoryAsset': + return InventoryAsset.fromJson(value as Map) + as ReturnType; case 'InventoryConsumptionResults': return InventoryConsumptionResults.fromJson(value as Map) as ReturnType; @@ -980,6 +1049,11 @@ ReturnType deserialize( return ProductPurchaseRecord.fromJson(value as Map) as ReturnType; case 'ProductType': + case 'ProfileGroup': + return ProfileGroup.fromJson(value as Map) as ReturnType; + case 'ProfileGroups': + return ProfileGroups.fromJson(value as Map) + as ReturnType; case 'ProfileRepresentedGroup': return ProfileRepresentedGroup.fromJson(value as Map) as ReturnType; @@ -1137,6 +1211,9 @@ ReturnType deserialize( value as Map, ) as ReturnType; + case 'UnavailableWorld': + return UnavailableWorld.fromJson(value as Map) + as ReturnType; case 'UnityPackage': return UnityPackage.fromJson(value as Map) as ReturnType; case 'UpdateAssetReviewNotesRequest': @@ -1182,6 +1259,9 @@ ReturnType deserialize( case 'UpdateProductRequest': return UpdateProductRequest.fromJson(value as Map) as ReturnType; + case 'UpdateProfileRequest': + return UpdateProfileRequest.fromJson(value as Map) + as ReturnType; case 'UpdatePropRequest': return UpdatePropRequest.fromJson(value as Map) as ReturnType; @@ -1191,6 +1271,11 @@ ReturnType deserialize( case 'UpdateUserBadgeRequest': return UpdateUserBadgeRequest.fromJson(value as Map) as ReturnType; + case 'UpdateUserClientConfigRequest': + return UpdateUserClientConfigRequest.fromJson( + value as Map, + ) + as ReturnType; case 'UpdateUserNoteRequest': return UpdateUserNoteRequest.fromJson(value as Map) as ReturnType; @@ -1202,6 +1287,11 @@ ReturnType deserialize( as ReturnType; case 'User': return User.fromJson(value as Map) as ReturnType; + case 'UserClientConfig': + return UserClientConfig.fromJson(value as Map) + as ReturnType; + case 'UserCosmetic': + return UserCosmetic.fromJson(value as Map) as ReturnType; case 'UserCreditsEligible': return UserCreditsEligible.fromJson(value as Map) as ReturnType; @@ -1231,6 +1321,9 @@ ReturnType deserialize( as ReturnType; case 'World': return World.fromJson(value as Map) as ReturnType; + case 'WorldFavoriteList': + return WorldFavoriteList.fromJson(value as Map) + as ReturnType; case 'WorldMetadata': return WorldMetadata.fromJson(value as Map) as ReturnType; diff --git a/vrchat_dart_generated/lib/src/model/age_verification_status_result.dart b/vrchat_dart_generated/lib/src/model/age_verification_status_result.dart new file mode 100644 index 0000000..dc5372d --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/age_verification_status_result.dart @@ -0,0 +1,41 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'age_verification_status_result.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class AgeVerificationStatusResult { + /// Returns a new [AgeVerificationStatusResult] instance. + AgeVerificationStatusResult({required this.status}); + + @JsonKey(name: r'status', required: true, includeIfNull: false) + final String status; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is AgeVerificationStatusResult && other.status == status; + + @override + int get hashCode => status.hashCode; + + factory AgeVerificationStatusResult.fromJson(Map json) => + _$AgeVerificationStatusResultFromJson(json); + + Map toJson() => _$AgeVerificationStatusResultToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/age_verification_status_result.g.dart b/vrchat_dart_generated/lib/src/model/age_verification_status_result.g.dart new file mode 100644 index 0000000..1dba10d --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/age_verification_status_result.g.dart @@ -0,0 +1,23 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'age_verification_status_result.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +AgeVerificationStatusResult _$AgeVerificationStatusResultFromJson( + Map json, +) => $checkedCreate('AgeVerificationStatusResult', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['status']); + final val = AgeVerificationStatusResult( + status: $checkedConvert('status', (v) => v as String), + ); + return val; +}); + +Map _$AgeVerificationStatusResultToJson( + AgeVerificationStatusResult instance, +) => {'status': instance.status}; diff --git a/vrchat_dart_generated/lib/src/model/api_config.dart b/vrchat_dart_generated/lib/src/model/api_config.dart index d9b8a93..f13bff3 100644 --- a/vrchat_dart_generated/lib/src/model/api_config.dart +++ b/vrchat_dart_generated/lib/src/model/api_config.dart @@ -176,7 +176,7 @@ class APIConfig { required this.dynamicWorldRows, - required this.economyLedgerBackfill, + this.economyLedgerBackfill, this.economyLedgerMigrationStop, @@ -684,8 +684,12 @@ class APIConfig { final Set dynamicWorldRows; /// Unknown - @JsonKey(name: r'economyLedgerBackfill', required: true, includeIfNull: false) - final bool economyLedgerBackfill; + @JsonKey( + name: r'economyLedgerBackfill', + required: false, + includeIfNull: false, + ) + final bool? economyLedgerBackfill; /// Unknown @JsonKey( 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 121f43f..cce39d3 100644 --- a/vrchat_dart_generated/lib/src/model/api_config.g.dart +++ b/vrchat_dart_generated/lib/src/model/api_config.g.dart @@ -70,7 +70,6 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( 'downloadLinkWindows', 'downloadUrls', 'dynamicWorldRows', - 'economyLedgerBackfill', 'economyLedgerMode', 'economyPauseEnd', 'economyPauseStart', @@ -378,7 +377,7 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( ), economyLedgerBackfill: $checkedConvert( 'economyLedgerBackfill', - (v) => v as bool, + (v) => v as bool?, ), economyLedgerMigrationStop: $checkedConvert( 'economyLedgerMigrationStop', @@ -758,7 +757,7 @@ Map _$APIConfigToJson(APIConfig instance) => { 'downloadLinkWindows': instance.downloadLinkWindows, 'downloadUrls': instance.downloadUrls.toJson(), 'dynamicWorldRows': instance.dynamicWorldRows.map((e) => e.toJson()).toList(), - 'economyLedgerBackfill': instance.economyLedgerBackfill, + 'economyLedgerBackfill': ?instance.economyLedgerBackfill, 'economyLedgerMigrationStop': ?instance.economyLedgerMigrationStop, 'economyLedgerMode': instance.economyLedgerMode, 'economyPauseEnd': instance.economyPauseEnd.toIso8601String(), diff --git a/vrchat_dart_generated/lib/src/model/beta.dart b/vrchat_dart_generated/lib/src/model/beta.dart new file mode 100644 index 0000000..b266f54 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/beta.dart @@ -0,0 +1,109 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/beta_user_field.dart'; + +import 'package:json_annotation/json_annotation.dart'; + +part 'beta.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class Beta { + /// Returns a new [Beta] instance. + Beta({ + required this.active, + + this.betaAppId, + + this.betaGroupId, + + required this.betaName, + + required this.createdAt, + + required this.id, + + this.lastSynchronizedAt, + + required this.type, + + required this.updatedAt, + + required this.userFields, + }); + + @JsonKey(name: r'active', required: true, includeIfNull: false) + final bool active; + + @JsonKey(name: r'betaAppId', required: false, includeIfNull: false) + final String? betaAppId; + + @JsonKey(name: r'betaGroupId', required: false, includeIfNull: false) + final String? betaGroupId; + + @JsonKey(name: r'betaName', required: true, includeIfNull: false) + final String betaName; + + @JsonKey(name: r'created_at', required: true, includeIfNull: false) + final DateTime createdAt; + + @JsonKey(name: r'id', required: true, includeIfNull: false) + final String id; + + @JsonKey(name: r'lastSynchronizedAt', required: false, includeIfNull: false) + final DateTime? lastSynchronizedAt; + + @JsonKey(name: r'type', required: true, includeIfNull: false) + final String type; + + @JsonKey(name: r'updated_at', required: true, includeIfNull: false) + final DateTime updatedAt; + + /// The fields a registration must supply, keyed by field name. + @JsonKey(name: r'userFields', required: true, includeIfNull: false) + final Map userFields; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is Beta && + other.active == active && + other.betaAppId == betaAppId && + other.betaGroupId == betaGroupId && + other.betaName == betaName && + other.createdAt == createdAt && + other.id == id && + other.lastSynchronizedAt == lastSynchronizedAt && + other.type == type && + other.updatedAt == updatedAt && + other.userFields == userFields; + + @override + int get hashCode => + active.hashCode + + betaAppId.hashCode + + betaGroupId.hashCode + + betaName.hashCode + + createdAt.hashCode + + id.hashCode + + lastSynchronizedAt.hashCode + + type.hashCode + + updatedAt.hashCode + + userFields.hashCode; + + factory Beta.fromJson(Map json) => _$BetaFromJson(json); + + Map toJson() => _$BetaToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/beta.g.dart b/vrchat_dart_generated/lib/src/model/beta.g.dart new file mode 100644 index 0000000..3092c41 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/beta.g.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'beta.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +Beta _$BetaFromJson(Map json) => $checkedCreate('Beta', json, ( + $checkedConvert, +) { + $checkKeys( + json, + requiredKeys: const [ + 'active', + 'betaName', + 'created_at', + 'id', + 'type', + 'updated_at', + 'userFields', + ], + ); + final val = Beta( + active: $checkedConvert('active', (v) => v as bool), + betaAppId: $checkedConvert('betaAppId', (v) => v as String?), + betaGroupId: $checkedConvert('betaGroupId', (v) => v as String?), + betaName: $checkedConvert('betaName', (v) => v as String), + createdAt: $checkedConvert( + 'created_at', + (v) => DateTime.parse(v as String), + ), + id: $checkedConvert('id', (v) => v as String), + lastSynchronizedAt: $checkedConvert( + 'lastSynchronizedAt', + (v) => v == null ? null : DateTime.parse(v as String), + ), + type: $checkedConvert('type', (v) => v as String), + updatedAt: $checkedConvert( + 'updated_at', + (v) => DateTime.parse(v as String), + ), + userFields: $checkedConvert( + 'userFields', + (v) => (v as Map).map( + (k, e) => + MapEntry(k, BetaUserField.fromJson(e as Map)), + ), + ), + ); + return val; +}, fieldKeyMap: const {'createdAt': 'created_at', 'updatedAt': 'updated_at'}); + +Map _$BetaToJson(Beta instance) => { + 'active': instance.active, + 'betaAppId': ?instance.betaAppId, + 'betaGroupId': ?instance.betaGroupId, + 'betaName': instance.betaName, + 'created_at': instance.createdAt.toIso8601String(), + 'id': instance.id, + 'lastSynchronizedAt': ?instance.lastSynchronizedAt?.toIso8601String(), + 'type': instance.type, + 'updated_at': instance.updatedAt.toIso8601String(), + 'userFields': instance.userFields.map((k, e) => MapEntry(k, e.toJson())), +}; diff --git a/vrchat_dart_generated/lib/src/model/beta_registration_not_found_error.dart b/vrchat_dart_generated/lib/src/model/beta_registration_not_found_error.dart new file mode 100644 index 0000000..20c81c1 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/beta_registration_not_found_error.dart @@ -0,0 +1,41 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'beta_registration_not_found_error.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class BetaRegistrationNotFoundError { + /// Returns a new [BetaRegistrationNotFoundError] instance. + BetaRegistrationNotFoundError({required this.error}); + + @JsonKey(name: r'error', required: true, includeIfNull: false) + final String error; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is BetaRegistrationNotFoundError && other.error == error; + + @override + int get hashCode => error.hashCode; + + factory BetaRegistrationNotFoundError.fromJson(Map json) => + _$BetaRegistrationNotFoundErrorFromJson(json); + + Map toJson() => _$BetaRegistrationNotFoundErrorToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/beta_registration_not_found_error.g.dart b/vrchat_dart_generated/lib/src/model/beta_registration_not_found_error.g.dart new file mode 100644 index 0000000..d01b4ea --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/beta_registration_not_found_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 'beta_registration_not_found_error.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +BetaRegistrationNotFoundError _$BetaRegistrationNotFoundErrorFromJson( + Map json, +) => $checkedCreate('BetaRegistrationNotFoundError', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['error']); + final val = BetaRegistrationNotFoundError( + error: $checkedConvert('error', (v) => v as String), + ); + return val; +}); + +Map _$BetaRegistrationNotFoundErrorToJson( + BetaRegistrationNotFoundError instance, +) => {'error': instance.error}; diff --git a/vrchat_dart_generated/lib/src/model/beta_user_field.dart b/vrchat_dart_generated/lib/src/model/beta_user_field.dart new file mode 100644 index 0000000..ecb5013 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/beta_user_field.dart @@ -0,0 +1,59 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'beta_user_field.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class BetaUserField { + /// Returns a new [BetaUserField] instance. + BetaUserField({ + this.allowedValues, + + this.excludeFromAnalytics, + + required this.required_, + }); + + @JsonKey(name: r'allowedValues', required: false, includeIfNull: false) + final List? allowedValues; + + @JsonKey(name: r'excludeFromAnalytics', required: false, includeIfNull: false) + final bool? excludeFromAnalytics; + + @JsonKey(name: r'required', required: true, includeIfNull: false) + final bool required_; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is BetaUserField && + other.allowedValues == allowedValues && + other.excludeFromAnalytics == excludeFromAnalytics && + other.required_ == required_; + + @override + int get hashCode => + allowedValues.hashCode + + excludeFromAnalytics.hashCode + + required_.hashCode; + + factory BetaUserField.fromJson(Map json) => + _$BetaUserFieldFromJson(json); + + Map toJson() => _$BetaUserFieldToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/beta_user_field.g.dart b/vrchat_dart_generated/lib/src/model/beta_user_field.g.dart new file mode 100644 index 0000000..7329e62 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/beta_user_field.g.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'beta_user_field.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +BetaUserField _$BetaUserFieldFromJson(Map json) => + $checkedCreate('BetaUserField', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['required']); + final val = BetaUserField( + allowedValues: $checkedConvert( + 'allowedValues', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + excludeFromAnalytics: $checkedConvert( + 'excludeFromAnalytics', + (v) => v as bool?, + ), + required_: $checkedConvert('required', (v) => v as bool), + ); + return val; + }, fieldKeyMap: const {'required_': 'required'}); + +Map _$BetaUserFieldToJson(BetaUserField instance) => + { + 'allowedValues': ?instance.allowedValues, + 'excludeFromAnalytics': ?instance.excludeFromAnalytics, + 'required': instance.required_, + }; diff --git a/vrchat_dart_generated/lib/src/model/current_user.dart b/vrchat_dart_generated/lib/src/model/current_user.dart index 472db9a..d9adcba 100644 --- a/vrchat_dart_generated/lib/src/model/current_user.dart +++ b/vrchat_dart_generated/lib/src/model/current_user.dart @@ -10,7 +10,6 @@ import 'package:vrchat_dart_generated/src/model/past_display_name.dart'; import 'package:vrchat_dart_generated/src/model/current_user_presence.dart'; import 'package:vrchat_dart_generated/src/model/discord_details.dart'; import 'package:vrchat_dart_generated/src/model/account_deletion_log.dart'; -import 'package:vrchat_dart_generated/src/model/badge.dart'; import 'package:vrchat_dart_generated/src/model/age_verification_status.dart'; import 'package:vrchat_dart_generated/src/model/user_state.dart'; @@ -49,15 +48,11 @@ class CurrentUser { this.authToken, - this.badges, - this.bannerColor, this.bannerType, - required this.bio, - - required this.bioLinks, + this.bannerUrl, this.completedTutorials, @@ -169,10 +164,6 @@ class CurrentUser { this.profileEffect, - required this.profilePicOverride, - - required this.profilePicOverrideThumbnail, - required this.pronouns, required this.pronounsHistory, @@ -217,8 +208,6 @@ class CurrentUser { this.updatedAt, - required this.userIcon, - this.userLanguage, this.userLanguageCode, @@ -275,22 +264,14 @@ class CurrentUser { @JsonKey(name: r'authToken', required: false, includeIfNull: false) final String? authToken; - /// - @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; - - /// - @JsonKey(name: r'bioLinks', required: true, includeIfNull: false) - final List bioLinks; + @JsonKey(name: r'bannerUrl', required: false, includeIfNull: false) + final String? bannerUrl; @JsonKey(name: r'completedTutorials', required: false, includeIfNull: false) final List? completedTutorials; @@ -494,16 +475,6 @@ class CurrentUser { @JsonKey(name: r'profileEffect', required: false, includeIfNull: false) final String? profileEffect; - @JsonKey(name: r'profilePicOverride', required: true, includeIfNull: false) - final String profilePicOverride; - - @JsonKey( - name: r'profilePicOverrideThumbnail', - required: true, - includeIfNull: false, - ) - final String profilePicOverrideThumbnail; - @JsonKey(name: r'pronouns', required: true, includeIfNull: false) final String pronouns; @@ -578,9 +549,6 @@ class CurrentUser { @JsonKey(name: r'updated_at', required: false, includeIfNull: false) final DateTime? updatedAt; - @JsonKey(name: r'userIcon', required: true, includeIfNull: false) - final String userIcon; - @JsonKey(name: r'userLanguage', required: false, includeIfNull: false) final String? userLanguage; @@ -616,11 +584,9 @@ class CurrentUser { other.appleDetails == appleDetails && other.appleId == appleId && other.authToken == authToken && - other.badges == badges && other.bannerColor == bannerColor && other.bannerType == bannerType && - other.bio == bio && - other.bioLinks == bioLinks && + other.bannerUrl == bannerUrl && other.completedTutorials == completedTutorials && other.contentFilters == contentFilters && other.currentAvatar == currentAvatar && @@ -677,8 +643,6 @@ class CurrentUser { other.platformHistory == platformHistory && other.presence == presence && other.profileEffect == profileEffect && - other.profilePicOverride == profilePicOverride && - other.profilePicOverrideThumbnail == profilePicOverrideThumbnail && other.pronouns == pronouns && other.pronounsHistory == pronounsHistory && other.queuedInstance == queuedInstance && @@ -701,7 +665,6 @@ class CurrentUser { other.twoFactorAuthEnabledDate == twoFactorAuthEnabledDate && other.unsubscribe == unsubscribe && other.updatedAt == updatedAt && - other.userIcon == userIcon && other.userLanguage == userLanguage && other.userLanguageCode == userLanguageCode && other.username == username && @@ -722,11 +685,9 @@ class CurrentUser { appleDetails.hashCode + appleId.hashCode + authToken.hashCode + - badges.hashCode + bannerColor.hashCode + bannerType.hashCode + - bio.hashCode + - bioLinks.hashCode + + bannerUrl.hashCode + completedTutorials.hashCode + contentFilters.hashCode + currentAvatar.hashCode + @@ -782,8 +743,6 @@ class CurrentUser { platformHistory.hashCode + presence.hashCode + profileEffect.hashCode + - profilePicOverride.hashCode + - profilePicOverrideThumbnail.hashCode + pronouns.hashCode + pronounsHistory.hashCode + (queuedInstance == null ? 0 : queuedInstance.hashCode) + @@ -808,7 +767,6 @@ class CurrentUser { : twoFactorAuthEnabledDate.hashCode) + unsubscribe.hashCode + updatedAt.hashCode + - userIcon.hashCode + (userLanguage == null ? 0 : userLanguage.hashCode) + (userLanguageCode == null ? 0 : userLanguageCode.hashCode) + username.hashCode + 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 6daa885..f463c12 100644 --- a/vrchat_dart_generated/lib/src/model/current_user.g.dart +++ b/vrchat_dart_generated/lib/src/model/current_user.g.dart @@ -19,8 +19,6 @@ CurrentUser _$CurrentUserFromJson(Map json) => $checkedCreate( 'ageVerificationStatus', 'ageVerified', 'allowAvatarCopying', - 'bio', - 'bioLinks', 'currentAvatar', 'currentAvatarImageUrl', 'currentAvatarTags', @@ -47,8 +45,6 @@ CurrentUser _$CurrentUserFromJson(Map json) => $checkedCreate( 'obfuscatedPendingEmail', 'oculusId', 'pastDisplayNames', - 'profilePicOverride', - 'profilePicOverrideThumbnail', 'pronouns', 'pronounsHistory', 'state', @@ -61,7 +57,6 @@ CurrentUser _$CurrentUserFromJson(Map json) => $checkedCreate( 'tags', 'twoFactorAuthEnabled', 'unsubscribe', - 'userIcon', 'usesGeneratedPassword', ], ); @@ -100,19 +95,9 @@ CurrentUser _$CurrentUserFromJson(Map json) => $checkedCreate( appleDetails: $checkedConvert('appleDetails', (v) => v), appleId: $checkedConvert('appleId', (v) => v as String?), authToken: $checkedConvert('authToken', (v) => v as String?), - 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?), - bio: $checkedConvert('bio', (v) => v as String), - bioLinks: $checkedConvert( - 'bioLinks', - (v) => (v as List).map((e) => e as String).toList(), - ), + bannerUrl: $checkedConvert('bannerUrl', (v) => v as String?), completedTutorials: $checkedConvert( 'completedTutorials', (v) => (v as List?)?.map((e) => e as String).toList(), @@ -261,14 +246,6 @@ CurrentUser _$CurrentUserFromJson(Map json) => $checkedCreate( : CurrentUserPresence.fromJson(v as Map), ), profileEffect: $checkedConvert('profileEffect', (v) => v as String?), - profilePicOverride: $checkedConvert( - 'profilePicOverride', - (v) => v as String, - ), - profilePicOverrideThumbnail: $checkedConvert( - 'profilePicOverrideThumbnail', - (v) => v as String, - ), pronouns: $checkedConvert('pronouns', (v) => v as String), pronounsHistory: $checkedConvert( 'pronounsHistory', @@ -330,7 +307,6 @@ CurrentUser _$CurrentUserFromJson(Map json) => $checkedCreate( 'updated_at', (v) => v == null ? null : DateTime.parse(v as String), ), - userIcon: $checkedConvert('userIcon', (v) => v as String), userLanguage: $checkedConvert('userLanguage', (v) => v as String?), userLanguageCode: $checkedConvert( 'userLanguageCode', @@ -374,11 +350,9 @@ Map _$CurrentUserToJson( 'appleDetails': ?instance.appleDetails, '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, + 'bannerUrl': ?instance.bannerUrl, 'completedTutorials': ?instance.completedTutorials, 'contentFilters': ?instance.contentFilters, 'currentAvatar': instance.currentAvatar, @@ -436,8 +410,6 @@ Map _$CurrentUserToJson( .toList(), 'presence': ?instance.presence?.toJson(), 'profileEffect': ?instance.profileEffect, - 'profilePicOverride': instance.profilePicOverride, - 'profilePicOverrideThumbnail': instance.profilePicOverrideThumbnail, 'pronouns': instance.pronouns, 'pronounsHistory': instance.pronounsHistory, 'queuedInstance': ?instance.queuedInstance, @@ -461,7 +433,6 @@ Map _$CurrentUserToJson( ?.toIso8601String(), 'unsubscribe': instance.unsubscribe, 'updated_at': ?instance.updatedAt?.toIso8601String(), - 'userIcon': instance.userIcon, 'userLanguage': ?instance.userLanguage, 'userLanguageCode': ?instance.userLanguageCode, 'username': ?instance.username, 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 68f2241..0b37565 100644 --- a/vrchat_dart_generated/lib/src/model/current_user_presence.dart +++ b/vrchat_dart_generated/lib/src/model/current_user_presence.dart @@ -23,6 +23,12 @@ class CurrentUserPresence { this.banner, + this.bannerColor, + + this.bannerType, + + this.bannerUrl, + this.currentAvatarTags, this.debugflag, @@ -33,6 +39,8 @@ class CurrentUserPresence { this.iconFrame, + this.iconUrl, + this.id, this.instance, @@ -69,8 +77,17 @@ class CurrentUserPresence { @JsonKey(name: r'banner', required: false, includeIfNull: false) final String? banner; + @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'bannerUrl', required: false, includeIfNull: false) + final String? bannerUrl; + @JsonKey(name: r'currentAvatarTags', required: false, includeIfNull: false) - final List? currentAvatarTags; + final String? currentAvatarTags; @JsonKey(name: r'debugflag', required: false, includeIfNull: false) final String? debugflag; @@ -84,6 +101,9 @@ class CurrentUserPresence { @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: false, includeIfNull: false) final String? id; @@ -136,11 +156,15 @@ class CurrentUserPresence { other.avatarImageUrl == avatarImageUrl && other.avatarThumbnail == avatarThumbnail && other.banner == banner && + other.bannerColor == bannerColor && + other.bannerType == bannerType && + other.bannerUrl == bannerUrl && other.currentAvatarTags == currentAvatarTags && other.debugflag == debugflag && other.displayName == displayName && other.groups == groups && other.iconFrame == iconFrame && + other.iconUrl == iconUrl && other.id == id && other.instance == instance && other.instanceType == instanceType && @@ -160,11 +184,15 @@ class CurrentUserPresence { avatarImageUrl.hashCode + (avatarThumbnail == null ? 0 : avatarThumbnail.hashCode) + banner.hashCode + + bannerColor.hashCode + + bannerType.hashCode + + bannerUrl.hashCode + currentAvatarTags.hashCode + debugflag.hashCode + displayName.hashCode + (groups == null ? 0 : groups.hashCode) + iconFrame.hashCode + + iconUrl.hashCode + id.hashCode + (instance == null ? 0 : instance.hashCode) + (instanceType == null ? 0 : instanceType.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 395668e..79ebbb9 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 @@ -15,9 +15,12 @@ CurrentUserPresence _$CurrentUserPresenceFromJson( avatarImageUrl: $checkedConvert('avatarImageUrl', (v) => v as String?), avatarThumbnail: $checkedConvert('avatarThumbnail', (v) => v as String?), banner: $checkedConvert('banner', (v) => v as String?), + bannerColor: $checkedConvert('bannerColor', (v) => v as String?), + bannerType: $checkedConvert('bannerType', (v) => v as String?), + bannerUrl: $checkedConvert('bannerUrl', (v) => v as String?), currentAvatarTags: $checkedConvert( 'currentAvatarTags', - (v) => (v as List?)?.map((e) => e as String).toList(), + (v) => v as String?, ), debugflag: $checkedConvert('debugflag', (v) => v as String?), displayName: $checkedConvert('displayName', (v) => v as String?), @@ -26,6 +29,7 @@ CurrentUserPresence _$CurrentUserPresenceFromJson( (v) => (v as List?)?.map((e) => e as String).toList(), ), iconFrame: $checkedConvert('iconFrame', (v) => v as String?), + iconUrl: $checkedConvert('iconUrl', (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?), @@ -55,11 +59,15 @@ Map _$CurrentUserPresenceToJson( 'avatarImageUrl': ?instance.avatarImageUrl, 'avatarThumbnail': ?instance.avatarThumbnail, 'banner': ?instance.banner, + 'bannerColor': ?instance.bannerColor, + 'bannerType': ?instance.bannerType, + 'bannerUrl': ?instance.bannerUrl, 'currentAvatarTags': ?instance.currentAvatarTags, 'debugflag': ?instance.debugflag, 'displayName': ?instance.displayName, 'groups': ?instance.groups, 'iconFrame': ?instance.iconFrame, + 'iconUrl': ?instance.iconUrl, 'id': ?instance.id, 'instance': ?instance.instance, 'instanceType': ?instance.instanceType, 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 8d46261..863ad06 100644 --- a/vrchat_dart_generated/lib/src/model/dynamic_content_row.dart +++ b/vrchat_dart_generated/lib/src/model/dynamic_content_row.dart @@ -29,6 +29,8 @@ class DynamicContentRow { this.featuredResults, + this.groupPool, + this.index, this.marketplace, @@ -80,6 +82,8 @@ class DynamicContentRow { this.type, this.upcomingOffsetMinutes, + + this.worldPool, }); @JsonKey(name: r'anyStyle', required: false, includeIfNull: false) @@ -100,6 +104,9 @@ class DynamicContentRow { @JsonKey(name: r'featuredResults', required: false, includeIfNull: false) final String? featuredResults; + @JsonKey(name: r'groupPool', required: false, includeIfNull: false) + final String? groupPool; + // minimum: 0 @JsonKey(name: r'index', required: false, includeIfNull: false) final int? index; @@ -190,6 +197,9 @@ class DynamicContentRow { ) final int? upcomingOffsetMinutes; + @JsonKey(name: r'worldPool', required: false, includeIfNull: false) + final String? worldPool; + @override bool operator ==(Object other) => identical(this, other) || @@ -200,6 +210,7 @@ class DynamicContentRow { other.bannersTag == bannersTag && other.categories == categories && other.featuredResults == featuredResults && + other.groupPool == groupPool && other.index == index && other.marketplace == marketplace && other.maxPrice == maxPrice && @@ -225,7 +236,8 @@ class DynamicContentRow { other.tag == tag && other.tags == tags && other.type == type && - other.upcomingOffsetMinutes == upcomingOffsetMinutes; + other.upcomingOffsetMinutes == upcomingOffsetMinutes && + other.worldPool == worldPool; @override int get hashCode => @@ -235,6 +247,7 @@ class DynamicContentRow { bannersTag.hashCode + categories.hashCode + featuredResults.hashCode + + groupPool.hashCode + index.hashCode + marketplace.hashCode + maxPrice.hashCode + @@ -260,7 +273,8 @@ class DynamicContentRow { (tag == null ? 0 : tag.hashCode) + (tags == null ? 0 : tags.hashCode) + type.hashCode + - upcomingOffsetMinutes.hashCode; + upcomingOffsetMinutes.hashCode + + worldPool.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 17fa9c9..989edd3 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 @@ -28,6 +28,7 @@ DynamicContentRow _$DynamicContentRowFromJson( (v) => (v as List?)?.map((e) => e as String).toList(), ), featuredResults: $checkedConvert('featuredResults', (v) => v as String?), + groupPool: $checkedConvert('groupPool', (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()), @@ -79,6 +80,7 @@ DynamicContentRow _$DynamicContentRowFromJson( 'upcomingOffsetMinutes', (v) => (v as num?)?.toInt(), ), + worldPool: $checkedConvert('worldPool', (v) => v as String?), ); return val; }); @@ -91,6 +93,7 @@ Map _$DynamicContentRowToJson(DynamicContentRow instance) => 'bannersTag': ?instance.bannersTag, 'categories': ?instance.categories, 'featuredResults': ?instance.featuredResults, + 'groupPool': ?instance.groupPool, 'index': ?instance.index, 'marketplace': ?instance.marketplace, 'maxPrice': ?instance.maxPrice, @@ -117,4 +120,5 @@ Map _$DynamicContentRowToJson(DynamicContentRow instance) => 'tags': ?instance.tags, 'type': ?instance.type, 'upcomingOffsetMinutes': ?instance.upcomingOffsetMinutes, + 'worldPool': ?instance.worldPool, }; diff --git a/vrchat_dart_generated/lib/src/model/economy_account.dart b/vrchat_dart_generated/lib/src/model/economy_account.dart index ee8428d..b777b29 100644 --- a/vrchat_dart_generated/lib/src/model/economy_account.dart +++ b/vrchat_dart_generated/lib/src/model/economy_account.dart @@ -3,6 +3,7 @@ // // ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/economy_account_limits.dart'; import 'package:json_annotation/json_annotation.dart'; @@ -33,6 +34,8 @@ class EconomyAccount { required this.canSpend, + this.limits, + this.skrillEmail, required this.source_, @@ -48,7 +51,7 @@ class EconomyAccount { final DateTime? accountActivatedOn; @JsonKey(name: r'accountId', required: true, includeIfNull: true) - final String? accountId; + final int? accountId; @JsonKey( name: r'accountSellerRegisteredOn', @@ -72,6 +75,9 @@ class EconomyAccount { @JsonKey(name: r'canSpend', required: true, includeIfNull: false) final bool canSpend; + @JsonKey(name: r'limits', required: false, includeIfNull: false) + final EconomyAccountLimits? limits; + @JsonKey(name: r'skrillEmail', required: false, includeIfNull: false) final String? skrillEmail; @@ -100,6 +106,7 @@ class EconomyAccount { other.canEarn == canEarn && other.canPayout == canPayout && other.canSpend == canSpend && + other.limits == limits && other.skrillEmail == skrillEmail && other.source_ == source_ && other.tiliaId == tiliaId && @@ -118,6 +125,7 @@ class EconomyAccount { canEarn.hashCode + canPayout.hashCode + canSpend.hashCode + + limits.hashCode + (skrillEmail == null ? 0 : skrillEmail.hashCode) + source_.hashCode + (tiliaId == null ? 0 : tiliaId.hashCode) + diff --git a/vrchat_dart_generated/lib/src/model/economy_account.g.dart b/vrchat_dart_generated/lib/src/model/economy_account.g.dart index a9f7d85..a7266f5 100644 --- a/vrchat_dart_generated/lib/src/model/economy_account.g.dart +++ b/vrchat_dart_generated/lib/src/model/economy_account.g.dart @@ -26,7 +26,7 @@ EconomyAccount _$EconomyAccountFromJson(Map json) => 'accountActivatedOn', (v) => v == null ? null : DateTime.parse(v as String), ), - accountId: $checkedConvert('accountId', (v) => v as String?), + accountId: $checkedConvert('accountId', (v) => (v as num?)?.toInt()), accountSellerRegisteredOn: $checkedConvert( 'accountSellerRegisteredOn', (v) => v == null ? null : DateTime.parse(v as String), @@ -39,6 +39,12 @@ EconomyAccount _$EconomyAccountFromJson(Map json) => canEarn: $checkedConvert('canEarn', (v) => v as bool?), canPayout: $checkedConvert('canPayout', (v) => v as bool?), canSpend: $checkedConvert('canSpend', (v) => v as bool), + limits: $checkedConvert( + 'limits', + (v) => v == null + ? null + : EconomyAccountLimits.fromJson(v as Map), + ), skrillEmail: $checkedConvert('skrillEmail', (v) => v as String?), source_: $checkedConvert('source', (v) => v as String), tiliaId: $checkedConvert('tiliaId', (v) => v as String?), @@ -59,6 +65,7 @@ Map _$EconomyAccountToJson(EconomyAccount instance) => 'canEarn': ?instance.canEarn, 'canPayout': ?instance.canPayout, 'canSpend': instance.canSpend, + 'limits': ?instance.limits?.toJson(), 'skrillEmail': ?instance.skrillEmail, 'source': instance.source_, 'tiliaId': ?instance.tiliaId, diff --git a/vrchat_dart_generated/lib/src/model/economy_account_limits.dart b/vrchat_dart_generated/lib/src/model/economy_account_limits.dart new file mode 100644 index 0000000..743b540 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/economy_account_limits.dart @@ -0,0 +1,57 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'economy_account_limits.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class EconomyAccountLimits { + /// Returns a new [EconomyAccountLimits] instance. + EconomyAccountLimits({ + required this.buyingTokenMaxPerDay, + + required this.buyingTokenRemainingAllowed, + }); + + // minimum: 0 + @JsonKey(name: r'buyingTokenMaxPerDay', required: true, includeIfNull: false) + final int buyingTokenMaxPerDay; + + // minimum: 0 + @JsonKey( + name: r'buyingTokenRemainingAllowed', + required: true, + includeIfNull: false, + ) + final int buyingTokenRemainingAllowed; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is EconomyAccountLimits && + other.buyingTokenMaxPerDay == buyingTokenMaxPerDay && + other.buyingTokenRemainingAllowed == buyingTokenRemainingAllowed; + + @override + int get hashCode => + buyingTokenMaxPerDay.hashCode + buyingTokenRemainingAllowed.hashCode; + + factory EconomyAccountLimits.fromJson(Map json) => + _$EconomyAccountLimitsFromJson(json); + + Map toJson() => _$EconomyAccountLimitsToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/economy_account_limits.g.dart b/vrchat_dart_generated/lib/src/model/economy_account_limits.g.dart new file mode 100644 index 0000000..7225e9c --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/economy_account_limits.g.dart @@ -0,0 +1,36 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'economy_account_limits.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +EconomyAccountLimits _$EconomyAccountLimitsFromJson( + Map json, +) => $checkedCreate('EconomyAccountLimits', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const ['buyingTokenMaxPerDay', 'buyingTokenRemainingAllowed'], + ); + final val = EconomyAccountLimits( + buyingTokenMaxPerDay: $checkedConvert( + 'buyingTokenMaxPerDay', + (v) => (v as num).toInt(), + ), + buyingTokenRemainingAllowed: $checkedConvert( + 'buyingTokenRemainingAllowed', + (v) => (v as num).toInt(), + ), + ); + return val; +}); + +Map _$EconomyAccountLimitsToJson( + EconomyAccountLimits instance, +) => { + 'buyingTokenMaxPerDay': instance.buyingTokenMaxPerDay, + 'buyingTokenRemainingAllowed': instance.buyingTokenRemainingAllowed, +}; diff --git a/vrchat_dart_generated/lib/src/model/economy_status.dart b/vrchat_dart_generated/lib/src/model/economy_status.dart new file mode 100644 index 0000000..6138572 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/economy_status.dart @@ -0,0 +1,46 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'economy_status.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class EconomyStatus { + /// Returns a new [EconomyStatus] instance. + EconomyStatus({required this.economyOnline, required this.economyState}); + + @JsonKey(name: r'economyOnline', required: true, includeIfNull: false) + final bool economyOnline; + + @JsonKey(name: r'economyState', required: true, includeIfNull: false) + final int economyState; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is EconomyStatus && + other.economyOnline == economyOnline && + other.economyState == economyState; + + @override + int get hashCode => economyOnline.hashCode + economyState.hashCode; + + factory EconomyStatus.fromJson(Map json) => + _$EconomyStatusFromJson(json); + + Map toJson() => _$EconomyStatusToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/economy_status.g.dart b/vrchat_dart_generated/lib/src/model/economy_status.g.dart new file mode 100644 index 0000000..53a5e60 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/economy_status.g.dart @@ -0,0 +1,28 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'economy_status.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +EconomyStatus _$EconomyStatusFromJson(Map json) => + $checkedCreate('EconomyStatus', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['economyOnline', 'economyState']); + final val = EconomyStatus( + economyOnline: $checkedConvert('economyOnline', (v) => v as bool), + economyState: $checkedConvert( + 'economyState', + (v) => (v as num).toInt(), + ), + ); + return val; + }); + +Map _$EconomyStatusToJson(EconomyStatus instance) => + { + 'economyOnline': instance.economyOnline, + 'economyState': instance.economyState, + }; diff --git a/vrchat_dart_generated/lib/src/model/equip_inventory_item_request.g.dart b/vrchat_dart_generated/lib/src/model/equip_inventory_item_request.g.dart index 4500a4d..0073217 100644 --- a/vrchat_dart_generated/lib/src/model/equip_inventory_item_request.g.dart +++ b/vrchat_dart_generated/lib/src/model/equip_inventory_item_request.g.dart @@ -30,6 +30,9 @@ Map _$EquipInventoryItemRequestToJson( const _$InventoryEquipSlotEnumMap = { InventoryEquipSlot.empty: '', InventoryEquipSlot.drone: 'drone', + InventoryEquipSlot.iconFrame: 'iconFrame', + InventoryEquipSlot.nameplateEffect: 'nameplateEffect', InventoryEquipSlot.portal: 'portal', + InventoryEquipSlot.profileEffect: 'profileEffect', InventoryEquipSlot.warp: 'warp', }; diff --git a/vrchat_dart_generated/lib/src/model/favorite_group_contents.dart b/vrchat_dart_generated/lib/src/model/favorite_group_contents.dart new file mode 100644 index 0000000..5d67de8 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/favorite_group_contents.dart @@ -0,0 +1,47 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/favorite_group_contents_entry.dart'; + +import 'package:json_annotation/json_annotation.dart'; + +part 'favorite_group_contents.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class FavoriteGroupContents { + /// Returns a new [FavoriteGroupContents] instance. + FavoriteGroupContents({required this.favorites, required this.totalCount}); + + @JsonKey(name: r'favorites', required: true, includeIfNull: false) + final List favorites; + + @JsonKey(name: r'totalCount', required: true, includeIfNull: false) + final int totalCount; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is FavoriteGroupContents && + other.favorites == favorites && + other.totalCount == totalCount; + + @override + int get hashCode => favorites.hashCode + totalCount.hashCode; + + factory FavoriteGroupContents.fromJson(Map json) => + _$FavoriteGroupContentsFromJson(json); + + Map toJson() => _$FavoriteGroupContentsToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/favorite_group_contents.g.dart b/vrchat_dart_generated/lib/src/model/favorite_group_contents.g.dart new file mode 100644 index 0000000..74ecfc2 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/favorite_group_contents.g.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'favorite_group_contents.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +FavoriteGroupContents _$FavoriteGroupContentsFromJson( + Map json, +) => $checkedCreate('FavoriteGroupContents', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['favorites', 'totalCount']); + final val = FavoriteGroupContents( + favorites: $checkedConvert( + 'favorites', + (v) => (v as List) + .map( + (e) => + FavoriteGroupContentsEntry.fromJson(e as Map), + ) + .toList(), + ), + totalCount: $checkedConvert('totalCount', (v) => (v as num).toInt()), + ); + return val; +}); + +Map _$FavoriteGroupContentsToJson( + FavoriteGroupContents instance, +) => { + 'favorites': instance.favorites.map((e) => e.toJson()).toList(), + 'totalCount': instance.totalCount, +}; diff --git a/vrchat_dart_generated/lib/src/model/favorite_group_contents_entry.dart b/vrchat_dart_generated/lib/src/model/favorite_group_contents_entry.dart new file mode 100644 index 0000000..7898fd6 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/favorite_group_contents_entry.dart @@ -0,0 +1,83 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/favorite_group_contents_entry_world.dart'; +import 'package:vrchat_dart_generated/src/model/avatar.dart'; +import 'package:vrchat_dart_generated/src/model/favorite_type.dart'; + +import 'package:json_annotation/json_annotation.dart'; + +part 'favorite_group_contents_entry.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class FavoriteGroupContentsEntry { + /// Returns a new [FavoriteGroupContentsEntry] instance. + FavoriteGroupContentsEntry({ + this.avatar, + + required this.favoriteId, + + required this.id, + + required this.tags, + + required this.type, + + this.world, + }); + + @JsonKey(name: r'avatar', required: false, includeIfNull: false) + final Avatar? avatar; + + @JsonKey(name: r'favoriteId', required: true, includeIfNull: false) + final String favoriteId; + + @JsonKey(name: r'id', required: true, includeIfNull: false) + final String id; + + @JsonKey(name: r'tags', required: true, includeIfNull: false) + final List tags; + + @JsonKey(name: r'type', required: true, includeIfNull: false) + final FavoriteType type; + + @JsonKey(name: r'world', required: false, includeIfNull: false) + final FavoriteGroupContentsEntryWorld? world; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is FavoriteGroupContentsEntry && + other.avatar == avatar && + other.favoriteId == favoriteId && + other.id == id && + other.tags == tags && + other.type == type && + other.world == world; + + @override + int get hashCode => + avatar.hashCode + + favoriteId.hashCode + + id.hashCode + + tags.hashCode + + type.hashCode + + world.hashCode; + + factory FavoriteGroupContentsEntry.fromJson(Map json) => + _$FavoriteGroupContentsEntryFromJson(json); + + Map toJson() => _$FavoriteGroupContentsEntryToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/favorite_group_contents_entry.g.dart b/vrchat_dart_generated/lib/src/model/favorite_group_contents_entry.g.dart new file mode 100644 index 0000000..977e6fe --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/favorite_group_contents_entry.g.dart @@ -0,0 +1,53 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'favorite_group_contents_entry.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +FavoriteGroupContentsEntry _$FavoriteGroupContentsEntryFromJson( + Map json, +) => $checkedCreate('FavoriteGroupContentsEntry', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['favoriteId', 'id', 'tags', 'type']); + final val = FavoriteGroupContentsEntry( + avatar: $checkedConvert( + 'avatar', + (v) => v == null ? null : Avatar.fromJson(v as Map), + ), + favoriteId: $checkedConvert('favoriteId', (v) => v as String), + id: $checkedConvert('id', (v) => v as String), + tags: $checkedConvert( + 'tags', + (v) => (v as List).map((e) => e as String).toList(), + ), + type: $checkedConvert('type', (v) => $enumDecode(_$FavoriteTypeEnumMap, v)), + world: $checkedConvert( + 'world', + (v) => v == null + ? null + : FavoriteGroupContentsEntryWorld.fromJson(v as Map), + ), + ); + return val; +}); + +Map _$FavoriteGroupContentsEntryToJson( + FavoriteGroupContentsEntry instance, +) => { + 'avatar': ?instance.avatar?.toJson(), + 'favoriteId': instance.favoriteId, + 'id': instance.id, + 'tags': instance.tags, + 'type': _$FavoriteTypeEnumMap[instance.type]!, + 'world': ?instance.world?.toJson(), +}; + +const _$FavoriteTypeEnumMap = { + FavoriteType.avatar: 'avatar', + FavoriteType.friend: 'friend', + FavoriteType.vrcPlusWorld: 'vrcPlusWorld', + FavoriteType.world: 'world', +}; diff --git a/vrchat_dart_generated/lib/src/model/favorite_group_contents_entry_world.dart b/vrchat_dart_generated/lib/src/model/favorite_group_contents_entry_world.dart new file mode 100644 index 0000000..bde963e --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/favorite_group_contents_entry_world.dart @@ -0,0 +1,297 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/instance_content_settings.dart'; +import 'package:vrchat_dart_generated/src/model/release_status.dart'; +import 'package:vrchat_dart_generated/src/model/unity_package.dart'; + +import 'package:json_annotation/json_annotation.dart'; + +part 'favorite_group_contents_entry_world.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class FavoriteGroupContentsEntryWorld { + /// Returns a new [FavoriteGroupContentsEntryWorld] instance. + FavoriteGroupContentsEntryWorld({ + this.authorId, + + required this.authorName, + + required this.capacity, + + this.createdAt, + + this.defaultContentSettings, + + this.description, + + this.disabledPropAbilities, + + this.favoriteGroup, + + this.favoriteId, + + this.favorites = 0, + + this.featured = false, + + this.heat = 0, + + required this.id, + + required this.imageUrl, + + this.isHypeTrainEligible, + + this.labsPublicationDate, + + required this.name, + + required this.occupants, + + this.organization = 'vrchat', + + this.popularity = 0, + + this.previewYoutubeId, + + this.publicationDate, + + this.recommendedCapacity, + + required this.releaseStatus, + + this.storeId, + + this.tags, + + required this.thumbnailImageUrl, + + this.udonProducts, + + this.unityPackages, + + this.updatedAt, + + this.urlList, + + this.version, + + this.visits = 0, + + required this.isSecure, + }); + + /// 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: false, includeIfNull: false) + final String? authorId; + + @JsonKey(name: r'authorName', required: true, includeIfNull: false) + final String authorName; + + @JsonKey(name: r'capacity', required: true, includeIfNull: false) + final int capacity; + + @JsonKey(name: r'created_at', required: false, includeIfNull: false) + final DateTime? createdAt; + + @JsonKey( + name: r'defaultContentSettings', + required: false, + includeIfNull: false, + ) + final InstanceContentSettings? defaultContentSettings; + + @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: false, includeIfNull: false) + final String? favoriteGroup; + + @JsonKey(name: r'favoriteId', required: false, includeIfNull: false) + final String? favoriteId; + + // minimum: 0 + @JsonKey(name: r'favorites', required: false, includeIfNull: false) + final int? favorites; + + @JsonKey(name: r'featured', required: false, includeIfNull: false) + final bool? featured; + + // minimum: 0 + @JsonKey(name: r'heat', required: false, includeIfNull: false) + final int? heat; + + /// WorldID be \"offline\" on User profiles if you are not friends with that user. + @JsonKey(name: r'id', required: true, includeIfNull: false) + final String id; + + @JsonKey(name: r'imageUrl', required: true, includeIfNull: false) + final String imageUrl; + + @JsonKey(name: r'isHypeTrainEligible', required: false, includeIfNull: false) + final bool? isHypeTrainEligible; + + @JsonKey(name: r'labsPublicationDate', required: false, includeIfNull: false) + final String? labsPublicationDate; + + @JsonKey(name: r'name', required: true, includeIfNull: false) + final String name; + + @JsonKey(name: r'occupants', required: true, includeIfNull: false) + final int occupants; + + @JsonKey(name: r'organization', required: false, includeIfNull: false) + final String? organization; + + // minimum: 0 + @JsonKey(name: r'popularity', required: false, includeIfNull: false) + final int? popularity; + + @JsonKey(name: r'previewYoutubeId', required: false, includeIfNull: false) + final String? previewYoutubeId; + + @JsonKey(name: r'publicationDate', required: false, includeIfNull: false) + final String? publicationDate; + + @JsonKey(name: r'recommendedCapacity', required: false, includeIfNull: false) + final int? recommendedCapacity; + + @JsonKey(name: r'releaseStatus', required: true, includeIfNull: false) + final ReleaseStatus releaseStatus; + + @JsonKey(name: r'storeId', required: false, includeIfNull: false) + final String? storeId; + + /// + @JsonKey(name: r'tags', required: false, includeIfNull: false) + final List? tags; + + @JsonKey(name: r'thumbnailImageUrl', required: true, includeIfNull: false) + final String thumbnailImageUrl; + + @JsonKey(name: r'udonProducts', required: false, includeIfNull: false) + final List? udonProducts; + + /// + @JsonKey(name: r'unityPackages', required: false, includeIfNull: false) + final List? unityPackages; + + @JsonKey(name: r'updated_at', required: false, includeIfNull: false) + final DateTime? updatedAt; + + @JsonKey(name: r'urlList', required: false, includeIfNull: false) + final List? urlList; + + // minimum: 1 + @JsonKey(name: r'version', required: false, includeIfNull: false) + final int? version; + + // minimum: 0 + @JsonKey(name: r'visits', required: false, includeIfNull: false) + final int? visits; + + @JsonKey(name: r'isSecure', required: true, includeIfNull: false) + final bool isSecure; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is FavoriteGroupContentsEntryWorld && + other.authorId == authorId && + other.authorName == authorName && + other.capacity == capacity && + other.createdAt == createdAt && + other.defaultContentSettings == defaultContentSettings && + other.description == description && + other.disabledPropAbilities == disabledPropAbilities && + other.favoriteGroup == favoriteGroup && + other.favoriteId == favoriteId && + other.favorites == favorites && + other.featured == featured && + other.heat == heat && + other.id == id && + other.imageUrl == imageUrl && + other.isHypeTrainEligible == isHypeTrainEligible && + other.labsPublicationDate == labsPublicationDate && + other.name == name && + other.occupants == occupants && + other.organization == organization && + other.popularity == popularity && + other.previewYoutubeId == previewYoutubeId && + other.publicationDate == publicationDate && + other.recommendedCapacity == recommendedCapacity && + other.releaseStatus == releaseStatus && + other.storeId == storeId && + other.tags == tags && + other.thumbnailImageUrl == thumbnailImageUrl && + other.udonProducts == udonProducts && + other.unityPackages == unityPackages && + other.updatedAt == updatedAt && + other.urlList == urlList && + other.version == version && + other.visits == visits && + other.isSecure == isSecure; + + @override + int get hashCode => + authorId.hashCode + + authorName.hashCode + + capacity.hashCode + + createdAt.hashCode + + defaultContentSettings.hashCode + + description.hashCode + + disabledPropAbilities.hashCode + + favoriteGroup.hashCode + + favoriteId.hashCode + + favorites.hashCode + + featured.hashCode + + heat.hashCode + + id.hashCode + + imageUrl.hashCode + + isHypeTrainEligible.hashCode + + labsPublicationDate.hashCode + + name.hashCode + + occupants.hashCode + + organization.hashCode + + popularity.hashCode + + (previewYoutubeId == null ? 0 : previewYoutubeId.hashCode) + + publicationDate.hashCode + + recommendedCapacity.hashCode + + releaseStatus.hashCode + + storeId.hashCode + + tags.hashCode + + thumbnailImageUrl.hashCode + + udonProducts.hashCode + + unityPackages.hashCode + + updatedAt.hashCode + + urlList.hashCode + + version.hashCode + + visits.hashCode + + isSecure.hashCode; + + factory FavoriteGroupContentsEntryWorld.fromJson(Map json) => + _$FavoriteGroupContentsEntryWorldFromJson(json); + + Map toJson() => + _$FavoriteGroupContentsEntryWorldToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/favorite_group_contents_entry_world.g.dart b/vrchat_dart_generated/lib/src/model/favorite_group_contents_entry_world.g.dart new file mode 100644 index 0000000..33e6416 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/favorite_group_contents_entry_world.g.dart @@ -0,0 +1,154 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'favorite_group_contents_entry_world.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +FavoriteGroupContentsEntryWorld _$FavoriteGroupContentsEntryWorldFromJson( + Map json, +) => $checkedCreate('FavoriteGroupContentsEntryWorld', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + 'authorName', + 'capacity', + 'id', + 'imageUrl', + 'name', + 'occupants', + 'releaseStatus', + 'thumbnailImageUrl', + 'isSecure', + ], + ); + final val = FavoriteGroupContentsEntryWorld( + 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), + isHypeTrainEligible: $checkedConvert( + 'isHypeTrainEligible', + (v) => v as bool?, + ), + labsPublicationDate: $checkedConvert( + 'labsPublicationDate', + (v) => v as String?, + ), + name: $checkedConvert('name', (v) => v as String), + occupants: $checkedConvert('occupants', (v) => (v as num).toInt()), + 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) => 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), + isSecure: $checkedConvert('isSecure', (v) => v as bool), + ); + return val; +}, fieldKeyMap: const {'createdAt': 'created_at', 'updatedAt': 'updated_at'}); + +Map _$FavoriteGroupContentsEntryWorldToJson( + FavoriteGroupContentsEntryWorld instance, +) => { + 'authorId': ?instance.authorId, + 'authorName': instance.authorName, + 'capacity': instance.capacity, + 'created_at': ?instance.createdAt?.toIso8601String(), + 'defaultContentSettings': ?instance.defaultContentSettings?.toJson(), + 'description': ?instance.description, + 'disabledPropAbilities': ?instance.disabledPropAbilities, + 'favoriteGroup': ?instance.favoriteGroup, + 'favoriteId': ?instance.favoriteId, + 'favorites': ?instance.favorites, + 'featured': ?instance.featured, + 'heat': ?instance.heat, + 'id': instance.id, + 'imageUrl': instance.imageUrl, + 'isHypeTrainEligible': ?instance.isHypeTrainEligible, + 'labsPublicationDate': ?instance.labsPublicationDate, + 'name': instance.name, + 'occupants': instance.occupants, + 'organization': ?instance.organization, + 'popularity': ?instance.popularity, + 'previewYoutubeId': ?instance.previewYoutubeId, + 'publicationDate': ?instance.publicationDate, + 'recommendedCapacity': ?instance.recommendedCapacity, + 'releaseStatus': _$ReleaseStatusEnumMap[instance.releaseStatus]!, + 'storeId': ?instance.storeId, + 'tags': ?instance.tags, + 'thumbnailImageUrl': instance.thumbnailImageUrl, + 'udonProducts': ?instance.udonProducts, + 'unityPackages': ?instance.unityPackages?.map((e) => e.toJson()).toList(), + 'updated_at': ?instance.updatedAt?.toIso8601String(), + 'urlList': ?instance.urlList, + 'version': ?instance.version, + 'visits': ?instance.visits, + 'isSecure': instance.isSecure, +}; + +const _$ReleaseStatusEnumMap = { + ReleaseStatus.all: 'all', + ReleaseStatus.hidden: 'hidden', + ReleaseStatus.private: 'private', + ReleaseStatus.public: 'public', +}; diff --git a/vrchat_dart_generated/lib/src/model/favorite_group_list.dart b/vrchat_dart_generated/lib/src/model/favorite_group_list.dart new file mode 100644 index 0000000..6b0463e --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/favorite_group_list.dart @@ -0,0 +1,64 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/favorite_group_summary.dart'; + +import 'package:json_annotation/json_annotation.dart'; + +part 'favorite_group_list.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class FavoriteGroupList { + /// Returns a new [FavoriteGroupList] instance. + FavoriteGroupList({ + required this.favoriteGroups, + + this.maxFavoriteGroups, + + this.maxFavoritesPerGroup, + }); + + @JsonKey(name: r'favoriteGroups', required: true, includeIfNull: false) + final List favoriteGroups; + + /// Only returned when the owner is the currently authenticated user. + // minimum: 0 + @JsonKey(name: r'maxFavoriteGroups', required: false, includeIfNull: false) + final int? maxFavoriteGroups; + + /// Only returned when the owner is the currently authenticated user. + // minimum: 0 + @JsonKey(name: r'maxFavoritesPerGroup', required: false, includeIfNull: false) + final int? maxFavoritesPerGroup; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is FavoriteGroupList && + other.favoriteGroups == favoriteGroups && + other.maxFavoriteGroups == maxFavoriteGroups && + other.maxFavoritesPerGroup == maxFavoritesPerGroup; + + @override + int get hashCode => + favoriteGroups.hashCode + + maxFavoriteGroups.hashCode + + maxFavoritesPerGroup.hashCode; + + factory FavoriteGroupList.fromJson(Map json) => + _$FavoriteGroupListFromJson(json); + + Map toJson() => _$FavoriteGroupListToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/favorite_group_list.g.dart b/vrchat_dart_generated/lib/src/model/favorite_group_list.g.dart new file mode 100644 index 0000000..1fa2e14 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/favorite_group_list.g.dart @@ -0,0 +1,40 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'favorite_group_list.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +FavoriteGroupList _$FavoriteGroupListFromJson(Map json) => + $checkedCreate('FavoriteGroupList', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['favoriteGroups']); + final val = FavoriteGroupList( + favoriteGroups: $checkedConvert( + 'favoriteGroups', + (v) => (v as List) + .map( + (e) => FavoriteGroupSummary.fromJson(e as Map), + ) + .toList(), + ), + maxFavoriteGroups: $checkedConvert( + 'maxFavoriteGroups', + (v) => (v as num?)?.toInt(), + ), + maxFavoritesPerGroup: $checkedConvert( + 'maxFavoritesPerGroup', + (v) => (v as num?)?.toInt(), + ), + ); + return val; + }); + +Map _$FavoriteGroupListToJson(FavoriteGroupList instance) => + { + 'favoriteGroups': instance.favoriteGroups.map((e) => e.toJson()).toList(), + 'maxFavoriteGroups': ?instance.maxFavoriteGroups, + 'maxFavoritesPerGroup': ?instance.maxFavoritesPerGroup, + }; diff --git a/vrchat_dart_generated/lib/src/model/favorite_group_summary.dart b/vrchat_dart_generated/lib/src/model/favorite_group_summary.dart new file mode 100644 index 0000000..3f4119e --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/favorite_group_summary.dart @@ -0,0 +1,75 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/favorite_group_visibility.dart'; + +import 'package:json_annotation/json_annotation.dart'; + +part 'favorite_group_summary.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class FavoriteGroupSummary { + /// Returns a new [FavoriteGroupSummary] instance. + FavoriteGroupSummary({ + required this.displayName, + + required this.id, + + required this.name, + + required this.numFavorites, + + required this.visibility, + }); + + @JsonKey(name: r'displayName', required: true, includeIfNull: false) + final String displayName; + + @JsonKey(name: r'id', required: true, includeIfNull: false) + final String id; + + @JsonKey(name: r'name', required: true, includeIfNull: false) + final String name; + + // minimum: 0 + @JsonKey(name: r'numFavorites', required: true, includeIfNull: false) + final int numFavorites; + + @JsonKey(name: r'visibility', required: true, includeIfNull: false) + final FavoriteGroupVisibility visibility; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is FavoriteGroupSummary && + other.displayName == displayName && + other.id == id && + other.name == name && + other.numFavorites == numFavorites && + other.visibility == visibility; + + @override + int get hashCode => + displayName.hashCode + + id.hashCode + + name.hashCode + + numFavorites.hashCode + + visibility.hashCode; + + factory FavoriteGroupSummary.fromJson(Map json) => + _$FavoriteGroupSummaryFromJson(json); + + Map toJson() => _$FavoriteGroupSummaryToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/favorite_group_summary.g.dart b/vrchat_dart_generated/lib/src/model/favorite_group_summary.g.dart new file mode 100644 index 0000000..b39aa91 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/favorite_group_summary.g.dart @@ -0,0 +1,51 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'favorite_group_summary.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +FavoriteGroupSummary _$FavoriteGroupSummaryFromJson( + Map json, +) => $checkedCreate('FavoriteGroupSummary', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + 'displayName', + 'id', + 'name', + 'numFavorites', + 'visibility', + ], + ); + final val = FavoriteGroupSummary( + displayName: $checkedConvert('displayName', (v) => v as String), + id: $checkedConvert('id', (v) => v as String), + name: $checkedConvert('name', (v) => v as String), + numFavorites: $checkedConvert('numFavorites', (v) => (v as num).toInt()), + visibility: $checkedConvert( + 'visibility', + (v) => $enumDecode(_$FavoriteGroupVisibilityEnumMap, v), + ), + ); + return val; +}); + +Map _$FavoriteGroupSummaryToJson( + FavoriteGroupSummary instance, +) => { + 'displayName': instance.displayName, + 'id': instance.id, + 'name': instance.name, + 'numFavorites': instance.numFavorites, + 'visibility': _$FavoriteGroupVisibilityEnumMap[instance.visibility]!, +}; + +const _$FavoriteGroupVisibilityEnumMap = { + FavoriteGroupVisibility.friends: 'friends', + FavoriteGroupVisibility.private: 'private', + FavoriteGroupVisibility.public: 'public', +}; diff --git a/vrchat_dart_generated/lib/src/model/favorited_world.dart b/vrchat_dart_generated/lib/src/model/favorited_world.dart index ae90768..e1f1b8a 100644 --- a/vrchat_dart_generated/lib/src/model/favorited_world.dart +++ b/vrchat_dart_generated/lib/src/model/favorited_world.dart @@ -34,9 +34,9 @@ class FavoritedWorld { this.disabledPropAbilities, - required this.favoriteGroup, + this.favoriteGroup, - required this.favoriteId, + this.favoriteId, this.favorites = 0, @@ -48,6 +48,8 @@ class FavoritedWorld { required this.imageUrl, + this.isHypeTrainEligible, + this.labsPublicationDate, required this.name, @@ -66,6 +68,8 @@ class FavoritedWorld { required this.releaseStatus, + this.storeId, + this.tags, required this.thumbnailImageUrl, @@ -113,11 +117,11 @@ class FavoritedWorld { ) final List? disabledPropAbilities; - @JsonKey(name: r'favoriteGroup', required: true, includeIfNull: false) - final String favoriteGroup; + @JsonKey(name: r'favoriteGroup', required: false, includeIfNull: false) + final String? favoriteGroup; - @JsonKey(name: r'favoriteId', required: true, includeIfNull: false) - final String favoriteId; + @JsonKey(name: r'favoriteId', required: false, includeIfNull: false) + final String? favoriteId; // minimum: 0 @JsonKey(name: r'favorites', required: false, includeIfNull: false) @@ -137,6 +141,9 @@ class FavoritedWorld { @JsonKey(name: r'imageUrl', required: true, includeIfNull: false) final String imageUrl; + @JsonKey(name: r'isHypeTrainEligible', required: false, includeIfNull: false) + final bool? isHypeTrainEligible; + @JsonKey(name: r'labsPublicationDate', required: false, includeIfNull: false) final String? labsPublicationDate; @@ -144,8 +151,8 @@ class FavoritedWorld { final String name; // minimum: 0 - @JsonKey(name: r'occupants', required: true, includeIfNull: false) - final int occupants; + @JsonKey(name: r'occupants', required: false, includeIfNull: false) + final int? occupants; @JsonKey(name: r'organization', required: false, includeIfNull: false) final String? organization; @@ -166,6 +173,9 @@ class FavoritedWorld { @JsonKey(name: r'releaseStatus', required: true, includeIfNull: false) final ReleaseStatus releaseStatus; + @JsonKey(name: r'storeId', required: false, includeIfNull: false) + final String? storeId; + /// @JsonKey(name: r'tags', required: false, includeIfNull: false) final List? tags; @@ -212,6 +222,7 @@ class FavoritedWorld { other.heat == heat && other.id == id && other.imageUrl == imageUrl && + other.isHypeTrainEligible == isHypeTrainEligible && other.labsPublicationDate == labsPublicationDate && other.name == name && other.occupants == occupants && @@ -221,6 +232,7 @@ class FavoritedWorld { other.publicationDate == publicationDate && other.recommendedCapacity == recommendedCapacity && other.releaseStatus == releaseStatus && + other.storeId == storeId && other.tags == tags && other.thumbnailImageUrl == thumbnailImageUrl && other.udonProducts == udonProducts && @@ -246,6 +258,7 @@ class FavoritedWorld { heat.hashCode + id.hashCode + imageUrl.hashCode + + isHypeTrainEligible.hashCode + labsPublicationDate.hashCode + name.hashCode + occupants.hashCode + @@ -255,6 +268,7 @@ class FavoritedWorld { publicationDate.hashCode + recommendedCapacity.hashCode + releaseStatus.hashCode + + storeId.hashCode + tags.hashCode + thumbnailImageUrl.hashCode + udonProducts.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 9f6448e..901260c 100644 --- a/vrchat_dart_generated/lib/src/model/favorited_world.g.dart +++ b/vrchat_dart_generated/lib/src/model/favorited_world.g.dart @@ -16,12 +16,9 @@ FavoritedWorld _$FavoritedWorldFromJson( requiredKeys: const [ 'authorName', 'capacity', - 'favoriteGroup', - 'favoriteId', 'id', 'imageUrl', 'name', - 'occupants', 'releaseStatus', 'thumbnailImageUrl', ], @@ -45,13 +42,17 @@ FavoritedWorld _$FavoritedWorldFromJson( '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), + 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), + isHypeTrainEligible: $checkedConvert( + 'isHypeTrainEligible', + (v) => v as bool?, + ), labsPublicationDate: $checkedConvert( 'labsPublicationDate', (v) => v as String?, @@ -73,6 +74,7 @@ FavoritedWorld _$FavoritedWorldFromJson( '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(), @@ -111,22 +113,24 @@ Map _$FavoritedWorldToJson(FavoritedWorld instance) => 'defaultContentSettings': ?instance.defaultContentSettings?.toJson(), 'description': ?instance.description, 'disabledPropAbilities': ?instance.disabledPropAbilities, - 'favoriteGroup': instance.favoriteGroup, - 'favoriteId': instance.favoriteId, + 'favoriteGroup': ?instance.favoriteGroup, + 'favoriteId': ?instance.favoriteId, 'favorites': ?instance.favorites, 'featured': ?instance.featured, 'heat': ?instance.heat, 'id': instance.id, 'imageUrl': instance.imageUrl, + 'isHypeTrainEligible': ?instance.isHypeTrainEligible, 'labsPublicationDate': ?instance.labsPublicationDate, 'name': instance.name, - 'occupants': instance.occupants, + 'occupants': ?instance.occupants, 'organization': ?instance.organization, 'popularity': ?instance.popularity, 'previewYoutubeId': ?instance.previewYoutubeId, 'publicationDate': ?instance.publicationDate, 'recommendedCapacity': ?instance.recommendedCapacity, 'releaseStatus': _$ReleaseStatusEnumMap[instance.releaseStatus]!, + 'storeId': ?instance.storeId, 'tags': ?instance.tags, 'thumbnailImageUrl': instance.thumbnailImageUrl, 'udonProducts': ?instance.udonProducts, diff --git a/vrchat_dart_generated/lib/src/model/get_group_gallery_images200_response.dart b/vrchat_dart_generated/lib/src/model/get_group_gallery_images200_response.dart new file mode 100644 index 0000000..2ea23ee --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/get_group_gallery_images200_response.dart @@ -0,0 +1,54 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/group_gallery_image.dart'; + +import 'package:json_annotation/json_annotation.dart'; + +part 'get_group_gallery_images200_response.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class GetGroupGalleryImages200Response { + /// Returns a new [GetGroupGalleryImages200Response] instance. + GetGroupGalleryImages200Response({ + required this.results, + + required this.totalCount, + }); + + @JsonKey(name: r'results', required: true, includeIfNull: false) + final List results; + + // minimum: 0 + @JsonKey(name: r'totalCount', required: true, includeIfNull: false) + final int totalCount; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is GetGroupGalleryImages200Response && + other.results == results && + other.totalCount == totalCount; + + @override + int get hashCode => results.hashCode + totalCount.hashCode; + + factory GetGroupGalleryImages200Response.fromJson( + Map json, + ) => _$GetGroupGalleryImages200ResponseFromJson(json); + + Map toJson() => + _$GetGroupGalleryImages200ResponseToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/get_group_gallery_images200_response.g.dart b/vrchat_dart_generated/lib/src/model/get_group_gallery_images200_response.g.dart new file mode 100644 index 0000000..9ec6ea7 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/get_group_gallery_images200_response.g.dart @@ -0,0 +1,33 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'get_group_gallery_images200_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +GetGroupGalleryImages200Response _$GetGroupGalleryImages200ResponseFromJson( + Map json, +) => + $checkedCreate('GetGroupGalleryImages200Response', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['results', 'totalCount']); + final val = GetGroupGalleryImages200Response( + results: $checkedConvert( + 'results', + (v) => (v as List) + .map((e) => GroupGalleryImage.fromJson(e as Map)) + .toList(), + ), + totalCount: $checkedConvert('totalCount', (v) => (v as num).toInt()), + ); + return val; + }); + +Map _$GetGroupGalleryImages200ResponseToJson( + GetGroupGalleryImages200Response instance, +) => { + 'results': instance.results.map((e) => e.toJson()).toList(), + 'totalCount': instance.totalCount, +}; diff --git a/vrchat_dart_generated/lib/src/model/group.dart b/vrchat_dart_generated/lib/src/model/group.dart index e3d8b1d..3938a20 100644 --- a/vrchat_dart_generated/lib/src/model/group.dart +++ b/vrchat_dart_generated/lib/src/model/group.dart @@ -87,6 +87,8 @@ class Group { this.shortCode, + this.storeId, + this.tags, this.transferTargetId, @@ -204,6 +206,9 @@ class Group { @JsonKey(name: r'shortCode', required: false, includeIfNull: false) final String? shortCode; + @JsonKey(name: r'storeId', required: false, includeIfNull: false) + final String? storeId; + @JsonKey(name: r'tags', required: false, includeIfNull: false) final List? tags; @@ -251,6 +256,7 @@ class Group { other.roles == roles && other.rules == rules && other.shortCode == shortCode && + other.storeId == storeId && other.tags == tags && other.transferTargetId == transferTargetId && other.updatedAt == updatedAt; @@ -289,6 +295,7 @@ class Group { (roles == null ? 0 : roles.hashCode) + (rules == null ? 0 : rules.hashCode) + shortCode.hashCode + + storeId.hashCode + tags.hashCode + transferTargetId.hashCode + updatedAt.hashCode; diff --git a/vrchat_dart_generated/lib/src/model/group.g.dart b/vrchat_dart_generated/lib/src/model/group.g.dart index 860c649..6e26e88 100644 --- a/vrchat_dart_generated/lib/src/model/group.g.dart +++ b/vrchat_dart_generated/lib/src/model/group.g.dart @@ -100,6 +100,7 @@ Group _$GroupFromJson( ), rules: $checkedConvert('rules', (v) => v as String?), shortCode: $checkedConvert('shortCode', (v) => v as String?), + storeId: $checkedConvert('storeId', (v) => v as String?), tags: $checkedConvert( 'tags', (v) => (v as List?)?.map((e) => e as String).toList(), @@ -146,6 +147,7 @@ Map _$GroupToJson(Group instance) => { 'roles': ?instance.roles?.map((e) => e.toJson()).toList(), 'rules': ?instance.rules, 'shortCode': ?instance.shortCode, + 'storeId': ?instance.storeId, 'tags': ?instance.tags, 'transferTargetId': ?instance.transferTargetId, 'updatedAt': ?instance.updatedAt?.toIso8601String(), diff --git a/vrchat_dart_generated/lib/src/model/group_gallery_image_list.dart b/vrchat_dart_generated/lib/src/model/group_gallery_image_list.dart new file mode 100644 index 0000000..797c4c5 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/group_gallery_image_list.dart @@ -0,0 +1,48 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/group_gallery_image.dart'; + +import 'package:json_annotation/json_annotation.dart'; + +part 'group_gallery_image_list.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class GroupGalleryImageList { + /// Returns a new [GroupGalleryImageList] instance. + GroupGalleryImageList({required this.results, required this.totalCount}); + + @JsonKey(name: r'results', required: true, includeIfNull: false) + final List results; + + // minimum: 0 + @JsonKey(name: r'totalCount', required: true, includeIfNull: false) + final int totalCount; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is GroupGalleryImageList && + other.results == results && + other.totalCount == totalCount; + + @override + int get hashCode => results.hashCode + totalCount.hashCode; + + factory GroupGalleryImageList.fromJson(Map json) => + _$GroupGalleryImageListFromJson(json); + + Map toJson() => _$GroupGalleryImageListToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/group_gallery_image_list.g.dart b/vrchat_dart_generated/lib/src/model/group_gallery_image_list.g.dart new file mode 100644 index 0000000..51d95bc --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/group_gallery_image_list.g.dart @@ -0,0 +1,32 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'group_gallery_image_list.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +GroupGalleryImageList _$GroupGalleryImageListFromJson( + Map json, +) => $checkedCreate('GroupGalleryImageList', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['results', 'totalCount']); + final val = GroupGalleryImageList( + results: $checkedConvert( + 'results', + (v) => (v as List) + .map((e) => GroupGalleryImage.fromJson(e as Map)) + .toList(), + ), + totalCount: $checkedConvert('totalCount', (v) => (v as num).toInt()), + ); + return val; +}); + +Map _$GroupGalleryImageListToJson( + GroupGalleryImageList instance, +) => { + 'results': instance.results.map((e) => e.toJson()).toList(), + 'totalCount': instance.totalCount, +}; diff --git a/vrchat_dart_generated/lib/src/model/group_member.dart b/vrchat_dart_generated/lib/src/model/group_member.dart index 6995cfe..3ce8e78 100644 --- a/vrchat_dart_generated/lib/src/model/group_member.dart +++ b/vrchat_dart_generated/lib/src/model/group_member.dart @@ -39,15 +39,15 @@ class GroupMember { this.isSubscribedToEventAnnouncements, - required this.joinedAt, + this.joinedAt, - required this.lastPostReadAt, + this.lastPostReadAt, required this.mRoleIds, this.managerNotes, - required this.membershipStatus, + this.membershipStatus, required this.roleIds, @@ -55,7 +55,7 @@ class GroupMember { required this.userId, - required this.visibility, + this.visibility, }); /// Only missing when explicitly fetching own user. @@ -98,10 +98,10 @@ class GroupMember { @JsonKey( name: r'isSubscribedToAnnouncements', - required: true, + required: false, includeIfNull: false, ) - final bool isSubscribedToAnnouncements; + final bool? isSubscribedToAnnouncements; /// Only missing when explicitly fetching own user. @JsonKey( @@ -111,10 +111,10 @@ class GroupMember { ) final bool? isSubscribedToEventAnnouncements; - @JsonKey(name: r'joinedAt', required: true, includeIfNull: true) + @JsonKey(name: r'joinedAt', required: false, includeIfNull: false) final DateTime? joinedAt; - @JsonKey(name: r'lastPostReadAt', required: true, includeIfNull: true) + @JsonKey(name: r'lastPostReadAt', required: false, includeIfNull: false) final DateTime? lastPostReadAt; @JsonKey(name: r'mRoleIds', required: true, includeIfNull: false) @@ -124,8 +124,8 @@ class GroupMember { @JsonKey(name: r'managerNotes', required: false, includeIfNull: false) final String? managerNotes; - @JsonKey(name: r'membershipStatus', required: true, includeIfNull: false) - final GroupMemberStatus membershipStatus; + @JsonKey(name: r'membershipStatus', required: false, includeIfNull: false) + final GroupMemberStatus? membershipStatus; @JsonKey(name: r'roleIds', required: true, includeIfNull: false) final List roleIds; @@ -137,8 +137,8 @@ class GroupMember { @JsonKey(name: r'userId', required: true, includeIfNull: false) final String userId; - @JsonKey(name: r'visibility', required: true, includeIfNull: false) - final String visibility; + @JsonKey(name: r'visibility', required: false, includeIfNull: false) + final String? visibility; @override bool operator ==(Object other) => diff --git a/vrchat_dart_generated/lib/src/model/group_member.g.dart b/vrchat_dart_generated/lib/src/model/group_member.g.dart index 9d1c6b8..c41f21c 100644 --- a/vrchat_dart_generated/lib/src/model/group_member.g.dart +++ b/vrchat_dart_generated/lib/src/model/group_member.g.dart @@ -16,14 +16,9 @@ GroupMember _$GroupMemberFromJson(Map json) => 'groupId', 'id', 'isRepresenting', - 'isSubscribedToAnnouncements', - 'joinedAt', - 'lastPostReadAt', 'mRoleIds', - 'membershipStatus', 'roleIds', 'userId', - 'visibility', ], ); final val = GroupMember( @@ -73,7 +68,7 @@ GroupMember _$GroupMemberFromJson(Map json) => managerNotes: $checkedConvert('managerNotes', (v) => v as String?), membershipStatus: $checkedConvert( 'membershipStatus', - (v) => $enumDecode(_$GroupMemberStatusEnumMap, v), + (v) => $enumDecodeNullable(_$GroupMemberStatusEnumMap, v), ), roleIds: $checkedConvert( 'roleIds', @@ -86,7 +81,7 @@ GroupMember _$GroupMemberFromJson(Map json) => : GroupMemberLimitedUser.fromJson(v as Map), ), userId: $checkedConvert('userId', (v) => v as String), - visibility: $checkedConvert('visibility', (v) => v as String), + visibility: $checkedConvert('visibility', (v) => v as String?), ); return val; }); @@ -102,18 +97,18 @@ Map _$GroupMemberToJson( 'hasJoinedFromPurchase': ?instance.hasJoinedFromPurchase, 'id': instance.id, 'isRepresenting': instance.isRepresenting, - 'isSubscribedToAnnouncements': instance.isSubscribedToAnnouncements, + 'isSubscribedToAnnouncements': ?instance.isSubscribedToAnnouncements, 'isSubscribedToEventAnnouncements': ?instance.isSubscribedToEventAnnouncements, - 'joinedAt': instance.joinedAt?.toIso8601String(), - 'lastPostReadAt': instance.lastPostReadAt?.toIso8601String(), + 'joinedAt': ?instance.joinedAt?.toIso8601String(), + 'lastPostReadAt': ?instance.lastPostReadAt?.toIso8601String(), 'mRoleIds': instance.mRoleIds, 'managerNotes': ?instance.managerNotes, - 'membershipStatus': _$GroupMemberStatusEnumMap[instance.membershipStatus]!, + 'membershipStatus': ?_$GroupMemberStatusEnumMap[instance.membershipStatus], 'roleIds': instance.roleIds, 'user': ?instance.user?.toJson(), 'userId': instance.userId, - 'visibility': instance.visibility, + 'visibility': ?instance.visibility, }; const _$GroupMemberStatusEnumMap = { diff --git a/vrchat_dart_generated/lib/src/model/group_member_limited_user.dart b/vrchat_dart_generated/lib/src/model/group_member_limited_user.dart index 4848611..7ccc802 100644 --- a/vrchat_dart_generated/lib/src/model/group_member_limited_user.dart +++ b/vrchat_dart_generated/lib/src/model/group_member_limited_user.dart @@ -17,34 +17,40 @@ part 'group_member_limited_user.g.dart'; class GroupMemberLimitedUser { /// Returns a new [GroupMemberLimitedUser] instance. GroupMemberLimitedUser({ - this.currentAvatarTags, + this.bannerColor, - this.currentAvatarThumbnailImageUrl, + this.bannerType, + + this.bannerUrl, this.displayName, + this.iconFrame, + this.iconUrl, this.id, - this.profilePicOverride, + this.nameplateEffect, - this.thumbnailUrl, + this.profileEffect, }); - @JsonKey(name: r'currentAvatarTags', required: false, includeIfNull: false) - final List? currentAvatarTags; + @JsonKey(name: r'bannerColor', required: false, includeIfNull: false) + final String? bannerColor; - @JsonKey( - name: r'currentAvatarThumbnailImageUrl', - required: false, - includeIfNull: false, - ) - final String? currentAvatarThumbnailImageUrl; + @JsonKey(name: r'bannerType', required: false, includeIfNull: false) + final String? bannerType; + + @JsonKey(name: r'bannerUrl', required: false, includeIfNull: false) + final String? bannerUrl; @JsonKey(name: r'displayName', required: false, 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; @@ -52,36 +58,37 @@ class GroupMemberLimitedUser { @JsonKey(name: r'id', required: false, includeIfNull: false) final String? id; - @JsonKey(name: r'profilePicOverride', required: false, includeIfNull: false) - final String? profilePicOverride; + @JsonKey(name: r'nameplateEffect', required: false, includeIfNull: false) + final String? nameplateEffect; - @JsonKey(name: r'thumbnailUrl', required: false, includeIfNull: false) - final String? thumbnailUrl; + @JsonKey(name: r'profileEffect', required: false, includeIfNull: false) + final String? profileEffect; @override bool operator ==(Object other) => identical(this, other) || other is GroupMemberLimitedUser && - other.currentAvatarTags == currentAvatarTags && - other.currentAvatarThumbnailImageUrl == - currentAvatarThumbnailImageUrl && + other.bannerColor == bannerColor && + other.bannerType == bannerType && + other.bannerUrl == bannerUrl && other.displayName == displayName && + other.iconFrame == iconFrame && other.iconUrl == iconUrl && other.id == id && - other.profilePicOverride == profilePicOverride && - other.thumbnailUrl == thumbnailUrl; + other.nameplateEffect == nameplateEffect && + other.profileEffect == profileEffect; @override int get hashCode => - currentAvatarTags.hashCode + - (currentAvatarThumbnailImageUrl == null - ? 0 - : currentAvatarThumbnailImageUrl.hashCode) + + bannerColor.hashCode + + bannerType.hashCode + + bannerUrl.hashCode + displayName.hashCode + + iconFrame.hashCode + iconUrl.hashCode + id.hashCode + - profilePicOverride.hashCode + - (thumbnailUrl == null ? 0 : thumbnailUrl.hashCode); + nameplateEffect.hashCode + + profileEffect.hashCode; factory GroupMemberLimitedUser.fromJson(Map json) => _$GroupMemberLimitedUserFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/group_member_limited_user.g.dart b/vrchat_dart_generated/lib/src/model/group_member_limited_user.g.dart index 48a4eb5..53aabb9 100644 --- a/vrchat_dart_generated/lib/src/model/group_member_limited_user.g.dart +++ b/vrchat_dart_generated/lib/src/model/group_member_limited_user.g.dart @@ -12,22 +12,15 @@ GroupMemberLimitedUser _$GroupMemberLimitedUserFromJson( Map json, ) => $checkedCreate('GroupMemberLimitedUser', json, ($checkedConvert) { final val = GroupMemberLimitedUser( - currentAvatarTags: $checkedConvert( - 'currentAvatarTags', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - currentAvatarThumbnailImageUrl: $checkedConvert( - 'currentAvatarThumbnailImageUrl', - (v) => v as String?, - ), + bannerColor: $checkedConvert('bannerColor', (v) => v as String?), + bannerType: $checkedConvert('bannerType', (v) => v as String?), + bannerUrl: $checkedConvert('bannerUrl', (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?), - profilePicOverride: $checkedConvert( - 'profilePicOverride', - (v) => v as String?, - ), - thumbnailUrl: $checkedConvert('thumbnailUrl', (v) => v as String?), + nameplateEffect: $checkedConvert('nameplateEffect', (v) => v as String?), + profileEffect: $checkedConvert('profileEffect', (v) => v as String?), ); return val; }); @@ -35,11 +28,13 @@ GroupMemberLimitedUser _$GroupMemberLimitedUserFromJson( Map _$GroupMemberLimitedUserToJson( GroupMemberLimitedUser instance, ) => { - 'currentAvatarTags': ?instance.currentAvatarTags, - 'currentAvatarThumbnailImageUrl': ?instance.currentAvatarThumbnailImageUrl, + 'bannerColor': ?instance.bannerColor, + 'bannerType': ?instance.bannerType, + 'bannerUrl': ?instance.bannerUrl, 'displayName': ?instance.displayName, + 'iconFrame': ?instance.iconFrame, 'iconUrl': ?instance.iconUrl, 'id': ?instance.id, - 'profilePicOverride': ?instance.profilePicOverride, - 'thumbnailUrl': ?instance.thumbnailUrl, + 'nameplateEffect': ?instance.nameplateEffect, + 'profileEffect': ?instance.profileEffect, }; diff --git a/vrchat_dart_generated/lib/src/model/group_role.dart b/vrchat_dart_generated/lib/src/model/group_role.dart index 70a2f11..fb2f181 100644 --- a/vrchat_dart_generated/lib/src/model/group_role.dart +++ b/vrchat_dart_generated/lib/src/model/group_role.dart @@ -40,6 +40,8 @@ class GroupRole { this.permissions, + this.productId, + this.requiresPurchase = false, this.requiresTwoFactor = false, @@ -80,6 +82,9 @@ class GroupRole { @JsonKey(name: r'permissions', required: false, includeIfNull: false) final List? permissions; + @JsonKey(name: r'productId', required: false, includeIfNull: false) + final String? productId; + @JsonKey(name: r'requiresPurchase', required: false, includeIfNull: false) final bool? requiresPurchase; @@ -104,6 +109,7 @@ class GroupRole { other.name == name && other.order == order && other.permissions == permissions && + other.productId == productId && other.requiresPurchase == requiresPurchase && other.requiresTwoFactor == requiresTwoFactor && other.updatedAt == updatedAt; @@ -121,6 +127,7 @@ class GroupRole { name.hashCode + order.hashCode + permissions.hashCode + + productId.hashCode + requiresPurchase.hashCode + requiresTwoFactor.hashCode + updatedAt.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 3467fe9..472569c 100644 --- a/vrchat_dart_generated/lib/src/model/group_role.g.dart +++ b/vrchat_dart_generated/lib/src/model/group_role.g.dart @@ -39,6 +39,7 @@ GroupRole _$GroupRoleFromJson(Map json) => ?.map((e) => $enumDecode(_$GroupPermissionsEnumMap, e)) .toList(), ), + productId: $checkedConvert('productId', (v) => v as String?), requiresPurchase: $checkedConvert( 'requiresPurchase', (v) => v as bool? ?? false, @@ -69,6 +70,7 @@ Map _$GroupRoleToJson(GroupRole instance) => { 'permissions': ?instance.permissions ?.map((e) => _$GroupPermissionsEnumMap[e]!) .toList(), + 'productId': ?instance.productId, 'requiresPurchase': ?instance.requiresPurchase, 'requiresTwoFactor': ?instance.requiresTwoFactor, '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 bdf2cb2..0e77835 100644 --- a/vrchat_dart_generated/lib/src/model/info_push_data.dart +++ b/vrchat_dart_generated/lib/src/model/info_push_data.dart @@ -48,6 +48,8 @@ class InfoPushData { this.finalName, + this.hoverToJoin, + this.iconImageUrl, this.imageUrl, @@ -123,6 +125,9 @@ class InfoPushData { @JsonKey(name: r'finalName', required: false, includeIfNull: false) final String? finalName; + @JsonKey(name: r'hoverToJoin', required: false, includeIfNull: false) + final bool? hoverToJoin; + @JsonKey(name: r'iconImageUrl', required: false, includeIfNull: false) final String? iconImageUrl; @@ -191,6 +196,7 @@ class InfoPushData { other.domainList == domainList && other.featuredAvatarCategoryId == featuredAvatarCategoryId && other.finalName == finalName && + other.hoverToJoin == hoverToJoin && other.iconImageUrl == iconImageUrl && other.imageUrl == imageUrl && other.ipsQuery == ipsQuery && @@ -223,6 +229,7 @@ class InfoPushData { domainList.hashCode + featuredAvatarCategoryId.hashCode + finalName.hashCode + + hoverToJoin.hashCode + iconImageUrl.hashCode + (imageUrl == null ? 0 : imageUrl.hashCode) + ipsQuery.hashCode + 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 f433d8d..77df804 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 @@ -50,6 +50,7 @@ InfoPushData _$InfoPushDataFromJson( (v) => v as String?, ), finalName: $checkedConvert('finalName', (v) => v as String?), + hoverToJoin: $checkedConvert('hoverToJoin', (v) => v as bool?), iconImageUrl: $checkedConvert('iconImageUrl', (v) => v as String?), imageUrl: $checkedConvert('imageUrl', (v) => v as String?), ipsQuery: $checkedConvert( @@ -109,6 +110,7 @@ Map _$InfoPushDataToJson(InfoPushData instance) => 'domainList': ?instance.domainList?.map((e) => e.toJson()).toList(), 'featuredAvatarCategoryId': ?instance.featuredAvatarCategoryId, 'finalName': ?instance.finalName, + 'hoverToJoin': ?instance.hoverToJoin, 'iconImageUrl': ?instance.iconImageUrl, 'imageUrl': ?instance.imageUrl, 'ipsQuery': ?instance.ipsQuery?.toJson(), 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 19976f5..8bd669a 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 @@ -66,7 +66,11 @@ enum InfoPushDataClickableCommandEnum { @JsonValue(r'OpenVRChatStore') openVRChatStore(r'OpenVRChatStore'), @JsonValue(r'OpenWorldDetails') - openWorldDetails(r'OpenWorldDetails'); + openWorldDetails(r'OpenWorldDetails'), + @JsonValue(r'OpenWorldsMenu') + openWorldsMenu(r'OpenWorldsMenu'), + @JsonValue(r'scrollToShelf') + scrollToShelf(r'scrollToShelf'); 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 5db2c78..6282431 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 @@ -43,4 +43,6 @@ const _$InfoPushDataClickableCommandEnumEnumMap = { InfoPushDataClickableCommandEnum.openVRCPlusMenu: 'OpenVRCPlusMenu', InfoPushDataClickableCommandEnum.openVRChatStore: 'OpenVRChatStore', InfoPushDataClickableCommandEnum.openWorldDetails: 'OpenWorldDetails', + InfoPushDataClickableCommandEnum.openWorldsMenu: 'OpenWorldsMenu', + InfoPushDataClickableCommandEnum.scrollToShelf: 'scrollToShelf', }; diff --git a/vrchat_dart_generated/lib/src/model/inventory_asset.dart b/vrchat_dart_generated/lib/src/model/inventory_asset.dart new file mode 100644 index 0000000..ba0bf9f --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/inventory_asset.dart @@ -0,0 +1,87 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'inventory_asset.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class InventoryAsset { + /// Returns a new [InventoryAsset] instance. + InventoryAsset({ + this.fileId, + + this.frameCount, + + this.framesPerSecond, + + this.loopCount, + + this.totalDurationMs, + + required this.type, + + required this.url, + }); + + @JsonKey(name: r'fileId', required: false, includeIfNull: false) + final String? fileId; + + @JsonKey(name: r'frameCount', required: false, includeIfNull: false) + final int? frameCount; + + @JsonKey(name: r'framesPerSecond', required: false, includeIfNull: false) + final num? framesPerSecond; + + @JsonKey(name: r'loopCount', required: false, includeIfNull: false) + final int? loopCount; + + @JsonKey(name: r'totalDurationMs', required: false, includeIfNull: false) + final int? totalDurationMs; + + @JsonKey(name: r'type', required: true, includeIfNull: false) + final String type; + + @JsonKey(name: r'url', required: true, includeIfNull: false) + final String url; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is InventoryAsset && + other.fileId == fileId && + other.frameCount == frameCount && + other.framesPerSecond == framesPerSecond && + other.loopCount == loopCount && + other.totalDurationMs == totalDurationMs && + other.type == type && + other.url == url; + + @override + int get hashCode => + fileId.hashCode + + frameCount.hashCode + + framesPerSecond.hashCode + + loopCount.hashCode + + totalDurationMs.hashCode + + type.hashCode + + url.hashCode; + + factory InventoryAsset.fromJson(Map json) => + _$InventoryAssetFromJson(json); + + Map toJson() => _$InventoryAssetToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/inventory_asset.g.dart b/vrchat_dart_generated/lib/src/model/inventory_asset.g.dart new file mode 100644 index 0000000..afd78be --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/inventory_asset.g.dart @@ -0,0 +1,38 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'inventory_asset.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +InventoryAsset _$InventoryAssetFromJson(Map json) => + $checkedCreate('InventoryAsset', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['type', 'url']); + final val = InventoryAsset( + fileId: $checkedConvert('fileId', (v) => v as String?), + frameCount: $checkedConvert('frameCount', (v) => (v as num?)?.toInt()), + framesPerSecond: $checkedConvert('framesPerSecond', (v) => v as num?), + loopCount: $checkedConvert('loopCount', (v) => (v as num?)?.toInt()), + totalDurationMs: $checkedConvert( + 'totalDurationMs', + (v) => (v as num?)?.toInt(), + ), + type: $checkedConvert('type', (v) => v as String), + url: $checkedConvert('url', (v) => v as String), + ); + return val; + }); + +Map _$InventoryAssetToJson(InventoryAsset instance) => + { + 'fileId': ?instance.fileId, + 'frameCount': ?instance.frameCount, + 'framesPerSecond': ?instance.framesPerSecond, + 'loopCount': ?instance.loopCount, + 'totalDurationMs': ?instance.totalDurationMs, + 'type': instance.type, + 'url': instance.url, + }; diff --git a/vrchat_dart_generated/lib/src/model/inventory_equip_slot.dart b/vrchat_dart_generated/lib/src/model/inventory_equip_slot.dart index ad37c2e..6f70b9f 100644 --- a/vrchat_dart_generated/lib/src/model/inventory_equip_slot.dart +++ b/vrchat_dart_generated/lib/src/model/inventory_equip_slot.dart @@ -10,8 +10,14 @@ enum InventoryEquipSlot { empty(r''), @JsonValue(r'drone') drone(r'drone'), + @JsonValue(r'iconFrame') + iconFrame(r'iconFrame'), + @JsonValue(r'nameplateEffect') + nameplateEffect(r'nameplateEffect'), @JsonValue(r'portal') portal(r'portal'), + @JsonValue(r'profileEffect') + profileEffect(r'profileEffect'), @JsonValue(r'warp') warp(r'warp'); diff --git a/vrchat_dart_generated/lib/src/model/inventory_flag.dart b/vrchat_dart_generated/lib/src/model/inventory_flag.dart index 8d1f04b..667d31d 100644 --- a/vrchat_dart_generated/lib/src/model/inventory_flag.dart +++ b/vrchat_dart_generated/lib/src/model/inventory_flag.dart @@ -14,6 +14,10 @@ enum InventoryFlag { consumable(r'consumable'), @JsonValue(r'equippable') equippable(r'equippable'), + @JsonValue(r'global') + global(r'global'), + @JsonValue(r'global_visible') + globalVisible(r'global_visible'), @JsonValue(r'instantiatable') instantiatable(r'instantiatable'), @JsonValue(r'trashable') @@ -21,7 +25,9 @@ enum InventoryFlag { @JsonValue(r'ugc') ugc(r'ugc'), @JsonValue(r'unique') - unique(r'unique'); + unique(r'unique'), + @JsonValue(r'vrc_plus_exclusive') + vrcPlusExclusive(r'vrc_plus_exclusive'); const InventoryFlag(this.value); 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 ef6017f..ed2f62f 100644 --- a/vrchat_dart_generated/lib/src/model/inventory_item.g.dart +++ b/vrchat_dart_generated/lib/src/model/inventory_item.g.dart @@ -179,7 +179,10 @@ Map _$InventoryItemToJson(InventoryItem instance) => const _$InventoryEquipSlotEnumMap = { InventoryEquipSlot.empty: '', InventoryEquipSlot.drone: 'drone', + InventoryEquipSlot.iconFrame: 'iconFrame', + InventoryEquipSlot.nameplateEffect: 'nameplateEffect', InventoryEquipSlot.portal: 'portal', + InventoryEquipSlot.profileEffect: 'profileEffect', InventoryEquipSlot.warp: 'warp', }; @@ -187,7 +190,10 @@ const _$InventoryItemTypeEnumMap = { InventoryItemType.bundle: 'bundle', InventoryItemType.droneskin: 'droneskin', InventoryItemType.emoji: 'emoji', + InventoryItemType.iconFrame: 'iconFrame', + InventoryItemType.nameplateEffect: 'nameplateEffect', InventoryItemType.portalskin: 'portalskin', + InventoryItemType.profileEffect: 'profileEffect', InventoryItemType.prop: 'prop', InventoryItemType.sticker: 'sticker', InventoryItemType.warpeffect: 'warpeffect', diff --git a/vrchat_dart_generated/lib/src/model/inventory_item_type.dart b/vrchat_dart_generated/lib/src/model/inventory_item_type.dart index c397ae1..0327923 100644 --- a/vrchat_dart_generated/lib/src/model/inventory_item_type.dart +++ b/vrchat_dart_generated/lib/src/model/inventory_item_type.dart @@ -12,8 +12,14 @@ enum InventoryItemType { droneskin(r'droneskin'), @JsonValue(r'emoji') emoji(r'emoji'), + @JsonValue(r'iconFrame') + iconFrame(r'iconFrame'), + @JsonValue(r'nameplateEffect') + nameplateEffect(r'nameplateEffect'), @JsonValue(r'portalskin') portalskin(r'portalskin'), + @JsonValue(r'profileEffect') + profileEffect(r'profileEffect'), @JsonValue(r'prop') prop(r'prop'), @JsonValue(r'sticker') diff --git a/vrchat_dart_generated/lib/src/model/inventory_metadata.dart b/vrchat_dart_generated/lib/src/model/inventory_metadata.dart index 1802ef7..620c484 100644 --- a/vrchat_dart_generated/lib/src/model/inventory_metadata.dart +++ b/vrchat_dart_generated/lib/src/model/inventory_metadata.dart @@ -3,6 +3,7 @@ // // ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/inventory_asset.dart'; import 'package:json_annotation/json_annotation.dart'; @@ -23,8 +24,14 @@ class InventoryMetadata { this.assetBundleId, + this.assets, + this.fileId, + this.gradientEnd, + + this.gradientStart, + this.imageUrl, this.inventoryItemsToInstantiate, @@ -34,6 +41,8 @@ class InventoryMetadata { this.propId, this.propKind, + + this.viewfinderBundleId, }); @JsonKey(name: r'animated', required: false, includeIfNull: false) @@ -45,9 +54,20 @@ class InventoryMetadata { @JsonKey(name: r'assetBundleId', required: false, includeIfNull: false) final String? assetBundleId; + @JsonKey(name: r'assets', required: false, includeIfNull: false) + final List? assets; + @JsonKey(name: r'fileId', required: false, includeIfNull: false) final String? fileId; + /// Hex colour without a leading `#`. + @JsonKey(name: r'gradientEnd', required: false, includeIfNull: false) + final String? gradientEnd; + + /// Hex colour without a leading `#`. + @JsonKey(name: r'gradientStart', required: false, includeIfNull: false) + final String? gradientStart; + @JsonKey(name: r'imageUrl', required: false, includeIfNull: false) final String? imageUrl; @@ -68,6 +88,9 @@ class InventoryMetadata { @JsonKey(name: r'propKind', required: false, includeIfNull: false) final int? propKind; + @JsonKey(name: r'viewfinderBundleId', required: false, includeIfNull: false) + final String? viewfinderBundleId; + @override bool operator ==(Object other) => identical(this, other) || @@ -75,24 +98,32 @@ class InventoryMetadata { other.animated == animated && other.animationStyle == animationStyle && other.assetBundleId == assetBundleId && + other.assets == assets && other.fileId == fileId && + other.gradientEnd == gradientEnd && + other.gradientStart == gradientStart && other.imageUrl == imageUrl && other.inventoryItemsToInstantiate == inventoryItemsToInstantiate && other.maskTag == maskTag && other.propId == propId && - other.propKind == propKind; + other.propKind == propKind && + other.viewfinderBundleId == viewfinderBundleId; @override int get hashCode => animated.hashCode + animationStyle.hashCode + assetBundleId.hashCode + + assets.hashCode + fileId.hashCode + + gradientEnd.hashCode + + gradientStart.hashCode + imageUrl.hashCode + inventoryItemsToInstantiate.hashCode + maskTag.hashCode + propId.hashCode + - propKind.hashCode; + propKind.hashCode + + viewfinderBundleId.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 66b0978..3c07eff 100644 --- a/vrchat_dart_generated/lib/src/model/inventory_metadata.g.dart +++ b/vrchat_dart_generated/lib/src/model/inventory_metadata.g.dart @@ -14,7 +14,15 @@ InventoryMetadata _$InventoryMetadataFromJson(Map json) => animated: $checkedConvert('animated', (v) => v as bool?), animationStyle: $checkedConvert('animationStyle', (v) => v as String?), assetBundleId: $checkedConvert('assetBundleId', (v) => v as String?), + assets: $checkedConvert( + 'assets', + (v) => (v as List?) + ?.map((e) => InventoryAsset.fromJson(e as Map)) + .toList(), + ), fileId: $checkedConvert('fileId', (v) => v as String?), + gradientEnd: $checkedConvert('gradientEnd', (v) => v as String?), + gradientStart: $checkedConvert('gradientStart', (v) => v as String?), imageUrl: $checkedConvert('imageUrl', (v) => v as String?), inventoryItemsToInstantiate: $checkedConvert( 'inventoryItemsToInstantiate', @@ -23,6 +31,10 @@ 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()), + viewfinderBundleId: $checkedConvert( + 'viewfinderBundleId', + (v) => v as String?, + ), ); return val; }); @@ -32,10 +44,14 @@ Map _$InventoryMetadataToJson(InventoryMetadata instance) => 'animated': ?instance.animated, 'animationStyle': ?instance.animationStyle, 'assetBundleId': ?instance.assetBundleId, + 'assets': ?instance.assets?.map((e) => e.toJson()).toList(), 'fileId': ?instance.fileId, + 'gradientEnd': ?instance.gradientEnd, + 'gradientStart': ?instance.gradientStart, 'imageUrl': ?instance.imageUrl, 'inventoryItemsToInstantiate': ?instance.inventoryItemsToInstantiate, 'maskTag': ?instance.maskTag, 'propId': ?instance.propId, 'propKind': ?instance.propKind, + 'viewfinderBundleId': ?instance.viewfinderBundleId, }; diff --git a/vrchat_dart_generated/lib/src/model/inventory_template.dart b/vrchat_dart_generated/lib/src/model/inventory_template.dart index 8e3b5ac..28ccf09 100644 --- a/vrchat_dart_generated/lib/src/model/inventory_template.dart +++ b/vrchat_dart_generated/lib/src/model/inventory_template.dart @@ -42,6 +42,8 @@ class InventoryTemplate { required this.imageUrl, + this.initialToggleState, + required this.itemType, required this.itemTypeLabel, @@ -52,6 +54,10 @@ class InventoryTemplate { this.notificationDetails, + this.productId, + + this.publishedListings, + this.status, required this.tags, @@ -95,6 +101,9 @@ class InventoryTemplate { @JsonKey(name: r'imageUrl', required: true, includeIfNull: false) final String imageUrl; + @JsonKey(name: r'initialToggleState', required: false, includeIfNull: false) + final bool? initialToggleState; + @JsonKey(name: r'itemType', required: true, includeIfNull: false) final InventoryItemType itemType; @@ -110,6 +119,12 @@ class InventoryTemplate { @JsonKey(name: r'notificationDetails', required: false, includeIfNull: false) final InventoryNotificationDetails? notificationDetails; + @JsonKey(name: r'productId', required: false, includeIfNull: false) + final String? productId; + + @JsonKey(name: r'publishedListings', required: false, includeIfNull: false) + final List? publishedListings; + @JsonKey(name: r'status', required: false, includeIfNull: false) final String? status; @@ -141,11 +156,14 @@ class InventoryTemplate { other.flags == flags && other.id == id && other.imageUrl == imageUrl && + other.initialToggleState == initialToggleState && other.itemType == itemType && other.itemTypeLabel == itemTypeLabel && other.metadata == metadata && other.name == name && other.notificationDetails == notificationDetails && + other.productId == productId && + other.publishedListings == publishedListings && other.status == status && other.tags == tags && other.updatedAt == updatedAt && @@ -164,11 +182,14 @@ class InventoryTemplate { flags.hashCode + id.hashCode + imageUrl.hashCode + + initialToggleState.hashCode + itemType.hashCode + itemTypeLabel.hashCode + metadata.hashCode + name.hashCode + notificationDetails.hashCode + + productId.hashCode + + publishedListings.hashCode + status.hashCode + tags.hashCode + updatedAt.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 10093cd..dab768b 100644 --- a/vrchat_dart_generated/lib/src/model/inventory_template.g.dart +++ b/vrchat_dart_generated/lib/src/model/inventory_template.g.dart @@ -55,6 +55,10 @@ InventoryTemplate _$InventoryTemplateFromJson( ), id: $checkedConvert('id', (v) => v as String), imageUrl: $checkedConvert('imageUrl', (v) => v as String), + initialToggleState: $checkedConvert( + 'initialToggleState', + (v) => v as bool?, + ), itemType: $checkedConvert( 'itemType', (v) => $enumDecode(_$InventoryItemTypeEnumMap, v), @@ -73,6 +77,11 @@ InventoryTemplate _$InventoryTemplateFromJson( ? null : InventoryNotificationDetails.fromJson(v as Map), ), + productId: $checkedConvert('productId', (v) => v as String?), + publishedListings: $checkedConvert( + 'publishedListings', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), status: $checkedConvert('status', (v) => v as String?), tags: $checkedConvert( 'tags', @@ -103,11 +112,14 @@ Map _$InventoryTemplateToJson(InventoryTemplate instance) => 'flags': instance.flags, 'id': instance.id, 'imageUrl': instance.imageUrl, + 'initialToggleState': ?instance.initialToggleState, 'itemType': _$InventoryItemTypeEnumMap[instance.itemType]!, 'itemTypeLabel': instance.itemTypeLabel, 'metadata': ?instance.metadata?.toJson(), 'name': instance.name, 'notificationDetails': ?instance.notificationDetails?.toJson(), + 'productId': ?instance.productId, + 'publishedListings': ?instance.publishedListings, 'status': ?instance.status, 'tags': instance.tags, 'updated_at': instance.updatedAt.toIso8601String(), @@ -118,7 +130,10 @@ const _$InventoryItemTypeEnumMap = { InventoryItemType.bundle: 'bundle', InventoryItemType.droneskin: 'droneskin', InventoryItemType.emoji: 'emoji', + InventoryItemType.iconFrame: 'iconFrame', + InventoryItemType.nameplateEffect: 'nameplateEffect', InventoryItemType.portalskin: 'portalskin', + InventoryItemType.profileEffect: 'profileEffect', InventoryItemType.prop: 'prop', InventoryItemType.sticker: 'sticker', InventoryItemType.warpeffect: 'warpeffect', 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 cfa56b5..3b19b53 100644 --- a/vrchat_dart_generated/lib/src/model/limited_user_friend.dart +++ b/vrchat_dart_generated/lib/src/model/limited_user_friend.dart @@ -23,15 +23,7 @@ class LimitedUserFriend { this.bannerType, - this.bio, - - this.bioLinks, - - this.currentAvatarImageUrl, - - this.currentAvatarTags, - - this.currentAvatarThumbnailImageUrl, + this.bannerUrl, required this.developerType, @@ -47,8 +39,6 @@ class LimitedUserFriend { required this.id, - required this.imageUrl, - required this.isFriend, required this.lastActivity, @@ -67,17 +57,11 @@ class LimitedUserFriend { this.profileEffect, - this.profilePicOverride, - - this.profilePicOverrideThumbnail, - required this.status, required this.statusDescription, required this.tags, - - this.userIcon, }); @JsonKey(name: r'bannerColor', required: false, includeIfNull: false) @@ -86,31 +70,8 @@ class LimitedUserFriend { @JsonKey(name: r'bannerType', required: false, includeIfNull: false) final String? bannerType; - @JsonKey(name: r'bio', required: false, includeIfNull: false) - final String? bio; - - /// - @JsonKey(name: r'bioLinks', required: false, includeIfNull: false) - final List? bioLinks; - - /// When profilePicOverride is not empty, use it instead. - @JsonKey( - name: r'currentAvatarImageUrl', - required: false, - includeIfNull: false, - ) - final String? currentAvatarImageUrl; - - @JsonKey(name: r'currentAvatarTags', required: false, includeIfNull: false) - final List? currentAvatarTags; - - /// When profilePicOverride is not empty, use it instead. - @JsonKey( - name: r'currentAvatarThumbnailImageUrl', - required: false, - includeIfNull: false, - ) - final String? currentAvatarThumbnailImageUrl; + @JsonKey(name: r'bannerUrl', required: false, includeIfNull: false) + final String? bannerUrl; @JsonKey(name: r'developerType', required: true, includeIfNull: false) final DeveloperType developerType; @@ -135,9 +96,6 @@ class LimitedUserFriend { @JsonKey(name: r'id', required: true, includeIfNull: false) final String id; - @JsonKey(name: r'imageUrl', required: true, includeIfNull: false) - final String imageUrl; - @JsonKey(name: r'isFriend', required: true, includeIfNull: false) final bool isFriend; @@ -166,16 +124,6 @@ class LimitedUserFriend { @JsonKey(name: r'profileEffect', required: false, includeIfNull: false) final String? profileEffect; - @JsonKey(name: r'profilePicOverride', required: false, includeIfNull: false) - final String? profilePicOverride; - - @JsonKey( - name: r'profilePicOverrideThumbnail', - required: false, - includeIfNull: false, - ) - final String? profilePicOverrideThumbnail; - @JsonKey(name: r'status', required: true, includeIfNull: false) final UserStatus status; @@ -186,21 +134,13 @@ class LimitedUserFriend { @JsonKey(name: r'tags', required: true, includeIfNull: false) final List tags; - @JsonKey(name: r'userIcon', required: false, includeIfNull: false) - final String? userIcon; - @override 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 && - other.currentAvatarTags == currentAvatarTags && - other.currentAvatarThumbnailImageUrl == - currentAvatarThumbnailImageUrl && + other.bannerUrl == bannerUrl && other.developerType == developerType && other.discordId == discordId && other.displayName == displayName && @@ -208,7 +148,6 @@ class LimitedUserFriend { other.iconFrame == iconFrame && other.iconUrl == iconUrl && other.id == id && - other.imageUrl == imageUrl && other.isFriend == isFriend && other.lastActivity == lastActivity && other.lastLogin == lastLogin && @@ -218,22 +157,15 @@ class LimitedUserFriend { other.nameplateEffect == nameplateEffect && other.platform == platform && other.profileEffect == profileEffect && - other.profilePicOverride == profilePicOverride && - other.profilePicOverrideThumbnail == profilePicOverrideThumbnail && other.status == status && other.statusDescription == statusDescription && - other.tags == tags && - other.userIcon == userIcon; + other.tags == tags; @override int get hashCode => bannerColor.hashCode + bannerType.hashCode + - bio.hashCode + - bioLinks.hashCode + - currentAvatarImageUrl.hashCode + - currentAvatarTags.hashCode + - currentAvatarThumbnailImageUrl.hashCode + + bannerUrl.hashCode + developerType.hashCode + discordId.hashCode + displayName.hashCode + @@ -241,7 +173,6 @@ class LimitedUserFriend { iconFrame.hashCode + iconUrl.hashCode + id.hashCode + - imageUrl.hashCode + isFriend.hashCode + (lastActivity == null ? 0 : lastActivity.hashCode) + (lastLogin == null ? 0 : lastLogin.hashCode) + @@ -251,12 +182,9 @@ class LimitedUserFriend { nameplateEffect.hashCode + platform.hashCode + profileEffect.hashCode + - profilePicOverride.hashCode + - profilePicOverrideThumbnail.hashCode + status.hashCode + statusDescription.hashCode + - tags.hashCode + - userIcon.hashCode; + tags.hashCode; factory LimitedUserFriend.fromJson(Map json) => _$LimitedUserFriendFromJson(json); 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 b1abf26..24e735e 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 @@ -20,7 +20,6 @@ LimitedUserFriend _$LimitedUserFriendFromJson(Map json) => 'displayName', 'friendKey', 'id', - 'imageUrl', 'isFriend', 'last_activity', 'last_login', @@ -36,23 +35,7 @@ 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', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - currentAvatarImageUrl: $checkedConvert( - 'currentAvatarImageUrl', - (v) => v as String?, - ), - currentAvatarTags: $checkedConvert( - 'currentAvatarTags', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - currentAvatarThumbnailImageUrl: $checkedConvert( - 'currentAvatarThumbnailImageUrl', - (v) => v as String?, - ), + bannerUrl: $checkedConvert('bannerUrl', (v) => v as String?), developerType: $checkedConvert( 'developerType', (v) => $enumDecode(_$DeveloperTypeEnumMap, v), @@ -63,7 +46,6 @@ LimitedUserFriend _$LimitedUserFriendFromJson(Map json) => 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), lastActivity: $checkedConvert( 'last_activity', @@ -85,14 +67,6 @@ LimitedUserFriend _$LimitedUserFriendFromJson(Map json) => ), platform: $checkedConvert('platform', (v) => v as String), profileEffect: $checkedConvert('profileEffect', (v) => v as String?), - profilePicOverride: $checkedConvert( - 'profilePicOverride', - (v) => v as String?, - ), - profilePicOverrideThumbnail: $checkedConvert( - 'profilePicOverrideThumbnail', - (v) => v as String?, - ), status: $checkedConvert( 'status', (v) => $enumDecode(_$UserStatusEnumMap, v), @@ -105,7 +79,6 @@ LimitedUserFriend _$LimitedUserFriendFromJson(Map json) => 'tags', (v) => (v as List).map((e) => e as String).toList(), ), - userIcon: $checkedConvert('userIcon', (v) => v as String?), ); return val; }, @@ -117,40 +90,31 @@ 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, - '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, - 'platform': instance.platform, - 'profileEffect': ?instance.profileEffect, - 'profilePicOverride': ?instance.profilePicOverride, - 'profilePicOverrideThumbnail': ?instance.profilePicOverrideThumbnail, - 'status': _$UserStatusEnumMap[instance.status]!, - 'statusDescription': instance.statusDescription, - 'tags': instance.tags, - 'userIcon': ?instance.userIcon, -}; +Map _$LimitedUserFriendToJson(LimitedUserFriend instance) => + { + 'bannerColor': ?instance.bannerColor, + 'bannerType': ?instance.bannerType, + 'bannerUrl': ?instance.bannerUrl, + 'developerType': _$DeveloperTypeEnumMap[instance.developerType]!, + 'discordId': ?instance.discordId, + 'displayName': instance.displayName, + 'friendKey': instance.friendKey, + 'iconFrame': ?instance.iconFrame, + 'iconUrl': ?instance.iconUrl, + 'id': instance.id, + 'isFriend': instance.isFriend, + '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, + 'platform': instance.platform, + 'profileEffect': ?instance.profileEffect, + 'status': _$UserStatusEnumMap[instance.status]!, + 'statusDescription': instance.statusDescription, + 'tags': instance.tags, + }; const _$DeveloperTypeEnumMap = { DeveloperType.internal: 'internal', diff --git a/vrchat_dart_generated/lib/src/model/limited_user_search.dart b/vrchat_dart_generated/lib/src/model/limited_user_search.dart index 9df085a..802fa00 100644 --- a/vrchat_dart_generated/lib/src/model/limited_user_search.dart +++ b/vrchat_dart_generated/lib/src/model/limited_user_search.dart @@ -25,16 +25,6 @@ class LimitedUserSearch { this.bannerUrl, - this.bio, - - this.bioLinks, - - required this.currentAvatarImageUrl, - - required this.currentAvatarTags, - - required this.currentAvatarThumbnailImageUrl, - required this.developerType, required this.displayName, @@ -53,8 +43,6 @@ class LimitedUserSearch { this.profileEffect, - this.profilePicOverride, - this.pronouns, required this.status, @@ -62,8 +50,6 @@ class LimitedUserSearch { required this.statusDescription, required this.tags, - - this.userIcon, }); @JsonKey(name: r'bannerColor', required: false, includeIfNull: false) @@ -75,28 +61,6 @@ class LimitedUserSearch { @JsonKey(name: r'bannerUrl', required: false, includeIfNull: false) final String? bannerUrl; - @JsonKey(name: r'bio', required: false, includeIfNull: false) - final String? bio; - - /// - @JsonKey(name: r'bioLinks', required: false, includeIfNull: false) - final List? bioLinks; - - /// When profilePicOverride is not empty, use it instead. - @JsonKey(name: r'currentAvatarImageUrl', required: true, includeIfNull: false) - final String currentAvatarImageUrl; - - @JsonKey(name: r'currentAvatarTags', required: true, includeIfNull: false) - final List currentAvatarTags; - - /// When profilePicOverride is not empty, use it instead. - @JsonKey( - name: r'currentAvatarThumbnailImageUrl', - required: true, - includeIfNull: false, - ) - final String currentAvatarThumbnailImageUrl; - @JsonKey(name: r'developerType', required: true, includeIfNull: false) final DeveloperType developerType; @@ -126,9 +90,6 @@ class LimitedUserSearch { @JsonKey(name: r'profileEffect', required: false, includeIfNull: false) final String? profileEffect; - @JsonKey(name: r'profilePicOverride', required: false, includeIfNull: false) - final String? profilePicOverride; - @JsonKey(name: r'pronouns', required: false, includeIfNull: false) final String? pronouns; @@ -142,9 +103,6 @@ class LimitedUserSearch { @JsonKey(name: r'tags', required: true, includeIfNull: false) final List tags; - @JsonKey(name: r'userIcon', required: false, includeIfNull: false) - final String? userIcon; - @override bool operator ==(Object other) => identical(this, other) || @@ -152,12 +110,6 @@ class LimitedUserSearch { other.bannerColor == bannerColor && other.bannerType == bannerType && other.bannerUrl == bannerUrl && - other.bio == bio && - other.bioLinks == bioLinks && - other.currentAvatarImageUrl == currentAvatarImageUrl && - other.currentAvatarTags == currentAvatarTags && - other.currentAvatarThumbnailImageUrl == - currentAvatarThumbnailImageUrl && other.developerType == developerType && other.displayName == displayName && other.iconFrame == iconFrame && @@ -167,23 +119,16 @@ class LimitedUserSearch { other.lastPlatform == lastPlatform && other.nameplateEffect == nameplateEffect && other.profileEffect == profileEffect && - other.profilePicOverride == profilePicOverride && other.pronouns == pronouns && other.status == status && other.statusDescription == statusDescription && - other.tags == tags && - other.userIcon == userIcon; + other.tags == tags; @override int get hashCode => bannerColor.hashCode + bannerType.hashCode + bannerUrl.hashCode + - bio.hashCode + - bioLinks.hashCode + - currentAvatarImageUrl.hashCode + - currentAvatarTags.hashCode + - currentAvatarThumbnailImageUrl.hashCode + developerType.hashCode + displayName.hashCode + iconFrame.hashCode + @@ -193,12 +138,10 @@ class LimitedUserSearch { lastPlatform.hashCode + nameplateEffect.hashCode + profileEffect.hashCode + - profilePicOverride.hashCode + pronouns.hashCode + status.hashCode + statusDescription.hashCode + - tags.hashCode + - userIcon.hashCode; + tags.hashCode; factory LimitedUserSearch.fromJson(Map json) => _$LimitedUserSearchFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/limited_user_search.g.dart b/vrchat_dart_generated/lib/src/model/limited_user_search.g.dart index 2f6c619..1d35e3a 100644 --- a/vrchat_dart_generated/lib/src/model/limited_user_search.g.dart +++ b/vrchat_dart_generated/lib/src/model/limited_user_search.g.dart @@ -14,9 +14,6 @@ LimitedUserSearch _$LimitedUserSearchFromJson( $checkKeys( json, requiredKeys: const [ - 'currentAvatarImageUrl', - 'currentAvatarTags', - 'currentAvatarThumbnailImageUrl', 'developerType', 'displayName', 'id', @@ -31,23 +28,6 @@ LimitedUserSearch _$LimitedUserSearchFromJson( 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?), - bioLinks: $checkedConvert( - 'bioLinks', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - currentAvatarImageUrl: $checkedConvert( - 'currentAvatarImageUrl', - (v) => v as String, - ), - currentAvatarTags: $checkedConvert( - 'currentAvatarTags', - (v) => (v as List).map((e) => e as String).toList(), - ), - currentAvatarThumbnailImageUrl: $checkedConvert( - 'currentAvatarThumbnailImageUrl', - (v) => v as String, - ), developerType: $checkedConvert( 'developerType', (v) => $enumDecode(_$DeveloperTypeEnumMap, v), @@ -60,10 +40,6 @@ LimitedUserSearch _$LimitedUserSearchFromJson( lastPlatform: $checkedConvert('last_platform', (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?, - ), pronouns: $checkedConvert('pronouns', (v) => v as String?), status: $checkedConvert( 'status', @@ -74,7 +50,6 @@ LimitedUserSearch _$LimitedUserSearchFromJson( 'tags', (v) => (v as List).map((e) => e as String).toList(), ), - userIcon: $checkedConvert('userIcon', (v) => v as String?), ); return val; }, fieldKeyMap: const {'lastPlatform': 'last_platform'}); @@ -84,11 +59,6 @@ Map _$LimitedUserSearchToJson(LimitedUserSearch instance) => 'bannerColor': ?instance.bannerColor, 'bannerType': ?instance.bannerType, 'bannerUrl': ?instance.bannerUrl, - 'bio': ?instance.bio, - 'bioLinks': ?instance.bioLinks, - 'currentAvatarImageUrl': instance.currentAvatarImageUrl, - 'currentAvatarTags': instance.currentAvatarTags, - 'currentAvatarThumbnailImageUrl': instance.currentAvatarThumbnailImageUrl, 'developerType': _$DeveloperTypeEnumMap[instance.developerType]!, 'displayName': instance.displayName, 'iconFrame': ?instance.iconFrame, @@ -98,12 +68,10 @@ Map _$LimitedUserSearchToJson(LimitedUserSearch instance) => 'last_platform': instance.lastPlatform, 'nameplateEffect': ?instance.nameplateEffect, 'profileEffect': ?instance.profileEffect, - 'profilePicOverride': ?instance.profilePicOverride, 'pronouns': ?instance.pronouns, 'status': _$UserStatusEnumMap[instance.status]!, 'statusDescription': instance.statusDescription, 'tags': instance.tags, - 'userIcon': ?instance.userIcon, }; const _$DeveloperTypeEnumMap = { diff --git a/vrchat_dart_generated/lib/src/model/limited_world.dart b/vrchat_dart_generated/lib/src/model/limited_world.dart index 5f892e5..4c5c97e 100644 --- a/vrchat_dart_generated/lib/src/model/limited_world.dart +++ b/vrchat_dart_generated/lib/src/model/limited_world.dart @@ -40,6 +40,8 @@ class LimitedWorld { required this.imageUrl, + this.isHypeTrainEligible, + required this.labsPublicationDate, required this.name, @@ -48,6 +50,8 @@ class LimitedWorld { this.organization = 'vrchat', + this.pendingUpload, + this.popularity = 0, this.previewYoutubeId, @@ -115,6 +119,9 @@ class LimitedWorld { @JsonKey(name: r'imageUrl', required: true, includeIfNull: false) final String imageUrl; + @JsonKey(name: r'isHypeTrainEligible', required: false, includeIfNull: false) + final bool? isHypeTrainEligible; + @JsonKey(name: r'labsPublicationDate', required: true, includeIfNull: false) final String labsPublicationDate; @@ -128,6 +135,9 @@ class LimitedWorld { @JsonKey(name: r'organization', required: true, includeIfNull: false) final String organization; + @JsonKey(name: r'pendingUpload', required: false, includeIfNull: false) + final bool? pendingUpload; + // minimum: 0 @JsonKey(name: r'popularity', required: true, includeIfNull: false) final int popularity; @@ -182,10 +192,12 @@ class LimitedWorld { other.heat == heat && other.id == id && other.imageUrl == imageUrl && + other.isHypeTrainEligible == isHypeTrainEligible && other.labsPublicationDate == labsPublicationDate && other.name == name && other.occupants == occupants && other.organization == organization && + other.pendingUpload == pendingUpload && other.popularity == popularity && other.previewYoutubeId == previewYoutubeId && other.publicationDate == publicationDate && @@ -211,10 +223,12 @@ class LimitedWorld { heat.hashCode + id.hashCode + imageUrl.hashCode + + isHypeTrainEligible.hashCode + labsPublicationDate.hashCode + name.hashCode + occupants.hashCode + organization.hashCode + + pendingUpload.hashCode + popularity.hashCode + (previewYoutubeId == null ? 0 : previewYoutubeId.hashCode) + publicationDate.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 dd33edc..0342abc 100644 --- a/vrchat_dart_generated/lib/src/model/limited_world.g.dart +++ b/vrchat_dart_generated/lib/src/model/limited_world.g.dart @@ -57,6 +57,10 @@ LimitedWorld _$LimitedWorldFromJson( heat: $checkedConvert('heat', (v) => (v as num?)?.toInt() ?? 0), id: $checkedConvert('id', (v) => v as String), imageUrl: $checkedConvert('imageUrl', (v) => v as String), + isHypeTrainEligible: $checkedConvert( + 'isHypeTrainEligible', + (v) => v as bool?, + ), labsPublicationDate: $checkedConvert( 'labsPublicationDate', (v) => v as String, @@ -67,6 +71,7 @@ LimitedWorld _$LimitedWorldFromJson( 'organization', (v) => v as String? ?? 'vrchat', ), + pendingUpload: $checkedConvert('pendingUpload', (v) => v as bool?), popularity: $checkedConvert('popularity', (v) => (v as num?)?.toInt() ?? 0), previewYoutubeId: $checkedConvert('previewYoutubeId', (v) => v as String?), publicationDate: $checkedConvert('publicationDate', (v) => v as String), @@ -115,10 +120,12 @@ Map _$LimitedWorldToJson(LimitedWorld instance) => 'heat': instance.heat, 'id': instance.id, 'imageUrl': instance.imageUrl, + 'isHypeTrainEligible': ?instance.isHypeTrainEligible, 'labsPublicationDate': instance.labsPublicationDate, 'name': instance.name, 'occupants': instance.occupants, 'organization': instance.organization, + 'pendingUpload': ?instance.pendingUpload, 'popularity': instance.popularity, 'previewYoutubeId': ?instance.previewYoutubeId, 'publicationDate': instance.publicationDate, diff --git a/vrchat_dart_generated/lib/src/model/mutual_friend.dart b/vrchat_dart_generated/lib/src/model/mutual_friend.dart index 213a12b..b376db8 100644 --- a/vrchat_dart_generated/lib/src/model/mutual_friend.dart +++ b/vrchat_dart_generated/lib/src/model/mutual_friend.dart @@ -18,17 +18,11 @@ part 'mutual_friend.g.dart'; class MutualFriend { /// Returns a new [MutualFriend] instance. MutualFriend({ - this.avatarThumbnail, - this.bannerColor, this.bannerType, - required this.currentAvatarImageUrl, - - this.currentAvatarTags, - - this.currentAvatarThumbnailImageUrl, + this.bannerUrl, required this.displayName, @@ -38,23 +32,15 @@ class MutualFriend { required this.id, - required this.imageUrl, - this.nameplateEffect, this.profileEffect, - this.profilePicOverride, - required this.status, required this.statusDescription, }); - /// When profilePicOverride is not empty, use it instead. - @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; @@ -62,20 +48,8 @@ class MutualFriend { @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; - - @JsonKey(name: r'currentAvatarTags', required: false, includeIfNull: false) - final List? currentAvatarTags; - - /// When profilePicOverride is not empty, use it instead. - @JsonKey( - name: r'currentAvatarThumbnailImageUrl', - required: false, - includeIfNull: false, - ) - final String? currentAvatarThumbnailImageUrl; + @JsonKey(name: r'bannerUrl', required: false, includeIfNull: false) + final String? bannerUrl; @JsonKey(name: r'displayName', required: true, includeIfNull: false) final String displayName; @@ -90,18 +64,12 @@ class MutualFriend { @JsonKey(name: r'id', required: true, includeIfNull: false) final String id; - @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; - @JsonKey(name: r'status', required: true, includeIfNull: false) final UserStatus status; @@ -112,40 +80,29 @@ class MutualFriend { bool operator ==(Object other) => 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.bannerUrl == bannerUrl && 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; @override int get hashCode => - avatarThumbnail.hashCode + bannerColor.hashCode + bannerType.hashCode + - currentAvatarImageUrl.hashCode + - currentAvatarTags.hashCode + - currentAvatarThumbnailImageUrl.hashCode + + bannerUrl.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 dd50222..87f9604 100644 --- a/vrchat_dart_generated/lib/src/model/mutual_friend.g.dart +++ b/vrchat_dart_generated/lib/src/model/mutual_friend.g.dart @@ -13,42 +13,18 @@ MutualFriend _$MutualFriendFromJson( ) => $checkedCreate('MutualFriend', json, ($checkedConvert) { $checkKeys( json, - requiredKeys: const [ - 'currentAvatarImageUrl', - 'displayName', - 'id', - 'imageUrl', - 'status', - 'statusDescription', - ], + requiredKeys: const ['displayName', 'id', 'status', 'statusDescription'], ); 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, - ), - currentAvatarTags: $checkedConvert( - 'currentAvatarTags', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - currentAvatarThumbnailImageUrl: $checkedConvert( - 'currentAvatarThumbnailImageUrl', - (v) => v as String?, - ), + bannerUrl: $checkedConvert('bannerUrl', (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?, - ), status: $checkedConvert( 'status', (v) => $enumDecode(_$UserStatusEnumMap, v), @@ -58,26 +34,20 @@ MutualFriend _$MutualFriendFromJson( return val; }); -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, -}; +Map _$MutualFriendToJson(MutualFriend instance) => + { + 'bannerColor': ?instance.bannerColor, + 'bannerType': ?instance.bannerType, + 'bannerUrl': ?instance.bannerUrl, + 'displayName': instance.displayName, + 'iconFrame': ?instance.iconFrame, + 'iconUrl': ?instance.iconUrl, + 'id': instance.id, + 'nameplateEffect': ?instance.nameplateEffect, + 'profileEffect': ?instance.profileEffect, + 'status': _$UserStatusEnumMap[instance.status]!, + 'statusDescription': instance.statusDescription, + }; const _$UserStatusEnumMap = { UserStatus.active: 'active', diff --git a/vrchat_dart_generated/lib/src/model/past_display_name.dart b/vrchat_dart_generated/lib/src/model/past_display_name.dart index 83e9b68..1c48e6e 100644 --- a/vrchat_dart_generated/lib/src/model/past_display_name.dart +++ b/vrchat_dart_generated/lib/src/model/past_display_name.dart @@ -16,11 +16,20 @@ part 'past_display_name.g.dart'; ) class PastDisplayName { /// Returns a new [PastDisplayName] instance. - PastDisplayName({required this.displayName, required this.updatedAt}); + PastDisplayName({ + required this.displayName, + + required this.reverted, + + required this.updatedAt, + }); @JsonKey(name: r'displayName', required: true, includeIfNull: false) final String displayName; + @JsonKey(name: r'reverted', required: true, includeIfNull: false) + final bool reverted; + @JsonKey(name: r'updated_at', required: true, includeIfNull: false) final DateTime updatedAt; @@ -29,10 +38,12 @@ class PastDisplayName { identical(this, other) || other is PastDisplayName && other.displayName == displayName && + other.reverted == reverted && other.updatedAt == updatedAt; @override - int get hashCode => displayName.hashCode + updatedAt.hashCode; + int get hashCode => + displayName.hashCode + reverted.hashCode + updatedAt.hashCode; factory PastDisplayName.fromJson(Map json) => _$PastDisplayNameFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/past_display_name.g.dart b/vrchat_dart_generated/lib/src/model/past_display_name.g.dart index 708ca5e..ca2e1db 100644 --- a/vrchat_dart_generated/lib/src/model/past_display_name.g.dart +++ b/vrchat_dart_generated/lib/src/model/past_display_name.g.dart @@ -10,9 +10,13 @@ part of 'past_display_name.dart'; PastDisplayName _$PastDisplayNameFromJson(Map json) => $checkedCreate('PastDisplayName', json, ($checkedConvert) { - $checkKeys(json, requiredKeys: const ['displayName', 'updated_at']); + $checkKeys( + json, + requiredKeys: const ['displayName', 'reverted', 'updated_at'], + ); final val = PastDisplayName( displayName: $checkedConvert('displayName', (v) => v as String), + reverted: $checkedConvert('reverted', (v) => v as bool), updatedAt: $checkedConvert( 'updated_at', (v) => DateTime.parse(v as String), @@ -24,5 +28,6 @@ PastDisplayName _$PastDisplayNameFromJson(Map json) => Map _$PastDisplayNameToJson(PastDisplayName instance) => { 'displayName': instance.displayName, + 'reverted': instance.reverted, 'updated_at': instance.updatedAt.toIso8601String(), }; diff --git a/vrchat_dart_generated/lib/src/model/product_listing.dart b/vrchat_dart_generated/lib/src/model/product_listing.dart index 147772d..304a47b 100644 --- a/vrchat_dart_generated/lib/src/model/product_listing.dart +++ b/vrchat_dart_generated/lib/src/model/product_listing.dart @@ -90,7 +90,7 @@ class ProductListing { required this.recurrable, - required this.refundable, + this.refundable, required this.sellerDisplayName, @@ -100,7 +100,7 @@ class ProductListing { required this.stackable, - required this.storeIds, + this.storeIds, this.subtitle, @@ -225,8 +225,8 @@ class ProductListing { @JsonKey(name: r'recurrable', required: true, includeIfNull: false) final bool recurrable; - @JsonKey(name: r'refundable', required: true, includeIfNull: false) - final bool refundable; + @JsonKey(name: r'refundable', required: false, includeIfNull: false) + final bool? refundable; @JsonKey(name: r'sellerDisplayName', required: true, includeIfNull: false) final String sellerDisplayName; @@ -240,8 +240,8 @@ class ProductListing { @JsonKey(name: r'stackable', required: true, includeIfNull: false) final bool stackable; - @JsonKey(name: r'storeIds', required: true, includeIfNull: false) - final List storeIds; + @JsonKey(name: r'storeIds', required: false, includeIfNull: false) + final List? storeIds; @JsonKey(name: r'subtitle', required: false, includeIfNull: false) final String? subtitle; 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 f5ec8a6..f73ecaa 100644 --- a/vrchat_dart_generated/lib/src/model/product_listing.g.dart +++ b/vrchat_dart_generated/lib/src/model/product_listing.g.dart @@ -26,11 +26,9 @@ ProductListing _$ProductListingFromJson(Map json) => 'productType', 'products', 'recurrable', - 'refundable', 'sellerDisplayName', 'sellerId', 'stackable', - 'storeIds', ], ); final val = ProductListing( @@ -113,7 +111,7 @@ ProductListing _$ProductListingFromJson(Map json) => ), quantifiable: $checkedConvert('quantifiable', (v) => v as bool?), recurrable: $checkedConvert('recurrable', (v) => v as bool), - refundable: $checkedConvert('refundable', (v) => v as bool), + refundable: $checkedConvert('refundable', (v) => v as bool?), sellerDisplayName: $checkedConvert( 'sellerDisplayName', (v) => v as String, @@ -123,7 +121,7 @@ ProductListing _$ProductListingFromJson(Map json) => stackable: $checkedConvert('stackable', (v) => v as bool), storeIds: $checkedConvert( 'storeIds', - (v) => (v as List).map((e) => e as String).toList(), + (v) => (v as List?)?.map((e) => e as String).toList(), ), subtitle: $checkedConvert('subtitle', (v) => v as String?), tags: $checkedConvert( @@ -185,12 +183,12 @@ Map _$ProductListingToJson( 'purchaseCountQuantity': ?instance.purchaseCountQuantity, 'quantifiable': ?instance.quantifiable, 'recurrable': instance.recurrable, - 'refundable': instance.refundable, + 'refundable': ?instance.refundable, 'sellerDisplayName': instance.sellerDisplayName, 'sellerId': instance.sellerId, 'soldByVrc': ?instance.soldByVrc, 'stackable': instance.stackable, - 'storeIds': instance.storeIds, + 'storeIds': ?instance.storeIds, 'subtitle': ?instance.subtitle, 'tags': ?instance.tags, 'updated': ?instance.updated?.toIso8601String(), diff --git a/vrchat_dart_generated/lib/src/model/product_listing_attribution.dart b/vrchat_dart_generated/lib/src/model/product_listing_attribution.dart index 0c05ea4..01a6902 100644 --- a/vrchat_dart_generated/lib/src/model/product_listing_attribution.dart +++ b/vrchat_dart_generated/lib/src/model/product_listing_attribution.dart @@ -17,7 +17,16 @@ part 'product_listing_attribution.g.dart'; ) class ProductListingAttribution { /// Returns a new [ProductListingAttribution] instance. - ProductListingAttribution({this.creator, this.publisher}); + ProductListingAttribution({ + this.collaborationId, + + this.creator, + + this.publisher, + }); + + @JsonKey(name: r'collaborationId', required: false, includeIfNull: false) + final String? collaborationId; @JsonKey(name: r'creator', required: false, includeIfNull: false) final ProductListingAttributionCreator? creator; @@ -29,11 +38,13 @@ class ProductListingAttribution { bool operator ==(Object other) => identical(this, other) || other is ProductListingAttribution && + other.collaborationId == collaborationId && other.creator == creator && other.publisher == publisher; @override - int get hashCode => creator.hashCode + publisher.hashCode; + int get hashCode => + collaborationId.hashCode + creator.hashCode + publisher.hashCode; factory ProductListingAttribution.fromJson(Map json) => _$ProductListingAttributionFromJson(json); 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 index ee0c244..a6b050b 100644 --- a/vrchat_dart_generated/lib/src/model/product_listing_attribution.g.dart +++ b/vrchat_dart_generated/lib/src/model/product_listing_attribution.g.dart @@ -12,6 +12,7 @@ ProductListingAttribution _$ProductListingAttributionFromJson( Map json, ) => $checkedCreate('ProductListingAttribution', json, ($checkedConvert) { final val = ProductListingAttribution( + collaborationId: $checkedConvert('collaborationId', (v) => v as String?), creator: $checkedConvert( 'creator', (v) => v == null @@ -35,6 +36,7 @@ ProductListingAttribution _$ProductListingAttributionFromJson( Map _$ProductListingAttributionToJson( ProductListingAttribution instance, ) => { + 'collaborationId': ?instance.collaborationId, 'creator': ?instance.creator?.toJson(), 'publisher': ?instance.publisher?.toJson(), }; diff --git a/vrchat_dart_generated/lib/src/model/profile_group.dart b/vrchat_dart_generated/lib/src/model/profile_group.dart new file mode 100644 index 0000000..28f95c8 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/profile_group.dart @@ -0,0 +1,50 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'profile_group.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class ProfileGroup { + /// Returns a new [ProfileGroup] instance. + ProfileGroup({this.iconUrl, this.id, this.name}); + + @JsonKey(name: r'iconUrl', required: false, includeIfNull: false) + final String? iconUrl; + + @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 ProfileGroup && + other.iconUrl == iconUrl && + other.id == id && + other.name == name; + + @override + int get hashCode => iconUrl.hashCode + id.hashCode + name.hashCode; + + factory ProfileGroup.fromJson(Map json) => + _$ProfileGroupFromJson(json); + + Map toJson() => _$ProfileGroupToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/profile_group.g.dart b/vrchat_dart_generated/lib/src/model/profile_group.g.dart new file mode 100644 index 0000000..089c7ee --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/profile_group.g.dart @@ -0,0 +1,26 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'profile_group.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ProfileGroup _$ProfileGroupFromJson(Map json) => + $checkedCreate('ProfileGroup', json, ($checkedConvert) { + final val = ProfileGroup( + iconUrl: $checkedConvert('iconUrl', (v) => v as String?), + id: $checkedConvert('id', (v) => v as String?), + name: $checkedConvert('name', (v) => v as String?), + ); + return val; + }); + +Map _$ProfileGroupToJson(ProfileGroup instance) => + { + 'iconUrl': ?instance.iconUrl, + 'id': ?instance.id, + 'name': ?instance.name, + }; diff --git a/vrchat_dart_generated/lib/src/model/profile_groups.dart b/vrchat_dart_generated/lib/src/model/profile_groups.dart new file mode 100644 index 0000000..1736c38 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/profile_groups.dart @@ -0,0 +1,45 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/profile_group.dart'; + +import 'package:json_annotation/json_annotation.dart'; + +part 'profile_groups.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class ProfileGroups { + /// Returns a new [ProfileGroups] instance. + ProfileGroups({this.count, this.list}); + + @JsonKey(name: r'count', required: false, includeIfNull: false) + final int? count; + + @JsonKey(name: r'list', required: false, includeIfNull: false) + final List? list; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is ProfileGroups && other.count == count && other.list == list; + + @override + int get hashCode => count.hashCode + list.hashCode; + + factory ProfileGroups.fromJson(Map json) => + _$ProfileGroupsFromJson(json); + + Map toJson() => _$ProfileGroupsToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/profile_groups.g.dart b/vrchat_dart_generated/lib/src/model/profile_groups.g.dart new file mode 100644 index 0000000..99d0321 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/profile_groups.g.dart @@ -0,0 +1,29 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'profile_groups.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ProfileGroups _$ProfileGroupsFromJson(Map json) => + $checkedCreate('ProfileGroups', json, ($checkedConvert) { + final val = ProfileGroups( + count: $checkedConvert('count', (v) => (v as num?)?.toInt()), + list: $checkedConvert( + 'list', + (v) => (v as List?) + ?.map((e) => ProfileGroup.fromJson(e as Map)) + .toList(), + ), + ); + return val; + }); + +Map _$ProfileGroupsToJson(ProfileGroups instance) => + { + 'count': ?instance.count, + 'list': ?instance.list?.map((e) => e.toJson()).toList(), + }; diff --git a/vrchat_dart_generated/lib/src/model/public_profile.dart b/vrchat_dart_generated/lib/src/model/public_profile.dart index ebfd351..5e47b9a 100644 --- a/vrchat_dart_generated/lib/src/model/public_profile.dart +++ b/vrchat_dart_generated/lib/src/model/public_profile.dart @@ -3,7 +3,11 @@ // // ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/limited_world.dart'; import 'package:vrchat_dart_generated/src/model/profile_represented_group.dart'; +import 'package:vrchat_dart_generated/src/model/world_favorite_list.dart'; +import 'package:vrchat_dart_generated/src/model/user_status.dart'; +import 'package:vrchat_dart_generated/src/model/profile_groups.dart'; import 'package:vrchat_dart_generated/src/model/badge.dart'; import 'package:vrchat_dart_generated/src/model/age_verification_status.dart'; @@ -24,24 +28,52 @@ class PublicProfile { this.ageVerified, + this.backgroundGradientBottom, + + this.backgroundGradientTop, + + this.backgroundTemplateId, + + this.backgroundTextureId, + this.backgroundType, this.badges, this.bannerColor, + this.bannerCustomUrl, + this.bannerType, + this.bannerUrl, + this.bio, this.bioLinks, + this.currentAvatar, + + this.currentAvatarAuthorName, + + this.currentAvatarImageUrl, + + this.currentAvatarName, + + this.currentAvatarTags, + + this.currentAvatarThumbnailImageUrl, + this.displayName, + this.groups, + this.hasVrcPlus, this.iconFrame, + this.iconType, + this.iconUrl, this.id, @@ -56,11 +88,31 @@ class PublicProfile { this.pronouns, + this.publicWorlds, + this.representedGroup, + this.status, + + this.statusDescription, + + this.themeButtonColor, + + this.themeIconColor, + this.themeId, + this.themeSubtextColor, + + this.themes, + + this.totalPublicWorldsCount, + this.trustTags, + + this.userIcon, + + this.worldFavoriteLists, }); @JsonKey( @@ -74,6 +126,28 @@ class PublicProfile { @JsonKey(name: r'ageVerified', required: false, includeIfNull: false) final bool? ageVerified; + /// Hex colour without a leading `#`. + @JsonKey( + name: r'backgroundGradientBottom', + required: false, + includeIfNull: false, + ) + final String? backgroundGradientBottom; + + /// Hex colour without a leading `#`. + @JsonKey( + name: r'backgroundGradientTop', + required: false, + includeIfNull: false, + ) + final String? backgroundGradientTop; + + @JsonKey(name: r'backgroundTemplateId', required: false, includeIfNull: false) + final String? backgroundTemplateId; + + @JsonKey(name: r'backgroundTextureId', required: false, includeIfNull: false) + final String? backgroundTextureId; + @JsonKey(name: r'backgroundType', required: false, includeIfNull: false) final String? backgroundType; @@ -83,24 +157,68 @@ class PublicProfile { @JsonKey(name: r'bannerColor', required: false, includeIfNull: false) final String? bannerColor; + @JsonKey(name: r'bannerCustomUrl', required: false, includeIfNull: false) + final String? bannerCustomUrl; + @JsonKey(name: r'bannerType', required: false, includeIfNull: false) final String? bannerType; + @JsonKey(name: r'bannerUrl', required: false, includeIfNull: false) + final String? bannerUrl; + @JsonKey(name: r'bio', required: false, includeIfNull: false) final String? bio; @JsonKey(name: r'bioLinks', required: false, includeIfNull: false) final List? bioLinks; + @JsonKey(name: r'currentAvatar', required: false, includeIfNull: false) + final String? currentAvatar; + + @JsonKey( + name: r'currentAvatarAuthorName', + required: false, + includeIfNull: false, + ) + final String? currentAvatarAuthorName; + + /// When profilePicOverride is not empty, use it instead. + @JsonKey( + name: r'currentAvatarImageUrl', + required: false, + includeIfNull: false, + ) + final String? currentAvatarImageUrl; + + @JsonKey(name: r'currentAvatarName', required: false, includeIfNull: false) + final String? currentAvatarName; + + @JsonKey(name: r'currentAvatarTags', required: false, includeIfNull: false) + final List? currentAvatarTags; + + /// When profilePicOverride is not empty, use it instead. + @JsonKey( + name: r'currentAvatarThumbnailImageUrl', + required: false, + includeIfNull: false, + ) + final String? currentAvatarThumbnailImageUrl; + @JsonKey(name: r'displayName', required: false, includeIfNull: false) final String? displayName; + @JsonKey(name: r'groups', required: false, includeIfNull: false) + final ProfileGroups? groups; + @JsonKey(name: r'hasVrcPlus', required: false, includeIfNull: false) final bool? hasVrcPlus; @JsonKey(name: r'iconFrame', required: false, includeIfNull: false) final String? iconFrame; + @JsonKey(name: r'iconType', required: false, includeIfNull: false) + final String? iconType; + @JsonKey(name: r'iconUrl', required: false, includeIfNull: false) final String? iconUrl; @@ -123,30 +241,83 @@ class PublicProfile { @JsonKey(name: r'pronouns', required: false, includeIfNull: false) final String? pronouns; + @JsonKey(name: r'publicWorlds', required: false, includeIfNull: false) + final List? publicWorlds; + @JsonKey(name: r'representedGroup', required: false, includeIfNull: false) final ProfileRepresentedGroup? representedGroup; + @JsonKey(name: r'status', required: false, includeIfNull: false) + final UserStatus? status; + + @JsonKey(name: r'statusDescription', required: false, includeIfNull: false) + final String? statusDescription; + + /// Hex colour without a leading `#`. + @JsonKey(name: r'themeButtonColor', required: false, includeIfNull: false) + final String? themeButtonColor; + + /// Hex colour without a leading `#`. + @JsonKey(name: r'themeIconColor', required: false, includeIfNull: false) + final String? themeIconColor; + @JsonKey(name: r'themeId', required: false, includeIfNull: false) final String? themeId; + /// Hex colour without a leading `#`. + @JsonKey(name: r'themeSubtextColor', required: false, includeIfNull: false) + final String? themeSubtextColor; + + @JsonKey(name: r'themes', required: false, includeIfNull: false) + final List? themes; + + @JsonKey( + name: r'totalPublicWorldsCount', + required: false, + includeIfNull: false, + ) + final int? totalPublicWorldsCount; + @JsonKey(name: r'trustTags', required: false, includeIfNull: false) final List? trustTags; + @JsonKey(name: r'userIcon', required: false, includeIfNull: false) + final String? userIcon; + + /// The owner's public world favorite groups. + @JsonKey(name: r'worldFavoriteLists', required: false, includeIfNull: false) + final List? worldFavoriteLists; + @override bool operator ==(Object other) => identical(this, other) || other is PublicProfile && other.ageVerificationStatus == ageVerificationStatus && other.ageVerified == ageVerified && + other.backgroundGradientBottom == backgroundGradientBottom && + other.backgroundGradientTop == backgroundGradientTop && + other.backgroundTemplateId == backgroundTemplateId && + other.backgroundTextureId == backgroundTextureId && other.backgroundType == backgroundType && other.badges == badges && other.bannerColor == bannerColor && + other.bannerCustomUrl == bannerCustomUrl && other.bannerType == bannerType && + other.bannerUrl == bannerUrl && other.bio == bio && other.bioLinks == bioLinks && + other.currentAvatar == currentAvatar && + other.currentAvatarAuthorName == currentAvatarAuthorName && + other.currentAvatarImageUrl == currentAvatarImageUrl && + other.currentAvatarName == currentAvatarName && + other.currentAvatarTags == currentAvatarTags && + other.currentAvatarThumbnailImageUrl == + currentAvatarThumbnailImageUrl && other.displayName == displayName && + other.groups == groups && other.hasVrcPlus == hasVrcPlus && other.iconFrame == iconFrame && + other.iconType == iconType && other.iconUrl == iconUrl && other.id == id && other.isEconomyCreator == isEconomyCreator && @@ -154,23 +325,47 @@ class PublicProfile { other.nameplateEffect == nameplateEffect && other.profileEffect == profileEffect && other.pronouns == pronouns && + other.publicWorlds == publicWorlds && other.representedGroup == representedGroup && + other.status == status && + other.statusDescription == statusDescription && + other.themeButtonColor == themeButtonColor && + other.themeIconColor == themeIconColor && other.themeId == themeId && - other.trustTags == trustTags; + other.themeSubtextColor == themeSubtextColor && + other.themes == themes && + other.totalPublicWorldsCount == totalPublicWorldsCount && + other.trustTags == trustTags && + other.userIcon == userIcon && + other.worldFavoriteLists == worldFavoriteLists; @override int get hashCode => ageVerificationStatus.hashCode + ageVerified.hashCode + + backgroundGradientBottom.hashCode + + backgroundGradientTop.hashCode + + backgroundTemplateId.hashCode + + backgroundTextureId.hashCode + backgroundType.hashCode + badges.hashCode + bannerColor.hashCode + + bannerCustomUrl.hashCode + bannerType.hashCode + + bannerUrl.hashCode + bio.hashCode + bioLinks.hashCode + + currentAvatar.hashCode + + currentAvatarAuthorName.hashCode + + currentAvatarImageUrl.hashCode + + currentAvatarName.hashCode + + currentAvatarTags.hashCode + + currentAvatarThumbnailImageUrl.hashCode + displayName.hashCode + + groups.hashCode + hasVrcPlus.hashCode + iconFrame.hashCode + + iconType.hashCode + iconUrl.hashCode + id.hashCode + isEconomyCreator.hashCode + @@ -178,9 +373,19 @@ class PublicProfile { nameplateEffect.hashCode + profileEffect.hashCode + pronouns.hashCode + + publicWorlds.hashCode + representedGroup.hashCode + + status.hashCode + + statusDescription.hashCode + + themeButtonColor.hashCode + + themeIconColor.hashCode + themeId.hashCode + - trustTags.hashCode; + themeSubtextColor.hashCode + + themes.hashCode + + totalPublicWorldsCount.hashCode + + trustTags.hashCode + + userIcon.hashCode + + worldFavoriteLists.hashCode; factory PublicProfile.fromJson(Map json) => _$PublicProfileFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/public_profile.g.dart b/vrchat_dart_generated/lib/src/model/public_profile.g.dart index ccd8fbf..c285f50 100644 --- a/vrchat_dart_generated/lib/src/model/public_profile.g.dart +++ b/vrchat_dart_generated/lib/src/model/public_profile.g.dart @@ -17,6 +17,22 @@ PublicProfile _$PublicProfileFromJson( (v) => $enumDecodeNullable(_$AgeVerificationStatusEnumMap, v), ), ageVerified: $checkedConvert('ageVerified', (v) => v as bool?), + backgroundGradientBottom: $checkedConvert( + 'backgroundGradientBottom', + (v) => v as String?, + ), + backgroundGradientTop: $checkedConvert( + 'backgroundGradientTop', + (v) => v as String?, + ), + backgroundTemplateId: $checkedConvert( + 'backgroundTemplateId', + (v) => v as String?, + ), + backgroundTextureId: $checkedConvert( + 'backgroundTextureId', + (v) => v as String?, + ), backgroundType: $checkedConvert('backgroundType', (v) => v as String?), badges: $checkedConvert( 'badges', @@ -25,15 +41,44 @@ PublicProfile _$PublicProfileFromJson( .toList(), ), bannerColor: $checkedConvert('bannerColor', (v) => v as String?), + bannerCustomUrl: $checkedConvert('bannerCustomUrl', (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?), bioLinks: $checkedConvert( 'bioLinks', (v) => (v as List?)?.map((e) => e as String).toList(), ), + currentAvatar: $checkedConvert('currentAvatar', (v) => v as String?), + currentAvatarAuthorName: $checkedConvert( + 'currentAvatarAuthorName', + (v) => v as String?, + ), + currentAvatarImageUrl: $checkedConvert( + 'currentAvatarImageUrl', + (v) => v as String?, + ), + currentAvatarName: $checkedConvert( + 'currentAvatarName', + (v) => v as String?, + ), + currentAvatarTags: $checkedConvert( + 'currentAvatarTags', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + currentAvatarThumbnailImageUrl: $checkedConvert( + 'currentAvatarThumbnailImageUrl', + (v) => v as String?, + ), displayName: $checkedConvert('displayName', (v) => v as String?), + groups: $checkedConvert( + 'groups', + (v) => + v == null ? null : ProfileGroups.fromJson(v as Map), + ), hasVrcPlus: $checkedConvert('hasVrcPlus', (v) => v as bool?), iconFrame: $checkedConvert('iconFrame', (v) => v as String?), + iconType: $checkedConvert('iconType', (v) => v as String?), iconUrl: $checkedConvert('iconUrl', (v) => v as String?), id: $checkedConvert('id', (v) => v as String?), isEconomyCreator: $checkedConvert('isEconomyCreator', (v) => v as bool?), @@ -44,49 +89,119 @@ PublicProfile _$PublicProfileFromJson( nameplateEffect: $checkedConvert('nameplateEffect', (v) => v as String?), profileEffect: $checkedConvert('profileEffect', (v) => v as String?), pronouns: $checkedConvert('pronouns', (v) => v as String?), + publicWorlds: $checkedConvert( + 'publicWorlds', + (v) => (v as List?) + ?.map((e) => LimitedWorld.fromJson(e as Map)) + .toList(), + ), representedGroup: $checkedConvert( 'representedGroup', (v) => v == null ? null : ProfileRepresentedGroup.fromJson(v as Map), ), + status: $checkedConvert( + 'status', + (v) => $enumDecodeNullable(_$UserStatusEnumMap, v), + ), + statusDescription: $checkedConvert( + 'statusDescription', + (v) => v as String?, + ), + themeButtonColor: $checkedConvert('themeButtonColor', (v) => v as String?), + themeIconColor: $checkedConvert('themeIconColor', (v) => v as String?), themeId: $checkedConvert('themeId', (v) => v as String?), + themeSubtextColor: $checkedConvert( + 'themeSubtextColor', + (v) => v as String?, + ), + themes: $checkedConvert( + 'themes', + (v) => (v as List?)?.map((e) => e as Object).toList(), + ), + totalPublicWorldsCount: $checkedConvert( + 'totalPublicWorldsCount', + (v) => (v as num?)?.toInt(), + ), trustTags: $checkedConvert( 'trustTags', (v) => (v as List?)?.map((e) => e as String).toList(), ), + userIcon: $checkedConvert('userIcon', (v) => v as String?), + worldFavoriteLists: $checkedConvert( + 'worldFavoriteLists', + (v) => (v as List?) + ?.map((e) => WorldFavoriteList.fromJson(e as Map)) + .toList(), + ), ); return val; }); -Map _$PublicProfileToJson(PublicProfile instance) => - { - 'ageVerificationStatus': - ?_$AgeVerificationStatusEnumMap[instance.ageVerificationStatus], - 'ageVerified': ?instance.ageVerified, - 'backgroundType': ?instance.backgroundType, - 'badges': ?instance.badges?.map((e) => e.toJson()).toList(), - 'bannerColor': ?instance.bannerColor, - 'bannerType': ?instance.bannerType, - 'bio': ?instance.bio, - 'bioLinks': ?instance.bioLinks, - 'displayName': ?instance.displayName, - 'hasVrcPlus': ?instance.hasVrcPlus, - 'iconFrame': ?instance.iconFrame, - 'iconUrl': ?instance.iconUrl, - 'id': ?instance.id, - 'isEconomyCreator': ?instance.isEconomyCreator, - 'languages': ?instance.languages, - 'nameplateEffect': ?instance.nameplateEffect, - 'profileEffect': ?instance.profileEffect, - 'pronouns': ?instance.pronouns, - 'representedGroup': ?instance.representedGroup?.toJson(), - 'themeId': ?instance.themeId, - 'trustTags': ?instance.trustTags, - }; +Map _$PublicProfileToJson( + PublicProfile instance, +) => { + 'ageVerificationStatus': + ?_$AgeVerificationStatusEnumMap[instance.ageVerificationStatus], + 'ageVerified': ?instance.ageVerified, + 'backgroundGradientBottom': ?instance.backgroundGradientBottom, + 'backgroundGradientTop': ?instance.backgroundGradientTop, + 'backgroundTemplateId': ?instance.backgroundTemplateId, + 'backgroundTextureId': ?instance.backgroundTextureId, + 'backgroundType': ?instance.backgroundType, + 'badges': ?instance.badges?.map((e) => e.toJson()).toList(), + 'bannerColor': ?instance.bannerColor, + 'bannerCustomUrl': ?instance.bannerCustomUrl, + 'bannerType': ?instance.bannerType, + 'bannerUrl': ?instance.bannerUrl, + 'bio': ?instance.bio, + 'bioLinks': ?instance.bioLinks, + 'currentAvatar': ?instance.currentAvatar, + 'currentAvatarAuthorName': ?instance.currentAvatarAuthorName, + 'currentAvatarImageUrl': ?instance.currentAvatarImageUrl, + 'currentAvatarName': ?instance.currentAvatarName, + 'currentAvatarTags': ?instance.currentAvatarTags, + 'currentAvatarThumbnailImageUrl': ?instance.currentAvatarThumbnailImageUrl, + 'displayName': ?instance.displayName, + 'groups': ?instance.groups?.toJson(), + 'hasVrcPlus': ?instance.hasVrcPlus, + 'iconFrame': ?instance.iconFrame, + 'iconType': ?instance.iconType, + 'iconUrl': ?instance.iconUrl, + 'id': ?instance.id, + 'isEconomyCreator': ?instance.isEconomyCreator, + 'languages': ?instance.languages, + 'nameplateEffect': ?instance.nameplateEffect, + 'profileEffect': ?instance.profileEffect, + 'pronouns': ?instance.pronouns, + 'publicWorlds': ?instance.publicWorlds?.map((e) => e.toJson()).toList(), + 'representedGroup': ?instance.representedGroup?.toJson(), + 'status': ?_$UserStatusEnumMap[instance.status], + 'statusDescription': ?instance.statusDescription, + 'themeButtonColor': ?instance.themeButtonColor, + 'themeIconColor': ?instance.themeIconColor, + 'themeId': ?instance.themeId, + 'themeSubtextColor': ?instance.themeSubtextColor, + 'themes': ?instance.themes, + 'totalPublicWorldsCount': ?instance.totalPublicWorldsCount, + 'trustTags': ?instance.trustTags, + 'userIcon': ?instance.userIcon, + 'worldFavoriteLists': ?instance.worldFavoriteLists + ?.map((e) => e.toJson()) + .toList(), +}; const _$AgeVerificationStatusEnumMap = { AgeVerificationStatus.plus18: '18+', AgeVerificationStatus.hidden: 'hidden', AgeVerificationStatus.verified: 'verified', }; + +const _$UserStatusEnumMap = { + UserStatus.active: 'active', + UserStatus.askMe: 'ask me', + UserStatus.busy: 'busy', + UserStatus.joinMe: 'join me', + UserStatus.offline: 'offline', +}; diff --git a/vrchat_dart_generated/lib/src/model/store_shelf.dart b/vrchat_dart_generated/lib/src/model/store_shelf.dart index 314a651..5f82645 100644 --- a/vrchat_dart_generated/lib/src/model/store_shelf.dart +++ b/vrchat_dart_generated/lib/src/model/store_shelf.dart @@ -30,12 +30,20 @@ class StoreShelf { this.shelfBackgroundImageId, + this.shelfClientBannerImageId, + required this.shelfDescription, this.shelfIconImageId, required this.shelfLayout, + this.shelfMobileHeroBannerImageId, + + this.shelfMobileLogoImageId, + + this.shelfMobileSecondaryBannerImageId, + this.shelfTabBackgroundImageId, required this.shelfTitle, @@ -65,6 +73,13 @@ class StoreShelf { ) final String? shelfBackgroundImageId; + @JsonKey( + name: r'shelfClientBannerImageId', + required: false, + includeIfNull: false, + ) + final String? shelfClientBannerImageId; + @JsonKey(name: r'shelfDescription', required: true, includeIfNull: false) final String shelfDescription; @@ -74,6 +89,27 @@ class StoreShelf { @JsonKey(name: r'shelfLayout', required: true, includeIfNull: false) final String shelfLayout; + @JsonKey( + name: r'shelfMobileHeroBannerImageId', + required: false, + includeIfNull: false, + ) + final String? shelfMobileHeroBannerImageId; + + @JsonKey( + name: r'shelfMobileLogoImageId', + required: false, + includeIfNull: false, + ) + final String? shelfMobileLogoImageId; + + @JsonKey( + name: r'shelfMobileSecondaryBannerImageId', + required: false, + includeIfNull: false, + ) + final String? shelfMobileSecondaryBannerImageId; + @JsonKey( name: r'shelfTabBackgroundImageId', required: false, @@ -97,9 +133,14 @@ class StoreShelf { other.listingIds == listingIds && other.listings == listings && other.shelfBackgroundImageId == shelfBackgroundImageId && + other.shelfClientBannerImageId == shelfClientBannerImageId && other.shelfDescription == shelfDescription && other.shelfIconImageId == shelfIconImageId && other.shelfLayout == shelfLayout && + other.shelfMobileHeroBannerImageId == shelfMobileHeroBannerImageId && + other.shelfMobileLogoImageId == shelfMobileLogoImageId && + other.shelfMobileSecondaryBannerImageId == + shelfMobileSecondaryBannerImageId && other.shelfTabBackgroundImageId == shelfTabBackgroundImageId && other.shelfTitle == shelfTitle && other.updatedAt == updatedAt; @@ -112,9 +153,13 @@ class StoreShelf { listingIds.hashCode + listings.hashCode + shelfBackgroundImageId.hashCode + + shelfClientBannerImageId.hashCode + shelfDescription.hashCode + shelfIconImageId.hashCode + shelfLayout.hashCode + + shelfMobileHeroBannerImageId.hashCode + + shelfMobileLogoImageId.hashCode + + shelfMobileSecondaryBannerImageId.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 3895848..4318143 100644 --- a/vrchat_dart_generated/lib/src/model/store_shelf.g.dart +++ b/vrchat_dart_generated/lib/src/model/store_shelf.g.dart @@ -47,9 +47,25 @@ StoreShelf _$StoreShelfFromJson( 'shelfBackgroundImageId', (v) => v as String?, ), + shelfClientBannerImageId: $checkedConvert( + 'shelfClientBannerImageId', + (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), + shelfMobileHeroBannerImageId: $checkedConvert( + 'shelfMobileHeroBannerImageId', + (v) => v as String?, + ), + shelfMobileLogoImageId: $checkedConvert( + 'shelfMobileLogoImageId', + (v) => v as String?, + ), + shelfMobileSecondaryBannerImageId: $checkedConvert( + 'shelfMobileSecondaryBannerImageId', + (v) => v as String?, + ), shelfTabBackgroundImageId: $checkedConvert( 'shelfTabBackgroundImageId', (v) => v as String?, @@ -68,9 +84,14 @@ Map _$StoreShelfToJson(StoreShelf instance) => 'listingIds': instance.listingIds, 'listings': ?instance.listings?.map((e) => e.toJson()).toList(), 'shelfBackgroundImageId': ?instance.shelfBackgroundImageId, + 'shelfClientBannerImageId': ?instance.shelfClientBannerImageId, 'shelfDescription': instance.shelfDescription, 'shelfIconImageId': ?instance.shelfIconImageId, 'shelfLayout': instance.shelfLayout, + 'shelfMobileHeroBannerImageId': ?instance.shelfMobileHeroBannerImageId, + 'shelfMobileLogoImageId': ?instance.shelfMobileLogoImageId, + 'shelfMobileSecondaryBannerImageId': + ?instance.shelfMobileSecondaryBannerImageId, 'shelfTabBackgroundImageId': ?instance.shelfTabBackgroundImageId, 'shelfTitle': instance.shelfTitle, 'updatedAt': instance.updatedAt.toIso8601String(), diff --git a/vrchat_dart_generated/lib/src/model/unavailable_world.dart b/vrchat_dart_generated/lib/src/model/unavailable_world.dart new file mode 100644 index 0000000..f6decb5 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/unavailable_world.dart @@ -0,0 +1,95 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'unavailable_world.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class UnavailableWorld { + /// Returns a new [UnavailableWorld] instance. + UnavailableWorld({ + required this.authorName, + + required this.capacity, + + required this.id, + + required this.imageUrl, + + required this.isSecure, + + required this.name, + + required this.occupants, + + required this.thumbnailImageUrl, + }); + + @JsonKey(name: r'authorName', required: true, includeIfNull: false) + final String authorName; + + @JsonKey(name: r'capacity', required: true, includeIfNull: false) + final int capacity; + + /// WorldID be \"offline\" on User profiles if you are not friends with that user. + @JsonKey(name: r'id', required: true, includeIfNull: false) + final String id; + + @JsonKey(name: r'imageUrl', required: true, includeIfNull: false) + final String imageUrl; + + @JsonKey(name: r'isSecure', required: true, includeIfNull: false) + final bool isSecure; + + @JsonKey(name: r'name', required: true, includeIfNull: false) + final String name; + + @JsonKey(name: r'occupants', required: true, includeIfNull: false) + final int occupants; + + @JsonKey(name: r'thumbnailImageUrl', required: true, includeIfNull: false) + final String thumbnailImageUrl; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is UnavailableWorld && + other.authorName == authorName && + other.capacity == capacity && + other.id == id && + other.imageUrl == imageUrl && + other.isSecure == isSecure && + other.name == name && + other.occupants == occupants && + other.thumbnailImageUrl == thumbnailImageUrl; + + @override + int get hashCode => + authorName.hashCode + + capacity.hashCode + + id.hashCode + + imageUrl.hashCode + + isSecure.hashCode + + name.hashCode + + occupants.hashCode + + thumbnailImageUrl.hashCode; + + factory UnavailableWorld.fromJson(Map json) => + _$UnavailableWorldFromJson(json); + + Map toJson() => _$UnavailableWorldToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/unavailable_world.g.dart b/vrchat_dart_generated/lib/src/model/unavailable_world.g.dart new file mode 100644 index 0000000..6627ff9 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/unavailable_world.g.dart @@ -0,0 +1,52 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'unavailable_world.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +UnavailableWorld _$UnavailableWorldFromJson(Map json) => + $checkedCreate('UnavailableWorld', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + 'authorName', + 'capacity', + 'id', + 'imageUrl', + 'isSecure', + 'name', + 'occupants', + 'thumbnailImageUrl', + ], + ); + final val = UnavailableWorld( + authorName: $checkedConvert('authorName', (v) => v as String), + capacity: $checkedConvert('capacity', (v) => (v as num).toInt()), + id: $checkedConvert('id', (v) => v as String), + imageUrl: $checkedConvert('imageUrl', (v) => v as String), + isSecure: $checkedConvert('isSecure', (v) => v as bool), + name: $checkedConvert('name', (v) => v as String), + occupants: $checkedConvert('occupants', (v) => (v as num).toInt()), + thumbnailImageUrl: $checkedConvert( + 'thumbnailImageUrl', + (v) => v as String, + ), + ); + return val; + }); + +Map _$UnavailableWorldToJson(UnavailableWorld instance) => + { + 'authorName': instance.authorName, + 'capacity': instance.capacity, + 'id': instance.id, + 'imageUrl': instance.imageUrl, + 'isSecure': instance.isSecure, + 'name': instance.name, + 'occupants': instance.occupants, + 'thumbnailImageUrl': instance.thumbnailImageUrl, + }; diff --git a/vrchat_dart_generated/lib/src/model/unity_package.dart b/vrchat_dart_generated/lib/src/model/unity_package.dart index 907e532..6e79435 100644 --- a/vrchat_dart_generated/lib/src/model/unity_package.dart +++ b/vrchat_dart_generated/lib/src/model/unity_package.dart @@ -128,7 +128,7 @@ class UnityPackage { (assetUrl == null ? 0 : assetUrl.hashCode) + assetUrlObject.hashCode + assetVersion.hashCode + - createdAt.hashCode + + (createdAt == null ? 0 : createdAt.hashCode) + id.hashCode + (impostorUrl == null ? 0 : impostorUrl.hashCode) + impostorizerVersion.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/update_profile_request.dart b/vrchat_dart_generated/lib/src/model/update_profile_request.dart new file mode 100644 index 0000000..b7bbc02 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/update_profile_request.dart @@ -0,0 +1,157 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'update_profile_request.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class UpdateProfileRequest { + /// Returns a new [UpdateProfileRequest] instance. + UpdateProfileRequest({ + this.backgroundTextureId, + + this.backgroundType, + + this.bannerColor, + + this.bannerType, + + this.bio, + + this.bioLinks, + + this.iconFrame, + + this.languages, + + this.nameplateEffect, + + this.profileEffect, + + this.themeId, + + this.userIcon, + }); + + @JsonKey(name: r'backgroundTextureId', required: false, includeIfNull: false) + final String? backgroundTextureId; + + @JsonKey(name: r'backgroundType', required: false, includeIfNull: false) + final UpdateProfileRequestBackgroundTypeEnum? backgroundType; + + /// 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 UpdateProfileRequestBannerTypeEnum? bannerType; + + @JsonKey(name: r'bio', required: false, includeIfNull: false) + final String? bio; + + @JsonKey(name: r'bioLinks', required: false, includeIfNull: false) + final List? bioLinks; + + @JsonKey(name: r'iconFrame', required: false, includeIfNull: false) + final String? iconFrame; + + @JsonKey(name: r'languages', required: false, includeIfNull: false) + final List? languages; + + @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'themeId', required: false, includeIfNull: false) + final String? themeId; + + @JsonKey(name: r'userIcon', required: false, includeIfNull: false) + final String? userIcon; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is UpdateProfileRequest && + other.backgroundTextureId == backgroundTextureId && + other.backgroundType == backgroundType && + other.bannerColor == bannerColor && + other.bannerType == bannerType && + other.bio == bio && + other.bioLinks == bioLinks && + other.iconFrame == iconFrame && + other.languages == languages && + other.nameplateEffect == nameplateEffect && + other.profileEffect == profileEffect && + other.themeId == themeId && + other.userIcon == userIcon; + + @override + int get hashCode => + backgroundTextureId.hashCode + + backgroundType.hashCode + + bannerColor.hashCode + + bannerType.hashCode + + bio.hashCode + + bioLinks.hashCode + + iconFrame.hashCode + + languages.hashCode + + nameplateEffect.hashCode + + profileEffect.hashCode + + themeId.hashCode + + userIcon.hashCode; + + factory UpdateProfileRequest.fromJson(Map json) => + _$UpdateProfileRequestFromJson(json); + + Map toJson() => _$UpdateProfileRequestToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} + +enum UpdateProfileRequestBackgroundTypeEnum { + @JsonValue(r'default') + default_(r'default'), + @JsonValue(r'gradient') + gradient(r'gradient'), + @JsonValue(r'inventory') + inventory(r'inventory'), + @JsonValue(r'texture') + texture(r'texture'); + + const UpdateProfileRequestBackgroundTypeEnum(this.value); + + final String value; + + @override + String toString() => value; +} + +enum UpdateProfileRequestBannerTypeEnum { + @JsonValue(r'avatarBanner') + avatarBanner(r'avatarBanner'), + @JsonValue(r'color') + color(r'color'), + @JsonValue(r'customImage') + customImage(r'customImage'); + + const UpdateProfileRequestBannerTypeEnum(this.value); + + final String value; + + @override + String toString() => value; +} diff --git a/vrchat_dart_generated/lib/src/model/update_profile_request.g.dart b/vrchat_dart_generated/lib/src/model/update_profile_request.g.dart new file mode 100644 index 0000000..3d7472a --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/update_profile_request.g.dart @@ -0,0 +1,80 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'update_profile_request.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +UpdateProfileRequest _$UpdateProfileRequestFromJson( + Map json, +) => $checkedCreate('UpdateProfileRequest', json, ($checkedConvert) { + final val = UpdateProfileRequest( + backgroundTextureId: $checkedConvert( + 'backgroundTextureId', + (v) => v as String?, + ), + backgroundType: $checkedConvert( + 'backgroundType', + (v) => $enumDecodeNullable( + _$UpdateProfileRequestBackgroundTypeEnumEnumMap, + v, + ), + ), + bannerColor: $checkedConvert('bannerColor', (v) => v as String?), + bannerType: $checkedConvert( + 'bannerType', + (v) => + $enumDecodeNullable(_$UpdateProfileRequestBannerTypeEnumEnumMap, v), + ), + bio: $checkedConvert('bio', (v) => v as String?), + bioLinks: $checkedConvert( + 'bioLinks', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + iconFrame: $checkedConvert('iconFrame', (v) => v as String?), + languages: $checkedConvert( + 'languages', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + nameplateEffect: $checkedConvert('nameplateEffect', (v) => v as String?), + profileEffect: $checkedConvert('profileEffect', (v) => v as String?), + themeId: $checkedConvert('themeId', (v) => v as String?), + userIcon: $checkedConvert('userIcon', (v) => v as String?), + ); + return val; +}); + +Map _$UpdateProfileRequestToJson( + UpdateProfileRequest instance, +) => { + 'backgroundTextureId': ?instance.backgroundTextureId, + 'backgroundType': + ?_$UpdateProfileRequestBackgroundTypeEnumEnumMap[instance.backgroundType], + 'bannerColor': ?instance.bannerColor, + 'bannerType': + ?_$UpdateProfileRequestBannerTypeEnumEnumMap[instance.bannerType], + 'bio': ?instance.bio, + 'bioLinks': ?instance.bioLinks, + 'iconFrame': ?instance.iconFrame, + 'languages': ?instance.languages, + 'nameplateEffect': ?instance.nameplateEffect, + 'profileEffect': ?instance.profileEffect, + 'themeId': ?instance.themeId, + 'userIcon': ?instance.userIcon, +}; + +const _$UpdateProfileRequestBackgroundTypeEnumEnumMap = { + UpdateProfileRequestBackgroundTypeEnum.default_: 'default', + UpdateProfileRequestBackgroundTypeEnum.gradient: 'gradient', + UpdateProfileRequestBackgroundTypeEnum.inventory: 'inventory', + UpdateProfileRequestBackgroundTypeEnum.texture: 'texture', +}; + +const _$UpdateProfileRequestBannerTypeEnumEnumMap = { + UpdateProfileRequestBannerTypeEnum.avatarBanner: 'avatarBanner', + UpdateProfileRequestBannerTypeEnum.color: 'color', + UpdateProfileRequestBannerTypeEnum.customImage: 'customImage', +}; diff --git a/vrchat_dart_generated/lib/src/model/update_user_client_config_request.dart b/vrchat_dart_generated/lib/src/model/update_user_client_config_request.dart new file mode 100644 index 0000000..3a29167 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/update_user_client_config_request.dart @@ -0,0 +1,46 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'update_user_client_config_request.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class UpdateUserClientConfigRequest { + /// Returns a new [UpdateUserClientConfigRequest] instance. + UpdateUserClientConfigRequest({this.accessReduceDecorAnim}); + + @JsonKey( + name: r'accessReduceDecorAnim', + required: false, + includeIfNull: false, + ) + final bool? accessReduceDecorAnim; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is UpdateUserClientConfigRequest && + other.accessReduceDecorAnim == accessReduceDecorAnim; + + @override + int get hashCode => accessReduceDecorAnim.hashCode; + + factory UpdateUserClientConfigRequest.fromJson(Map json) => + _$UpdateUserClientConfigRequestFromJson(json); + + Map toJson() => _$UpdateUserClientConfigRequestToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/update_user_client_config_request.g.dart b/vrchat_dart_generated/lib/src/model/update_user_client_config_request.g.dart new file mode 100644 index 0000000..61fa170 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/update_user_client_config_request.g.dart @@ -0,0 +1,27 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'update_user_client_config_request.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +UpdateUserClientConfigRequest _$UpdateUserClientConfigRequestFromJson( + Map json, +) => $checkedCreate('UpdateUserClientConfigRequest', json, ($checkedConvert) { + final val = UpdateUserClientConfigRequest( + accessReduceDecorAnim: $checkedConvert( + 'accessReduceDecorAnim', + (v) => v as bool?, + ), + ); + return val; +}); + +Map _$UpdateUserClientConfigRequestToJson( + UpdateUserClientConfigRequest instance, +) => { + 'accessReduceDecorAnim': ?instance.accessReduceDecorAnim, +}; diff --git a/vrchat_dart_generated/lib/src/model/update_user_request.dart b/vrchat_dart_generated/lib/src/model/update_user_request.dart index 30c713a..d897cf1 100644 --- a/vrchat_dart_generated/lib/src/model/update_user_request.dart +++ b/vrchat_dart_generated/lib/src/model/update_user_request.dart @@ -21,10 +21,6 @@ class UpdateUserRequest { UpdateUserRequest({ this.acceptedTOSVersion, - this.bio, - - this.bioLinks, - this.birthday, this.contentFilters, @@ -54,19 +50,11 @@ class UpdateUserRequest { this.tags, this.unsubscribe, - - this.userIcon, }); @JsonKey(name: r'acceptedTOSVersion', required: false, includeIfNull: false) final int? acceptedTOSVersion; - @JsonKey(name: r'bio', required: false, includeIfNull: false) - final String? bio; - - @JsonKey(name: r'bioLinks', required: false, includeIfNull: false) - final List? bioLinks; - @JsonKey(name: r'birthday', required: false, includeIfNull: false) final DateTime? birthday; @@ -127,17 +115,11 @@ class UpdateUserRequest { @JsonKey(name: r'unsubscribe', required: false, includeIfNull: false) final bool? unsubscribe; - /// MUST be a valid VRChat /file/ url. - @JsonKey(name: r'userIcon', required: false, includeIfNull: false) - final String? userIcon; - @override bool operator ==(Object other) => identical(this, other) || other is UpdateUserRequest && other.acceptedTOSVersion == acceptedTOSVersion && - other.bio == bio && - other.bioLinks == bioLinks && other.birthday == birthday && other.contentFilters == contentFilters && other.currentPassword == currentPassword && @@ -152,14 +134,11 @@ class UpdateUserRequest { other.status == status && other.statusDescription == statusDescription && other.tags == tags && - other.unsubscribe == unsubscribe && - other.userIcon == userIcon; + other.unsubscribe == unsubscribe; @override int get hashCode => acceptedTOSVersion.hashCode + - bio.hashCode + - bioLinks.hashCode + birthday.hashCode + contentFilters.hashCode + currentPassword.hashCode + @@ -174,8 +153,7 @@ class UpdateUserRequest { status.hashCode + statusDescription.hashCode + tags.hashCode + - unsubscribe.hashCode + - userIcon.hashCode; + unsubscribe.hashCode; factory UpdateUserRequest.fromJson(Map json) => _$UpdateUserRequestFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/update_user_request.g.dart b/vrchat_dart_generated/lib/src/model/update_user_request.g.dart index 27e85c6..2a81293 100644 --- a/vrchat_dart_generated/lib/src/model/update_user_request.g.dart +++ b/vrchat_dart_generated/lib/src/model/update_user_request.g.dart @@ -16,11 +16,6 @@ UpdateUserRequest _$UpdateUserRequestFromJson( 'acceptedTOSVersion', (v) => (v as num?)?.toInt(), ), - bio: $checkedConvert('bio', (v) => v as String?), - bioLinks: $checkedConvert( - 'bioLinks', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), birthday: $checkedConvert( 'birthday', (v) => v == null ? null : DateTime.parse(v as String), @@ -59,7 +54,6 @@ UpdateUserRequest _$UpdateUserRequestFromJson( (v) => (v as List?)?.map((e) => e as String).toList(), ), unsubscribe: $checkedConvert('unsubscribe', (v) => v as bool?), - userIcon: $checkedConvert('userIcon', (v) => v as String?), ); return val; }); @@ -67,8 +61,6 @@ UpdateUserRequest _$UpdateUserRequestFromJson( Map _$UpdateUserRequestToJson(UpdateUserRequest instance) => { 'acceptedTOSVersion': ?instance.acceptedTOSVersion, - 'bio': ?instance.bio, - 'bioLinks': ?instance.bioLinks, 'birthday': ?instance.birthday?.toIso8601String(), 'contentFilters': ?instance.contentFilters ?.map((e) => _$ContentFilterEnumMap[e]!) @@ -86,7 +78,6 @@ Map _$UpdateUserRequestToJson(UpdateUserRequest instance) => 'statusDescription': ?instance.statusDescription, 'tags': ?instance.tags, 'unsubscribe': ?instance.unsubscribe, - 'userIcon': ?instance.userIcon, }; const _$ContentFilterEnumMap = { diff --git a/vrchat_dart_generated/lib/src/model/user.dart b/vrchat_dart_generated/lib/src/model/user.dart index 503a2ce..643d435 100644 --- a/vrchat_dart_generated/lib/src/model/user.dart +++ b/vrchat_dart_generated/lib/src/model/user.dart @@ -5,7 +5,6 @@ // ignore_for_file: unused_element import 'package:vrchat_dart_generated/src/model/developer_type.dart'; import 'package:vrchat_dart_generated/src/model/user_status.dart'; -import 'package:vrchat_dart_generated/src/model/badge.dart'; import 'package:vrchat_dart_generated/src/model/age_verification_status.dart'; import 'package:vrchat_dart_generated/src/model/user_state.dart'; @@ -38,24 +37,12 @@ class User { this.appleDetails, - this.badges, - this.bannerColor, this.bannerType, this.bannerUrl, - required this.bio, - - required this.bioLinks, - - required this.currentAvatarImageUrl, - - required this.currentAvatarTags, - - required this.currentAvatarThumbnailImageUrl, - required this.dateJoined, required this.developerType, @@ -96,10 +83,6 @@ class User { this.profileEffect, - required this.profilePicOverride, - - required this.profilePicOverrideThumbnail, - required this.pronouns, required this.state, @@ -116,8 +99,6 @@ class User { this.travelingToWorld, - required this.userIcon, - this.worldId, }); @@ -150,10 +131,6 @@ class User { @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; @@ -163,27 +140,6 @@ class User { @JsonKey(name: r'bannerUrl', required: false, includeIfNull: false) final String? bannerUrl; - @JsonKey(name: r'bio', required: true, includeIfNull: false) - final String bio; - - @JsonKey(name: r'bioLinks', required: true, includeIfNull: false) - final List bioLinks; - - /// When profilePicOverride is not empty, use it instead. - @JsonKey(name: r'currentAvatarImageUrl', required: true, includeIfNull: false) - final String currentAvatarImageUrl; - - @JsonKey(name: r'currentAvatarTags', required: true, includeIfNull: false) - final List currentAvatarTags; - - /// When profilePicOverride is not empty, use it instead. - @JsonKey( - name: r'currentAvatarThumbnailImageUrl', - required: true, - includeIfNull: false, - ) - final String currentAvatarThumbnailImageUrl; - @JsonKey(name: r'date_joined', required: true, includeIfNull: false) final DateTime dateJoined; @@ -253,16 +209,6 @@ class User { @JsonKey(name: r'profileEffect', required: false, includeIfNull: false) final String? profileEffect; - @JsonKey(name: r'profilePicOverride', required: true, includeIfNull: false) - final String profilePicOverride; - - @JsonKey( - name: r'profilePicOverrideThumbnail', - required: true, - includeIfNull: false, - ) - final String profilePicOverrideThumbnail; - @JsonKey(name: r'pronouns', required: true, includeIfNull: false) final String pronouns; @@ -288,9 +234,6 @@ class User { @JsonKey(name: r'travelingToWorld', required: false, includeIfNull: false) final String? travelingToWorld; - @JsonKey(name: r'userIcon', required: true, includeIfNull: false) - final String userIcon; - /// 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; @@ -307,16 +250,9 @@ class User { other.ageVerified == ageVerified && other.allowAvatarCopying == allowAvatarCopying && other.appleDetails == appleDetails && - other.badges == badges && other.bannerColor == bannerColor && other.bannerType == bannerType && other.bannerUrl == bannerUrl && - other.bio == bio && - other.bioLinks == bioLinks && - other.currentAvatarImageUrl == currentAvatarImageUrl && - other.currentAvatarTags == currentAvatarTags && - other.currentAvatarThumbnailImageUrl == - currentAvatarThumbnailImageUrl && other.dateJoined == dateJoined && other.developerType == developerType && other.displayName == displayName && @@ -337,8 +273,6 @@ class User { other.note == note && other.platform == platform && other.profileEffect == profileEffect && - other.profilePicOverride == profilePicOverride && - other.profilePicOverrideThumbnail == profilePicOverrideThumbnail && other.pronouns == pronouns && other.state == state && other.status == status && @@ -347,7 +281,6 @@ class User { other.travelingToInstance == travelingToInstance && other.travelingToLocation == travelingToLocation && other.travelingToWorld == travelingToWorld && - other.userIcon == userIcon && other.worldId == worldId; @override @@ -360,15 +293,9 @@ class User { ageVerified.hashCode + allowAvatarCopying.hashCode + appleDetails.hashCode + - badges.hashCode + bannerColor.hashCode + bannerType.hashCode + bannerUrl.hashCode + - bio.hashCode + - bioLinks.hashCode + - currentAvatarImageUrl.hashCode + - currentAvatarTags.hashCode + - currentAvatarThumbnailImageUrl.hashCode + dateJoined.hashCode + developerType.hashCode + displayName.hashCode + @@ -389,8 +316,6 @@ class User { note.hashCode + platform.hashCode + profileEffect.hashCode + - profilePicOverride.hashCode + - profilePicOverrideThumbnail.hashCode + pronouns.hashCode + state.hashCode + status.hashCode + @@ -399,7 +324,6 @@ class User { travelingToInstance.hashCode + travelingToLocation.hashCode + travelingToWorld.hashCode + - userIcon.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 7f4d975..972f3ea 100644 --- a/vrchat_dart_generated/lib/src/model/user.g.dart +++ b/vrchat_dart_generated/lib/src/model/user.g.dart @@ -18,11 +18,6 @@ User _$UserFromJson(Map json) => $checkedCreate( 'ageVerificationStatus', 'ageVerified', 'allowAvatarCopying', - 'bio', - 'bioLinks', - 'currentAvatarImageUrl', - 'currentAvatarTags', - 'currentAvatarThumbnailImageUrl', 'date_joined', 'developerType', 'displayName', @@ -32,14 +27,11 @@ User _$UserFromJson(Map json) => $checkedCreate( 'last_activity', 'last_login', 'last_platform', - 'profilePicOverride', - 'profilePicOverrideThumbnail', 'pronouns', 'state', 'status', 'statusDescription', 'tags', - 'userIcon', ], ); final val = User( @@ -74,32 +66,9 @@ User _$UserFromJson(Map json) => $checkedCreate( (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), - bioLinks: $checkedConvert( - 'bioLinks', - (v) => (v as List).map((e) => e as String).toList(), - ), - currentAvatarImageUrl: $checkedConvert( - 'currentAvatarImageUrl', - (v) => v as String, - ), - currentAvatarTags: $checkedConvert( - 'currentAvatarTags', - (v) => (v as List).map((e) => e as String).toList(), - ), - currentAvatarThumbnailImageUrl: $checkedConvert( - 'currentAvatarThumbnailImageUrl', - (v) => v as String, - ), dateJoined: $checkedConvert( 'date_joined', (v) => DateTime.parse(v as String), @@ -129,14 +98,6 @@ User _$UserFromJson(Map json) => $checkedCreate( note: $checkedConvert('note', (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, - ), - profilePicOverrideThumbnail: $checkedConvert( - 'profilePicOverrideThumbnail', - (v) => v as String, - ), pronouns: $checkedConvert('pronouns', (v) => v as String), state: $checkedConvert( 'state', @@ -166,7 +127,6 @@ User _$UserFromJson(Map json) => $checkedCreate( 'travelingToWorld', (v) => v as String?, ), - userIcon: $checkedConvert('userIcon', (v) => v as String), worldId: $checkedConvert('worldId', (v) => v as String?), ); return val; @@ -190,15 +150,9 @@ Map _$UserToJson(User instance) => { '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, - 'bioLinks': instance.bioLinks, - 'currentAvatarImageUrl': instance.currentAvatarImageUrl, - 'currentAvatarTags': instance.currentAvatarTags, - 'currentAvatarThumbnailImageUrl': instance.currentAvatarThumbnailImageUrl, 'date_joined': instance.dateJoined.toIso8601String(), 'developerType': _$DeveloperTypeEnumMap[instance.developerType]!, 'displayName': instance.displayName, @@ -219,8 +173,6 @@ Map _$UserToJson(User instance) => { 'note': ?instance.note, 'platform': ?instance.platform, 'profileEffect': ?instance.profileEffect, - 'profilePicOverride': instance.profilePicOverride, - 'profilePicOverrideThumbnail': instance.profilePicOverrideThumbnail, 'pronouns': instance.pronouns, 'state': _$UserStateEnumMap[instance.state]!, 'status': _$UserStatusEnumMap[instance.status]!, @@ -229,7 +181,6 @@ Map _$UserToJson(User instance) => { 'travelingToInstance': ?instance.travelingToInstance, 'travelingToLocation': ?instance.travelingToLocation, 'travelingToWorld': ?instance.travelingToWorld, - 'userIcon': instance.userIcon, 'worldId': ?instance.worldId, }; diff --git a/vrchat_dart_generated/lib/src/model/user_client_config.dart b/vrchat_dart_generated/lib/src/model/user_client_config.dart new file mode 100644 index 0000000..bae3996 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/user_client_config.dart @@ -0,0 +1,50 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'user_client_config.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class UserClientConfig { + /// Returns a new [UserClientConfig] instance. + UserClientConfig({ + required this.accessReduceDecorAnim, + + required this.configString, + }); + + @JsonKey(name: r'accessReduceDecorAnim', required: true, includeIfNull: false) + final bool accessReduceDecorAnim; + + @JsonKey(name: r'configString', required: true, includeIfNull: false) + final String configString; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is UserClientConfig && + other.accessReduceDecorAnim == accessReduceDecorAnim && + other.configString == configString; + + @override + int get hashCode => accessReduceDecorAnim.hashCode + configString.hashCode; + + factory UserClientConfig.fromJson(Map json) => + _$UserClientConfigFromJson(json); + + Map toJson() => _$UserClientConfigToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/user_client_config.g.dart b/vrchat_dart_generated/lib/src/model/user_client_config.g.dart new file mode 100644 index 0000000..43822a4 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/user_client_config.g.dart @@ -0,0 +1,31 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'user_client_config.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +UserClientConfig _$UserClientConfigFromJson(Map json) => + $checkedCreate('UserClientConfig', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const ['accessReduceDecorAnim', 'configString'], + ); + final val = UserClientConfig( + accessReduceDecorAnim: $checkedConvert( + 'accessReduceDecorAnim', + (v) => v as bool, + ), + configString: $checkedConvert('configString', (v) => v as String), + ); + return val; + }); + +Map _$UserClientConfigToJson(UserClientConfig instance) => + { + 'accessReduceDecorAnim': instance.accessReduceDecorAnim, + 'configString': instance.configString, + }; diff --git a/vrchat_dart_generated/lib/src/model/user_cosmetic.dart b/vrchat_dart_generated/lib/src/model/user_cosmetic.dart new file mode 100644 index 0000000..c1bf91a --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/user_cosmetic.dart @@ -0,0 +1,82 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/inventory_item_type.dart'; +import 'package:vrchat_dart_generated/src/model/inventory_user_attributes.dart'; + +import 'package:json_annotation/json_annotation.dart'; + +part 'user_cosmetic.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class UserCosmetic { + /// Returns a new [UserCosmetic] instance. + UserCosmetic({ + required this.acquiredOn, + + required this.acquisition, + + required this.id, + + required this.itemType, + + required this.templateId, + + required this.userAttributes, + }); + + @JsonKey(name: r'acquiredOn', required: true, includeIfNull: false) + final DateTime acquiredOn; + + @JsonKey(name: r'acquisition', required: true, includeIfNull: false) + final String acquisition; + + @JsonKey(name: r'id', required: true, includeIfNull: false) + final String id; + + @JsonKey(name: r'itemType', required: true, includeIfNull: false) + final InventoryItemType itemType; + + @JsonKey(name: r'templateId', required: true, includeIfNull: false) + final String templateId; + + @JsonKey(name: r'userAttributes', required: true, includeIfNull: false) + final InventoryUserAttributes userAttributes; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is UserCosmetic && + other.acquiredOn == acquiredOn && + other.acquisition == acquisition && + other.id == id && + other.itemType == itemType && + other.templateId == templateId && + other.userAttributes == userAttributes; + + @override + int get hashCode => + acquiredOn.hashCode + + acquisition.hashCode + + id.hashCode + + itemType.hashCode + + templateId.hashCode + + userAttributes.hashCode; + + factory UserCosmetic.fromJson(Map json) => + _$UserCosmeticFromJson(json); + + Map toJson() => _$UserCosmeticToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/user_cosmetic.g.dart b/vrchat_dart_generated/lib/src/model/user_cosmetic.g.dart new file mode 100644 index 0000000..7e5ecfd --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/user_cosmetic.g.dart @@ -0,0 +1,65 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'user_cosmetic.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +UserCosmetic _$UserCosmeticFromJson(Map json) => + $checkedCreate('UserCosmetic', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + 'acquiredOn', + 'acquisition', + 'id', + 'itemType', + 'templateId', + 'userAttributes', + ], + ); + final val = UserCosmetic( + acquiredOn: $checkedConvert( + 'acquiredOn', + (v) => DateTime.parse(v as String), + ), + acquisition: $checkedConvert('acquisition', (v) => v as String), + id: $checkedConvert('id', (v) => v as String), + itemType: $checkedConvert( + 'itemType', + (v) => $enumDecode(_$InventoryItemTypeEnumMap, v), + ), + templateId: $checkedConvert('templateId', (v) => v as String), + userAttributes: $checkedConvert( + 'userAttributes', + (v) => InventoryUserAttributes.fromJson(v as Map), + ), + ); + return val; + }); + +Map _$UserCosmeticToJson(UserCosmetic instance) => + { + 'acquiredOn': instance.acquiredOn.toIso8601String(), + 'acquisition': instance.acquisition, + 'id': instance.id, + 'itemType': _$InventoryItemTypeEnumMap[instance.itemType]!, + 'templateId': instance.templateId, + 'userAttributes': instance.userAttributes.toJson(), + }; + +const _$InventoryItemTypeEnumMap = { + InventoryItemType.bundle: 'bundle', + InventoryItemType.droneskin: 'droneskin', + InventoryItemType.emoji: 'emoji', + InventoryItemType.iconFrame: 'iconFrame', + InventoryItemType.nameplateEffect: 'nameplateEffect', + InventoryItemType.portalskin: 'portalskin', + InventoryItemType.profileEffect: 'profileEffect', + InventoryItemType.prop: 'prop', + InventoryItemType.sticker: 'sticker', + InventoryItemType.warpeffect: 'warpeffect', +}; diff --git a/vrchat_dart_generated/lib/src/model/user_note_target_user.dart b/vrchat_dart_generated/lib/src/model/user_note_target_user.dart index 13122b9..a4cde2c 100644 --- a/vrchat_dart_generated/lib/src/model/user_note_target_user.dart +++ b/vrchat_dart_generated/lib/src/model/user_note_target_user.dart @@ -16,63 +16,23 @@ part 'user_note_target_user.g.dart'; ) class UserNoteTargetUser { /// Returns a new [UserNoteTargetUser] instance. - UserNoteTargetUser({ - this.id, - - this.currentAvatarTags, - - this.currentAvatarThumbnailImageUrl, - - this.displayName, - - this.profilePicOverride, - - this.userIcon, - }); + UserNoteTargetUser({this.id, this.displayName}); @JsonKey(name: r'id', required: false, includeIfNull: false) final String? id; - @JsonKey(name: r'currentAvatarTags', required: false, includeIfNull: false) - final List? currentAvatarTags; - - /// When profilePicOverride is not empty, use it instead. - @JsonKey( - name: r'currentAvatarThumbnailImageUrl', - required: false, - includeIfNull: false, - ) - final String? currentAvatarThumbnailImageUrl; - @JsonKey(name: r'displayName', required: false, includeIfNull: false) final String? displayName; - @JsonKey(name: r'profilePicOverride', required: false, includeIfNull: false) - final String? profilePicOverride; - - @JsonKey(name: r'userIcon', required: false, includeIfNull: false) - final String? userIcon; - @override bool operator ==(Object other) => identical(this, other) || other is UserNoteTargetUser && other.id == id && - other.currentAvatarTags == currentAvatarTags && - other.currentAvatarThumbnailImageUrl == - currentAvatarThumbnailImageUrl && - other.displayName == displayName && - other.profilePicOverride == profilePicOverride && - other.userIcon == userIcon; + other.displayName == displayName; @override - int get hashCode => - id.hashCode + - currentAvatarTags.hashCode + - currentAvatarThumbnailImageUrl.hashCode + - displayName.hashCode + - (profilePicOverride == null ? 0 : profilePicOverride.hashCode) + - userIcon.hashCode; + int get hashCode => id.hashCode + displayName.hashCode; factory UserNoteTargetUser.fromJson(Map json) => _$UserNoteTargetUserFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/user_note_target_user.g.dart b/vrchat_dart_generated/lib/src/model/user_note_target_user.g.dart index 4f84e16..60748a9 100644 --- a/vrchat_dart_generated/lib/src/model/user_note_target_user.g.dart +++ b/vrchat_dart_generated/lib/src/model/user_note_target_user.g.dart @@ -12,31 +12,10 @@ UserNoteTargetUser _$UserNoteTargetUserFromJson(Map json) => $checkedCreate('UserNoteTargetUser', json, ($checkedConvert) { final val = UserNoteTargetUser( id: $checkedConvert('id', (v) => v as String?), - currentAvatarTags: $checkedConvert( - 'currentAvatarTags', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - currentAvatarThumbnailImageUrl: $checkedConvert( - 'currentAvatarThumbnailImageUrl', - (v) => v as String?, - ), displayName: $checkedConvert('displayName', (v) => v as String?), - profilePicOverride: $checkedConvert( - 'profilePicOverride', - (v) => v as String?, - ), - userIcon: $checkedConvert('userIcon', (v) => v as String?), ); return val; }); -Map _$UserNoteTargetUserToJson( - UserNoteTargetUser instance, -) => { - 'id': ?instance.id, - 'currentAvatarTags': ?instance.currentAvatarTags, - 'currentAvatarThumbnailImageUrl': ?instance.currentAvatarThumbnailImageUrl, - 'displayName': ?instance.displayName, - 'profilePicOverride': ?instance.profilePicOverride, - 'userIcon': ?instance.userIcon, -}; +Map _$UserNoteTargetUserToJson(UserNoteTargetUser instance) => + {'id': ?instance.id, 'displayName': ?instance.displayName}; diff --git a/vrchat_dart_generated/lib/src/model/world.dart b/vrchat_dart_generated/lib/src/model/world.dart index 3a5b0e5..d8aa597 100644 --- a/vrchat_dart_generated/lib/src/model/world.dart +++ b/vrchat_dart_generated/lib/src/model/world.dart @@ -46,6 +46,8 @@ class World { this.instances, + this.isHypeTrainEligible, + required this.labsPublicationDate, required this.name, @@ -143,6 +145,9 @@ class World { @JsonKey(name: r'instances', required: false, includeIfNull: false) final List>? instances; + @JsonKey(name: r'isHypeTrainEligible', required: false, includeIfNull: false) + final bool? isHypeTrainEligible; + @JsonKey(name: r'labsPublicationDate', required: true, includeIfNull: false) final String labsPublicationDate; @@ -237,6 +242,7 @@ class World { other.id == id && other.imageUrl == imageUrl && other.instances == instances && + other.isHypeTrainEligible == isHypeTrainEligible && other.labsPublicationDate == labsPublicationDate && other.name == name && other.namespace == namespace && @@ -275,6 +281,7 @@ class World { id.hashCode + imageUrl.hashCode + instances.hashCode + + isHypeTrainEligible.hashCode + labsPublicationDate.hashCode + name.hashCode + namespace.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/world.g.dart b/vrchat_dart_generated/lib/src/model/world.g.dart index 8b6bf61..8b6a339 100644 --- a/vrchat_dart_generated/lib/src/model/world.g.dart +++ b/vrchat_dart_generated/lib/src/model/world.g.dart @@ -67,6 +67,10 @@ World _$WorldFromJson( ?.map((e) => (e as List).map((e) => e as Object).toList()) .toList(), ), + isHypeTrainEligible: $checkedConvert( + 'isHypeTrainEligible', + (v) => v as bool?, + ), labsPublicationDate: $checkedConvert( 'labsPublicationDate', (v) => v as String, @@ -145,6 +149,7 @@ Map _$WorldToJson(World instance) => { 'id': instance.id, 'imageUrl': instance.imageUrl, 'instances': ?instance.instances, + 'isHypeTrainEligible': ?instance.isHypeTrainEligible, 'labsPublicationDate': instance.labsPublicationDate, 'name': instance.name, 'namespace': ?instance.namespace, diff --git a/vrchat_dart_generated/lib/src/model/world_favorite_list.dart b/vrchat_dart_generated/lib/src/model/world_favorite_list.dart new file mode 100644 index 0000000..f7bf80c --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/world_favorite_list.dart @@ -0,0 +1,64 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'world_favorite_list.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class WorldFavoriteList { + /// Returns a new [WorldFavoriteList] instance. + WorldFavoriteList({ + required this.count, + + required this.id, + + required this.name, + + required this.thumbnails, + }); + + // minimum: 0 + @JsonKey(name: r'count', required: true, includeIfNull: false) + final int count; + + @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'thumbnails', required: true, includeIfNull: false) + final List thumbnails; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is WorldFavoriteList && + other.count == count && + other.id == id && + other.name == name && + other.thumbnails == thumbnails; + + @override + int get hashCode => + count.hashCode + id.hashCode + name.hashCode + thumbnails.hashCode; + + factory WorldFavoriteList.fromJson(Map json) => + _$WorldFavoriteListFromJson(json); + + Map toJson() => _$WorldFavoriteListToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/world_favorite_list.g.dart b/vrchat_dart_generated/lib/src/model/world_favorite_list.g.dart new file mode 100644 index 0000000..63454c4 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/world_favorite_list.g.dart @@ -0,0 +1,35 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'world_favorite_list.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +WorldFavoriteList _$WorldFavoriteListFromJson(Map json) => + $checkedCreate('WorldFavoriteList', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const ['count', 'id', 'name', 'thumbnails'], + ); + final val = WorldFavoriteList( + count: $checkedConvert('count', (v) => (v as num).toInt()), + id: $checkedConvert('id', (v) => v as String), + name: $checkedConvert('name', (v) => v as String), + thumbnails: $checkedConvert( + 'thumbnails', + (v) => (v as List).map((e) => e as String).toList(), + ), + ); + return val; + }); + +Map _$WorldFavoriteListToJson(WorldFavoriteList instance) => + { + 'count': instance.count, + 'id': instance.id, + 'name': instance.name, + 'thumbnails': instance.thumbnails, + }; diff --git a/vrchat_dart_generated/lib/vrchat_dart_generated.dart b/vrchat_dart_generated/lib/vrchat_dart_generated.dart index 50b1352..6a7ac5e 100644 --- a/vrchat_dart_generated/lib/vrchat_dart_generated.dart +++ b/vrchat_dart_generated/lib/vrchat_dart_generated.dart @@ -58,6 +58,7 @@ export 'package:vrchat_dart_generated/src/model/add_group_gallery_image_request. export 'package:vrchat_dart_generated/src/model/admin_asset_bundle.dart'; export 'package:vrchat_dart_generated/src/model/admin_unity_package.dart'; export 'package:vrchat_dart_generated/src/model/age_verification_status.dart'; +export 'package:vrchat_dart_generated/src/model/age_verification_status_result.dart'; export 'package:vrchat_dart_generated/src/model/agreement.dart'; export 'package:vrchat_dart_generated/src/model/agreement_code.dart'; export 'package:vrchat_dart_generated/src/model/agreement_request.dart'; @@ -75,6 +76,9 @@ 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/beta.dart'; +export 'package:vrchat_dart_generated/src/model/beta_registration_not_found_error.dart'; +export 'package:vrchat_dart_generated/src/model/beta_user_field.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'; @@ -121,16 +125,23 @@ export 'package:vrchat_dart_generated/src/model/dynamic_content_row.dart'; export 'package:vrchat_dart_generated/src/model/earnings_metrics.dart'; export 'package:vrchat_dart_generated/src/model/earnings_metrics_totals.dart'; export 'package:vrchat_dart_generated/src/model/economy_account.dart'; +export 'package:vrchat_dart_generated/src/model/economy_account_limits.dart'; export 'package:vrchat_dart_generated/src/model/economy_balances.dart'; export 'package:vrchat_dart_generated/src/model/economy_payout.dart'; export 'package:vrchat_dart_generated/src/model/economy_payout_eligibility.dart'; export 'package:vrchat_dart_generated/src/model/economy_payout_list.dart'; export 'package:vrchat_dart_generated/src/model/economy_payout_status.dart'; +export 'package:vrchat_dart_generated/src/model/economy_status.dart'; export 'package:vrchat_dart_generated/src/model/equip_inventory_item_request.dart'; export 'package:vrchat_dart_generated/src/model/error.dart'; export 'package:vrchat_dart_generated/src/model/favorite.dart'; export 'package:vrchat_dart_generated/src/model/favorite_group.dart'; +export 'package:vrchat_dart_generated/src/model/favorite_group_contents.dart'; +export 'package:vrchat_dart_generated/src/model/favorite_group_contents_entry.dart'; +export 'package:vrchat_dart_generated/src/model/favorite_group_contents_entry_world.dart'; export 'package:vrchat_dart_generated/src/model/favorite_group_limits.dart'; +export 'package:vrchat_dart_generated/src/model/favorite_group_list.dart'; +export 'package:vrchat_dart_generated/src/model/favorite_group_summary.dart'; export 'package:vrchat_dart_generated/src/model/favorite_group_visibility.dart'; export 'package:vrchat_dart_generated/src/model/favorite_limits.dart'; export 'package:vrchat_dart_generated/src/model/favorite_type.dart'; @@ -147,6 +158,7 @@ export 'package:vrchat_dart_generated/src/model/file_version_upload_status.dart' export 'package:vrchat_dart_generated/src/model/finish_file_data_upload_request.dart'; export 'package:vrchat_dart_generated/src/model/follow_calendar_event_request.dart'; export 'package:vrchat_dart_generated/src/model/friend_status.dart'; +export 'package:vrchat_dart_generated/src/model/get_group_gallery_images200_response.dart'; export 'package:vrchat_dart_generated/src/model/get_group_posts200_response.dart'; export 'package:vrchat_dart_generated/src/model/get_user_group_instances200_response.dart'; export 'package:vrchat_dart_generated/src/model/group.dart'; @@ -157,6 +169,7 @@ export 'package:vrchat_dart_generated/src/model/group_gallery.dart'; export 'package:vrchat_dart_generated/src/model/group_gallery_file_order.dart'; export 'package:vrchat_dart_generated/src/model/group_gallery_file_order_request.dart'; export 'package:vrchat_dart_generated/src/model/group_gallery_image.dart'; +export 'package:vrchat_dart_generated/src/model/group_gallery_image_list.dart'; export 'package:vrchat_dart_generated/src/model/group_instance.dart'; export 'package:vrchat_dart_generated/src/model/group_join_request_action.dart'; export 'package:vrchat_dart_generated/src/model/group_join_state.dart'; @@ -201,6 +214,7 @@ export 'package:vrchat_dart_generated/src/model/instance_short_name_response.dar 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_asset.dart'; export 'package:vrchat_dart_generated/src/model/inventory_consumption_results.dart'; export 'package:vrchat_dart_generated/src/model/inventory_default_attributes_value.dart'; export 'package:vrchat_dart_generated/src/model/inventory_default_attributes_value_validator.dart'; @@ -283,6 +297,8 @@ export 'package:vrchat_dart_generated/src/model/product_purchase_product.dart'; export 'package:vrchat_dart_generated/src/model/product_purchase_purchase_context.dart'; export 'package:vrchat_dart_generated/src/model/product_purchase_record.dart'; export 'package:vrchat_dart_generated/src/model/product_type.dart'; +export 'package:vrchat_dart_generated/src/model/profile_group.dart'; +export 'package:vrchat_dart_generated/src/model/profile_groups.dart'; export 'package:vrchat_dart_generated/src/model/profile_represented_group.dart'; export 'package:vrchat_dart_generated/src/model/prop.dart'; export 'package:vrchat_dart_generated/src/model/prop_publish_status.dart'; @@ -342,6 +358,7 @@ export 'package:vrchat_dart_generated/src/model/two_factor_auth_code.dart'; export 'package:vrchat_dart_generated/src/model/two_factor_email_code.dart'; export 'package:vrchat_dart_generated/src/model/two_factor_recovery_codes.dart'; export 'package:vrchat_dart_generated/src/model/two_factor_recovery_codes_otp_inner.dart'; +export 'package:vrchat_dart_generated/src/model/unavailable_world.dart'; export 'package:vrchat_dart_generated/src/model/unity_package.dart'; export 'package:vrchat_dart_generated/src/model/update_asset_review_notes_request.dart'; export 'package:vrchat_dart_generated/src/model/update_avatar_request.dart'; @@ -356,13 +373,17 @@ export 'package:vrchat_dart_generated/src/model/update_inventory_item_request.da export 'package:vrchat_dart_generated/src/model/update_invite_message_request.dart'; export 'package:vrchat_dart_generated/src/model/update_listing_request.dart'; export 'package:vrchat_dart_generated/src/model/update_product_request.dart'; +export 'package:vrchat_dart_generated/src/model/update_profile_request.dart'; export 'package:vrchat_dart_generated/src/model/update_prop_request.dart'; export 'package:vrchat_dart_generated/src/model/update_tilia_tos_request.dart'; export 'package:vrchat_dart_generated/src/model/update_user_badge_request.dart'; +export 'package:vrchat_dart_generated/src/model/update_user_client_config_request.dart'; export 'package:vrchat_dart_generated/src/model/update_user_note_request.dart'; export 'package:vrchat_dart_generated/src/model/update_user_request.dart'; export 'package:vrchat_dart_generated/src/model/update_world_request.dart'; export 'package:vrchat_dart_generated/src/model/user.dart'; +export 'package:vrchat_dart_generated/src/model/user_client_config.dart'; +export 'package:vrchat_dart_generated/src/model/user_cosmetic.dart'; export 'package:vrchat_dart_generated/src/model/user_credits_eligible.dart'; export 'package:vrchat_dart_generated/src/model/user_exists.dart'; export 'package:vrchat_dart_generated/src/model/user_note.dart'; @@ -375,5 +396,6 @@ export 'package:vrchat_dart_generated/src/model/verify2_fa_email_code_result.dar export 'package:vrchat_dart_generated/src/model/verify2_fa_result.dart'; export 'package:vrchat_dart_generated/src/model/verify_auth_token_result.dart'; export 'package:vrchat_dart_generated/src/model/world.dart'; +export 'package:vrchat_dart_generated/src/model/world_favorite_list.dart'; export 'package:vrchat_dart_generated/src/model/world_metadata.dart'; export 'package:vrchat_dart_generated/src/model/world_publish_status.dart'; diff --git a/vrchat_dart_generated/pubspec.yaml b/vrchat_dart_generated/pubspec.yaml index a827820..7f2f77d 100644 --- a/vrchat_dart_generated/pubspec.yaml +++ b/vrchat_dart_generated/pubspec.yaml @@ -1,5 +1,5 @@ name: vrchat_dart_generated -version: 1.20.9 +version: 1.21.0 description: The generated API used by vrchat_dart. Generated from https://github.com/vrchatapi/specification. homepage: https://github.com/vrchatapi/vrchatapi-dart