diff --git a/vrchat_dart_generated/.openapi-generator/FILES b/vrchat_dart_generated/.openapi-generator/FILES index b19166c1..e5a654e6 100644 --- a/vrchat_dart_generated/.openapi-generator/FILES +++ b/vrchat_dart_generated/.openapi-generator/FILES @@ -3,6 +3,7 @@ README.md doc/APIConfig.md doc/APIConfigAccessLogsUrls.md doc/APIConfigAnnouncement.md +doc/APIConfigAudioConfig.md doc/APIConfigAvatarPerfLimiter.md doc/APIConfigConstants.md doc/APIConfigConstantsGROUPS.md @@ -14,15 +15,9 @@ doc/APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY.md doc/APIConfigConstantsLANGUAGE.md doc/APIConfigDownloadURLList.md doc/APIConfigEvents.md +doc/APIConfigIosVersion.md doc/APIConfigMinSupportedClientBuildNumber.md doc/APIConfigOfflineAnalysis.md -doc/APIConfigReportCategories.md -doc/APIConfigReportOptions.md -doc/APIConfigReportOptionsAvatar.md -doc/APIConfigReportOptionsGroup.md -doc/APIConfigReportOptionsUser.md -doc/APIConfigReportOptionsWorld.md -doc/APIConfigReportReasons.md doc/APIHealth.md doc/AccountDeletionLog.md doc/AddFavoriteRequest.md @@ -30,6 +25,10 @@ doc/AddGroupGalleryImageRequest.md doc/AdminAssetBundle.md doc/AdminUnityPackage.md doc/AgeVerificationStatus.md +doc/Agreement.md +doc/AgreementCode.md +doc/AgreementRequest.md +doc/AgreementStatus.md doc/AuthenticationApi.md doc/Avatar.md doc/AvatarModeration.md @@ -68,10 +67,12 @@ doc/CreateGroupPostRequest.md doc/CreateGroupRequest.md doc/CreateGroupRoleRequest.md doc/CreateInstanceRequest.md +doc/CreatePropRequest.md doc/CreateWorldRequest.md doc/CurrentUser.md doc/CurrentUserPlatformHistoryInner.md doc/CurrentUserPresence.md +doc/DeclineGroupInviteRequest.md doc/DeveloperType.md doc/Disable2FAResult.md doc/DiscordDetails.md @@ -109,6 +110,8 @@ doc/GroupAccessType.md doc/GroupAnnouncement.md doc/GroupAuditLogEntry.md doc/GroupGallery.md +doc/GroupGalleryFileOrder.md +doc/GroupGalleryFileOrderRequest.md doc/GroupGalleryImage.md doc/GroupInstance.md doc/GroupJoinRequestAction.md @@ -128,8 +131,14 @@ doc/GroupRoleTemplate.md doc/GroupRoleTemplateValues.md doc/GroupRoleTemplateValuesRoles.md doc/GroupSearchSort.md +doc/GroupTransferable.md +doc/GroupTransferableRequirements.md doc/GroupUserVisibility.md doc/GroupsApi.md +doc/ImageAnimationStyle.md +doc/ImageLoopStyle.md +doc/ImageMask.md +doc/ImagePurpose.md doc/InfoPush.md doc/InfoPushData.md doc/InfoPushDataArticle.md @@ -165,6 +174,7 @@ doc/InviteResponse.md doc/Jam.md doc/JamStateChangeDates.md doc/JamsApi.md +doc/JoinGroupRequest.md doc/License.md doc/LicenseAction.md doc/LicenseGroup.md @@ -190,6 +200,7 @@ doc/NotificationDetailRequestInviteResponse.md doc/NotificationDetailVoteToKick.md doc/NotificationType.md doc/NotificationV2.md +doc/NotificationV2DetailsBoop.md doc/NotificationV2Response.md doc/NotificationV2Type.md doc/NotificationsApi.md @@ -221,6 +232,7 @@ doc/ProductPurchase.md doc/ProductPurchasePurchaseContext.md doc/ProductType.md doc/Prop.md +doc/PropPublishStatus.md doc/PropUnityPackage.md doc/PropsApi.md doc/PurchaseProductListingRequest.md @@ -234,6 +246,7 @@ doc/RequestInviteRequest.md doc/RespondGroupJoinRequest.md doc/RespondNotificationV2Request.md doc/Response.md +doc/SearchGroupMembers200Response.md doc/SentNotification.md doc/ServiceQueueStats.md doc/ServiceStatus.md @@ -259,11 +272,13 @@ doc/TransactionAgreement.md doc/TransactionStatus.md doc/TransactionSteamInfo.md doc/TransactionSteamWalletInfo.md +doc/TransferGroupRequest.md doc/TwoFactorAuthCode.md doc/TwoFactorEmailCode.md doc/TwoFactorRecoveryCodes.md doc/TwoFactorRecoveryCodesOtpInner.md doc/UnityPackage.md +doc/UpdateAssetReviewNotesRequest.md doc/UpdateAvatarRequest.md doc/UpdateCalendarEventRequest.md doc/UpdateFavoriteGroupRequest.md @@ -274,6 +289,7 @@ doc/UpdateGroupRequest.md doc/UpdateGroupRoleRequest.md doc/UpdateInventoryItemRequest.md doc/UpdateInviteMessageRequest.md +doc/UpdatePropRequest.md doc/UpdateTiliaTOSRequest.md doc/UpdateUserBadgeRequest.md doc/UpdateUserNoteRequest.md @@ -328,9 +344,14 @@ 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/agreement.dart +lib/src/model/agreement_code.dart +lib/src/model/agreement_request.dart +lib/src/model/agreement_status.dart lib/src/model/api_config.dart lib/src/model/api_config_access_logs_urls.dart lib/src/model/api_config_announcement.dart +lib/src/model/api_config_audio_config.dart lib/src/model/api_config_avatar_perf_limiter.dart lib/src/model/api_config_constants.dart lib/src/model/api_config_constants_groups.dart @@ -342,15 +363,9 @@ lib/src/model/api_config_constants_instancepopulationbracketsmany.dart lib/src/model/api_config_constants_language.dart lib/src/model/api_config_download_url_list.dart lib/src/model/api_config_events.dart +lib/src/model/api_config_ios_version.dart lib/src/model/api_config_min_supported_client_build_number.dart lib/src/model/api_config_offline_analysis.dart -lib/src/model/api_config_report_categories.dart -lib/src/model/api_config_report_options.dart -lib/src/model/api_config_report_options_avatar.dart -lib/src/model/api_config_report_options_group.dart -lib/src/model/api_config_report_options_user.dart -lib/src/model/api_config_report_options_world.dart -lib/src/model/api_config_report_reasons.dart lib/src/model/api_health.dart lib/src/model/avatar.dart lib/src/model/avatar_moderation.dart @@ -387,10 +402,12 @@ lib/src/model/create_group_post_request.dart lib/src/model/create_group_request.dart lib/src/model/create_group_role_request.dart lib/src/model/create_instance_request.dart +lib/src/model/create_prop_request.dart lib/src/model/create_world_request.dart lib/src/model/current_user.dart lib/src/model/current_user_platform_history_inner.dart lib/src/model/current_user_presence.dart +lib/src/model/decline_group_invite_request.dart lib/src/model/developer_type.dart lib/src/model/disable2_fa_result.dart lib/src/model/discord_details.dart @@ -424,6 +441,8 @@ lib/src/model/group_access_type.dart lib/src/model/group_announcement.dart lib/src/model/group_audit_log_entry.dart 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_instance.dart lib/src/model/group_join_request_action.dart @@ -443,7 +462,13 @@ lib/src/model/group_role_template.dart lib/src/model/group_role_template_values.dart lib/src/model/group_role_template_values_roles.dart lib/src/model/group_search_sort.dart +lib/src/model/group_transferable.dart +lib/src/model/group_transferable_requirements.dart lib/src/model/group_user_visibility.dart +lib/src/model/image_animation_style.dart +lib/src/model/image_loop_style.dart +lib/src/model/image_mask.dart +lib/src/model/image_purpose.dart lib/src/model/info_push.dart lib/src/model/info_push_data.dart lib/src/model/info_push_data_article.dart @@ -475,6 +500,7 @@ lib/src/model/invite_request.dart lib/src/model/invite_response.dart lib/src/model/jam.dart lib/src/model/jam_state_change_dates.dart +lib/src/model/join_group_request.dart lib/src/model/license.dart lib/src/model/license_action.dart lib/src/model/license_group.dart @@ -499,6 +525,7 @@ lib/src/model/notification_detail_request_invite_response.dart lib/src/model/notification_detail_vote_to_kick.dart lib/src/model/notification_type.dart lib/src/model/notification_v2.dart +lib/src/model/notification_v2_details_boop.dart lib/src/model/notification_v2_response.dart lib/src/model/notification_v2_type.dart lib/src/model/ok_status.dart @@ -527,6 +554,7 @@ lib/src/model/product_purchase.dart lib/src/model/product_purchase_purchase_context.dart lib/src/model/product_type.dart lib/src/model/prop.dart +lib/src/model/prop_publish_status.dart lib/src/model/prop_unity_package.dart lib/src/model/purchase_product_listing_request.dart lib/src/model/region.dart @@ -539,6 +567,7 @@ lib/src/model/request_invite_request.dart lib/src/model/respond_group_join_request.dart lib/src/model/respond_notification_v2_request.dart lib/src/model/response.dart +lib/src/model/search_group_members200_response.dart lib/src/model/sent_notification.dart lib/src/model/service_queue_stats.dart lib/src/model/service_status.dart @@ -564,11 +593,13 @@ lib/src/model/transaction_agreement.dart lib/src/model/transaction_status.dart lib/src/model/transaction_steam_info.dart lib/src/model/transaction_steam_wallet_info.dart +lib/src/model/transfer_group_request.dart 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/unity_package.dart +lib/src/model/update_asset_review_notes_request.dart lib/src/model/update_avatar_request.dart lib/src/model/update_calendar_event_request.dart lib/src/model/update_favorite_group_request.dart @@ -579,6 +610,7 @@ lib/src/model/update_group_request.dart lib/src/model/update_group_role_request.dart lib/src/model/update_inventory_item_request.dart lib/src/model/update_invite_message_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_note_request.dart @@ -606,8 +638,13 @@ test/add_group_gallery_image_request_test.dart test/admin_asset_bundle_test.dart test/admin_unity_package_test.dart test/age_verification_status_test.dart +test/agreement_code_test.dart +test/agreement_request_test.dart +test/agreement_status_test.dart +test/agreement_test.dart test/api_config_access_logs_urls_test.dart test/api_config_announcement_test.dart +test/api_config_audio_config_test.dart test/api_config_avatar_perf_limiter_test.dart test/api_config_constants_groups_test.dart test/api_config_constants_instance_test.dart @@ -619,15 +656,9 @@ test/api_config_constants_language_test.dart test/api_config_constants_test.dart test/api_config_download_url_list_test.dart test/api_config_events_test.dart +test/api_config_ios_version_test.dart test/api_config_min_supported_client_build_number_test.dart test/api_config_offline_analysis_test.dart -test/api_config_report_categories_test.dart -test/api_config_report_options_avatar_test.dart -test/api_config_report_options_group_test.dart -test/api_config_report_options_test.dart -test/api_config_report_options_user_test.dart -test/api_config_report_options_world_test.dart -test/api_config_report_reasons_test.dart test/api_config_test.dart test/api_health_test.dart test/authentication_api_test.dart @@ -668,10 +699,12 @@ test/create_group_post_request_test.dart test/create_group_request_test.dart test/create_group_role_request_test.dart test/create_instance_request_test.dart +test/create_prop_request_test.dart test/create_world_request_test.dart test/current_user_platform_history_inner_test.dart test/current_user_presence_test.dart test/current_user_test.dart +test/decline_group_invite_request_test.dart test/developer_type_test.dart test/disable2_fa_result_test.dart test/discord_details_test.dart @@ -707,6 +740,8 @@ test/get_user_group_instances200_response_test.dart test/group_access_type_test.dart 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_test.dart test/group_gallery_test.dart test/group_instance_test.dart @@ -728,8 +763,14 @@ test/group_role_template_values_test.dart test/group_role_test.dart test/group_search_sort_test.dart test/group_test.dart +test/group_transferable_requirements_test.dart +test/group_transferable_test.dart test/group_user_visibility_test.dart test/groups_api_test.dart +test/image_animation_style_test.dart +test/image_loop_style_test.dart +test/image_mask_test.dart +test/image_purpose_test.dart test/info_push_data_article_content_test.dart test/info_push_data_article_test.dart test/info_push_data_clickable_test.dart @@ -765,6 +806,7 @@ test/invite_response_test.dart test/jam_state_change_dates_test.dart test/jam_test.dart test/jams_api_test.dart +test/join_group_request_test.dart test/license_action_test.dart test/license_group_test.dart test/license_test.dart @@ -789,6 +831,7 @@ test/notification_detail_request_invite_test.dart test/notification_detail_vote_to_kick_test.dart test/notification_test.dart test/notification_type_test.dart +test/notification_v2_details_boop_test.dart test/notification_v2_response_test.dart test/notification_v2_test.dart test/notification_v2_type_test.dart @@ -820,6 +863,7 @@ test/product_purchase_purchase_context_test.dart test/product_purchase_test.dart test/product_test.dart test/product_type_test.dart +test/prop_publish_status_test.dart test/prop_test.dart test/prop_unity_package_test.dart test/props_api_test.dart @@ -834,6 +878,7 @@ test/request_invite_request_test.dart test/respond_group_join_request_test.dart test/respond_notification_v2_request_test.dart test/response_test.dart +test/search_group_members200_response_test.dart test/sent_notification_test.dart test/service_queue_stats_test.dart test/service_status_test.dart @@ -859,11 +904,13 @@ test/transaction_status_test.dart test/transaction_steam_info_test.dart test/transaction_steam_wallet_info_test.dart test/transaction_test.dart +test/transfer_group_request_test.dart 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/unity_package_test.dart +test/update_asset_review_notes_request_test.dart test/update_avatar_request_test.dart test/update_calendar_event_request_test.dart test/update_favorite_group_request_test.dart @@ -874,6 +921,7 @@ test/update_group_request_test.dart test/update_group_role_request_test.dart test/update_inventory_item_request_test.dart test/update_invite_message_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_note_request_test.dart diff --git a/vrchat_dart_generated/.openapi-generator/VERSION b/vrchat_dart_generated/.openapi-generator/VERSION index 6328c542..1b2d969d 100644 --- a/vrchat_dart_generated/.openapi-generator/VERSION +++ b/vrchat_dart_generated/.openapi-generator/VERSION @@ -1 +1 @@ -7.17.0 +7.18.0 diff --git a/vrchat_dart_generated/CHANGELOG.md b/vrchat_dart_generated/CHANGELOG.md index 8f4fb3ac..234a61e3 100644 --- a/vrchat_dart_generated/CHANGELOG.md +++ b/vrchat_dart_generated/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.20.7 +- Updated to match spec + ## 1.20.6 - Updated to match spec diff --git a/vrchat_dart_generated/README.md b/vrchat_dart_generated/README.md index fd33cf2a..c8f92f28 100644 --- a/vrchat_dart_generated/README.md +++ b/vrchat_dart_generated/README.md @@ -82,8 +82,8 @@ 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.6 -- Generator version: 7.17.0 +- API version: 1.20.7 +- Generator version: 7.18.0 - Build package: org.openapitools.codegen.languages.DartDioClientCodegen For more information, please visit [https://github.com/VRChatAPI](https://github.com/VRChatAPI) @@ -133,7 +133,7 @@ final api = VrchatDartGenerated().getAuthenticationApi(); try { final response = await api.cancelPending2FA(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print("Exception when calling AuthenticationApi->cancelPending2FA: $e\n"); } @@ -234,13 +234,17 @@ Class | Method | HTTP request | Description [*FilesApi*](doc/FilesApi.md) | [**downloadFileVersion**](doc/FilesApi.md#downloadfileversion) | **GET** /file/{fileId}/{versionId} | Download File Version [*FilesApi*](doc/FilesApi.md) | [**finishFileDataUpload**](doc/FilesApi.md#finishfiledataupload) | **PUT** /file/{fileId}/{versionId}/{fileType}/finish | Finish FileData Upload [*FilesApi*](doc/FilesApi.md) | [**getAdminAssetBundle**](doc/FilesApi.md#getadminassetbundle) | **GET** /adminassetbundles/{adminAssetBundleId} | Get AdminAssetBundle +[*FilesApi*](doc/FilesApi.md) | [**getContentAgreementStatus**](doc/FilesApi.md#getcontentagreementstatus) | **GET** /agreement | Get Content Agreement Status [*FilesApi*](doc/FilesApi.md) | [**getFile**](doc/FilesApi.md#getfile) | **GET** /file/{fileId} | Show File [*FilesApi*](doc/FilesApi.md) | [**getFileAnalysis**](doc/FilesApi.md#getfileanalysis) | **GET** /analysis/{fileId}/{versionId} | Get File Version Analysis [*FilesApi*](doc/FilesApi.md) | [**getFileAnalysisSecurity**](doc/FilesApi.md#getfileanalysissecurity) | **GET** /analysis/{fileId}/{versionId}/security | Get File Version Analysis Security [*FilesApi*](doc/FilesApi.md) | [**getFileAnalysisStandard**](doc/FilesApi.md#getfileanalysisstandard) | **GET** /analysis/{fileId}/{versionId}/standard | Get File Version Analysis Standard [*FilesApi*](doc/FilesApi.md) | [**getFileDataUploadStatus**](doc/FilesApi.md#getfiledatauploadstatus) | **GET** /file/{fileId}/{versionId}/{fileType}/status | Check FileData Upload Status [*FilesApi*](doc/FilesApi.md) | [**getFiles**](doc/FilesApi.md#getfiles) | **GET** /files | List Files +[*FilesApi*](doc/FilesApi.md) | [**setGroupGalleryFileOrder**](doc/FilesApi.md#setgroupgalleryfileorder) | **PUT** /files/order | Set Group Gallery File Order [*FilesApi*](doc/FilesApi.md) | [**startFileDataUpload**](doc/FilesApi.md#startfiledataupload) | **PUT** /file/{fileId}/{versionId}/{fileType}/start | Start FileData Upload +[*FilesApi*](doc/FilesApi.md) | [**submitContentAgreement**](doc/FilesApi.md#submitcontentagreement) | **POST** /agreement | Submit Content Agreement +[*FilesApi*](doc/FilesApi.md) | [**updateAssetReviewNotes**](doc/FilesApi.md#updateassetreviewnotes) | **PUT** /assetReview/{assetReviewId}/notes | Update Asset Review Notes [*FilesApi*](doc/FilesApi.md) | [**uploadGalleryImage**](doc/FilesApi.md#uploadgalleryimage) | **POST** /gallery | Upload gallery image [*FilesApi*](doc/FilesApi.md) | [**uploadIcon**](doc/FilesApi.md#uploadicon) | **POST** /icon | Upload icon [*FilesApi*](doc/FilesApi.md) | [**uploadImage**](doc/FilesApi.md#uploadimage) | **POST** /file/image | Upload gallery image, icon, emoji or sticker @@ -254,12 +258,15 @@ Class | Method | HTTP request | Description [*GroupsApi*](doc/GroupsApi.md) | [**addGroupMemberRole**](doc/GroupsApi.md#addgroupmemberrole) | **PUT** /groups/{groupId}/members/{userId}/roles/{groupRoleId} | Add Role to GroupMember [*GroupsApi*](doc/GroupsApi.md) | [**addGroupPost**](doc/GroupsApi.md#addgrouppost) | **POST** /groups/{groupId}/posts | Create a post in a Group [*GroupsApi*](doc/GroupsApi.md) | [**banGroupMember**](doc/GroupsApi.md#bangroupmember) | **POST** /groups/{groupId}/bans | Ban Group Member +[*GroupsApi*](doc/GroupsApi.md) | [**blockGroup**](doc/GroupsApi.md#blockgroup) | **POST** /groups/{groupId}/block | Block Group [*GroupsApi*](doc/GroupsApi.md) | [**cancelGroupRequest**](doc/GroupsApi.md#cancelgrouprequest) | **DELETE** /groups/{groupId}/requests | Cancel Group Join Request +[*GroupsApi*](doc/GroupsApi.md) | [**cancelGroupTransfer**](doc/GroupsApi.md#cancelgrouptransfer) | **DELETE** /groups/{groupId}/transfer | Cancel Group Transfer [*GroupsApi*](doc/GroupsApi.md) | [**createGroup**](doc/GroupsApi.md#creategroup) | **POST** /groups | Create Group [*GroupsApi*](doc/GroupsApi.md) | [**createGroupAnnouncement**](doc/GroupsApi.md#creategroupannouncement) | **POST** /groups/{groupId}/announcement | Create Group Announcement [*GroupsApi*](doc/GroupsApi.md) | [**createGroupGallery**](doc/GroupsApi.md#creategroupgallery) | **POST** /groups/{groupId}/galleries | Create Group Gallery [*GroupsApi*](doc/GroupsApi.md) | [**createGroupInvite**](doc/GroupsApi.md#creategroupinvite) | **POST** /groups/{groupId}/invites | Invite User to Group [*GroupsApi*](doc/GroupsApi.md) | [**createGroupRole**](doc/GroupsApi.md#creategrouprole) | **POST** /groups/{groupId}/roles | Create GroupRole +[*GroupsApi*](doc/GroupsApi.md) | [**declineGroupInvite**](doc/GroupsApi.md#declinegroupinvite) | **PUT** /groups/{groupId}/invites | Decline Invite from Group [*GroupsApi*](doc/GroupsApi.md) | [**deleteGroup**](doc/GroupsApi.md#deletegroup) | **DELETE** /groups/{groupId} | Delete Group [*GroupsApi*](doc/GroupsApi.md) | [**deleteGroupAnnouncement**](doc/GroupsApi.md#deletegroupannouncement) | **DELETE** /groups/{groupId}/announcement | Delete Group Announcement [*GroupsApi*](doc/GroupsApi.md) | [**deleteGroupGallery**](doc/GroupsApi.md#deletegroupgallery) | **DELETE** /groups/{groupId}/galleries/{groupGalleryId} | Delete Group Gallery @@ -269,6 +276,7 @@ Class | Method | HTTP request | Description [*GroupsApi*](doc/GroupsApi.md) | [**deleteGroupRole**](doc/GroupsApi.md#deletegrouprole) | **DELETE** /groups/{groupId}/roles/{groupRoleId} | Delete Group Role [*GroupsApi*](doc/GroupsApi.md) | [**getGroup**](doc/GroupsApi.md#getgroup) | **GET** /groups/{groupId} | Get Group by ID [*GroupsApi*](doc/GroupsApi.md) | [**getGroupAnnouncements**](doc/GroupsApi.md#getgroupannouncements) | **GET** /groups/{groupId}/announcement | Get Group Announcement +[*GroupsApi*](doc/GroupsApi.md) | [**getGroupAuditLogEntryTypes**](doc/GroupsApi.md#getgroupauditlogentrytypes) | **GET** /groups/{groupId}/auditLogTypes | Get Group Audit Log Entry Types [*GroupsApi*](doc/GroupsApi.md) | [**getGroupAuditLogs**](doc/GroupsApi.md#getgroupauditlogs) | **GET** /groups/{groupId}/auditLogs | Get Group Audit Logs [*GroupsApi*](doc/GroupsApi.md) | [**getGroupBans**](doc/GroupsApi.md#getgroupbans) | **GET** /groups/{groupId}/bans | Get Group Bans [*GroupsApi*](doc/GroupsApi.md) | [**getGroupGalleryImages**](doc/GroupsApi.md#getgroupgalleryimages) | **GET** /groups/{groupId}/galleries/{groupGalleryId} | Get Group Gallery Images @@ -281,11 +289,14 @@ Class | Method | HTTP request | Description [*GroupsApi*](doc/GroupsApi.md) | [**getGroupRequests**](doc/GroupsApi.md#getgrouprequests) | **GET** /groups/{groupId}/requests | Get Group Join Requests [*GroupsApi*](doc/GroupsApi.md) | [**getGroupRoleTemplates**](doc/GroupsApi.md#getgrouproletemplates) | **GET** /groups/roleTemplates | Get Group Role Templates [*GroupsApi*](doc/GroupsApi.md) | [**getGroupRoles**](doc/GroupsApi.md#getgrouproles) | **GET** /groups/{groupId}/roles | Get Group Roles +[*GroupsApi*](doc/GroupsApi.md) | [**getGroupTransferability**](doc/GroupsApi.md#getgrouptransferability) | **GET** /groups/{groupId}/transfer | Get Group Transferability +[*GroupsApi*](doc/GroupsApi.md) | [**initiateOrAcceptGroupTransfer**](doc/GroupsApi.md#initiateoracceptgrouptransfer) | **POST** /groups/{groupId}/transfer | Initiate or Accept Group Transfer [*GroupsApi*](doc/GroupsApi.md) | [**joinGroup**](doc/GroupsApi.md#joingroup) | **POST** /groups/{groupId}/join | Join Group [*GroupsApi*](doc/GroupsApi.md) | [**kickGroupMember**](doc/GroupsApi.md#kickgroupmember) | **DELETE** /groups/{groupId}/members/{userId} | Kick Group Member [*GroupsApi*](doc/GroupsApi.md) | [**leaveGroup**](doc/GroupsApi.md#leavegroup) | **POST** /groups/{groupId}/leave | Leave Group [*GroupsApi*](doc/GroupsApi.md) | [**removeGroupMemberRole**](doc/GroupsApi.md#removegroupmemberrole) | **DELETE** /groups/{groupId}/members/{userId}/roles/{groupRoleId} | Remove Role from GroupMember [*GroupsApi*](doc/GroupsApi.md) | [**respondGroupJoinRequest**](doc/GroupsApi.md#respondgroupjoinrequest) | **PUT** /groups/{groupId}/requests/{userId} | Respond Group Join request +[*GroupsApi*](doc/GroupsApi.md) | [**searchGroupMembers**](doc/GroupsApi.md#searchgroupmembers) | **GET** /groups/{groupId}/members/search | Search Group Members [*GroupsApi*](doc/GroupsApi.md) | [**searchGroups**](doc/GroupsApi.md#searchgroups) | **GET** /groups | Search Group [*GroupsApi*](doc/GroupsApi.md) | [**unbanGroupMember**](doc/GroupsApi.md#unbangroupmember) | **DELETE** /groups/{groupId}/bans/{userId} | Unban Group Member [*GroupsApi*](doc/GroupsApi.md) | [**updateGroup**](doc/GroupsApi.md#updategroup) | **PUT** /groups/{groupId} | Update Group @@ -359,14 +370,25 @@ Class | Method | HTTP request | Description [*PrintsApi*](doc/PrintsApi.md) | [**getPrint**](doc/PrintsApi.md#getprint) | **GET** /prints/{printId} | Get Print [*PrintsApi*](doc/PrintsApi.md) | [**getUserPrints**](doc/PrintsApi.md#getuserprints) | **GET** /prints/user/{userId} | Get Own Prints [*PrintsApi*](doc/PrintsApi.md) | [**uploadPrint**](doc/PrintsApi.md#uploadprint) | **POST** /prints | Upload Print +[*PropsApi*](doc/PropsApi.md) | [**createProp**](doc/PropsApi.md#createprop) | **POST** /props | Create Prop +[*PropsApi*](doc/PropsApi.md) | [**deleteProp**](doc/PropsApi.md#deleteprop) | **DELETE** /props/{propId} | Delete Prop [*PropsApi*](doc/PropsApi.md) | [**getProp**](doc/PropsApi.md#getprop) | **GET** /props/{propId} | Get Prop +[*PropsApi*](doc/PropsApi.md) | [**getPropPublishStatus**](doc/PropsApi.md#getproppublishstatus) | **GET** /props/{propId}/publish | Get Prop Publish Status +[*PropsApi*](doc/PropsApi.md) | [**listProps**](doc/PropsApi.md#listprops) | **GET** /props | List Props +[*PropsApi*](doc/PropsApi.md) | [**publishProp**](doc/PropsApi.md#publishprop) | **PUT** /props/{propId}/publish | Publish Prop +[*PropsApi*](doc/PropsApi.md) | [**unpublishProp**](doc/PropsApi.md#unpublishprop) | **DELETE** /props/{propId}/publish | Unpublish Prop +[*PropsApi*](doc/PropsApi.md) | [**updateProp**](doc/PropsApi.md#updateprop) | **PUT** /props/{propId} | Update Prop [*UsersApi*](doc/UsersApi.md) | [**addTags**](doc/UsersApi.md#addtags) | **POST** /users/{userId}/addTags | Add User Tags [*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) | [**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 [*UsersApi*](doc/UsersApi.md) | [**getMutualGroups**](doc/UsersApi.md#getmutualgroups) | **GET** /users/{userId}/mutuals/groups | Get User Mutual Groups [*UsersApi*](doc/UsersApi.md) | [**getMutuals**](doc/UsersApi.md#getmutuals) | **GET** /users/{userId}/mutuals | Get User Mutuals [*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) | [**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 @@ -383,6 +405,7 @@ Class | Method | HTTP request | Description [*UsersApi*](doc/UsersApi.md) | [**updateUserNote**](doc/UsersApi.md#updateusernote) | **POST** /userNotes | Update User Note [*WorldsApi*](doc/WorldsApi.md) | [**checkUserPersistenceExists**](doc/WorldsApi.md#checkuserpersistenceexists) | **GET** /users/{userId}/{worldId}/persist/exists | Check User Persistence Exists [*WorldsApi*](doc/WorldsApi.md) | [**createWorld**](doc/WorldsApi.md#createworld) | **POST** /worlds | Create World +[*WorldsApi*](doc/WorldsApi.md) | [**deleteAllUserPersistenceData**](doc/WorldsApi.md#deletealluserpersistencedata) | **DELETE** /users/{userId}/persist | Delete All User Persistence Data [*WorldsApi*](doc/WorldsApi.md) | [**deleteUserPersistence**](doc/WorldsApi.md#deleteuserpersistence) | **DELETE** /users/{userId}/{worldId}/persist | Delete User Persistence [*WorldsApi*](doc/WorldsApi.md) | [**deleteWorld**](doc/WorldsApi.md#deleteworld) | **DELETE** /worlds/{worldId} | Delete World [*WorldsApi*](doc/WorldsApi.md) | [**getActiveWorlds**](doc/WorldsApi.md#getactiveworlds) | **GET** /worlds/active | List Active Worlds @@ -403,6 +426,7 @@ Class | Method | HTTP request | Description - [APIConfig](doc/APIConfig.md) - [APIConfigAccessLogsUrls](doc/APIConfigAccessLogsUrls.md) - [APIConfigAnnouncement](doc/APIConfigAnnouncement.md) + - [APIConfigAudioConfig](doc/APIConfigAudioConfig.md) - [APIConfigAvatarPerfLimiter](doc/APIConfigAvatarPerfLimiter.md) - [APIConfigConstants](doc/APIConfigConstants.md) - [APIConfigConstantsGROUPS](doc/APIConfigConstantsGROUPS.md) @@ -414,15 +438,9 @@ Class | Method | HTTP request | Description - [APIConfigConstantsLANGUAGE](doc/APIConfigConstantsLANGUAGE.md) - [APIConfigDownloadURLList](doc/APIConfigDownloadURLList.md) - [APIConfigEvents](doc/APIConfigEvents.md) + - [APIConfigIosVersion](doc/APIConfigIosVersion.md) - [APIConfigMinSupportedClientBuildNumber](doc/APIConfigMinSupportedClientBuildNumber.md) - [APIConfigOfflineAnalysis](doc/APIConfigOfflineAnalysis.md) - - [APIConfigReportCategories](doc/APIConfigReportCategories.md) - - [APIConfigReportOptions](doc/APIConfigReportOptions.md) - - [APIConfigReportOptionsAvatar](doc/APIConfigReportOptionsAvatar.md) - - [APIConfigReportOptionsGroup](doc/APIConfigReportOptionsGroup.md) - - [APIConfigReportOptionsUser](doc/APIConfigReportOptionsUser.md) - - [APIConfigReportOptionsWorld](doc/APIConfigReportOptionsWorld.md) - - [APIConfigReportReasons](doc/APIConfigReportReasons.md) - [APIHealth](doc/APIHealth.md) - [AccountDeletionLog](doc/AccountDeletionLog.md) - [AddFavoriteRequest](doc/AddFavoriteRequest.md) @@ -430,6 +448,10 @@ Class | Method | HTTP request | Description - [AdminAssetBundle](doc/AdminAssetBundle.md) - [AdminUnityPackage](doc/AdminUnityPackage.md) - [AgeVerificationStatus](doc/AgeVerificationStatus.md) + - [Agreement](doc/Agreement.md) + - [AgreementCode](doc/AgreementCode.md) + - [AgreementRequest](doc/AgreementRequest.md) + - [AgreementStatus](doc/AgreementStatus.md) - [Avatar](doc/Avatar.md) - [AvatarModeration](doc/AvatarModeration.md) - [AvatarModerationCreated](doc/AvatarModerationCreated.md) @@ -465,10 +487,12 @@ Class | Method | HTTP request | Description - [CreateGroupRequest](doc/CreateGroupRequest.md) - [CreateGroupRoleRequest](doc/CreateGroupRoleRequest.md) - [CreateInstanceRequest](doc/CreateInstanceRequest.md) + - [CreatePropRequest](doc/CreatePropRequest.md) - [CreateWorldRequest](doc/CreateWorldRequest.md) - [CurrentUser](doc/CurrentUser.md) - [CurrentUserPlatformHistoryInner](doc/CurrentUserPlatformHistoryInner.md) - [CurrentUserPresence](doc/CurrentUserPresence.md) + - [DeclineGroupInviteRequest](doc/DeclineGroupInviteRequest.md) - [DeveloperType](doc/DeveloperType.md) - [Disable2FAResult](doc/Disable2FAResult.md) - [DiscordDetails](doc/DiscordDetails.md) @@ -502,6 +526,8 @@ Class | Method | HTTP request | Description - [GroupAnnouncement](doc/GroupAnnouncement.md) - [GroupAuditLogEntry](doc/GroupAuditLogEntry.md) - [GroupGallery](doc/GroupGallery.md) + - [GroupGalleryFileOrder](doc/GroupGalleryFileOrder.md) + - [GroupGalleryFileOrderRequest](doc/GroupGalleryFileOrderRequest.md) - [GroupGalleryImage](doc/GroupGalleryImage.md) - [GroupInstance](doc/GroupInstance.md) - [GroupJoinRequestAction](doc/GroupJoinRequestAction.md) @@ -521,7 +547,13 @@ Class | Method | HTTP request | Description - [GroupRoleTemplateValues](doc/GroupRoleTemplateValues.md) - [GroupRoleTemplateValuesRoles](doc/GroupRoleTemplateValuesRoles.md) - [GroupSearchSort](doc/GroupSearchSort.md) + - [GroupTransferable](doc/GroupTransferable.md) + - [GroupTransferableRequirements](doc/GroupTransferableRequirements.md) - [GroupUserVisibility](doc/GroupUserVisibility.md) + - [ImageAnimationStyle](doc/ImageAnimationStyle.md) + - [ImageLoopStyle](doc/ImageLoopStyle.md) + - [ImageMask](doc/ImageMask.md) + - [ImagePurpose](doc/ImagePurpose.md) - [InfoPush](doc/InfoPush.md) - [InfoPushData](doc/InfoPushData.md) - [InfoPushDataArticle](doc/InfoPushDataArticle.md) @@ -553,6 +585,7 @@ Class | Method | HTTP request | Description - [InviteResponse](doc/InviteResponse.md) - [Jam](doc/Jam.md) - [JamStateChangeDates](doc/JamStateChangeDates.md) + - [JoinGroupRequest](doc/JoinGroupRequest.md) - [License](doc/License.md) - [LicenseAction](doc/LicenseAction.md) - [LicenseGroup](doc/LicenseGroup.md) @@ -577,6 +610,7 @@ Class | Method | HTTP request | Description - [NotificationDetailVoteToKick](doc/NotificationDetailVoteToKick.md) - [NotificationType](doc/NotificationType.md) - [NotificationV2](doc/NotificationV2.md) + - [NotificationV2DetailsBoop](doc/NotificationV2DetailsBoop.md) - [NotificationV2Response](doc/NotificationV2Response.md) - [NotificationV2Type](doc/NotificationV2Type.md) - [OkStatus](doc/OkStatus.md) @@ -605,6 +639,7 @@ Class | Method | HTTP request | Description - [ProductPurchasePurchaseContext](doc/ProductPurchasePurchaseContext.md) - [ProductType](doc/ProductType.md) - [Prop](doc/Prop.md) + - [PropPublishStatus](doc/PropPublishStatus.md) - [PropUnityPackage](doc/PropUnityPackage.md) - [PurchaseProductListingRequest](doc/PurchaseProductListingRequest.md) - [Region](doc/Region.md) @@ -617,6 +652,7 @@ Class | Method | HTTP request | Description - [RespondGroupJoinRequest](doc/RespondGroupJoinRequest.md) - [RespondNotificationV2Request](doc/RespondNotificationV2Request.md) - [Response](doc/Response.md) + - [SearchGroupMembers200Response](doc/SearchGroupMembers200Response.md) - [SentNotification](doc/SentNotification.md) - [ServiceQueueStats](doc/ServiceQueueStats.md) - [ServiceStatus](doc/ServiceStatus.md) @@ -642,11 +678,13 @@ Class | Method | HTTP request | Description - [TransactionStatus](doc/TransactionStatus.md) - [TransactionSteamInfo](doc/TransactionSteamInfo.md) - [TransactionSteamWalletInfo](doc/TransactionSteamWalletInfo.md) + - [TransferGroupRequest](doc/TransferGroupRequest.md) - [TwoFactorAuthCode](doc/TwoFactorAuthCode.md) - [TwoFactorEmailCode](doc/TwoFactorEmailCode.md) - [TwoFactorRecoveryCodes](doc/TwoFactorRecoveryCodes.md) - [TwoFactorRecoveryCodesOtpInner](doc/TwoFactorRecoveryCodesOtpInner.md) - [UnityPackage](doc/UnityPackage.md) + - [UpdateAssetReviewNotesRequest](doc/UpdateAssetReviewNotesRequest.md) - [UpdateAvatarRequest](doc/UpdateAvatarRequest.md) - [UpdateCalendarEventRequest](doc/UpdateCalendarEventRequest.md) - [UpdateFavoriteGroupRequest](doc/UpdateFavoriteGroupRequest.md) @@ -657,6 +695,7 @@ Class | Method | HTTP request | Description - [UpdateGroupRoleRequest](doc/UpdateGroupRoleRequest.md) - [UpdateInventoryItemRequest](doc/UpdateInventoryItemRequest.md) - [UpdateInviteMessageRequest](doc/UpdateInviteMessageRequest.md) + - [UpdatePropRequest](doc/UpdatePropRequest.md) - [UpdateTiliaTOSRequest](doc/UpdateTiliaTOSRequest.md) - [UpdateUserBadgeRequest](doc/UpdateUserBadgeRequest.md) - [UpdateUserNoteRequest](doc/UpdateUserNoteRequest.md) diff --git a/vrchat_dart_generated/doc/APIConfig.md b/vrchat_dart_generated/doc/APIConfig.md index ccbb6b47..133d7415 100644 --- a/vrchat_dart_generated/doc/APIConfig.md +++ b/vrchat_dart_generated/doc/APIConfig.md @@ -8,6 +8,9 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**campaignStatus** | **String** | The current platform-wide event taking place | +**disableBackgroundPreloads** | **bool** | Toggles if certain assets are preloaded in the background | [default to true] +**locationGiftingNonSubPrioEnabled** | **bool** | Toggles whether users without a current VRC+ subscription are priority recipients for gift drops | [default to true] **voiceEnableDegradation** | **bool** | Unknown, probably voice optimization testing | [default to false] **voiceEnableReceiverLimiting** | **bool** | Unknown, probably voice optimization testing | [default to true] **accessLogsUrls** | [**APIConfigAccessLogsUrls**](APIConfigAccessLogsUrls.md) | | @@ -20,6 +23,7 @@ Name | Type | Description | Notes **analyticsSegmentNewUIPctOfUsers** | **int** | Unknown | **analyticsSegmentNewUISalt** | **String** | Unknown | **announcements** | [**Set<APIConfigAnnouncement>**](APIConfigAnnouncement.md) | Public Announcements | +**audioConfig** | [**APIConfigAudioConfig**](APIConfigAudioConfig.md) | | [optional] **availableLanguageCodes** | **List<String>** | List of supported Languages | **availableLanguages** | **List<String>** | List of supported Languages | **avatarPerfLimiter** | [**APIConfigAvatarPerfLimiter**](APIConfigAvatarPerfLimiter.md) | | @@ -43,7 +47,8 @@ Name | Type | Description | Notes **constants** | [**APIConfigConstants**](APIConfigConstants.md) | | **contactEmail** | **String** | VRChat's contact email | **copyrightEmail** | **String** | VRChat's copyright-issues-related email | -**currentPrivacyVersion** | **int** | Current version number of the Privacy Agreement | [optional] [default to 1] +**copyrightFormUrl** | **String** | VRChat's DMCA claim webform url | +**currentPrivacyVersion** | **int** | Current version number of the Privacy Agreement | [default to 1] **currentTOSVersion** | **int** | Current version number of the Terms of Service | **defaultAvatar** | **String** | | **defaultStickerSet** | **String** | | @@ -72,9 +77,13 @@ 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 | -**economyPauseEnd** | **String** | Unknown | [optional] -**economyPauseStart** | **String** | Unknown | [optional] -**economyState** | **int** | Unknown | [optional] [default to 1] +**economyLedgerBackfill** | **bool** | Unknown | +**economyLedgerMigrationStop** | **String** | Unknown | +**economyLedgerMode** | **String** | Unknown | +**economyPauseEnd** | [**DateTime**](DateTime.md) | Unknown | +**economyPauseStart** | [**DateTime**](DateTime.md) | Unknown | +**economyPurchaseRepairEnabled** | **bool** | Unknown | +**economyState** | **int** | Unknown | [default to 1] **events** | [**APIConfigEvents**](APIConfigEvents.md) | | **forceUseLatestWorld** | **bool** | Unknown | [default to true] **giftDisplayType** | **String** | Display type of gifts | @@ -83,7 +92,11 @@ Name | Type | Description | Notes **homepageRedirectTarget** | **String** | Redirect target if you try to open the base API domain in your browser | [default to 'https://hello.vrchat.com'] **hubWorldId** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | **imageHostUrlList** | **List<String>** | A list of explicitly allowed origins that worlds can request images from via the Udon's [VRCImageDownloader#DownloadImage](https://creators.vrchat.com/worlds/udon/image-loading/#downloadimage). | +**iosAppVersion** | **List<String>** | Current app version for iOS | +**iosVersion** | [**APIConfigIosVersion**](APIConfigIosVersion.md) | | **jobsEmail** | **String** | VRChat's job application email | +**maxUserEmoji** | **int** | The maximum number of custom emoji each user may have at a given time. | [default to 18] +**maxUserStickers** | **int** | The maximum number of custom stickers each user may have at a given time. | [default to 18] **minSupportedClientBuildNumber** | [**APIConfigMinSupportedClientBuildNumber**](APIConfigMinSupportedClientBuildNumber.md) | | **minimumUnityVersionForUploads** | **String** | Minimum Unity version required for uploading assets | [default to '2019.0.0f1'] **moderationEmail** | **String** | VRChat's moderation related email | @@ -94,10 +107,10 @@ Name | Type | Description | Notes **playerUrlResolverSha1** | **String** | Currently used youtube-dl.exe hash in SHA1-delimited format | **playerUrlResolverVersion** | **String** | Currently used youtube-dl.exe version | **publicKey** | **String** | Public key, hex encoded | -**reportCategories** | [**APIConfigReportCategories**](APIConfigReportCategories.md) | | +**reportCategories** | [**Map<String, ReportCategory>**](ReportCategory.md) | Categories available for reporting objectionable content | **reportFormUrl** | **String** | URL to the report form | [default to 'https://help.vrchat.com/hc/en-us/requests/new?ticket_form_id=1500000182242&tf_360056455174=user_report&tf_360057451993={userId}&tf_1500001445142={reportedId}&tf_subject={reason} {category} By {contentType} {reportedName}&tf_description={description}'] -**reportOptions** | [**APIConfigReportOptions**](APIConfigReportOptions.md) | | -**reportReasons** | [**APIConfigReportReasons**](APIConfigReportReasons.md) | | +**reportOptions** | [**Map<String, Map<String, List<String>>>**](Map.md) | Options for reporting content. Select a key+value from this mapping as the `type` of the report. Select one key+value from the object at reportOptions[type] as the `category` of the report. reportCategories[category] contains user-facing text to display for all possible categories. Select one value from the array at reportOptions[type][category] as the `reason` of the report. reportReasons[reason] contains user-facing text to display for all possible categories. | +**reportReasons** | [**Map<String, ReportReason>**](ReportReason.md) | Reasons available for submitting a report | **requireAgeVerificationBetaTag** | **bool** | | **sdkDeveloperFaqUrl** | **String** | Link to the developer FAQ | **sdkDiscordUrl** | **String** | Link to the official VRChat Discord | diff --git a/vrchat_dart_generated/doc/APIConfigAudioConfig.md b/vrchat_dart_generated/doc/APIConfigAudioConfig.md new file mode 100644 index 00000000..061a8428 --- /dev/null +++ b/vrchat_dart_generated/doc/APIConfigAudioConfig.md @@ -0,0 +1,25 @@ +# vrchat_dart_generated.model.APIConfigAudioConfig + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**eq** | **num** | Unknown | +**nearFieldILDNudge** | **num** | Unknown | +**nearFieldILDNudgeDistance** | **num** | Unknown | +**nearFieldILDNudgeEarRadius** | **num** | Unknown | +**perEarDirectionalityEarRadius** | **num** | Unknown | +**perEarDirectionalityFadeDistance** | **num** | Unknown | +**perEarDirectionalityMaxScale** | **num** | Unknown | +**perEarDirectionalityPCFactor** | **num** | Unknown | +**trackingScaleMax** | **num** | Unknown | +**trackingScaleMin** | **num** | Unknown | +**trackingScaleMultiplier** | **num** | Unknown | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/APIConfigEvents.md b/vrchat_dart_generated/doc/APIConfigEvents.md index 7513862e..890ddfcf 100644 --- a/vrchat_dart_generated/doc/APIConfigEvents.md +++ b/vrchat_dart_generated/doc/APIConfigEvents.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **playerOrderBucketSize** | **int** | Unknown | **playerOrderFactor** | **int** | Unknown | **slowUpdateFactorThreshold** | **int** | Unknown | +**useDirectPlayerSerialization** | **bool** | Unknown | **viewSegmentLength** | **int** | Unknown | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/APIConfigReportOptionsGroup.md b/vrchat_dart_generated/doc/APIConfigIosVersion.md similarity index 62% rename from vrchat_dart_generated/doc/APIConfigReportOptionsGroup.md rename to vrchat_dart_generated/doc/APIConfigIosVersion.md index e356e957..2d5c2d51 100644 --- a/vrchat_dart_generated/doc/APIConfigReportOptionsGroup.md +++ b/vrchat_dart_generated/doc/APIConfigIosVersion.md @@ -1,4 +1,4 @@ -# vrchat_dart_generated.model.APIConfigReportOptionsGroup +# vrchat_dart_generated.model.APIConfigIosVersion ## Load the model package ```dart @@ -8,9 +8,8 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**groupstore** | **List<String>** | | [optional] -**image** | **List<String>** | | [optional] -**text** | **List<String>** | | [optional] +**major** | **int** | | +**minor** | **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/APIConfigReportCategories.md b/vrchat_dart_generated/doc/APIConfigReportCategories.md deleted file mode 100644 index c0545392..00000000 --- a/vrchat_dart_generated/doc/APIConfigReportCategories.md +++ /dev/null @@ -1,27 +0,0 @@ -# vrchat_dart_generated.model.APIConfigReportCategories - -## Load the model package -```dart -import 'package:vrchat_dart_generated/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**avatar** | [**ReportCategory**](ReportCategory.md) | | -**avatarpage** | [**ReportCategory**](ReportCategory.md) | | [optional] -**behavior** | [**ReportCategory**](ReportCategory.md) | | -**chat** | [**ReportCategory**](ReportCategory.md) | | -**emoji** | [**ReportCategory**](ReportCategory.md) | | [optional] -**environment** | [**ReportCategory**](ReportCategory.md) | | -**groupstore** | [**ReportCategory**](ReportCategory.md) | | -**image** | [**ReportCategory**](ReportCategory.md) | | -**sticker** | [**ReportCategory**](ReportCategory.md) | | [optional] -**text** | [**ReportCategory**](ReportCategory.md) | | -**warnings** | [**ReportCategory**](ReportCategory.md) | | -**worldimage** | [**ReportCategory**](ReportCategory.md) | | -**worldstore** | [**ReportCategory**](ReportCategory.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/APIConfigReportOptions.md b/vrchat_dart_generated/doc/APIConfigReportOptions.md deleted file mode 100644 index 37093d59..00000000 --- a/vrchat_dart_generated/doc/APIConfigReportOptions.md +++ /dev/null @@ -1,18 +0,0 @@ -# vrchat_dart_generated.model.APIConfigReportOptions - -## Load the model package -```dart -import 'package:vrchat_dart_generated/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**avatar** | [**APIConfigReportOptionsAvatar**](APIConfigReportOptionsAvatar.md) | | [optional] -**group** | [**APIConfigReportOptionsGroup**](APIConfigReportOptionsGroup.md) | | [optional] -**user** | [**APIConfigReportOptionsUser**](APIConfigReportOptionsUser.md) | | [optional] -**world** | [**APIConfigReportOptionsWorld**](APIConfigReportOptionsWorld.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/APIConfigReportOptionsUser.md b/vrchat_dart_generated/doc/APIConfigReportOptionsUser.md deleted file mode 100644 index ab76b5c8..00000000 --- a/vrchat_dart_generated/doc/APIConfigReportOptionsUser.md +++ /dev/null @@ -1,20 +0,0 @@ -# vrchat_dart_generated.model.APIConfigReportOptionsUser - -## Load the model package -```dart -import 'package:vrchat_dart_generated/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**behavior** | **List<String>** | | [optional] -**chat** | **List<String>** | | [optional] -**emoji** | **List<String>** | | [optional] -**image** | **List<String>** | | [optional] -**sticker** | **List<String>** | | [optional] -**text** | **List<String>** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/vrchat_dart_generated/doc/APIConfigReportReasons.md b/vrchat_dart_generated/doc/APIConfigReportReasons.md deleted file mode 100644 index 3624aed4..00000000 --- a/vrchat_dart_generated/doc/APIConfigReportReasons.md +++ /dev/null @@ -1,36 +0,0 @@ -# vrchat_dart_generated.model.APIConfigReportReasons - -## Load the model package -```dart -import 'package:vrchat_dart_generated/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**billing** | [**ReportReason**](ReportReason.md) | | -**botting** | [**ReportReason**](ReportReason.md) | | -**cancellation** | [**ReportReason**](ReportReason.md) | | -**copyright** | [**ReportReason**](ReportReason.md) | | [optional] -**fraud** | [**ReportReason**](ReportReason.md) | | [optional] -**gore** | [**ReportReason**](ReportReason.md) | | -**hacking** | [**ReportReason**](ReportReason.md) | | -**harassing** | [**ReportReason**](ReportReason.md) | | -**hateful** | [**ReportReason**](ReportReason.md) | | -**impersonation** | [**ReportReason**](ReportReason.md) | | -**inappropriate** | [**ReportReason**](ReportReason.md) | | -**leaking** | [**ReportReason**](ReportReason.md) | | -**malicious** | [**ReportReason**](ReportReason.md) | | -**missing** | [**ReportReason**](ReportReason.md) | | -**nudity** | [**ReportReason**](ReportReason.md) | | -**renewal** | [**ReportReason**](ReportReason.md) | | -**security** | [**ReportReason**](ReportReason.md) | | -**service** | [**ReportReason**](ReportReason.md) | | -**sexual** | [**ReportReason**](ReportReason.md) | | -**technical** | [**ReportReason**](ReportReason.md) | | [optional] -**threatening** | [**ReportReason**](ReportReason.md) | | -**visuals** | [**ReportReason**](ReportReason.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/AdminUnityPackage.md b/vrchat_dart_generated/doc/AdminUnityPackage.md index c907513e..c241f7b7 100644 --- a/vrchat_dart_generated/doc/AdminUnityPackage.md +++ b/vrchat_dart_generated/doc/AdminUnityPackage.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **assetUrl** | **String** | | **assetVersion** | **int** | | -**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | +**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | **unityVersion** | **String** | | [default to '2022.3.22f1-DWR'] **variant** | **String** | | diff --git a/vrchat_dart_generated/doc/Agreement.md b/vrchat_dart_generated/doc/Agreement.md new file mode 100644 index 00000000..e43eaa8b --- /dev/null +++ b/vrchat_dart_generated/doc/Agreement.md @@ -0,0 +1,22 @@ +# vrchat_dart_generated.model.Agreement + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**agreementCode** | [**AgreementCode**](AgreementCode.md) | | +**agreementFulltext** | **String** | The full text of the agreement. | [optional] +**contentId** | **String** | The id of the content being uploaded, such as a WorldID, AvatarID, or PropID. | +**created** | **String** | When the agreement was created | +**id** | **String** | The id of the agreement. | +**tags** | **List<String>** | | +**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. | +**version** | **int** | The version of the agreement. | + +[[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/APIConfigReportOptionsAvatar.md b/vrchat_dart_generated/doc/AgreementCode.md similarity index 61% rename from vrchat_dart_generated/doc/APIConfigReportOptionsAvatar.md rename to vrchat_dart_generated/doc/AgreementCode.md index 99ad74e9..265548ad 100644 --- a/vrchat_dart_generated/doc/APIConfigReportOptionsAvatar.md +++ b/vrchat_dart_generated/doc/AgreementCode.md @@ -1,4 +1,4 @@ -# vrchat_dart_generated.model.APIConfigReportOptionsAvatar +# vrchat_dart_generated.model.AgreementCode ## Load the model package ```dart @@ -8,9 +8,6 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**avatar** | **List<String>** | | [optional] -**avatarpage** | **List<String>** | | [optional] -**warnings** | **List<String>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/AgreementRequest.md b/vrchat_dart_generated/doc/AgreementRequest.md new file mode 100644 index 00000000..53d7cf6e --- /dev/null +++ b/vrchat_dart_generated/doc/AgreementRequest.md @@ -0,0 +1,18 @@ +# vrchat_dart_generated.model.AgreementRequest + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**agreementCode** | [**AgreementCode**](AgreementCode.md) | | +**agreementFulltext** | **String** | The full text of the agreement (currently `By clicking OK, I certify that I have the necessary rights to upload this content and that it will not infringe on any third-party legal or intellectual property rights.`). | +**contentId** | **String** | The id of the content being uploaded, such as a WorldID, AvatarID, or PropID. | +**version** | **int** | The version of the agreement (currently `1`). | + +[[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/AgreementStatus.md b/vrchat_dart_generated/doc/AgreementStatus.md new file mode 100644 index 00000000..707d8137 --- /dev/null +++ b/vrchat_dart_generated/doc/AgreementStatus.md @@ -0,0 +1,19 @@ +# vrchat_dart_generated.model.AgreementStatus + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**agreed** | **bool** | Whether the user has agreed for this content. | +**agreementCode** | [**AgreementCode**](AgreementCode.md) | | +**contentId** | **String** | The id of the content being uploaded, such as a WorldID, AvatarID, or PropID. | +**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. | +**version** | **int** | The version of the agreement. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/AuthenticationApi.md b/vrchat_dart_generated/doc/AuthenticationApi.md index ab24dd92..5c8ecd82 100644 --- a/vrchat_dart_generated/doc/AuthenticationApi.md +++ b/vrchat_dart_generated/doc/AuthenticationApi.md @@ -54,7 +54,7 @@ final api = VrchatDartGenerated().getAuthenticationApi(); try { final response = api.cancelPending2FA(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->cancelPending2FA: $e\n'); } ``` @@ -97,7 +97,7 @@ final String excludeUserId = excludeUserId_example; // String | Exclude by UserI try { final response = api.checkUserExists(email, displayName, username, excludeUserId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->checkUserExists: $e\n'); } ``` @@ -143,7 +143,7 @@ final String verifyEmail = eml_00000000-0000-0000-0000-000000000000; // String | try { api.confirmEmail(id, verifyEmail); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->confirmEmail: $e\n'); } ``` @@ -191,7 +191,7 @@ final CreateAvatarModerationRequest createAvatarModerationRequest = ; // CreateA try { final response = api.createGlobalAvatarModeration(createAvatarModerationRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->createGlobalAvatarModeration: $e\n'); } ``` @@ -239,7 +239,7 @@ final AvatarModerationType avatarModerationType = ; // AvatarModerationType | Th try { final response = api.deleteGlobalAvatarModeration(targetAvatarId, avatarModerationType); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->deleteGlobalAvatarModeration: $e\n'); } ``` @@ -287,7 +287,7 @@ final String moderationReportId = moderationReportId_example; // String | The mo try { final response = api.deleteModerationReport(moderationReportId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->deleteModerationReport: $e\n'); } ``` @@ -334,7 +334,7 @@ final String userId = userId_example; // String | Must be a valid user ID. try { final response = api.deleteUser(userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->deleteUser: $e\n'); } ``` @@ -380,7 +380,7 @@ final api = VrchatDartGenerated().getAuthenticationApi(); try { final response = api.disable2FA(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->disable2FA: $e\n'); } ``` @@ -423,7 +423,7 @@ final api = VrchatDartGenerated().getAuthenticationApi(); try { final response = api.enable2FA(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->enable2FA: $e\n'); } ``` @@ -473,7 +473,7 @@ final api = VrchatDartGenerated().getAuthenticationApi(); try { final response = api.getCurrentUser(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->getCurrentUser: $e\n'); } ``` @@ -516,7 +516,7 @@ final api = VrchatDartGenerated().getAuthenticationApi(); try { final response = api.getGlobalAvatarModerations(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->getGlobalAvatarModerations: $e\n'); } ``` @@ -564,7 +564,7 @@ final String type = type_example; // String | Filter for moderation reports. One try { final response = api.getModerationReports(offset, n, reportingUserId, status, type); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->getModerationReports: $e\n'); } ``` @@ -614,7 +614,7 @@ final api = VrchatDartGenerated().getAuthenticationApi(); try { final response = api.getRecoveryCodes(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->getRecoveryCodes: $e\n'); } ``` @@ -657,7 +657,7 @@ final api = VrchatDartGenerated().getAuthenticationApi(); try { final response = api.logout(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->logout: $e\n'); } ``` @@ -697,7 +697,7 @@ final RegisterUserAccountRequest registerUserAccountRequest = ; // RegisterUserA try { final response = api.registerUserAccount(registerUserAccountRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->registerUserAccount: $e\n'); } ``` @@ -743,7 +743,7 @@ final api = VrchatDartGenerated().getAuthenticationApi(); try { final response = api.resendEmailConfirmation(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->resendEmailConfirmation: $e\n'); } ``` @@ -787,7 +787,7 @@ final SubmitModerationReportRequest submitModerationReportRequest = ; // SubmitM try { final response = api.submitModerationReport(submitModerationReportRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->submitModerationReport: $e\n'); } ``` @@ -834,7 +834,7 @@ final TwoFactorAuthCode twoFactorAuthCode = ; // TwoFactorAuthCode | try { final response = api.verify2FA(twoFactorAuthCode); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->verify2FA: $e\n'); } ``` @@ -881,7 +881,7 @@ final TwoFactorEmailCode twoFactorEmailCode = ; // TwoFactorEmailCode | try { final response = api.verify2FAEmailCode(twoFactorEmailCode); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->verify2FAEmailCode: $e\n'); } ``` @@ -927,7 +927,7 @@ final api = VrchatDartGenerated().getAuthenticationApi(); try { final response = api.verifyAuthToken(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->verifyAuthToken: $e\n'); } ``` @@ -967,7 +967,7 @@ final String userId = userId_example; // String | Filter by UserID. try { api.verifyLoginPlace(token, userId); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->verifyLoginPlace: $e\n'); } ``` @@ -1015,7 +1015,7 @@ final TwoFactorAuthCode twoFactorAuthCode = ; // TwoFactorAuthCode | try { final response = api.verifyPending2FA(twoFactorAuthCode); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->verifyPending2FA: $e\n'); } ``` @@ -1062,7 +1062,7 @@ final TwoFactorAuthCode twoFactorAuthCode = ; // TwoFactorAuthCode | try { final response = api.verifyRecoveryCode(twoFactorAuthCode); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AuthenticationApi->verifyRecoveryCode: $e\n'); } ``` diff --git a/vrchat_dart_generated/doc/Avatar.md b/vrchat_dart_generated/doc/Avatar.md index 032df87e..ad1dbb20 100644 --- a/vrchat_dart_generated/doc/Avatar.md +++ b/vrchat_dart_generated/doc/Avatar.md @@ -9,6 +9,7 @@ import 'package:vrchat_dart_generated/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **acknowledgements** | **String** | | [optional] +**activeAssetReviewId** | **String** | Only present for the avatar author on avatars under active review. | [optional] **assetUrl** | **String** | Not present from general search `/avatars`, only on specific requests `/avatars/{avatarId}`. | [optional] **assetUrlObject** | **Object** | Not present from general search `/avatars`, only on specific requests `/avatars/{avatarId}`. **Deprecation:** `Object` has unknown usage/fields, and is always empty. Use normal `Url` field instead. | [optional] **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. | @@ -23,6 +24,7 @@ Name | Type | Description | Notes **lock** | **bool** | | [optional] **lowestPrice** | **int** | | [optional] **name** | **String** | | +**pendingUpload** | **bool** | | [optional] [default to false] **performance** | [**AvatarPerformance**](AvatarPerformance.md) | | **productId** | **String** | | [optional] **publishedListings** | [**List<AvatarPublishedListingsInner>**](AvatarPublishedListingsInner.md) | | [optional] diff --git a/vrchat_dart_generated/doc/AvatarsApi.md b/vrchat_dart_generated/doc/AvatarsApi.md index c0051803..2050f101 100644 --- a/vrchat_dart_generated/doc/AvatarsApi.md +++ b/vrchat_dart_generated/doc/AvatarsApi.md @@ -46,7 +46,7 @@ final CreateAvatarRequest createAvatarRequest = ; // CreateAvatarRequest | try { final response = api.createAvatar(createAvatarRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AvatarsApi->createAvatar: $e\n'); } ``` @@ -93,7 +93,7 @@ final String avatarId = avatarId_example; // String | Must be a valid avatar ID. try { final response = api.deleteAvatar(avatarId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AvatarsApi->deleteAvatar: $e\n'); } ``` @@ -139,7 +139,7 @@ final String avatarId = avatarId_example; // String | Must be a valid avatar ID. try { api.deleteImpostor(avatarId); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AvatarsApi->deleteImpostor: $e\n'); } ``` @@ -186,7 +186,7 @@ final String avatarId = avatarId_example; // String | Must be a valid avatar ID. try { final response = api.enqueueImpostor(avatarId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AvatarsApi->enqueueImpostor: $e\n'); } ``` @@ -233,7 +233,7 @@ final String avatarId = avatarId_example; // String | Must be a valid avatar ID. try { final response = api.getAvatar(avatarId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AvatarsApi->getAvatar: $e\n'); } ``` @@ -275,7 +275,7 @@ final api = VrchatDartGenerated().getAvatarsApi(); try { final response = api.getAvatarStyles(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AvatarsApi->getAvatarStyles: $e\n'); } ``` @@ -331,7 +331,7 @@ final String userId = userId_example; // String | Target user to see information try { final response = api.getFavoritedAvatars(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AvatarsApi->getFavoritedAvatars: $e\n'); } ``` @@ -389,7 +389,7 @@ final api = VrchatDartGenerated().getAvatarsApi(); try { final response = api.getImpostorQueueStats(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AvatarsApi->getImpostorQueueStats: $e\n'); } ``` @@ -434,7 +434,7 @@ final int offset = 56; // int | A zero-based offset from the default object sort try { final response = api.getLicensedAvatars(n, offset); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AvatarsApi->getLicensedAvatars: $e\n'); } ``` @@ -482,7 +482,7 @@ final String userId = userId_example; // String | Must be a valid user ID. try { final response = api.getOwnAvatar(userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AvatarsApi->getOwnAvatar: $e\n'); } ``` @@ -509,7 +509,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) # **searchAvatars** -> List searchAvatars(featured, sort, user, userId, n, order, offset, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform) +> List searchAvatars(featured, sort, user, userId, n, order, offset, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, isInternalVariant) Search Avatars @@ -537,11 +537,12 @@ final ReleaseStatus releaseStatus = ; // ReleaseStatus | Filter by ReleaseStatus final String maxUnityVersion = maxUnityVersion_example; // String | The maximum Unity version supported by the asset. final String minUnityVersion = minUnityVersion_example; // String | The minimum Unity version supported by the asset. final String platform = platform_example; // String | The platform the asset supports. +final bool isInternalVariant = false; // bool | Not quite sure what this actually does (exists on the website but doesn't seem to be used) try { - final response = api.searchAvatars(featured, sort, user, userId, n, order, offset, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform); + final response = api.searchAvatars(featured, sort, user, userId, n, order, offset, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, isInternalVariant); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AvatarsApi->searchAvatars: $e\n'); } ``` @@ -563,6 +564,7 @@ Name | Type | Description | Notes **maxUnityVersion** | **String**| The maximum Unity version supported by the asset. | [optional] **minUnityVersion** | **String**| The minimum Unity version supported by the asset. | [optional] **platform** | **String**| The platform the asset supports. | [optional] + **isInternalVariant** | **bool**| Not quite sure what this actually does (exists on the website but doesn't seem to be used) | [optional] ### Return type @@ -600,7 +602,7 @@ final String avatarId = avatarId_example; // String | Must be a valid avatar ID. try { final response = api.selectAvatar(avatarId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AvatarsApi->selectAvatar: $e\n'); } ``` @@ -647,7 +649,7 @@ final String avatarId = avatarId_example; // String | Must be a valid avatar ID. try { final response = api.selectFallbackAvatar(avatarId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AvatarsApi->selectFallbackAvatar: $e\n'); } ``` @@ -695,7 +697,7 @@ final UpdateAvatarRequest updateAvatarRequest = ; // UpdateAvatarRequest | try { final response = api.updateAvatar(avatarId, updateAvatarRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling AvatarsApi->updateAvatar: $e\n'); } ``` diff --git a/vrchat_dart_generated/doc/CalendarApi.md b/vrchat_dart_generated/doc/CalendarApi.md index 7d660d81..18279b64 100644 --- a/vrchat_dart_generated/doc/CalendarApi.md +++ b/vrchat_dart_generated/doc/CalendarApi.md @@ -46,7 +46,7 @@ final CreateCalendarEventRequest createCalendarEventRequest = ; // CreateCalenda try { final response = api.createGroupCalendarEvent(groupId, createCalendarEventRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling CalendarApi->createGroupCalendarEvent: $e\n'); } ``` @@ -95,7 +95,7 @@ final String calendarId = cal_00000000-0000-0000-0000-000000000000; // String | try { final response = api.deleteGroupCalendarEvent(groupId, calendarId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling CalendarApi->deleteGroupCalendarEvent: $e\n'); } ``` @@ -153,7 +153,7 @@ final String nextCursor = nextCursor_example; // String | Cursor returned from p try { final response = api.discoverCalendarEvents(scope, categories, tags, featuredResults, nonFeaturedResults, personalizedResults, minimumInterestCount, minimumRemainingMinutes, upcomingOffsetMinutes, n, nextCursor); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling CalendarApi->discoverCalendarEvents: $e\n'); } ``` @@ -212,7 +212,7 @@ final FollowCalendarEventRequest followCalendarEventRequest = ; // FollowCalenda try { final response = api.followGroupCalendarEvent(groupId, calendarId, followCalendarEventRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling CalendarApi->followGroupCalendarEvent: $e\n'); } ``` @@ -263,7 +263,7 @@ final int offset = 56; // int | A zero-based offset from the default object sort try { final response = api.getCalendarEvents(date, n, offset); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling CalendarApi->getCalendarEvents: $e\n'); } ``` @@ -314,7 +314,7 @@ final int offset = 56; // int | A zero-based offset from the default object sort try { final response = api.getFeaturedCalendarEvents(date, n, offset); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling CalendarApi->getFeaturedCalendarEvents: $e\n'); } ``` @@ -365,7 +365,7 @@ final int offset = 56; // int | A zero-based offset from the default object sort try { final response = api.getFollowedCalendarEvents(date, n, offset); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling CalendarApi->getFollowedCalendarEvents: $e\n'); } ``` @@ -415,7 +415,7 @@ final String calendarId = cal_00000000-0000-0000-0000-000000000000; // String | try { final response = api.getGroupCalendarEvent(groupId, calendarId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling CalendarApi->getGroupCalendarEvent: $e\n'); } ``` @@ -460,7 +460,7 @@ final String calendarId = cal_00000000-0000-0000-0000-000000000000; // String | try { final response = api.getGroupCalendarEventICS(groupId, calendarId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling CalendarApi->getGroupCalendarEventICS: $e\n'); } ``` @@ -511,7 +511,7 @@ final int offset = 56; // int | A zero-based offset from the default object sort try { final response = api.getGroupCalendarEvents(groupId, date, n, offset); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling CalendarApi->getGroupCalendarEvents: $e\n'); } ``` @@ -561,7 +561,7 @@ final String groupId = grp_00000000-0000-0000-0000-000000000000; // String | Mus try { final response = api.getGroupNextCalendarEvent(groupId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling CalendarApi->getGroupNextCalendarEvent: $e\n'); } ``` @@ -588,7 +588,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) # **searchCalendarEvents** -> PaginatedCalendarEventList searchCalendarEvents(searchTerm, utcOffset, n, offset) +> PaginatedCalendarEventList searchCalendarEvents(searchTerm, utcOffset, n, offset, isInternalVariant) Search for calendar events @@ -607,11 +607,12 @@ final String searchTerm = game night; // String | Search term for calendar event final int utcOffset = 56; // int | The offset from UTC in hours of the client or authenticated user. 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 bool isInternalVariant = false; // bool | Not quite sure what this actually does (exists on the website but doesn't seem to be used) try { - final response = api.searchCalendarEvents(searchTerm, utcOffset, n, offset); + final response = api.searchCalendarEvents(searchTerm, utcOffset, n, offset, isInternalVariant); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling CalendarApi->searchCalendarEvents: $e\n'); } ``` @@ -624,6 +625,7 @@ Name | Type | Description | Notes **utcOffset** | **int**| The offset from UTC in hours of the client or authenticated user. | [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] + **isInternalVariant** | **bool**| Not quite sure what this actually does (exists on the website but doesn't seem to be used) | [optional] ### Return type @@ -663,7 +665,7 @@ final UpdateCalendarEventRequest updateCalendarEventRequest = ; // UpdateCalenda try { final response = api.updateGroupCalendarEvent(groupId, calendarId, updateCalendarEventRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling CalendarApi->updateGroupCalendarEvent: $e\n'); } ``` diff --git a/vrchat_dart_generated/doc/CreateAvatarRequest.md b/vrchat_dart_generated/doc/CreateAvatarRequest.md index 35460970..ac81232e 100644 --- a/vrchat_dart_generated/doc/CreateAvatarRequest.md +++ b/vrchat_dart_generated/doc/CreateAvatarRequest.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **id** | **String** | | [optional] **imageUrl** | **String** | | **name** | **String** | | -**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | [optional] +**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | [optional] **releaseStatus** | [**ReleaseStatus**](ReleaseStatus.md) | | [optional] **tags** | **List<String>** | | [optional] **thumbnailImageUrl** | **String** | | [optional] diff --git a/vrchat_dart_generated/doc/CreateInstanceRequest.md b/vrchat_dart_generated/doc/CreateInstanceRequest.md index 56edc662..7f46c052 100644 --- a/vrchat_dart_generated/doc/CreateInstanceRequest.md +++ b/vrchat_dart_generated/doc/CreateInstanceRequest.md @@ -9,6 +9,7 @@ import 'package:vrchat_dart_generated/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ageGate** | **bool** | | [optional] [default to false] +**calendarEntryId** | **String** | | [optional] **canRequestInvite** | **bool** | Only applies to invite type instances to make them invite+ | [optional] [default to false] **closedAt** | [**DateTime**](DateTime.md) | The time after which users won't be allowed to join the instance. This doesn't work for public instances. | [optional] **contentSettings** | [**InstanceContentSettings**](InstanceContentSettings.md) | | [optional] @@ -18,6 +19,7 @@ Name | Type | Description | Notes **instancePersistenceEnabled** | **bool** | | [optional] **inviteOnly** | **bool** | | [optional] [default to false] **ownerId** | **String** | A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise | [optional] +**playerPersistenceEnabled** | **bool** | | [optional] **queueEnabled** | **bool** | | [optional] [default to false] **region** | [**InstanceRegion**](InstanceRegion.md) | | **roleIds** | **List<String>** | Group roleIds that are allowed to join if the type is \"group\" and groupAccessType is \"member\" | [optional] diff --git a/vrchat_dart_generated/doc/CreatePropRequest.md b/vrchat_dart_generated/doc/CreatePropRequest.md new file mode 100644 index 00000000..c6f09bda --- /dev/null +++ b/vrchat_dart_generated/doc/CreatePropRequest.md @@ -0,0 +1,26 @@ +# vrchat_dart_generated.model.CreatePropRequest + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assetUrl** | **String** | | +**assetVersion** | **int** | | +**description** | **String** | | +**id** | **String** | | +**imageUrl** | **String** | | +**name** | **String** | | +**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | +**propSignature** | **String** | | [optional] +**spawnType** | **int** | How a prop is summoned and interacted with. 0: the prop fixed to some surface in the world 1: the prop is a pickup and may be held by users 2: ??? | [default to 1] +**tags** | **List<String>** | | +**unityVersion** | **String** | | +**worldPlacementMask** | **int** | Bitmask for restrictions on what world surfaces a prop may be summoned. 0: no restrictions 1: floors 2: walls 4: ceilings | [default to 1] + +[[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/CreateWorldRequest.md b/vrchat_dart_generated/doc/CreateWorldRequest.md index aa18ea41..fb2fd6ae 100644 --- a/vrchat_dart_generated/doc/CreateWorldRequest.md +++ b/vrchat_dart_generated/doc/CreateWorldRequest.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **id** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | [optional] **imageUrl** | **String** | | **name** | **String** | | -**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | [optional] +**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | [optional] **releaseStatus** | [**ReleaseStatus**](ReleaseStatus.md) | | [optional] **tags** | **List<String>** | | [optional] **unityPackageUrl** | **String** | | [optional] diff --git a/vrchat_dart_generated/doc/CurrentUser.md b/vrchat_dart_generated/doc/CurrentUser.md index 30fce701..fe235b1b 100644 --- a/vrchat_dart_generated/doc/CurrentUser.md +++ b/vrchat_dart_generated/doc/CurrentUser.md @@ -50,7 +50,7 @@ Name | Type | Description | Notes **lastActivity** | [**DateTime**](DateTime.md) | | [optional] **lastLogin** | [**DateTime**](DateTime.md) | | **lastMobile** | [**DateTime**](DateTime.md) | | -**lastPlatform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | +**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`. | **obfuscatedEmail** | **String** | | **obfuscatedPendingEmail** | **String** | | **oculusId** | **String** | | diff --git a/vrchat_dart_generated/doc/CurrentUserPlatformHistoryInner.md b/vrchat_dart_generated/doc/CurrentUserPlatformHistoryInner.md index 4c35e993..88620f1b 100644 --- a/vrchat_dart_generated/doc/CurrentUserPlatformHistoryInner.md +++ b/vrchat_dart_generated/doc/CurrentUserPlatformHistoryInner.md @@ -9,7 +9,7 @@ import 'package:vrchat_dart_generated/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **isMobile** | **bool** | | [optional] -**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | [optional] +**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | [optional] **recorded** | [**DateTime**](DateTime.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/CurrentUserPresence.md b/vrchat_dart_generated/doc/CurrentUserPresence.md index 993defb4..5bbbc4b8 100644 --- a/vrchat_dart_generated/doc/CurrentUserPresence.md +++ b/vrchat_dart_generated/doc/CurrentUserPresence.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **instance** | **String** | | [optional] **instanceType** | **String** | either an InstanceType or an empty string | [optional] **isRejoining** | **String** | | [optional] -**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | [optional] +**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | [optional] **profilePicOverride** | **String** | | [optional] **status** | **String** | either a UserStatus or empty string | [optional] **travelingToInstance** | **String** | | [optional] diff --git a/vrchat_dart_generated/doc/APIConfigReportOptionsWorld.md b/vrchat_dart_generated/doc/DeclineGroupInviteRequest.md similarity index 51% rename from vrchat_dart_generated/doc/APIConfigReportOptionsWorld.md rename to vrchat_dart_generated/doc/DeclineGroupInviteRequest.md index 726226da..82792aab 100644 --- a/vrchat_dart_generated/doc/APIConfigReportOptionsWorld.md +++ b/vrchat_dart_generated/doc/DeclineGroupInviteRequest.md @@ -1,4 +1,4 @@ -# vrchat_dart_generated.model.APIConfigReportOptionsWorld +# vrchat_dart_generated.model.DeclineGroupInviteRequest ## Load the model package ```dart @@ -8,11 +8,7 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**environment** | **List<String>** | | [optional] -**text** | **List<String>** | | [optional] -**warnings** | **List<String>** | | [optional] -**worldimage** | **List<String>** | | [optional] -**worldstore** | **List<String>** | | [optional] +**block** | **bool** | | [optional] [default to false] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/vrchat_dart_generated/doc/DynamicContentRow.md b/vrchat_dart_generated/doc/DynamicContentRow.md index a3c15c96..21749391 100644 --- a/vrchat_dart_generated/doc/DynamicContentRow.md +++ b/vrchat_dart_generated/doc/DynamicContentRow.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **index** | **int** | | [optional] **name** | **String** | | -**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | +**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | **sortHeading** | **String** | | **sortOrder** | **String** | | **sortOwnership** | **String** | | diff --git a/vrchat_dart_generated/doc/EconomyApi.md b/vrchat_dart_generated/doc/EconomyApi.md index a77e688b..3a30bf77 100644 --- a/vrchat_dart_generated/doc/EconomyApi.md +++ b/vrchat_dart_generated/doc/EconomyApi.md @@ -55,7 +55,7 @@ final api = VrchatDartGenerated().getEconomyApi(); try { final response = api.getActiveLicenses(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->getActiveLicenses: $e\n'); } ``` @@ -99,7 +99,7 @@ final String userId = userId_example; // String | Must be a valid user ID. try { final response = api.getBalance(userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->getBalance: $e\n'); } ``` @@ -146,7 +146,7 @@ final String userId = userId_example; // String | Must be a valid user ID. try { final response = api.getBalanceEarnings(userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->getBalanceEarnings: $e\n'); } ``` @@ -193,7 +193,7 @@ final bool mostRecent = true; // bool | try { final response = api.getBulkGiftPurchases(mostRecent); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->getBulkGiftPurchases: $e\n'); } ``` @@ -239,7 +239,7 @@ final api = VrchatDartGenerated().getEconomyApi(); try { final response = api.getCurrentSubscriptions(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->getCurrentSubscriptions: $e\n'); } ``` @@ -283,7 +283,7 @@ final String userId = userId_example; // String | Must be a valid user ID. try { final response = api.getEconomyAccount(userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->getEconomyAccount: $e\n'); } ``` @@ -330,7 +330,7 @@ final String licenseGroupId = licenseGroupId_example; // String | Must be a vali try { final response = api.getLicenseGroup(licenseGroupId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->getLicenseGroup: $e\n'); } ``` @@ -378,7 +378,7 @@ final bool hydrate = true; // bool | Populates some fields and changes types of try { final response = api.getProductListing(productId, hydrate); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->getProductListing: $e\n'); } ``` @@ -426,7 +426,7 @@ final String productId = productId_example; // String | Must be a valid product try { final response = api.getProductListingAlternate(productId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->getProductListingAlternate: $e\n'); } ``` @@ -478,7 +478,7 @@ final bool active = true; // bool | Filter for users' listings and inventory bun try { final response = api.getProductListings(userId, n, offset, hydrate, groupId, active); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->getProductListings: $e\n'); } ``` @@ -535,7 +535,7 @@ final OrderOptionShort order = ; // OrderOptionShort | Result ordering try { final response = api.getProductPurchases(buyerId, n, offset, mostRecent, sort, order); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->getProductPurchases: $e\n'); } ``` @@ -586,7 +586,7 @@ final api = VrchatDartGenerated().getEconomyApi(); try { final response = api.getRecentSubscription(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->getRecentSubscription: $e\n'); } ``` @@ -630,7 +630,7 @@ final String transactionId = transactionId_example; // String | Must be a valid try { final response = api.getSteamTransaction(transactionId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->getSteamTransaction: $e\n'); } ``` @@ -676,7 +676,7 @@ final api = VrchatDartGenerated().getEconomyApi(); try { final response = api.getSteamTransactions(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->getSteamTransactions: $e\n'); } ``` @@ -722,7 +722,7 @@ final bool hydrateProducts = true; // bool | Products fields will be populated. try { final response = api.getStore(storeId, hydrateListings, hydrateProducts); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->getStore: $e\n'); } ``` @@ -773,7 +773,7 @@ final StoreView fetch = ; // StoreView | try { final response = api.getStoreShelves(storeId, hydrateListings, fetch); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->getStoreShelves: $e\n'); } ``` @@ -821,7 +821,7 @@ final api = VrchatDartGenerated().getEconomyApi(); try { final response = api.getSubscriptions(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->getSubscriptions: $e\n'); } ``` @@ -864,7 +864,7 @@ final api = VrchatDartGenerated().getEconomyApi(); try { final response = api.getTiliaStatus(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->getTiliaStatus: $e\n'); } ``` @@ -908,7 +908,7 @@ final String userId = userId_example; // String | Must be a valid user ID. try { final response = api.getTiliaTos(userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->getTiliaTos: $e\n'); } ``` @@ -954,7 +954,7 @@ final api = VrchatDartGenerated().getEconomyApi(); try { final response = api.getTokenBundles(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->getTokenBundles: $e\n'); } ``` @@ -999,7 +999,7 @@ final String subscriptionId = subscriptionId_example; // String | try { final response = api.getUserCreditsEligible(userId, subscriptionId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->getUserCreditsEligible: $e\n'); } ``` @@ -1048,7 +1048,7 @@ final String steamId = game night; // String | The Steam ID of the user. try { final response = api.getUserSubscriptionEligible(userId, steamId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->getUserSubscriptionEligible: $e\n'); } ``` @@ -1096,7 +1096,7 @@ final PurchaseProductListingRequest purchaseProductListingRequest = ; // Purchas try { final response = api.purchaseProductListing(purchaseProductListingRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->purchaseProductListing: $e\n'); } ``` @@ -1144,7 +1144,7 @@ final UpdateTiliaTOSRequest updateTiliaTOSRequest = ; // UpdateTiliaTOSRequest | try { final response = api.updateTiliaTos(userId, updateTiliaTOSRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling EconomyApi->updateTiliaTos: $e\n'); } ``` diff --git a/vrchat_dart_generated/doc/FavoriteGroupLimits.md b/vrchat_dart_generated/doc/FavoriteGroupLimits.md index 794105be..d1dabb40 100644 --- a/vrchat_dart_generated/doc/FavoriteGroupLimits.md +++ b/vrchat_dart_generated/doc/FavoriteGroupLimits.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **avatar** | **int** | | **friend** | **int** | | +**vrcPlusWorld** | **int** | | **world** | **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/FavoritesApi.md b/vrchat_dart_generated/doc/FavoritesApi.md index e6bda0ef..cea94844 100644 --- a/vrchat_dart_generated/doc/FavoritesApi.md +++ b/vrchat_dart_generated/doc/FavoritesApi.md @@ -40,7 +40,7 @@ final AddFavoriteRequest addFavoriteRequest = {"type":"avatar","favoriteId":"avt try { final response = api.addFavorite(addFavoriteRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FavoritesApi->addFavorite: $e\n'); } ``` @@ -89,7 +89,7 @@ final String userId = userId_example; // String | Must be a valid user ID. try { final response = api.clearFavoriteGroup(favoriteGroupType, favoriteGroupName, userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FavoritesApi->clearFavoriteGroup: $e\n'); } ``` @@ -140,7 +140,7 @@ final String userId = userId_example; // String | Must be a valid user ID. try { final response = api.getFavoriteGroup(favoriteGroupType, favoriteGroupName, userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FavoritesApi->getFavoriteGroup: $e\n'); } ``` @@ -192,7 +192,7 @@ final String ownerId = ownerId_example; // String | The owner of whoms favorite try { final response = api.getFavoriteGroups(n, offset, userId, ownerId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FavoritesApi->getFavoriteGroups: $e\n'); } ``` @@ -241,7 +241,7 @@ final api = VrchatDartGenerated().getFavoritesApi(); try { final response = api.getFavoriteLimits(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FavoritesApi->getFavoriteLimits: $e\n'); } ``` @@ -288,7 +288,7 @@ final String tag = tag_example; // String | Tags to include (comma-separated). A try { final response = api.getFavorites(n, offset, type, tag); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FavoritesApi->getFavorites: $e\n'); } ``` @@ -338,7 +338,7 @@ final String favoriteId = favoriteId_example; // String | Must be a valid favori try { final response = api.removeFavorite(favoriteId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FavoritesApi->removeFavorite: $e\n'); } ``` @@ -387,7 +387,7 @@ final UpdateFavoriteGroupRequest updateFavoriteGroupRequest = ; // UpdateFavorit try { api.updateFavoriteGroup(favoriteGroupType, favoriteGroupName, userId, updateFavoriteGroupRequest); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FavoritesApi->updateFavoriteGroup: $e\n'); } ``` diff --git a/vrchat_dart_generated/doc/File.md b/vrchat_dart_generated/doc/File.md index b45450c7..9ad69eaa 100644 --- a/vrchat_dart_generated/doc/File.md +++ b/vrchat_dart_generated/doc/File.md @@ -8,11 +8,15 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**animationStyle** | **String** | | [optional] +**animationStyle** | [**ImageAnimationStyle**](ImageAnimationStyle.md) | | [optional] **extension_** | **String** | | +**frames** | **int** | The number of frames for animated spritesheet images. | [optional] +**framesOverTime** | **int** | The frames per second for animated spritesheet images. | [optional] **id** | **String** | | -**maskTag** | **String** | | [optional] +**loopStyle** | [**ImageLoopStyle**](ImageLoopStyle.md) | | [optional] +**maskTag** | [**ImageMask**](ImageMask.md) | | [optional] **mimeType** | [**MIMEType**](MIMEType.md) | | +**modifiedThumbnailFileName** | **String** | | [optional] **name** | **String** | | **ownerId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | **tags** | **List<String>** | | diff --git a/vrchat_dart_generated/doc/FilesApi.md b/vrchat_dart_generated/doc/FilesApi.md index 3bab29d6..40067fa1 100644 --- a/vrchat_dart_generated/doc/FilesApi.md +++ b/vrchat_dart_generated/doc/FilesApi.md @@ -16,13 +16,17 @@ Method | HTTP request | Description [**downloadFileVersion**](FilesApi.md#downloadfileversion) | **GET** /file/{fileId}/{versionId} | Download File Version [**finishFileDataUpload**](FilesApi.md#finishfiledataupload) | **PUT** /file/{fileId}/{versionId}/{fileType}/finish | Finish FileData Upload [**getAdminAssetBundle**](FilesApi.md#getadminassetbundle) | **GET** /adminassetbundles/{adminAssetBundleId} | Get AdminAssetBundle +[**getContentAgreementStatus**](FilesApi.md#getcontentagreementstatus) | **GET** /agreement | Get Content Agreement Status [**getFile**](FilesApi.md#getfile) | **GET** /file/{fileId} | Show File [**getFileAnalysis**](FilesApi.md#getfileanalysis) | **GET** /analysis/{fileId}/{versionId} | Get File Version Analysis [**getFileAnalysisSecurity**](FilesApi.md#getfileanalysissecurity) | **GET** /analysis/{fileId}/{versionId}/security | Get File Version Analysis Security [**getFileAnalysisStandard**](FilesApi.md#getfileanalysisstandard) | **GET** /analysis/{fileId}/{versionId}/standard | Get File Version Analysis Standard [**getFileDataUploadStatus**](FilesApi.md#getfiledatauploadstatus) | **GET** /file/{fileId}/{versionId}/{fileType}/status | Check FileData Upload Status [**getFiles**](FilesApi.md#getfiles) | **GET** /files | List Files +[**setGroupGalleryFileOrder**](FilesApi.md#setgroupgalleryfileorder) | **PUT** /files/order | Set Group Gallery File Order [**startFileDataUpload**](FilesApi.md#startfiledataupload) | **PUT** /file/{fileId}/{versionId}/{fileType}/start | Start FileData Upload +[**submitContentAgreement**](FilesApi.md#submitcontentagreement) | **POST** /agreement | Submit Content Agreement +[**updateAssetReviewNotes**](FilesApi.md#updateassetreviewnotes) | **PUT** /assetReview/{assetReviewId}/notes | Update Asset Review Notes [**uploadGalleryImage**](FilesApi.md#uploadgalleryimage) | **POST** /gallery | Upload gallery image [**uploadIcon**](FilesApi.md#uploadicon) | **POST** /icon | Upload icon [**uploadImage**](FilesApi.md#uploadimage) | **POST** /file/image | Upload gallery image, icon, emoji or sticker @@ -49,7 +53,7 @@ final CreateFileRequest createFileRequest = ; // CreateFileRequest | try { final response = api.createFile(createFileRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FilesApi->createFile: $e\n'); } ``` @@ -97,7 +101,7 @@ final CreateFileVersionRequest createFileVersionRequest = ; // CreateFileVersion try { final response = api.createFileVersion(fileId, createFileVersionRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FilesApi->createFileVersion: $e\n'); } ``` @@ -145,7 +149,7 @@ final String fileId = file_00000000-0000-0000-0000-000000000000; // String | Mus try { final response = api.deleteFile(fileId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FilesApi->deleteFile: $e\n'); } ``` @@ -193,7 +197,7 @@ final int versionId = 1; // int | Version ID of the asset. try { final response = api.deleteFileVersion(fileId, versionId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FilesApi->deleteFileVersion: $e\n'); } ``` @@ -242,7 +246,7 @@ final int versionId = 1; // int | Version ID of the asset. try { final response = api.downloadFileVersion(fileId, versionId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FilesApi->downloadFileVersion: $e\n'); } ``` @@ -293,7 +297,7 @@ final FinishFileDataUploadRequest finishFileDataUploadRequest = {"etags":["xxxxx try { final response = api.finishFileDataUpload(fileId, versionId, fileType, finishFileDataUploadRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FilesApi->finishFileDataUpload: $e\n'); } ``` @@ -343,7 +347,7 @@ final String adminAssetBundleId = aab_e159e72c-ce54-4fbe-8c37-96af02f6d18d; // S try { final response = api.getAdminAssetBundle(adminAssetBundleId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FilesApi->getAdminAssetBundle: $e\n'); } ``` @@ -369,6 +373,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) +# **getContentAgreementStatus** +> AgreementStatus getContentAgreementStatus(agreementCode, contentId, version) + +Get Content Agreement Status + +Returns the agreement status of the currently authenticated user for the given agreementCode, contentId, and version. + +### 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().getFilesApi(); +final AgreementCode agreementCode = ; // AgreementCode | The type of agreement (currently content.copyright.owned) +final String contentId = avtr_c38a1615-5bf5-42b4-84eb-a8b6c37cbd11; // String | The id of the content being uploaded, such as a WorldID, AvatarID, or PropID +final int version = 1; // int | The version of the agreement (currently 1) + +try { + final response = api.getContentAgreementStatus(agreementCode, contentId, version); + print(response); +} on DioException catch (e) { + print('Exception when calling FilesApi->getContentAgreementStatus: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agreementCode** | [**AgreementCode**](.md)| The type of agreement (currently content.copyright.owned) | + **contentId** | **String**| The id of the content being uploaded, such as a WorldID, AvatarID, or PropID | + **version** | **int**| The version of the agreement (currently 1) | + +### Return type + +[**AgreementStatus**](AgreementStatus.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) + # **getFile** > File getFile(fileId) @@ -390,7 +445,7 @@ final String fileId = file_00000000-0000-0000-0000-000000000000; // String | Mus try { final response = api.getFile(fileId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FilesApi->getFile: $e\n'); } ``` @@ -438,7 +493,7 @@ final int versionId = 1; // int | Version ID of the asset. try { final response = api.getFileAnalysis(fileId, versionId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FilesApi->getFileAnalysis: $e\n'); } ``` @@ -487,7 +542,7 @@ final int versionId = 1; // int | Version ID of the asset. try { final response = api.getFileAnalysisSecurity(fileId, versionId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FilesApi->getFileAnalysisSecurity: $e\n'); } ``` @@ -536,7 +591,7 @@ final int versionId = 1; // int | Version ID of the asset. try { final response = api.getFileAnalysisStandard(fileId, versionId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FilesApi->getFileAnalysisStandard: $e\n'); } ``` @@ -586,7 +641,7 @@ final String fileType = file; // String | Type of file. try { final response = api.getFileDataUploadStatus(fileId, versionId, fileType); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FilesApi->getFileDataUploadStatus: $e\n'); } ``` @@ -638,7 +693,7 @@ final int offset = 56; // int | A zero-based offset from the default object sort try { final response = api.getFiles(tag, userId, n, offset); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FilesApi->getFiles: $e\n'); } ``` @@ -667,6 +722,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) +# **setGroupGalleryFileOrder** +> GroupGalleryFileOrder setGroupGalleryFileOrder(groupGalleryFileOrderRequest) + +Set Group Gallery File Order + +Set the order of the files in a group gallery + +### 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().getFilesApi(); +final GroupGalleryFileOrderRequest groupGalleryFileOrderRequest = ; // GroupGalleryFileOrderRequest | + +try { + final response = api.setGroupGalleryFileOrder(groupGalleryFileOrderRequest); + print(response); +} on DioException catch (e) { + print('Exception when calling FilesApi->setGroupGalleryFileOrder: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **groupGalleryFileOrderRequest** | [**GroupGalleryFileOrderRequest**](GroupGalleryFileOrderRequest.md)| | [optional] + +### Return type + +[**GroupGalleryFileOrder**](GroupGalleryFileOrder.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) + # **startFileDataUpload** > FileUploadURL startFileDataUpload(fileId, versionId, fileType, partNumber) @@ -691,7 +793,7 @@ final int partNumber = 1; // int | The part number to start uploading. If not pr try { final response = api.startFileDataUpload(fileId, versionId, fileType, partNumber); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FilesApi->startFileDataUpload: $e\n'); } ``` @@ -720,6 +822,101 @@ 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) +# **submitContentAgreement** +> Agreement submitContentAgreement(agreementRequest) + +Submit Content Agreement + +Returns the agreement of the currently authenticated user for the given agreementCode, contentId, and version. + +### 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().getFilesApi(); +final AgreementRequest agreementRequest = ; // AgreementRequest | + +try { + final response = api.submitContentAgreement(agreementRequest); + print(response); +} on DioException catch (e) { + print('Exception when calling FilesApi->submitContentAgreement: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **agreementRequest** | [**AgreementRequest**](AgreementRequest.md)| | [optional] + +### Return type + +[**Agreement**](Agreement.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) + +# **updateAssetReviewNotes** +> updateAssetReviewNotes(assetReviewId, updateAssetReviewNotesRequest) + +Update Asset Review Notes + +Update notes regarding an asset review. + +### 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().getFilesApi(); +final String assetReviewId = assetReviewId_example; // String | Must be an valid asset review ID. +final UpdateAssetReviewNotesRequest updateAssetReviewNotesRequest = ; // UpdateAssetReviewNotesRequest | + +try { + api.updateAssetReviewNotes(assetReviewId, updateAssetReviewNotesRequest); +} on DioException catch (e) { + print('Exception when calling FilesApi->updateAssetReviewNotes: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **assetReviewId** | **String**| Must be an valid asset review ID. | + **updateAssetReviewNotesRequest** | [**UpdateAssetReviewNotesRequest**](UpdateAssetReviewNotesRequest.md)| | [optional] + +### Return type + +void (empty response body) + +### 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) + # **uploadGalleryImage** > File uploadGalleryImage(file) @@ -741,7 +938,7 @@ final MultipartFile file = BINARY_DATA_HERE; // MultipartFile | The binary blob try { final response = api.uploadGalleryImage(file); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FilesApi->uploadGalleryImage: $e\n'); } ``` @@ -788,7 +985,7 @@ final MultipartFile file = BINARY_DATA_HERE; // MultipartFile | The binary blob try { final response = api.uploadIcon(file); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FilesApi->uploadIcon: $e\n'); } ``` @@ -815,7 +1012,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) # **uploadImage** -> File uploadImage(file, tag, animationStyle, frames, framesOverTime, maskTag) +> File uploadImage(file, tag, animationStyle, frames, framesOverTime, loopStyle, maskTag) Upload gallery image, icon, emoji or sticker @@ -831,16 +1028,17 @@ import 'package:vrchat_dart_generated/api.dart'; final api = VrchatDartGenerated().getFilesApi(); final MultipartFile file = BINARY_DATA_HERE; // MultipartFile | The binary blob of the png file. -final String tag = tag_example; // String | Needs to be either icon, gallery, sticker, emoji, or emojianimated -final String animationStyle = animationStyle_example; // String | Animation style for sticker, required for emoji. -final int frames = 56; // int | Required for emojianimated. Total number of frames to be animated (2-64) -final int framesOverTime = 56; // int | Required for emojianimated. Animation frames per second (1-64) -final String maskTag = maskTag_example; // String | Mask of the sticker, optional for emoji. +final ImagePurpose tag = ; // ImagePurpose | +final ImageAnimationStyle animationStyle = ; // ImageAnimationStyle | +final int frames = 56; // int | Required for animated images. Total number of frames of the spritesheet to be animated. +final int framesOverTime = 56; // int | Required for animated images. Animation frames per second. +final ImageLoopStyle loopStyle = ; // ImageLoopStyle | +final ImageMask maskTag = ; // ImageMask | try { - final response = api.uploadImage(file, tag, animationStyle, frames, framesOverTime, maskTag); + final response = api.uploadImage(file, tag, animationStyle, frames, framesOverTime, loopStyle, maskTag); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FilesApi->uploadImage: $e\n'); } ``` @@ -850,11 +1048,12 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **file** | **MultipartFile**| The binary blob of the png file. | - **tag** | **String**| Needs to be either icon, gallery, sticker, emoji, or emojianimated | - **animationStyle** | **String**| Animation style for sticker, required for emoji. | [optional] - **frames** | **int**| Required for emojianimated. Total number of frames to be animated (2-64) | [optional] - **framesOverTime** | **int**| Required for emojianimated. Animation frames per second (1-64) | [optional] - **maskTag** | **String**| Mask of the sticker, optional for emoji. | [optional] + **tag** | [**ImagePurpose**](ImagePurpose.md)| | + **animationStyle** | [**ImageAnimationStyle**](ImageAnimationStyle.md)| | [optional] + **frames** | **int**| Required for animated images. Total number of frames of the spritesheet to be animated. | [optional] + **framesOverTime** | **int**| Required for animated images. Animation frames per second. | [optional] + **loopStyle** | [**ImageLoopStyle**](ImageLoopStyle.md)| | [optional] + **maskTag** | [**ImageMask**](ImageMask.md)| | [optional] ### Return type diff --git a/vrchat_dart_generated/doc/FriendsApi.md b/vrchat_dart_generated/doc/FriendsApi.md index fff4231a..fcf13467 100644 --- a/vrchat_dart_generated/doc/FriendsApi.md +++ b/vrchat_dart_generated/doc/FriendsApi.md @@ -39,7 +39,7 @@ final BoopRequest boopRequest = ; // BoopRequest | try { final response = api.boop(userId, boopRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FriendsApi->boop: $e\n'); } ``` @@ -87,7 +87,7 @@ final String userId = userId_example; // String | Must be a valid user ID. try { final response = api.deleteFriendRequest(userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FriendsApi->deleteFriendRequest: $e\n'); } ``` @@ -134,7 +134,7 @@ final String userId = userId_example; // String | Must be a valid user ID. try { final response = api.friend(userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FriendsApi->friend: $e\n'); } ``` @@ -181,7 +181,7 @@ final String userId = userId_example; // String | Must be a valid user ID. try { final response = api.getFriendStatus(userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FriendsApi->getFriendStatus: $e\n'); } ``` @@ -230,7 +230,7 @@ final bool offline = true; // bool | Returns *only* offline users if true, retur try { final response = api.getFriends(offset, n, offline); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FriendsApi->getFriends: $e\n'); } ``` @@ -279,7 +279,7 @@ final String userId = userId_example; // String | Must be a valid user ID. try { final response = api.unfriend(userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling FriendsApi->unfriend: $e\n'); } ``` diff --git a/vrchat_dart_generated/doc/GroupGalleryFileOrder.md b/vrchat_dart_generated/doc/GroupGalleryFileOrder.md new file mode 100644 index 00000000..3b405ed0 --- /dev/null +++ b/vrchat_dart_generated/doc/GroupGalleryFileOrder.md @@ -0,0 +1,15 @@ +# vrchat_dart_generated.model.GroupGalleryFileOrder + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ids** | **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/doc/GroupGalleryFileOrderRequest.md b/vrchat_dart_generated/doc/GroupGalleryFileOrderRequest.md new file mode 100644 index 00000000..36f62efa --- /dev/null +++ b/vrchat_dart_generated/doc/GroupGalleryFileOrderRequest.md @@ -0,0 +1,16 @@ +# vrchat_dart_generated.model.GroupGalleryFileOrderRequest + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**galleryId** | **String** | | +**ids** | **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/doc/GroupTransferable.md b/vrchat_dart_generated/doc/GroupTransferable.md new file mode 100644 index 00000000..d11e2704 --- /dev/null +++ b/vrchat_dart_generated/doc/GroupTransferable.md @@ -0,0 +1,15 @@ +# vrchat_dart_generated.model.GroupTransferable + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requirements** | [**GroupTransferableRequirements**](GroupTransferableRequirements.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/GroupTransferableRequirements.md b/vrchat_dart_generated/doc/GroupTransferableRequirements.md new file mode 100644 index 00000000..fe6690bd --- /dev/null +++ b/vrchat_dart_generated/doc/GroupTransferableRequirements.md @@ -0,0 +1,19 @@ +# vrchat_dart_generated.model.GroupTransferableRequirements + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**groupNotMonetized** | **bool** | | [default to false] +**hasVRCPlus** | **bool** | | [default to false] +**hasVerifiedEmail** | **bool** | | [default to false] +**targetCanOwnMoreGroups** | **bool** | | [default to false] +**targetIsGroupMember** | **bool** | | [default to false] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/GroupsApi.md b/vrchat_dart_generated/doc/GroupsApi.md index d2e8438c..c59b35c3 100644 --- a/vrchat_dart_generated/doc/GroupsApi.md +++ b/vrchat_dart_generated/doc/GroupsApi.md @@ -13,12 +13,15 @@ Method | HTTP request | Description [**addGroupMemberRole**](GroupsApi.md#addgroupmemberrole) | **PUT** /groups/{groupId}/members/{userId}/roles/{groupRoleId} | Add Role to GroupMember [**addGroupPost**](GroupsApi.md#addgrouppost) | **POST** /groups/{groupId}/posts | Create a post in a Group [**banGroupMember**](GroupsApi.md#bangroupmember) | **POST** /groups/{groupId}/bans | Ban Group Member +[**blockGroup**](GroupsApi.md#blockgroup) | **POST** /groups/{groupId}/block | Block Group [**cancelGroupRequest**](GroupsApi.md#cancelgrouprequest) | **DELETE** /groups/{groupId}/requests | Cancel Group Join Request +[**cancelGroupTransfer**](GroupsApi.md#cancelgrouptransfer) | **DELETE** /groups/{groupId}/transfer | Cancel Group Transfer [**createGroup**](GroupsApi.md#creategroup) | **POST** /groups | Create Group [**createGroupAnnouncement**](GroupsApi.md#creategroupannouncement) | **POST** /groups/{groupId}/announcement | Create Group Announcement [**createGroupGallery**](GroupsApi.md#creategroupgallery) | **POST** /groups/{groupId}/galleries | Create Group Gallery [**createGroupInvite**](GroupsApi.md#creategroupinvite) | **POST** /groups/{groupId}/invites | Invite User to Group [**createGroupRole**](GroupsApi.md#creategrouprole) | **POST** /groups/{groupId}/roles | Create GroupRole +[**declineGroupInvite**](GroupsApi.md#declinegroupinvite) | **PUT** /groups/{groupId}/invites | Decline Invite from Group [**deleteGroup**](GroupsApi.md#deletegroup) | **DELETE** /groups/{groupId} | Delete Group [**deleteGroupAnnouncement**](GroupsApi.md#deletegroupannouncement) | **DELETE** /groups/{groupId}/announcement | Delete Group Announcement [**deleteGroupGallery**](GroupsApi.md#deletegroupgallery) | **DELETE** /groups/{groupId}/galleries/{groupGalleryId} | Delete Group Gallery @@ -28,6 +31,7 @@ Method | HTTP request | Description [**deleteGroupRole**](GroupsApi.md#deletegrouprole) | **DELETE** /groups/{groupId}/roles/{groupRoleId} | Delete Group Role [**getGroup**](GroupsApi.md#getgroup) | **GET** /groups/{groupId} | Get Group by ID [**getGroupAnnouncements**](GroupsApi.md#getgroupannouncements) | **GET** /groups/{groupId}/announcement | Get Group Announcement +[**getGroupAuditLogEntryTypes**](GroupsApi.md#getgroupauditlogentrytypes) | **GET** /groups/{groupId}/auditLogTypes | Get Group Audit Log Entry Types [**getGroupAuditLogs**](GroupsApi.md#getgroupauditlogs) | **GET** /groups/{groupId}/auditLogs | Get Group Audit Logs [**getGroupBans**](GroupsApi.md#getgroupbans) | **GET** /groups/{groupId}/bans | Get Group Bans [**getGroupGalleryImages**](GroupsApi.md#getgroupgalleryimages) | **GET** /groups/{groupId}/galleries/{groupGalleryId} | Get Group Gallery Images @@ -40,11 +44,14 @@ Method | HTTP request | Description [**getGroupRequests**](GroupsApi.md#getgrouprequests) | **GET** /groups/{groupId}/requests | Get Group Join Requests [**getGroupRoleTemplates**](GroupsApi.md#getgrouproletemplates) | **GET** /groups/roleTemplates | Get Group Role Templates [**getGroupRoles**](GroupsApi.md#getgrouproles) | **GET** /groups/{groupId}/roles | Get Group Roles +[**getGroupTransferability**](GroupsApi.md#getgrouptransferability) | **GET** /groups/{groupId}/transfer | Get Group Transferability +[**initiateOrAcceptGroupTransfer**](GroupsApi.md#initiateoracceptgrouptransfer) | **POST** /groups/{groupId}/transfer | Initiate or Accept Group Transfer [**joinGroup**](GroupsApi.md#joingroup) | **POST** /groups/{groupId}/join | Join Group [**kickGroupMember**](GroupsApi.md#kickgroupmember) | **DELETE** /groups/{groupId}/members/{userId} | Kick Group Member [**leaveGroup**](GroupsApi.md#leavegroup) | **POST** /groups/{groupId}/leave | Leave Group [**removeGroupMemberRole**](GroupsApi.md#removegroupmemberrole) | **DELETE** /groups/{groupId}/members/{userId}/roles/{groupRoleId} | Remove Role from GroupMember [**respondGroupJoinRequest**](GroupsApi.md#respondgroupjoinrequest) | **PUT** /groups/{groupId}/requests/{userId} | Respond Group Join request +[**searchGroupMembers**](GroupsApi.md#searchgroupmembers) | **GET** /groups/{groupId}/members/search | Search Group Members [**searchGroups**](GroupsApi.md#searchgroups) | **GET** /groups | Search Group [**unbanGroupMember**](GroupsApi.md#unbangroupmember) | **DELETE** /groups/{groupId}/bans/{userId} | Unban Group Member [**updateGroup**](GroupsApi.md#updategroup) | **PUT** /groups/{groupId} | Update Group @@ -78,7 +85,7 @@ final AddGroupGalleryImageRequest addGroupGalleryImageRequest = ; // AddGroupGal try { final response = api.addGroupGalleryImage(groupId, groupGalleryId, addGroupGalleryImageRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->addGroupGalleryImage: $e\n'); } ``` @@ -129,7 +136,7 @@ final String groupRoleId = grol_00000000-0000-0000-0000-000000000000; // String try { final response = api.addGroupMemberRole(groupId, userId, groupRoleId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->addGroupMemberRole: $e\n'); } ``` @@ -179,7 +186,7 @@ final CreateGroupPostRequest createGroupPostRequest = ; // CreateGroupPostReques try { final response = api.addGroupPost(groupId, createGroupPostRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->addGroupPost: $e\n'); } ``` @@ -228,7 +235,7 @@ final BanGroupMemberRequest banGroupMemberRequest = ; // BanGroupMemberRequest | try { final response = api.banGroupMember(groupId, banGroupMemberRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->banGroupMember: $e\n'); } ``` @@ -255,6 +262,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) +# **blockGroup** +> Success blockGroup(groupId) + +Block Group + +Blocks a Group for the current user. To unblock a group, call kickGroupMember (DELETE /groups/{groupId}/members/{userId}). + +### 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().getGroupsApi(); +final String groupId = grp_00000000-0000-0000-0000-000000000000; // String | Must be a valid group ID. + +try { + final response = api.blockGroup(groupId); + print(response); +} on DioException catch (e) { + print('Exception when calling GroupsApi->blockGroup: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **groupId** | **String**| Must be a valid group ID. | + +### Return type + +[**Success**](Success.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) + # **cancelGroupRequest** > cancelGroupRequest(groupId) @@ -275,7 +329,7 @@ final String groupId = grp_00000000-0000-0000-0000-000000000000; // String | Mus try { api.cancelGroupRequest(groupId); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->cancelGroupRequest: $e\n'); } ``` @@ -301,6 +355,53 @@ 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) +# **cancelGroupTransfer** +> Success cancelGroupTransfer(groupId) + +Cancel Group Transfer + +Cancel a Group Transfer. + +### 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().getGroupsApi(); +final String groupId = grp_00000000-0000-0000-0000-000000000000; // String | Must be a valid group ID. + +try { + final response = api.cancelGroupTransfer(groupId); + print(response); +} on DioException catch (e) { + print('Exception when calling GroupsApi->cancelGroupTransfer: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **groupId** | **String**| Must be a valid group ID. | + +### Return type + +[**Success**](Success.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) + # **createGroup** > Group createGroup(createGroupRequest) @@ -322,7 +423,7 @@ final CreateGroupRequest createGroupRequest = ; // CreateGroupRequest | try { final response = api.createGroup(createGroupRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->createGroup: $e\n'); } ``` @@ -370,7 +471,7 @@ final CreateGroupAnnouncementRequest createGroupAnnouncementRequest = ; // Creat try { final response = api.createGroupAnnouncement(groupId, createGroupAnnouncementRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->createGroupAnnouncement: $e\n'); } ``` @@ -419,7 +520,7 @@ final CreateGroupGalleryRequest createGroupGalleryRequest = ; // CreateGroupGall try { final response = api.createGroupGallery(groupId, createGroupGalleryRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->createGroupGallery: $e\n'); } ``` @@ -467,7 +568,7 @@ final CreateGroupInviteRequest createGroupInviteRequest = ; // CreateGroupInvite try { api.createGroupInvite(groupId, createGroupInviteRequest); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->createGroupInvite: $e\n'); } ``` @@ -516,7 +617,7 @@ final CreateGroupRoleRequest createGroupRoleRequest = ; // CreateGroupRoleReques try { final response = api.createGroupRole(groupId, createGroupRoleRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->createGroupRole: $e\n'); } ``` @@ -543,8 +644,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) +# **declineGroupInvite** +> Success declineGroupInvite(groupId, declineGroupInviteRequest) + +Decline Invite from Group + +Declines an invite to the user from a group. + +### 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().getGroupsApi(); +final String groupId = grp_00000000-0000-0000-0000-000000000000; // String | Must be a valid group ID. +final DeclineGroupInviteRequest declineGroupInviteRequest = ; // DeclineGroupInviteRequest | + +try { + final response = api.declineGroupInvite(groupId, declineGroupInviteRequest); + print(response); +} on DioException catch (e) { + print('Exception when calling GroupsApi->declineGroupInvite: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **groupId** | **String**| Must be a valid group ID. | + **declineGroupInviteRequest** | [**DeclineGroupInviteRequest**](DeclineGroupInviteRequest.md)| | [optional] + +### Return type + +[**Success**](Success.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) + # **deleteGroup** -> Success deleteGroup(groupId) +> Success deleteGroup(groupId, hardDelete) Delete Group @@ -560,11 +710,12 @@ import 'package:vrchat_dart_generated/api.dart'; final api = VrchatDartGenerated().getGroupsApi(); final String groupId = grp_00000000-0000-0000-0000-000000000000; // String | Must be a valid group ID. +final bool hardDelete = true; // bool | try { - final response = api.deleteGroup(groupId); + final response = api.deleteGroup(groupId, hardDelete); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->deleteGroup: $e\n'); } ``` @@ -574,6 +725,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **groupId** | **String**| Must be a valid group ID. | + **hardDelete** | **bool**| | [optional] ### Return type @@ -611,7 +763,7 @@ final String groupId = grp_00000000-0000-0000-0000-000000000000; // String | Mus try { final response = api.deleteGroupAnnouncement(groupId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->deleteGroupAnnouncement: $e\n'); } ``` @@ -659,7 +811,7 @@ final String groupGalleryId = ggal_00000000-0000-0000-0000-000000000000; // Stri try { final response = api.deleteGroupGallery(groupId, groupGalleryId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->deleteGroupGallery: $e\n'); } ``` @@ -709,7 +861,7 @@ final String groupGalleryImageId = ggim_00000000-0000-0000-0000-000000000000; // try { final response = api.deleteGroupGalleryImage(groupId, groupGalleryId, groupGalleryImageId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->deleteGroupGalleryImage: $e\n'); } ``` @@ -758,7 +910,7 @@ final String userId = userId_example; // String | Must be a valid user ID. try { api.deleteGroupInvite(groupId, userId); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->deleteGroupInvite: $e\n'); } ``` @@ -807,7 +959,7 @@ final String notificationId = notificationId_example; // String | Must be a vali try { final response = api.deleteGroupPost(groupId, notificationId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->deleteGroupPost: $e\n'); } ``` @@ -856,7 +1008,7 @@ final String groupRoleId = grol_00000000-0000-0000-0000-000000000000; // String try { final response = api.deleteGroupRole(groupId, groupRoleId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->deleteGroupRole: $e\n'); } ``` @@ -905,7 +1057,7 @@ final bool includeRoles = true; // bool | Include roles for the Group object. De try { final response = api.getGroup(groupId, includeRoles); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->getGroup: $e\n'); } ``` @@ -953,7 +1105,7 @@ final String groupId = grp_00000000-0000-0000-0000-000000000000; // String | Mus try { final response = api.getGroupAnnouncements(groupId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->getGroupAnnouncements: $e\n'); } ``` @@ -979,6 +1131,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) +# **getGroupAuditLogEntryTypes** +> List getGroupAuditLogEntryTypes(groupId) + +Get Group Audit Log Entry Types + +Returns a list of audit log entry types for which the group has entries. + +### 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().getGroupsApi(); +final String groupId = grp_00000000-0000-0000-0000-000000000000; // String | Must be a valid group ID. + +try { + final response = api.getGroupAuditLogEntryTypes(groupId); + print(response); +} on DioException catch (e) { + print('Exception when calling GroupsApi->getGroupAuditLogEntryTypes: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **groupId** | **String**| Must be a valid group ID. | + +### Return type + +**List<String>** + +### 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) + # **getGroupAuditLogs** > PaginatedGroupAuditLogEntryList getGroupAuditLogs(groupId, n, offset, startDate, endDate, actorIds, eventTypes, targetIds) @@ -1007,7 +1206,7 @@ final String targetIds = usr_00000000-0000-0000-0000-000000000000,usr_11111111-1 try { final response = api.getGroupAuditLogs(groupId, n, offset, startDate, endDate, actorIds, eventTypes, targetIds); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->getGroupAuditLogs: $e\n'); } ``` @@ -1063,7 +1262,7 @@ final int offset = 56; // int | A zero-based offset from the default object sort try { final response = api.getGroupBans(groupId, n, offset); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->getGroupBans: $e\n'); } ``` @@ -1116,7 +1315,7 @@ final bool approved = true; // bool | If specified, only returns images that hav try { final response = api.getGroupGalleryImages(groupId, groupGalleryId, n, offset, approved); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->getGroupGalleryImages: $e\n'); } ``` @@ -1167,7 +1366,7 @@ final String groupId = grp_00000000-0000-0000-0000-000000000000; // String | Mus try { final response = api.getGroupInstances(groupId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->getGroupInstances: $e\n'); } ``` @@ -1216,7 +1415,7 @@ final int offset = 56; // int | A zero-based offset from the default object sort try { final response = api.getGroupInvites(groupId, n, offset); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->getGroupInvites: $e\n'); } ``` @@ -1266,7 +1465,7 @@ final String userId = userId_example; // String | Must be a valid user ID. try { final response = api.getGroupMember(groupId, userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->getGroupMember: $e\n'); } ``` @@ -1318,7 +1517,7 @@ final String roleId = roleId_example; // String | Only returns members with a sp try { final response = api.getGroupMembers(groupId, n, offset, sort, roleId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->getGroupMembers: $e\n'); } ``` @@ -1369,7 +1568,7 @@ final String groupId = grp_00000000-0000-0000-0000-000000000000; // String | Mus try { final response = api.getGroupPermissions(groupId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->getGroupPermissions: $e\n'); } ``` @@ -1419,7 +1618,7 @@ final bool publicOnly = true; // bool | See public posts only. try { final response = api.getGroupPosts(groupId, n, offset, publicOnly); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->getGroupPosts: $e\n'); } ``` @@ -1472,7 +1671,7 @@ final bool blocked = true; // bool | See blocked join requests try { final response = api.getGroupRequests(groupId, n, offset, blocked); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->getGroupRequests: $e\n'); } ``` @@ -1521,7 +1720,7 @@ final api = VrchatDartGenerated().getGroupsApi(); try { final response = api.getGroupRoleTemplates(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->getGroupRoleTemplates: $e\n'); } ``` @@ -1565,7 +1764,7 @@ final String groupId = grp_00000000-0000-0000-0000-000000000000; // String | Mus try { final response = api.getGroupRoles(groupId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->getGroupRoles: $e\n'); } ``` @@ -1591,8 +1790,106 @@ 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) +# **getGroupTransferability** +> GroupTransferable getGroupTransferability(groupId, transferTargetId) + +Get Group Transferability + +Returns the transferability of the group to a given 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().getGroupsApi(); +final String groupId = grp_00000000-0000-0000-0000-000000000000; // String | Must be a valid group ID. +final String transferTargetId = transferTargetId_example; // String | The UserID of the prospective transferee. + +try { + final response = api.getGroupTransferability(groupId, transferTargetId); + print(response); +} on DioException catch (e) { + print('Exception when calling GroupsApi->getGroupTransferability: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **groupId** | **String**| Must be a valid group ID. | + **transferTargetId** | **String**| The UserID of the prospective transferee. | [optional] + +### Return type + +[**GroupTransferable**](GroupTransferable.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) + +# **initiateOrAcceptGroupTransfer** +> Success initiateOrAcceptGroupTransfer(groupId, transferGroupRequest) + +Initiate or Accept Group Transfer + +To initiate, must be logged in as the current owner and specify the transferTargetId in the body. To accept, must be logged in as the user targetted by a pending transfer, no body is required. + +### 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().getGroupsApi(); +final String groupId = grp_00000000-0000-0000-0000-000000000000; // String | Must be a valid group ID. +final TransferGroupRequest transferGroupRequest = ; // TransferGroupRequest | + +try { + final response = api.initiateOrAcceptGroupTransfer(groupId, transferGroupRequest); + print(response); +} on DioException catch (e) { + print('Exception when calling GroupsApi->initiateOrAcceptGroupTransfer: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **groupId** | **String**| Must be a valid group ID. | + **transferGroupRequest** | [**TransferGroupRequest**](TransferGroupRequest.md)| | [optional] + +### Return type + +[**Success**](Success.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) + # **joinGroup** -> GroupMember joinGroup(groupId) +> GroupMember joinGroup(groupId, confirmOverrideBlock, joinGroupRequest) Join Group @@ -1608,11 +1905,13 @@ import 'package:vrchat_dart_generated/api.dart'; final api = VrchatDartGenerated().getGroupsApi(); final String groupId = grp_00000000-0000-0000-0000-000000000000; // String | Must be a valid group ID. +final bool confirmOverrideBlock = true; // bool | Manually override the failure that would occur if the user has blocked the group. +final JoinGroupRequest joinGroupRequest = ; // JoinGroupRequest | try { - final response = api.joinGroup(groupId); + final response = api.joinGroup(groupId, confirmOverrideBlock, joinGroupRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->joinGroup: $e\n'); } ``` @@ -1622,6 +1921,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **groupId** | **String**| Must be a valid group ID. | + **confirmOverrideBlock** | **bool**| Manually override the failure that would occur if the user has blocked the group. | [optional] + **joinGroupRequest** | [**JoinGroupRequest**](JoinGroupRequest.md)| | [optional] ### Return type @@ -1633,17 +1934,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined + - **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) # **kickGroupMember** -> kickGroupMember(groupId, userId) +> Success kickGroupMember(groupId, userId) Kick Group Member -Kicks a Group Member from the Group. The current user must have the \"Remove Group Members\" permission. +Kicks a Group Member from the Group. The current user must have the \"Remove Group Members\" permission. Also used for unblocking groups. ### Example ```dart @@ -1658,8 +1959,9 @@ final String groupId = grp_00000000-0000-0000-0000-000000000000; // String | Mus final String userId = userId_example; // String | Must be a valid user ID. try { - api.kickGroupMember(groupId, userId); -} catch on DioException (e) { + final response = api.kickGroupMember(groupId, userId); + print(response); +} on DioException catch (e) { print('Exception when calling GroupsApi->kickGroupMember: $e\n'); } ``` @@ -1673,7 +1975,7 @@ Name | Type | Description | Notes ### Return type -void (empty response body) +[**Success**](Success.md) ### Authorization @@ -1706,7 +2008,7 @@ final String groupId = grp_00000000-0000-0000-0000-000000000000; // String | Mus try { api.leaveGroup(groupId); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->leaveGroup: $e\n'); } ``` @@ -1755,7 +2057,7 @@ final String groupRoleId = grol_00000000-0000-0000-0000-000000000000; // String try { final response = api.removeGroupMemberRole(groupId, userId, groupRoleId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->removeGroupMemberRole: $e\n'); } ``` @@ -1805,7 +2107,7 @@ final RespondGroupJoinRequest respondGroupJoinRequest = ; // RespondGroupJoinReq try { api.respondGroupJoinRequest(groupId, userId, respondGroupJoinRequest); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->respondGroupJoinRequest: $e\n'); } ``` @@ -1833,6 +2135,59 @@ 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) +# **searchGroupMembers** +> SearchGroupMembers200Response searchGroupMembers(groupId, query, n, offset) + +Search Group Members + +Search for members in the group by displayName. + +### 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().getGroupsApi(); +final String groupId = grp_00000000-0000-0000-0000-000000000000; // String | Must be a valid group ID. +final String query = query_example; // String | Filter for member displayName. +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. + +try { + final response = api.searchGroupMembers(groupId, query, n, offset); + print(response); +} on DioException catch (e) { + print('Exception when calling GroupsApi->searchGroupMembers: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **groupId** | **String**| Must be a valid group ID. | + **query** | **String**| Filter for member displayName. | + **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] + +### Return type + +[**SearchGroupMembers200Response**](SearchGroupMembers200Response.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) + # **searchGroups** > List searchGroups(query, offset, n) @@ -1852,7 +2207,7 @@ final int n = 56; // int | The number of objects to return. try { final response = api.searchGroups(query, offset, n); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->searchGroups: $e\n'); } ``` @@ -1902,7 +2257,7 @@ final String userId = userId_example; // String | Must be a valid user ID. try { final response = api.unbanGroupMember(groupId, userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->unbanGroupMember: $e\n'); } ``` @@ -1951,7 +2306,7 @@ final UpdateGroupRequest updateGroupRequest = ; // UpdateGroupRequest | try { final response = api.updateGroup(groupId, updateGroupRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->updateGroup: $e\n'); } ``` @@ -2001,7 +2356,7 @@ final UpdateGroupGalleryRequest updateGroupGalleryRequest = ; // UpdateGroupGall try { final response = api.updateGroupGallery(groupId, groupGalleryId, updateGroupGalleryRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->updateGroupGallery: $e\n'); } ``` @@ -2052,7 +2407,7 @@ final UpdateGroupMemberRequest updateGroupMemberRequest = ; // UpdateGroupMember try { final response = api.updateGroupMember(groupId, userId, updateGroupMemberRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->updateGroupMember: $e\n'); } ``` @@ -2103,7 +2458,7 @@ final CreateGroupPostRequest createGroupPostRequest = ; // CreateGroupPostReques try { final response = api.updateGroupPost(groupId, notificationId, createGroupPostRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->updateGroupPost: $e\n'); } ``` @@ -2153,7 +2508,7 @@ final UpdateGroupRepresentationRequest updateGroupRepresentationRequest = ; // U try { final response = api.updateGroupRepresentation(groupId, updateGroupRepresentationRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->updateGroupRepresentation: $e\n'); } ``` @@ -2203,7 +2558,7 @@ final UpdateGroupRoleRequest updateGroupRoleRequest = ; // UpdateGroupRoleReques try { final response = api.updateGroupRole(groupId, groupRoleId, updateGroupRoleRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling GroupsApi->updateGroupRole: $e\n'); } ``` diff --git a/vrchat_dart_generated/doc/ImageAnimationStyle.md b/vrchat_dart_generated/doc/ImageAnimationStyle.md new file mode 100644 index 00000000..3e460441 --- /dev/null +++ b/vrchat_dart_generated/doc/ImageAnimationStyle.md @@ -0,0 +1,14 @@ +# vrchat_dart_generated.model.ImageAnimationStyle + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/ImageLoopStyle.md b/vrchat_dart_generated/doc/ImageLoopStyle.md new file mode 100644 index 00000000..61a9df07 --- /dev/null +++ b/vrchat_dart_generated/doc/ImageLoopStyle.md @@ -0,0 +1,14 @@ +# vrchat_dart_generated.model.ImageLoopStyle + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/ImageMask.md b/vrchat_dart_generated/doc/ImageMask.md new file mode 100644 index 00000000..5601412b --- /dev/null +++ b/vrchat_dart_generated/doc/ImageMask.md @@ -0,0 +1,14 @@ +# vrchat_dart_generated.model.ImageMask + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/ImagePurpose.md b/vrchat_dart_generated/doc/ImagePurpose.md new file mode 100644 index 00000000..2df70803 --- /dev/null +++ b/vrchat_dart_generated/doc/ImagePurpose.md @@ -0,0 +1,14 @@ +# vrchat_dart_generated.model.ImagePurpose + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/InstancesApi.md b/vrchat_dart_generated/doc/InstancesApi.md index 7770d0fa..2a0e8f7b 100644 --- a/vrchat_dart_generated/doc/InstancesApi.md +++ b/vrchat_dart_generated/doc/InstancesApi.md @@ -41,7 +41,7 @@ final DateTime closedAt = 2013-10-20T19:20:30+01:00; // DateTime | The time afte try { final response = api.closeInstance(worldId, instanceId, hardClose, closedAt); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InstancesApi->closeInstance: $e\n'); } ``` @@ -91,7 +91,7 @@ final CreateInstanceRequest createInstanceRequest = ; // CreateInstanceRequest | try { final response = api.createInstance(createInstanceRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InstancesApi->createInstance: $e\n'); } ``` @@ -139,7 +139,7 @@ final String instanceId = instanceId_example; // String | Must be a valid instan try { final response = api.getInstance(worldId, instanceId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InstancesApi->getInstance: $e\n'); } ``` @@ -187,7 +187,7 @@ final String shortName = shortName_example; // String | Must be a valid instance try { final response = api.getInstanceByShortName(shortName); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InstancesApi->getInstanceByShortName: $e\n'); } ``` @@ -235,7 +235,7 @@ final int offset = 56; // int | A zero-based offset from the default object sort try { final response = api.getRecentLocations(n, offset); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InstancesApi->getRecentLocations: $e\n'); } ``` @@ -284,7 +284,7 @@ final String instanceId = instanceId_example; // String | Must be a valid instan try { final response = api.getShortName(worldId, instanceId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InstancesApi->getShortName: $e\n'); } ``` diff --git a/vrchat_dart_generated/doc/InventoryApi.md b/vrchat_dart_generated/doc/InventoryApi.md index b6188320..5cccbc3e 100644 --- a/vrchat_dart_generated/doc/InventoryApi.md +++ b/vrchat_dart_generated/doc/InventoryApi.md @@ -46,7 +46,7 @@ final String inventoryItemId = inv_00000000-0000-0000-0000-000000000000; // Stri try { final response = api.consumeOwnInventoryItem(inventoryItemId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InventoryApi->consumeOwnInventoryItem: $e\n'); } ``` @@ -93,7 +93,7 @@ final String inventoryItemId = inv_00000000-0000-0000-0000-000000000000; // Stri try { final response = api.deleteOwnInventoryItem(inventoryItemId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InventoryApi->deleteOwnInventoryItem: $e\n'); } ``` @@ -141,7 +141,7 @@ final EquipInventoryItemRequest equipInventoryItemRequest = ; // EquipInventoryI try { final response = api.equipOwnInventoryItem(inventoryItemId, equipInventoryItemRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InventoryApi->equipOwnInventoryItem: $e\n'); } ``` @@ -199,7 +199,7 @@ final bool archived = true; // bool | Filter archived status for inventory retri try { final response = api.getInventory(n, offset, holderId, equipSlot, order, tags, types, flags, notTypes, notFlags, archived); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InventoryApi->getInventory: $e\n'); } ``` @@ -255,7 +255,7 @@ final api = VrchatDartGenerated().getInventoryApi(); try { final response = api.getInventoryCollections(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InventoryApi->getInventoryCollections: $e\n'); } ``` @@ -299,7 +299,7 @@ final bool active = true; // bool | Filter for users' listings and inventory bun try { final response = api.getInventoryDrops(active); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InventoryApi->getInventoryDrops: $e\n'); } ``` @@ -346,7 +346,7 @@ final String inventoryTemplateId = invt_00000000-0000-0000-0000-000000000000; // try { final response = api.getInventoryTemplate(inventoryTemplateId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InventoryApi->getInventoryTemplate: $e\n'); } ``` @@ -393,7 +393,7 @@ final String inventoryItemId = inv_00000000-0000-0000-0000-000000000000; // Stri try { final response = api.getOwnInventoryItem(inventoryItemId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InventoryApi->getOwnInventoryItem: $e\n'); } ``` @@ -441,7 +441,7 @@ final String inventoryItemId = inv_00000000-0000-0000-0000-000000000000; // Stri try { final response = api.getUserInventoryItem(userId, inventoryItemId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InventoryApi->getUserInventoryItem: $e\n'); } ``` @@ -491,7 +491,7 @@ final ShareInventoryItemDirectRequest shareInventoryItemDirectRequest = ; // Sha try { final response = api.shareInventoryItemDirect(itemId, duration, shareInventoryItemDirectRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InventoryApi->shareInventoryItemDirect: $e\n'); } ``` @@ -541,7 +541,7 @@ final int duration = 56; // int | The duration before the sharing pedestal despa try { final response = api.shareInventoryItemPedestal(itemId, duration); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InventoryApi->shareInventoryItemPedestal: $e\n'); } ``` @@ -589,7 +589,7 @@ final String id = id_example; // String | Id for inventory item spawning. try { final response = api.spawnInventoryItem(id); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InventoryApi->spawnInventoryItem: $e\n'); } ``` @@ -636,7 +636,7 @@ final InventoryEquipSlot inventoryItemId = ; // InventoryEquipSlot | Selector fo try { final response = api.unequipOwnInventorySlot(inventoryItemId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InventoryApi->unequipOwnInventorySlot: $e\n'); } ``` @@ -684,7 +684,7 @@ final UpdateInventoryItemRequest updateInventoryItemRequest = ; // UpdateInvento try { final response = api.updateOwnInventoryItem(inventoryItemId, updateInventoryItemRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InventoryApi->updateOwnInventoryItem: $e\n'); } ``` diff --git a/vrchat_dart_generated/doc/InviteApi.md b/vrchat_dart_generated/doc/InviteApi.md index 66cd0ee6..30894b5c 100644 --- a/vrchat_dart_generated/doc/InviteApi.md +++ b/vrchat_dart_generated/doc/InviteApi.md @@ -45,7 +45,7 @@ final int slot = 56; // int | The message slot to fetch of a given message type. try { final response = api.getInviteMessage(userId, messageType, slot); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InviteApi->getInviteMessage: $e\n'); } ``` @@ -95,7 +95,7 @@ final InviteMessageType messageType = ; // InviteMessageType | The type of messa try { final response = api.getInviteMessages(userId, messageType); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InviteApi->getInviteMessages: $e\n'); } ``` @@ -144,7 +144,7 @@ final String instanceId = instanceId_example; // String | Must be a valid instan try { final response = api.inviteMyselfTo(worldId, instanceId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InviteApi->inviteMyselfTo: $e\n'); } ``` @@ -193,7 +193,7 @@ final InviteRequest inviteRequest = ; // InviteRequest | Slot number of the Invi try { final response = api.inviteUser(userId, inviteRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InviteApi->inviteUser: $e\n'); } ``` @@ -243,7 +243,7 @@ final MultipartFile image = BINARY_DATA_HERE; // MultipartFile | The binary blob try { final response = api.inviteUserWithPhoto(userId, data, image); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InviteApi->inviteUserWithPhoto: $e\n'); } ``` @@ -293,7 +293,7 @@ final RequestInviteRequest requestInviteRequest = ; // RequestInviteRequest | Sl try { final response = api.requestInvite(userId, requestInviteRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InviteApi->requestInvite: $e\n'); } ``` @@ -343,7 +343,7 @@ final MultipartFile image = BINARY_DATA_HERE; // MultipartFile | The binary blob try { final response = api.requestInviteWithPhoto(userId, data, image); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InviteApi->requestInviteWithPhoto: $e\n'); } ``` @@ -394,7 +394,7 @@ final int slot = 56; // int | The message slot to fetch of a given message type. try { final response = api.resetInviteMessage(userId, messageType, slot); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InviteApi->resetInviteMessage: $e\n'); } ``` @@ -444,7 +444,7 @@ final InviteResponse inviteResponse = ; // InviteResponse | Slot number of the R try { final response = api.respondInvite(notificationId, inviteResponse); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InviteApi->respondInvite: $e\n'); } ``` @@ -494,7 +494,7 @@ final MultipartFile image = BINARY_DATA_HERE; // MultipartFile | The binary blob try { final response = api.respondInviteWithPhoto(notificationId, data, image); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InviteApi->respondInviteWithPhoto: $e\n'); } ``` @@ -546,7 +546,7 @@ final UpdateInviteMessageRequest updateInviteMessageRequest = ; // UpdateInviteM try { final response = api.updateInviteMessage(userId, messageType, slot, updateInviteMessageRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling InviteApi->updateInviteMessage: $e\n'); } ``` diff --git a/vrchat_dart_generated/doc/JamsApi.md b/vrchat_dart_generated/doc/JamsApi.md index 08c08d29..5909478c 100644 --- a/vrchat_dart_generated/doc/JamsApi.md +++ b/vrchat_dart_generated/doc/JamsApi.md @@ -35,7 +35,7 @@ final String jamId = jam_0b7e3f6d-4647-4648-b2a1-1431e76906d9; // String | Must try { final response = api.getJam(jamId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling JamsApi->getJam: $e\n'); } ``` @@ -82,7 +82,7 @@ final String jamId = jam_0b7e3f6d-4647-4648-b2a1-1431e76906d9; // String | Must try { final response = api.getJamSubmissions(jamId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling JamsApi->getJamSubmissions: $e\n'); } ``` @@ -129,7 +129,7 @@ final String type = avatar; // String | Only show jams of this type (`avatar` or try { final response = api.getJams(type); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling JamsApi->getJams: $e\n'); } ``` diff --git a/vrchat_dart_generated/doc/JoinGroupRequest.md b/vrchat_dart_generated/doc/JoinGroupRequest.md new file mode 100644 index 00000000..93131dd0 --- /dev/null +++ b/vrchat_dart_generated/doc/JoinGroupRequest.md @@ -0,0 +1,15 @@ +# vrchat_dart_generated.model.JoinGroupRequest + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**inviteId** | **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/LimitedUnityPackage.md b/vrchat_dart_generated/doc/LimitedUnityPackage.md index 0a8c549c..01f32c42 100644 --- a/vrchat_dart_generated/doc/LimitedUnityPackage.md +++ b/vrchat_dart_generated/doc/LimitedUnityPackage.md @@ -9,7 +9,7 @@ import 'package:vrchat_dart_generated/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **createdAt** | [**DateTime**](DateTime.md) | | -**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | +**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | **unityVersion** | **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/LimitedUserFriend.md b/vrchat_dart_generated/doc/LimitedUserFriend.md index 9476913f..0cc191bf 100644 --- a/vrchat_dart_generated/doc/LimitedUserFriend.md +++ b/vrchat_dart_generated/doc/LimitedUserFriend.md @@ -22,7 +22,7 @@ Name | Type | Description | Notes **lastActivity** | [**DateTime**](DateTime.md) | | **lastLogin** | [**DateTime**](DateTime.md) | | **lastMobile** | [**DateTime**](DateTime.md) | | -**lastPlatform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | +**lastPlatform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | **location** | **String** | | **platform** | **String** | | **profilePicOverride** | **String** | | [optional] diff --git a/vrchat_dart_generated/doc/LimitedUserInstance.md b/vrchat_dart_generated/doc/LimitedUserInstance.md index 6f930e94..cf8209d1 100644 --- a/vrchat_dart_generated/doc/LimitedUserInstance.md +++ b/vrchat_dart_generated/doc/LimitedUserInstance.md @@ -25,8 +25,8 @@ Name | Type | Description | Notes **isFriend** | **bool** | | **lastActivity** | [**DateTime**](DateTime.md) | | **lastMobile** | [**DateTime**](DateTime.md) | | [optional] -**lastPlatform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | -**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | [optional] +**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`. | +**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | [optional] **profilePicOverride** | **String** | | [optional] **profilePicOverrideThumbnail** | **String** | | [optional] **pronouns** | **String** | | diff --git a/vrchat_dart_generated/doc/LimitedUserSearch.md b/vrchat_dart_generated/doc/LimitedUserSearch.md index 27410087..835ec7b8 100644 --- a/vrchat_dart_generated/doc/LimitedUserSearch.md +++ b/vrchat_dart_generated/doc/LimitedUserSearch.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **displayName** | **String** | | **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. | **isFriend** | **bool** | | -**lastPlatform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | +**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`. | **profilePicOverride** | **String** | | [optional] **pronouns** | **String** | | [optional] **status** | [**UserStatus**](UserStatus.md) | | diff --git a/vrchat_dart_generated/doc/MiscellaneousApi.md b/vrchat_dart_generated/doc/MiscellaneousApi.md index 775ba766..cfcad475 100644 --- a/vrchat_dart_generated/doc/MiscellaneousApi.md +++ b/vrchat_dart_generated/doc/MiscellaneousApi.md @@ -40,7 +40,7 @@ final api = VrchatDartGenerated().getMiscellaneousApi(); try { final response = api.getAssignedPermissions(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling MiscellaneousApi->getAssignedPermissions: $e\n'); } ``` @@ -81,7 +81,7 @@ final String branch = branch_example; // String | Specifies which git branch the try { final response = api.getCSS(variant, branch); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling MiscellaneousApi->getCSS: $e\n'); } ``` @@ -124,7 +124,7 @@ final api = VrchatDartGenerated().getMiscellaneousApi(); try { final response = api.getConfig(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling MiscellaneousApi->getConfig: $e\n'); } ``` @@ -163,7 +163,7 @@ final api = VrchatDartGenerated().getMiscellaneousApi(); try { final response = api.getCurrentOnlineUsers(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling MiscellaneousApi->getCurrentOnlineUsers: $e\n'); } ``` @@ -202,7 +202,7 @@ final api = VrchatDartGenerated().getMiscellaneousApi(); try { final response = api.getHealth(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling MiscellaneousApi->getHealth: $e\n'); } ``` @@ -243,7 +243,7 @@ final String include = include_example; // String | Tags to include (comma-separ try { final response = api.getInfoPush(require, include); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling MiscellaneousApi->getInfoPush: $e\n'); } ``` @@ -288,7 +288,7 @@ final String branch = branch_example; // String | Specifies which git branch the try { final response = api.getJavaScript(variant, branch); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling MiscellaneousApi->getJavaScript: $e\n'); } ``` @@ -336,7 +336,7 @@ final String permissionId = permissionId_example; // String | Must be a valid pe try { final response = api.getPermission(permissionId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling MiscellaneousApi->getPermission: $e\n'); } ``` @@ -378,7 +378,7 @@ final api = VrchatDartGenerated().getMiscellaneousApi(); try { final response = api.getSystemTime(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling MiscellaneousApi->getSystemTime: $e\n'); } ``` diff --git a/vrchat_dart_generated/doc/NotificationDetailRequestInvite.md b/vrchat_dart_generated/doc/NotificationDetailRequestInvite.md index b146ae20..47987a8f 100644 --- a/vrchat_dart_generated/doc/NotificationDetailRequestInvite.md +++ b/vrchat_dart_generated/doc/NotificationDetailRequestInvite.md @@ -8,7 +8,7 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | [optional] +**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | [optional] **requestMessage** | **String** | Used when using InviteMessage Slot. | [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/NotificationV2.md b/vrchat_dart_generated/doc/NotificationV2.md index b10244d2..5d00086c 100644 --- a/vrchat_dart_generated/doc/NotificationV2.md +++ b/vrchat_dart_generated/doc/NotificationV2.md @@ -11,7 +11,8 @@ Name | Type | Description | Notes **canDelete** | **bool** | | **category** | **String** | | **createdAt** | [**DateTime**](DateTime.md) | | -**data** | **Object** | | +**data** | **Map<String, String>** | | +**details** | [**NotificationV2DetailsBoop**](NotificationV2DetailsBoop.md) | | [optional] **expiresAt** | [**DateTime**](DateTime.md) | | **expiryAfterSeen** | **int** | | **id** | **String** | | diff --git a/vrchat_dart_generated/doc/NotificationV2DetailsBoop.md b/vrchat_dart_generated/doc/NotificationV2DetailsBoop.md new file mode 100644 index 00000000..d7b1247c --- /dev/null +++ b/vrchat_dart_generated/doc/NotificationV2DetailsBoop.md @@ -0,0 +1,17 @@ +# vrchat_dart_generated.model.NotificationV2DetailsBoop + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**emojiId** | **String** | Either a FileID or a string constant for default emojis | +**emojiVersion** | **int** | | +**inventoryItemId** | **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/NotificationsApi.md b/vrchat_dart_generated/doc/NotificationsApi.md index 177430d0..05e651c7 100644 --- a/vrchat_dart_generated/doc/NotificationsApi.md +++ b/vrchat_dart_generated/doc/NotificationsApi.md @@ -45,7 +45,7 @@ final String notificationId = notificationId_example; // String | Must be a vali try { final response = api.acceptFriendRequest(notificationId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling NotificationsApi->acceptFriendRequest: $e\n'); } ``` @@ -92,7 +92,7 @@ final String notificationId = notificationId_example; // String | Must be a vali try { final response = api.acknowledgeNotificationV2(notificationId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling NotificationsApi->acknowledgeNotificationV2: $e\n'); } ``` @@ -138,7 +138,7 @@ final api = VrchatDartGenerated().getNotificationsApi(); try { final response = api.clearNotifications(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling NotificationsApi->clearNotifications: $e\n'); } ``` @@ -181,7 +181,7 @@ final api = VrchatDartGenerated().getNotificationsApi(); try { final response = api.deleteAllNotificationV2s(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling NotificationsApi->deleteAllNotificationV2s: $e\n'); } ``` @@ -225,7 +225,7 @@ final String notificationId = notificationId_example; // String | Must be a vali try { final response = api.deleteNotification(notificationId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling NotificationsApi->deleteNotification: $e\n'); } ``` @@ -272,7 +272,7 @@ final String notificationId = notificationId_example; // String | Must be a vali try { final response = api.deleteNotificationV2(notificationId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling NotificationsApi->deleteNotificationV2: $e\n'); } ``` @@ -319,7 +319,7 @@ final String notificationId = notificationId_example; // String | Must be a vali try { final response = api.getNotification(notificationId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling NotificationsApi->getNotification: $e\n'); } ``` @@ -366,7 +366,7 @@ final String notificationId = notificationId_example; // String | Must be a vali try { final response = api.getNotificationV2(notificationId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling NotificationsApi->getNotificationV2: $e\n'); } ``` @@ -413,7 +413,7 @@ final int limit = 100; // int | The maximum number of entries to get. try { final response = api.getNotificationV2s(limit); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling NotificationsApi->getNotificationV2s: $e\n'); } ``` @@ -465,7 +465,7 @@ final int offset = 56; // int | A zero-based offset from the default object sort try { final response = api.getNotifications(type, sent, hidden, after, n, offset); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling NotificationsApi->getNotifications: $e\n'); } ``` @@ -517,7 +517,7 @@ final String notificationId = notificationId_example; // String | Must be a vali try { final response = api.markNotificationAsRead(notificationId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling NotificationsApi->markNotificationAsRead: $e\n'); } ``` @@ -565,7 +565,7 @@ final Object body = Object; // Object | try { final response = api.replyNotificationV2(notificationId, body); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling NotificationsApi->replyNotificationV2: $e\n'); } ``` @@ -614,7 +614,7 @@ final RespondNotificationV2Request respondNotificationV2Request = ; // RespondNo try { final response = api.respondNotificationV2(notificationId, respondNotificationV2Request); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling NotificationsApi->respondNotificationV2: $e\n'); } ``` diff --git a/vrchat_dart_generated/doc/PermissionData.md b/vrchat_dart_generated/doc/PermissionData.md index 0c61b10c..210a0138 100644 --- a/vrchat_dart_generated/doc/PermissionData.md +++ b/vrchat_dart_generated/doc/PermissionData.md @@ -8,7 +8,11 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**max** | **int** | | [optional] +**badges** | **List<String>** | Badges afforded the user by this permission | [optional] +**max** | **int** | Maximum value afforded the user by this permission | [optional] +**maxFavoriteGroups** | **Map<String, int>** | Maximum favorite groups afforded the user by this permission | [optional] +**maxFavoritesPerGroup** | **Map<String, int>** | Maximum favorites per group afforded the user by this permission | [optional] +**tags** | **List<String>** | Tags afforded the user by this permission | [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/PlayermoderationApi.md b/vrchat_dart_generated/doc/PlayermoderationApi.md index fb2cb474..757b9f72 100644 --- a/vrchat_dart_generated/doc/PlayermoderationApi.md +++ b/vrchat_dart_generated/doc/PlayermoderationApi.md @@ -35,7 +35,7 @@ final api = VrchatDartGenerated().getPlayermoderationApi(); try { final response = api.clearAllPlayerModerations(); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling PlayermoderationApi->clearAllPlayerModerations: $e\n'); } ``` @@ -80,7 +80,7 @@ final String targetUserId = targetUserId_example; // String | Must be valid User try { final response = api.getPlayerModerations(type, targetUserId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling PlayermoderationApi->getPlayerModerations: $e\n'); } ``` @@ -128,7 +128,7 @@ final ModerateUserRequest moderateUserRequest = ; // ModerateUserRequest | try { final response = api.moderateUser(moderateUserRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling PlayermoderationApi->moderateUser: $e\n'); } ``` @@ -175,7 +175,7 @@ final ModerateUserRequest moderateUserRequest = ; // ModerateUserRequest | try { final response = api.unmoderateUser(moderateUserRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling PlayermoderationApi->unmoderateUser: $e\n'); } ``` diff --git a/vrchat_dart_generated/doc/PrintsApi.md b/vrchat_dart_generated/doc/PrintsApi.md index 03e0a4a8..a0f74e88 100644 --- a/vrchat_dart_generated/doc/PrintsApi.md +++ b/vrchat_dart_generated/doc/PrintsApi.md @@ -36,7 +36,7 @@ final String printId = prnt_0a0aa0a0-85ea-42eb-b2f7-4840d7f341fa; // String | Pr try { api.deletePrint(printId); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling PrintsApi->deletePrint: $e\n'); } ``` @@ -85,7 +85,7 @@ final String note = note_example; // String | The caption for the image. try { final response = api.editPrint(printId, image, note); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling PrintsApi->editPrint: $e\n'); } ``` @@ -134,7 +134,7 @@ final String printId = prnt_0a0aa0a0-85ea-42eb-b2f7-4840d7f341fa; // String | Pr try { final response = api.getPrint(printId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling PrintsApi->getPrint: $e\n'); } ``` @@ -181,7 +181,7 @@ final String userId = userId_example; // String | Must be a valid user ID. try { final response = api.getUserPrints(userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling PrintsApi->getUserPrints: $e\n'); } ``` @@ -232,7 +232,7 @@ final String worldName = worldName_example; // String | The name of the world in try { final response = api.uploadPrint(image, timestamp, note, worldId, worldName); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling PrintsApi->uploadPrint: $e\n'); } ``` diff --git a/vrchat_dart_generated/doc/Prop.md b/vrchat_dart_generated/doc/Prop.md index 8986e438..a4eb9211 100644 --- a/vrchat_dart_generated/doc/Prop.md +++ b/vrchat_dart_generated/doc/Prop.md @@ -18,12 +18,12 @@ Name | Type | Description | Notes **maxCountPerUser** | **int** | | [default to 1] **name** | **String** | | **releaseStatus** | [**ReleaseStatus**](ReleaseStatus.md) | | -**spawnType** | **int** | | [default to 0] +**spawnType** | **int** | How a prop is summoned and interacted with. 0: the prop fixed to some surface in the world 1: the prop is a pickup and may be held by users 2: ??? | [default to 1] **tags** | **List<String>** | | **thumbnailImageUrl** | **String** | | **unityPackageUrl** | **String** | | **unityPackages** | [**Set<PropUnityPackage>**](PropUnityPackage.md) | | -**worldPlacementMask** | **int** | | [default to 1] +**worldPlacementMask** | **int** | Bitmask for restrictions on what world surfaces a prop may be summoned. 0: no restrictions 1: floors 2: walls 4: ceilings | [default to 1] [[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/PropPublishStatus.md b/vrchat_dart_generated/doc/PropPublishStatus.md new file mode 100644 index 00000000..66429cb5 --- /dev/null +++ b/vrchat_dart_generated/doc/PropPublishStatus.md @@ -0,0 +1,15 @@ +# vrchat_dart_generated.model.PropPublishStatus + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**canPublish** | **bool** | | [optional] [default to false] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/PropUnityPackage.md b/vrchat_dart_generated/doc/PropUnityPackage.md index 832c143c..9e74d5bd 100644 --- a/vrchat_dart_generated/doc/PropUnityPackage.md +++ b/vrchat_dart_generated/doc/PropUnityPackage.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **assetUrl** | **String** | | **assetVersion** | **int** | | -**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | +**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | **propSignature** | **String** | | **unityVersion** | **String** | | [default to '2022.3.22f1'] **variant** | **String** | | diff --git a/vrchat_dart_generated/doc/PropsApi.md b/vrchat_dart_generated/doc/PropsApi.md index 472b7393..ea021a30 100644 --- a/vrchat_dart_generated/doc/PropsApi.md +++ b/vrchat_dart_generated/doc/PropsApi.md @@ -9,9 +9,109 @@ All URIs are relative to *https://api.vrchat.cloud/api/1* Method | HTTP request | Description ------------- | ------------- | ------------- +[**createProp**](PropsApi.md#createprop) | **POST** /props | Create Prop +[**deleteProp**](PropsApi.md#deleteprop) | **DELETE** /props/{propId} | Delete Prop [**getProp**](PropsApi.md#getprop) | **GET** /props/{propId} | Get Prop +[**getPropPublishStatus**](PropsApi.md#getproppublishstatus) | **GET** /props/{propId}/publish | Get Prop Publish Status +[**listProps**](PropsApi.md#listprops) | **GET** /props | List Props +[**publishProp**](PropsApi.md#publishprop) | **PUT** /props/{propId}/publish | Publish Prop +[**unpublishProp**](PropsApi.md#unpublishprop) | **DELETE** /props/{propId}/publish | Unpublish Prop +[**updateProp**](PropsApi.md#updateprop) | **PUT** /props/{propId} | Update Prop +# **createProp** +> Prop createProp(createPropRequest) + +Create Prop + +Create a Prop and return the new Prop object. + +### 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().getPropsApi(); +final CreatePropRequest createPropRequest = ; // CreatePropRequest | + +try { + final response = api.createProp(createPropRequest); + print(response); +} on DioException catch (e) { + print('Exception when calling PropsApi->createProp: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **createPropRequest** | [**CreatePropRequest**](CreatePropRequest.md)| | + +### Return type + +[**Prop**](Prop.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) + +# **deleteProp** +> deleteProp(propId) + +Delete Prop + +Delete a Prop. + +### 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().getPropsApi(); +final String propId = prop_829ba6f6-b837-49d9-b9a9-056b82103b58; // String | Prop ID. + +try { + api.deleteProp(propId); +} on DioException catch (e) { + print('Exception when calling PropsApi->deleteProp: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **propId** | **String**| Prop ID. | + +### 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) + # **getProp** > Prop getProp(propId) @@ -33,7 +133,7 @@ final String propId = prop_829ba6f6-b837-49d9-b9a9-056b82103b58; // String | Pro try { final response = api.getProp(propId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling PropsApi->getProp: $e\n'); } ``` @@ -59,3 +159,244 @@ 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) +# **getPropPublishStatus** +> PropPublishStatus getPropPublishStatus(propId) + +Get Prop Publish Status + +Returns a PropPublishStatus object. + +### 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().getPropsApi(); +final String propId = prop_829ba6f6-b837-49d9-b9a9-056b82103b58; // String | Prop ID. + +try { + final response = api.getPropPublishStatus(propId); + print(response); +} on DioException catch (e) { + print('Exception when calling PropsApi->getPropPublishStatus: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **propId** | **String**| Prop ID. | + +### Return type + +[**PropPublishStatus**](PropPublishStatus.md) + +### Authorization + +[authCookie](../README.md#authCookie) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **listProps** +> List listProps(authorId, n, offset) + +List Props + +Returns a list Prop objects. + +### 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().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. + +try { + final response = api.listProps(authorId, n, offset); + print(response); +} on DioException catch (e) { + print('Exception when calling PropsApi->listProps: $e\n'); +} +``` + +### Parameters + +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] + +### Return type + +[**List<Prop>**](Prop.md) + +### Authorization + +[authCookie](../README.md#authCookie) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **publishProp** +> PropPublishStatus publishProp(propId) + +Publish Prop + +Publish a Prop and return the updated PropPublishStatus object. + +### 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().getPropsApi(); +final String propId = prop_829ba6f6-b837-49d9-b9a9-056b82103b58; // String | Prop ID. + +try { + final response = api.publishProp(propId); + print(response); +} on DioException catch (e) { + print('Exception when calling PropsApi->publishProp: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **propId** | **String**| Prop ID. | + +### Return type + +[**PropPublishStatus**](PropPublishStatus.md) + +### Authorization + +[authCookie](../README.md#authCookie) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **unpublishProp** +> PropPublishStatus unpublishProp(propId) + +Unpublish Prop + +Unpublish a Prop and return the updated PropPublishStatus object. + +### 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().getPropsApi(); +final String propId = prop_829ba6f6-b837-49d9-b9a9-056b82103b58; // String | Prop ID. + +try { + final response = api.unpublishProp(propId); + print(response); +} on DioException catch (e) { + print('Exception when calling PropsApi->unpublishProp: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **propId** | **String**| Prop ID. | + +### Return type + +[**PropPublishStatus**](PropPublishStatus.md) + +### Authorization + +[authCookie](../README.md#authCookie) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **updateProp** +> Prop updateProp(propId, updatePropRequest) + +Update Prop + +Updates a Prop and returns the updated Prop object. When updating the asset bundle, all of `name`, `assetUrl`, `platform`, `unityVersion`, `assetVersion`, `spawnType`, and `worldPlacementMask` must be present, as well as `propSignature` if this value is not blank. + +### 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().getPropsApi(); +final String propId = prop_829ba6f6-b837-49d9-b9a9-056b82103b58; // String | Prop ID. +final UpdatePropRequest updatePropRequest = ; // UpdatePropRequest | + +try { + final response = api.updateProp(propId, updatePropRequest); + print(response); +} on DioException catch (e) { + print('Exception when calling PropsApi->updateProp: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **propId** | **String**| Prop ID. | + **updatePropRequest** | [**UpdatePropRequest**](UpdatePropRequest.md)| | + +### Return type + +[**Prop**](Prop.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) + diff --git a/vrchat_dart_generated/doc/SearchGroupMembers200Response.md b/vrchat_dart_generated/doc/SearchGroupMembers200Response.md new file mode 100644 index 00000000..0409f844 --- /dev/null +++ b/vrchat_dart_generated/doc/SearchGroupMembers200Response.md @@ -0,0 +1,16 @@ +# vrchat_dart_generated.model.SearchGroupMembers200Response + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**List<GroupMember>**](GroupMember.md) | | [optional] +**total** | **int** | Number of members returned | [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/SentNotification.md b/vrchat_dart_generated/doc/SentNotification.md index 4eb12eac..936c92bf 100644 --- a/vrchat_dart_generated/doc/SentNotification.md +++ b/vrchat_dart_generated/doc/SentNotification.md @@ -9,7 +9,7 @@ import 'package:vrchat_dart_generated/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **createdAt** | [**DateTime**](DateTime.md) | | -**details** | **Object** | | +**details** | **Map<String, String>** | | **id** | **String** | | **message** | **String** | | **receiverUserId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | diff --git a/vrchat_dart_generated/doc/TransferGroupRequest.md b/vrchat_dart_generated/doc/TransferGroupRequest.md new file mode 100644 index 00000000..540d75e5 --- /dev/null +++ b/vrchat_dart_generated/doc/TransferGroupRequest.md @@ -0,0 +1,15 @@ +# vrchat_dart_generated.model.TransferGroupRequest + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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] + +[[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/UnityPackage.md b/vrchat_dart_generated/doc/UnityPackage.md index db94ab6a..e5de2664 100644 --- a/vrchat_dart_generated/doc/UnityPackage.md +++ b/vrchat_dart_generated/doc/UnityPackage.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **impostorUrl** | **String** | | [optional] **impostorizerVersion** | **String** | | [optional] **performanceRating** | [**PerformanceRatings**](PerformanceRatings.md) | | [optional] -**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | +**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | **pluginUrl** | **String** | | [optional] **pluginUrlObject** | **Object** | | [optional] **scanStatus** | **String** | | [optional] diff --git a/vrchat_dart_generated/doc/UpdateAssetReviewNotesRequest.md b/vrchat_dart_generated/doc/UpdateAssetReviewNotesRequest.md new file mode 100644 index 00000000..b7508c19 --- /dev/null +++ b/vrchat_dart_generated/doc/UpdateAssetReviewNotesRequest.md @@ -0,0 +1,15 @@ +# vrchat_dart_generated.model.UpdateAssetReviewNotesRequest + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reviewNotes** | **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/UpdatePropRequest.md b/vrchat_dart_generated/doc/UpdatePropRequest.md new file mode 100644 index 00000000..fe725a8f --- /dev/null +++ b/vrchat_dart_generated/doc/UpdatePropRequest.md @@ -0,0 +1,25 @@ +# vrchat_dart_generated.model.UpdatePropRequest + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**assetUrl** | **String** | | [optional] +**assetVersion** | **int** | | [optional] +**description** | **String** | | [optional] +**imageUrl** | **String** | | [optional] +**name** | **String** | | [optional] +**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | [optional] +**propSignature** | **String** | | [optional] +**spawnType** | **int** | How a prop is summoned and interacted with. 0: the prop fixed to some surface in the world 1: the prop is a pickup and may be held by users 2: ??? | [optional] [default to 1] +**tags** | **List<String>** | | [optional] +**unityVersion** | **String** | | [optional] +**worldPlacementMask** | **int** | Bitmask for restrictions on what world surfaces a prop may be summoned. 0: no restrictions 1: floors 2: walls 4: ceilings | [optional] [default to 1] + +[[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/UpdateWorldRequest.md b/vrchat_dart_generated/doc/UpdateWorldRequest.md index 45cd74bf..e7e9ebb4 100644 --- a/vrchat_dart_generated/doc/UpdateWorldRequest.md +++ b/vrchat_dart_generated/doc/UpdateWorldRequest.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **description** | **String** | | [optional] **imageUrl** | **String** | | [optional] **name** | **String** | | [optional] -**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | [optional] +**platform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | [optional] **releaseStatus** | [**ReleaseStatus**](ReleaseStatus.md) | | [optional] **tags** | **List<String>** | | [optional] **unityPackageUrl** | **String** | | [optional] diff --git a/vrchat_dart_generated/doc/User.md b/vrchat_dart_generated/doc/User.md index fa47feea..2b4468fb 100644 --- a/vrchat_dart_generated/doc/User.md +++ b/vrchat_dart_generated/doc/User.md @@ -28,7 +28,7 @@ Name | Type | Description | Notes **lastActivity** | **String** | Either a date-time or empty string. | **lastLogin** | **String** | Either a date-time or empty string. | **lastMobile** | **String** | | [optional] -**lastPlatform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | +**lastPlatform** | **String** | This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | **location** | **String** | Represents a unique location, consisting of a world identifier and an instance identifier, or \"offline\" if the user is not on your friends list. | [optional] **note** | **String** | | [optional] **platform** | **String** | | [optional] diff --git a/vrchat_dart_generated/doc/UsersApi.md b/vrchat_dart_generated/doc/UsersApi.md index 3bc09850..e99c3e3f 100644 --- a/vrchat_dart_generated/doc/UsersApi.md +++ b/vrchat_dart_generated/doc/UsersApi.md @@ -11,11 +11,15 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**addTags**](UsersApi.md#addtags) | **POST** /users/{userId}/addTags | Add User Tags [**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 +[**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 [**getMutualGroups**](UsersApi.md#getmutualgroups) | **GET** /users/{userId}/mutuals/groups | Get User Mutual Groups [**getMutuals**](UsersApi.md#getmutuals) | **GET** /users/{userId}/mutuals | Get User Mutuals [**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 [**getUserFeedback**](UsersApi.md#getuserfeedback) | **GET** /users/{userId}/feedback | Get User Feedback [**getUserGroupInstances**](UsersApi.md#getusergroupinstances) | **GET** /users/{userId}/instances/groups | Get User Group Instances @@ -54,7 +58,7 @@ final ChangeUserTagsRequest changeUserTagsRequest = ; // ChangeUserTagsRequest | try { final response = api.addTags(userId, changeUserTagsRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling UsersApi->addTags: $e\n'); } ``` @@ -102,7 +106,7 @@ final String worldId = worldId_example; // String | Must be a valid world ID. try { api.checkUserPersistenceExists(userId, worldId); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling UsersApi->checkUserPersistenceExists: $e\n'); } ``` @@ -129,6 +133,52 @@ 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) +# **deleteAllUserPersistenceData** +> deleteAllUserPersistenceData(userId) + +Delete All User Persistence Data + +Deletes all of the user's persistence data for every world. + +### 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 { + api.deleteAllUserPersistenceData(userId); +} on DioException catch (e) { + print('Exception when calling UsersApi->deleteAllUserPersistenceData: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **String**| Must be a valid user ID. | + +### 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) + # **deleteUserPersistence** > deleteUserPersistence(userId, worldId) @@ -150,7 +200,7 @@ final String worldId = worldId_example; // String | Must be a valid world ID. try { api.deleteUserPersistence(userId, worldId); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling UsersApi->deleteUserPersistence: $e\n'); } ``` @@ -177,6 +227,100 @@ 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) +# **getBlockedGroups** +> List getBlockedGroups(userId) + +Get User Group Blocks + +Returns a list of Groups the user has blocked. + +### 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.getBlockedGroups(userId); + print(response); +} on DioException catch (e) { + print('Exception when calling UsersApi->getBlockedGroups: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **String**| Must be a valid user ID. | + +### Return type + +[**List<Group>**](Group.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) + +# **getInvitedGroups** +> List getInvitedGroups(userId) + +Get User Group Invited + +Returns a list of Groups the user has been invited 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().getUsersApi(); +final String userId = userId_example; // String | Must be a valid user ID. + +try { + final response = api.getInvitedGroups(userId); + print(response); +} on DioException catch (e) { + print('Exception when calling UsersApi->getInvitedGroups: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **String**| Must be a valid user ID. | + +### Return type + +[**List<Group>**](Group.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) + # **getMutualFriends** > List getMutualFriends(userId, n, offset) @@ -200,7 +344,7 @@ final int offset = 56; // int | A zero-based offset from the default object sort try { final response = api.getMutualFriends(userId, n, offset); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling UsersApi->getMutualFriends: $e\n'); } ``` @@ -251,7 +395,7 @@ final int offset = 56; // int | A zero-based offset from the default object sort try { final response = api.getMutualGroups(userId, n, offset); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling UsersApi->getMutualGroups: $e\n'); } ``` @@ -300,7 +444,7 @@ final String userId = userId_example; // String | Must be a valid user ID. try { final response = api.getMutuals(userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling UsersApi->getMutuals: $e\n'); } ``` @@ -347,7 +491,7 @@ final String userId = userId_example; // String | Must be a valid user ID. try { final response = api.getUser(userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling UsersApi->getUser: $e\n'); } ``` @@ -373,6 +517,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) +# **getUserAllGroupPermissions** +> Map> getUserAllGroupPermissions(userId, groupIds) + +Get user's permissions for all joined groups. + +Returns a mapping of GroupIDs to arrays of GroupPermissions. + +### 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 String groupIds = grp_00000000-0000-0000-0000-000000000000,grp_11111111-1111-1111-1111-111111111111; // String | Comma-separated (no spaces!) list of GroupIDs to retrieve permissions for. + +try { + final response = api.getUserAllGroupPermissions(userId, groupIds); + print(response); +} on DioException catch (e) { + print('Exception when calling UsersApi->getUserAllGroupPermissions: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **String**| Must be a valid user ID. | + **groupIds** | **String**| Comma-separated (no spaces!) list of GroupIDs to retrieve permissions for. | [optional] + +### Return type + +[**Map<String, List<GroupPermissions>>**](List.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) + # **getUserByName** > User getUserByName(username) @@ -394,7 +587,7 @@ final String username = username_example; // String | Username of the user try { final response = api.getUserByName(username); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling UsersApi->getUserByName: $e\n'); } ``` @@ -444,7 +637,7 @@ final int offset = 56; // int | A zero-based offset from the default object sort try { final response = api.getUserFeedback(userId, contentId, n, offset); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling UsersApi->getUserFeedback: $e\n'); } ``` @@ -494,7 +687,7 @@ final String userId = userId_example; // String | Must be a valid user ID. try { final response = api.getUserGroupInstances(userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling UsersApi->getUserGroupInstances: $e\n'); } ``` @@ -542,7 +735,7 @@ final String groupId = grp_00000000-0000-0000-0000-000000000000; // String | Mus try { final response = api.getUserGroupInstancesForGroup(userId, groupId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling UsersApi->getUserGroupInstancesForGroup: $e\n'); } ``` @@ -590,7 +783,7 @@ final String userId = userId_example; // String | Must be a valid user ID. try { final response = api.getUserGroupRequests(userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling UsersApi->getUserGroupRequests: $e\n'); } ``` @@ -637,7 +830,7 @@ final String userId = userId_example; // String | Must be a valid user ID. try { final response = api.getUserGroups(userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling UsersApi->getUserGroups: $e\n'); } ``` @@ -684,7 +877,7 @@ final String userNoteId = userNoteId_example; // String | Must be a valid user n try { final response = api.getUserNote(userNoteId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling UsersApi->getUserNote: $e\n'); } ``` @@ -732,7 +925,7 @@ final int offset = 56; // int | A zero-based offset from the default object sort try { final response = api.getUserNotes(n, offset); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling UsersApi->getUserNotes: $e\n'); } ``` @@ -780,7 +973,7 @@ final String userId = userId_example; // String | Must be a valid user ID. try { final response = api.getUserRepresentedGroup(userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling UsersApi->getUserRepresentedGroup: $e\n'); } ``` @@ -828,7 +1021,7 @@ final ChangeUserTagsRequest changeUserTagsRequest = ; // ChangeUserTagsRequest | try { final response = api.removeTags(userId, changeUserTagsRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling UsersApi->removeTags: $e\n'); } ``` @@ -856,7 +1049,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) # **searchUsers** -> List searchUsers(search, developerType, n, offset) +> List searchUsers(search, developerType, n, offset, isInternalVariant) Search All Users @@ -875,11 +1068,12 @@ final String search = search_example; // String | Searches by `displayName`. Wil final String developerType = developerType_example; // String | Active user by developer type, none for normal users and internal for moderators 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 bool isInternalVariant = false; // bool | Not quite sure what this actually does (exists on the website but doesn't seem to be used) try { - final response = api.searchUsers(search, developerType, n, offset); + final response = api.searchUsers(search, developerType, n, offset, isInternalVariant); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling UsersApi->searchUsers: $e\n'); } ``` @@ -892,6 +1086,7 @@ Name | Type | Description | Notes **developerType** | **String**| Active user by developer type, none for normal users and internal for moderators | [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] + **isInternalVariant** | **bool**| Not quite sure what this actually does (exists on the website but doesn't seem to be used) | [optional] ### Return type @@ -930,7 +1125,7 @@ final UpdateUserBadgeRequest updateUserBadgeRequest = ; // UpdateUserBadgeReques try { api.updateBadge(userId, badgeId, updateUserBadgeRequest); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling UsersApi->updateBadge: $e\n'); } ``` @@ -980,7 +1175,7 @@ final UpdateUserRequest updateUserRequest = ; // UpdateUserRequest | try { final response = api.updateUser(userId, updateUserRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling UsersApi->updateUser: $e\n'); } ``` @@ -1028,7 +1223,7 @@ final UpdateUserNoteRequest updateUserNoteRequest = ; // UpdateUserNoteRequest | try { final response = api.updateUserNote(updateUserNoteRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling UsersApi->updateUserNote: $e\n'); } ``` diff --git a/vrchat_dart_generated/doc/WorldsApi.md b/vrchat_dart_generated/doc/WorldsApi.md index abe8fc74..0e6e44da 100644 --- a/vrchat_dart_generated/doc/WorldsApi.md +++ b/vrchat_dart_generated/doc/WorldsApi.md @@ -11,6 +11,7 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**checkUserPersistenceExists**](WorldsApi.md#checkuserpersistenceexists) | **GET** /users/{userId}/{worldId}/persist/exists | Check User Persistence Exists [**createWorld**](WorldsApi.md#createworld) | **POST** /worlds | Create World +[**deleteAllUserPersistenceData**](WorldsApi.md#deletealluserpersistencedata) | **DELETE** /users/{userId}/persist | Delete All User Persistence Data [**deleteUserPersistence**](WorldsApi.md#deleteuserpersistence) | **DELETE** /users/{userId}/{worldId}/persist | Delete User Persistence [**deleteWorld**](WorldsApi.md#deleteworld) | **DELETE** /worlds/{worldId} | Delete World [**getActiveWorlds**](WorldsApi.md#getactiveworlds) | **GET** /worlds/active | List Active Worlds @@ -47,7 +48,7 @@ final String worldId = worldId_example; // String | Must be a valid world ID. try { api.checkUserPersistenceExists(userId, worldId); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling WorldsApi->checkUserPersistenceExists: $e\n'); } ``` @@ -91,7 +92,7 @@ final CreateWorldRequest createWorldRequest = ; // CreateWorldRequest | try { final response = api.createWorld(createWorldRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling WorldsApi->createWorld: $e\n'); } ``` @@ -117,6 +118,52 @@ 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) +# **deleteAllUserPersistenceData** +> deleteAllUserPersistenceData(userId) + +Delete All User Persistence Data + +Deletes all of the user's persistence data for every world. + +### 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().getWorldsApi(); +final String userId = userId_example; // String | Must be a valid user ID. + +try { + api.deleteAllUserPersistenceData(userId); +} on DioException catch (e) { + print('Exception when calling WorldsApi->deleteAllUserPersistenceData: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **String**| Must be a valid user ID. | + +### 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) + # **deleteUserPersistence** > deleteUserPersistence(userId, worldId) @@ -138,7 +185,7 @@ final String worldId = worldId_example; // String | Must be a valid world ID. try { api.deleteUserPersistence(userId, worldId); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling WorldsApi->deleteUserPersistence: $e\n'); } ``` @@ -185,7 +232,7 @@ final String worldId = worldId_example; // String | Must be a valid world ID. try { api.deleteWorld(worldId); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling WorldsApi->deleteWorld: $e\n'); } ``` @@ -244,7 +291,7 @@ final String noplatform = noplatform_example; // String | The platform the asset try { final response = api.getActiveWorlds(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, noplatform); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling WorldsApi->getActiveWorlds: $e\n'); } ``` @@ -315,7 +362,7 @@ final String userId = userId_example; // String | Target user to see information try { final response = api.getFavoritedWorlds(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling WorldsApi->getFavoritedWorlds: $e\n'); } ``` @@ -386,7 +433,7 @@ final String userId = userId_example; // String | Target user to see information try { final response = api.getRecentWorlds(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling WorldsApi->getRecentWorlds: $e\n'); } ``` @@ -441,7 +488,7 @@ final String worldId = worldId_example; // String | Must be a valid world ID. try { final response = api.getWorld(worldId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling WorldsApi->getWorld: $e\n'); } ``` @@ -489,7 +536,7 @@ final String instanceId = instanceId_example; // String | Must be a valid instan try { final response = api.getWorldInstance(worldId, instanceId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling WorldsApi->getWorldInstance: $e\n'); } ``` @@ -537,7 +584,7 @@ final String worldId = worldId_example; // String | Must be a valid world ID. try { final response = api.getWorldMetadata(worldId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling WorldsApi->getWorldMetadata: $e\n'); } ``` @@ -584,7 +631,7 @@ final String worldId = worldId_example; // String | Must be a valid world ID. try { final response = api.getWorldPublishStatus(worldId); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling WorldsApi->getWorldPublishStatus: $e\n'); } ``` @@ -630,7 +677,7 @@ final String worldId = worldId_example; // String | Must be a valid world ID. try { api.publishWorld(worldId); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling WorldsApi->publishWorld: $e\n'); } ``` @@ -693,7 +740,7 @@ final bool avatarSpecific = true; // bool | Only search for avatar worlds. try { final response = api.searchWorlds(featured, sort, user, userId, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, noplatform, fuzzy, avatarSpecific); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling WorldsApi->searchWorlds: $e\n'); } ``` @@ -755,7 +802,7 @@ final String worldId = worldId_example; // String | Must be a valid world ID. try { api.unpublishWorld(worldId); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling WorldsApi->unpublishWorld: $e\n'); } ``` @@ -803,7 +850,7 @@ final UpdateWorldRequest updateWorldRequest = ; // UpdateWorldRequest | try { final response = api.updateWorld(worldId, updateWorldRequest); print(response); -} catch on DioException (e) { +} on DioException catch (e) { print('Exception when calling WorldsApi->updateWorld: $e\n'); } ``` diff --git a/vrchat_dart_generated/lib/src/api/avatars_api.dart b/vrchat_dart_generated/lib/src/api/avatars_api.dart index 2938e998..19d75e3d 100644 --- a/vrchat_dart_generated/lib/src/api/avatars_api.dart +++ b/vrchat_dart_generated/lib/src/api/avatars_api.dart @@ -891,6 +891,7 @@ class AvatarsApi { /// * [maxUnityVersion] - The maximum Unity version supported by the asset. /// * [minUnityVersion] - The minimum Unity version supported by the asset. /// * [platform] - The platform the asset supports. + /// * [isInternalVariant] - Not quite sure what this actually does (exists on the website but doesn't seem to be used) /// * [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 @@ -914,6 +915,7 @@ class AvatarsApi { String? maxUnityVersion, String? minUnityVersion, String? platform, + bool? isInternalVariant, CancelToken? cancelToken, Map? headers, Map? extra, @@ -953,6 +955,7 @@ class AvatarsApi { if (maxUnityVersion != null) r'maxUnityVersion': maxUnityVersion, if (minUnityVersion != null) r'minUnityVersion': minUnityVersion, if (platform != null) r'platform': platform, + if (isInternalVariant != null) r'isInternalVariant': isInternalVariant, }; final _response = await _dio.request( diff --git a/vrchat_dart_generated/lib/src/api/calendar_api.dart b/vrchat_dart_generated/lib/src/api/calendar_api.dart index 5f8c209c..da767551 100644 --- a/vrchat_dart_generated/lib/src/api/calendar_api.dart +++ b/vrchat_dart_generated/lib/src/api/calendar_api.dart @@ -1106,6 +1106,7 @@ class CalendarApi { /// * [utcOffset] - The offset from UTC in hours of the client or authenticated user. /// * [n] - The number of objects to return. /// * [offset] - A zero-based offset from the default object sorting from where search results start. + /// * [isInternalVariant] - Not quite sure what this actually does (exists on the website but doesn't seem to be used) /// * [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 @@ -1120,6 +1121,7 @@ class CalendarApi { int? utcOffset, int? n = 60, int? offset, + bool? isInternalVariant, CancelToken? cancelToken, Map? headers, Map? extra, @@ -1150,6 +1152,7 @@ class CalendarApi { if (utcOffset != null) r'utcOffset': utcOffset, if (n != null) r'n': n, if (offset != null) r'offset': offset, + if (isInternalVariant != null) r'isInternalVariant': isInternalVariant, }; final _response = await _dio.request( diff --git a/vrchat_dart_generated/lib/src/api/files_api.dart b/vrchat_dart_generated/lib/src/api/files_api.dart index 212854aa..84ae43a5 100644 --- a/vrchat_dart_generated/lib/src/api/files_api.dart +++ b/vrchat_dart_generated/lib/src/api/files_api.dart @@ -11,6 +11,10 @@ import 'package:dio/dio.dart'; import 'dart:typed_data'; import 'package:vrchat_dart_generated/src/model/admin_asset_bundle.dart'; +import 'package:vrchat_dart_generated/src/model/agreement.dart'; +import 'package:vrchat_dart_generated/src/model/agreement_code.dart'; +import 'package:vrchat_dart_generated/src/model/agreement_request.dart'; +import 'package:vrchat_dart_generated/src/model/agreement_status.dart'; import 'package:vrchat_dart_generated/src/model/create_file_request.dart'; import 'package:vrchat_dart_generated/src/model/create_file_version_request.dart'; import 'package:vrchat_dart_generated/src/model/file.dart'; @@ -18,6 +22,13 @@ import 'package:vrchat_dart_generated/src/model/file_analysis.dart'; import 'package:vrchat_dart_generated/src/model/file_upload_url.dart'; 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/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/image_animation_style.dart'; +import 'package:vrchat_dart_generated/src/model/image_loop_style.dart'; +import 'package:vrchat_dart_generated/src/model/image_mask.dart'; +import 'package:vrchat_dart_generated/src/model/image_purpose.dart'; +import 'package:vrchat_dart_generated/src/model/update_asset_review_notes_request.dart'; class FilesApi { final Dio _dio; @@ -687,6 +698,99 @@ class FilesApi { ); } + /// Get Content Agreement Status + /// Returns the agreement status of the currently authenticated user for the given agreementCode, contentId, and version. + /// + /// Parameters: + /// * [agreementCode] - The type of agreement (currently content.copyright.owned) + /// * [contentId] - The id of the content being uploaded, such as a WorldID, AvatarID, or PropID + /// * [version] - The version of the agreement (currently 1) + /// * [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 [AgreementStatus] as data + /// Throws [DioException] if API call or serialization fails + Future> getContentAgreementStatus({ + required AgreementCode agreementCode, + required String contentId, + required int version, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/agreement'; + final _options = Options( + method: r'GET', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _queryParameters = { + r'agreementCode': agreementCode, + r'contentId': contentId, + r'version': version, + }; + + final _response = await _dio.request( + _path, + options: _options, + queryParameters: _queryParameters, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + AgreementStatus? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize( + rawData, + 'AgreementStatus', + 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, + ); + } + /// Show File /// Shows general information about the \"File\" object. Each File can have several \"Version\"'s, and each Version can have multiple real files or \"Data\" blobs. /// @@ -1258,6 +1362,103 @@ class FilesApi { ); } + /// Set Group Gallery File Order + /// Set the order of the files in a group gallery + /// + /// Parameters: + /// * [groupGalleryFileOrderRequest] + /// * [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 [GroupGalleryFileOrder] as data + /// Throws [DioException] if API call or serialization fails + Future> setGroupGalleryFileOrder({ + GroupGalleryFileOrderRequest? groupGalleryFileOrderRequest, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/files/order'; + 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(groupGalleryFileOrderRequest); + } 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, + ); + + GroupGalleryFileOrder? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize( + rawData, + 'GroupGalleryFileOrder', + 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, + ); + } + /// Start FileData Upload /// Starts an upload of a specific FilePart. This endpoint will return an AWS URL which you can PUT data to. You need to call this and receive a new AWS API URL for each `partNumber`. Please see AWS's REST documentation on \"PUT Object to S3\" on how to upload. Once all parts has been uploaded, proceed to `/finish` endpoint. **Note:** `nextPartNumber` seems like it is always ignored. Despite it returning 0, first partNumber is always 1. /// @@ -1369,6 +1570,177 @@ class FilesApi { ); } + /// Submit Content Agreement + /// Returns the agreement of the currently authenticated user for the given agreementCode, contentId, and version. + /// + /// Parameters: + /// * [agreementRequest] + /// * [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 [Agreement] as data + /// Throws [DioException] if API call or serialization fails + Future> submitContentAgreement({ + AgreementRequest? agreementRequest, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/agreement'; + final _options = Options( + method: r'POST', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + contentType: 'application/json', + validateStatus: validateStatus, + ); + + dynamic _bodyData; + + try { + _bodyData = jsonEncode(agreementRequest); + } 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, + ); + + Agreement? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize( + rawData, + 'Agreement', + 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 Asset Review Notes + /// Update notes regarding an asset review. + /// + /// Parameters: + /// * [assetReviewId] - Must be an valid asset review ID. + /// * [updateAssetReviewNotesRequest] + /// * [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> updateAssetReviewNotes({ + required String assetReviewId, + UpdateAssetReviewNotesRequest? updateAssetReviewNotesRequest, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/assetReview/{assetReviewId}/notes'.replaceAll( + '{' + r'assetReviewId' + '}', + assetReviewId.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(updateAssetReviewNotesRequest); + } 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, + ); + + return _response; + } + /// Upload gallery image /// Upload a gallery image /// @@ -1560,11 +1932,12 @@ class FilesApi { /// /// Parameters: /// * [file] - The binary blob of the png file. - /// * [tag] - Needs to be either icon, gallery, sticker, emoji, or emojianimated - /// * [animationStyle] - Animation style for sticker, required for emoji. - /// * [frames] - Required for emojianimated. Total number of frames to be animated (2-64) - /// * [framesOverTime] - Required for emojianimated. Animation frames per second (1-64) - /// * [maskTag] - Mask of the sticker, optional for emoji. + /// * [tag] + /// * [animationStyle] + /// * [frames] - Required for animated images. Total number of frames of the spritesheet to be animated. + /// * [framesOverTime] - Required for animated images. Animation frames per second. + /// * [loopStyle] + /// * [maskTag] /// * [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 @@ -1576,11 +1949,12 @@ class FilesApi { /// Throws [DioException] if API call or serialization fails Future> uploadImage({ required MultipartFile file, - required String tag, - String? animationStyle, + required ImagePurpose tag, + ImageAnimationStyle? animationStyle, int? frames, int? framesOverTime, - String? maskTag, + ImageLoopStyle? loopStyle, + ImageMask? maskTag, CancelToken? cancelToken, Map? headers, Map? extra, diff --git a/vrchat_dart_generated/lib/src/api/groups_api.dart b/vrchat_dart_generated/lib/src/api/groups_api.dart index 099beded..ca312b5b 100644 --- a/vrchat_dart_generated/lib/src/api/groups_api.dart +++ b/vrchat_dart_generated/lib/src/api/groups_api.dart @@ -17,6 +17,7 @@ import 'package:vrchat_dart_generated/src/model/create_group_invite_request.dart 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_posts200_response.dart'; import 'package:vrchat_dart_generated/src/model/group.dart'; import 'package:vrchat_dart_generated/src/model/group_announcement.dart'; @@ -30,10 +31,14 @@ import 'package:vrchat_dart_generated/src/model/group_post.dart'; import 'package:vrchat_dart_generated/src/model/group_role.dart'; import 'package:vrchat_dart_generated/src/model/group_role_template_values.dart'; import 'package:vrchat_dart_generated/src/model/group_search_sort.dart'; +import 'package:vrchat_dart_generated/src/model/group_transferable.dart'; +import 'package:vrchat_dart_generated/src/model/join_group_request.dart'; import 'package:vrchat_dart_generated/src/model/limited_group.dart'; import 'package:vrchat_dart_generated/src/model/paginated_group_audit_log_entry_list.dart'; import 'package:vrchat_dart_generated/src/model/respond_group_join_request.dart'; +import 'package:vrchat_dart_generated/src/model/search_group_members200_response.dart'; import 'package:vrchat_dart_generated/src/model/success.dart'; +import 'package:vrchat_dart_generated/src/model/transfer_group_request.dart'; import 'package:vrchat_dart_generated/src/model/update_group_gallery_request.dart'; import 'package:vrchat_dart_generated/src/model/update_group_member_request.dart'; import 'package:vrchat_dart_generated/src/model/update_group_representation_request.dart'; @@ -470,6 +475,89 @@ class GroupsApi { ); } + /// Block Group + /// Blocks a Group for the current user. To unblock a group, call kickGroupMember (DELETE /groups/{groupId}/members/{userId}). + /// + /// Parameters: + /// * [groupId] - Must be a valid group 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 [Success] as data + /// Throws [DioException] if API call or serialization fails + Future> blockGroup({ + required String groupId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/groups/{groupId}/block'.replaceAll( + '{' + r'groupId' + '}', + groupId.toString(), + ); + final _options = Options( + method: r'POST', + 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, + ); + + Success? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize(rawData, 'Success', 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, + ); + } + /// Cancel Group Join Request /// Cancels a request sent to join the group. /// @@ -527,6 +615,89 @@ class GroupsApi { return _response; } + /// Cancel Group Transfer + /// Cancel a Group Transfer. + /// + /// Parameters: + /// * [groupId] - Must be a valid group 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 [Success] as data + /// Throws [DioException] if API call or serialization fails + Future> cancelGroupTransfer({ + required String groupId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/groups/{groupId}/transfer'.replaceAll( + '{' + r'groupId' + '}', + groupId.toString(), + ); + final _options = Options( + method: r'DELETE', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _response = await _dio.request( + _path, + options: _options, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + Success? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize(rawData, 'Success', 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, + ); + } + /// Create Group /// Creates a Group and returns a Group object. **Requires VRC+ Subscription.** /// @@ -1006,11 +1177,112 @@ class GroupsApi { ); } + /// Decline Invite from Group + /// Declines an invite to the user from a group. + /// + /// Parameters: + /// * [groupId] - Must be a valid group ID. + /// * [declineGroupInviteRequest] + /// * [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 [Success] as data + /// Throws [DioException] if API call or serialization fails + Future> declineGroupInvite({ + required String groupId, + DeclineGroupInviteRequest? declineGroupInviteRequest, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/groups/{groupId}/invites'.replaceAll( + '{' + r'groupId' + '}', + groupId.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(declineGroupInviteRequest); + } 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, + ); + + Success? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize(rawData, 'Success', 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, + ); + } + /// Delete Group /// Deletes a Group. /// /// Parameters: /// * [groupId] - Must be a valid group ID. + /// * [hardDelete] /// * [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 @@ -1022,6 +1294,7 @@ class GroupsApi { /// Throws [DioException] if API call or serialization fails Future> deleteGroup({ required String groupId, + bool? hardDelete, CancelToken? cancelToken, Map? headers, Map? extra, @@ -1052,9 +1325,14 @@ class GroupsApi { validateStatus: validateStatus, ); + final _queryParameters = { + if (hardDelete != null) r'hardDelete': hardDelete, + }; + final _response = await _dio.request( _path, options: _options, + queryParameters: _queryParameters, cancelToken: cancelToken, onSendProgress: onSendProgress, onReceiveProgress: onReceiveProgress, @@ -1796,6 +2074,93 @@ class GroupsApi { ); } + /// Get Group Audit Log Entry Types + /// Returns a list of audit log entry types for which the group has entries. + /// + /// Parameters: + /// * [groupId] - Must be a valid group 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>> getGroupAuditLogEntryTypes({ + required String groupId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/groups/{groupId}/auditLogTypes'.replaceAll( + '{' + r'groupId' + '}', + groupId.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, String>( + 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 Group Audit Logs /// Returns a list of audit logs for a Group. /// @@ -2949,11 +3314,207 @@ class GroupsApi { ); } + /// Get Group Transferability + /// Returns the transferability of the group to a given user. + /// + /// Parameters: + /// * [groupId] - Must be a valid group ID. + /// * [transferTargetId] - The UserID of the prospective transferee. + /// * [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 [GroupTransferable] as data + /// Throws [DioException] if API call or serialization fails + Future> getGroupTransferability({ + required String groupId, + String? transferTargetId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/groups/{groupId}/transfer'.replaceAll( + '{' + r'groupId' + '}', + groupId.toString(), + ); + final _options = Options( + method: r'GET', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _queryParameters = { + if (transferTargetId != null) r'transferTargetId': transferTargetId, + }; + + final _response = await _dio.request( + _path, + options: _options, + queryParameters: _queryParameters, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + GroupTransferable? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize( + rawData, + 'GroupTransferable', + 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, + ); + } + + /// Initiate or Accept Group Transfer + /// To initiate, must be logged in as the current owner and specify the transferTargetId in the body. To accept, must be logged in as the user targetted by a pending transfer, no body is required. + /// + /// Parameters: + /// * [groupId] - Must be a valid group ID. + /// * [transferGroupRequest] + /// * [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 [Success] as data + /// Throws [DioException] if API call or serialization fails + Future> initiateOrAcceptGroupTransfer({ + required String groupId, + TransferGroupRequest? transferGroupRequest, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/groups/{groupId}/transfer'.replaceAll( + '{' + r'groupId' + '}', + groupId.toString(), + ); + final _options = Options( + method: r'POST', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + contentType: 'application/json', + validateStatus: validateStatus, + ); + + dynamic _bodyData; + + try { + _bodyData = jsonEncode(transferGroupRequest); + } 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, + ); + + Success? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize(rawData, 'Success', 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, + ); + } + /// Join Group /// Join a Group by ID and returns the member object. /// /// Parameters: /// * [groupId] - Must be a valid group ID. + /// * [confirmOverrideBlock] - Manually override the failure that would occur if the user has blocked the group. + /// * [joinGroupRequest] /// * [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 @@ -2965,6 +3526,8 @@ class GroupsApi { /// Throws [DioException] if API call or serialization fails Future> joinGroup({ required String groupId, + bool? confirmOverrideBlock, + JoinGroupRequest? joinGroupRequest, CancelToken? cancelToken, Map? headers, Map? extra, @@ -2992,12 +3555,37 @@ class GroupsApi { ], ...?extra, }, + contentType: 'application/json', validateStatus: validateStatus, ); + final _queryParameters = { + if (confirmOverrideBlock != null) + r'confirmOverrideBlock': confirmOverrideBlock, + }; + + dynamic _bodyData; + + try { + _bodyData = jsonEncode(joinGroupRequest); + } catch (error, stackTrace) { + throw DioException( + requestOptions: _options.compose( + _dio.options, + _path, + queryParameters: _queryParameters, + ), + type: DioExceptionType.unknown, + error: error, + stackTrace: stackTrace, + ); + } + final _response = await _dio.request( _path, + data: _bodyData, options: _options, + queryParameters: _queryParameters, cancelToken: cancelToken, onSendProgress: onSendProgress, onReceiveProgress: onReceiveProgress, @@ -3037,7 +3625,7 @@ class GroupsApi { } /// Kick Group Member - /// Kicks a Group Member from the Group. The current user must have the \"Remove Group Members\" permission. + /// Kicks a Group Member from the Group. The current user must have the \"Remove Group Members\" permission. Also used for unblocking groups. /// /// Parameters: /// * [groupId] - Must be a valid group ID. @@ -3049,9 +3637,9 @@ 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] + /// Returns a [Future] containing a [Response] with a [Success] as data /// Throws [DioException] if API call or serialization fails - Future> kickGroupMember({ + Future> kickGroupMember({ required String groupId, required String userId, CancelToken? cancelToken, @@ -3099,7 +3687,33 @@ class GroupsApi { onReceiveProgress: onReceiveProgress, ); - return _response; + Success? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize(rawData, 'Success', 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, + ); } /// Leave Group @@ -3346,6 +3960,105 @@ class GroupsApi { return _response; } + /// Search Group Members + /// Search for members in the group by displayName. + /// + /// Parameters: + /// * [groupId] - Must be a valid group ID. + /// * [query] - Filter for member displayName. + /// * [n] - The number of objects to return. + /// * [offset] - A zero-based offset from the default object sorting from where search results start. + /// * [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 [SearchGroupMembers200Response] as data + /// Throws [DioException] if API call or serialization fails + Future> searchGroupMembers({ + required String groupId, + required String query, + int? n = 60, + int? offset, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/groups/{groupId}/members/search'.replaceAll( + '{' + r'groupId' + '}', + groupId.toString(), + ); + final _options = Options( + method: r'GET', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _queryParameters = { + if (n != null) r'n': n, + if (offset != null) r'offset': offset, + r'query': query, + }; + + final _response = await _dio.request( + _path, + options: _options, + queryParameters: _queryParameters, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + SearchGroupMembers200Response? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize< + SearchGroupMembers200Response, + SearchGroupMembers200Response + >(rawData, 'SearchGroupMembers200Response', 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, + ); + } + /// Search Group /// Searches Groups by name or shortCode /// diff --git a/vrchat_dart_generated/lib/src/api/props_api.dart b/vrchat_dart_generated/lib/src/api/props_api.dart index c4b7e960..75e46e39 100644 --- a/vrchat_dart_generated/lib/src/api/props_api.dart +++ b/vrchat_dart_generated/lib/src/api/props_api.dart @@ -9,13 +9,166 @@ import 'dart:convert'; import 'package:vrchat_dart_generated/src/deserialize.dart'; import 'package:dio/dio.dart'; +import 'package:vrchat_dart_generated/src/model/create_prop_request.dart'; import 'package:vrchat_dart_generated/src/model/prop.dart'; +import 'package:vrchat_dart_generated/src/model/prop_publish_status.dart'; +import 'package:vrchat_dart_generated/src/model/update_prop_request.dart'; class PropsApi { final Dio _dio; const PropsApi(this._dio); + /// Create Prop + /// Create a Prop and return the new Prop object. + /// + /// Parameters: + /// * [createPropRequest] + /// * [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 [Prop] as data + /// Throws [DioException] if API call or serialization fails + Future> createProp({ + required CreatePropRequest createPropRequest, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/props'; + final _options = Options( + method: r'POST', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + contentType: 'application/json', + validateStatus: validateStatus, + ); + + dynamic _bodyData; + + try { + _bodyData = jsonEncode(createPropRequest); + } 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, + ); + + Prop? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize(rawData, 'Prop', 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, + ); + } + + /// Delete Prop + /// Delete a Prop. + /// + /// Parameters: + /// * [propId] - Prop ID. + /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation + /// * [headers] - Can be used to add additional headers to the request + /// * [extras] - Can be used to add flags to the request + /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response + /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress + /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress + /// + /// Returns a [Future] + /// Throws [DioException] if API call or serialization fails + Future> deleteProp({ + required String propId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/props/{propId}'.replaceAll( + '{' + r'propId' + '}', + propId.toString(), + ); + final _options = Options( + method: r'DELETE', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _response = await _dio.request( + _path, + options: _options, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + return _response; + } + /// Get Prop /// Returns a Prop object. /// @@ -98,4 +251,458 @@ class PropsApi { extra: _response.extra, ); } + + /// Get Prop Publish Status + /// Returns a PropPublishStatus object. + /// + /// Parameters: + /// * [propId] - Prop ID. + /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation + /// * [headers] - Can be used to add additional headers to the request + /// * [extras] - Can be used to add flags to the request + /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response + /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress + /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress + /// + /// Returns a [Future] containing a [Response] with a [PropPublishStatus] as data + /// Throws [DioException] if API call or serialization fails + Future> getPropPublishStatus({ + required String propId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/props/{propId}/publish'.replaceAll( + '{' + r'propId' + '}', + propId.toString(), + ); + final _options = Options( + method: r'GET', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _response = await _dio.request( + _path, + options: _options, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + PropPublishStatus? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize( + rawData, + 'PropPublishStatus', + growable: true, + ); + } catch (error, stackTrace) { + throw DioException( + requestOptions: _response.requestOptions, + response: _response, + type: DioExceptionType.unknown, + error: error, + stackTrace: stackTrace, + ); + } + + return Response( + data: _responseData, + headers: _response.headers, + isRedirect: _response.isRedirect, + requestOptions: _response.requestOptions, + redirects: _response.redirects, + statusCode: _response.statusCode, + statusMessage: _response.statusMessage, + extra: _response.extra, + ); + } + + /// List Props + /// 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. + /// * [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>> listProps({ + required String authorId, + int? n = 60, + int? offset, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/props'; + final _options = Options( + method: r'GET', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _queryParameters = { + if (n != null) r'n': n, + if (offset != null) r'offset': offset, + r'authorId': authorId, + }; + + final _response = await _dio.request( + _path, + options: _options, + queryParameters: _queryParameters, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + List? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize, Prop>( + 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, + ); + } + + /// Publish Prop + /// Publish a Prop and return the updated PropPublishStatus object. + /// + /// Parameters: + /// * [propId] - Prop ID. + /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation + /// * [headers] - Can be used to add additional headers to the request + /// * [extras] - Can be used to add flags to the request + /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response + /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress + /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress + /// + /// Returns a [Future] containing a [Response] with a [PropPublishStatus] as data + /// Throws [DioException] if API call or serialization fails + Future> publishProp({ + required String propId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/props/{propId}/publish'.replaceAll( + '{' + r'propId' + '}', + propId.toString(), + ); + final _options = Options( + method: r'PUT', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _response = await _dio.request( + _path, + options: _options, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + PropPublishStatus? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize( + rawData, + 'PropPublishStatus', + growable: true, + ); + } catch (error, stackTrace) { + throw DioException( + requestOptions: _response.requestOptions, + response: _response, + type: DioExceptionType.unknown, + error: error, + stackTrace: stackTrace, + ); + } + + return Response( + data: _responseData, + headers: _response.headers, + isRedirect: _response.isRedirect, + requestOptions: _response.requestOptions, + redirects: _response.redirects, + statusCode: _response.statusCode, + statusMessage: _response.statusMessage, + extra: _response.extra, + ); + } + + /// Unpublish Prop + /// Unpublish a Prop and return the updated PropPublishStatus object. + /// + /// Parameters: + /// * [propId] - Prop ID. + /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation + /// * [headers] - Can be used to add additional headers to the request + /// * [extras] - Can be used to add flags to the request + /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response + /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress + /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress + /// + /// Returns a [Future] containing a [Response] with a [PropPublishStatus] as data + /// Throws [DioException] if API call or serialization fails + Future> unpublishProp({ + required String propId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/props/{propId}/publish'.replaceAll( + '{' + r'propId' + '}', + propId.toString(), + ); + final _options = Options( + method: r'DELETE', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _response = await _dio.request( + _path, + options: _options, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + PropPublishStatus? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize( + rawData, + 'PropPublishStatus', + growable: true, + ); + } catch (error, stackTrace) { + throw DioException( + requestOptions: _response.requestOptions, + response: _response, + type: DioExceptionType.unknown, + error: error, + stackTrace: stackTrace, + ); + } + + return Response( + data: _responseData, + headers: _response.headers, + isRedirect: _response.isRedirect, + requestOptions: _response.requestOptions, + redirects: _response.redirects, + statusCode: _response.statusCode, + statusMessage: _response.statusMessage, + extra: _response.extra, + ); + } + + /// Update Prop + /// Updates a Prop and returns the updated Prop object. When updating the asset bundle, all of `name`, `assetUrl`, `platform`, `unityVersion`, `assetVersion`, `spawnType`, and `worldPlacementMask` must be present, as well as `propSignature` if this value is not blank. + /// + /// Parameters: + /// * [propId] - Prop ID. + /// * [updatePropRequest] + /// * [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 [Prop] as data + /// Throws [DioException] if API call or serialization fails + Future> updateProp({ + required String propId, + required UpdatePropRequest updatePropRequest, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/props/{propId}'.replaceAll( + '{' + r'propId' + '}', + propId.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(updatePropRequest); + } 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, + ); + + Prop? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize(rawData, 'Prop', growable: true); + } catch (error, stackTrace) { + throw DioException( + requestOptions: _response.requestOptions, + response: _response, + type: DioExceptionType.unknown, + error: error, + stackTrace: stackTrace, + ); + } + + return Response( + data: _responseData, + headers: _response.headers, + isRedirect: _response.isRedirect, + requestOptions: _response.requestOptions, + redirects: _response.redirects, + statusCode: _response.statusCode, + statusMessage: _response.statusMessage, + extra: _response.extra, + ); + } } diff --git a/vrchat_dart_generated/lib/src/api/users_api.dart b/vrchat_dart_generated/lib/src/api/users_api.dart index a59a09cf..7a6546cf 100644 --- a/vrchat_dart_generated/lib/src/api/users_api.dart +++ b/vrchat_dart_generated/lib/src/api/users_api.dart @@ -14,6 +14,7 @@ import 'package:vrchat_dart_generated/src/model/current_user.dart'; import 'package:vrchat_dart_generated/src/model/feedback.dart'; import 'package:vrchat_dart_generated/src/model/get_user_group_instances200_response.dart'; import 'package:vrchat_dart_generated/src/model/group.dart'; +import 'package:vrchat_dart_generated/src/model/group_permissions.dart'; import 'package:vrchat_dart_generated/src/model/limited_user_groups.dart'; import 'package:vrchat_dart_generated/src/model/limited_user_search.dart'; import 'package:vrchat_dart_generated/src/model/mutual_friend.dart'; @@ -200,6 +201,63 @@ class UsersApi { return _response; } + /// Delete All User Persistence Data + /// Deletes all of the user's persistence data for every world. + /// + /// 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] + /// Throws [DioException] if API call or serialization fails + Future> deleteAllUserPersistenceData({ + required String userId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/users/{userId}/persist'.replaceAll( + '{' + r'userId' + '}', + userId.toString(), + ); + final _options = Options( + method: r'DELETE', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _response = await _dio.request( + _path, + options: _options, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + return _response; + } + /// Delete User Persistence /// Deletes the user's persistence data for a given world /// @@ -266,6 +324,180 @@ class UsersApi { return _response; } + /// Get User Group Blocks + /// Returns a list of Groups the user has blocked. + /// + /// 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>> getBlockedGroups({ + required String userId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/users/{userId}/groups/userblocked'.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, Group>( + 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 Group Invited + /// Returns a list of Groups the user has been invited to. + /// + /// 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>> getInvitedGroups({ + required String userId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/users/{userId}/groups/invited'.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, Group>( + 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 Mutual Friends /// Gets a list of mutual friends between the logged in user and the specified user /// @@ -626,6 +858,101 @@ class UsersApi { ); } + /// Get user's permissions for all joined groups. + /// Returns a mapping of GroupIDs to arrays of GroupPermissions. + /// + /// Parameters: + /// * [userId] - Must be a valid user ID. + /// * [groupIds] - Comma-separated (no spaces!) list of GroupIDs to retrieve permissions for. + /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation + /// * [headers] - Can be used to add additional headers to the request + /// * [extras] - Can be used to add flags to the request + /// * [validateStatus] - A [ValidateStatus] callback that can be used to determine request success based on the HTTP status of the response + /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress + /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress + /// + /// Returns a [Future] containing a [Response] with a [Map>] as data + /// Throws [DioException] if API call or serialization fails + Future>>> + getUserAllGroupPermissions({ + required String userId, + String? groupIds, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/users/{userId}/groups/permissions'.replaceAll( + '{' + r'userId' + '}', + userId.toString(), + ); + final _options = Options( + method: r'GET', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _queryParameters = { + if (groupIds != null) r'groupIds': groupIds, + }; + + final _response = await _dio.request( + _path, + options: _options, + queryParameters: _queryParameters, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + Map>? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize>, List>( + rawData, + 'Map>', + 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 by Username /// ~~Get public user information about a specific user using their name.~~ **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). This endpoint now require Admin Credentials. /// @@ -1543,6 +1870,7 @@ class UsersApi { /// * [developerType] - Active user by developer type, none for normal users and internal for moderators /// * [n] - The number of objects to return. /// * [offset] - A zero-based offset from the default object sorting from where search results start. + /// * [isInternalVariant] - Not quite sure what this actually does (exists on the website but doesn't seem to be used) /// * [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 @@ -1557,6 +1885,7 @@ class UsersApi { String? developerType, int? n = 60, int? offset, + bool? isInternalVariant, CancelToken? cancelToken, Map? headers, Map? extra, @@ -1587,6 +1916,7 @@ class UsersApi { if (developerType != null) r'developerType': developerType, if (n != null) r'n': n, if (offset != null) r'offset': offset, + if (isInternalVariant != null) r'isInternalVariant': isInternalVariant, }; final _response = await _dio.request( diff --git a/vrchat_dart_generated/lib/src/api/worlds_api.dart b/vrchat_dart_generated/lib/src/api/worlds_api.dart index b92ab2a6..f5ba0518 100644 --- a/vrchat_dart_generated/lib/src/api/worlds_api.dart +++ b/vrchat_dart_generated/lib/src/api/worlds_api.dart @@ -175,6 +175,63 @@ class WorldsApi { ); } + /// Delete All User Persistence Data + /// Deletes all of the user's persistence data for every world. + /// + /// 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] + /// Throws [DioException] if API call or serialization fails + Future> deleteAllUserPersistenceData({ + required String userId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/users/{userId}/persist'.replaceAll( + '{' + r'userId' + '}', + userId.toString(), + ); + final _options = Options( + method: r'DELETE', + headers: {...?headers}, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _response = await _dio.request( + _path, + options: _options, + cancelToken: cancelToken, + onSendProgress: onSendProgress, + onReceiveProgress: onReceiveProgress, + ); + + return _response; + } + /// Delete User Persistence /// Deletes the user's persistence data for a given world /// diff --git a/vrchat_dart_generated/lib/src/deserialize.dart b/vrchat_dart_generated/lib/src/deserialize.dart index e8e276d4..4af9fe03 100644 --- a/vrchat_dart_generated/lib/src/deserialize.dart +++ b/vrchat_dart_generated/lib/src/deserialize.dart @@ -1,6 +1,7 @@ import 'package:vrchat_dart_generated/src/model/api_config.dart'; import 'package:vrchat_dart_generated/src/model/api_config_access_logs_urls.dart'; import 'package:vrchat_dart_generated/src/model/api_config_announcement.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_audio_config.dart'; import 'package:vrchat_dart_generated/src/model/api_config_avatar_perf_limiter.dart'; import 'package:vrchat_dart_generated/src/model/api_config_constants.dart'; import 'package:vrchat_dart_generated/src/model/api_config_constants_groups.dart'; @@ -12,21 +13,18 @@ import 'package:vrchat_dart_generated/src/model/api_config_constants_instancepop import 'package:vrchat_dart_generated/src/model/api_config_constants_language.dart'; import 'package:vrchat_dart_generated/src/model/api_config_download_url_list.dart'; import 'package:vrchat_dart_generated/src/model/api_config_events.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_ios_version.dart'; import 'package:vrchat_dart_generated/src/model/api_config_min_supported_client_build_number.dart'; import 'package:vrchat_dart_generated/src/model/api_config_offline_analysis.dart'; -import 'package:vrchat_dart_generated/src/model/api_config_report_categories.dart'; -import 'package:vrchat_dart_generated/src/model/api_config_report_options.dart'; -import 'package:vrchat_dart_generated/src/model/api_config_report_options_avatar.dart'; -import 'package:vrchat_dart_generated/src/model/api_config_report_options_group.dart'; -import 'package:vrchat_dart_generated/src/model/api_config_report_options_user.dart'; -import 'package:vrchat_dart_generated/src/model/api_config_report_options_world.dart'; -import 'package:vrchat_dart_generated/src/model/api_config_report_reasons.dart'; import 'package:vrchat_dart_generated/src/model/api_health.dart'; import 'package:vrchat_dart_generated/src/model/account_deletion_log.dart'; import 'package:vrchat_dart_generated/src/model/add_favorite_request.dart'; 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/agreement.dart'; +import 'package:vrchat_dart_generated/src/model/agreement_request.dart'; +import 'package:vrchat_dart_generated/src/model/agreement_status.dart'; import 'package:vrchat_dart_generated/src/model/avatar.dart'; import 'package:vrchat_dart_generated/src/model/avatar_moderation.dart'; import 'package:vrchat_dart_generated/src/model/avatar_moderation_created.dart'; @@ -55,10 +53,12 @@ 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/create_instance_request.dart'; +import 'package:vrchat_dart_generated/src/model/create_prop_request.dart'; import 'package:vrchat_dart_generated/src/model/create_world_request.dart'; import 'package:vrchat_dart_generated/src/model/current_user.dart'; import 'package:vrchat_dart_generated/src/model/current_user_platform_history_inner.dart'; import 'package:vrchat_dart_generated/src/model/current_user_presence.dart'; +import 'package:vrchat_dart_generated/src/model/decline_group_invite_request.dart'; import 'package:vrchat_dart_generated/src/model/disable2_fa_result.dart'; import 'package:vrchat_dart_generated/src/model/discord_details.dart'; import 'package:vrchat_dart_generated/src/model/dynamic_content_row.dart'; @@ -87,6 +87,8 @@ import 'package:vrchat_dart_generated/src/model/group.dart'; import 'package:vrchat_dart_generated/src/model/group_announcement.dart'; import 'package:vrchat_dart_generated/src/model/group_audit_log_entry.dart'; 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_instance.dart'; import 'package:vrchat_dart_generated/src/model/group_limited_member.dart'; @@ -98,6 +100,8 @@ import 'package:vrchat_dart_generated/src/model/group_post.dart'; import 'package:vrchat_dart_generated/src/model/group_role.dart'; import 'package:vrchat_dart_generated/src/model/group_role_template_values.dart'; import 'package:vrchat_dart_generated/src/model/group_role_template_values_roles.dart'; +import 'package:vrchat_dart_generated/src/model/group_transferable.dart'; +import 'package:vrchat_dart_generated/src/model/group_transferable_requirements.dart'; import 'package:vrchat_dart_generated/src/model/info_push.dart'; import 'package:vrchat_dart_generated/src/model/info_push_data.dart'; import 'package:vrchat_dart_generated/src/model/info_push_data_article.dart'; @@ -123,6 +127,7 @@ import 'package:vrchat_dart_generated/src/model/invite_request.dart'; import 'package:vrchat_dart_generated/src/model/invite_response.dart'; import 'package:vrchat_dart_generated/src/model/jam.dart'; import 'package:vrchat_dart_generated/src/model/jam_state_change_dates.dart'; +import 'package:vrchat_dart_generated/src/model/join_group_request.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/limited_group.dart'; @@ -143,6 +148,7 @@ import 'package:vrchat_dart_generated/src/model/notification_detail_request_invi import 'package:vrchat_dart_generated/src/model/notification_detail_request_invite_response.dart'; import 'package:vrchat_dart_generated/src/model/notification_detail_vote_to_kick.dart'; import 'package:vrchat_dart_generated/src/model/notification_v2.dart'; +import 'package:vrchat_dart_generated/src/model/notification_v2_details_boop.dart'; import 'package:vrchat_dart_generated/src/model/notification_v2_response.dart'; import 'package:vrchat_dart_generated/src/model/ok_status.dart'; import 'package:vrchat_dart_generated/src/model/ok_status2.dart'; @@ -164,6 +170,7 @@ import 'package:vrchat_dart_generated/src/model/product_listing_variant.dart'; import 'package:vrchat_dart_generated/src/model/product_purchase.dart'; import 'package:vrchat_dart_generated/src/model/product_purchase_purchase_context.dart'; import 'package:vrchat_dart_generated/src/model/prop.dart'; +import 'package:vrchat_dart_generated/src/model/prop_publish_status.dart'; import 'package:vrchat_dart_generated/src/model/prop_unity_package.dart'; import 'package:vrchat_dart_generated/src/model/purchase_product_listing_request.dart'; import 'package:vrchat_dart_generated/src/model/register_user_account_request.dart'; @@ -174,6 +181,7 @@ import 'package:vrchat_dart_generated/src/model/request_invite_request.dart'; import 'package:vrchat_dart_generated/src/model/respond_group_join_request.dart'; import 'package:vrchat_dart_generated/src/model/respond_notification_v2_request.dart'; import 'package:vrchat_dart_generated/src/model/response.dart'; +import 'package:vrchat_dart_generated/src/model/search_group_members200_response.dart'; import 'package:vrchat_dart_generated/src/model/sent_notification.dart'; import 'package:vrchat_dart_generated/src/model/service_queue_stats.dart'; import 'package:vrchat_dart_generated/src/model/service_status.dart'; @@ -193,11 +201,13 @@ import 'package:vrchat_dart_generated/src/model/transaction.dart'; import 'package:vrchat_dart_generated/src/model/transaction_agreement.dart'; import 'package:vrchat_dart_generated/src/model/transaction_steam_info.dart'; import 'package:vrchat_dart_generated/src/model/transaction_steam_wallet_info.dart'; +import 'package:vrchat_dart_generated/src/model/transfer_group_request.dart'; 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/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'; import 'package:vrchat_dart_generated/src/model/update_calendar_event_request.dart'; import 'package:vrchat_dart_generated/src/model/update_favorite_group_request.dart'; @@ -208,6 +218,7 @@ import 'package:vrchat_dart_generated/src/model/update_group_request.dart'; import 'package:vrchat_dart_generated/src/model/update_group_role_request.dart'; import 'package:vrchat_dart_generated/src/model/update_inventory_item_request.dart'; import 'package:vrchat_dart_generated/src/model/update_invite_message_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_note_request.dart'; @@ -258,6 +269,9 @@ ReturnType deserialize( // ignore: deprecated_member_use_from_same_package return APIConfigAnnouncement.fromJson(value as Map) as ReturnType; + case 'APIConfigAudioConfig': + return APIConfigAudioConfig.fromJson(value as Map) + as ReturnType; case 'APIConfigAvatarPerfLimiter': return APIConfigAvatarPerfLimiter.fromJson(value as Map) as ReturnType; @@ -299,6 +313,9 @@ ReturnType deserialize( case 'APIConfigEvents': return APIConfigEvents.fromJson(value as Map) as ReturnType; + case 'APIConfigIosVersion': + return APIConfigIosVersion.fromJson(value as Map) + as ReturnType; case 'APIConfigMinSupportedClientBuildNumber': return APIConfigMinSupportedClientBuildNumber.fromJson( value as Map, @@ -307,29 +324,6 @@ ReturnType deserialize( case 'APIConfigOfflineAnalysis': return APIConfigOfflineAnalysis.fromJson(value as Map) as ReturnType; - case 'APIConfigReportCategories': - return APIConfigReportCategories.fromJson(value as Map) - as ReturnType; - case 'APIConfigReportOptions': - return APIConfigReportOptions.fromJson(value as Map) - as ReturnType; - case 'APIConfigReportOptionsAvatar': - return APIConfigReportOptionsAvatar.fromJson( - value as Map, - ) - as ReturnType; - case 'APIConfigReportOptionsGroup': - return APIConfigReportOptionsGroup.fromJson(value as Map) - as ReturnType; - case 'APIConfigReportOptionsUser': - return APIConfigReportOptionsUser.fromJson(value as Map) - as ReturnType; - case 'APIConfigReportOptionsWorld': - return APIConfigReportOptionsWorld.fromJson(value as Map) - as ReturnType; - case 'APIConfigReportReasons': - return APIConfigReportReasons.fromJson(value as Map) - as ReturnType; case 'APIHealth': return APIHealth.fromJson(value as Map) as ReturnType; case 'AccountDeletionLog': @@ -348,6 +342,15 @@ ReturnType deserialize( return AdminUnityPackage.fromJson(value as Map) as ReturnType; case 'AgeVerificationStatus': + case 'Agreement': + return Agreement.fromJson(value as Map) as ReturnType; + case 'AgreementCode': + case 'AgreementRequest': + return AgreementRequest.fromJson(value as Map) + as ReturnType; + case 'AgreementStatus': + return AgreementStatus.fromJson(value as Map) + as ReturnType; case 'Avatar': return Avatar.fromJson(value as Map) as ReturnType; case 'AvatarModeration': @@ -440,6 +443,9 @@ ReturnType deserialize( case 'CreateInstanceRequest': return CreateInstanceRequest.fromJson(value as Map) as ReturnType; + case 'CreatePropRequest': + return CreatePropRequest.fromJson(value as Map) + as ReturnType; case 'CreateWorldRequest': return CreateWorldRequest.fromJson(value as Map) as ReturnType; @@ -453,6 +459,9 @@ ReturnType deserialize( case 'CurrentUserPresence': return CurrentUserPresence.fromJson(value as Map) as ReturnType; + case 'DeclineGroupInviteRequest': + return DeclineGroupInviteRequest.fromJson(value as Map) + as ReturnType; case 'DeveloperType': case 'Disable2FAResult': return Disable2FAResult.fromJson(value as Map) @@ -534,6 +543,14 @@ ReturnType deserialize( as ReturnType; case 'GroupGallery': return GroupGallery.fromJson(value as Map) as ReturnType; + case 'GroupGalleryFileOrder': + return GroupGalleryFileOrder.fromJson(value as Map) + as ReturnType; + case 'GroupGalleryFileOrderRequest': + return GroupGalleryFileOrderRequest.fromJson( + value as Map, + ) + as ReturnType; case 'GroupGalleryImage': return GroupGalleryImage.fromJson(value as Map) as ReturnType; @@ -574,7 +591,19 @@ ReturnType deserialize( ) as ReturnType; case 'GroupSearchSort': + case 'GroupTransferable': + return GroupTransferable.fromJson(value as Map) + as ReturnType; + case 'GroupTransferableRequirements': + return GroupTransferableRequirements.fromJson( + value as Map, + ) + as ReturnType; case 'GroupUserVisibility': + case 'ImageAnimationStyle': + case 'ImageLoopStyle': + case 'ImageMask': + case 'ImagePurpose': case 'InfoPush': return InfoPush.fromJson(value as Map) as ReturnType; case 'InfoPushData': @@ -657,6 +686,9 @@ ReturnType deserialize( case 'JamStateChangeDates': return JamStateChangeDates.fromJson(value as Map) as ReturnType; + case 'JoinGroupRequest': + return JoinGroupRequest.fromJson(value as Map) + as ReturnType; case 'License': return License.fromJson(value as Map) as ReturnType; case 'LicenseAction': @@ -722,6 +754,9 @@ ReturnType deserialize( case 'NotificationV2': return NotificationV2.fromJson(value as Map) as ReturnType; + case 'NotificationV2DetailsBoop': + return NotificationV2DetailsBoop.fromJson(value as Map) + as ReturnType; case 'NotificationV2Response': return NotificationV2Response.fromJson(value as Map) as ReturnType; @@ -791,6 +826,9 @@ ReturnType deserialize( case 'ProductType': case 'Prop': return Prop.fromJson(value as Map) as ReturnType; + case 'PropPublishStatus': + return PropPublishStatus.fromJson(value as Map) + as ReturnType; case 'PropUnityPackage': return PropUnityPackage.fromJson(value as Map) as ReturnType; @@ -825,6 +863,11 @@ ReturnType deserialize( as ReturnType; case 'Response': return Response.fromJson(value as Map) as ReturnType; + case 'SearchGroupMembers200Response': + return SearchGroupMembers200Response.fromJson( + value as Map, + ) + as ReturnType; case 'SentNotification': return SentNotification.fromJson(value as Map) as ReturnType; @@ -884,6 +927,9 @@ ReturnType deserialize( case 'TransactionSteamWalletInfo': return TransactionSteamWalletInfo.fromJson(value as Map) as ReturnType; + case 'TransferGroupRequest': + return TransferGroupRequest.fromJson(value as Map) + as ReturnType; case 'TwoFactorAuthCode': return TwoFactorAuthCode.fromJson(value as Map) as ReturnType; @@ -900,6 +946,11 @@ ReturnType deserialize( as ReturnType; case 'UnityPackage': return UnityPackage.fromJson(value as Map) as ReturnType; + case 'UpdateAssetReviewNotesRequest': + return UpdateAssetReviewNotesRequest.fromJson( + value as Map, + ) + as ReturnType; case 'UpdateAvatarRequest': return UpdateAvatarRequest.fromJson(value as Map) as ReturnType; @@ -932,6 +983,9 @@ ReturnType deserialize( case 'UpdateInviteMessageRequest': return UpdateInviteMessageRequest.fromJson(value as Map) as ReturnType; + case 'UpdatePropRequest': + return UpdatePropRequest.fromJson(value as Map) + as ReturnType; case 'UpdateTiliaTOSRequest': return UpdateTiliaTOSRequest.fromJson(value as Map) as ReturnType; diff --git a/vrchat_dart_generated/lib/src/model/admin_unity_package.dart b/vrchat_dart_generated/lib/src/model/admin_unity_package.dart index a97e4433..4e41409a 100644 --- a/vrchat_dart_generated/lib/src/model/admin_unity_package.dart +++ b/vrchat_dart_generated/lib/src/model/admin_unity_package.dart @@ -35,7 +35,7 @@ class AdminUnityPackage { @JsonKey(name: r'assetVersion', required: true, includeIfNull: false) final int assetVersion; - /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. @JsonKey(name: r'platform', required: true, includeIfNull: false) final String platform; diff --git a/vrchat_dart_generated/lib/src/model/agreement.dart b/vrchat_dart_generated/lib/src/model/agreement.dart new file mode 100644 index 00000000..df11af36 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/agreement.dart @@ -0,0 +1,101 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/agreement_code.dart'; + +import 'package:json_annotation/json_annotation.dart'; + +part 'agreement.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class Agreement { + /// Returns a new [Agreement] instance. + Agreement({ + required this.agreementCode, + + this.agreementFulltext, + + required this.contentId, + + required this.created, + + required this.id, + + required this.tags, + + required this.userId, + + required this.version, + }); + + @JsonKey(name: r'agreementCode', required: true, includeIfNull: false) + final AgreementCode agreementCode; + + /// The full text of the agreement. + @JsonKey(name: r'agreementFulltext', required: false, includeIfNull: false) + final String? agreementFulltext; + + /// The id of the content being uploaded, such as a WorldID, AvatarID, or PropID. + @JsonKey(name: r'contentId', required: true, includeIfNull: false) + final String contentId; + + /// When the agreement was created + @JsonKey(name: r'created', required: true, includeIfNull: false) + final String created; + + /// The id of the agreement. + @JsonKey(name: r'id', required: true, includeIfNull: false) + final String id; + + @JsonKey(name: r'tags', required: true, includeIfNull: false) + final List tags; + + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + @JsonKey(name: r'userId', required: true, includeIfNull: false) + final String userId; + + /// The version of the agreement. + @JsonKey(name: r'version', required: true, includeIfNull: false) + final int version; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is Agreement && + other.agreementCode == agreementCode && + other.agreementFulltext == agreementFulltext && + other.contentId == contentId && + other.created == created && + other.id == id && + other.tags == tags && + other.userId == userId && + other.version == version; + + @override + int get hashCode => + agreementCode.hashCode + + agreementFulltext.hashCode + + contentId.hashCode + + created.hashCode + + id.hashCode + + tags.hashCode + + userId.hashCode + + version.hashCode; + + factory Agreement.fromJson(Map json) => + _$AgreementFromJson(json); + + Map toJson() => _$AgreementToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/agreement.g.dart b/vrchat_dart_generated/lib/src/model/agreement.g.dart new file mode 100644 index 00000000..4a9070fe --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/agreement.g.dart @@ -0,0 +1,60 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'agreement.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +Agreement _$AgreementFromJson(Map json) => + $checkedCreate('Agreement', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + 'agreementCode', + 'contentId', + 'created', + 'id', + 'tags', + 'userId', + 'version', + ], + ); + final val = Agreement( + agreementCode: $checkedConvert( + 'agreementCode', + (v) => $enumDecode(_$AgreementCodeEnumMap, v), + ), + agreementFulltext: $checkedConvert( + 'agreementFulltext', + (v) => v as String?, + ), + contentId: $checkedConvert('contentId', (v) => v as String), + created: $checkedConvert('created', (v) => v as String), + id: $checkedConvert('id', (v) => v as String), + tags: $checkedConvert( + 'tags', + (v) => (v as List).map((e) => e as String).toList(), + ), + userId: $checkedConvert('userId', (v) => v as String), + version: $checkedConvert('version', (v) => (v as num).toInt()), + ); + return val; + }); + +Map _$AgreementToJson(Agreement instance) => { + 'agreementCode': _$AgreementCodeEnumMap[instance.agreementCode]!, + 'agreementFulltext': ?instance.agreementFulltext, + 'contentId': instance.contentId, + 'created': instance.created, + 'id': instance.id, + 'tags': instance.tags, + 'userId': instance.userId, + 'version': instance.version, +}; + +const _$AgreementCodeEnumMap = { + AgreementCode.contentPeriodCopyrightPeriodOwned: 'content.copyright.owned', +}; diff --git a/vrchat_dart_generated/lib/src/model/agreement_code.dart b/vrchat_dart_generated/lib/src/model/agreement_code.dart new file mode 100644 index 00000000..040d73c7 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/agreement_code.dart @@ -0,0 +1,20 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:json_annotation/json_annotation.dart'; + +/// The type of agreement. +enum AgreementCode { + /// The type of agreement. + @JsonValue(r'content.copyright.owned') + contentPeriodCopyrightPeriodOwned(r'content.copyright.owned'); + + const AgreementCode(this.value); + + final String value; + + @override + String toString() => value; +} diff --git a/vrchat_dart_generated/lib/src/model/agreement_request.dart b/vrchat_dart_generated/lib/src/model/agreement_request.dart new file mode 100644 index 00000000..1562237f --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/agreement_request.dart @@ -0,0 +1,70 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/agreement_code.dart'; + +import 'package:json_annotation/json_annotation.dart'; + +part 'agreement_request.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class AgreementRequest { + /// Returns a new [AgreementRequest] instance. + AgreementRequest({ + required this.agreementCode, + + required this.agreementFulltext, + + required this.contentId, + + required this.version, + }); + + @JsonKey(name: r'agreementCode', required: true, includeIfNull: false) + final AgreementCode agreementCode; + + /// The full text of the agreement (currently `By clicking OK, I certify that I have the necessary rights to upload this content and that it will not infringe on any third-party legal or intellectual property rights.`). + @JsonKey(name: r'agreementFulltext', required: true, includeIfNull: false) + final String agreementFulltext; + + /// The id of the content being uploaded, such as a WorldID, AvatarID, or PropID. + @JsonKey(name: r'contentId', required: true, includeIfNull: false) + final String contentId; + + /// The version of the agreement (currently `1`). + @JsonKey(name: r'version', required: true, includeIfNull: false) + final int version; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is AgreementRequest && + other.agreementCode == agreementCode && + other.agreementFulltext == agreementFulltext && + other.contentId == contentId && + other.version == version; + + @override + int get hashCode => + agreementCode.hashCode + + agreementFulltext.hashCode + + contentId.hashCode + + version.hashCode; + + factory AgreementRequest.fromJson(Map json) => + _$AgreementRequestFromJson(json); + + Map toJson() => _$AgreementRequestToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/agreement_request.g.dart b/vrchat_dart_generated/lib/src/model/agreement_request.g.dart new file mode 100644 index 00000000..4625aa4d --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/agreement_request.g.dart @@ -0,0 +1,47 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'agreement_request.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +AgreementRequest _$AgreementRequestFromJson(Map json) => + $checkedCreate('AgreementRequest', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + 'agreementCode', + 'agreementFulltext', + 'contentId', + 'version', + ], + ); + final val = AgreementRequest( + agreementCode: $checkedConvert( + 'agreementCode', + (v) => $enumDecode(_$AgreementCodeEnumMap, v), + ), + agreementFulltext: $checkedConvert( + 'agreementFulltext', + (v) => v as String, + ), + contentId: $checkedConvert('contentId', (v) => v as String), + version: $checkedConvert('version', (v) => (v as num).toInt()), + ); + return val; + }); + +Map _$AgreementRequestToJson(AgreementRequest instance) => + { + 'agreementCode': _$AgreementCodeEnumMap[instance.agreementCode]!, + 'agreementFulltext': instance.agreementFulltext, + 'contentId': instance.contentId, + 'version': instance.version, + }; + +const _$AgreementCodeEnumMap = { + AgreementCode.contentPeriodCopyrightPeriodOwned: 'content.copyright.owned', +}; diff --git a/vrchat_dart_generated/lib/src/model/agreement_status.dart b/vrchat_dart_generated/lib/src/model/agreement_status.dart new file mode 100644 index 00000000..56e03bf8 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/agreement_status.dart @@ -0,0 +1,78 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/agreement_code.dart'; + +import 'package:json_annotation/json_annotation.dart'; + +part 'agreement_status.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class AgreementStatus { + /// Returns a new [AgreementStatus] instance. + AgreementStatus({ + required this.agreed, + + required this.agreementCode, + + required this.contentId, + + required this.userId, + + required this.version, + }); + + /// Whether the user has agreed for this content. + @JsonKey(name: r'agreed', required: true, includeIfNull: false) + final bool agreed; + + @JsonKey(name: r'agreementCode', required: true, includeIfNull: false) + final AgreementCode agreementCode; + + /// The id of the content being uploaded, such as a WorldID, AvatarID, or PropID. + @JsonKey(name: r'contentId', required: true, includeIfNull: false) + final String contentId; + + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + @JsonKey(name: r'userId', required: true, includeIfNull: false) + final String userId; + + /// The version of the agreement. + @JsonKey(name: r'version', required: true, includeIfNull: false) + final int version; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is AgreementStatus && + other.agreed == agreed && + other.agreementCode == agreementCode && + other.contentId == contentId && + other.userId == userId && + other.version == version; + + @override + int get hashCode => + agreed.hashCode + + agreementCode.hashCode + + contentId.hashCode + + userId.hashCode + + version.hashCode; + + factory AgreementStatus.fromJson(Map json) => + _$AgreementStatusFromJson(json); + + Map toJson() => _$AgreementStatusToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/agreement_status.g.dart b/vrchat_dart_generated/lib/src/model/agreement_status.g.dart new file mode 100644 index 00000000..83b250b1 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/agreement_status.g.dart @@ -0,0 +1,47 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'agreement_status.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +AgreementStatus _$AgreementStatusFromJson(Map json) => + $checkedCreate('AgreementStatus', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + 'agreed', + 'agreementCode', + 'contentId', + 'userId', + 'version', + ], + ); + final val = AgreementStatus( + agreed: $checkedConvert('agreed', (v) => v as bool), + agreementCode: $checkedConvert( + 'agreementCode', + (v) => $enumDecode(_$AgreementCodeEnumMap, v), + ), + contentId: $checkedConvert('contentId', (v) => v as String), + userId: $checkedConvert('userId', (v) => v as String), + version: $checkedConvert('version', (v) => (v as num).toInt()), + ); + return val; + }); + +Map _$AgreementStatusToJson(AgreementStatus instance) => + { + 'agreed': instance.agreed, + 'agreementCode': _$AgreementCodeEnumMap[instance.agreementCode]!, + 'contentId': instance.contentId, + 'userId': instance.userId, + 'version': instance.version, + }; + +const _$AgreementCodeEnumMap = { + AgreementCode.contentPeriodCopyrightPeriodOwned: 'content.copyright.owned', +}; diff --git a/vrchat_dart_generated/lib/src/model/api_config.dart b/vrchat_dart_generated/lib/src/model/api_config.dart index 90d2f94d..e40e6510 100644 --- a/vrchat_dart_generated/lib/src/model/api_config.dart +++ b/vrchat_dart_generated/lib/src/model/api_config.dart @@ -3,18 +3,19 @@ // // ignore_for_file: unused_element -import 'package:vrchat_dart_generated/src/model/api_config_events.dart'; import 'package:vrchat_dart_generated/src/model/api_config_min_supported_client_build_number.dart'; import 'package:vrchat_dart_generated/src/model/api_config_download_url_list.dart'; import 'package:vrchat_dart_generated/src/model/api_config_avatar_perf_limiter.dart'; -import 'package:vrchat_dart_generated/src/model/api_config_report_reasons.dart'; -import 'package:vrchat_dart_generated/src/model/api_config_report_options.dart'; import 'package:vrchat_dart_generated/src/model/api_config_access_logs_urls.dart'; -import 'package:vrchat_dart_generated/src/model/api_config_report_categories.dart'; -import 'package:vrchat_dart_generated/src/model/dynamic_content_row.dart'; import 'package:vrchat_dart_generated/src/model/api_config_constants.dart'; import 'package:vrchat_dart_generated/src/model/api_config_offline_analysis.dart'; +import 'package:vrchat_dart_generated/src/model/report_category.dart'; import 'package:vrchat_dart_generated/src/model/api_config_announcement.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_events.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_ios_version.dart'; +import 'package:vrchat_dart_generated/src/model/dynamic_content_row.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_audio_config.dart'; +import 'package:vrchat_dart_generated/src/model/report_reason.dart'; import 'package:json_annotation/json_annotation.dart'; @@ -29,6 +30,12 @@ part 'api_config.g.dart'; class APIConfig { /// Returns a new [APIConfig] instance. APIConfig({ + required this.campaignStatus, + + this.disableBackgroundPreloads = true, + + this.locationGiftingNonSubPrioEnabled = true, + this.voiceEnableDegradation = false, this.voiceEnableReceiverLimiting = true, @@ -53,6 +60,8 @@ class APIConfig { required this.announcements, + this.audioConfig, + required this.availableLanguageCodes, required this.availableLanguages, @@ -99,6 +108,8 @@ class APIConfig { required this.copyrightEmail, + required this.copyrightFormUrl, + this.currentPrivacyVersion = 1, required this.currentTOSVersion, @@ -157,9 +168,17 @@ class APIConfig { required this.dynamicWorldRows, - this.economyPauseEnd, + required this.economyLedgerBackfill, + + required this.economyLedgerMigrationStop, + + required this.economyLedgerMode, - this.economyPauseStart, + required this.economyPauseEnd, + + required this.economyPauseStart, + + required this.economyPurchaseRepairEnabled, this.economyState = 1, @@ -180,8 +199,16 @@ class APIConfig { required this.imageHostUrlList, + required this.iosAppVersion, + + required this.iosVersion, + required this.jobsEmail, + this.maxUserEmoji = 18, + + this.maxUserStickers = 18, + required this.minSupportedClientBuildNumber, this.minimumUnityVersionForUploads = '2019.0.0f1', @@ -258,6 +285,26 @@ class APIConfig { required this.whiteListedAssetUrls, }); + /// The current platform-wide event taking place + @JsonKey(name: r'CampaignStatus', required: true, includeIfNull: false) + final String campaignStatus; + + /// Toggles if certain assets are preloaded in the background + @JsonKey( + name: r'DisableBackgroundPreloads', + required: true, + includeIfNull: false, + ) + final bool disableBackgroundPreloads; + + /// Toggles whether users without a current VRC+ subscription are priority recipients for gift drops + @JsonKey( + name: r'LocationGiftingNonSubPrioEnabled', + required: true, + includeIfNull: false, + ) + final bool locationGiftingNonSubPrioEnabled; + /// Unknown, probably voice optimization testing @JsonKey( name: r'VoiceEnableDegradation', @@ -327,6 +374,9 @@ class APIConfig { // ignore: deprecated_member_use_from_same_package final Set announcements; + @JsonKey(name: r'audioConfig', required: false, includeIfNull: false) + final APIConfigAudioConfig? audioConfig; + /// List of supported Languages @JsonKey( name: r'availableLanguageCodes', @@ -461,13 +511,13 @@ class APIConfig { @JsonKey(name: r'copyrightEmail', required: true, includeIfNull: false) final String copyrightEmail; + /// VRChat's DMCA claim webform url + @JsonKey(name: r'copyrightFormUrl', required: true, includeIfNull: false) + final String copyrightFormUrl; + /// Current version number of the Privacy Agreement - @JsonKey( - name: r'currentPrivacyVersion', - required: false, - includeIfNull: false, - ) - final int? currentPrivacyVersion; + @JsonKey(name: r'currentPrivacyVersion', required: true, includeIfNull: false) + final int currentPrivacyVersion; /// Current version number of the Terms of Service // minimum: 0 @@ -591,16 +641,40 @@ class APIConfig { final Set dynamicWorldRows; /// Unknown - @JsonKey(name: r'economyPauseEnd', required: false, includeIfNull: false) - final String? economyPauseEnd; + @JsonKey(name: r'economyLedgerBackfill', required: true, includeIfNull: false) + final bool economyLedgerBackfill; /// Unknown - @JsonKey(name: r'economyPauseStart', required: false, includeIfNull: false) - final String? economyPauseStart; + @JsonKey( + name: r'economyLedgerMigrationStop', + required: true, + includeIfNull: false, + ) + final String economyLedgerMigrationStop; /// Unknown - @JsonKey(name: r'economyState', required: false, includeIfNull: false) - final int? economyState; + @JsonKey(name: r'economyLedgerMode', required: true, includeIfNull: false) + final String economyLedgerMode; + + /// Unknown + @JsonKey(name: r'economyPauseEnd', required: true, includeIfNull: false) + final DateTime economyPauseEnd; + + /// Unknown + @JsonKey(name: r'economyPauseStart', required: true, includeIfNull: false) + final DateTime economyPauseStart; + + /// Unknown + @JsonKey( + name: r'economyPurchaseRepairEnabled', + required: true, + includeIfNull: false, + ) + final bool economyPurchaseRepairEnabled; + + /// Unknown + @JsonKey(name: r'economyState', required: true, includeIfNull: false) + final int economyState; @JsonKey(name: r'events', required: true, includeIfNull: false) final APIConfigEvents events; @@ -643,10 +717,25 @@ class APIConfig { @JsonKey(name: r'imageHostUrlList', required: true, includeIfNull: false) final List imageHostUrlList; + /// Current app version for iOS + @JsonKey(name: r'iosAppVersion', required: true, includeIfNull: false) + final List iosAppVersion; + + @JsonKey(name: r'iosVersion', required: true, includeIfNull: false) + final APIConfigIosVersion iosVersion; + /// VRChat's job application email @JsonKey(name: r'jobsEmail', required: true, includeIfNull: false) final String jobsEmail; + /// The maximum number of custom emoji each user may have at a given time. + @JsonKey(name: r'maxUserEmoji', required: true, includeIfNull: false) + final int maxUserEmoji; + + /// The maximum number of custom stickers each user may have at a given time. + @JsonKey(name: r'maxUserStickers', required: true, includeIfNull: false) + final int maxUserStickers; + @JsonKey( name: r'minSupportedClientBuildNumber', required: true, @@ -709,8 +798,9 @@ class APIConfig { @JsonKey(name: r'publicKey', required: true, includeIfNull: false) final String publicKey; + /// Categories available for reporting objectionable content @JsonKey(name: r'reportCategories', required: true, includeIfNull: false) - final APIConfigReportCategories reportCategories; + final Map reportCategories; /// URL to the report form @JsonKey( @@ -722,11 +812,13 @@ class APIConfig { ) final String reportFormUrl; + /// Options for reporting content. Select a key+value from this mapping as the `type` of the report. Select one key+value from the object at reportOptions[type] as the `category` of the report. reportCategories[category] contains user-facing text to display for all possible categories. Select one value from the array at reportOptions[type][category] as the `reason` of the report. reportReasons[reason] contains user-facing text to display for all possible categories. @JsonKey(name: r'reportOptions', required: true, includeIfNull: false) - final APIConfigReportOptions reportOptions; + final Map>> reportOptions; + /// Reasons available for submitting a report @JsonKey(name: r'reportReasons', required: true, includeIfNull: false) - final APIConfigReportReasons reportReasons; + final Map reportReasons; @JsonKey( name: r'requireAgeVerificationBetaTag', @@ -851,6 +943,10 @@ class APIConfig { bool operator ==(Object other) => identical(this, other) || other is APIConfig && + other.campaignStatus == campaignStatus && + other.disableBackgroundPreloads == disableBackgroundPreloads && + other.locationGiftingNonSubPrioEnabled == + locationGiftingNonSubPrioEnabled && other.voiceEnableDegradation == voiceEnableDegradation && other.voiceEnableReceiverLimiting == voiceEnableReceiverLimiting && other.accessLogsUrls == accessLogsUrls && @@ -864,6 +960,7 @@ class APIConfig { analyticsSegmentNewUIPctOfUsers && other.analyticsSegmentNewUISalt == analyticsSegmentNewUISalt && other.announcements == announcements && + other.audioConfig == audioConfig && other.availableLanguageCodes == availableLanguageCodes && other.availableLanguages == availableLanguages && other.avatarPerfLimiter == avatarPerfLimiter && @@ -888,6 +985,7 @@ class APIConfig { other.constants == constants && other.contactEmail == contactEmail && other.copyrightEmail == copyrightEmail && + other.copyrightFormUrl == copyrightFormUrl && other.currentPrivacyVersion == currentPrivacyVersion && other.currentTOSVersion == currentTOSVersion && other.defaultAvatar == defaultAvatar && @@ -921,8 +1019,12 @@ class APIConfig { other.downloadLinkWindows == downloadLinkWindows && other.downloadUrls == downloadUrls && other.dynamicWorldRows == dynamicWorldRows && + other.economyLedgerBackfill == economyLedgerBackfill && + other.economyLedgerMigrationStop == economyLedgerMigrationStop && + other.economyLedgerMode == economyLedgerMode && other.economyPauseEnd == economyPauseEnd && other.economyPauseStart == economyPauseStart && + other.economyPurchaseRepairEnabled == economyPurchaseRepairEnabled && other.economyState == economyState && other.events == events && other.forceUseLatestWorld == forceUseLatestWorld && @@ -932,7 +1034,11 @@ class APIConfig { other.homepageRedirectTarget == homepageRedirectTarget && other.hubWorldId == hubWorldId && other.imageHostUrlList == imageHostUrlList && + other.iosAppVersion == iosAppVersion && + other.iosVersion == iosVersion && other.jobsEmail == jobsEmail && + other.maxUserEmoji == maxUserEmoji && + other.maxUserStickers == maxUserStickers && other.minSupportedClientBuildNumber == minSupportedClientBuildNumber && other.minimumUnityVersionForUploads == @@ -979,6 +1085,9 @@ class APIConfig { @override int get hashCode => + campaignStatus.hashCode + + disableBackgroundPreloads.hashCode + + locationGiftingNonSubPrioEnabled.hashCode + voiceEnableDegradation.hashCode + voiceEnableReceiverLimiting.hashCode + accessLogsUrls.hashCode + @@ -991,6 +1100,7 @@ class APIConfig { analyticsSegmentNewUIPctOfUsers.hashCode + analyticsSegmentNewUISalt.hashCode + announcements.hashCode + + audioConfig.hashCode + availableLanguageCodes.hashCode + availableLanguages.hashCode + avatarPerfLimiter.hashCode + @@ -1014,6 +1124,7 @@ class APIConfig { constants.hashCode + contactEmail.hashCode + copyrightEmail.hashCode + + copyrightFormUrl.hashCode + currentPrivacyVersion.hashCode + currentTOSVersion.hashCode + defaultAvatar.hashCode + @@ -1046,8 +1157,12 @@ class APIConfig { downloadLinkWindows.hashCode + downloadUrls.hashCode + dynamicWorldRows.hashCode + + economyLedgerBackfill.hashCode + + economyLedgerMigrationStop.hashCode + + economyLedgerMode.hashCode + economyPauseEnd.hashCode + economyPauseStart.hashCode + + economyPurchaseRepairEnabled.hashCode + economyState.hashCode + events.hashCode + forceUseLatestWorld.hashCode + @@ -1057,7 +1172,11 @@ class APIConfig { homepageRedirectTarget.hashCode + hubWorldId.hashCode + imageHostUrlList.hashCode + + iosAppVersion.hashCode + + iosVersion.hashCode + jobsEmail.hashCode + + maxUserEmoji.hashCode + + maxUserStickers.hashCode + minSupportedClientBuildNumber.hashCode + minimumUnityVersionForUploads.hashCode + moderationEmail.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/api_config.g.dart b/vrchat_dart_generated/lib/src/model/api_config.g.dart index 946d6ce8..ca525647 100644 --- a/vrchat_dart_generated/lib/src/model/api_config.g.dart +++ b/vrchat_dart_generated/lib/src/model/api_config.g.dart @@ -15,6 +15,9 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( $checkKeys( json, requiredKeys: const [ + 'CampaignStatus', + 'DisableBackgroundPreloads', + 'LocationGiftingNonSubPrioEnabled', 'VoiceEnableDegradation', 'VoiceEnableReceiverLimiting', 'accessLogsUrls', @@ -40,6 +43,8 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( 'constants', 'contactEmail', 'copyrightEmail', + 'copyrightFormUrl', + 'currentPrivacyVersion', 'currentTOSVersion', 'defaultAvatar', 'defaultStickerSet', @@ -65,6 +70,13 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( 'downloadLinkWindows', 'downloadUrls', 'dynamicWorldRows', + 'economyLedgerBackfill', + 'economyLedgerMigrationStop', + 'economyLedgerMode', + 'economyPauseEnd', + 'economyPauseStart', + 'economyPurchaseRepairEnabled', + 'economyState', 'events', 'forceUseLatestWorld', 'giftDisplayType', @@ -73,7 +85,11 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( 'homepageRedirectTarget', 'hubWorldId', 'imageHostUrlList', + 'iosAppVersion', + 'iosVersion', 'jobsEmail', + 'maxUserEmoji', + 'maxUserStickers', 'minSupportedClientBuildNumber', 'minimumUnityVersionForUploads', 'moderationEmail', @@ -114,6 +130,15 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( ], ); final val = APIConfig( + campaignStatus: $checkedConvert('CampaignStatus', (v) => v as String), + disableBackgroundPreloads: $checkedConvert( + 'DisableBackgroundPreloads', + (v) => v as bool? ?? true, + ), + locationGiftingNonSubPrioEnabled: $checkedConvert( + 'LocationGiftingNonSubPrioEnabled', + (v) => v as bool? ?? true, + ), voiceEnableDegradation: $checkedConvert( 'VoiceEnableDegradation', (v) => v as bool? ?? false, @@ -160,6 +185,12 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( ) .toSet(), ), + audioConfig: $checkedConvert( + 'audioConfig', + (v) => v == null + ? null + : APIConfigAudioConfig.fromJson(v as Map), + ), availableLanguageCodes: $checkedConvert( 'availableLanguageCodes', (v) => (v as List).map((e) => e as String).toList(), @@ -240,6 +271,7 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( ), contactEmail: $checkedConvert('contactEmail', (v) => v as String), copyrightEmail: $checkedConvert('copyrightEmail', (v) => v as String), + copyrightFormUrl: $checkedConvert('copyrightFormUrl', (v) => v as String), currentPrivacyVersion: $checkedConvert( 'currentPrivacyVersion', (v) => (v as num?)?.toInt() ?? 1, @@ -340,10 +372,29 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( .map((e) => DynamicContentRow.fromJson(e as Map)) .toSet(), ), - economyPauseEnd: $checkedConvert('economyPauseEnd', (v) => v as String?), + economyLedgerBackfill: $checkedConvert( + 'economyLedgerBackfill', + (v) => v as bool, + ), + economyLedgerMigrationStop: $checkedConvert( + 'economyLedgerMigrationStop', + (v) => v as String, + ), + economyLedgerMode: $checkedConvert( + 'economyLedgerMode', + (v) => v as String, + ), + economyPauseEnd: $checkedConvert( + 'economyPauseEnd', + (v) => DateTime.parse(v as String), + ), economyPauseStart: $checkedConvert( 'economyPauseStart', - (v) => v as String?, + (v) => DateTime.parse(v as String), + ), + economyPurchaseRepairEnabled: $checkedConvert( + 'economyPurchaseRepairEnabled', + (v) => v as bool, ), economyState: $checkedConvert( 'economyState', @@ -374,7 +425,23 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( 'imageHostUrlList', (v) => (v as List).map((e) => e as String).toList(), ), + iosAppVersion: $checkedConvert( + 'iosAppVersion', + (v) => (v as List).map((e) => e as String).toList(), + ), + iosVersion: $checkedConvert( + 'iosVersion', + (v) => APIConfigIosVersion.fromJson(v as Map), + ), jobsEmail: $checkedConvert('jobsEmail', (v) => v as String), + maxUserEmoji: $checkedConvert( + 'maxUserEmoji', + (v) => (v as num?)?.toInt() ?? 18, + ), + maxUserStickers: $checkedConvert( + 'maxUserStickers', + (v) => (v as num?)?.toInt() ?? 18, + ), minSupportedClientBuildNumber: $checkedConvert( 'minSupportedClientBuildNumber', (v) => APIConfigMinSupportedClientBuildNumber.fromJson( @@ -413,7 +480,10 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( publicKey: $checkedConvert('publicKey', (v) => v as String), reportCategories: $checkedConvert( 'reportCategories', - (v) => APIConfigReportCategories.fromJson(v as Map), + (v) => (v as Map).map( + (k, e) => + MapEntry(k, ReportCategory.fromJson(e as Map)), + ), ), reportFormUrl: $checkedConvert( 'reportFormUrl', @@ -423,11 +493,24 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( ), reportOptions: $checkedConvert( 'reportOptions', - (v) => APIConfigReportOptions.fromJson(v as Map), + (v) => (v as Map).map( + (k, e) => MapEntry( + k, + (e as Map).map( + (k, e) => MapEntry( + k, + (e as List).map((e) => e as String).toList(), + ), + ), + ), + ), ), reportReasons: $checkedConvert( 'reportReasons', - (v) => APIConfigReportReasons.fromJson(v as Map), + (v) => (v as Map).map( + (k, e) => + MapEntry(k, ReportReason.fromJson(e as Map)), + ), ), requireAgeVerificationBetaTag: $checkedConvert( 'requireAgeVerificationBetaTag', @@ -501,6 +584,9 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( return val; }, fieldKeyMap: const { + 'campaignStatus': 'CampaignStatus', + 'disableBackgroundPreloads': 'DisableBackgroundPreloads', + 'locationGiftingNonSubPrioEnabled': 'LocationGiftingNonSubPrioEnabled', 'voiceEnableDegradation': 'VoiceEnableDegradation', 'voiceEnableReceiverLimiting': 'VoiceEnableReceiverLimiting', 'analyticsSegmentNewUIPctOfUsers': 'analyticsSegment_NewUI_PctOfUsers', @@ -512,6 +598,9 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( ); Map _$APIConfigToJson(APIConfig instance) => { + 'CampaignStatus': instance.campaignStatus, + 'DisableBackgroundPreloads': instance.disableBackgroundPreloads, + 'LocationGiftingNonSubPrioEnabled': instance.locationGiftingNonSubPrioEnabled, 'VoiceEnableDegradation': instance.voiceEnableDegradation, 'VoiceEnableReceiverLimiting': instance.voiceEnableReceiverLimiting, 'accessLogsUrls': instance.accessLogsUrls.toJson(), @@ -524,6 +613,7 @@ Map _$APIConfigToJson(APIConfig instance) => { 'analyticsSegment_NewUI_PctOfUsers': instance.analyticsSegmentNewUIPctOfUsers, 'analyticsSegment_NewUI_Salt': instance.analyticsSegmentNewUISalt, 'announcements': instance.announcements.map((e) => e.toJson()).toList(), + 'audioConfig': ?instance.audioConfig?.toJson(), 'availableLanguageCodes': instance.availableLanguageCodes, 'availableLanguages': instance.availableLanguages, 'avatarPerfLimiter': instance.avatarPerfLimiter.toJson(), @@ -547,7 +637,8 @@ Map _$APIConfigToJson(APIConfig instance) => { 'constants': instance.constants.toJson(), 'contactEmail': instance.contactEmail, 'copyrightEmail': instance.copyrightEmail, - 'currentPrivacyVersion': ?instance.currentPrivacyVersion, + 'copyrightFormUrl': instance.copyrightFormUrl, + 'currentPrivacyVersion': instance.currentPrivacyVersion, 'currentTOSVersion': instance.currentTOSVersion, 'defaultAvatar': instance.defaultAvatar, 'defaultStickerSet': instance.defaultStickerSet, @@ -576,9 +667,13 @@ Map _$APIConfigToJson(APIConfig instance) => { 'downloadLinkWindows': instance.downloadLinkWindows, 'downloadUrls': instance.downloadUrls.toJson(), 'dynamicWorldRows': instance.dynamicWorldRows.map((e) => e.toJson()).toList(), - 'economyPauseEnd': ?instance.economyPauseEnd, - 'economyPauseStart': ?instance.economyPauseStart, - 'economyState': ?instance.economyState, + 'economyLedgerBackfill': instance.economyLedgerBackfill, + 'economyLedgerMigrationStop': instance.economyLedgerMigrationStop, + 'economyLedgerMode': instance.economyLedgerMode, + 'economyPauseEnd': instance.economyPauseEnd.toIso8601String(), + 'economyPauseStart': instance.economyPauseStart.toIso8601String(), + 'economyPurchaseRepairEnabled': instance.economyPurchaseRepairEnabled, + 'economyState': instance.economyState, 'events': instance.events.toJson(), 'forceUseLatestWorld': instance.forceUseLatestWorld, 'giftDisplayType': instance.giftDisplayType, @@ -587,7 +682,11 @@ Map _$APIConfigToJson(APIConfig instance) => { 'homepageRedirectTarget': instance.homepageRedirectTarget, 'hubWorldId': instance.hubWorldId, 'imageHostUrlList': instance.imageHostUrlList, + 'iosAppVersion': instance.iosAppVersion, + 'iosVersion': instance.iosVersion.toJson(), 'jobsEmail': instance.jobsEmail, + 'maxUserEmoji': instance.maxUserEmoji, + 'maxUserStickers': instance.maxUserStickers, 'minSupportedClientBuildNumber': instance.minSupportedClientBuildNumber .toJson(), 'minimumUnityVersionForUploads': instance.minimumUnityVersionForUploads, @@ -600,10 +699,14 @@ Map _$APIConfigToJson(APIConfig instance) => { 'player-url-resolver-sha1': instance.playerUrlResolverSha1, 'player-url-resolver-version': instance.playerUrlResolverVersion, 'publicKey': instance.publicKey, - 'reportCategories': instance.reportCategories.toJson(), + 'reportCategories': instance.reportCategories.map( + (k, e) => MapEntry(k, e.toJson()), + ), 'reportFormUrl': instance.reportFormUrl, - 'reportOptions': instance.reportOptions.toJson(), - 'reportReasons': instance.reportReasons.toJson(), + 'reportOptions': instance.reportOptions, + 'reportReasons': instance.reportReasons.map( + (k, e) => MapEntry(k, e.toJson()), + ), 'requireAgeVerificationBetaTag': instance.requireAgeVerificationBetaTag, 'sdkDeveloperFaqUrl': instance.sdkDeveloperFaqUrl, 'sdkDiscordUrl': instance.sdkDiscordUrl, diff --git a/vrchat_dart_generated/lib/src/model/api_config_audio_config.dart b/vrchat_dart_generated/lib/src/model/api_config_audio_config.dart new file mode 100644 index 00000000..bcd61c08 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_audio_config.dart @@ -0,0 +1,156 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'api_config_audio_config.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class APIConfigAudioConfig { + /// Returns a new [APIConfigAudioConfig] instance. + APIConfigAudioConfig({ + required this.eq, + + required this.nearFieldILDNudge, + + required this.nearFieldILDNudgeDistance, + + required this.nearFieldILDNudgeEarRadius, + + required this.perEarDirectionalityEarRadius, + + required this.perEarDirectionalityFadeDistance, + + required this.perEarDirectionalityMaxScale, + + required this.perEarDirectionalityPCFactor, + + required this.trackingScaleMax, + + required this.trackingScaleMin, + + required this.trackingScaleMultiplier, + }); + + /// Unknown + @JsonKey(name: r'eq', required: true, includeIfNull: false) + final num eq; + + /// Unknown + @JsonKey(name: r'nearFieldILDNudge', required: true, includeIfNull: false) + final num nearFieldILDNudge; + + /// Unknown + @JsonKey( + name: r'nearFieldILDNudgeDistance', + required: true, + includeIfNull: false, + ) + final num nearFieldILDNudgeDistance; + + /// Unknown + @JsonKey( + name: r'nearFieldILDNudgeEarRadius', + required: true, + includeIfNull: false, + ) + final num nearFieldILDNudgeEarRadius; + + /// Unknown + @JsonKey( + name: r'perEarDirectionalityEarRadius', + required: true, + includeIfNull: false, + ) + final num perEarDirectionalityEarRadius; + + /// Unknown + @JsonKey( + name: r'perEarDirectionalityFadeDistance', + required: true, + includeIfNull: false, + ) + final num perEarDirectionalityFadeDistance; + + /// Unknown + @JsonKey( + name: r'perEarDirectionalityMaxScale', + required: true, + includeIfNull: false, + ) + final num perEarDirectionalityMaxScale; + + /// Unknown + @JsonKey( + name: r'perEarDirectionalityPCFactor', + required: true, + includeIfNull: false, + ) + final num perEarDirectionalityPCFactor; + + /// Unknown + @JsonKey(name: r'trackingScaleMax', required: true, includeIfNull: false) + final num trackingScaleMax; + + /// Unknown + @JsonKey(name: r'trackingScaleMin', required: true, includeIfNull: false) + final num trackingScaleMin; + + /// Unknown + @JsonKey( + name: r'trackingScaleMultiplier', + required: true, + includeIfNull: false, + ) + final num trackingScaleMultiplier; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is APIConfigAudioConfig && + other.eq == eq && + other.nearFieldILDNudge == nearFieldILDNudge && + other.nearFieldILDNudgeDistance == nearFieldILDNudgeDistance && + other.nearFieldILDNudgeEarRadius == nearFieldILDNudgeEarRadius && + other.perEarDirectionalityEarRadius == + perEarDirectionalityEarRadius && + other.perEarDirectionalityFadeDistance == + perEarDirectionalityFadeDistance && + other.perEarDirectionalityMaxScale == perEarDirectionalityMaxScale && + other.perEarDirectionalityPCFactor == perEarDirectionalityPCFactor && + other.trackingScaleMax == trackingScaleMax && + other.trackingScaleMin == trackingScaleMin && + other.trackingScaleMultiplier == trackingScaleMultiplier; + + @override + int get hashCode => + eq.hashCode + + nearFieldILDNudge.hashCode + + nearFieldILDNudgeDistance.hashCode + + nearFieldILDNudgeEarRadius.hashCode + + perEarDirectionalityEarRadius.hashCode + + perEarDirectionalityFadeDistance.hashCode + + perEarDirectionalityMaxScale.hashCode + + perEarDirectionalityPCFactor.hashCode + + trackingScaleMax.hashCode + + trackingScaleMin.hashCode + + trackingScaleMultiplier.hashCode; + + factory APIConfigAudioConfig.fromJson(Map json) => + _$APIConfigAudioConfigFromJson(json); + + Map toJson() => _$APIConfigAudioConfigToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_audio_config.g.dart b/vrchat_dart_generated/lib/src/model/api_config_audio_config.g.dart new file mode 100644 index 00000000..e9af9bf4 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_audio_config.g.dart @@ -0,0 +1,81 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'api_config_audio_config.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +APIConfigAudioConfig _$APIConfigAudioConfigFromJson( + Map json, +) => $checkedCreate('APIConfigAudioConfig', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + 'eq', + 'nearFieldILDNudge', + 'nearFieldILDNudgeDistance', + 'nearFieldILDNudgeEarRadius', + 'perEarDirectionalityEarRadius', + 'perEarDirectionalityFadeDistance', + 'perEarDirectionalityMaxScale', + 'perEarDirectionalityPCFactor', + 'trackingScaleMax', + 'trackingScaleMin', + 'trackingScaleMultiplier', + ], + ); + final val = APIConfigAudioConfig( + eq: $checkedConvert('eq', (v) => v as num), + nearFieldILDNudge: $checkedConvert('nearFieldILDNudge', (v) => v as num), + nearFieldILDNudgeDistance: $checkedConvert( + 'nearFieldILDNudgeDistance', + (v) => v as num, + ), + nearFieldILDNudgeEarRadius: $checkedConvert( + 'nearFieldILDNudgeEarRadius', + (v) => v as num, + ), + perEarDirectionalityEarRadius: $checkedConvert( + 'perEarDirectionalityEarRadius', + (v) => v as num, + ), + perEarDirectionalityFadeDistance: $checkedConvert( + 'perEarDirectionalityFadeDistance', + (v) => v as num, + ), + perEarDirectionalityMaxScale: $checkedConvert( + 'perEarDirectionalityMaxScale', + (v) => v as num, + ), + perEarDirectionalityPCFactor: $checkedConvert( + 'perEarDirectionalityPCFactor', + (v) => v as num, + ), + trackingScaleMax: $checkedConvert('trackingScaleMax', (v) => v as num), + trackingScaleMin: $checkedConvert('trackingScaleMin', (v) => v as num), + trackingScaleMultiplier: $checkedConvert( + 'trackingScaleMultiplier', + (v) => v as num, + ), + ); + return val; +}); + +Map _$APIConfigAudioConfigToJson( + APIConfigAudioConfig instance, +) => { + 'eq': instance.eq, + 'nearFieldILDNudge': instance.nearFieldILDNudge, + 'nearFieldILDNudgeDistance': instance.nearFieldILDNudgeDistance, + 'nearFieldILDNudgeEarRadius': instance.nearFieldILDNudgeEarRadius, + 'perEarDirectionalityEarRadius': instance.perEarDirectionalityEarRadius, + 'perEarDirectionalityFadeDistance': instance.perEarDirectionalityFadeDistance, + 'perEarDirectionalityMaxScale': instance.perEarDirectionalityMaxScale, + 'perEarDirectionalityPCFactor': instance.perEarDirectionalityPCFactor, + 'trackingScaleMax': instance.trackingScaleMax, + 'trackingScaleMin': instance.trackingScaleMin, + 'trackingScaleMultiplier': instance.trackingScaleMultiplier, +}; diff --git a/vrchat_dart_generated/lib/src/model/api_config_events.dart b/vrchat_dart_generated/lib/src/model/api_config_events.dart index d640c4b8..cbe5a25a 100644 --- a/vrchat_dart_generated/lib/src/model/api_config_events.dart +++ b/vrchat_dart_generated/lib/src/model/api_config_events.dart @@ -35,6 +35,8 @@ class APIConfigEvents { required this.slowUpdateFactorThreshold, + required this.useDirectPlayerSerialization, + required this.viewSegmentLength, }); @@ -78,6 +80,14 @@ class APIConfigEvents { ) final int slowUpdateFactorThreshold; + /// Unknown + @JsonKey( + name: r'useDirectPlayerSerialization', + required: true, + includeIfNull: false, + ) + final bool useDirectPlayerSerialization; + /// Unknown @JsonKey(name: r'viewSegmentLength', required: true, includeIfNull: false) final int viewSegmentLength; @@ -95,6 +105,7 @@ class APIConfigEvents { other.playerOrderBucketSize == playerOrderBucketSize && other.playerOrderFactor == playerOrderFactor && other.slowUpdateFactorThreshold == slowUpdateFactorThreshold && + other.useDirectPlayerSerialization == useDirectPlayerSerialization && other.viewSegmentLength == viewSegmentLength; @override @@ -108,6 +119,7 @@ class APIConfigEvents { playerOrderBucketSize.hashCode + playerOrderFactor.hashCode + slowUpdateFactorThreshold.hashCode + + useDirectPlayerSerialization.hashCode + viewSegmentLength.hashCode; factory APIConfigEvents.fromJson(Map json) => diff --git a/vrchat_dart_generated/lib/src/model/api_config_events.g.dart b/vrchat_dart_generated/lib/src/model/api_config_events.g.dart index c448d9a8..800897b2 100644 --- a/vrchat_dart_generated/lib/src/model/api_config_events.g.dart +++ b/vrchat_dart_generated/lib/src/model/api_config_events.g.dart @@ -23,6 +23,7 @@ APIConfigEvents _$APIConfigEventsFromJson( 'playerOrderBucketSize', 'playerOrderFactor', 'slowUpdateFactorThreshold', + 'useDirectPlayerSerialization', 'viewSegmentLength', ], ); @@ -54,6 +55,10 @@ APIConfigEvents _$APIConfigEventsFromJson( 'slowUpdateFactorThreshold', (v) => (v as num).toInt(), ), + useDirectPlayerSerialization: $checkedConvert( + 'useDirectPlayerSerialization', + (v) => v as bool, + ), viewSegmentLength: $checkedConvert( 'viewSegmentLength', (v) => (v as num).toInt(), @@ -73,5 +78,6 @@ Map _$APIConfigEventsToJson(APIConfigEvents instance) => 'playerOrderBucketSize': instance.playerOrderBucketSize, 'playerOrderFactor': instance.playerOrderFactor, 'slowUpdateFactorThreshold': instance.slowUpdateFactorThreshold, + 'useDirectPlayerSerialization': instance.useDirectPlayerSerialization, 'viewSegmentLength': instance.viewSegmentLength, }; diff --git a/vrchat_dart_generated/lib/src/model/api_config_ios_version.dart b/vrchat_dart_generated/lib/src/model/api_config_ios_version.dart new file mode 100644 index 00000000..149b3892 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_ios_version.dart @@ -0,0 +1,46 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'api_config_ios_version.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class APIConfigIosVersion { + /// Returns a new [APIConfigIosVersion] instance. + APIConfigIosVersion({required this.major, required this.minor}); + + @JsonKey(name: r'major', required: true, includeIfNull: false) + final int major; + + @JsonKey(name: r'minor', required: true, includeIfNull: false) + final int minor; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is APIConfigIosVersion && + other.major == major && + other.minor == minor; + + @override + int get hashCode => major.hashCode + minor.hashCode; + + factory APIConfigIosVersion.fromJson(Map json) => + _$APIConfigIosVersionFromJson(json); + + Map toJson() => _$APIConfigIosVersionToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_ios_version.g.dart b/vrchat_dart_generated/lib/src/model/api_config_ios_version.g.dart new file mode 100644 index 00000000..f2549475 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_ios_version.g.dart @@ -0,0 +1,23 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'api_config_ios_version.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +APIConfigIosVersion _$APIConfigIosVersionFromJson(Map json) => + $checkedCreate('APIConfigIosVersion', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['major', 'minor']); + final val = APIConfigIosVersion( + major: $checkedConvert('major', (v) => (v as num).toInt()), + minor: $checkedConvert('minor', (v) => (v as num).toInt()), + ); + return val; + }); + +Map _$APIConfigIosVersionToJson( + APIConfigIosVersion instance, +) => {'major': instance.major, 'minor': instance.minor}; diff --git a/vrchat_dart_generated/lib/src/model/api_config_report_categories.dart b/vrchat_dart_generated/lib/src/model/api_config_report_categories.dart deleted file mode 100644 index 53f16b78..00000000 --- a/vrchat_dart_generated/lib/src/model/api_config_report_categories.dart +++ /dev/null @@ -1,130 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:vrchat_dart_generated/src/model/report_category.dart'; - -import 'package:json_annotation/json_annotation.dart'; - -part 'api_config_report_categories.g.dart'; - -@JsonSerializable( - checked: true, - createToJson: true, - disallowUnrecognizedKeys: false, - explicitToJson: true, -) -class APIConfigReportCategories { - /// Returns a new [APIConfigReportCategories] instance. - APIConfigReportCategories({ - required this.avatar, - - this.avatarpage, - - required this.behavior, - - required this.chat, - - this.emoji, - - required this.environment, - - required this.groupstore, - - required this.image, - - this.sticker, - - required this.text, - - required this.warnings, - - required this.worldimage, - - required this.worldstore, - }); - - @JsonKey(name: r'avatar', required: true, includeIfNull: false) - final ReportCategory avatar; - - @JsonKey(name: r'avatarpage', required: false, includeIfNull: false) - final ReportCategory? avatarpage; - - @JsonKey(name: r'behavior', required: true, includeIfNull: false) - final ReportCategory behavior; - - @JsonKey(name: r'chat', required: true, includeIfNull: false) - final ReportCategory chat; - - @JsonKey(name: r'emoji', required: false, includeIfNull: false) - final ReportCategory? emoji; - - @JsonKey(name: r'environment', required: true, includeIfNull: false) - final ReportCategory environment; - - @JsonKey(name: r'groupstore', required: true, includeIfNull: false) - final ReportCategory groupstore; - - @JsonKey(name: r'image', required: true, includeIfNull: false) - final ReportCategory image; - - @JsonKey(name: r'sticker', required: false, includeIfNull: false) - final ReportCategory? sticker; - - @JsonKey(name: r'text', required: true, includeIfNull: false) - final ReportCategory text; - - @JsonKey(name: r'warnings', required: true, includeIfNull: false) - final ReportCategory warnings; - - @JsonKey(name: r'worldimage', required: true, includeIfNull: false) - final ReportCategory worldimage; - - @JsonKey(name: r'worldstore', required: true, includeIfNull: false) - final ReportCategory worldstore; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is APIConfigReportCategories && - other.avatar == avatar && - other.avatarpage == avatarpage && - other.behavior == behavior && - other.chat == chat && - other.emoji == emoji && - other.environment == environment && - other.groupstore == groupstore && - other.image == image && - other.sticker == sticker && - other.text == text && - other.warnings == warnings && - other.worldimage == worldimage && - other.worldstore == worldstore; - - @override - int get hashCode => - avatar.hashCode + - avatarpage.hashCode + - behavior.hashCode + - chat.hashCode + - emoji.hashCode + - environment.hashCode + - groupstore.hashCode + - image.hashCode + - sticker.hashCode + - text.hashCode + - warnings.hashCode + - worldimage.hashCode + - worldstore.hashCode; - - factory APIConfigReportCategories.fromJson(Map json) => - _$APIConfigReportCategoriesFromJson(json); - - Map toJson() => _$APIConfigReportCategoriesToJson(this); - - @override - String toString() { - return toJson().toString(); - } -} diff --git a/vrchat_dart_generated/lib/src/model/api_config_report_categories.g.dart b/vrchat_dart_generated/lib/src/model/api_config_report_categories.g.dart deleted file mode 100644 index 11183abe..00000000 --- a/vrchat_dart_generated/lib/src/model/api_config_report_categories.g.dart +++ /dev/null @@ -1,105 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -// ignore_for_file: deprecated_member_use_from_same_package - -part of 'api_config_report_categories.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -APIConfigReportCategories _$APIConfigReportCategoriesFromJson( - Map json, -) => $checkedCreate('APIConfigReportCategories', json, ($checkedConvert) { - $checkKeys( - json, - requiredKeys: const [ - 'avatar', - 'behavior', - 'chat', - 'environment', - 'groupstore', - 'image', - 'text', - 'warnings', - 'worldimage', - 'worldstore', - ], - ); - final val = APIConfigReportCategories( - avatar: $checkedConvert( - 'avatar', - (v) => ReportCategory.fromJson(v as Map), - ), - avatarpage: $checkedConvert( - 'avatarpage', - (v) => - v == null ? null : ReportCategory.fromJson(v as Map), - ), - behavior: $checkedConvert( - 'behavior', - (v) => ReportCategory.fromJson(v as Map), - ), - chat: $checkedConvert( - 'chat', - (v) => ReportCategory.fromJson(v as Map), - ), - emoji: $checkedConvert( - 'emoji', - (v) => - v == null ? null : ReportCategory.fromJson(v as Map), - ), - environment: $checkedConvert( - 'environment', - (v) => ReportCategory.fromJson(v as Map), - ), - groupstore: $checkedConvert( - 'groupstore', - (v) => ReportCategory.fromJson(v as Map), - ), - image: $checkedConvert( - 'image', - (v) => ReportCategory.fromJson(v as Map), - ), - sticker: $checkedConvert( - 'sticker', - (v) => - v == null ? null : ReportCategory.fromJson(v as Map), - ), - text: $checkedConvert( - 'text', - (v) => ReportCategory.fromJson(v as Map), - ), - warnings: $checkedConvert( - 'warnings', - (v) => ReportCategory.fromJson(v as Map), - ), - worldimage: $checkedConvert( - 'worldimage', - (v) => ReportCategory.fromJson(v as Map), - ), - worldstore: $checkedConvert( - 'worldstore', - (v) => ReportCategory.fromJson(v as Map), - ), - ); - return val; -}); - -Map _$APIConfigReportCategoriesToJson( - APIConfigReportCategories instance, -) => { - 'avatar': instance.avatar.toJson(), - 'avatarpage': ?instance.avatarpage?.toJson(), - 'behavior': instance.behavior.toJson(), - 'chat': instance.chat.toJson(), - 'emoji': ?instance.emoji?.toJson(), - 'environment': instance.environment.toJson(), - 'groupstore': instance.groupstore.toJson(), - 'image': instance.image.toJson(), - 'sticker': ?instance.sticker?.toJson(), - 'text': instance.text.toJson(), - 'warnings': instance.warnings.toJson(), - 'worldimage': instance.worldimage.toJson(), - 'worldstore': instance.worldstore.toJson(), -}; diff --git a/vrchat_dart_generated/lib/src/model/api_config_report_options.dart b/vrchat_dart_generated/lib/src/model/api_config_report_options.dart deleted file mode 100644 index 1ef5dc90..00000000 --- a/vrchat_dart_generated/lib/src/model/api_config_report_options.dart +++ /dev/null @@ -1,59 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:vrchat_dart_generated/src/model/api_config_report_options_avatar.dart'; -import 'package:vrchat_dart_generated/src/model/api_config_report_options_user.dart'; -import 'package:vrchat_dart_generated/src/model/api_config_report_options_world.dart'; -import 'package:vrchat_dart_generated/src/model/api_config_report_options_group.dart'; - -import 'package:json_annotation/json_annotation.dart'; - -part 'api_config_report_options.g.dart'; - -@JsonSerializable( - checked: true, - createToJson: true, - disallowUnrecognizedKeys: false, - explicitToJson: true, -) -class APIConfigReportOptions { - /// Returns a new [APIConfigReportOptions] instance. - APIConfigReportOptions({this.avatar, this.group, this.user, this.world}); - - @JsonKey(name: r'avatar', required: false, includeIfNull: false) - final APIConfigReportOptionsAvatar? avatar; - - @JsonKey(name: r'group', required: false, includeIfNull: false) - final APIConfigReportOptionsGroup? group; - - @JsonKey(name: r'user', required: false, includeIfNull: false) - final APIConfigReportOptionsUser? user; - - @JsonKey(name: r'world', required: false, includeIfNull: false) - final APIConfigReportOptionsWorld? world; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is APIConfigReportOptions && - other.avatar == avatar && - other.group == group && - other.user == user && - other.world == world; - - @override - int get hashCode => - avatar.hashCode + group.hashCode + user.hashCode + world.hashCode; - - factory APIConfigReportOptions.fromJson(Map json) => - _$APIConfigReportOptionsFromJson(json); - - Map toJson() => _$APIConfigReportOptionsToJson(this); - - @override - String toString() { - return toJson().toString(); - } -} diff --git a/vrchat_dart_generated/lib/src/model/api_config_report_options.g.dart b/vrchat_dart_generated/lib/src/model/api_config_report_options.g.dart deleted file mode 100644 index 0406f469..00000000 --- a/vrchat_dart_generated/lib/src/model/api_config_report_options.g.dart +++ /dev/null @@ -1,50 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -// ignore_for_file: deprecated_member_use_from_same_package - -part of 'api_config_report_options.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -APIConfigReportOptions _$APIConfigReportOptionsFromJson( - Map json, -) => $checkedCreate('APIConfigReportOptions', json, ($checkedConvert) { - final val = APIConfigReportOptions( - avatar: $checkedConvert( - 'avatar', - (v) => v == null - ? null - : APIConfigReportOptionsAvatar.fromJson(v as Map), - ), - group: $checkedConvert( - 'group', - (v) => v == null - ? null - : APIConfigReportOptionsGroup.fromJson(v as Map), - ), - user: $checkedConvert( - 'user', - (v) => v == null - ? null - : APIConfigReportOptionsUser.fromJson(v as Map), - ), - world: $checkedConvert( - 'world', - (v) => v == null - ? null - : APIConfigReportOptionsWorld.fromJson(v as Map), - ), - ); - return val; -}); - -Map _$APIConfigReportOptionsToJson( - APIConfigReportOptions instance, -) => { - 'avatar': ?instance.avatar?.toJson(), - 'group': ?instance.group?.toJson(), - 'user': ?instance.user?.toJson(), - 'world': ?instance.world?.toJson(), -}; diff --git a/vrchat_dart_generated/lib/src/model/api_config_report_options_avatar.dart b/vrchat_dart_generated/lib/src/model/api_config_report_options_avatar.dart deleted file mode 100644 index ea3d6cc1..00000000 --- a/vrchat_dart_generated/lib/src/model/api_config_report_options_avatar.dart +++ /dev/null @@ -1,50 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element - -import 'package:json_annotation/json_annotation.dart'; - -part 'api_config_report_options_avatar.g.dart'; - -@JsonSerializable( - checked: true, - createToJson: true, - disallowUnrecognizedKeys: false, - explicitToJson: true, -) -class APIConfigReportOptionsAvatar { - /// Returns a new [APIConfigReportOptionsAvatar] instance. - APIConfigReportOptionsAvatar({this.avatar, this.avatarpage, this.warnings}); - - @JsonKey(name: r'avatar', required: false, includeIfNull: false) - final List? avatar; - - @JsonKey(name: r'avatarpage', required: false, includeIfNull: false) - final List? avatarpage; - - @JsonKey(name: r'warnings', required: false, includeIfNull: false) - final List? warnings; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is APIConfigReportOptionsAvatar && - other.avatar == avatar && - other.avatarpage == avatarpage && - other.warnings == warnings; - - @override - int get hashCode => avatar.hashCode + avatarpage.hashCode + warnings.hashCode; - - factory APIConfigReportOptionsAvatar.fromJson(Map json) => - _$APIConfigReportOptionsAvatarFromJson(json); - - Map toJson() => _$APIConfigReportOptionsAvatarToJson(this); - - @override - String toString() { - return toJson().toString(); - } -} diff --git a/vrchat_dart_generated/lib/src/model/api_config_report_options_avatar.g.dart b/vrchat_dart_generated/lib/src/model/api_config_report_options_avatar.g.dart deleted file mode 100644 index c1f242dc..00000000 --- a/vrchat_dart_generated/lib/src/model/api_config_report_options_avatar.g.dart +++ /dev/null @@ -1,37 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -// ignore_for_file: deprecated_member_use_from_same_package - -part of 'api_config_report_options_avatar.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -APIConfigReportOptionsAvatar _$APIConfigReportOptionsAvatarFromJson( - Map json, -) => $checkedCreate('APIConfigReportOptionsAvatar', json, ($checkedConvert) { - final val = APIConfigReportOptionsAvatar( - avatar: $checkedConvert( - 'avatar', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - avatarpage: $checkedConvert( - 'avatarpage', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - warnings: $checkedConvert( - 'warnings', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - ); - return val; -}); - -Map _$APIConfigReportOptionsAvatarToJson( - APIConfigReportOptionsAvatar instance, -) => { - 'avatar': ?instance.avatar, - 'avatarpage': ?instance.avatarpage, - 'warnings': ?instance.warnings, -}; diff --git a/vrchat_dart_generated/lib/src/model/api_config_report_options_group.dart b/vrchat_dart_generated/lib/src/model/api_config_report_options_group.dart deleted file mode 100644 index 508343c3..00000000 --- a/vrchat_dart_generated/lib/src/model/api_config_report_options_group.dart +++ /dev/null @@ -1,50 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element - -import 'package:json_annotation/json_annotation.dart'; - -part 'api_config_report_options_group.g.dart'; - -@JsonSerializable( - checked: true, - createToJson: true, - disallowUnrecognizedKeys: false, - explicitToJson: true, -) -class APIConfigReportOptionsGroup { - /// Returns a new [APIConfigReportOptionsGroup] instance. - APIConfigReportOptionsGroup({this.groupstore, this.image, this.text}); - - @JsonKey(name: r'groupstore', required: false, includeIfNull: false) - final List? groupstore; - - @JsonKey(name: r'image', required: false, includeIfNull: false) - final List? image; - - @JsonKey(name: r'text', required: false, includeIfNull: false) - final List? text; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is APIConfigReportOptionsGroup && - other.groupstore == groupstore && - other.image == image && - other.text == text; - - @override - int get hashCode => groupstore.hashCode + image.hashCode + text.hashCode; - - factory APIConfigReportOptionsGroup.fromJson(Map json) => - _$APIConfigReportOptionsGroupFromJson(json); - - Map toJson() => _$APIConfigReportOptionsGroupToJson(this); - - @override - String toString() { - return toJson().toString(); - } -} diff --git a/vrchat_dart_generated/lib/src/model/api_config_report_options_group.g.dart b/vrchat_dart_generated/lib/src/model/api_config_report_options_group.g.dart deleted file mode 100644 index af43857e..00000000 --- a/vrchat_dart_generated/lib/src/model/api_config_report_options_group.g.dart +++ /dev/null @@ -1,37 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -// ignore_for_file: deprecated_member_use_from_same_package - -part of 'api_config_report_options_group.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -APIConfigReportOptionsGroup _$APIConfigReportOptionsGroupFromJson( - Map json, -) => $checkedCreate('APIConfigReportOptionsGroup', json, ($checkedConvert) { - final val = APIConfigReportOptionsGroup( - groupstore: $checkedConvert( - 'groupstore', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - image: $checkedConvert( - 'image', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - text: $checkedConvert( - 'text', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - ); - return val; -}); - -Map _$APIConfigReportOptionsGroupToJson( - APIConfigReportOptionsGroup instance, -) => { - 'groupstore': ?instance.groupstore, - 'image': ?instance.image, - 'text': ?instance.text, -}; diff --git a/vrchat_dart_generated/lib/src/model/api_config_report_options_user.dart b/vrchat_dart_generated/lib/src/model/api_config_report_options_user.dart deleted file mode 100644 index b358f67c..00000000 --- a/vrchat_dart_generated/lib/src/model/api_config_report_options_user.dart +++ /dev/null @@ -1,80 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element - -import 'package:json_annotation/json_annotation.dart'; - -part 'api_config_report_options_user.g.dart'; - -@JsonSerializable( - checked: true, - createToJson: true, - disallowUnrecognizedKeys: false, - explicitToJson: true, -) -class APIConfigReportOptionsUser { - /// Returns a new [APIConfigReportOptionsUser] instance. - APIConfigReportOptionsUser({ - this.behavior, - - this.chat, - - this.emoji, - - this.image, - - this.sticker, - - this.text, - }); - - @JsonKey(name: r'behavior', required: false, includeIfNull: false) - final List? behavior; - - @JsonKey(name: r'chat', required: false, includeIfNull: false) - final List? chat; - - @JsonKey(name: r'emoji', required: false, includeIfNull: false) - final List? emoji; - - @JsonKey(name: r'image', required: false, includeIfNull: false) - final List? image; - - @JsonKey(name: r'sticker', required: false, includeIfNull: false) - final List? sticker; - - @JsonKey(name: r'text', required: false, includeIfNull: false) - final List? text; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is APIConfigReportOptionsUser && - other.behavior == behavior && - other.chat == chat && - other.emoji == emoji && - other.image == image && - other.sticker == sticker && - other.text == text; - - @override - int get hashCode => - behavior.hashCode + - chat.hashCode + - emoji.hashCode + - image.hashCode + - sticker.hashCode + - text.hashCode; - - factory APIConfigReportOptionsUser.fromJson(Map json) => - _$APIConfigReportOptionsUserFromJson(json); - - Map toJson() => _$APIConfigReportOptionsUserToJson(this); - - @override - String toString() { - return toJson().toString(); - } -} diff --git a/vrchat_dart_generated/lib/src/model/api_config_report_options_user.g.dart b/vrchat_dart_generated/lib/src/model/api_config_report_options_user.g.dart deleted file mode 100644 index f73f7de4..00000000 --- a/vrchat_dart_generated/lib/src/model/api_config_report_options_user.g.dart +++ /dev/null @@ -1,52 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -// ignore_for_file: deprecated_member_use_from_same_package - -part of 'api_config_report_options_user.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -APIConfigReportOptionsUser _$APIConfigReportOptionsUserFromJson( - Map json, -) => $checkedCreate('APIConfigReportOptionsUser', json, ($checkedConvert) { - final val = APIConfigReportOptionsUser( - behavior: $checkedConvert( - 'behavior', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - chat: $checkedConvert( - 'chat', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - emoji: $checkedConvert( - 'emoji', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - image: $checkedConvert( - 'image', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - sticker: $checkedConvert( - 'sticker', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - text: $checkedConvert( - 'text', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - ); - return val; -}); - -Map _$APIConfigReportOptionsUserToJson( - APIConfigReportOptionsUser instance, -) => { - 'behavior': ?instance.behavior, - 'chat': ?instance.chat, - 'emoji': ?instance.emoji, - 'image': ?instance.image, - 'sticker': ?instance.sticker, - 'text': ?instance.text, -}; diff --git a/vrchat_dart_generated/lib/src/model/api_config_report_options_world.dart b/vrchat_dart_generated/lib/src/model/api_config_report_options_world.dart deleted file mode 100644 index ae5b2862..00000000 --- a/vrchat_dart_generated/lib/src/model/api_config_report_options_world.dart +++ /dev/null @@ -1,73 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element - -import 'package:json_annotation/json_annotation.dart'; - -part 'api_config_report_options_world.g.dart'; - -@JsonSerializable( - checked: true, - createToJson: true, - disallowUnrecognizedKeys: false, - explicitToJson: true, -) -class APIConfigReportOptionsWorld { - /// Returns a new [APIConfigReportOptionsWorld] instance. - APIConfigReportOptionsWorld({ - this.environment, - - this.text, - - this.warnings, - - this.worldimage, - - this.worldstore, - }); - - @JsonKey(name: r'environment', required: false, includeIfNull: false) - final List? environment; - - @JsonKey(name: r'text', required: false, includeIfNull: false) - final List? text; - - @JsonKey(name: r'warnings', required: false, includeIfNull: false) - final List? warnings; - - @JsonKey(name: r'worldimage', required: false, includeIfNull: false) - final List? worldimage; - - @JsonKey(name: r'worldstore', required: false, includeIfNull: false) - final List? worldstore; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is APIConfigReportOptionsWorld && - other.environment == environment && - other.text == text && - other.warnings == warnings && - other.worldimage == worldimage && - other.worldstore == worldstore; - - @override - int get hashCode => - environment.hashCode + - text.hashCode + - warnings.hashCode + - worldimage.hashCode + - worldstore.hashCode; - - factory APIConfigReportOptionsWorld.fromJson(Map json) => - _$APIConfigReportOptionsWorldFromJson(json); - - Map toJson() => _$APIConfigReportOptionsWorldToJson(this); - - @override - String toString() { - return toJson().toString(); - } -} diff --git a/vrchat_dart_generated/lib/src/model/api_config_report_options_world.g.dart b/vrchat_dart_generated/lib/src/model/api_config_report_options_world.g.dart deleted file mode 100644 index 0e80442a..00000000 --- a/vrchat_dart_generated/lib/src/model/api_config_report_options_world.g.dart +++ /dev/null @@ -1,47 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -// ignore_for_file: deprecated_member_use_from_same_package - -part of 'api_config_report_options_world.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -APIConfigReportOptionsWorld _$APIConfigReportOptionsWorldFromJson( - Map json, -) => $checkedCreate('APIConfigReportOptionsWorld', json, ($checkedConvert) { - final val = APIConfigReportOptionsWorld( - environment: $checkedConvert( - 'environment', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - text: $checkedConvert( - 'text', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - warnings: $checkedConvert( - 'warnings', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - worldimage: $checkedConvert( - 'worldimage', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - worldstore: $checkedConvert( - 'worldstore', - (v) => (v as List?)?.map((e) => e as String).toList(), - ), - ); - return val; -}); - -Map _$APIConfigReportOptionsWorldToJson( - APIConfigReportOptionsWorld instance, -) => { - 'environment': ?instance.environment, - 'text': ?instance.text, - 'warnings': ?instance.warnings, - 'worldimage': ?instance.worldimage, - 'worldstore': ?instance.worldstore, -}; diff --git a/vrchat_dart_generated/lib/src/model/api_config_report_reasons.dart b/vrchat_dart_generated/lib/src/model/api_config_report_reasons.dart deleted file mode 100644 index 3d1eb835..00000000 --- a/vrchat_dart_generated/lib/src/model/api_config_report_reasons.dart +++ /dev/null @@ -1,193 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:vrchat_dart_generated/src/model/report_reason.dart'; - -import 'package:json_annotation/json_annotation.dart'; - -part 'api_config_report_reasons.g.dart'; - -@JsonSerializable( - checked: true, - createToJson: true, - disallowUnrecognizedKeys: false, - explicitToJson: true, -) -class APIConfigReportReasons { - /// Returns a new [APIConfigReportReasons] instance. - APIConfigReportReasons({ - required this.billing, - - required this.botting, - - required this.cancellation, - - this.copyright, - - this.fraud, - - required this.gore, - - required this.hacking, - - required this.harassing, - - required this.hateful, - - required this.impersonation, - - required this.inappropriate, - - required this.leaking, - - required this.malicious, - - required this.missing, - - required this.nudity, - - required this.renewal, - - required this.security, - - required this.service, - - required this.sexual, - - this.technical, - - required this.threatening, - - required this.visuals, - }); - - @JsonKey(name: r'billing', required: true, includeIfNull: false) - final ReportReason billing; - - @JsonKey(name: r'botting', required: true, includeIfNull: false) - final ReportReason botting; - - @JsonKey(name: r'cancellation', required: true, includeIfNull: false) - final ReportReason cancellation; - - @JsonKey(name: r'copyright', required: false, includeIfNull: false) - final ReportReason? copyright; - - @JsonKey(name: r'fraud', required: false, includeIfNull: false) - final ReportReason? fraud; - - @JsonKey(name: r'gore', required: true, includeIfNull: false) - final ReportReason gore; - - @JsonKey(name: r'hacking', required: true, includeIfNull: false) - final ReportReason hacking; - - @JsonKey(name: r'harassing', required: true, includeIfNull: false) - final ReportReason harassing; - - @JsonKey(name: r'hateful', required: true, includeIfNull: false) - final ReportReason hateful; - - @JsonKey(name: r'impersonation', required: true, includeIfNull: false) - final ReportReason impersonation; - - @JsonKey(name: r'inappropriate', required: true, includeIfNull: false) - final ReportReason inappropriate; - - @JsonKey(name: r'leaking', required: true, includeIfNull: false) - final ReportReason leaking; - - @JsonKey(name: r'malicious', required: true, includeIfNull: false) - final ReportReason malicious; - - @JsonKey(name: r'missing', required: true, includeIfNull: false) - final ReportReason missing; - - @JsonKey(name: r'nudity', required: true, includeIfNull: false) - final ReportReason nudity; - - @JsonKey(name: r'renewal', required: true, includeIfNull: false) - final ReportReason renewal; - - @JsonKey(name: r'security', required: true, includeIfNull: false) - final ReportReason security; - - @JsonKey(name: r'service', required: true, includeIfNull: false) - final ReportReason service; - - @JsonKey(name: r'sexual', required: true, includeIfNull: false) - final ReportReason sexual; - - @JsonKey(name: r'technical', required: false, includeIfNull: false) - final ReportReason? technical; - - @JsonKey(name: r'threatening', required: true, includeIfNull: false) - final ReportReason threatening; - - @JsonKey(name: r'visuals', required: true, includeIfNull: false) - final ReportReason visuals; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is APIConfigReportReasons && - other.billing == billing && - other.botting == botting && - other.cancellation == cancellation && - other.copyright == copyright && - other.fraud == fraud && - other.gore == gore && - other.hacking == hacking && - other.harassing == harassing && - other.hateful == hateful && - other.impersonation == impersonation && - other.inappropriate == inappropriate && - other.leaking == leaking && - other.malicious == malicious && - other.missing == missing && - other.nudity == nudity && - other.renewal == renewal && - other.security == security && - other.service == service && - other.sexual == sexual && - other.technical == technical && - other.threatening == threatening && - other.visuals == visuals; - - @override - int get hashCode => - billing.hashCode + - botting.hashCode + - cancellation.hashCode + - copyright.hashCode + - fraud.hashCode + - gore.hashCode + - hacking.hashCode + - harassing.hashCode + - hateful.hashCode + - impersonation.hashCode + - inappropriate.hashCode + - leaking.hashCode + - malicious.hashCode + - missing.hashCode + - nudity.hashCode + - renewal.hashCode + - security.hashCode + - service.hashCode + - sexual.hashCode + - technical.hashCode + - threatening.hashCode + - visuals.hashCode; - - factory APIConfigReportReasons.fromJson(Map json) => - _$APIConfigReportReasonsFromJson(json); - - Map toJson() => _$APIConfigReportReasonsToJson(this); - - @override - String toString() { - return toJson().toString(); - } -} diff --git a/vrchat_dart_generated/lib/src/model/api_config_report_reasons.g.dart b/vrchat_dart_generated/lib/src/model/api_config_report_reasons.g.dart deleted file mode 100644 index e6488c2e..00000000 --- a/vrchat_dart_generated/lib/src/model/api_config_report_reasons.g.dart +++ /dev/null @@ -1,159 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -// ignore_for_file: deprecated_member_use_from_same_package - -part of 'api_config_report_reasons.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -APIConfigReportReasons _$APIConfigReportReasonsFromJson( - Map json, -) => $checkedCreate('APIConfigReportReasons', json, ($checkedConvert) { - $checkKeys( - json, - requiredKeys: const [ - 'billing', - 'botting', - 'cancellation', - 'gore', - 'hacking', - 'harassing', - 'hateful', - 'impersonation', - 'inappropriate', - 'leaking', - 'malicious', - 'missing', - 'nudity', - 'renewal', - 'security', - 'service', - 'sexual', - 'threatening', - 'visuals', - ], - ); - final val = APIConfigReportReasons( - billing: $checkedConvert( - 'billing', - (v) => ReportReason.fromJson(v as Map), - ), - botting: $checkedConvert( - 'botting', - (v) => ReportReason.fromJson(v as Map), - ), - cancellation: $checkedConvert( - 'cancellation', - (v) => ReportReason.fromJson(v as Map), - ), - copyright: $checkedConvert( - 'copyright', - (v) => - v == null ? null : ReportReason.fromJson(v as Map), - ), - fraud: $checkedConvert( - 'fraud', - (v) => - v == null ? null : ReportReason.fromJson(v as Map), - ), - gore: $checkedConvert( - 'gore', - (v) => ReportReason.fromJson(v as Map), - ), - hacking: $checkedConvert( - 'hacking', - (v) => ReportReason.fromJson(v as Map), - ), - harassing: $checkedConvert( - 'harassing', - (v) => ReportReason.fromJson(v as Map), - ), - hateful: $checkedConvert( - 'hateful', - (v) => ReportReason.fromJson(v as Map), - ), - impersonation: $checkedConvert( - 'impersonation', - (v) => ReportReason.fromJson(v as Map), - ), - inappropriate: $checkedConvert( - 'inappropriate', - (v) => ReportReason.fromJson(v as Map), - ), - leaking: $checkedConvert( - 'leaking', - (v) => ReportReason.fromJson(v as Map), - ), - malicious: $checkedConvert( - 'malicious', - (v) => ReportReason.fromJson(v as Map), - ), - missing: $checkedConvert( - 'missing', - (v) => ReportReason.fromJson(v as Map), - ), - nudity: $checkedConvert( - 'nudity', - (v) => ReportReason.fromJson(v as Map), - ), - renewal: $checkedConvert( - 'renewal', - (v) => ReportReason.fromJson(v as Map), - ), - security: $checkedConvert( - 'security', - (v) => ReportReason.fromJson(v as Map), - ), - service: $checkedConvert( - 'service', - (v) => ReportReason.fromJson(v as Map), - ), - sexual: $checkedConvert( - 'sexual', - (v) => ReportReason.fromJson(v as Map), - ), - technical: $checkedConvert( - 'technical', - (v) => - v == null ? null : ReportReason.fromJson(v as Map), - ), - threatening: $checkedConvert( - 'threatening', - (v) => ReportReason.fromJson(v as Map), - ), - visuals: $checkedConvert( - 'visuals', - (v) => ReportReason.fromJson(v as Map), - ), - ); - return val; -}); - -Map _$APIConfigReportReasonsToJson( - APIConfigReportReasons instance, -) => { - 'billing': instance.billing.toJson(), - 'botting': instance.botting.toJson(), - 'cancellation': instance.cancellation.toJson(), - 'copyright': ?instance.copyright?.toJson(), - 'fraud': ?instance.fraud?.toJson(), - 'gore': instance.gore.toJson(), - 'hacking': instance.hacking.toJson(), - 'harassing': instance.harassing.toJson(), - 'hateful': instance.hateful.toJson(), - 'impersonation': instance.impersonation.toJson(), - 'inappropriate': instance.inappropriate.toJson(), - 'leaking': instance.leaking.toJson(), - 'malicious': instance.malicious.toJson(), - 'missing': instance.missing.toJson(), - 'nudity': instance.nudity.toJson(), - 'renewal': instance.renewal.toJson(), - 'security': instance.security.toJson(), - 'service': instance.service.toJson(), - 'sexual': instance.sexual.toJson(), - 'technical': ?instance.technical?.toJson(), - 'threatening': instance.threatening.toJson(), - 'visuals': instance.visuals.toJson(), -}; diff --git a/vrchat_dart_generated/lib/src/model/avatar.dart b/vrchat_dart_generated/lib/src/model/avatar.dart index e0abfca0..6071b0a8 100644 --- a/vrchat_dart_generated/lib/src/model/avatar.dart +++ b/vrchat_dart_generated/lib/src/model/avatar.dart @@ -25,6 +25,8 @@ class Avatar { Avatar({ this.acknowledgements, + this.activeAssetReviewId, + this.assetUrl, this.assetUrlObject, @@ -53,6 +55,8 @@ class Avatar { required this.name, + this.pendingUpload = false, + required this.performance, this.productId, @@ -83,6 +87,10 @@ class Avatar { @JsonKey(name: r'acknowledgements', required: false, includeIfNull: false) final String? acknowledgements; + /// Only present for the avatar author on avatars under active review. + @JsonKey(name: r'activeAssetReviewId', required: false, includeIfNull: false) + final String? activeAssetReviewId; + /// Not present from general search `/avatars`, only on specific requests `/avatars/{avatarId}`. @JsonKey(name: r'assetUrl', required: false, includeIfNull: false) final String? assetUrl; @@ -128,6 +136,9 @@ class Avatar { @JsonKey(name: r'name', required: true, includeIfNull: false) final String name; + @JsonKey(name: r'pendingUpload', required: false, includeIfNull: false) + final bool? pendingUpload; + @JsonKey(name: r'performance', required: true, includeIfNull: false) final AvatarPerformance performance; @@ -175,6 +186,7 @@ class Avatar { identical(this, other) || other is Avatar && other.acknowledgements == acknowledgements && + other.activeAssetReviewId == activeAssetReviewId && other.assetUrl == assetUrl && other.assetUrlObject == assetUrlObject && other.authorId == authorId && @@ -189,6 +201,7 @@ class Avatar { other.lock == lock && other.lowestPrice == lowestPrice && other.name == name && + other.pendingUpload == pendingUpload && other.performance == performance && other.productId == productId && other.publishedListings == publishedListings && @@ -207,6 +220,7 @@ class Avatar { @override int get hashCode => acknowledgements.hashCode + + activeAssetReviewId.hashCode + assetUrl.hashCode + assetUrlObject.hashCode + authorId.hashCode + @@ -221,6 +235,7 @@ class Avatar { lock.hashCode + lowestPrice.hashCode + name.hashCode + + pendingUpload.hashCode + performance.hashCode + productId.hashCode + publishedListings.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/avatar.g.dart b/vrchat_dart_generated/lib/src/model/avatar.g.dart index d8e0de45..31ea758e 100644 --- a/vrchat_dart_generated/lib/src/model/avatar.g.dart +++ b/vrchat_dart_generated/lib/src/model/avatar.g.dart @@ -41,6 +41,10 @@ Avatar _$AvatarFromJson(Map json) => $checkedCreate( 'acknowledgements', (v) => v as String?, ), + activeAssetReviewId: $checkedConvert( + 'activeAssetReviewId', + (v) => v as String?, + ), assetUrl: $checkedConvert('assetUrl', (v) => v as String?), assetUrlObject: $checkedConvert('assetUrlObject', (v) => v), authorId: $checkedConvert('authorId', (v) => v as String), @@ -61,6 +65,10 @@ Avatar _$AvatarFromJson(Map json) => $checkedCreate( lock: $checkedConvert('lock', (v) => v as bool?), lowestPrice: $checkedConvert('lowestPrice', (v) => (v as num?)?.toInt()), name: $checkedConvert('name', (v) => v as String), + pendingUpload: $checkedConvert( + 'pendingUpload', + (v) => v as bool? ?? false, + ), performance: $checkedConvert( 'performance', (v) => AvatarPerformance.fromJson(v as Map), @@ -117,6 +125,7 @@ Avatar _$AvatarFromJson(Map json) => $checkedCreate( Map _$AvatarToJson(Avatar instance) => { 'acknowledgements': ?instance.acknowledgements, + 'activeAssetReviewId': ?instance.activeAssetReviewId, 'assetUrl': ?instance.assetUrl, 'assetUrlObject': ?instance.assetUrlObject, 'authorId': instance.authorId, @@ -131,6 +140,7 @@ Map _$AvatarToJson(Avatar instance) => { 'lock': ?instance.lock, 'lowestPrice': ?instance.lowestPrice, 'name': instance.name, + 'pendingUpload': ?instance.pendingUpload, 'performance': instance.performance.toJson(), 'productId': ?instance.productId, 'publishedListings': ?instance.publishedListings diff --git a/vrchat_dart_generated/lib/src/model/create_avatar_request.dart b/vrchat_dart_generated/lib/src/model/create_avatar_request.dart index 3d7616cf..f47367ee 100644 --- a/vrchat_dart_generated/lib/src/model/create_avatar_request.dart +++ b/vrchat_dart_generated/lib/src/model/create_avatar_request.dart @@ -71,7 +71,7 @@ class CreateAvatarRequest { @JsonKey(name: r'name', required: true, includeIfNull: false) final String name; - /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. @JsonKey(name: r'platform', required: false, includeIfNull: false) final String? platform; diff --git a/vrchat_dart_generated/lib/src/model/create_instance_request.dart b/vrchat_dart_generated/lib/src/model/create_instance_request.dart index c017546d..f5d4bcf6 100644 --- a/vrchat_dart_generated/lib/src/model/create_instance_request.dart +++ b/vrchat_dart_generated/lib/src/model/create_instance_request.dart @@ -23,6 +23,8 @@ class CreateInstanceRequest { CreateInstanceRequest({ this.ageGate = false, + this.calendarEntryId, + this.canRequestInvite = false, this.closedAt, @@ -41,6 +43,8 @@ class CreateInstanceRequest { this.ownerId, + this.playerPersistenceEnabled, + this.queueEnabled = false, required this.region, @@ -55,6 +59,9 @@ class CreateInstanceRequest { @JsonKey(name: r'ageGate', required: false, includeIfNull: false) final bool? ageGate; + @JsonKey(name: r'calendarEntryId', required: false, includeIfNull: false) + final String? calendarEntryId; + /// Only applies to invite type instances to make them invite+ @JsonKey(name: r'canRequestInvite', required: false, includeIfNull: false) final bool? canRequestInvite; @@ -90,6 +97,13 @@ class CreateInstanceRequest { @JsonKey(name: r'ownerId', required: false, includeIfNull: false) final String? ownerId; + @JsonKey( + name: r'playerPersistenceEnabled', + required: false, + includeIfNull: false, + ) + final bool? playerPersistenceEnabled; + @JsonKey(name: r'queueEnabled', required: false, includeIfNull: false) final bool? queueEnabled; @@ -112,6 +126,7 @@ class CreateInstanceRequest { identical(this, other) || other is CreateInstanceRequest && other.ageGate == ageGate && + other.calendarEntryId == calendarEntryId && other.canRequestInvite == canRequestInvite && other.closedAt == closedAt && other.contentSettings == contentSettings && @@ -121,6 +136,7 @@ class CreateInstanceRequest { other.instancePersistenceEnabled == instancePersistenceEnabled && other.inviteOnly == inviteOnly && other.ownerId == ownerId && + other.playerPersistenceEnabled == playerPersistenceEnabled && other.queueEnabled == queueEnabled && other.region == region && other.roleIds == roleIds && @@ -130,6 +146,7 @@ class CreateInstanceRequest { @override int get hashCode => ageGate.hashCode + + calendarEntryId.hashCode + canRequestInvite.hashCode + closedAt.hashCode + contentSettings.hashCode + @@ -141,6 +158,9 @@ class CreateInstanceRequest { : instancePersistenceEnabled.hashCode) + inviteOnly.hashCode + (ownerId == null ? 0 : ownerId.hashCode) + + (playerPersistenceEnabled == null + ? 0 + : playerPersistenceEnabled.hashCode) + queueEnabled.hashCode + region.hashCode + roleIds.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/create_instance_request.g.dart b/vrchat_dart_generated/lib/src/model/create_instance_request.g.dart index 8bfc5fb5..355cfc03 100644 --- a/vrchat_dart_generated/lib/src/model/create_instance_request.g.dart +++ b/vrchat_dart_generated/lib/src/model/create_instance_request.g.dart @@ -14,6 +14,7 @@ CreateInstanceRequest _$CreateInstanceRequestFromJson( $checkKeys(json, requiredKeys: const ['region', 'type', 'worldId']); final val = CreateInstanceRequest( ageGate: $checkedConvert('ageGate', (v) => v as bool? ?? false), + calendarEntryId: $checkedConvert('calendarEntryId', (v) => v as String?), canRequestInvite: $checkedConvert( 'canRequestInvite', (v) => v as bool? ?? false, @@ -40,6 +41,10 @@ CreateInstanceRequest _$CreateInstanceRequestFromJson( ), inviteOnly: $checkedConvert('inviteOnly', (v) => v as bool? ?? false), ownerId: $checkedConvert('ownerId', (v) => v as String?), + playerPersistenceEnabled: $checkedConvert( + 'playerPersistenceEnabled', + (v) => v as bool?, + ), queueEnabled: $checkedConvert('queueEnabled', (v) => v as bool? ?? false), region: $checkedConvert( 'region', @@ -59,6 +64,7 @@ Map _$CreateInstanceRequestToJson( CreateInstanceRequest instance, ) => { 'ageGate': ?instance.ageGate, + 'calendarEntryId': ?instance.calendarEntryId, 'canRequestInvite': ?instance.canRequestInvite, 'closedAt': ?instance.closedAt?.toIso8601String(), 'contentSettings': ?instance.contentSettings?.toJson(), @@ -68,6 +74,7 @@ Map _$CreateInstanceRequestToJson( 'instancePersistenceEnabled': ?instance.instancePersistenceEnabled, 'inviteOnly': ?instance.inviteOnly, 'ownerId': ?instance.ownerId, + 'playerPersistenceEnabled': ?instance.playerPersistenceEnabled, 'queueEnabled': ?instance.queueEnabled, 'region': _$InstanceRegionEnumMap[instance.region]!, 'roleIds': ?instance.roleIds, diff --git a/vrchat_dart_generated/lib/src/model/create_prop_request.dart b/vrchat_dart_generated/lib/src/model/create_prop_request.dart new file mode 100644 index 00000000..b5cb6d02 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/create_prop_request.dart @@ -0,0 +1,127 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'create_prop_request.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class CreatePropRequest { + /// Returns a new [CreatePropRequest] instance. + CreatePropRequest({ + required this.assetUrl, + + required this.assetVersion, + + required this.description, + + required this.id, + + required this.imageUrl, + + required this.name, + + required this.platform, + + this.propSignature, + + this.spawnType = 1, + + required this.tags, + + required this.unityVersion, + + this.worldPlacementMask = 1, + }); + + @JsonKey(name: r'assetUrl', required: true, includeIfNull: false) + final String assetUrl; + + @JsonKey(name: r'assetVersion', required: true, includeIfNull: false) + final int assetVersion; + + @JsonKey(name: r'description', required: true, includeIfNull: false) + final String description; + + @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'name', required: true, includeIfNull: false) + final String name; + + /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + @JsonKey(name: r'platform', required: true, includeIfNull: false) + final String platform; + + @JsonKey(name: r'propSignature', required: false, includeIfNull: false) + final String? propSignature; + + /// How a prop is summoned and interacted with. 0: the prop fixed to some surface in the world 1: the prop is a pickup and may be held by users 2: ??? + // minimum: 0 + @JsonKey(name: r'spawnType', required: true, includeIfNull: false) + final int spawnType; + + @JsonKey(name: r'tags', required: true, includeIfNull: false) + final List tags; + + @JsonKey(name: r'unityVersion', required: true, includeIfNull: false) + final String unityVersion; + + /// Bitmask for restrictions on what world surfaces a prop may be summoned. 0: no restrictions 1: floors 2: walls 4: ceilings + // minimum: 0 + @JsonKey(name: r'worldPlacementMask', required: true, includeIfNull: false) + final int worldPlacementMask; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is CreatePropRequest && + other.assetUrl == assetUrl && + other.assetVersion == assetVersion && + other.description == description && + other.id == id && + other.imageUrl == imageUrl && + other.name == name && + other.platform == platform && + other.propSignature == propSignature && + other.spawnType == spawnType && + other.tags == tags && + other.unityVersion == unityVersion && + other.worldPlacementMask == worldPlacementMask; + + @override + int get hashCode => + assetUrl.hashCode + + assetVersion.hashCode + + description.hashCode + + id.hashCode + + imageUrl.hashCode + + name.hashCode + + platform.hashCode + + propSignature.hashCode + + spawnType.hashCode + + tags.hashCode + + unityVersion.hashCode + + worldPlacementMask.hashCode; + + factory CreatePropRequest.fromJson(Map json) => + _$CreatePropRequestFromJson(json); + + Map toJson() => _$CreatePropRequestToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/create_prop_request.g.dart b/vrchat_dart_generated/lib/src/model/create_prop_request.g.dart new file mode 100644 index 00000000..3094a3c9 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/create_prop_request.g.dart @@ -0,0 +1,67 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'create_prop_request.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +CreatePropRequest _$CreatePropRequestFromJson( + Map json, +) => $checkedCreate('CreatePropRequest', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + 'assetUrl', + 'assetVersion', + 'description', + 'id', + 'imageUrl', + 'name', + 'platform', + 'spawnType', + 'tags', + 'unityVersion', + 'worldPlacementMask', + ], + ); + final val = CreatePropRequest( + assetUrl: $checkedConvert('assetUrl', (v) => v as String), + assetVersion: $checkedConvert('assetVersion', (v) => (v as num).toInt()), + description: $checkedConvert('description', (v) => v as String), + id: $checkedConvert('id', (v) => v as String), + imageUrl: $checkedConvert('imageUrl', (v) => v as String), + name: $checkedConvert('name', (v) => v as String), + platform: $checkedConvert('platform', (v) => v as String), + propSignature: $checkedConvert('propSignature', (v) => v as String?), + spawnType: $checkedConvert('spawnType', (v) => (v as num?)?.toInt() ?? 1), + tags: $checkedConvert( + 'tags', + (v) => (v as List).map((e) => e as String).toList(), + ), + unityVersion: $checkedConvert('unityVersion', (v) => v as String), + worldPlacementMask: $checkedConvert( + 'worldPlacementMask', + (v) => (v as num?)?.toInt() ?? 1, + ), + ); + return val; +}); + +Map _$CreatePropRequestToJson(CreatePropRequest instance) => + { + 'assetUrl': instance.assetUrl, + 'assetVersion': instance.assetVersion, + 'description': instance.description, + 'id': instance.id, + 'imageUrl': instance.imageUrl, + 'name': instance.name, + 'platform': instance.platform, + 'propSignature': ?instance.propSignature, + 'spawnType': instance.spawnType, + 'tags': instance.tags, + 'unityVersion': instance.unityVersion, + 'worldPlacementMask': instance.worldPlacementMask, + }; diff --git a/vrchat_dart_generated/lib/src/model/create_world_request.dart b/vrchat_dart_generated/lib/src/model/create_world_request.dart index 7b264ad8..ca2da242 100644 --- a/vrchat_dart_generated/lib/src/model/create_world_request.dart +++ b/vrchat_dart_generated/lib/src/model/create_world_request.dart @@ -79,7 +79,7 @@ class CreateWorldRequest { @JsonKey(name: r'name', required: true, includeIfNull: false) final String name; - /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. @JsonKey(name: r'platform', required: false, includeIfNull: false) final String? platform; diff --git a/vrchat_dart_generated/lib/src/model/current_user.dart b/vrchat_dart_generated/lib/src/model/current_user.dart index b9b71dae..8124dc50 100644 --- a/vrchat_dart_generated/lib/src/model/current_user.dart +++ b/vrchat_dart_generated/lib/src/model/current_user.dart @@ -334,7 +334,7 @@ class CurrentUser { @JsonKey(name: r'last_mobile', required: true, includeIfNull: true) final DateTime? lastMobile; - /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. @JsonKey(name: r'last_platform', required: true, includeIfNull: false) final String lastPlatform; diff --git a/vrchat_dart_generated/lib/src/model/current_user_platform_history_inner.dart b/vrchat_dart_generated/lib/src/model/current_user_platform_history_inner.dart index 2d6c88e8..868c747e 100644 --- a/vrchat_dart_generated/lib/src/model/current_user_platform_history_inner.dart +++ b/vrchat_dart_generated/lib/src/model/current_user_platform_history_inner.dart @@ -27,7 +27,7 @@ class CurrentUserPlatformHistoryInner { @JsonKey(name: r'isMobile', required: false, includeIfNull: false) final bool? isMobile; - /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. @JsonKey(name: r'platform', required: false, includeIfNull: false) final String? platform; 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 2d7b51cc..6e7f2911 100644 --- a/vrchat_dart_generated/lib/src/model/current_user_presence.dart +++ b/vrchat_dart_generated/lib/src/model/current_user_presence.dart @@ -79,7 +79,7 @@ class CurrentUserPresence { @JsonKey(name: r'isRejoining', required: false, includeIfNull: false) final String? isRejoining; - /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. @JsonKey(name: r'platform', required: false, includeIfNull: false) final String? platform; diff --git a/vrchat_dart_generated/lib/src/model/decline_group_invite_request.dart b/vrchat_dart_generated/lib/src/model/decline_group_invite_request.dart new file mode 100644 index 00000000..f5dcc816 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/decline_group_invite_request.dart @@ -0,0 +1,41 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'decline_group_invite_request.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class DeclineGroupInviteRequest { + /// Returns a new [DeclineGroupInviteRequest] instance. + DeclineGroupInviteRequest({this.block = false}); + + @JsonKey(name: r'block', required: false, includeIfNull: false) + final bool? block; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is DeclineGroupInviteRequest && other.block == block; + + @override + int get hashCode => block.hashCode; + + factory DeclineGroupInviteRequest.fromJson(Map json) => + _$DeclineGroupInviteRequestFromJson(json); + + Map toJson() => _$DeclineGroupInviteRequestToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/decline_group_invite_request.g.dart b/vrchat_dart_generated/lib/src/model/decline_group_invite_request.g.dart new file mode 100644 index 00000000..e1988c0e --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/decline_group_invite_request.g.dart @@ -0,0 +1,22 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'decline_group_invite_request.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +DeclineGroupInviteRequest _$DeclineGroupInviteRequestFromJson( + Map json, +) => $checkedCreate('DeclineGroupInviteRequest', json, ($checkedConvert) { + final val = DeclineGroupInviteRequest( + block: $checkedConvert('block', (v) => v as bool? ?? false), + ); + return val; +}); + +Map _$DeclineGroupInviteRequestToJson( + DeclineGroupInviteRequest instance, +) => {'block': ?instance.block}; 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 e943df0e..66562c37 100644 --- a/vrchat_dart_generated/lib/src/model/dynamic_content_row.dart +++ b/vrchat_dart_generated/lib/src/model/dynamic_content_row.dart @@ -41,7 +41,7 @@ class DynamicContentRow { @JsonKey(name: r'name', required: true, includeIfNull: false) final String name; - /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. @JsonKey(name: r'platform', required: true, includeIfNull: false) final String platform; diff --git a/vrchat_dart_generated/lib/src/model/favorite_group_limits.dart b/vrchat_dart_generated/lib/src/model/favorite_group_limits.dart index 032af04b..e892cb1a 100644 --- a/vrchat_dart_generated/lib/src/model/favorite_group_limits.dart +++ b/vrchat_dart_generated/lib/src/model/favorite_group_limits.dart @@ -21,6 +21,8 @@ class FavoriteGroupLimits { required this.friend, + required this.vrcPlusWorld, + required this.world, }); @@ -30,6 +32,9 @@ class FavoriteGroupLimits { @JsonKey(name: r'friend', required: true, includeIfNull: false) final int friend; + @JsonKey(name: r'vrcPlusWorld', required: true, includeIfNull: false) + final int vrcPlusWorld; + @JsonKey(name: r'world', required: true, includeIfNull: false) final int world; @@ -39,10 +44,15 @@ class FavoriteGroupLimits { other is FavoriteGroupLimits && other.avatar == avatar && other.friend == friend && + other.vrcPlusWorld == vrcPlusWorld && other.world == world; @override - int get hashCode => avatar.hashCode + friend.hashCode + world.hashCode; + int get hashCode => + avatar.hashCode + + friend.hashCode + + vrcPlusWorld.hashCode + + world.hashCode; factory FavoriteGroupLimits.fromJson(Map json) => _$FavoriteGroupLimitsFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/favorite_group_limits.g.dart b/vrchat_dart_generated/lib/src/model/favorite_group_limits.g.dart index 2637433b..c5b290d7 100644 --- a/vrchat_dart_generated/lib/src/model/favorite_group_limits.g.dart +++ b/vrchat_dart_generated/lib/src/model/favorite_group_limits.g.dart @@ -10,10 +10,17 @@ part of 'favorite_group_limits.dart'; FavoriteGroupLimits _$FavoriteGroupLimitsFromJson(Map json) => $checkedCreate('FavoriteGroupLimits', json, ($checkedConvert) { - $checkKeys(json, requiredKeys: const ['avatar', 'friend', 'world']); + $checkKeys( + json, + requiredKeys: const ['avatar', 'friend', 'vrcPlusWorld', 'world'], + ); final val = FavoriteGroupLimits( avatar: $checkedConvert('avatar', (v) => (v as num).toInt()), friend: $checkedConvert('friend', (v) => (v as num).toInt()), + vrcPlusWorld: $checkedConvert( + 'vrcPlusWorld', + (v) => (v as num).toInt(), + ), world: $checkedConvert('world', (v) => (v as num).toInt()), ); return val; @@ -24,5 +31,6 @@ Map _$FavoriteGroupLimitsToJson( ) => { 'avatar': instance.avatar, 'friend': instance.friend, + 'vrcPlusWorld': instance.vrcPlusWorld, 'world': instance.world, }; diff --git a/vrchat_dart_generated/lib/src/model/file.dart b/vrchat_dart_generated/lib/src/model/file.dart index dab96994..0adc89d9 100644 --- a/vrchat_dart_generated/lib/src/model/file.dart +++ b/vrchat_dart_generated/lib/src/model/file.dart @@ -3,8 +3,11 @@ // // ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/image_mask.dart'; import 'package:vrchat_dart_generated/src/model/file_version.dart'; +import 'package:vrchat_dart_generated/src/model/image_loop_style.dart'; import 'package:vrchat_dart_generated/src/model/mime_type.dart'; +import 'package:vrchat_dart_generated/src/model/image_animation_style.dart'; import 'package:json_annotation/json_annotation.dart'; @@ -23,12 +26,20 @@ class File { required this.extension_, + this.frames, + + this.framesOverTime, + required this.id, + this.loopStyle, + this.maskTag, required this.mimeType, + this.modifiedThumbnailFileName, + required this.name, required this.ownerId, @@ -39,20 +50,42 @@ class File { }); @JsonKey(name: r'animationStyle', required: false, includeIfNull: false) - final String? animationStyle; + final ImageAnimationStyle? animationStyle; @JsonKey(name: r'extension', required: true, includeIfNull: false) final String extension_; + /// The number of frames for animated spritesheet images. + // minimum: 2 + // maximum: 64 + @JsonKey(name: r'frames', required: false, includeIfNull: false) + final int? frames; + + /// The frames per second for animated spritesheet images. + // minimum: 1 + // maximum: 64 + @JsonKey(name: r'framesOverTime', required: false, includeIfNull: false) + final int? framesOverTime; + @JsonKey(name: r'id', required: true, includeIfNull: false) final String id; + @JsonKey(name: r'loopStyle', required: false, includeIfNull: false) + final ImageLoopStyle? loopStyle; + @JsonKey(name: r'maskTag', required: false, includeIfNull: false) - final String? maskTag; + final ImageMask? maskTag; @JsonKey(name: r'mimeType', required: true, includeIfNull: false) final MIMEType mimeType; + @JsonKey( + name: r'modifiedThumbnailFileName', + required: false, + includeIfNull: false, + ) + final String? modifiedThumbnailFileName; + /// @JsonKey(name: r'name', required: true, includeIfNull: false) final String name; @@ -75,9 +108,13 @@ class File { other is File && other.animationStyle == animationStyle && other.extension_ == extension_ && + other.frames == frames && + other.framesOverTime == framesOverTime && other.id == id && + other.loopStyle == loopStyle && other.maskTag == maskTag && other.mimeType == mimeType && + other.modifiedThumbnailFileName == modifiedThumbnailFileName && other.name == name && other.ownerId == ownerId && other.tags == tags && @@ -87,9 +124,13 @@ class File { int get hashCode => animationStyle.hashCode + extension_.hashCode + + frames.hashCode + + framesOverTime.hashCode + id.hashCode + + loopStyle.hashCode + maskTag.hashCode + mimeType.hashCode + + modifiedThumbnailFileName.hashCode + name.hashCode + ownerId.hashCode + tags.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/file.g.dart b/vrchat_dart_generated/lib/src/model/file.g.dart index ff4bc019..a225a1d1 100644 --- a/vrchat_dart_generated/lib/src/model/file.g.dart +++ b/vrchat_dart_generated/lib/src/model/file.g.dart @@ -23,14 +23,33 @@ File _$FileFromJson(Map json) => ], ); final val = File( - animationStyle: $checkedConvert('animationStyle', (v) => v as String?), + animationStyle: $checkedConvert( + 'animationStyle', + (v) => $enumDecodeNullable(_$ImageAnimationStyleEnumMap, v), + ), extension_: $checkedConvert('extension', (v) => v as String), + frames: $checkedConvert('frames', (v) => (v as num?)?.toInt()), + framesOverTime: $checkedConvert( + 'framesOverTime', + (v) => (v as num?)?.toInt(), + ), id: $checkedConvert('id', (v) => v as String), - maskTag: $checkedConvert('maskTag', (v) => v as String?), + loopStyle: $checkedConvert( + 'loopStyle', + (v) => $enumDecodeNullable(_$ImageLoopStyleEnumMap, v), + ), + maskTag: $checkedConvert( + 'maskTag', + (v) => $enumDecodeNullable(_$ImageMaskEnumMap, v), + ), mimeType: $checkedConvert( 'mimeType', (v) => $enumDecode(_$MIMETypeEnumMap, v), ), + modifiedThumbnailFileName: $checkedConvert( + 'modifiedThumbnailFileName', + (v) => v as String?, + ), name: $checkedConvert('name', (v) => v as String), ownerId: $checkedConvert('ownerId', (v) => v as String), tags: $checkedConvert( @@ -48,17 +67,65 @@ File _$FileFromJson(Map json) => }, fieldKeyMap: const {'extension_': 'extension'}); Map _$FileToJson(File instance) => { - 'animationStyle': ?instance.animationStyle, + 'animationStyle': ?_$ImageAnimationStyleEnumMap[instance.animationStyle], 'extension': instance.extension_, + 'frames': ?instance.frames, + 'framesOverTime': ?instance.framesOverTime, 'id': instance.id, - 'maskTag': ?instance.maskTag, + 'loopStyle': ?_$ImageLoopStyleEnumMap[instance.loopStyle], + 'maskTag': ?_$ImageMaskEnumMap[instance.maskTag], 'mimeType': _$MIMETypeEnumMap[instance.mimeType]!, + 'modifiedThumbnailFileName': ?instance.modifiedThumbnailFileName, 'name': instance.name, 'ownerId': instance.ownerId, 'tags': instance.tags, 'versions': instance.versions.map((e) => e.toJson()).toList(), }; +const _$ImageAnimationStyleEnumMap = { + ImageAnimationStyle.aura: 'aura', + ImageAnimationStyle.bats: 'bats', + ImageAnimationStyle.bees: 'bees', + ImageAnimationStyle.bounce: 'bounce', + ImageAnimationStyle.cloud: 'cloud', + ImageAnimationStyle.confetti: 'confetti', + ImageAnimationStyle.crying: 'crying', + ImageAnimationStyle.dislike: 'dislike', + ImageAnimationStyle.fire: 'fire', + ImageAnimationStyle.idea: 'idea', + ImageAnimationStyle.lasers: 'lasers', + ImageAnimationStyle.like: 'like', + ImageAnimationStyle.magnet: 'magnet', + ImageAnimationStyle.mistletoe: 'mistletoe', + ImageAnimationStyle.money: 'money', + ImageAnimationStyle.noise: 'noise', + ImageAnimationStyle.orbit: 'orbit', + ImageAnimationStyle.pizza: 'pizza', + ImageAnimationStyle.rain: 'rain', + ImageAnimationStyle.rotate: 'rotate', + ImageAnimationStyle.shake: 'shake', + ImageAnimationStyle.snow: 'snow', + ImageAnimationStyle.snowball: 'snowball', + ImageAnimationStyle.spin: 'spin', + ImageAnimationStyle.splash: 'splash', + ImageAnimationStyle.stop: 'stop', + ImageAnimationStyle.zzz: 'zzz', +}; + +const _$ImageLoopStyleEnumMap = { + ImageLoopStyle.linear: 'linear', + ImageLoopStyle.pingpong: 'pingpong', +}; + +const _$ImageMaskEnumMap = { + ImageMask.circle: 'circle', + ImageMask.flower: 'flower', + ImageMask.heart: 'heart', + ImageMask.pow: 'pow', + ImageMask.square: 'square', + ImageMask.star: 'star', +}; + const _$MIMETypeEnumMap = { MIMEType.applicationSlashGzip: 'application/gzip', MIMEType.applicationSlashOctetStream: 'application/octet-stream', diff --git a/vrchat_dart_generated/lib/src/model/group_gallery_file_order.dart b/vrchat_dart_generated/lib/src/model/group_gallery_file_order.dart new file mode 100644 index 00000000..769a5b93 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/group_gallery_file_order.dart @@ -0,0 +1,41 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'group_gallery_file_order.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class GroupGalleryFileOrder { + /// Returns a new [GroupGalleryFileOrder] instance. + GroupGalleryFileOrder({required this.ids}); + + @JsonKey(name: r'ids', required: true, includeIfNull: false) + final List ids; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is GroupGalleryFileOrder && other.ids == ids; + + @override + int get hashCode => ids.hashCode; + + factory GroupGalleryFileOrder.fromJson(Map json) => + _$GroupGalleryFileOrderFromJson(json); + + Map toJson() => _$GroupGalleryFileOrderToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/group_gallery_file_order.g.dart b/vrchat_dart_generated/lib/src/model/group_gallery_file_order.g.dart new file mode 100644 index 00000000..31f006a3 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/group_gallery_file_order.g.dart @@ -0,0 +1,26 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'group_gallery_file_order.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +GroupGalleryFileOrder _$GroupGalleryFileOrderFromJson( + Map json, +) => $checkedCreate('GroupGalleryFileOrder', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['ids']); + final val = GroupGalleryFileOrder( + ids: $checkedConvert( + 'ids', + (v) => (v as List).map((e) => e as String).toList(), + ), + ); + return val; +}); + +Map _$GroupGalleryFileOrderToJson( + GroupGalleryFileOrder instance, +) => {'ids': instance.ids}; diff --git a/vrchat_dart_generated/lib/src/model/group_gallery_file_order_request.dart b/vrchat_dart_generated/lib/src/model/group_gallery_file_order_request.dart new file mode 100644 index 00000000..c6390e7f --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/group_gallery_file_order_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 'group_gallery_file_order_request.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class GroupGalleryFileOrderRequest { + /// Returns a new [GroupGalleryFileOrderRequest] instance. + GroupGalleryFileOrderRequest({required this.galleryId, required this.ids}); + + @JsonKey(name: r'galleryId', required: true, includeIfNull: false) + final String galleryId; + + @JsonKey(name: r'ids', required: true, includeIfNull: false) + final List ids; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is GroupGalleryFileOrderRequest && + other.galleryId == galleryId && + other.ids == ids; + + @override + int get hashCode => galleryId.hashCode + ids.hashCode; + + factory GroupGalleryFileOrderRequest.fromJson(Map json) => + _$GroupGalleryFileOrderRequestFromJson(json); + + Map toJson() => _$GroupGalleryFileOrderRequestToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/group_gallery_file_order_request.g.dart b/vrchat_dart_generated/lib/src/model/group_gallery_file_order_request.g.dart new file mode 100644 index 00000000..b0735ad4 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/group_gallery_file_order_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 'group_gallery_file_order_request.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +GroupGalleryFileOrderRequest _$GroupGalleryFileOrderRequestFromJson( + Map json, +) => $checkedCreate('GroupGalleryFileOrderRequest', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['galleryId', 'ids']); + final val = GroupGalleryFileOrderRequest( + galleryId: $checkedConvert('galleryId', (v) => v as String), + ids: $checkedConvert( + 'ids', + (v) => (v as List).map((e) => e as String).toList(), + ), + ); + return val; +}); + +Map _$GroupGalleryFileOrderRequestToJson( + GroupGalleryFileOrderRequest instance, +) => {'galleryId': instance.galleryId, 'ids': instance.ids}; diff --git a/vrchat_dart_generated/lib/src/model/group_transferable.dart b/vrchat_dart_generated/lib/src/model/group_transferable.dart new file mode 100644 index 00000000..7606bbb6 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/group_transferable.dart @@ -0,0 +1,42 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/group_transferable_requirements.dart'; + +import 'package:json_annotation/json_annotation.dart'; + +part 'group_transferable.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class GroupTransferable { + /// Returns a new [GroupTransferable] instance. + GroupTransferable({required this.requirements}); + + @JsonKey(name: r'requirements', required: true, includeIfNull: false) + final GroupTransferableRequirements requirements; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is GroupTransferable && other.requirements == requirements; + + @override + int get hashCode => requirements.hashCode; + + factory GroupTransferable.fromJson(Map json) => + _$GroupTransferableFromJson(json); + + Map toJson() => _$GroupTransferableToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/group_transferable.g.dart b/vrchat_dart_generated/lib/src/model/group_transferable.g.dart new file mode 100644 index 00000000..2de09dc0 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/group_transferable.g.dart @@ -0,0 +1,25 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'group_transferable.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +GroupTransferable _$GroupTransferableFromJson(Map json) => + $checkedCreate('GroupTransferable', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['requirements']); + final val = GroupTransferable( + requirements: $checkedConvert( + 'requirements', + (v) => + GroupTransferableRequirements.fromJson(v as Map), + ), + ); + return val; + }); + +Map _$GroupTransferableToJson(GroupTransferable instance) => + {'requirements': instance.requirements.toJson()}; diff --git a/vrchat_dart_generated/lib/src/model/group_transferable_requirements.dart b/vrchat_dart_generated/lib/src/model/group_transferable_requirements.dart new file mode 100644 index 00000000..fc690637 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/group_transferable_requirements.dart @@ -0,0 +1,77 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'group_transferable_requirements.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class GroupTransferableRequirements { + /// Returns a new [GroupTransferableRequirements] instance. + GroupTransferableRequirements({ + this.groupNotMonetized = false, + + this.hasVRCPlus = false, + + this.hasVerifiedEmail = false, + + this.targetCanOwnMoreGroups = false, + + this.targetIsGroupMember = false, + }); + + @JsonKey(name: r'groupNotMonetized', required: true, includeIfNull: false) + final bool groupNotMonetized; + + @JsonKey(name: r'hasVRCPlus', required: true, includeIfNull: false) + final bool hasVRCPlus; + + @JsonKey(name: r'hasVerifiedEmail', required: true, includeIfNull: false) + final bool hasVerifiedEmail; + + @JsonKey( + name: r'targetCanOwnMoreGroups', + required: true, + includeIfNull: false, + ) + final bool targetCanOwnMoreGroups; + + @JsonKey(name: r'targetIsGroupMember', required: true, includeIfNull: false) + final bool targetIsGroupMember; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is GroupTransferableRequirements && + other.groupNotMonetized == groupNotMonetized && + other.hasVRCPlus == hasVRCPlus && + other.hasVerifiedEmail == hasVerifiedEmail && + other.targetCanOwnMoreGroups == targetCanOwnMoreGroups && + other.targetIsGroupMember == targetIsGroupMember; + + @override + int get hashCode => + groupNotMonetized.hashCode + + hasVRCPlus.hashCode + + hasVerifiedEmail.hashCode + + targetCanOwnMoreGroups.hashCode + + targetIsGroupMember.hashCode; + + factory GroupTransferableRequirements.fromJson(Map json) => + _$GroupTransferableRequirementsFromJson(json); + + Map toJson() => _$GroupTransferableRequirementsToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/group_transferable_requirements.g.dart b/vrchat_dart_generated/lib/src/model/group_transferable_requirements.g.dart new file mode 100644 index 00000000..788b8c21 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/group_transferable_requirements.g.dart @@ -0,0 +1,54 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'group_transferable_requirements.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +GroupTransferableRequirements _$GroupTransferableRequirementsFromJson( + Map json, +) => $checkedCreate('GroupTransferableRequirements', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + 'groupNotMonetized', + 'hasVRCPlus', + 'hasVerifiedEmail', + 'targetCanOwnMoreGroups', + 'targetIsGroupMember', + ], + ); + final val = GroupTransferableRequirements( + groupNotMonetized: $checkedConvert( + 'groupNotMonetized', + (v) => v as bool? ?? false, + ), + hasVRCPlus: $checkedConvert('hasVRCPlus', (v) => v as bool? ?? false), + hasVerifiedEmail: $checkedConvert( + 'hasVerifiedEmail', + (v) => v as bool? ?? false, + ), + targetCanOwnMoreGroups: $checkedConvert( + 'targetCanOwnMoreGroups', + (v) => v as bool? ?? false, + ), + targetIsGroupMember: $checkedConvert( + 'targetIsGroupMember', + (v) => v as bool? ?? false, + ), + ); + return val; +}); + +Map _$GroupTransferableRequirementsToJson( + GroupTransferableRequirements instance, +) => { + 'groupNotMonetized': instance.groupNotMonetized, + 'hasVRCPlus': instance.hasVRCPlus, + 'hasVerifiedEmail': instance.hasVerifiedEmail, + 'targetCanOwnMoreGroups': instance.targetCanOwnMoreGroups, + 'targetIsGroupMember': instance.targetIsGroupMember, +}; diff --git a/vrchat_dart_generated/lib/src/model/image_animation_style.dart b/vrchat_dart_generated/lib/src/model/image_animation_style.dart new file mode 100644 index 00000000..8f61af20 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/image_animation_style.dart @@ -0,0 +1,124 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:json_annotation/json_annotation.dart'; + +/// Animation style for images. +enum ImageAnimationStyle { + /// Animation style for images. + @JsonValue(r'aura') + aura(r'aura'), + + /// Animation style for images. + @JsonValue(r'bats') + bats(r'bats'), + + /// Animation style for images. + @JsonValue(r'bees') + bees(r'bees'), + + /// Animation style for images. + @JsonValue(r'bounce') + bounce(r'bounce'), + + /// Animation style for images. + @JsonValue(r'cloud') + cloud(r'cloud'), + + /// Animation style for images. + @JsonValue(r'confetti') + confetti(r'confetti'), + + /// Animation style for images. + @JsonValue(r'crying') + crying(r'crying'), + + /// Animation style for images. + @JsonValue(r'dislike') + dislike(r'dislike'), + + /// Animation style for images. + @JsonValue(r'fire') + fire(r'fire'), + + /// Animation style for images. + @JsonValue(r'idea') + idea(r'idea'), + + /// Animation style for images. + @JsonValue(r'lasers') + lasers(r'lasers'), + + /// Animation style for images. + @JsonValue(r'like') + like(r'like'), + + /// Animation style for images. + @JsonValue(r'magnet') + magnet(r'magnet'), + + /// Animation style for images. + @JsonValue(r'mistletoe') + mistletoe(r'mistletoe'), + + /// Animation style for images. + @JsonValue(r'money') + money(r'money'), + + /// Animation style for images. + @JsonValue(r'noise') + noise(r'noise'), + + /// Animation style for images. + @JsonValue(r'orbit') + orbit(r'orbit'), + + /// Animation style for images. + @JsonValue(r'pizza') + pizza(r'pizza'), + + /// Animation style for images. + @JsonValue(r'rain') + rain(r'rain'), + + /// Animation style for images. + @JsonValue(r'rotate') + rotate(r'rotate'), + + /// Animation style for images. + @JsonValue(r'shake') + shake(r'shake'), + + /// Animation style for images. + @JsonValue(r'snow') + snow(r'snow'), + + /// Animation style for images. + @JsonValue(r'snowball') + snowball(r'snowball'), + + /// Animation style for images. + @JsonValue(r'spin') + spin(r'spin'), + + /// Animation style for images. + @JsonValue(r'splash') + splash(r'splash'), + + /// Animation style for images. + @JsonValue(r'stop') + stop(r'stop'), + + /// Animation style for images. + @JsonValue(r'zzz') + zzz(r'zzz'); + + const ImageAnimationStyle(this.value); + + final String value; + + @override + String toString() => value; +} diff --git a/vrchat_dart_generated/lib/src/model/image_loop_style.dart b/vrchat_dart_generated/lib/src/model/image_loop_style.dart new file mode 100644 index 00000000..832722d2 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/image_loop_style.dart @@ -0,0 +1,24 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:json_annotation/json_annotation.dart'; + +/// Animation looping style for images. +enum ImageLoopStyle { + /// Animation looping style for images. + @JsonValue(r'linear') + linear(r'linear'), + + /// Animation looping style for images. + @JsonValue(r'pingpong') + pingpong(r'pingpong'); + + const ImageLoopStyle(this.value); + + final String value; + + @override + String toString() => value; +} diff --git a/vrchat_dart_generated/lib/src/model/image_mask.dart b/vrchat_dart_generated/lib/src/model/image_mask.dart new file mode 100644 index 00000000..1c5d773c --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/image_mask.dart @@ -0,0 +1,40 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:json_annotation/json_annotation.dart'; + +/// Mask shape for images. +enum ImageMask { + /// Mask shape for images. + @JsonValue(r'circle') + circle(r'circle'), + + /// Mask shape for images. + @JsonValue(r'flower') + flower(r'flower'), + + /// Mask shape for images. + @JsonValue(r'heart') + heart(r'heart'), + + /// Mask shape for images. + @JsonValue(r'pow') + pow(r'pow'), + + /// Mask shape for images. + @JsonValue(r'square') + square(r'square'), + + /// Mask shape for images. + @JsonValue(r'star') + star(r'star'); + + const ImageMask(this.value); + + final String value; + + @override + String toString() => value; +} diff --git a/vrchat_dart_generated/lib/src/model/image_purpose.dart b/vrchat_dart_generated/lib/src/model/image_purpose.dart new file mode 100644 index 00000000..294df8bc --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/image_purpose.dart @@ -0,0 +1,60 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:json_annotation/json_annotation.dart'; + +/// Indication of the purpose for uploading images. +enum ImagePurpose { + /// Indication of the purpose for uploading images. + @JsonValue(r'admin') + admin(r'admin'), + + /// Indication of the purpose for uploading images. + @JsonValue(r'avatargallery') + avatargallery(r'avatargallery'), + + /// Indication of the purpose for uploading images. + @JsonValue(r'avatarimage') + avatarimage(r'avatarimage'), + + /// Indication of the purpose for uploading images. + @JsonValue(r'bundle') + bundle(r'bundle'), + + /// Indication of the purpose for uploading images. + @JsonValue(r'emoji') + emoji(r'emoji'), + + /// Indication of the purpose for uploading images. + @JsonValue(r'emojianimated') + emojianimated(r'emojianimated'), + + /// Indication of the purpose for uploading images. + @JsonValue(r'gallery') + gallery(r'gallery'), + + /// Indication of the purpose for uploading images. + @JsonValue(r'icon') + icon(r'icon'), + + /// Indication of the purpose for uploading images. + @JsonValue(r'listinggallery') + listinggallery(r'listinggallery'), + + /// Indication of the purpose for uploading images. + @JsonValue(r'product') + product(r'product'), + + /// Indication of the purpose for uploading images. + @JsonValue(r'sticker') + sticker(r'sticker'); + + const ImagePurpose(this.value); + + final String value; + + @override + String toString() => value; +} diff --git a/vrchat_dart_generated/lib/src/model/join_group_request.dart b/vrchat_dart_generated/lib/src/model/join_group_request.dart new file mode 100644 index 00000000..8d0ef9c4 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/join_group_request.dart @@ -0,0 +1,41 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'join_group_request.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class JoinGroupRequest { + /// Returns a new [JoinGroupRequest] instance. + JoinGroupRequest({this.inviteId}); + + @JsonKey(name: r'inviteId', required: false, includeIfNull: false) + final String? inviteId; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is JoinGroupRequest && other.inviteId == inviteId; + + @override + int get hashCode => inviteId.hashCode; + + factory JoinGroupRequest.fromJson(Map json) => + _$JoinGroupRequestFromJson(json); + + Map toJson() => _$JoinGroupRequestToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/join_group_request.g.dart b/vrchat_dart_generated/lib/src/model/join_group_request.g.dart new file mode 100644 index 00000000..2906eb6f --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/join_group_request.g.dart @@ -0,0 +1,20 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'join_group_request.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +JoinGroupRequest _$JoinGroupRequestFromJson(Map json) => + $checkedCreate('JoinGroupRequest', json, ($checkedConvert) { + final val = JoinGroupRequest( + inviteId: $checkedConvert('inviteId', (v) => v as String?), + ); + return val; + }); + +Map _$JoinGroupRequestToJson(JoinGroupRequest instance) => + {'inviteId': ?instance.inviteId}; diff --git a/vrchat_dart_generated/lib/src/model/limited_unity_package.dart b/vrchat_dart_generated/lib/src/model/limited_unity_package.dart index 2aca8405..4a2964db 100644 --- a/vrchat_dart_generated/lib/src/model/limited_unity_package.dart +++ b/vrchat_dart_generated/lib/src/model/limited_unity_package.dart @@ -27,7 +27,7 @@ class LimitedUnityPackage { @JsonKey(name: r'created_at', required: true, includeIfNull: true) final DateTime? createdAt; - /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. @JsonKey(name: r'platform', required: true, includeIfNull: false) final String platform; 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 13734fec..e91b6156 100644 --- a/vrchat_dart_generated/lib/src/model/limited_user_friend.dart +++ b/vrchat_dart_generated/lib/src/model/limited_user_friend.dart @@ -120,7 +120,7 @@ class LimitedUserFriend { @JsonKey(name: r'last_mobile', required: true, includeIfNull: true) final DateTime? lastMobile; - /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. @JsonKey(name: r'last_platform', required: true, includeIfNull: false) final String lastPlatform; diff --git a/vrchat_dart_generated/lib/src/model/limited_user_instance.dart b/vrchat_dart_generated/lib/src/model/limited_user_instance.dart index 7574c57d..90b9f815 100644 --- a/vrchat_dart_generated/lib/src/model/limited_user_instance.dart +++ b/vrchat_dart_generated/lib/src/model/limited_user_instance.dart @@ -136,11 +136,11 @@ class LimitedUserInstance { @JsonKey(name: r'last_mobile', required: false, includeIfNull: false) final DateTime? lastMobile; - /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. @JsonKey(name: r'last_platform', required: true, includeIfNull: false) final String lastPlatform; - /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. @JsonKey(name: r'platform', required: false, includeIfNull: false) final String? platform; 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 866f6002..1cc432d4 100644 --- a/vrchat_dart_generated/lib/src/model/limited_user_search.dart +++ b/vrchat_dart_generated/lib/src/model/limited_user_search.dart @@ -87,7 +87,7 @@ class LimitedUserSearch { @JsonKey(name: r'isFriend', required: true, includeIfNull: false) final bool isFriend; - /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. @JsonKey(name: r'last_platform', required: true, includeIfNull: false) final String lastPlatform; diff --git a/vrchat_dart_generated/lib/src/model/notification_detail_request_invite.dart b/vrchat_dart_generated/lib/src/model/notification_detail_request_invite.dart index c3b51d6b..464e1fe5 100644 --- a/vrchat_dart_generated/lib/src/model/notification_detail_request_invite.dart +++ b/vrchat_dart_generated/lib/src/model/notification_detail_request_invite.dart @@ -18,7 +18,7 @@ class NotificationDetailRequestInvite { /// Returns a new [NotificationDetailRequestInvite] instance. NotificationDetailRequestInvite({this.platform, this.requestMessage}); - /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. @JsonKey(name: r'platform', required: false, includeIfNull: false) final String? platform; diff --git a/vrchat_dart_generated/lib/src/model/notification_v2.dart b/vrchat_dart_generated/lib/src/model/notification_v2.dart index e7dc78b5..41201eda 100644 --- a/vrchat_dart_generated/lib/src/model/notification_v2.dart +++ b/vrchat_dart_generated/lib/src/model/notification_v2.dart @@ -5,6 +5,7 @@ // ignore_for_file: unused_element import 'package:vrchat_dart_generated/src/model/notification_v2_type.dart'; import 'package:vrchat_dart_generated/src/model/notification_v2_response.dart'; +import 'package:vrchat_dart_generated/src/model/notification_v2_details_boop.dart'; import 'package:json_annotation/json_annotation.dart'; @@ -27,6 +28,8 @@ class NotificationV2 { required this.data, + this.details, + required this.expiresAt, required this.expiryAfterSeen, @@ -84,7 +87,10 @@ class NotificationV2 { final DateTime createdAt; @JsonKey(name: r'data', required: true, includeIfNull: false) - final Object data; + final Map data; + + @JsonKey(name: r'details', required: false, includeIfNull: false) + final NotificationV2DetailsBoop? details; @JsonKey(name: r'expiresAt', required: true, includeIfNull: false) final DateTime expiresAt; @@ -165,6 +171,7 @@ class NotificationV2 { other.category == category && other.createdAt == createdAt && other.data == data && + other.details == details && other.expiresAt == expiresAt && other.expiryAfterSeen == expiryAfterSeen && other.id == id && @@ -195,6 +202,7 @@ class NotificationV2 { category.hashCode + createdAt.hashCode + data.hashCode + + details.hashCode + expiresAt.hashCode + (expiryAfterSeen == null ? 0 : expiryAfterSeen.hashCode) + id.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/notification_v2.g.dart b/vrchat_dart_generated/lib/src/model/notification_v2.g.dart index 3fac478b..2009737e 100644 --- a/vrchat_dart_generated/lib/src/model/notification_v2.g.dart +++ b/vrchat_dart_generated/lib/src/model/notification_v2.g.dart @@ -46,7 +46,13 @@ NotificationV2 _$NotificationV2FromJson( canDelete: $checkedConvert('canDelete', (v) => v as bool), category: $checkedConvert('category', (v) => v as String), createdAt: $checkedConvert('createdAt', (v) => DateTime.parse(v as String)), - data: $checkedConvert('data', (v) => v as Object), + data: $checkedConvert('data', (v) => Map.from(v as Map)), + details: $checkedConvert( + 'details', + (v) => v == null + ? null + : NotificationV2DetailsBoop.fromJson(v as Map), + ), expiresAt: $checkedConvert('expiresAt', (v) => DateTime.parse(v as String)), expiryAfterSeen: $checkedConvert( 'expiryAfterSeen', @@ -96,6 +102,7 @@ Map _$NotificationV2ToJson(NotificationV2 instance) => 'category': instance.category, 'createdAt': instance.createdAt.toIso8601String(), 'data': instance.data, + 'details': ?instance.details?.toJson(), 'expiresAt': instance.expiresAt.toIso8601String(), 'expiryAfterSeen': instance.expiryAfterSeen, 'id': instance.id, @@ -130,10 +137,13 @@ const _$NotificationV2TypeEnumMap = { NotificationV2Type.economyPeriodReceivedPeriodGift: 'economy.received.gift', NotificationV2Type.eventPeriodAnnouncement: 'event.announcement', NotificationV2Type.groupPeriodAnnouncement: 'group.announcement', + NotificationV2Type.groupPeriodEventPeriodCreated: 'group.event.created', + NotificationV2Type.groupPeriodEventPeriodStarting: 'group.event.starting', NotificationV2Type.groupPeriodInformative: 'group.informative', NotificationV2Type.groupPeriodInvite: 'group.invite', NotificationV2Type.groupPeriodJoinRequest: 'group.joinRequest', NotificationV2Type.groupPeriodPost: 'group.post', + NotificationV2Type.groupPeriodTransfer: 'group.transfer', NotificationV2Type.invitePeriodInstancePeriodContentGated: 'invite.instance.contentGated', NotificationV2Type.moderationPeriodContentrestriction: diff --git a/vrchat_dart_generated/lib/src/model/notification_v2_details_boop.dart b/vrchat_dart_generated/lib/src/model/notification_v2_details_boop.dart new file mode 100644 index 00000000..58c773d0 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/notification_v2_details_boop.dart @@ -0,0 +1,60 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'notification_v2_details_boop.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class NotificationV2DetailsBoop { + /// Returns a new [NotificationV2DetailsBoop] instance. + NotificationV2DetailsBoop({ + required this.emojiId, + + required this.emojiVersion, + + required this.inventoryItemId, + }); + + /// Either a FileID or a string constant for default emojis + @JsonKey(name: r'emojiId', required: true, includeIfNull: false) + final String emojiId; + + @JsonKey(name: r'emojiVersion', required: true, includeIfNull: true) + final int? emojiVersion; + + @JsonKey(name: r'inventoryItemId', required: true, includeIfNull: false) + final String inventoryItemId; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is NotificationV2DetailsBoop && + other.emojiId == emojiId && + other.emojiVersion == emojiVersion && + other.inventoryItemId == inventoryItemId; + + @override + int get hashCode => + emojiId.hashCode + + (emojiVersion == null ? 0 : emojiVersion.hashCode) + + inventoryItemId.hashCode; + + factory NotificationV2DetailsBoop.fromJson(Map json) => + _$NotificationV2DetailsBoopFromJson(json); + + Map toJson() => _$NotificationV2DetailsBoopToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/notification_v2_details_boop.g.dart b/vrchat_dart_generated/lib/src/model/notification_v2_details_boop.g.dart new file mode 100644 index 00000000..6895c187 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/notification_v2_details_boop.g.dart @@ -0,0 +1,32 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'notification_v2_details_boop.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +NotificationV2DetailsBoop _$NotificationV2DetailsBoopFromJson( + Map json, +) => $checkedCreate('NotificationV2DetailsBoop', json, ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const ['emojiId', 'emojiVersion', 'inventoryItemId'], + ); + final val = NotificationV2DetailsBoop( + emojiId: $checkedConvert('emojiId', (v) => v as String), + emojiVersion: $checkedConvert('emojiVersion', (v) => (v as num?)?.toInt()), + inventoryItemId: $checkedConvert('inventoryItemId', (v) => v as String), + ); + return val; +}); + +Map _$NotificationV2DetailsBoopToJson( + NotificationV2DetailsBoop instance, +) => { + 'emojiId': instance.emojiId, + 'emojiVersion': instance.emojiVersion, + 'inventoryItemId': instance.inventoryItemId, +}; diff --git a/vrchat_dart_generated/lib/src/model/notification_v2_type.dart b/vrchat_dart_generated/lib/src/model/notification_v2_type.dart index ad0ce6a1..a5596974 100644 --- a/vrchat_dart_generated/lib/src/model/notification_v2_type.dart +++ b/vrchat_dart_generated/lib/src/model/notification_v2_type.dart @@ -22,6 +22,10 @@ enum NotificationV2Type { eventPeriodAnnouncement(r'event.announcement'), @JsonValue(r'group.announcement') groupPeriodAnnouncement(r'group.announcement'), + @JsonValue(r'group.event.created') + groupPeriodEventPeriodCreated(r'group.event.created'), + @JsonValue(r'group.event.starting') + groupPeriodEventPeriodStarting(r'group.event.starting'), @JsonValue(r'group.informative') groupPeriodInformative(r'group.informative'), @JsonValue(r'group.invite') @@ -30,6 +34,8 @@ enum NotificationV2Type { groupPeriodJoinRequest(r'group.joinRequest'), @JsonValue(r'group.post') groupPeriodPost(r'group.post'), + @JsonValue(r'group.transfer') + groupPeriodTransfer(r'group.transfer'), @JsonValue(r'invite.instance.contentGated') invitePeriodInstancePeriodContentGated(r'invite.instance.contentGated'), @JsonValue(r'moderation.contentrestriction') diff --git a/vrchat_dart_generated/lib/src/model/permission_data.dart b/vrchat_dart_generated/lib/src/model/permission_data.dart index 8a7a676d..7878e4e6 100644 --- a/vrchat_dart_generated/lib/src/model/permission_data.dart +++ b/vrchat_dart_generated/lib/src/model/permission_data.dart @@ -16,17 +16,55 @@ part 'permission_data.g.dart'; ) class PermissionData { /// Returns a new [PermissionData] instance. - PermissionData({this.max}); + PermissionData({ + this.badges, + this.max, + + this.maxFavoriteGroups, + + this.maxFavoritesPerGroup, + + this.tags, + }); + + /// Badges afforded the user by this permission + @JsonKey(name: r'badges', required: false, includeIfNull: false) + final List? badges; + + /// Maximum value afforded the user by this permission @JsonKey(name: r'max', required: false, includeIfNull: false) final int? max; + /// Maximum favorite groups afforded the user by this permission + @JsonKey(name: r'maxFavoriteGroups', required: false, includeIfNull: false) + final Map? maxFavoriteGroups; + + /// Maximum favorites per group afforded the user by this permission + @JsonKey(name: r'maxFavoritesPerGroup', required: false, includeIfNull: false) + final Map? maxFavoritesPerGroup; + + /// Tags afforded the user by this permission + @JsonKey(name: r'tags', required: false, includeIfNull: false) + final List? tags; + @override bool operator ==(Object other) => - identical(this, other) || other is PermissionData && other.max == max; + identical(this, other) || + other is PermissionData && + other.badges == badges && + other.max == max && + other.maxFavoriteGroups == maxFavoriteGroups && + other.maxFavoritesPerGroup == maxFavoritesPerGroup && + other.tags == tags; @override - int get hashCode => max.hashCode; + int get hashCode => + badges.hashCode + + max.hashCode + + maxFavoriteGroups.hashCode + + maxFavoritesPerGroup.hashCode + + tags.hashCode; factory PermissionData.fromJson(Map json) => _$PermissionDataFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/permission_data.g.dart b/vrchat_dart_generated/lib/src/model/permission_data.g.dart index 8b9628cc..3537c270 100644 --- a/vrchat_dart_generated/lib/src/model/permission_data.g.dart +++ b/vrchat_dart_generated/lib/src/model/permission_data.g.dart @@ -11,10 +11,36 @@ part of 'permission_data.dart'; PermissionData _$PermissionDataFromJson(Map json) => $checkedCreate('PermissionData', json, ($checkedConvert) { final val = PermissionData( + badges: $checkedConvert( + 'badges', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), max: $checkedConvert('max', (v) => (v as num?)?.toInt()), + maxFavoriteGroups: $checkedConvert( + 'maxFavoriteGroups', + (v) => (v as Map?)?.map( + (k, e) => MapEntry(k, (e as num).toInt()), + ), + ), + maxFavoritesPerGroup: $checkedConvert( + 'maxFavoritesPerGroup', + (v) => (v as Map?)?.map( + (k, e) => MapEntry(k, (e as num).toInt()), + ), + ), + tags: $checkedConvert( + 'tags', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), ); return val; }); Map _$PermissionDataToJson(PermissionData instance) => - {'max': ?instance.max}; + { + 'badges': ?instance.badges, + 'max': ?instance.max, + 'maxFavoriteGroups': ?instance.maxFavoriteGroups, + 'maxFavoritesPerGroup': ?instance.maxFavoritesPerGroup, + 'tags': ?instance.tags, + }; diff --git a/vrchat_dart_generated/lib/src/model/prop.dart b/vrchat_dart_generated/lib/src/model/prop.dart index a242a4bf..91c29292 100644 --- a/vrchat_dart_generated/lib/src/model/prop.dart +++ b/vrchat_dart_generated/lib/src/model/prop.dart @@ -39,7 +39,7 @@ class Prop { required this.releaseStatus, - this.spawnType = 0, + this.spawnType = 1, required this.tags, @@ -83,6 +83,8 @@ class Prop { @JsonKey(name: r'releaseStatus', required: true, includeIfNull: false) final ReleaseStatus releaseStatus; + /// How a prop is summoned and interacted with. 0: the prop fixed to some surface in the world 1: the prop is a pickup and may be held by users 2: ??? + // minimum: 0 @JsonKey(name: r'spawnType', required: true, includeIfNull: false) final int spawnType; @@ -98,6 +100,8 @@ class Prop { @JsonKey(name: r'unityPackages', required: true, includeIfNull: false) final Set unityPackages; + /// Bitmask for restrictions on what world surfaces a prop may be summoned. 0: no restrictions 1: floors 2: walls 4: ceilings + // minimum: 0 @JsonKey(name: r'worldPlacementMask', required: true, includeIfNull: false) final int worldPlacementMask; diff --git a/vrchat_dart_generated/lib/src/model/prop.g.dart b/vrchat_dart_generated/lib/src/model/prop.g.dart index 5ee094f2..751a6bf1 100644 --- a/vrchat_dart_generated/lib/src/model/prop.g.dart +++ b/vrchat_dart_generated/lib/src/model/prop.g.dart @@ -56,7 +56,7 @@ Prop _$PropFromJson(Map json) => $checkedCreate( 'releaseStatus', (v) => $enumDecode(_$ReleaseStatusEnumMap, v), ), - spawnType: $checkedConvert('spawnType', (v) => (v as num?)?.toInt() ?? 0), + spawnType: $checkedConvert('spawnType', (v) => (v as num?)?.toInt() ?? 1), tags: $checkedConvert( 'tags', (v) => (v as List).map((e) => e as String).toList(), diff --git a/vrchat_dart_generated/lib/src/model/prop_publish_status.dart b/vrchat_dart_generated/lib/src/model/prop_publish_status.dart new file mode 100644 index 00000000..3fa6d318 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/prop_publish_status.dart @@ -0,0 +1,41 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'prop_publish_status.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class PropPublishStatus { + /// Returns a new [PropPublishStatus] instance. + PropPublishStatus({this.canPublish = false}); + + @JsonKey(name: r'canPublish', required: false, includeIfNull: false) + final bool? canPublish; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is PropPublishStatus && other.canPublish == canPublish; + + @override + int get hashCode => canPublish.hashCode; + + factory PropPublishStatus.fromJson(Map json) => + _$PropPublishStatusFromJson(json); + + Map toJson() => _$PropPublishStatusToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/prop_publish_status.g.dart b/vrchat_dart_generated/lib/src/model/prop_publish_status.g.dart new file mode 100644 index 00000000..d2763d5a --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/prop_publish_status.g.dart @@ -0,0 +1,20 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'prop_publish_status.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PropPublishStatus _$PropPublishStatusFromJson(Map json) => + $checkedCreate('PropPublishStatus', json, ($checkedConvert) { + final val = PropPublishStatus( + canPublish: $checkedConvert('canPublish', (v) => v as bool? ?? false), + ); + return val; + }); + +Map _$PropPublishStatusToJson(PropPublishStatus instance) => + {'canPublish': ?instance.canPublish}; diff --git a/vrchat_dart_generated/lib/src/model/prop_unity_package.dart b/vrchat_dart_generated/lib/src/model/prop_unity_package.dart index 36e90758..b65a53ba 100644 --- a/vrchat_dart_generated/lib/src/model/prop_unity_package.dart +++ b/vrchat_dart_generated/lib/src/model/prop_unity_package.dart @@ -37,7 +37,7 @@ class PropUnityPackage { @JsonKey(name: r'assetVersion', required: true, includeIfNull: false) final int assetVersion; - /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. @JsonKey(name: r'platform', required: true, includeIfNull: false) final String platform; diff --git a/vrchat_dart_generated/lib/src/model/search_group_members200_response.dart b/vrchat_dart_generated/lib/src/model/search_group_members200_response.dart new file mode 100644 index 00000000..7b2dd274 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/search_group_members200_response.dart @@ -0,0 +1,48 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/group_member.dart'; + +import 'package:json_annotation/json_annotation.dart'; + +part 'search_group_members200_response.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class SearchGroupMembers200Response { + /// Returns a new [SearchGroupMembers200Response] instance. + SearchGroupMembers200Response({this.results, this.total}); + + @JsonKey(name: r'results', required: false, includeIfNull: false) + final List? results; + + /// Number of members returned + @JsonKey(name: r'total', required: false, includeIfNull: false) + final int? total; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is SearchGroupMembers200Response && + other.results == results && + other.total == total; + + @override + int get hashCode => results.hashCode + total.hashCode; + + factory SearchGroupMembers200Response.fromJson(Map json) => + _$SearchGroupMembers200ResponseFromJson(json); + + Map toJson() => _$SearchGroupMembers200ResponseToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/search_group_members200_response.g.dart b/vrchat_dart_generated/lib/src/model/search_group_members200_response.g.dart new file mode 100644 index 00000000..99896bf6 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/search_group_members200_response.g.dart @@ -0,0 +1,31 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'search_group_members200_response.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +SearchGroupMembers200Response _$SearchGroupMembers200ResponseFromJson( + Map json, +) => $checkedCreate('SearchGroupMembers200Response', json, ($checkedConvert) { + final val = SearchGroupMembers200Response( + results: $checkedConvert( + 'results', + (v) => (v as List?) + ?.map((e) => GroupMember.fromJson(e as Map)) + .toList(), + ), + total: $checkedConvert('total', (v) => (v as num?)?.toInt()), + ); + return val; +}); + +Map _$SearchGroupMembers200ResponseToJson( + SearchGroupMembers200Response instance, +) => { + 'results': ?instance.results?.map((e) => e.toJson()).toList(), + 'total': ?instance.total, +}; diff --git a/vrchat_dart_generated/lib/src/model/sent_notification.dart b/vrchat_dart_generated/lib/src/model/sent_notification.dart index 6d3c8c97..0dbdb55d 100644 --- a/vrchat_dart_generated/lib/src/model/sent_notification.dart +++ b/vrchat_dart_generated/lib/src/model/sent_notification.dart @@ -39,7 +39,7 @@ class SentNotification { final DateTime createdAt; @JsonKey(name: r'details', required: true, includeIfNull: false) - final Object details; + final Map details; @JsonKey(name: r'id', required: true, includeIfNull: false) final String id; diff --git a/vrchat_dart_generated/lib/src/model/sent_notification.g.dart b/vrchat_dart_generated/lib/src/model/sent_notification.g.dart index 6a5e4d22..66ebd980 100644 --- a/vrchat_dart_generated/lib/src/model/sent_notification.g.dart +++ b/vrchat_dart_generated/lib/src/model/sent_notification.g.dart @@ -27,7 +27,10 @@ SentNotification _$SentNotificationFromJson(Map json) => 'created_at', (v) => DateTime.parse(v as String), ), - details: $checkedConvert('details', (v) => v as Object), + details: $checkedConvert( + 'details', + (v) => Map.from(v as Map), + ), id: $checkedConvert('id', (v) => v as String), message: $checkedConvert('message', (v) => v as String), receiverUserId: $checkedConvert('receiverUserId', (v) => v as String), diff --git a/vrchat_dart_generated/lib/src/model/transfer_group_request.dart b/vrchat_dart_generated/lib/src/model/transfer_group_request.dart new file mode 100644 index 00000000..7be3997f --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/transfer_group_request.dart @@ -0,0 +1,43 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'transfer_group_request.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class TransferGroupRequest { + /// Returns a new [TransferGroupRequest] instance. + TransferGroupRequest({this.transferTargetId}); + + /// 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'transferTargetId', required: false, includeIfNull: false) + final String? transferTargetId; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is TransferGroupRequest && + other.transferTargetId == transferTargetId; + + @override + int get hashCode => transferTargetId.hashCode; + + factory TransferGroupRequest.fromJson(Map json) => + _$TransferGroupRequestFromJson(json); + + Map toJson() => _$TransferGroupRequestToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/transfer_group_request.g.dart b/vrchat_dart_generated/lib/src/model/transfer_group_request.g.dart new file mode 100644 index 00000000..6628392d --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/transfer_group_request.g.dart @@ -0,0 +1,22 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'transfer_group_request.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +TransferGroupRequest _$TransferGroupRequestFromJson( + Map json, +) => $checkedCreate('TransferGroupRequest', json, ($checkedConvert) { + final val = TransferGroupRequest( + transferTargetId: $checkedConvert('transferTargetId', (v) => v as String?), + ); + return val; +}); + +Map _$TransferGroupRequestToJson( + TransferGroupRequest instance, +) => {'transferTargetId': ?instance.transferTargetId}; diff --git a/vrchat_dart_generated/lib/src/model/unity_package.dart b/vrchat_dart_generated/lib/src/model/unity_package.dart index 1b61c386..907e5324 100644 --- a/vrchat_dart_generated/lib/src/model/unity_package.dart +++ b/vrchat_dart_generated/lib/src/model/unity_package.dart @@ -76,7 +76,7 @@ class UnityPackage { @JsonKey(name: r'performanceRating', required: false, includeIfNull: false) final PerformanceRatings? performanceRating; - /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. @JsonKey(name: r'platform', required: true, includeIfNull: false) final String platform; diff --git a/vrchat_dart_generated/lib/src/model/update_asset_review_notes_request.dart b/vrchat_dart_generated/lib/src/model/update_asset_review_notes_request.dart new file mode 100644 index 00000000..e596320b --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/update_asset_review_notes_request.dart @@ -0,0 +1,42 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'update_asset_review_notes_request.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class UpdateAssetReviewNotesRequest { + /// Returns a new [UpdateAssetReviewNotesRequest] instance. + UpdateAssetReviewNotesRequest({required this.reviewNotes}); + + @JsonKey(name: r'reviewNotes', required: true, includeIfNull: false) + final String reviewNotes; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is UpdateAssetReviewNotesRequest && + other.reviewNotes == reviewNotes; + + @override + int get hashCode => reviewNotes.hashCode; + + factory UpdateAssetReviewNotesRequest.fromJson(Map json) => + _$UpdateAssetReviewNotesRequestFromJson(json); + + Map toJson() => _$UpdateAssetReviewNotesRequestToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/update_asset_review_notes_request.g.dart b/vrchat_dart_generated/lib/src/model/update_asset_review_notes_request.g.dart new file mode 100644 index 00000000..97b04ec8 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/update_asset_review_notes_request.g.dart @@ -0,0 +1,23 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'update_asset_review_notes_request.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +UpdateAssetReviewNotesRequest _$UpdateAssetReviewNotesRequestFromJson( + Map json, +) => $checkedCreate('UpdateAssetReviewNotesRequest', json, ($checkedConvert) { + $checkKeys(json, requiredKeys: const ['reviewNotes']); + final val = UpdateAssetReviewNotesRequest( + reviewNotes: $checkedConvert('reviewNotes', (v) => v as String), + ); + return val; +}); + +Map _$UpdateAssetReviewNotesRequestToJson( + UpdateAssetReviewNotesRequest instance, +) => {'reviewNotes': instance.reviewNotes}; diff --git a/vrchat_dart_generated/lib/src/model/update_prop_request.dart b/vrchat_dart_generated/lib/src/model/update_prop_request.dart new file mode 100644 index 00000000..209f1a67 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/update_prop_request.dart @@ -0,0 +1,120 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element + +import 'package:json_annotation/json_annotation.dart'; + +part 'update_prop_request.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class UpdatePropRequest { + /// Returns a new [UpdatePropRequest] instance. + UpdatePropRequest({ + this.assetUrl, + + this.assetVersion, + + this.description, + + this.imageUrl, + + this.name, + + this.platform, + + this.propSignature, + + this.spawnType = 1, + + this.tags, + + this.unityVersion, + + this.worldPlacementMask = 1, + }); + + @JsonKey(name: r'assetUrl', required: false, includeIfNull: false) + final String? assetUrl; + + @JsonKey(name: r'assetVersion', required: false, includeIfNull: false) + final int? assetVersion; + + @JsonKey(name: r'description', required: false, includeIfNull: false) + final String? description; + + @JsonKey(name: r'imageUrl', required: false, includeIfNull: false) + final String? imageUrl; + + @JsonKey(name: r'name', required: false, includeIfNull: false) + final String? name; + + /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + @JsonKey(name: r'platform', required: false, includeIfNull: false) + final String? platform; + + @JsonKey(name: r'propSignature', required: false, includeIfNull: false) + final String? propSignature; + + /// How a prop is summoned and interacted with. 0: the prop fixed to some surface in the world 1: the prop is a pickup and may be held by users 2: ??? + // minimum: 0 + @JsonKey(name: r'spawnType', required: false, includeIfNull: false) + final int? spawnType; + + @JsonKey(name: r'tags', required: false, includeIfNull: false) + final List? tags; + + @JsonKey(name: r'unityVersion', required: false, includeIfNull: false) + final String? unityVersion; + + /// Bitmask for restrictions on what world surfaces a prop may be summoned. 0: no restrictions 1: floors 2: walls 4: ceilings + // minimum: 0 + @JsonKey(name: r'worldPlacementMask', required: false, includeIfNull: false) + final int? worldPlacementMask; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is UpdatePropRequest && + other.assetUrl == assetUrl && + other.assetVersion == assetVersion && + other.description == description && + other.imageUrl == imageUrl && + other.name == name && + other.platform == platform && + other.propSignature == propSignature && + other.spawnType == spawnType && + other.tags == tags && + other.unityVersion == unityVersion && + other.worldPlacementMask == worldPlacementMask; + + @override + int get hashCode => + assetUrl.hashCode + + assetVersion.hashCode + + description.hashCode + + imageUrl.hashCode + + name.hashCode + + platform.hashCode + + propSignature.hashCode + + spawnType.hashCode + + tags.hashCode + + unityVersion.hashCode + + worldPlacementMask.hashCode; + + factory UpdatePropRequest.fromJson(Map json) => + _$UpdatePropRequestFromJson(json); + + Map toJson() => _$UpdatePropRequestToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/update_prop_request.g.dart b/vrchat_dart_generated/lib/src/model/update_prop_request.g.dart new file mode 100644 index 00000000..9f1515f3 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/update_prop_request.g.dart @@ -0,0 +1,49 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'update_prop_request.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +UpdatePropRequest _$UpdatePropRequestFromJson( + Map json, +) => $checkedCreate('UpdatePropRequest', json, ($checkedConvert) { + final val = UpdatePropRequest( + assetUrl: $checkedConvert('assetUrl', (v) => v as String?), + assetVersion: $checkedConvert('assetVersion', (v) => (v as num?)?.toInt()), + description: $checkedConvert('description', (v) => v as String?), + imageUrl: $checkedConvert('imageUrl', (v) => v as String?), + name: $checkedConvert('name', (v) => v as String?), + platform: $checkedConvert('platform', (v) => v as String?), + propSignature: $checkedConvert('propSignature', (v) => v as String?), + spawnType: $checkedConvert('spawnType', (v) => (v as num?)?.toInt() ?? 1), + tags: $checkedConvert( + 'tags', + (v) => (v as List?)?.map((e) => e as String).toList(), + ), + unityVersion: $checkedConvert('unityVersion', (v) => v as String?), + worldPlacementMask: $checkedConvert( + 'worldPlacementMask', + (v) => (v as num?)?.toInt() ?? 1, + ), + ); + return val; +}); + +Map _$UpdatePropRequestToJson(UpdatePropRequest instance) => + { + 'assetUrl': ?instance.assetUrl, + 'assetVersion': ?instance.assetVersion, + 'description': ?instance.description, + 'imageUrl': ?instance.imageUrl, + 'name': ?instance.name, + 'platform': ?instance.platform, + 'propSignature': ?instance.propSignature, + 'spawnType': ?instance.spawnType, + 'tags': ?instance.tags, + 'unityVersion': ?instance.unityVersion, + 'worldPlacementMask': ?instance.worldPlacementMask, + }; diff --git a/vrchat_dart_generated/lib/src/model/update_world_request.dart b/vrchat_dart_generated/lib/src/model/update_world_request.dart index 9a1fc7f1..2c3b8253 100644 --- a/vrchat_dart_generated/lib/src/model/update_world_request.dart +++ b/vrchat_dart_generated/lib/src/model/update_world_request.dart @@ -72,7 +72,7 @@ class UpdateWorldRequest { @JsonKey(name: r'name', required: false, includeIfNull: false) final String? name; - /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. @JsonKey(name: r'platform', required: false, includeIfNull: false) final String? platform; diff --git a/vrchat_dart_generated/lib/src/model/user.dart b/vrchat_dart_generated/lib/src/model/user.dart index 68506fa8..fc511d54 100644 --- a/vrchat_dart_generated/lib/src/model/user.dart +++ b/vrchat_dart_generated/lib/src/model/user.dart @@ -171,7 +171,7 @@ class User { @JsonKey(name: r'last_mobile', required: false, includeIfNull: false) final String? lastMobile; - /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + /// This is normally `android`, `ios`, `standalonewindows`, `web`, or the empty value ``, but also supposedly can be any random Unity version such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. @JsonKey(name: r'last_platform', required: true, includeIfNull: false) final String lastPlatform; diff --git a/vrchat_dart_generated/lib/vrchat_dart_generated.dart b/vrchat_dart_generated/lib/vrchat_dart_generated.dart index 7d286420..f9a1e135 100644 --- a/vrchat_dart_generated/lib/vrchat_dart_generated.dart +++ b/vrchat_dart_generated/lib/vrchat_dart_generated.dart @@ -31,6 +31,7 @@ export 'package:vrchat_dart_generated/src/api/worlds_api.dart'; export 'package:vrchat_dart_generated/src/model/api_config.dart'; export 'package:vrchat_dart_generated/src/model/api_config_access_logs_urls.dart'; export 'package:vrchat_dart_generated/src/model/api_config_announcement.dart'; +export 'package:vrchat_dart_generated/src/model/api_config_audio_config.dart'; export 'package:vrchat_dart_generated/src/model/api_config_avatar_perf_limiter.dart'; export 'package:vrchat_dart_generated/src/model/api_config_constants.dart'; export 'package:vrchat_dart_generated/src/model/api_config_constants_groups.dart'; @@ -42,15 +43,9 @@ export 'package:vrchat_dart_generated/src/model/api_config_constants_instancepop export 'package:vrchat_dart_generated/src/model/api_config_constants_language.dart'; export 'package:vrchat_dart_generated/src/model/api_config_download_url_list.dart'; export 'package:vrchat_dart_generated/src/model/api_config_events.dart'; +export 'package:vrchat_dart_generated/src/model/api_config_ios_version.dart'; export 'package:vrchat_dart_generated/src/model/api_config_min_supported_client_build_number.dart'; export 'package:vrchat_dart_generated/src/model/api_config_offline_analysis.dart'; -export 'package:vrchat_dart_generated/src/model/api_config_report_categories.dart'; -export 'package:vrchat_dart_generated/src/model/api_config_report_options.dart'; -export 'package:vrchat_dart_generated/src/model/api_config_report_options_avatar.dart'; -export 'package:vrchat_dart_generated/src/model/api_config_report_options_group.dart'; -export 'package:vrchat_dart_generated/src/model/api_config_report_options_user.dart'; -export 'package:vrchat_dart_generated/src/model/api_config_report_options_world.dart'; -export 'package:vrchat_dart_generated/src/model/api_config_report_reasons.dart'; export 'package:vrchat_dart_generated/src/model/api_health.dart'; export 'package:vrchat_dart_generated/src/model/account_deletion_log.dart'; export 'package:vrchat_dart_generated/src/model/add_favorite_request.dart'; @@ -58,6 +53,10 @@ 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/agreement.dart'; +export 'package:vrchat_dart_generated/src/model/agreement_code.dart'; +export 'package:vrchat_dart_generated/src/model/agreement_request.dart'; +export 'package:vrchat_dart_generated/src/model/agreement_status.dart'; export 'package:vrchat_dart_generated/src/model/avatar.dart'; export 'package:vrchat_dart_generated/src/model/avatar_moderation.dart'; export 'package:vrchat_dart_generated/src/model/avatar_moderation_created.dart'; @@ -93,10 +92,12 @@ export 'package:vrchat_dart_generated/src/model/create_group_post_request.dart'; export 'package:vrchat_dart_generated/src/model/create_group_request.dart'; export 'package:vrchat_dart_generated/src/model/create_group_role_request.dart'; export 'package:vrchat_dart_generated/src/model/create_instance_request.dart'; +export 'package:vrchat_dart_generated/src/model/create_prop_request.dart'; export 'package:vrchat_dart_generated/src/model/create_world_request.dart'; export 'package:vrchat_dart_generated/src/model/current_user.dart'; export 'package:vrchat_dart_generated/src/model/current_user_platform_history_inner.dart'; export 'package:vrchat_dart_generated/src/model/current_user_presence.dart'; +export 'package:vrchat_dart_generated/src/model/decline_group_invite_request.dart'; export 'package:vrchat_dart_generated/src/model/developer_type.dart'; export 'package:vrchat_dart_generated/src/model/disable2_fa_result.dart'; export 'package:vrchat_dart_generated/src/model/discord_details.dart'; @@ -130,6 +131,8 @@ export 'package:vrchat_dart_generated/src/model/group_access_type.dart'; export 'package:vrchat_dart_generated/src/model/group_announcement.dart'; export 'package:vrchat_dart_generated/src/model/group_audit_log_entry.dart'; 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_instance.dart'; export 'package:vrchat_dart_generated/src/model/group_join_request_action.dart'; @@ -149,7 +152,13 @@ export 'package:vrchat_dart_generated/src/model/group_role_template.dart'; export 'package:vrchat_dart_generated/src/model/group_role_template_values.dart'; export 'package:vrchat_dart_generated/src/model/group_role_template_values_roles.dart'; export 'package:vrchat_dart_generated/src/model/group_search_sort.dart'; +export 'package:vrchat_dart_generated/src/model/group_transferable.dart'; +export 'package:vrchat_dart_generated/src/model/group_transferable_requirements.dart'; export 'package:vrchat_dart_generated/src/model/group_user_visibility.dart'; +export 'package:vrchat_dart_generated/src/model/image_animation_style.dart'; +export 'package:vrchat_dart_generated/src/model/image_loop_style.dart'; +export 'package:vrchat_dart_generated/src/model/image_mask.dart'; +export 'package:vrchat_dart_generated/src/model/image_purpose.dart'; export 'package:vrchat_dart_generated/src/model/info_push.dart'; export 'package:vrchat_dart_generated/src/model/info_push_data.dart'; export 'package:vrchat_dart_generated/src/model/info_push_data_article.dart'; @@ -181,6 +190,7 @@ export 'package:vrchat_dart_generated/src/model/invite_request.dart'; export 'package:vrchat_dart_generated/src/model/invite_response.dart'; export 'package:vrchat_dart_generated/src/model/jam.dart'; export 'package:vrchat_dart_generated/src/model/jam_state_change_dates.dart'; +export 'package:vrchat_dart_generated/src/model/join_group_request.dart'; export 'package:vrchat_dart_generated/src/model/license.dart'; export 'package:vrchat_dart_generated/src/model/license_action.dart'; export 'package:vrchat_dart_generated/src/model/license_group.dart'; @@ -205,6 +215,7 @@ export 'package:vrchat_dart_generated/src/model/notification_detail_request_invi export 'package:vrchat_dart_generated/src/model/notification_detail_vote_to_kick.dart'; export 'package:vrchat_dart_generated/src/model/notification_type.dart'; export 'package:vrchat_dart_generated/src/model/notification_v2.dart'; +export 'package:vrchat_dart_generated/src/model/notification_v2_details_boop.dart'; export 'package:vrchat_dart_generated/src/model/notification_v2_response.dart'; export 'package:vrchat_dart_generated/src/model/notification_v2_type.dart'; export 'package:vrchat_dart_generated/src/model/ok_status.dart'; @@ -233,6 +244,7 @@ export 'package:vrchat_dart_generated/src/model/product_purchase.dart'; export 'package:vrchat_dart_generated/src/model/product_purchase_purchase_context.dart'; export 'package:vrchat_dart_generated/src/model/product_type.dart'; export 'package:vrchat_dart_generated/src/model/prop.dart'; +export 'package:vrchat_dart_generated/src/model/prop_publish_status.dart'; export 'package:vrchat_dart_generated/src/model/prop_unity_package.dart'; export 'package:vrchat_dart_generated/src/model/purchase_product_listing_request.dart'; export 'package:vrchat_dart_generated/src/model/region.dart'; @@ -245,6 +257,7 @@ export 'package:vrchat_dart_generated/src/model/request_invite_request.dart'; export 'package:vrchat_dart_generated/src/model/respond_group_join_request.dart'; export 'package:vrchat_dart_generated/src/model/respond_notification_v2_request.dart'; export 'package:vrchat_dart_generated/src/model/response.dart'; +export 'package:vrchat_dart_generated/src/model/search_group_members200_response.dart'; export 'package:vrchat_dart_generated/src/model/sent_notification.dart'; export 'package:vrchat_dart_generated/src/model/service_queue_stats.dart'; export 'package:vrchat_dart_generated/src/model/service_status.dart'; @@ -270,11 +283,13 @@ export 'package:vrchat_dart_generated/src/model/transaction_agreement.dart'; export 'package:vrchat_dart_generated/src/model/transaction_status.dart'; export 'package:vrchat_dart_generated/src/model/transaction_steam_info.dart'; export 'package:vrchat_dart_generated/src/model/transaction_steam_wallet_info.dart'; +export 'package:vrchat_dart_generated/src/model/transfer_group_request.dart'; 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/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'; export 'package:vrchat_dart_generated/src/model/update_calendar_event_request.dart'; export 'package:vrchat_dart_generated/src/model/update_favorite_group_request.dart'; @@ -285,6 +300,7 @@ export 'package:vrchat_dart_generated/src/model/update_group_request.dart'; export 'package:vrchat_dart_generated/src/model/update_group_role_request.dart'; export 'package:vrchat_dart_generated/src/model/update_inventory_item_request.dart'; export 'package:vrchat_dart_generated/src/model/update_invite_message_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_note_request.dart'; diff --git a/vrchat_dart_generated/pubspec.yaml b/vrchat_dart_generated/pubspec.yaml index 1395336a..ea655909 100644 --- a/vrchat_dart_generated/pubspec.yaml +++ b/vrchat_dart_generated/pubspec.yaml @@ -1,5 +1,5 @@ name: vrchat_dart_generated -version: 1.20.6 +version: 1.20.7 description: The generated API used by vrchat_dart. Generated from https://github.com/vrchatapi/specification. homepage: https://github.com/vrchatapi/vrchatapi-dart