diff --git a/vrchat_dart/lib/src/convenience/user_extensions.dart b/vrchat_dart/lib/src/convenience/user_extensions.dart index 5e51c2a..f7b0416 100644 --- a/vrchat_dart/lib/src/convenience/user_extensions.dart +++ b/vrchat_dart/lib/src/convenience/user_extensions.dart @@ -5,9 +5,7 @@ extension CurrentUserExtension on CurrentUser { /// Convert a [CurrentUser] to a [User] User toUser() { final currentUserJson = toJson(); - currentUserJson['friendRequestStatus'] = ''; currentUserJson['last_activity'] = ''; - currentUserJson['platform'] = ''; return User.fromJson(currentUserJson); } @@ -23,7 +21,8 @@ extension UserExtension on User { /// Convert a [User] to a [LimitedUser] LimitedUser toLimitedUser() { final userJson = toJson(); - userJson['fallbackAvatar'] = ''; + userJson['last_login'] = + lastLogin.isNotEmpty ? DateTime.parse(lastLogin) : null; return LimitedUser.fromJson(userJson); } } diff --git a/vrchat_dart/pubspec.yaml b/vrchat_dart/pubspec.yaml index 4113038..bafa1d0 100644 --- a/vrchat_dart/pubspec.yaml +++ b/vrchat_dart/pubspec.yaml @@ -22,3 +22,4 @@ dev_dependencies: yaml: ^3.1.1 fixer: ^0.1.0 path: ^1.9.0 + recase: ^4.1.0 diff --git a/vrchat_dart/tool/patch_output.dart b/vrchat_dart/tool/patch_output.dart index 7485db2..69fb72f 100644 --- a/vrchat_dart/tool/patch_output.dart +++ b/vrchat_dart/tool/patch_output.dart @@ -3,6 +3,7 @@ import 'dart:io'; import 'package:fixer/fixer.dart'; import 'package:path/path.dart' as path; +import 'package:recase/recase.dart'; void main() async { final spec = @@ -100,11 +101,59 @@ void patchApi() { } void patchAnalysisIssues() { + // Map of file path to set of identifiers with issues + final identifierIssues = >{}; + fix( { 'deprecated_member_use_from_same_package': (_, line) => '// ignore: deprecated_member_use_from_same_package\n$line', + 'non_constant_identifier_names': (diagnostic, line) { + final fieldMatch = RegExp(r'final .+ (\w+);').firstMatch(line); + if (fieldMatch != null) { + final group = fieldMatch[1]!; + final file = diagnostic.location.file; + identifierIssues.update( + file, + (value) => value..add(group), + ifAbsent: () => {group}, + ); + } + return line; + }, }, workingDirectory: '../vrchat_dart_generated', ); + + for (final MapEntry(:key, :value) in identifierIssues.entries) { + final file = File(key); + var contents = file.readAsStringSync(); + for (final identifier in value) { + final newIdentifier = identifier.camelCase; + contents = contents + // Constructor parameters + .replaceAllMapped( + // This is regex + // ignore: unnecessary_string_escapes + RegExp('this\.$identifier\\b(.*)'), + (m) => 'this.$newIdentifier${m[1]}', + ) + // Fields + .replaceAllMapped( + RegExp('final (.+) $identifier;'), + (m) => 'final ${m[1]} $newIdentifier;', + ) + // Equals operator + .replaceAll( + RegExp('other.$identifier == $identifier'), + 'other.$newIdentifier == $newIdentifier', + ) + // Hashcode + .replaceAll( + RegExp('$identifier.hashCode'), + '$newIdentifier.hashCode', + ); + } + file.writeAsStringSync(contents); + } } diff --git a/vrchat_dart_generated/.openapi-generator/FILES b/vrchat_dart_generated/.openapi-generator/FILES index e294ce0..9a00f27 100644 --- a/vrchat_dart_generated/.openapi-generator/FILES +++ b/vrchat_dart_generated/.openapi-generator/FILES @@ -2,8 +2,20 @@ README.md doc/APIConfig.md doc/APIConfigAnnouncement.md +doc/APIConfigConstants.md +doc/APIConfigConstantsGROUPS.md +doc/APIConfigConstantsINSTANCE.md +doc/APIConfigConstantsINSTANCEPOPULATIONBRACKETS.md +doc/APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED.md +doc/APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW.md +doc/APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY.md +doc/APIConfigConstantsLANGUAGE.md doc/APIConfigDownloadURLList.md doc/APIConfigEvents.md +doc/APIConfigMinSupportedClientBuildNumber.md +doc/APIConfigOfflineAnalysis.md +doc/APIConfigReportCategories.md +doc/APIConfigReportReasons.md doc/APIHealth.md doc/AccountDeletionLog.md doc/AddFavoriteRequest.md @@ -36,6 +48,7 @@ doc/Favorite.md doc/FavoriteGroup.md doc/FavoriteGroupVisibility.md doc/FavoriteType.md +doc/FavoritedWorld.md doc/FavoritesApi.md doc/File.md doc/FileData.md @@ -86,6 +99,9 @@ doc/InviteMessage.md doc/InviteMessageType.md doc/InviteRequest.md doc/InviteResponse.md +doc/Jam.md +doc/JamStateChangeDates.md +doc/JamsApi.md doc/License.md doc/LicenseAction.md doc/LicenseGroup.md @@ -108,19 +124,24 @@ doc/NotificationsApi.md doc/OrderOption.md doc/PaginatedGroupAuditLogEntryList.md doc/PastDisplayName.md +doc/PerformanceRatings.md doc/Permission.md doc/PermissionsApi.md +doc/PlatformBuildInfo.md doc/PlayerModeration.md doc/PlayerModerationType.md doc/PlayermoderationApi.md doc/Region.md doc/ReleaseStatus.md +doc/ReportCategory.md +doc/ReportReason.md doc/RepresentedGroup.md doc/RequestInviteRequest.md doc/RespondGroupJoinRequest.md doc/Response.md doc/SentNotification.md doc/SortOption.md +doc/Submission.md doc/Subscription.md doc/SubscriptionPeriod.md doc/Success.md @@ -165,6 +186,7 @@ lib/src/api/friends_api.dart lib/src/api/groups_api.dart lib/src/api/instances_api.dart lib/src/api/invite_api.dart +lib/src/api/jams_api.dart lib/src/api/notifications_api.dart lib/src/api/permissions_api.dart lib/src/api/playermoderation_api.dart @@ -182,8 +204,20 @@ lib/src/model/add_favorite_request.dart lib/src/model/add_group_gallery_image_request.dart lib/src/model/api_config.dart lib/src/model/api_config_announcement.dart +lib/src/model/api_config_constants.dart +lib/src/model/api_config_constants_groups.dart +lib/src/model/api_config_constants_instance.dart +lib/src/model/api_config_constants_instancepopulationbrackets.dart +lib/src/model/api_config_constants_instancepopulationbracketscrowded.dart +lib/src/model/api_config_constants_instancepopulationbracketsfew.dart +lib/src/model/api_config_constants_instancepopulationbracketsmany.dart +lib/src/model/api_config_constants_language.dart lib/src/model/api_config_download_url_list.dart lib/src/model/api_config_events.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_reasons.dart lib/src/model/api_health.dart lib/src/model/avatar.dart lib/src/model/avatar_unity_package_url_object.dart @@ -210,6 +244,7 @@ lib/src/model/favorite.dart lib/src/model/favorite_group.dart lib/src/model/favorite_group_visibility.dart lib/src/model/favorite_type.dart +lib/src/model/favorited_world.dart lib/src/model/file.dart lib/src/model/file_data.dart lib/src/model/file_status.dart @@ -254,6 +289,8 @@ lib/src/model/invite_message.dart lib/src/model/invite_message_type.dart 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/license.dart lib/src/model/license_action.dart lib/src/model/license_group.dart @@ -275,17 +312,22 @@ lib/src/model/notification_type.dart lib/src/model/order_option.dart lib/src/model/paginated_group_audit_log_entry_list.dart lib/src/model/past_display_name.dart +lib/src/model/performance_ratings.dart lib/src/model/permission.dart +lib/src/model/platform_build_info.dart lib/src/model/player_moderation.dart lib/src/model/player_moderation_type.dart lib/src/model/region.dart lib/src/model/release_status.dart +lib/src/model/report_category.dart +lib/src/model/report_reason.dart lib/src/model/represented_group.dart lib/src/model/request_invite_request.dart lib/src/model/respond_group_join_request.dart lib/src/model/response.dart lib/src/model/sent_notification.dart lib/src/model/sort_option.dart +lib/src/model/submission.dart lib/src/model/subscription.dart lib/src/model/subscription_period.dart lib/src/model/success.dart @@ -322,8 +364,20 @@ test/account_deletion_log_test.dart test/add_favorite_request_test.dart test/add_group_gallery_image_request_test.dart test/api_config_announcement_test.dart +test/api_config_constants_groups_test.dart +test/api_config_constants_instance_test.dart +test/api_config_constants_instancepopulationbrackets_test.dart +test/api_config_constants_instancepopulationbracketscrowded_test.dart +test/api_config_constants_instancepopulationbracketsfew_test.dart +test/api_config_constants_instancepopulationbracketsmany_test.dart +test/api_config_constants_language_test.dart +test/api_config_constants_test.dart test/api_config_download_url_list_test.dart test/api_config_events_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_reasons_test.dart test/api_config_test.dart test/api_health_test.dart test/authentication_api_test.dart @@ -354,6 +408,7 @@ test/favorite_group_test.dart test/favorite_group_visibility_test.dart test/favorite_test.dart test/favorite_type_test.dart +test/favorited_world_test.dart test/favorites_api_test.dart test/file_data_test.dart test/file_status_test.dart @@ -404,6 +459,9 @@ test/invite_message_test.dart test/invite_message_type_test.dart test/invite_request_test.dart test/invite_response_test.dart +test/jam_state_change_dates_test.dart +test/jam_test.dart +test/jams_api_test.dart test/license_action_test.dart test/license_group_test.dart test/license_test.dart @@ -426,19 +484,24 @@ test/notifications_api_test.dart test/order_option_test.dart test/paginated_group_audit_log_entry_list_test.dart test/past_display_name_test.dart +test/performance_ratings_test.dart test/permission_test.dart test/permissions_api_test.dart +test/platform_build_info_test.dart test/player_moderation_test.dart test/player_moderation_type_test.dart test/playermoderation_api_test.dart test/region_test.dart test/release_status_test.dart +test/report_category_test.dart +test/report_reason_test.dart test/represented_group_test.dart test/request_invite_request_test.dart test/respond_group_join_request_test.dart test/response_test.dart test/sent_notification_test.dart test/sort_option_test.dart +test/submission_test.dart test/subscription_period_test.dart test/subscription_test.dart test/success_test.dart diff --git a/vrchat_dart_generated/.openapi-generator/VERSION b/vrchat_dart_generated/.openapi-generator/VERSION index 09a6d30..4bc5d61 100644 --- a/vrchat_dart_generated/.openapi-generator/VERSION +++ b/vrchat_dart_generated/.openapi-generator/VERSION @@ -1 +1 @@ -7.8.0 +7.9.0 diff --git a/vrchat_dart_generated/CHANGELOG.md b/vrchat_dart_generated/CHANGELOG.md index ed6a741..8dada16 100644 --- a/vrchat_dart_generated/CHANGELOG.md +++ b/vrchat_dart_generated/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.18.5 +- Updated to match spec + ## 1.18.4 - Updated to match spec diff --git a/vrchat_dart_generated/README.md b/vrchat_dart_generated/README.md index 2e2dfe4..b433931 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.18.4 -- Generator version: 7.8.0 +- API version: 1.18.5 +- Generator version: 7.9.0 - Build package: org.openapitools.codegen.languages.DartDioClientCodegen For more information, please visit [https://github.com/VRChatAPI](https://github.com/VRChatAPI) @@ -241,7 +241,6 @@ Class | Method | HTTP request | Description [*InstancesApi*](doc/InstancesApi.md) | [**getInstance**](doc/InstancesApi.md#getinstance) | **GET** /instances/{worldId}:{instanceId} | Get Instance [*InstancesApi*](doc/InstancesApi.md) | [**getInstanceByShortName**](doc/InstancesApi.md#getinstancebyshortname) | **GET** /instances/s/{shortName} | Get Instance By Short Name [*InstancesApi*](doc/InstancesApi.md) | [**getShortName**](doc/InstancesApi.md#getshortname) | **GET** /instances/{worldId}:{instanceId}/shortName | Get Instance Short Name -[*InstancesApi*](doc/InstancesApi.md) | [**sendSelfInvite**](doc/InstancesApi.md#sendselfinvite) | **POST** /instances/{worldId}:{instanceId}/invite | Send Self Invite [*InviteApi*](doc/InviteApi.md) | [**getInviteMessage**](doc/InviteApi.md#getinvitemessage) | **GET** /message/{userId}/{messageType}/{slot} | Get Invite Message [*InviteApi*](doc/InviteApi.md) | [**getInviteMessages**](doc/InviteApi.md#getinvitemessages) | **GET** /message/{userId}/{messageType} | List Invite Messages [*InviteApi*](doc/InviteApi.md) | [**inviteMyselfTo**](doc/InviteApi.md#invitemyselfto) | **POST** /invite/myself/to/{worldId}:{instanceId} | Invite Myself To Instance @@ -250,16 +249,18 @@ Class | Method | HTTP request | Description [*InviteApi*](doc/InviteApi.md) | [**resetInviteMessage**](doc/InviteApi.md#resetinvitemessage) | **DELETE** /message/{userId}/{messageType}/{slot} | Reset Invite Message [*InviteApi*](doc/InviteApi.md) | [**respondInvite**](doc/InviteApi.md#respondinvite) | **POST** /invite/{notificationId}/response | Respond Invite [*InviteApi*](doc/InviteApi.md) | [**updateInviteMessage**](doc/InviteApi.md#updateinvitemessage) | **PUT** /message/{userId}/{messageType}/{slot} | Update Invite Message +[*JamsApi*](doc/JamsApi.md) | [**getJam**](doc/JamsApi.md#getjam) | **GET** /jams/{jamId} | Show jam information +[*JamsApi*](doc/JamsApi.md) | [**getJamSubmissions**](doc/JamsApi.md#getjamsubmissions) | **GET** /jams/{jamId}/submissions | Show jam submissions +[*JamsApi*](doc/JamsApi.md) | [**getJams**](doc/JamsApi.md#getjams) | **GET** /jams | Show jams list [*NotificationsApi*](doc/NotificationsApi.md) | [**acceptFriendRequest**](doc/NotificationsApi.md#acceptfriendrequest) | **PUT** /auth/user/notifications/{notificationId}/accept | Accept Friend Request [*NotificationsApi*](doc/NotificationsApi.md) | [**clearNotifications**](doc/NotificationsApi.md#clearnotifications) | **PUT** /auth/user/notifications/clear | Clear All Notifications [*NotificationsApi*](doc/NotificationsApi.md) | [**deleteNotification**](doc/NotificationsApi.md#deletenotification) | **PUT** /auth/user/notifications/{notificationId}/hide | Delete Notification +[*NotificationsApi*](doc/NotificationsApi.md) | [**getNotification**](doc/NotificationsApi.md#getnotification) | **GET** /auth/user/notifications/{notificationId} | Show notification [*NotificationsApi*](doc/NotificationsApi.md) | [**getNotifications**](doc/NotificationsApi.md#getnotifications) | **GET** /auth/user/notifications | List Notifications [*NotificationsApi*](doc/NotificationsApi.md) | [**markNotificationAsRead**](doc/NotificationsApi.md#marknotificationasread) | **PUT** /auth/user/notifications/{notificationId}/see | Mark Notification As Read [*PermissionsApi*](doc/PermissionsApi.md) | [**getAssignedPermissions**](doc/PermissionsApi.md#getassignedpermissions) | **GET** /auth/permissions | Get Assigned Permissions [*PermissionsApi*](doc/PermissionsApi.md) | [**getPermission**](doc/PermissionsApi.md#getpermission) | **GET** /permissions/{permissionId} | Get Permission [*PlayermoderationApi*](doc/PlayermoderationApi.md) | [**clearAllPlayerModerations**](doc/PlayermoderationApi.md#clearallplayermoderations) | **DELETE** /auth/user/playermoderations | Clear All Player Moderations -[*PlayermoderationApi*](doc/PlayermoderationApi.md) | [**deletePlayerModeration**](doc/PlayermoderationApi.md#deleteplayermoderation) | **DELETE** /auth/user/playermoderations/{playerModerationId} | Delete Player Moderation -[*PlayermoderationApi*](doc/PlayermoderationApi.md) | [**getPlayerModeration**](doc/PlayermoderationApi.md#getplayermoderation) | **GET** /auth/user/playermoderations/{playerModerationId} | Get Player Moderation [*PlayermoderationApi*](doc/PlayermoderationApi.md) | [**getPlayerModerations**](doc/PlayermoderationApi.md#getplayermoderations) | **GET** /auth/user/playermoderations | Search Player Moderations [*PlayermoderationApi*](doc/PlayermoderationApi.md) | [**moderateUser**](doc/PlayermoderationApi.md#moderateuser) | **POST** /auth/user/playermoderations | Moderate User [*PlayermoderationApi*](doc/PlayermoderationApi.md) | [**unmoderateUser**](doc/PlayermoderationApi.md#unmoderateuser) | **PUT** /auth/user/unplayermoderate | Unmoderate User @@ -296,8 +297,20 @@ Class | Method | HTTP request | Description - [APIConfig](doc/APIConfig.md) - [APIConfigAnnouncement](doc/APIConfigAnnouncement.md) + - [APIConfigConstants](doc/APIConfigConstants.md) + - [APIConfigConstantsGROUPS](doc/APIConfigConstantsGROUPS.md) + - [APIConfigConstantsINSTANCE](doc/APIConfigConstantsINSTANCE.md) + - [APIConfigConstantsINSTANCEPOPULATIONBRACKETS](doc/APIConfigConstantsINSTANCEPOPULATIONBRACKETS.md) + - [APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED](doc/APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED.md) + - [APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW](doc/APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW.md) + - [APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY](doc/APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY.md) + - [APIConfigConstantsLANGUAGE](doc/APIConfigConstantsLANGUAGE.md) - [APIConfigDownloadURLList](doc/APIConfigDownloadURLList.md) - [APIConfigEvents](doc/APIConfigEvents.md) + - [APIConfigMinSupportedClientBuildNumber](doc/APIConfigMinSupportedClientBuildNumber.md) + - [APIConfigOfflineAnalysis](doc/APIConfigOfflineAnalysis.md) + - [APIConfigReportCategories](doc/APIConfigReportCategories.md) + - [APIConfigReportReasons](doc/APIConfigReportReasons.md) - [APIHealth](doc/APIHealth.md) - [AccountDeletionLog](doc/AccountDeletionLog.md) - [AddFavoriteRequest](doc/AddFavoriteRequest.md) @@ -327,6 +340,7 @@ Class | Method | HTTP request | Description - [FavoriteGroup](doc/FavoriteGroup.md) - [FavoriteGroupVisibility](doc/FavoriteGroupVisibility.md) - [FavoriteType](doc/FavoriteType.md) + - [FavoritedWorld](doc/FavoritedWorld.md) - [File](doc/File.md) - [FileData](doc/FileData.md) - [FileStatus](doc/FileStatus.md) @@ -371,6 +385,8 @@ Class | Method | HTTP request | Description - [InviteMessageType](doc/InviteMessageType.md) - [InviteRequest](doc/InviteRequest.md) - [InviteResponse](doc/InviteResponse.md) + - [Jam](doc/Jam.md) + - [JamStateChangeDates](doc/JamStateChangeDates.md) - [License](doc/License.md) - [LicenseAction](doc/LicenseAction.md) - [LicenseGroup](doc/LicenseGroup.md) @@ -392,17 +408,22 @@ Class | Method | HTTP request | Description - [OrderOption](doc/OrderOption.md) - [PaginatedGroupAuditLogEntryList](doc/PaginatedGroupAuditLogEntryList.md) - [PastDisplayName](doc/PastDisplayName.md) + - [PerformanceRatings](doc/PerformanceRatings.md) - [Permission](doc/Permission.md) + - [PlatformBuildInfo](doc/PlatformBuildInfo.md) - [PlayerModeration](doc/PlayerModeration.md) - [PlayerModerationType](doc/PlayerModerationType.md) - [Region](doc/Region.md) - [ReleaseStatus](doc/ReleaseStatus.md) + - [ReportCategory](doc/ReportCategory.md) + - [ReportReason](doc/ReportReason.md) - [RepresentedGroup](doc/RepresentedGroup.md) - [RequestInviteRequest](doc/RequestInviteRequest.md) - [RespondGroupJoinRequest](doc/RespondGroupJoinRequest.md) - [Response](doc/Response.md) - [SentNotification](doc/SentNotification.md) - [SortOption](doc/SortOption.md) + - [Submission](doc/Submission.md) - [Subscription](doc/Subscription.md) - [SubscriptionPeriod](doc/SubscriptionPeriod.md) - [Success](doc/Success.md) diff --git a/vrchat_dart_generated/analysis_options.yaml b/vrchat_dart_generated/analysis_options.yaml new file mode 100644 index 0000000..c36c2c5 --- /dev/null +++ b/vrchat_dart_generated/analysis_options.yaml @@ -0,0 +1 @@ +include: package:lints/core.yaml diff --git a/vrchat_dart_generated/doc/APIConfig.md b/vrchat_dart_generated/doc/APIConfig.md index b504ac0..de35a55 100644 --- a/vrchat_dart_generated/doc/APIConfig.md +++ b/vrchat_dart_generated/doc/APIConfig.md @@ -12,14 +12,18 @@ Name | Type | Description | Notes **voiceEnableReceiverLimiting** | **bool** | Unknown, probably voice optimization testing | [default to true] **address** | **String** | VRChat's office address | **announcements** | [**Set<APIConfigAnnouncement>**](APIConfigAnnouncement.md) | Public Announcements | +**analyticsSegmentNewUIPctOfUsers** | **int** | Unknown | +**analyticsSegmentNewUISalt** | **String** | Unknown | **appName** | **String** | Game name | [default to 'VrChat'] **availableLanguageCodes** | **List<String>** | List of supported Languages | **availableLanguages** | **List<String>** | List of supported Languages | **buildVersionTag** | **String** | Build tag of the API server | +**chatboxLogBufferSeconds** | **int** | Unknown | [default to 40] **clientApiKey** | **String** | apiKey to be used for all other requests | **clientBPSCeiling** | **int** | Unknown | [default to 18432] **clientDisconnectTimeout** | **int** | Unknown | [default to 30000] **clientNetDispatchThread** | **bool** | Unknown | [optional] [default to false] +**clientNetDispatchThreadMobile** | **bool** | Unknown | [default to true] **clientNetInThread** | **bool** | Unknown | [optional] [default to false] **clientNetInThread2** | **bool** | Unknown | [optional] [default to false] **clientNetInThreadMobile** | **bool** | Unknown | [optional] [default to false] @@ -31,6 +35,7 @@ Name | Type | Description | Notes **clientQR** | **int** | Unknown | [optional] [default to 1] **clientReservedPlayerBPS** | **int** | Unknown | [default to 7168] **clientSentCountAllowance** | **int** | Unknown | [default to 15] +**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] @@ -65,13 +70,24 @@ Name | Type | Description | Notes **economyPauseStart** | **String** | Unknown | [optional] **economyState** | **int** | Unknown | [optional] [default to 1] **events** | [**APIConfigEvents**](APIConfigEvents.md) | | +**forceUseLatestWorld** | **bool** | Unknown | [default to true] +**googleApiClientId** | **String** | Unknown | [default to '827942544393-r2ouvckvouldn9dg9uruseje575e878f.apps.googleusercontent.com'] **homeWorldId** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | **homepageRedirectTarget** | **String** | Redirect target if you try to open the base API domain in your browser | [default to 'https://hello.vrchat.com'] **hubWorldId** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | **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). | **jobsEmail** | **String** | VRChat's job application email | +**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 | **notAllowedToSelectAvatarInPrivateWorldMessage** | **String** | Used in-game to notify a user they aren't allowed to select avatars in private worlds | +**offlineAnalysis** | [**APIConfigOfflineAnalysis**](APIConfigOfflineAnalysis.md) | | +**photonNameserverOverrides** | **List<String>** | Unknown | +**photonPublicKeys** | **List<String>** | Unknown | +**reportCategories** | [**APIConfigReportCategories**](APIConfigReportCategories.md) | | +**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** | **Object** | Options for reporting content | +**reportReasons** | [**APIConfigReportReasons**](APIConfigReportReasons.md) | | **sdkDeveloperFaqUrl** | **String** | Link to the developer FAQ | **sdkDiscordUrl** | **String** | Link to the official VRChat Discord | **sdkNotAllowedToPublishMessage** | **String** | Used in the SDK to notify a user they aren't allowed to upload avatars/worlds yet | @@ -79,6 +95,7 @@ Name | Type | Description | Notes **serverName** | **String** | Server name of the API server currently responding | **stringHostUrlList** | **List<String>** | A list of explicitly allowed origins that worlds can request strings from via the Udon's [VRCStringDownloader.LoadUrl](https://creators.vrchat.com/worlds/udon/string-loading/#ivrcstringdownload). | **supportEmail** | **String** | VRChat's support email | +**timekeeping** | **bool** | Unknown | [default to true] **timeOutWorldId** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | **tutorialWorldId** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | **updateRateMsMaximum** | **int** | Unknown | @@ -92,6 +109,9 @@ Name | Type | Description | Notes **whiteListedAssetUrls** | **List<String>** | List of allowed URLs that are allowed to host avatar assets | **playerUrlResolverVersion** | **String** | Currently used youtube-dl.exe version | **playerUrlResolverSha1** | **String** | Currently used youtube-dl.exe hash in SHA1-delimited format | +**websocketMaxFriendsRefreshDelay** | **int** | Unknown | [default to 900] +**websocketQuickReconnectTime** | **int** | Unknown | [default to 2] +**websocketReconnectMaxDelay** | **int** | Unknown | [default to 2] [[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/APIConfigConstants.md b/vrchat_dart_generated/doc/APIConfigConstants.md new file mode 100644 index 0000000..6d0de58 --- /dev/null +++ b/vrchat_dart_generated/doc/APIConfigConstants.md @@ -0,0 +1,17 @@ +# vrchat_dart_generated.model.APIConfigConstants + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**GROUPS** | [**APIConfigConstantsGROUPS**](APIConfigConstantsGROUPS.md) | | +**INSTANCE** | [**APIConfigConstantsINSTANCE**](APIConfigConstantsINSTANCE.md) | | +**LANGUAGE** | [**APIConfigConstantsLANGUAGE**](APIConfigConstantsLANGUAGE.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/APIConfigConstantsGROUPS.md b/vrchat_dart_generated/doc/APIConfigConstantsGROUPS.md new file mode 100644 index 0000000..abf0377 --- /dev/null +++ b/vrchat_dart_generated/doc/APIConfigConstantsGROUPS.md @@ -0,0 +1,24 @@ +# vrchat_dart_generated.model.APIConfigConstantsGROUPS + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CAPACITY** | **int** | Maximum group capacity | [optional] [default to 100000] +**GROUP_TRANSFER_REQUIREMENTS** | **List<String>** | Requirements for transferring group ownership | [optional] +**MAX_INVITES_REQUESTS** | **int** | Maximum number of invite requests | [optional] [default to 50] +**MAX_JOINED** | **int** | Maximum number of joined groups | [optional] [default to 100] +**MAX_JOINED_PLUS** | **int** | Maximum number of joined groups for VRChat Plus members | [optional] [default to 200] +**MAX_LANGUAGES** | **int** | Maximum number of supported languages | [optional] [default to 10] +**MAX_LINKS** | **int** | Maximum number of group links | [optional] [default to 3] +**MAX_MANAGEMENT_ROLES** | **int** | Maximum number of management roles in a group | [optional] [default to 5] +**MAX_OWNED** | **int** | Maximum number of groups a user can own | [optional] [default to 5] +**MAX_ROLES** | **int** | Maximum number of roles in a group | [optional] [default to 50] + +[[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/APIConfigConstantsINSTANCE.md b/vrchat_dart_generated/doc/APIConfigConstantsINSTANCE.md new file mode 100644 index 0000000..ae24126 --- /dev/null +++ b/vrchat_dart_generated/doc/APIConfigConstantsINSTANCE.md @@ -0,0 +1,15 @@ +# vrchat_dart_generated.model.APIConfigConstantsINSTANCE + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**POPULATION_BRACKETS** | [**APIConfigConstantsINSTANCEPOPULATIONBRACKETS**](APIConfigConstantsINSTANCEPOPULATIONBRACKETS.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/APIConfigConstantsINSTANCEPOPULATIONBRACKETS.md b/vrchat_dart_generated/doc/APIConfigConstantsINSTANCEPOPULATIONBRACKETS.md new file mode 100644 index 0000000..04eaafc --- /dev/null +++ b/vrchat_dart_generated/doc/APIConfigConstantsINSTANCEPOPULATIONBRACKETS.md @@ -0,0 +1,17 @@ +# vrchat_dart_generated.model.APIConfigConstantsINSTANCEPOPULATIONBRACKETS + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CROWDED** | [**APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED**](APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED.md) | | [optional] +**FEW** | [**APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW**](APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW.md) | | [optional] +**MANY** | [**APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY**](APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY.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/APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED.md b/vrchat_dart_generated/doc/APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED.md new file mode 100644 index 0000000..e0a10c1 --- /dev/null +++ b/vrchat_dart_generated/doc/APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED.md @@ -0,0 +1,16 @@ +# vrchat_dart_generated.model.APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max** | **int** | Maximum population for a crowded instance | [optional] +**min** | **int** | Minimum population for a crowded instance | [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/APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW.md b/vrchat_dart_generated/doc/APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW.md new file mode 100644 index 0000000..6f42a95 --- /dev/null +++ b/vrchat_dart_generated/doc/APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW.md @@ -0,0 +1,16 @@ +# vrchat_dart_generated.model.APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max** | **int** | Maximum population for a few instance | [optional] +**min** | **int** | Minimum population for a few instance | [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/APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY.md b/vrchat_dart_generated/doc/APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY.md new file mode 100644 index 0000000..71b4abe --- /dev/null +++ b/vrchat_dart_generated/doc/APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY.md @@ -0,0 +1,16 @@ +# vrchat_dart_generated.model.APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**max** | **int** | Maximum population for a many instance | [optional] +**min** | **int** | Minimum population for a many instance | [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/APIConfigConstantsLANGUAGE.md b/vrchat_dart_generated/doc/APIConfigConstantsLANGUAGE.md new file mode 100644 index 0000000..dc9220c --- /dev/null +++ b/vrchat_dart_generated/doc/APIConfigConstantsLANGUAGE.md @@ -0,0 +1,15 @@ +# vrchat_dart_generated.model.APIConfigConstantsLANGUAGE + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SPOKEN_LANGUAGE_OPTIONS** | **Map<String, String>** | Supported spoken language options | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/APIConfigMinSupportedClientBuildNumber.md b/vrchat_dart_generated/doc/APIConfigMinSupportedClientBuildNumber.md new file mode 100644 index 0000000..a7360cb --- /dev/null +++ b/vrchat_dart_generated/doc/APIConfigMinSupportedClientBuildNumber.md @@ -0,0 +1,25 @@ +# vrchat_dart_generated.model.APIConfigMinSupportedClientBuildNumber + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**appStore** | [**PlatformBuildInfo**](PlatformBuildInfo.md) | | +**default_** | [**PlatformBuildInfo**](PlatformBuildInfo.md) | | +**firebase** | [**PlatformBuildInfo**](PlatformBuildInfo.md) | | +**firebaseiOS** | [**PlatformBuildInfo**](PlatformBuildInfo.md) | | +**googlePlay** | [**PlatformBuildInfo**](PlatformBuildInfo.md) | | +**PC** | [**PlatformBuildInfo**](PlatformBuildInfo.md) | | +**picoStore** | [**PlatformBuildInfo**](PlatformBuildInfo.md) | | +**questAppLab** | [**PlatformBuildInfo**](PlatformBuildInfo.md) | | +**questStore** | [**PlatformBuildInfo**](PlatformBuildInfo.md) | | +**testFlight** | [**PlatformBuildInfo**](PlatformBuildInfo.md) | | +**xRElite** | [**PlatformBuildInfo**](PlatformBuildInfo.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/APIConfigOfflineAnalysis.md b/vrchat_dart_generated/doc/APIConfigOfflineAnalysis.md new file mode 100644 index 0000000..dada70e --- /dev/null +++ b/vrchat_dart_generated/doc/APIConfigOfflineAnalysis.md @@ -0,0 +1,16 @@ +# vrchat_dart_generated.model.APIConfigOfflineAnalysis + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**android** | **bool** | Whether to allow offline analysis | [optional] [default to true] +**standalonewindows** | **bool** | Whether to allow offline analysis | [optional] [default to true] + +[[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 new file mode 100644 index 0000000..c090b8b --- /dev/null +++ b/vrchat_dart_generated/doc/APIConfigReportCategories.md @@ -0,0 +1,24 @@ +# 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) | | +**behavior** | [**ReportCategory**](ReportCategory.md) | | +**chat** | [**ReportCategory**](ReportCategory.md) | | +**environment** | [**ReportCategory**](ReportCategory.md) | | +**groupstore** | [**ReportCategory**](ReportCategory.md) | | +**image** | [**ReportCategory**](ReportCategory.md) | | +**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/APIConfigReportReasons.md b/vrchat_dart_generated/doc/APIConfigReportReasons.md new file mode 100644 index 0000000..1303baf --- /dev/null +++ b/vrchat_dart_generated/doc/APIConfigReportReasons.md @@ -0,0 +1,33 @@ +# 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) | | +**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) | | +**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/FavoritedWorld.md b/vrchat_dart_generated/doc/FavoritedWorld.md new file mode 100644 index 0000000..07c1b29 --- /dev/null +++ b/vrchat_dart_generated/doc/FavoritedWorld.md @@ -0,0 +1,42 @@ +# vrchat_dart_generated.model.FavoritedWorld + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**authorId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | +**authorName** | **String** | | +**capacity** | **int** | | +**description** | **String** | | +**recommendedCapacity** | **int** | | [optional] +**createdAt** | [**DateTime**](DateTime.md) | | +**favorites** | **int** | | [default to 0] +**favoriteGroup** | **String** | | +**favoriteId** | **String** | | +**featured** | **bool** | | [default to false] +**visits** | **int** | | [optional] [default to 0] +**heat** | **int** | | [default to 0] +**id** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | +**imageUrl** | **String** | | +**labsPublicationDate** | **String** | | +**name** | **String** | | +**occupants** | **int** | | [default to 0] +**organization** | **String** | | [default to 'vrchat'] +**popularity** | **int** | | [default to 0] +**previewYoutubeId** | **String** | | [optional] +**publicationDate** | **String** | | +**releaseStatus** | [**ReleaseStatus**](ReleaseStatus.md) | | +**tags** | **List<String>** | | +**thumbnailImageUrl** | **String** | | +**unityPackages** | [**List<UnityPackage>**](UnityPackage.md) | | +**updatedAt** | [**DateTime**](DateTime.md) | | +**udonProducts** | **List<String>** | | [optional] +**version** | **int** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/Group.md b/vrchat_dart_generated/doc/Group.md index 487a529..45afb74 100644 --- a/vrchat_dart_generated/doc/Group.md +++ b/vrchat_dart_generated/doc/Group.md @@ -8,6 +8,7 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**badges** | **List<String>** | | [optional] **id** | **String** | | [optional] **name** | **String** | | [optional] **shortCode** | **String** | | [optional] diff --git a/vrchat_dart_generated/doc/GroupMember.md b/vrchat_dart_generated/doc/GroupMember.md index 045baed..9ca00b8 100644 --- a/vrchat_dart_generated/doc/GroupMember.md +++ b/vrchat_dart_generated/doc/GroupMember.md @@ -8,6 +8,8 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**acceptedByDisplayName** | **String** | | [optional] +**acceptedById** | **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] **id** | **String** | | [optional] **groupId** | **String** | | [optional] **userId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional] diff --git a/vrchat_dart_generated/doc/Instance.md b/vrchat_dart_generated/doc/Instance.md index c824da0..99472e9 100644 --- a/vrchat_dart_generated/doc/Instance.md +++ b/vrchat_dart_generated/doc/Instance.md @@ -12,9 +12,12 @@ Name | Type | Description | Notes **canRequestInvite** | **bool** | | [default to true] **capacity** | **int** | | **clientNumber** | **String** | Always returns \"unknown\". | +**displayName** | **String** | | **full** | **bool** | | [default to false] +**gameServerVersion** | **int** | | **id** | **String** | InstanceID can be \"offline\" on User profiles if you are not friends with that user and \"private\" if you are friends and user is in private instance. | **instanceId** | **String** | | +**instancePersistenceEnabled** | **String** | | **location** | **String** | InstanceID can be \"offline\" on User profiles if you are not friends with that user and \"private\" if you are friends and user is in private instance. | **nUsers** | **int** | | **name** | **String** | | @@ -22,6 +25,7 @@ Name | Type | Description | Notes **permanent** | **bool** | | [default to false] **photonRegion** | [**Region**](Region.md) | | **platforms** | [**InstancePlatforms**](InstancePlatforms.md) | | +**playerPersistenceEnabled** | **String** | | **region** | [**InstanceRegion**](InstanceRegion.md) | | **secureName** | **String** | | **shortName** | **String** | | [optional] diff --git a/vrchat_dart_generated/doc/InstancePlatforms.md b/vrchat_dart_generated/doc/InstancePlatforms.md index 01632b8..1cb61f7 100644 --- a/vrchat_dart_generated/doc/InstancePlatforms.md +++ b/vrchat_dart_generated/doc/InstancePlatforms.md @@ -9,6 +9,7 @@ import 'package:vrchat_dart_generated/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **android** | **int** | | +**ios** | **int** | | [optional] **standalonewindows** | **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/InstancesApi.md b/vrchat_dart_generated/doc/InstancesApi.md index 4d25952..d481cc0 100644 --- a/vrchat_dart_generated/doc/InstancesApi.md +++ b/vrchat_dart_generated/doc/InstancesApi.md @@ -14,7 +14,6 @@ Method | HTTP request | Description [**getInstance**](InstancesApi.md#getinstance) | **GET** /instances/{worldId}:{instanceId} | Get Instance [**getInstanceByShortName**](InstancesApi.md#getinstancebyshortname) | **GET** /instances/s/{shortName} | Get Instance By Short Name [**getShortName**](InstancesApi.md#getshortname) | **GET** /instances/{worldId}:{instanceId}/shortName | Get Instance Short Name -[**sendSelfInvite**](InstancesApi.md#sendselfinvite) | **POST** /instances/{worldId}:{instanceId}/invite | Send Self Invite # **closeInstance** @@ -255,55 +254,6 @@ Name | Type | Description | Notes [authCookie](../README.md#authCookie) -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: text/plain, 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) - -# **sendSelfInvite** -> Success sendSelfInvite(worldId, instanceId) - -Send Self Invite - -Sends an invite to the instance to yourself. - -### Example -```dart -import 'package:vrchat_dart_generated/api.dart'; -// TODO Configure API key authorization: authCookie -//defaultApiClient.getAuthentication('authCookie').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('authCookie').apiKeyPrefix = 'Bearer'; - -final api = VrchatDartGenerated().getInstancesApi(); -final String worldId = worldId_example; // String | Must be a valid world ID. -final String instanceId = instanceId_example; // String | Must be a valid instance ID. - -try { - final response = api.sendSelfInvite(worldId, instanceId); - print(response); -} catch on DioException (e) { - print('Exception when calling InstancesApi->sendSelfInvite: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **worldId** | **String**| Must be a valid world ID. | - **instanceId** | **String**| Must be a valid instance ID. | - -### Return type - -[**Success**](Success.md) - -### Authorization - -[authCookie](../README.md#authCookie) - ### HTTP request headers - **Content-Type**: Not defined diff --git a/vrchat_dart_generated/doc/Jam.md b/vrchat_dart_generated/doc/Jam.md new file mode 100644 index 0000000..99517b6 --- /dev/null +++ b/vrchat_dart_generated/doc/Jam.md @@ -0,0 +1,24 @@ +# vrchat_dart_generated.model.Jam + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **String** | | +**id** | **String** | | +**isVisible** | **bool** | | +**moreInfo** | **String** | | +**state** | **String** | One of: - submissions_open - closed | +**stateChangeDates** | [**JamStateChangeDates**](JamStateChangeDates.md) | | +**submissionContentGateDate** | [**DateTime**](DateTime.md) | | +**submissionContentGated** | **bool** | | +**title** | **String** | | +**updatedAt** | [**DateTime**](DateTime.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/JamStateChangeDates.md b/vrchat_dart_generated/doc/JamStateChangeDates.md new file mode 100644 index 0000000..35cd5ed --- /dev/null +++ b/vrchat_dart_generated/doc/JamStateChangeDates.md @@ -0,0 +1,18 @@ +# vrchat_dart_generated.model.JamStateChangeDates + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**closed** | [**DateTime**](DateTime.md) | | [optional] +**submissionsClosed** | [**DateTime**](DateTime.md) | | [optional] +**submissionsOpened** | [**DateTime**](DateTime.md) | | [optional] +**winnersSelected** | [**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/JamsApi.md b/vrchat_dart_generated/doc/JamsApi.md new file mode 100644 index 0000000..4514608 --- /dev/null +++ b/vrchat_dart_generated/doc/JamsApi.md @@ -0,0 +1,157 @@ +# vrchat_dart_generated.api.JamsApi + +## Load the API package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +All URIs are relative to *https://vrchat.com/api/1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getJam**](JamsApi.md#getjam) | **GET** /jams/{jamId} | Show jam information +[**getJamSubmissions**](JamsApi.md#getjamsubmissions) | **GET** /jams/{jamId}/submissions | Show jam submissions +[**getJams**](JamsApi.md#getjams) | **GET** /jams | Show jams list + + +# **getJam** +> Jam getJam(jamId) + +Show jam information + +Returns a jam. + +### 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().getJamsApi(); +final String jamId = jam_0b7e3f6d-4647-4648-b2a1-1431e76906d9; // String | Must be a valid query ID. + +try { + final response = api.getJam(jamId); + print(response); +} catch on DioException (e) { + print('Exception when calling JamsApi->getJam: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **jamId** | **String**| Must be a valid query ID. | + +### Return type + +[**Jam**](Jam.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) + +# **getJamSubmissions** +> List getJamSubmissions(jamId) + +Show jam submissions + +Returns all submissions of a jam. + +### 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().getJamsApi(); +final String jamId = jam_0b7e3f6d-4647-4648-b2a1-1431e76906d9; // String | Must be a valid query ID. + +try { + final response = api.getJamSubmissions(jamId); + print(response); +} catch on DioException (e) { + print('Exception when calling JamsApi->getJamSubmissions: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **jamId** | **String**| Must be a valid query ID. | + +### Return type + +[**List<Submission>**](Submission.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) + +# **getJams** +> List getJams(type) + +Show jams list + +Lists World Jams or Avatar Jams, both currently running and ones that have ended. `isActive` is used to select only active or already ended jams. `type` is used to select only world or avatar jams, and can only take `world` or `avatar`. `` + +### 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().getJamsApi(); +final String type = avatar; // String | Only show jams of this type (`avatar` or `world`). + +try { + final response = api.getJams(type); + print(response); +} catch on DioException (e) { + print('Exception when calling JamsApi->getJams: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **type** | **String**| Only show jams of this type (`avatar` or `world`). | [optional] + +### Return type + +[**List<Jam>**](Jam.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) + diff --git a/vrchat_dart_generated/doc/LimitedUser.md b/vrchat_dart_generated/doc/LimitedUser.md index 7e9346b..23bb86d 100644 --- a/vrchat_dart_generated/doc/LimitedUser.md +++ b/vrchat_dart_generated/doc/LimitedUser.md @@ -19,6 +19,7 @@ Name | Type | Description | Notes **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 can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | +**lastLogin** | [**DateTime**](DateTime.md) | | [optional] **profilePicOverride** | **String** | | [optional] **pronouns** | **String** | | [optional] **status** | [**UserStatus**](UserStatus.md) | | diff --git a/vrchat_dart_generated/doc/NotificationsApi.md b/vrchat_dart_generated/doc/NotificationsApi.md index 3f1e27b..a55dee5 100644 --- a/vrchat_dart_generated/doc/NotificationsApi.md +++ b/vrchat_dart_generated/doc/NotificationsApi.md @@ -12,6 +12,7 @@ Method | HTTP request | Description [**acceptFriendRequest**](NotificationsApi.md#acceptfriendrequest) | **PUT** /auth/user/notifications/{notificationId}/accept | Accept Friend Request [**clearNotifications**](NotificationsApi.md#clearnotifications) | **PUT** /auth/user/notifications/clear | Clear All Notifications [**deleteNotification**](NotificationsApi.md#deletenotification) | **PUT** /auth/user/notifications/{notificationId}/hide | Delete Notification +[**getNotification**](NotificationsApi.md#getnotification) | **GET** /auth/user/notifications/{notificationId} | Show notification [**getNotifications**](NotificationsApi.md#getnotifications) | **GET** /auth/user/notifications | List Notifications [**markNotificationAsRead**](NotificationsApi.md#marknotificationasread) | **PUT** /auth/user/notifications/{notificationId}/see | Mark Notification As Read @@ -153,6 +154,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) +# **getNotification** +> Notification getNotification(notificationId) + +Show notification + +Get a notification by notification `not_` ID. + +### 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().getNotificationsApi(); +final String notificationId = notificationId_example; // String | Must be a valid notification ID. + +try { + final response = api.getNotification(notificationId); + print(response); +} catch on DioException (e) { + print('Exception when calling NotificationsApi->getNotification: $e\n'); +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **notificationId** | **String**| Must be a valid notification ID. | + +### Return type + +[**Notification**](Notification.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) + # **getNotifications** > List getNotifications(type, sent, hidden, after, n, offset) diff --git a/vrchat_dart_generated/doc/PerformanceRatings.md b/vrchat_dart_generated/doc/PerformanceRatings.md new file mode 100644 index 0000000..4a47679 --- /dev/null +++ b/vrchat_dart_generated/doc/PerformanceRatings.md @@ -0,0 +1,14 @@ +# vrchat_dart_generated.model.PerformanceRatings + +## 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/Permission.md b/vrchat_dart_generated/doc/Permission.md index d25fcca..bfe57a7 100644 --- a/vrchat_dart_generated/doc/Permission.md +++ b/vrchat_dart_generated/doc/Permission.md @@ -8,10 +8,13 @@ import 'package:vrchat_dart_generated/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**displayName** | **String** | | [optional] +**description** | **String** | | [optional] **id** | **String** | | **ownerDisplayName** | **String** | | **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. | +**type** | **String** | | [optional] **data** | **Object** | | [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/PlatformBuildInfo.md b/vrchat_dart_generated/doc/PlatformBuildInfo.md new file mode 100644 index 0000000..9aa01d4 --- /dev/null +++ b/vrchat_dart_generated/doc/PlatformBuildInfo.md @@ -0,0 +1,16 @@ +# vrchat_dart_generated.model.PlatformBuildInfo + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**minBuildNumber** | **int** | Minimum build number required for the platform | +**redirectionAddress** | **String** | Redirection URL for updating the app | + +[[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 cc24476..08da772 100644 --- a/vrchat_dart_generated/doc/PlayermoderationApi.md +++ b/vrchat_dart_generated/doc/PlayermoderationApi.md @@ -10,8 +10,6 @@ All URIs are relative to *https://vrchat.com/api/1* Method | HTTP request | Description ------------- | ------------- | ------------- [**clearAllPlayerModerations**](PlayermoderationApi.md#clearallplayermoderations) | **DELETE** /auth/user/playermoderations | Clear All Player Moderations -[**deletePlayerModeration**](PlayermoderationApi.md#deleteplayermoderation) | **DELETE** /auth/user/playermoderations/{playerModerationId} | Delete Player Moderation -[**getPlayerModeration**](PlayermoderationApi.md#getplayermoderation) | **GET** /auth/user/playermoderations/{playerModerationId} | Get Player Moderation [**getPlayerModerations**](PlayermoderationApi.md#getplayermoderations) | **GET** /auth/user/playermoderations | Search Player Moderations [**moderateUser**](PlayermoderationApi.md#moderateuser) | **POST** /auth/user/playermoderations | Moderate User [**unmoderateUser**](PlayermoderationApi.md#unmoderateuser) | **PUT** /auth/user/unplayermoderate | Unmoderate User @@ -60,100 +58,6 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **deletePlayerModeration** -> Success deletePlayerModeration(playerModerationId) - -Delete Player Moderation - -Deletes a specific player moderation based on it's `pmod_` ID. The website uses `unmoderateUser` instead. You can delete the same player moderation multiple times successfully. - -### 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().getPlayermoderationApi(); -final String playerModerationId = playerModerationId_example; // String | Must be a valid `pmod_` ID. - -try { - final response = api.deletePlayerModeration(playerModerationId); - print(response); -} catch on DioException (e) { - print('Exception when calling PlayermoderationApi->deletePlayerModeration: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **playerModerationId** | **String**| Must be a valid `pmod_` 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) - -# **getPlayerModeration** -> PlayerModeration getPlayerModeration(playerModerationId) - -Get Player Moderation - -Returns a single Player Moderation. This returns the exact same amount of information as the more generalised `getPlayerModerations`. - -### 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().getPlayermoderationApi(); -final String playerModerationId = playerModerationId_example; // String | Must be a valid `pmod_` ID. - -try { - final response = api.getPlayerModeration(playerModerationId); - print(response); -} catch on DioException (e) { - print('Exception when calling PlayermoderationApi->getPlayerModeration: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **playerModerationId** | **String**| Must be a valid `pmod_` ID. | - -### Return type - -[**PlayerModeration**](PlayerModeration.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) - # **getPlayerModerations** > List getPlayerModerations(type, targetUserId) diff --git a/vrchat_dart_generated/doc/ReportCategory.md b/vrchat_dart_generated/doc/ReportCategory.md new file mode 100644 index 0000000..a556392 --- /dev/null +++ b/vrchat_dart_generated/doc/ReportCategory.md @@ -0,0 +1,16 @@ +# vrchat_dart_generated.model.ReportCategory + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text** | **String** | The label of the report category | +**tooltip** | **String** | The tooltip that describes the category | + +[[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/ReportReason.md b/vrchat_dart_generated/doc/ReportReason.md new file mode 100644 index 0000000..c7aeb4f --- /dev/null +++ b/vrchat_dart_generated/doc/ReportReason.md @@ -0,0 +1,16 @@ +# vrchat_dart_generated.model.ReportReason + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text** | **String** | The label or name of the report reason | +**tooltip** | **String** | A brief explanation of what this reason entails | + +[[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/Submission.md b/vrchat_dart_generated/doc/Submission.md new file mode 100644 index 0000000..c8850e7 --- /dev/null +++ b/vrchat_dart_generated/doc/Submission.md @@ -0,0 +1,21 @@ +# vrchat_dart_generated.model.Submission + +## Load the model package +```dart +import 'package:vrchat_dart_generated/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contentId** | **String** | Either world ID or avatar ID | +**createdAt** | [**DateTime**](DateTime.md) | | +**description** | **String** | | +**id** | **String** | | +**jamId** | **String** | | +**ratingScore** | **int** | | [optional] +**submitterId** | **String** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vrchat_dart_generated/doc/UnityPackage.md b/vrchat_dart_generated/doc/UnityPackage.md index 0dc8d40..b4b1223 100644 --- a/vrchat_dart_generated/doc/UnityPackage.md +++ b/vrchat_dart_generated/doc/UnityPackage.md @@ -14,11 +14,13 @@ Name | Type | Description | Notes **assetVersion** | **int** | | **createdAt** | [**DateTime**](DateTime.md) | | [optional] **impostorizerVersion** | **String** | | [optional] +**performanceRating** | [**PerformanceRatings**](PerformanceRatings.md) | | [optional] **platform** | **String** | This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. | **pluginUrl** | **String** | | [optional] **pluginUrlObject** | **Object** | | [optional] **unitySortNumber** | **int** | | [optional] **unityVersion** | **String** | | [default to '5.3.4p1'] +**worldSignature** | **String** | | [optional] **impostorUrl** | **String** | | [optional] **scanStatus** | **String** | | [optional] **variant** | **String** | | [optional] diff --git a/vrchat_dart_generated/doc/UserExists.md b/vrchat_dart_generated/doc/UserExists.md index c352910..7555017 100644 --- a/vrchat_dart_generated/doc/UserExists.md +++ b/vrchat_dart_generated/doc/UserExists.md @@ -9,7 +9,7 @@ import 'package:vrchat_dart_generated/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **userExists** | **bool** | Status if a user exist with that username or userId. | [default to false] -**nameOk** | **bool** | Is the username valid? | [default to false] +**nameOk** | **bool** | Is the username valid? | [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/WorldsApi.md b/vrchat_dart_generated/doc/WorldsApi.md index a3d1c92..22e4061 100644 --- a/vrchat_dart_generated/doc/WorldsApi.md +++ b/vrchat_dart_generated/doc/WorldsApi.md @@ -183,7 +183,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) # **getFavoritedWorlds** -> List getFavoritedWorlds(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId) +> List getFavoritedWorlds(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId) List Favorited Worlds @@ -240,7 +240,7 @@ Name | Type | Description | Notes ### Return type -[**List<LimitedWorld>**](LimitedWorld.md) +[**List<FavoritedWorld>**](FavoritedWorld.md) ### Authorization diff --git a/vrchat_dart_generated/lib/src/api.dart b/vrchat_dart_generated/lib/src/api.dart index 8115b9c..2f5821a 100644 --- a/vrchat_dart_generated/lib/src/api.dart +++ b/vrchat_dart_generated/lib/src/api.dart @@ -16,6 +16,7 @@ import 'package:vrchat_dart_generated/src/api/friends_api.dart'; import 'package:vrchat_dart_generated/src/api/groups_api.dart'; import 'package:vrchat_dart_generated/src/api/instances_api.dart'; import 'package:vrchat_dart_generated/src/api/invite_api.dart'; +import 'package:vrchat_dart_generated/src/api/jams_api.dart'; import 'package:vrchat_dart_generated/src/api/notifications_api.dart'; import 'package:vrchat_dart_generated/src/api/permissions_api.dart'; import 'package:vrchat_dart_generated/src/api/playermoderation_api.dart'; @@ -138,6 +139,12 @@ class VrchatDartGenerated { return InviteApi(dio); } + /// Get JamsApi instance, base route and serializer can be overridden by a given but be careful, + /// by doing that all interceptors will not be executed + JamsApi getJamsApi() { + return JamsApi(dio); + } + /// Get NotificationsApi instance, base route and serializer can be overridden by a given but be careful, /// by doing that all interceptors will not be executed NotificationsApi getNotificationsApi() { diff --git a/vrchat_dart_generated/lib/src/api/instances_api.dart b/vrchat_dart_generated/lib/src/api/instances_api.dart index 587c7b6..dbfb9c6 100644 --- a/vrchat_dart_generated/lib/src/api/instances_api.dart +++ b/vrchat_dart_generated/lib/src/api/instances_api.dart @@ -12,7 +12,6 @@ import 'package:dio/dio.dart'; import 'package:vrchat_dart_generated/src/model/create_instance_request.dart'; import 'package:vrchat_dart_generated/src/model/instance.dart'; import 'package:vrchat_dart_generated/src/model/instance_short_name_response.dart'; -import 'package:vrchat_dart_generated/src/model/success.dart'; class InstancesApi { final Dio _dio; @@ -465,88 +464,4 @@ class InstancesApi { extra: _response.extra, ); } - - /// Send Self Invite - /// Sends an invite to the instance to yourself. - /// - /// Parameters: - /// * [worldId] - Must be a valid world ID. - /// * [instanceId] - Must be a valid instance 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> sendSelfInvite({ - required String worldId, - required String instanceId, - CancelToken? cancelToken, - Map? headers, - Map? extra, - ValidateStatus? validateStatus, - ProgressCallback? onSendProgress, - ProgressCallback? onReceiveProgress, - }) async { - final _path = r'/instances/{worldId}:{instanceId}/invite' - .replaceAll('{' r'worldId' '}', worldId.toString()) - .replaceAll('{' r'instanceId' '}', instanceId.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, - ); - } } diff --git a/vrchat_dart_generated/lib/src/api/jams_api.dart b/vrchat_dart_generated/lib/src/api/jams_api.dart new file mode 100644 index 0000000..c6f6a01 --- /dev/null +++ b/vrchat_dart_generated/lib/src/api/jams_api.dart @@ -0,0 +1,268 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +import 'dart:async'; + +// ignore: unused_import +import 'dart:convert'; +import 'package:vrchat_dart_generated/src/deserialize.dart'; +import 'package:dio/dio.dart'; + +import 'package:vrchat_dart_generated/src/model/jam.dart'; +import 'package:vrchat_dart_generated/src/model/submission.dart'; + +class JamsApi { + final Dio _dio; + + const JamsApi(this._dio); + + /// Show jam information + /// Returns a jam. + /// + /// Parameters: + /// * [jamId] - Must be a valid query 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 [Jam] as data + /// Throws [DioException] if API call or serialization fails + Future> getJam({ + required String jamId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = + r'/jams/{jamId}'.replaceAll('{' r'jamId' '}', jamId.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, + ); + + Jam? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize(rawData, 'Jam', 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 jam submissions + /// Returns all submissions of a jam. + /// + /// Parameters: + /// * [jamId] - Must be a valid query 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>> getJamSubmissions({ + required String jamId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/jams/{jamId}/submissions' + .replaceAll('{' r'jamId' '}', jamId.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, Submission>( + 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, + ); + } + + /// Show jams list + /// Lists World Jams or Avatar Jams, both currently running and ones that have ended. `isActive` is used to select only active or already ended jams. `type` is used to select only world or avatar jams, and can only take `world` or `avatar`. `` + /// + /// Parameters: + /// * [type] - Only show jams of this type (`avatar` or `world`). + /// * [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>> getJams({ + String? type, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/jams'; + final _options = Options( + method: r'GET', + headers: { + ...?headers, + }, + extra: { + 'secure': >[ + { + 'type': 'apiKey', + 'name': 'authCookie', + 'keyName': 'auth', + 'where': '', + }, + ], + ...?extra, + }, + validateStatus: validateStatus, + ); + + final _queryParameters = { + if (type != null) r'type': type, + }; + + 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, Jam>(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, + ); + } +} diff --git a/vrchat_dart_generated/lib/src/api/notifications_api.dart b/vrchat_dart_generated/lib/src/api/notifications_api.dart index 0071b6d..6de96ab 100644 --- a/vrchat_dart_generated/lib/src/api/notifications_api.dart +++ b/vrchat_dart_generated/lib/src/api/notifications_api.dart @@ -258,6 +258,88 @@ class NotificationsApi { ); } + /// Show notification + /// Get a notification by notification `not_` ID. + /// + /// Parameters: + /// * [notificationId] - Must be a valid notification 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 [Notification] as data + /// Throws [DioException] if API call or serialization fails + Future> getNotification({ + required String notificationId, + CancelToken? cancelToken, + Map? headers, + Map? extra, + ValidateStatus? validateStatus, + ProgressCallback? onSendProgress, + ProgressCallback? onReceiveProgress, + }) async { + final _path = r'/auth/user/notifications/{notificationId}' + .replaceAll('{' r'notificationId' '}', notificationId.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, + ); + + Notification? _responseData; + + try { + final rawData = _response.data; + _responseData = rawData == null + ? null + : deserialize(rawData, 'Notification', + 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 Notifications /// Retrieve all of the current user's notifications. /// diff --git a/vrchat_dart_generated/lib/src/api/playermoderation_api.dart b/vrchat_dart_generated/lib/src/api/playermoderation_api.dart index d5af3b5..1122700 100644 --- a/vrchat_dart_generated/lib/src/api/playermoderation_api.dart +++ b/vrchat_dart_generated/lib/src/api/playermoderation_api.dart @@ -96,172 +96,6 @@ class PlayermoderationApi { ); } - /// Delete Player Moderation - /// Deletes a specific player moderation based on it's `pmod_` ID. The website uses `unmoderateUser` instead. You can delete the same player moderation multiple times successfully. - /// - /// Parameters: - /// * [playerModerationId] - Must be a valid `pmod_` 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> deletePlayerModeration({ - required String playerModerationId, - CancelToken? cancelToken, - Map? headers, - Map? extra, - ValidateStatus? validateStatus, - ProgressCallback? onSendProgress, - ProgressCallback? onReceiveProgress, - }) async { - final _path = r'/auth/user/playermoderations/{playerModerationId}' - .replaceAll( - '{' r'playerModerationId' '}', playerModerationId.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, - ); - } - - /// Get Player Moderation - /// Returns a single Player Moderation. This returns the exact same amount of information as the more generalised `getPlayerModerations`. - /// - /// Parameters: - /// * [playerModerationId] - Must be a valid `pmod_` 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 [PlayerModeration] as data - /// Throws [DioException] if API call or serialization fails - Future> getPlayerModeration({ - required String playerModerationId, - CancelToken? cancelToken, - Map? headers, - Map? extra, - ValidateStatus? validateStatus, - ProgressCallback? onSendProgress, - ProgressCallback? onReceiveProgress, - }) async { - final _path = r'/auth/user/playermoderations/{playerModerationId}' - .replaceAll( - '{' r'playerModerationId' '}', playerModerationId.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, - ); - - PlayerModeration? _responseData; - - try { - final rawData = _response.data; - _responseData = rawData == null - ? null - : deserialize( - rawData, 'PlayerModeration', - 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 Player Moderations /// Returns a list of all player moderations made by **you**. This endpoint does not have pagination, and will return *all* results. Use query parameters to limit your query if needed. /// diff --git a/vrchat_dart_generated/lib/src/api/worlds_api.dart b/vrchat_dart_generated/lib/src/api/worlds_api.dart index 23746c0..6a71a10 100644 --- a/vrchat_dart_generated/lib/src/api/worlds_api.dart +++ b/vrchat_dart_generated/lib/src/api/worlds_api.dart @@ -10,6 +10,7 @@ import 'package:vrchat_dart_generated/src/deserialize.dart'; import 'package:dio/dio.dart'; import 'package:vrchat_dart_generated/src/model/create_world_request.dart'; +import 'package:vrchat_dart_generated/src/model/favorited_world.dart'; import 'package:vrchat_dart_generated/src/model/instance.dart'; import 'package:vrchat_dart_generated/src/model/limited_world.dart'; import 'package:vrchat_dart_generated/src/model/order_option.dart'; @@ -315,9 +316,9 @@ class WorldsApi { /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// - /// Returns a [Future] containing a [Response] with a [List] as data + /// Returns a [Future] containing a [Response] with a [List] as data /// Throws [DioException] if API call or serialization fails - Future>> getFavoritedWorlds({ + Future>> getFavoritedWorlds({ bool? featured, SortOption? sort, int? n = 60, @@ -383,14 +384,14 @@ class WorldsApi { onReceiveProgress: onReceiveProgress, ); - List? _responseData; + List? _responseData; try { final rawData = _response.data; _responseData = rawData == null ? null - : deserialize, LimitedWorld>( - rawData, 'List', + : deserialize, FavoritedWorld>( + rawData, 'List', growable: true); } catch (error, stackTrace) { throw DioException( @@ -402,7 +403,7 @@ class WorldsApi { ); } - return Response>( + return Response>( data: _responseData, headers: _response.headers, isRedirect: _response.isRedirect, diff --git a/vrchat_dart_generated/lib/src/deserialize.dart b/vrchat_dart_generated/lib/src/deserialize.dart index f9c6cdb..923ec8a 100644 --- a/vrchat_dart_generated/lib/src/deserialize.dart +++ b/vrchat_dart_generated/lib/src/deserialize.dart @@ -1,7 +1,19 @@ import 'package:vrchat_dart_generated/src/model/api_config.dart'; import 'package:vrchat_dart_generated/src/model/api_config_announcement.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_constants.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_constants_groups.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_constants_instance.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_constants_instancepopulationbrackets.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_constants_instancepopulationbracketscrowded.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_constants_instancepopulationbracketsfew.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_constants_instancepopulationbracketsmany.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_constants_language.dart'; import 'package:vrchat_dart_generated/src/model/api_config_download_url_list.dart'; import 'package:vrchat_dart_generated/src/model/api_config_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_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_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'; @@ -27,6 +39,7 @@ import 'package:vrchat_dart_generated/src/model/dynamic_content_row.dart'; import 'package:vrchat_dart_generated/src/model/error.dart'; import 'package:vrchat_dart_generated/src/model/favorite.dart'; import 'package:vrchat_dart_generated/src/model/favorite_group.dart'; +import 'package:vrchat_dart_generated/src/model/favorited_world.dart'; import 'package:vrchat_dart_generated/src/model/file.dart'; import 'package:vrchat_dart_generated/src/model/file_data.dart'; import 'package:vrchat_dart_generated/src/model/file_upload_url.dart'; @@ -58,6 +71,8 @@ import 'package:vrchat_dart_generated/src/model/instance_short_name_response.dar import 'package:vrchat_dart_generated/src/model/invite_message.dart'; 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/license.dart'; import 'package:vrchat_dart_generated/src/model/license_group.dart'; import 'package:vrchat_dart_generated/src/model/limited_group.dart'; @@ -75,12 +90,16 @@ import 'package:vrchat_dart_generated/src/model/notification_detail_vote_to_kick import 'package:vrchat_dart_generated/src/model/paginated_group_audit_log_entry_list.dart'; import 'package:vrchat_dart_generated/src/model/past_display_name.dart'; import 'package:vrchat_dart_generated/src/model/permission.dart'; +import 'package:vrchat_dart_generated/src/model/platform_build_info.dart'; import 'package:vrchat_dart_generated/src/model/player_moderation.dart'; +import 'package:vrchat_dart_generated/src/model/report_category.dart'; +import 'package:vrchat_dart_generated/src/model/report_reason.dart'; import 'package:vrchat_dart_generated/src/model/represented_group.dart'; 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/response.dart'; import 'package:vrchat_dart_generated/src/model/sent_notification.dart'; +import 'package:vrchat_dart_generated/src/model/submission.dart'; import 'package:vrchat_dart_generated/src/model/subscription.dart'; import 'package:vrchat_dart_generated/src/model/success.dart'; import 'package:vrchat_dart_generated/src/model/transaction.dart'; @@ -134,12 +153,48 @@ ReturnType deserialize(dynamic value, String targetType, // ignore: deprecated_member_use_from_same_package return APIConfigAnnouncement.fromJson(value as Map) as ReturnType; + case 'APIConfigConstants': + return APIConfigConstants.fromJson(value as Map) + as ReturnType; + case 'APIConfigConstantsGROUPS': + return APIConfigConstantsGROUPS.fromJson(value as Map) + as ReturnType; + case 'APIConfigConstantsINSTANCE': + return APIConfigConstantsINSTANCE.fromJson(value as Map) + as ReturnType; + case 'APIConfigConstantsINSTANCEPOPULATIONBRACKETS': + return APIConfigConstantsINSTANCEPOPULATIONBRACKETS.fromJson( + value as Map) as ReturnType; + case 'APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED': + return APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED.fromJson( + value as Map) as ReturnType; + case 'APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW': + return APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW.fromJson( + value as Map) as ReturnType; + case 'APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY': + return APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY.fromJson( + value as Map) as ReturnType; + case 'APIConfigConstantsLANGUAGE': + return APIConfigConstantsLANGUAGE.fromJson(value as Map) + as ReturnType; case 'APIConfigDownloadURLList': return APIConfigDownloadURLList.fromJson(value as Map) as ReturnType; case 'APIConfigEvents': return APIConfigEvents.fromJson(value as Map) as ReturnType; + case 'APIConfigMinSupportedClientBuildNumber': + return APIConfigMinSupportedClientBuildNumber.fromJson( + value as Map) as ReturnType; + case 'APIConfigOfflineAnalysis': + return APIConfigOfflineAnalysis.fromJson(value as Map) + as ReturnType; + case 'APIConfigReportCategories': + return APIConfigReportCategories.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': @@ -214,6 +269,9 @@ ReturnType deserialize(dynamic value, String targetType, as ReturnType; case 'FavoriteGroupVisibility': case 'FavoriteType': + case 'FavoritedWorld': + return FavoritedWorld.fromJson(value as Map) + as ReturnType; case 'File': return File.fromJson(value as Map) as ReturnType; case 'FileData': @@ -308,6 +366,11 @@ ReturnType deserialize(dynamic value, String targetType, case 'InviteResponse': return InviteResponse.fromJson(value as Map) as ReturnType; + case 'Jam': + return Jam.fromJson(value as Map) as ReturnType; + case 'JamStateChangeDates': + return JamStateChangeDates.fromJson(value as Map) + as ReturnType; case 'License': return License.fromJson(value as Map) as ReturnType; case 'LicenseAction': @@ -355,14 +418,23 @@ ReturnType deserialize(dynamic value, String targetType, case 'PastDisplayName': return PastDisplayName.fromJson(value as Map) as ReturnType; + case 'PerformanceRatings': case 'Permission': return Permission.fromJson(value as Map) as ReturnType; + case 'PlatformBuildInfo': + return PlatformBuildInfo.fromJson(value as Map) + as ReturnType; case 'PlayerModeration': return PlayerModeration.fromJson(value as Map) as ReturnType; case 'PlayerModerationType': case 'Region': case 'ReleaseStatus': + case 'ReportCategory': + return ReportCategory.fromJson(value as Map) + as ReturnType; + case 'ReportReason': + return ReportReason.fromJson(value as Map) as ReturnType; case 'RepresentedGroup': return RepresentedGroup.fromJson(value as Map) as ReturnType; @@ -378,6 +450,8 @@ ReturnType deserialize(dynamic value, String targetType, return SentNotification.fromJson(value as Map) as ReturnType; case 'SortOption': + case 'Submission': + return Submission.fromJson(value as Map) as ReturnType; case 'Subscription': return Subscription.fromJson(value as Map) as ReturnType; case 'SubscriptionPeriod': @@ -476,9 +550,9 @@ ReturnType deserialize(dynamic value, String targetType, .toSet() as ReturnType; } if (value is Map && (match = _regMap.firstMatch(targetType)) != null) { - targetType = match![1]!; // ignore: parameter_assignments - return Map.fromIterables( - value.keys, + targetType = match![1]!.trim(); // ignore: parameter_assignments + return Map.fromIterables( + value.keys as Iterable, value.values.map((dynamic v) => deserialize( v, targetType, growable: growable)), diff --git a/vrchat_dart_generated/lib/src/model/account_deletion_log.dart b/vrchat_dart_generated/lib/src/model/account_deletion_log.dart index a9cf540..c586078 100644 --- a/vrchat_dart_generated/lib/src/model/account_deletion_log.dart +++ b/vrchat_dart_generated/lib/src/model/account_deletion_log.dart @@ -22,15 +22,27 @@ class AccountDeletionLog { }); /// Typically \"Deletion requested\" or \"Deletion canceled\". Other messages like \"Deletion completed\" may exist, but are these are not possible to see as a regular user. - @JsonKey(name: r'message', required: false, includeIfNull: false) + @JsonKey( + name: r'message', + required: false, + includeIfNull: false, + ) final String? message; /// When the deletion is scheduled to happen, standard is 14 days after the request. - @JsonKey(name: r'deletionScheduled', required: false, includeIfNull: false) + @JsonKey( + name: r'deletionScheduled', + required: false, + includeIfNull: false, + ) final DateTime? deletionScheduled; /// Date and time of the deletion request. - @JsonKey(name: r'dateTime', required: false, includeIfNull: false) + @JsonKey( + name: r'dateTime', + required: false, + includeIfNull: false, + ) final DateTime? dateTime; @override diff --git a/vrchat_dart_generated/lib/src/model/add_favorite_request.dart b/vrchat_dart_generated/lib/src/model/add_favorite_request.dart index 19f5db5..394ff39 100644 --- a/vrchat_dart_generated/lib/src/model/add_favorite_request.dart +++ b/vrchat_dart_generated/lib/src/model/add_favorite_request.dart @@ -22,15 +22,27 @@ class AddFavoriteRequest { required this.tags, }); - @JsonKey(name: r'type', required: true, includeIfNull: false) + @JsonKey( + name: r'type', + required: true, + includeIfNull: false, + ) final FavoriteType type; /// Must be either AvatarID, WorldID or UserID. - @JsonKey(name: r'favoriteId', required: true, includeIfNull: false) + @JsonKey( + name: r'favoriteId', + required: true, + includeIfNull: false, + ) final String favoriteId; /// Tags indicate which group this favorite belongs to. Adding multiple groups makes it show up in all. Removing it from one in that case removes it from all. - @JsonKey(name: r'tags', required: true, includeIfNull: false) + @JsonKey( + name: r'tags', + required: true, + includeIfNull: false, + ) final List tags; @override diff --git a/vrchat_dart_generated/lib/src/model/add_group_gallery_image_request.dart b/vrchat_dart_generated/lib/src/model/add_group_gallery_image_request.dart index ed92075..1f9b4eb 100644 --- a/vrchat_dart_generated/lib/src/model/add_group_gallery_image_request.dart +++ b/vrchat_dart_generated/lib/src/model/add_group_gallery_image_request.dart @@ -19,7 +19,11 @@ class AddGroupGalleryImageRequest { required this.fileId, }); - @JsonKey(name: r'fileId', required: true, includeIfNull: false) + @JsonKey( + name: r'fileId', + required: true, + includeIfNull: false, + ) final String fileId; @override diff --git a/vrchat_dart_generated/lib/src/model/api_config.dart b/vrchat_dart_generated/lib/src/model/api_config.dart index 1d633d6..a0dbd90 100644 --- a/vrchat_dart_generated/lib/src/model/api_config.dart +++ b/vrchat_dart_generated/lib/src/model/api_config.dart @@ -4,9 +4,14 @@ // 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_report_reasons.dart'; import 'package:vrchat_dart_generated/src/model/deployment_group.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/api_config_announcement.dart'; import 'package:json_annotation/json_annotation.dart'; @@ -25,14 +30,18 @@ class APIConfig { this.voiceEnableReceiverLimiting = true, required this.address, required this.announcements, + required this.analyticsSegmentNewUIPctOfUsers, + required this.analyticsSegmentNewUISalt, this.appName = 'VrChat', required this.availableLanguageCodes, required this.availableLanguages, required this.buildVersionTag, + this.chatboxLogBufferSeconds = 40, required this.clientApiKey, this.clientBPSCeiling = 18432, this.clientDisconnectTimeout = 30000, this.clientNetDispatchThread = false, + this.clientNetDispatchThreadMobile = true, this.clientNetInThread = false, this.clientNetInThread2 = false, this.clientNetInThreadMobile = false, @@ -44,6 +53,7 @@ class APIConfig { this.clientQR = 1, this.clientReservedPlayerBPS = 7168, this.clientSentCountAllowance = 15, + required this.constants, required this.contactEmail, required this.copyrightEmail, this.currentPrivacyVersion = 1, @@ -78,13 +88,26 @@ class APIConfig { this.economyPauseStart, this.economyState = 1, required this.events, + this.forceUseLatestWorld = true, + this.googleApiClientId = + '827942544393-r2ouvckvouldn9dg9uruseje575e878f.apps.googleusercontent.com', required this.homeWorldId, this.homepageRedirectTarget = 'https://hello.vrchat.com', required this.hubWorldId, required this.imageHostUrlList, required this.jobsEmail, + required this.minSupportedClientBuildNumber, + this.minimumUnityVersionForUploads = '2019.0.0f1', required this.moderationEmail, required this.notAllowedToSelectAvatarInPrivateWorldMessage, + required this.offlineAnalysis, + required this.photonNameserverOverrides, + required this.photonPublicKeys, + required this.reportCategories, + this.reportFormUrl = + '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}', + required this.reportOptions, + required this.reportReasons, required this.sdkDeveloperFaqUrl, required this.sdkDiscordUrl, required this.sdkNotAllowedToPublishMessage, @@ -92,6 +115,7 @@ class APIConfig { required this.serverName, required this.stringHostUrlList, required this.supportEmail, + this.timekeeping = true, required this.timeOutWorldId, required this.tutorialWorldId, required this.updateRateMsMaximum, @@ -105,377 +129,844 @@ class APIConfig { required this.whiteListedAssetUrls, required this.playerUrlResolverVersion, required this.playerUrlResolverSha1, + this.websocketMaxFriendsRefreshDelay = 900, + this.websocketQuickReconnectTime = 2, + this.websocketReconnectMaxDelay = 2, }); /// Unknown, probably voice optimization testing @JsonKey( - name: r'VoiceEnableDegradation', required: true, includeIfNull: false) + name: r'VoiceEnableDegradation', + required: true, + includeIfNull: false, + ) final bool voiceEnableDegradation; /// Unknown, probably voice optimization testing @JsonKey( - name: r'VoiceEnableReceiverLimiting', - required: true, - includeIfNull: false) + name: r'VoiceEnableReceiverLimiting', + required: true, + includeIfNull: false, + ) final bool voiceEnableReceiverLimiting; /// VRChat's office address - @JsonKey(name: r'address', required: true, includeIfNull: false) + @JsonKey( + name: r'address', + required: true, + includeIfNull: false, + ) final String address; /// Public Announcements - @JsonKey(name: r'announcements', required: true, includeIfNull: false) + @JsonKey( + name: r'announcements', + required: true, + includeIfNull: false, + ) // ignore: deprecated_member_use_from_same_package final Set announcements; + /// Unknown + @JsonKey( + name: r'analyticsSegment_NewUI_PctOfUsers', + required: true, + includeIfNull: false, + ) + final int analyticsSegmentNewUIPctOfUsers; + + /// Unknown + @JsonKey( + name: r'analyticsSegment_NewUI_Salt', + required: true, + includeIfNull: false, + ) + final String analyticsSegmentNewUISalt; + /// Game name @Deprecated('appName has been deprecated') - @JsonKey(name: r'appName', required: true, includeIfNull: false) + @JsonKey( + name: r'appName', + required: true, + includeIfNull: false, + ) final String appName; /// List of supported Languages @JsonKey( - name: r'availableLanguageCodes', required: true, includeIfNull: false) + name: r'availableLanguageCodes', + required: true, + includeIfNull: false, + ) final List availableLanguageCodes; /// List of supported Languages - @JsonKey(name: r'availableLanguages', required: true, includeIfNull: false) + @JsonKey( + name: r'availableLanguages', + required: true, + includeIfNull: false, + ) final List availableLanguages; /// Build tag of the API server - @JsonKey(name: r'buildVersionTag', required: true, includeIfNull: false) + @JsonKey( + name: r'buildVersionTag', + required: true, + includeIfNull: false, + ) final String buildVersionTag; + /// Unknown + @JsonKey( + name: r'chatboxLogBufferSeconds', + required: true, + includeIfNull: false, + ) + final int chatboxLogBufferSeconds; + /// apiKey to be used for all other requests - @JsonKey(name: r'clientApiKey', required: true, includeIfNull: false) + @JsonKey( + name: r'clientApiKey', + required: true, + includeIfNull: false, + ) final String clientApiKey; /// Unknown - @JsonKey(name: r'clientBPSCeiling', required: true, includeIfNull: false) + @JsonKey( + name: r'clientBPSCeiling', + required: true, + includeIfNull: false, + ) final int clientBPSCeiling; /// Unknown @JsonKey( - name: r'clientDisconnectTimeout', required: true, includeIfNull: false) + name: r'clientDisconnectTimeout', + required: true, + includeIfNull: false, + ) final int clientDisconnectTimeout; /// Unknown @JsonKey( - name: r'clientNetDispatchThread', required: false, includeIfNull: false) + name: r'clientNetDispatchThread', + required: false, + includeIfNull: false, + ) final bool? clientNetDispatchThread; /// Unknown - @JsonKey(name: r'clientNetInThread', required: false, includeIfNull: false) + @JsonKey( + name: r'clientNetDispatchThreadMobile', + required: true, + includeIfNull: false, + ) + final bool clientNetDispatchThreadMobile; + + /// Unknown + @JsonKey( + name: r'clientNetInThread', + required: false, + includeIfNull: false, + ) final bool? clientNetInThread; /// Unknown - @JsonKey(name: r'clientNetInThread2', required: false, includeIfNull: false) + @JsonKey( + name: r'clientNetInThread2', + required: false, + includeIfNull: false, + ) final bool? clientNetInThread2; /// Unknown @JsonKey( - name: r'clientNetInThreadMobile', required: false, includeIfNull: false) + name: r'clientNetInThreadMobile', + required: false, + includeIfNull: false, + ) final bool? clientNetInThreadMobile; /// Unknown @JsonKey( - name: r'clientNetInThreadMobile2', required: false, includeIfNull: false) + name: r'clientNetInThreadMobile2', + required: false, + includeIfNull: false, + ) final bool? clientNetInThreadMobile2; /// Unknown - @JsonKey(name: r'clientNetOutThread', required: false, includeIfNull: false) + @JsonKey( + name: r'clientNetOutThread', + required: false, + includeIfNull: false, + ) final bool? clientNetOutThread; /// Unknown - @JsonKey(name: r'clientNetOutThread2', required: false, includeIfNull: false) + @JsonKey( + name: r'clientNetOutThread2', + required: false, + includeIfNull: false, + ) final bool? clientNetOutThread2; /// Unknown @JsonKey( - name: r'clientNetOutThreadMobile', required: false, includeIfNull: false) + name: r'clientNetOutThreadMobile', + required: false, + includeIfNull: false, + ) final bool? clientNetOutThreadMobile; /// Unknown @JsonKey( - name: r'clientNetOutThreadMobile2', required: false, includeIfNull: false) + name: r'clientNetOutThreadMobile2', + required: false, + includeIfNull: false, + ) final bool? clientNetOutThreadMobile2; /// Unknown - @JsonKey(name: r'clientQR', required: false, includeIfNull: false) + @JsonKey( + name: r'clientQR', + required: false, + includeIfNull: false, + ) final int? clientQR; /// Unknown @JsonKey( - name: r'clientReservedPlayerBPS', required: true, includeIfNull: false) + name: r'clientReservedPlayerBPS', + required: true, + includeIfNull: false, + ) final int clientReservedPlayerBPS; /// Unknown @JsonKey( - name: r'clientSentCountAllowance', required: true, includeIfNull: false) + name: r'clientSentCountAllowance', + required: true, + includeIfNull: false, + ) final int clientSentCountAllowance; + @JsonKey( + name: r'constants', + required: true, + includeIfNull: false, + ) + final APIConfigConstants constants; + /// VRChat's contact email - @JsonKey(name: r'contactEmail', required: true, includeIfNull: false) + @JsonKey( + name: r'contactEmail', + required: true, + includeIfNull: false, + ) final String contactEmail; /// VRChat's copyright-issues-related email - @JsonKey(name: r'copyrightEmail', required: true, includeIfNull: false) + @JsonKey( + name: r'copyrightEmail', + required: true, + includeIfNull: false, + ) final String copyrightEmail; /// Current version number of the Privacy Agreement @JsonKey( - name: r'currentPrivacyVersion', required: false, includeIfNull: false) + name: r'currentPrivacyVersion', + required: false, + includeIfNull: false, + ) final int? currentPrivacyVersion; /// Current version number of the Terms of Service // minimum: 0 - @JsonKey(name: r'currentTOSVersion', required: true, includeIfNull: false) + @JsonKey( + name: r'currentTOSVersion', + required: true, + includeIfNull: false, + ) final int currentTOSVersion; - @JsonKey(name: r'defaultAvatar', required: true, includeIfNull: false) + @JsonKey( + name: r'defaultAvatar', + required: true, + includeIfNull: false, + ) final String defaultAvatar; - @JsonKey(name: r'deploymentGroup', required: true, includeIfNull: false) + @JsonKey( + name: r'deploymentGroup', + required: true, + includeIfNull: false, + ) final DeploymentGroup deploymentGroup; /// Unknown - @JsonKey(name: r'devLanguageCodes', required: false, includeIfNull: false) + @JsonKey( + name: r'devLanguageCodes', + required: false, + includeIfNull: false, + ) final List? devLanguageCodes; /// Link to download the development SDK, use downloadUrls instead @Deprecated('devSdkUrl has been deprecated') - @JsonKey(name: r'devSdkUrl', required: true, includeIfNull: false) + @JsonKey( + name: r'devSdkUrl', + required: true, + includeIfNull: false, + ) final String devSdkUrl; /// Version of the development SDK @Deprecated('devSdkVersion has been deprecated') - @JsonKey(name: r'devSdkVersion', required: true, includeIfNull: false) + @JsonKey( + name: r'devSdkVersion', + required: true, + includeIfNull: false, + ) final String devSdkVersion; /// Unknown, \"dis\" maybe for disconnect? - @JsonKey(name: r'dis-countdown', required: true, includeIfNull: false) + @JsonKey( + name: r'dis-countdown', + required: true, + includeIfNull: false, + ) final DateTime disCountdown; /// Unknown - @JsonKey(name: r'disableAVProInProton', required: false, includeIfNull: false) + @JsonKey( + name: r'disableAVProInProton', + required: false, + includeIfNull: false, + ) final bool? disableAVProInProton; /// Toggles if copying avatars should be disabled - @JsonKey(name: r'disableAvatarCopying', required: true, includeIfNull: false) + @JsonKey( + name: r'disableAvatarCopying', + required: true, + includeIfNull: false, + ) final bool disableAvatarCopying; /// Toggles if avatar gating should be disabled. Avatar gating restricts uploading of avatars to people with the `system_avatar_access` Tag or `admin_avatar_access` Tag - @JsonKey(name: r'disableAvatarGating', required: true, includeIfNull: false) + @JsonKey( + name: r'disableAvatarGating', + required: true, + includeIfNull: false, + ) final bool disableAvatarGating; /// Toggles if the Community Labs should be disabled - @JsonKey(name: r'disableCommunityLabs', required: true, includeIfNull: false) + @JsonKey( + name: r'disableCommunityLabs', + required: true, + includeIfNull: false, + ) final bool disableCommunityLabs; /// Toggles if promotion out of Community Labs should be disabled @JsonKey( - name: r'disableCommunityLabsPromotion', - required: true, - includeIfNull: false) + name: r'disableCommunityLabsPromotion', + required: true, + includeIfNull: false, + ) final bool disableCommunityLabsPromotion; /// Unknown - @JsonKey(name: r'disableEmail', required: true, includeIfNull: false) + @JsonKey( + name: r'disableEmail', + required: true, + includeIfNull: false, + ) final bool disableEmail; /// Unknown - @JsonKey(name: r'disableCaptcha', required: false, includeIfNull: false) + @JsonKey( + name: r'disableCaptcha', + required: false, + includeIfNull: false, + ) final bool? disableCaptcha; /// Toggles if Analytics should be disabled. - @JsonKey(name: r'disableEventStream', required: true, includeIfNull: false) + @JsonKey( + name: r'disableEventStream', + required: true, + includeIfNull: false, + ) final bool disableEventStream; /// Toggles if feedback gating should be disabled. Feedback gating restricts submission of feedback (reporting a World or User) to people with the `system_feedback_access` Tag. - @JsonKey(name: r'disableFeedbackGating', required: true, includeIfNull: false) + @JsonKey( + name: r'disableFeedbackGating', + required: true, + includeIfNull: false, + ) final bool disableFeedbackGating; /// Unknown, probably toggles compilation of frontend web builds? So internal flag? - @JsonKey(name: r'disableFrontendBuilds', required: true, includeIfNull: false) + @JsonKey( + name: r'disableFrontendBuilds', + required: true, + includeIfNull: false, + ) final bool disableFrontendBuilds; /// Unknown - @JsonKey(name: r'disableHello', required: true, includeIfNull: false) + @JsonKey( + name: r'disableHello', + required: true, + includeIfNull: false, + ) final bool disableHello; /// Toggles if signing up for Subscriptions in Oculus is disabled or not. - @JsonKey(name: r'disableOculusSubs', required: true, includeIfNull: false) + @JsonKey( + name: r'disableOculusSubs', + required: true, + includeIfNull: false, + ) final bool disableOculusSubs; /// Toggles if new user account registration should be disabled. - @JsonKey(name: r'disableRegistration', required: true, includeIfNull: false) + @JsonKey( + name: r'disableRegistration', + required: true, + includeIfNull: false, + ) final bool disableRegistration; /// Toggles if Steam Networking should be disabled. VRChat these days uses Photon Unity Networking (PUN) instead. @JsonKey( - name: r'disableSteamNetworking', required: true, includeIfNull: false) + name: r'disableSteamNetworking', + required: true, + includeIfNull: false, + ) final bool disableSteamNetworking; /// Toggles if 2FA should be disabled. @Deprecated('disableTwoFactorAuth has been deprecated') - @JsonKey(name: r'disableTwoFactorAuth', required: true, includeIfNull: false) + @JsonKey( + name: r'disableTwoFactorAuth', + required: true, + includeIfNull: false, + ) final bool disableTwoFactorAuth; /// Toggles if Udon should be universally disabled in-game. - @JsonKey(name: r'disableUdon', required: true, includeIfNull: false) + @JsonKey( + name: r'disableUdon', + required: true, + includeIfNull: false, + ) final bool disableUdon; /// Toggles if account upgrading \"linking with Steam/Oculus\" should be disabled. - @JsonKey(name: r'disableUpgradeAccount', required: true, includeIfNull: false) + @JsonKey( + name: r'disableUpgradeAccount', + required: true, + includeIfNull: false, + ) final bool disableUpgradeAccount; /// Download link for game on the Oculus Rift website. - @JsonKey(name: r'downloadLinkWindows', required: true, includeIfNull: false) + @JsonKey( + name: r'downloadLinkWindows', + required: true, + includeIfNull: false, + ) final String downloadLinkWindows; - @JsonKey(name: r'downloadUrls', required: true, includeIfNull: false) + @JsonKey( + name: r'downloadUrls', + required: true, + includeIfNull: false, + ) final APIConfigDownloadURLList downloadUrls; /// Array of DynamicWorldRow objects, used by the game to display the list of world rows - @JsonKey(name: r'dynamicWorldRows', required: true, includeIfNull: false) + @JsonKey( + name: r'dynamicWorldRows', + required: true, + includeIfNull: false, + ) final Set dynamicWorldRows; /// Unknown - @JsonKey(name: r'economyPauseEnd', required: false, includeIfNull: false) + @JsonKey( + name: r'economyPauseEnd', + required: false, + includeIfNull: false, + ) final String? economyPauseEnd; /// Unknown - @JsonKey(name: r'economyPauseStart', required: false, includeIfNull: false) + @JsonKey( + name: r'economyPauseStart', + required: false, + includeIfNull: false, + ) final String? economyPauseStart; /// Unknown - @JsonKey(name: r'economyState', required: false, includeIfNull: false) + @JsonKey( + name: r'economyState', + required: false, + includeIfNull: false, + ) final int? economyState; - @JsonKey(name: r'events', required: true, includeIfNull: false) + @JsonKey( + name: r'events', + required: true, + includeIfNull: false, + ) final APIConfigEvents events; + /// Unknown + @JsonKey( + name: r'forceUseLatestWorld', + required: true, + includeIfNull: false, + ) + final bool forceUseLatestWorld; + + /// Unknown + @JsonKey( + defaultValue: + '827942544393-r2ouvckvouldn9dg9uruseje575e878f.apps.googleusercontent.com', + name: r'googleApiClientId', + required: true, + includeIfNull: false, + ) + final String googleApiClientId; + /// WorldID be \"offline\" on User profiles if you are not friends with that user. - @JsonKey(name: r'homeWorldId', required: true, includeIfNull: false) + @JsonKey( + name: r'homeWorldId', + required: true, + includeIfNull: false, + ) final String homeWorldId; /// Redirect target if you try to open the base API domain in your browser @JsonKey( - name: r'homepageRedirectTarget', required: true, includeIfNull: false) + name: r'homepageRedirectTarget', + required: true, + includeIfNull: false, + ) final String homepageRedirectTarget; /// WorldID be \"offline\" on User profiles if you are not friends with that user. - @JsonKey(name: r'hubWorldId', required: true, includeIfNull: false) + @JsonKey( + name: r'hubWorldId', + required: true, + includeIfNull: false, + ) final String hubWorldId; /// 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). - @JsonKey(name: r'imageHostUrlList', required: true, includeIfNull: false) + @JsonKey( + name: r'imageHostUrlList', + required: true, + includeIfNull: false, + ) final List imageHostUrlList; /// VRChat's job application email - @JsonKey(name: r'jobsEmail', required: true, includeIfNull: false) + @JsonKey( + name: r'jobsEmail', + required: true, + includeIfNull: false, + ) final String jobsEmail; + @JsonKey( + name: r'minSupportedClientBuildNumber', + required: true, + includeIfNull: false, + ) + final APIConfigMinSupportedClientBuildNumber minSupportedClientBuildNumber; + + /// Minimum Unity version required for uploading assets + @JsonKey( + name: r'minimumUnityVersionForUploads', + required: true, + includeIfNull: false, + ) + final String minimumUnityVersionForUploads; + /// VRChat's moderation related email - @JsonKey(name: r'moderationEmail', required: true, includeIfNull: false) + @JsonKey( + name: r'moderationEmail', + required: true, + includeIfNull: false, + ) final String moderationEmail; /// Used in-game to notify a user they aren't allowed to select avatars in private worlds @JsonKey( - name: r'notAllowedToSelectAvatarInPrivateWorldMessage', - required: true, - includeIfNull: false) + name: r'notAllowedToSelectAvatarInPrivateWorldMessage', + required: true, + includeIfNull: false, + ) final String notAllowedToSelectAvatarInPrivateWorldMessage; + @JsonKey( + name: r'offlineAnalysis', + required: true, + includeIfNull: false, + ) + final APIConfigOfflineAnalysis offlineAnalysis; + + /// Unknown + @JsonKey( + name: r'photonNameserverOverrides', + required: true, + includeIfNull: false, + ) + final List photonNameserverOverrides; + + /// Unknown + @JsonKey( + name: r'photonPublicKeys', + required: true, + includeIfNull: false, + ) + final List photonPublicKeys; + + @JsonKey( + name: r'reportCategories', + required: true, + includeIfNull: false, + ) + final APIConfigReportCategories reportCategories; + + /// URL to the report form + @JsonKey( + defaultValue: + '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}', + name: r'reportFormUrl', + required: true, + includeIfNull: false, + ) + final String reportFormUrl; + + /// Options for reporting content + @JsonKey( + name: r'reportOptions', + required: true, + includeIfNull: false, + ) + final Object reportOptions; + + @JsonKey( + name: r'reportReasons', + required: true, + includeIfNull: false, + ) + final APIConfigReportReasons reportReasons; + /// Link to the developer FAQ - @JsonKey(name: r'sdkDeveloperFaqUrl', required: true, includeIfNull: false) + @JsonKey( + name: r'sdkDeveloperFaqUrl', + required: true, + includeIfNull: false, + ) final String sdkDeveloperFaqUrl; /// Link to the official VRChat Discord - @JsonKey(name: r'sdkDiscordUrl', required: true, includeIfNull: false) + @JsonKey( + name: r'sdkDiscordUrl', + required: true, + includeIfNull: false, + ) final String sdkDiscordUrl; /// Used in the SDK to notify a user they aren't allowed to upload avatars/worlds yet @JsonKey( - name: r'sdkNotAllowedToPublishMessage', - required: true, - includeIfNull: false) + name: r'sdkNotAllowedToPublishMessage', + required: true, + includeIfNull: false, + ) final String sdkNotAllowedToPublishMessage; /// Unity version supported by the SDK - @JsonKey(name: r'sdkUnityVersion', required: true, includeIfNull: false) + @JsonKey( + name: r'sdkUnityVersion', + required: true, + includeIfNull: false, + ) final String sdkUnityVersion; /// Server name of the API server currently responding - @JsonKey(name: r'serverName', required: true, includeIfNull: false) + @JsonKey( + name: r'serverName', + required: true, + includeIfNull: false, + ) final String serverName; /// A list of explicitly allowed origins that worlds can request strings from via the Udon's [VRCStringDownloader.LoadUrl](https://creators.vrchat.com/worlds/udon/string-loading/#ivrcstringdownload). - @JsonKey(name: r'stringHostUrlList', required: true, includeIfNull: false) + @JsonKey( + name: r'stringHostUrlList', + required: true, + includeIfNull: false, + ) final List stringHostUrlList; /// VRChat's support email - @JsonKey(name: r'supportEmail', required: true, includeIfNull: false) + @JsonKey( + name: r'supportEmail', + required: true, + includeIfNull: false, + ) final String supportEmail; + /// Unknown + @JsonKey( + name: r'timekeeping', + required: true, + includeIfNull: false, + ) + final bool timekeeping; + /// WorldID be \"offline\" on User profiles if you are not friends with that user. - @JsonKey(name: r'timeOutWorldId', required: true, includeIfNull: false) + @JsonKey( + name: r'timeOutWorldId', + required: true, + includeIfNull: false, + ) final String timeOutWorldId; /// WorldID be \"offline\" on User profiles if you are not friends with that user. - @JsonKey(name: r'tutorialWorldId', required: true, includeIfNull: false) + @JsonKey( + name: r'tutorialWorldId', + required: true, + includeIfNull: false, + ) final String tutorialWorldId; /// Unknown - @JsonKey(name: r'updateRateMsMaximum', required: true, includeIfNull: false) + @JsonKey( + name: r'updateRateMsMaximum', + required: true, + includeIfNull: false, + ) final int updateRateMsMaximum; /// Unknown - @JsonKey(name: r'updateRateMsMinimum', required: true, includeIfNull: false) + @JsonKey( + name: r'updateRateMsMinimum', + required: true, + includeIfNull: false, + ) final int updateRateMsMinimum; /// Unknown - @JsonKey(name: r'updateRateMsNormal', required: true, includeIfNull: false) + @JsonKey( + name: r'updateRateMsNormal', + required: true, + includeIfNull: false, + ) final int updateRateMsNormal; /// Unknown @JsonKey( - name: r'updateRateMsUdonManual', required: true, includeIfNull: false) + name: r'updateRateMsUdonManual', + required: true, + includeIfNull: false, + ) final int updateRateMsUdonManual; /// Unknown - @JsonKey(name: r'uploadAnalysisPercent', required: true, includeIfNull: false) + @JsonKey( + name: r'uploadAnalysisPercent', + required: true, + includeIfNull: false, + ) final int uploadAnalysisPercent; /// List of allowed URLs that bypass the \"Allow untrusted URL's\" setting in-game - @JsonKey(name: r'urlList', required: true, includeIfNull: false) + @JsonKey( + name: r'urlList', + required: true, + includeIfNull: false, + ) final List urlList; /// Unknown @JsonKey( - name: r'useReliableUdpForVoice', required: true, includeIfNull: false) + name: r'useReliableUdpForVoice', + required: true, + includeIfNull: false, + ) final bool useReliableUdpForVoice; /// Download link for game on the Steam website. - @JsonKey(name: r'viveWindowsUrl', required: true, includeIfNull: false) + @JsonKey( + name: r'viveWindowsUrl', + required: true, + includeIfNull: false, + ) final String viveWindowsUrl; /// List of allowed URLs that are allowed to host avatar assets - @JsonKey(name: r'whiteListedAssetUrls', required: true, includeIfNull: false) + @JsonKey( + name: r'whiteListedAssetUrls', + required: true, + includeIfNull: false, + ) final List whiteListedAssetUrls; /// Currently used youtube-dl.exe version @JsonKey( - name: r'player-url-resolver-version', - required: true, - includeIfNull: false) + name: r'player-url-resolver-version', + required: true, + includeIfNull: false, + ) final String playerUrlResolverVersion; /// Currently used youtube-dl.exe hash in SHA1-delimited format @JsonKey( - name: r'player-url-resolver-sha1', required: true, includeIfNull: false) + name: r'player-url-resolver-sha1', + required: true, + includeIfNull: false, + ) final String playerUrlResolverSha1; + /// Unknown + @JsonKey( + name: r'websocketMaxFriendsRefreshDelay', + required: true, + includeIfNull: false, + ) + final int websocketMaxFriendsRefreshDelay; + + /// Unknown + @JsonKey( + name: r'websocketQuickReconnectTime', + required: true, + includeIfNull: false, + ) + final int websocketQuickReconnectTime; + + /// Unknown + @JsonKey( + name: r'websocketReconnectMaxDelay', + required: true, + includeIfNull: false, + ) + final int websocketReconnectMaxDelay; + @override bool operator ==(Object other) => identical(this, other) || @@ -484,15 +975,21 @@ class APIConfig { other.voiceEnableReceiverLimiting == voiceEnableReceiverLimiting && other.address == address && other.announcements == announcements && + other.analyticsSegmentNewUIPctOfUsers == + analyticsSegmentNewUIPctOfUsers && + other.analyticsSegmentNewUISalt == analyticsSegmentNewUISalt && // ignore: deprecated_member_use_from_same_package other.appName == appName && other.availableLanguageCodes == availableLanguageCodes && other.availableLanguages == availableLanguages && other.buildVersionTag == buildVersionTag && + other.chatboxLogBufferSeconds == chatboxLogBufferSeconds && other.clientApiKey == clientApiKey && other.clientBPSCeiling == clientBPSCeiling && other.clientDisconnectTimeout == clientDisconnectTimeout && other.clientNetDispatchThread == clientNetDispatchThread && + other.clientNetDispatchThreadMobile == + clientNetDispatchThreadMobile && other.clientNetInThread == clientNetInThread && other.clientNetInThread2 == clientNetInThread2 && other.clientNetInThreadMobile == clientNetInThreadMobile && @@ -504,6 +1001,7 @@ class APIConfig { other.clientQR == clientQR && other.clientReservedPlayerBPS == clientReservedPlayerBPS && other.clientSentCountAllowance == clientSentCountAllowance && + other.constants == constants && other.contactEmail == contactEmail && other.copyrightEmail == copyrightEmail && other.currentPrivacyVersion == currentPrivacyVersion && @@ -542,14 +1040,27 @@ class APIConfig { other.economyPauseStart == economyPauseStart && other.economyState == economyState && other.events == events && + other.forceUseLatestWorld == forceUseLatestWorld && + other.googleApiClientId == googleApiClientId && other.homeWorldId == homeWorldId && other.homepageRedirectTarget == homepageRedirectTarget && other.hubWorldId == hubWorldId && other.imageHostUrlList == imageHostUrlList && other.jobsEmail == jobsEmail && + other.minSupportedClientBuildNumber == + minSupportedClientBuildNumber && + other.minimumUnityVersionForUploads == + minimumUnityVersionForUploads && other.moderationEmail == moderationEmail && other.notAllowedToSelectAvatarInPrivateWorldMessage == notAllowedToSelectAvatarInPrivateWorldMessage && + other.offlineAnalysis == offlineAnalysis && + other.photonNameserverOverrides == photonNameserverOverrides && + other.photonPublicKeys == photonPublicKeys && + other.reportCategories == reportCategories && + other.reportFormUrl == reportFormUrl && + other.reportOptions == reportOptions && + other.reportReasons == reportReasons && other.sdkDeveloperFaqUrl == sdkDeveloperFaqUrl && other.sdkDiscordUrl == sdkDiscordUrl && other.sdkNotAllowedToPublishMessage == @@ -558,6 +1069,7 @@ class APIConfig { other.serverName == serverName && other.stringHostUrlList == stringHostUrlList && other.supportEmail == supportEmail && + other.timekeeping == timekeeping && other.timeOutWorldId == timeOutWorldId && other.tutorialWorldId == tutorialWorldId && other.updateRateMsMaximum == updateRateMsMaximum && @@ -570,7 +1082,11 @@ class APIConfig { other.viveWindowsUrl == viveWindowsUrl && other.whiteListedAssetUrls == whiteListedAssetUrls && other.playerUrlResolverVersion == playerUrlResolverVersion && - other.playerUrlResolverSha1 == playerUrlResolverSha1; + other.playerUrlResolverSha1 == playerUrlResolverSha1 && + other.websocketMaxFriendsRefreshDelay == + websocketMaxFriendsRefreshDelay && + other.websocketQuickReconnectTime == websocketQuickReconnectTime && + other.websocketReconnectMaxDelay == websocketReconnectMaxDelay; @override int get hashCode => @@ -578,15 +1094,19 @@ class APIConfig { voiceEnableReceiverLimiting.hashCode + address.hashCode + announcements.hashCode + + analyticsSegmentNewUIPctOfUsers.hashCode + + analyticsSegmentNewUISalt.hashCode + // ignore: deprecated_member_use_from_same_package appName.hashCode + availableLanguageCodes.hashCode + availableLanguages.hashCode + buildVersionTag.hashCode + + chatboxLogBufferSeconds.hashCode + clientApiKey.hashCode + clientBPSCeiling.hashCode + clientDisconnectTimeout.hashCode + clientNetDispatchThread.hashCode + + clientNetDispatchThreadMobile.hashCode + clientNetInThread.hashCode + clientNetInThread2.hashCode + clientNetInThreadMobile.hashCode + @@ -598,6 +1118,7 @@ class APIConfig { clientQR.hashCode + clientReservedPlayerBPS.hashCode + clientSentCountAllowance.hashCode + + constants.hashCode + contactEmail.hashCode + copyrightEmail.hashCode + currentPrivacyVersion.hashCode + @@ -635,13 +1156,24 @@ class APIConfig { economyPauseStart.hashCode + economyState.hashCode + events.hashCode + + forceUseLatestWorld.hashCode + + googleApiClientId.hashCode + homeWorldId.hashCode + homepageRedirectTarget.hashCode + hubWorldId.hashCode + imageHostUrlList.hashCode + jobsEmail.hashCode + + minSupportedClientBuildNumber.hashCode + + minimumUnityVersionForUploads.hashCode + moderationEmail.hashCode + notAllowedToSelectAvatarInPrivateWorldMessage.hashCode + + offlineAnalysis.hashCode + + photonNameserverOverrides.hashCode + + photonPublicKeys.hashCode + + reportCategories.hashCode + + reportFormUrl.hashCode + + reportOptions.hashCode + + reportReasons.hashCode + sdkDeveloperFaqUrl.hashCode + sdkDiscordUrl.hashCode + sdkNotAllowedToPublishMessage.hashCode + @@ -649,6 +1181,7 @@ class APIConfig { serverName.hashCode + stringHostUrlList.hashCode + supportEmail.hashCode + + timekeeping.hashCode + timeOutWorldId.hashCode + tutorialWorldId.hashCode + updateRateMsMaximum.hashCode + @@ -661,7 +1194,10 @@ class APIConfig { viveWindowsUrl.hashCode + whiteListedAssetUrls.hashCode + playerUrlResolverVersion.hashCode + - playerUrlResolverSha1.hashCode; + playerUrlResolverSha1.hashCode + + websocketMaxFriendsRefreshDelay.hashCode + + websocketQuickReconnectTime.hashCode + + websocketReconnectMaxDelay.hashCode; factory APIConfig.fromJson(Map json) => _$APIConfigFromJson(json); 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 30c2866..febe448 100644 --- a/vrchat_dart_generated/lib/src/model/api_config.g.dart +++ b/vrchat_dart_generated/lib/src/model/api_config.g.dart @@ -19,15 +19,20 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( 'VoiceEnableReceiverLimiting', 'address', 'announcements', + 'analyticsSegment_NewUI_PctOfUsers', + 'analyticsSegment_NewUI_Salt', 'appName', 'availableLanguageCodes', 'availableLanguages', 'buildVersionTag', + 'chatboxLogBufferSeconds', 'clientApiKey', 'clientBPSCeiling', 'clientDisconnectTimeout', + 'clientNetDispatchThreadMobile', 'clientReservedPlayerBPS', 'clientSentCountAllowance', + 'constants', 'contactEmail', 'copyrightEmail', 'currentTOSVersion', @@ -55,13 +60,24 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( 'downloadUrls', 'dynamicWorldRows', 'events', + 'forceUseLatestWorld', + 'googleApiClientId', 'homeWorldId', 'homepageRedirectTarget', 'hubWorldId', 'imageHostUrlList', 'jobsEmail', + 'minSupportedClientBuildNumber', + 'minimumUnityVersionForUploads', 'moderationEmail', 'notAllowedToSelectAvatarInPrivateWorldMessage', + 'offlineAnalysis', + 'photonNameserverOverrides', + 'photonPublicKeys', + 'reportCategories', + 'reportFormUrl', + 'reportOptions', + 'reportReasons', 'sdkDeveloperFaqUrl', 'sdkDiscordUrl', 'sdkNotAllowedToPublishMessage', @@ -69,6 +85,7 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( 'serverName', 'stringHostUrlList', 'supportEmail', + 'timekeeping', 'timeOutWorldId', 'tutorialWorldId', 'updateRateMsMaximum', @@ -81,7 +98,10 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( 'viveWindowsUrl', 'whiteListedAssetUrls', 'player-url-resolver-version', - 'player-url-resolver-sha1' + 'player-url-resolver-sha1', + 'websocketMaxFriendsRefreshDelay', + 'websocketQuickReconnectTime', + 'websocketReconnectMaxDelay' ], ); final val = APIConfig( @@ -96,6 +116,10 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( .map((e) => APIConfigAnnouncement.fromJson(e as Map)) .toSet()), + analyticsSegmentNewUIPctOfUsers: $checkedConvert( + 'analyticsSegment_NewUI_PctOfUsers', (v) => (v as num).toInt()), + analyticsSegmentNewUISalt: $checkedConvert( + 'analyticsSegment_NewUI_Salt', (v) => v as String), appName: $checkedConvert('appName', (v) => v as String? ?? 'VrChat'), availableLanguageCodes: $checkedConvert('availableLanguageCodes', (v) => (v as List).map((e) => e as String).toList()), @@ -103,6 +127,8 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( (v) => (v as List).map((e) => e as String).toList()), buildVersionTag: $checkedConvert('buildVersionTag', (v) => v as String), + chatboxLogBufferSeconds: $checkedConvert( + 'chatboxLogBufferSeconds', (v) => (v as num?)?.toInt() ?? 40), clientApiKey: $checkedConvert('clientApiKey', (v) => v as String), clientBPSCeiling: $checkedConvert( 'clientBPSCeiling', (v) => (v as num?)?.toInt() ?? 18432), @@ -110,6 +136,8 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( 'clientDisconnectTimeout', (v) => (v as num?)?.toInt() ?? 30000), clientNetDispatchThread: $checkedConvert( 'clientNetDispatchThread', (v) => v as bool? ?? false), + clientNetDispatchThreadMobile: $checkedConvert( + 'clientNetDispatchThreadMobile', (v) => v as bool? ?? true), clientNetInThread: $checkedConvert('clientNetInThread', (v) => v as bool? ?? false), clientNetInThread2: @@ -132,6 +160,8 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( 'clientReservedPlayerBPS', (v) => (v as num?)?.toInt() ?? 7168), clientSentCountAllowance: $checkedConvert( 'clientSentCountAllowance', (v) => (v as num?)?.toInt() ?? 15), + constants: $checkedConvert('constants', + (v) => APIConfigConstants.fromJson(v as Map)), contactEmail: $checkedConvert('contactEmail', (v) => v as String), copyrightEmail: $checkedConvert('copyrightEmail', (v) => v as String), currentPrivacyVersion: $checkedConvert( @@ -201,6 +231,13 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( $checkedConvert('economyState', (v) => (v as num?)?.toInt() ?? 1), events: $checkedConvert('events', (v) => APIConfigEvents.fromJson(v as Map)), + forceUseLatestWorld: + $checkedConvert('forceUseLatestWorld', (v) => v as bool? ?? true), + googleApiClientId: $checkedConvert( + 'googleApiClientId', + (v) => + v as String? ?? + '827942544393-r2ouvckvouldn9dg9uruseje575e878f.apps.googleusercontent.com'), homeWorldId: $checkedConvert('homeWorldId', (v) => v as String), homepageRedirectTarget: $checkedConvert('homepageRedirectTarget', (v) => v as String? ?? 'https://hello.vrchat.com'), @@ -208,11 +245,41 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( imageHostUrlList: $checkedConvert('imageHostUrlList', (v) => (v as List).map((e) => e as String).toList()), jobsEmail: $checkedConvert('jobsEmail', (v) => v as String), + minSupportedClientBuildNumber: $checkedConvert( + 'minSupportedClientBuildNumber', + (v) => APIConfigMinSupportedClientBuildNumber.fromJson( + v as Map)), + minimumUnityVersionForUploads: $checkedConvert( + 'minimumUnityVersionForUploads', + (v) => v as String? ?? '2019.0.0f1'), moderationEmail: $checkedConvert('moderationEmail', (v) => v as String), notAllowedToSelectAvatarInPrivateWorldMessage: $checkedConvert( 'notAllowedToSelectAvatarInPrivateWorldMessage', (v) => v as String), + offlineAnalysis: $checkedConvert( + 'offlineAnalysis', + (v) => + APIConfigOfflineAnalysis.fromJson(v as Map)), + photonNameserverOverrides: $checkedConvert( + 'photonNameserverOverrides', + (v) => (v as List).map((e) => e as String).toList()), + photonPublicKeys: $checkedConvert('photonPublicKeys', + (v) => (v as List).map((e) => e as String).toList()), + reportCategories: $checkedConvert( + 'reportCategories', + (v) => APIConfigReportCategories.fromJson( + v as Map)), + reportFormUrl: $checkedConvert( + 'reportFormUrl', + (v) => + v as String? ?? + '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: $checkedConvert('reportOptions', (v) => v as Object), + reportReasons: $checkedConvert( + 'reportReasons', + (v) => + APIConfigReportReasons.fromJson(v as Map)), sdkDeveloperFaqUrl: $checkedConvert('sdkDeveloperFaqUrl', (v) => v as String), sdkDiscordUrl: $checkedConvert('sdkDiscordUrl', (v) => v as String), @@ -224,6 +291,8 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( stringHostUrlList: $checkedConvert('stringHostUrlList', (v) => (v as List).map((e) => e as String).toList()), supportEmail: $checkedConvert('supportEmail', (v) => v as String), + timekeeping: + $checkedConvert('timekeeping', (v) => v as bool? ?? true), timeOutWorldId: $checkedConvert('timeOutWorldId', (v) => v as String), tutorialWorldId: $checkedConvert('tutorialWorldId', (v) => v as String), @@ -248,12 +317,21 @@ APIConfig _$APIConfigFromJson(Map json) => $checkedCreate( 'player-url-resolver-version', (v) => v as String), playerUrlResolverSha1: $checkedConvert('player-url-resolver-sha1', (v) => v as String), + websocketMaxFriendsRefreshDelay: $checkedConvert( + 'websocketMaxFriendsRefreshDelay', + (v) => (v as num?)?.toInt() ?? 900), + websocketQuickReconnectTime: $checkedConvert( + 'websocketQuickReconnectTime', (v) => (v as num?)?.toInt() ?? 2), + websocketReconnectMaxDelay: $checkedConvert( + 'websocketReconnectMaxDelay', (v) => (v as num?)?.toInt() ?? 2), ); return val; }, fieldKeyMap: const { 'voiceEnableDegradation': 'VoiceEnableDegradation', 'voiceEnableReceiverLimiting': 'VoiceEnableReceiverLimiting', + 'analyticsSegmentNewUIPctOfUsers': 'analyticsSegment_NewUI_PctOfUsers', + 'analyticsSegmentNewUISalt': 'analyticsSegment_NewUI_Salt', 'disCountdown': 'dis-countdown', 'playerUrlResolverVersion': 'player-url-resolver-version', 'playerUrlResolverSha1': 'player-url-resolver-sha1' @@ -266,10 +344,14 @@ Map _$APIConfigToJson(APIConfig instance) { 'VoiceEnableReceiverLimiting': instance.voiceEnableReceiverLimiting, 'address': instance.address, 'announcements': instance.announcements.map((e) => e.toJson()).toList(), + 'analyticsSegment_NewUI_PctOfUsers': + instance.analyticsSegmentNewUIPctOfUsers, + 'analyticsSegment_NewUI_Salt': instance.analyticsSegmentNewUISalt, 'appName': instance.appName, 'availableLanguageCodes': instance.availableLanguageCodes, 'availableLanguages': instance.availableLanguages, 'buildVersionTag': instance.buildVersionTag, + 'chatboxLogBufferSeconds': instance.chatboxLogBufferSeconds, 'clientApiKey': instance.clientApiKey, 'clientBPSCeiling': instance.clientBPSCeiling, 'clientDisconnectTimeout': instance.clientDisconnectTimeout, @@ -282,6 +364,7 @@ Map _$APIConfigToJson(APIConfig instance) { } writeNotNull('clientNetDispatchThread', instance.clientNetDispatchThread); + val['clientNetDispatchThreadMobile'] = instance.clientNetDispatchThreadMobile; writeNotNull('clientNetInThread', instance.clientNetInThread); writeNotNull('clientNetInThread2', instance.clientNetInThread2); writeNotNull('clientNetInThreadMobile', instance.clientNetInThreadMobile); @@ -293,6 +376,7 @@ Map _$APIConfigToJson(APIConfig instance) { writeNotNull('clientQR', instance.clientQR); val['clientReservedPlayerBPS'] = instance.clientReservedPlayerBPS; val['clientSentCountAllowance'] = instance.clientSentCountAllowance; + val['constants'] = instance.constants.toJson(); val['contactEmail'] = instance.contactEmail; val['copyrightEmail'] = instance.copyrightEmail; writeNotNull('currentPrivacyVersion', instance.currentPrivacyVersion); @@ -328,14 +412,26 @@ Map _$APIConfigToJson(APIConfig instance) { writeNotNull('economyPauseStart', instance.economyPauseStart); writeNotNull('economyState', instance.economyState); val['events'] = instance.events.toJson(); + val['forceUseLatestWorld'] = instance.forceUseLatestWorld; + val['googleApiClientId'] = instance.googleApiClientId; val['homeWorldId'] = instance.homeWorldId; val['homepageRedirectTarget'] = instance.homepageRedirectTarget; val['hubWorldId'] = instance.hubWorldId; val['imageHostUrlList'] = instance.imageHostUrlList; val['jobsEmail'] = instance.jobsEmail; + val['minSupportedClientBuildNumber'] = + instance.minSupportedClientBuildNumber.toJson(); + val['minimumUnityVersionForUploads'] = instance.minimumUnityVersionForUploads; val['moderationEmail'] = instance.moderationEmail; val['notAllowedToSelectAvatarInPrivateWorldMessage'] = instance.notAllowedToSelectAvatarInPrivateWorldMessage; + val['offlineAnalysis'] = instance.offlineAnalysis.toJson(); + val['photonNameserverOverrides'] = instance.photonNameserverOverrides; + val['photonPublicKeys'] = instance.photonPublicKeys; + val['reportCategories'] = instance.reportCategories.toJson(); + val['reportFormUrl'] = instance.reportFormUrl; + val['reportOptions'] = instance.reportOptions; + val['reportReasons'] = instance.reportReasons.toJson(); val['sdkDeveloperFaqUrl'] = instance.sdkDeveloperFaqUrl; val['sdkDiscordUrl'] = instance.sdkDiscordUrl; val['sdkNotAllowedToPublishMessage'] = instance.sdkNotAllowedToPublishMessage; @@ -343,6 +439,7 @@ Map _$APIConfigToJson(APIConfig instance) { val['serverName'] = instance.serverName; val['stringHostUrlList'] = instance.stringHostUrlList; val['supportEmail'] = instance.supportEmail; + val['timekeeping'] = instance.timekeeping; val['timeOutWorldId'] = instance.timeOutWorldId; val['tutorialWorldId'] = instance.tutorialWorldId; val['updateRateMsMaximum'] = instance.updateRateMsMaximum; @@ -356,6 +453,10 @@ Map _$APIConfigToJson(APIConfig instance) { val['whiteListedAssetUrls'] = instance.whiteListedAssetUrls; val['player-url-resolver-version'] = instance.playerUrlResolverVersion; val['player-url-resolver-sha1'] = instance.playerUrlResolverSha1; + val['websocketMaxFriendsRefreshDelay'] = + instance.websocketMaxFriendsRefreshDelay; + val['websocketQuickReconnectTime'] = instance.websocketQuickReconnectTime; + val['websocketReconnectMaxDelay'] = instance.websocketReconnectMaxDelay; return val; } diff --git a/vrchat_dart_generated/lib/src/model/api_config_announcement.dart b/vrchat_dart_generated/lib/src/model/api_config_announcement.dart index 12447ab..4ba4823 100644 --- a/vrchat_dart_generated/lib/src/model/api_config_announcement.dart +++ b/vrchat_dart_generated/lib/src/model/api_config_announcement.dart @@ -22,11 +22,19 @@ class APIConfigAnnouncement { }); /// Announcement name - @JsonKey(name: r'name', required: true, includeIfNull: false) + @JsonKey( + name: r'name', + required: true, + includeIfNull: false, + ) final String name; /// Announcement text - @JsonKey(name: r'text', required: true, includeIfNull: false) + @JsonKey( + name: r'text', + required: true, + includeIfNull: false, + ) final String text; @override diff --git a/vrchat_dart_generated/lib/src/model/api_config_constants.dart b/vrchat_dart_generated/lib/src/model/api_config_constants.dart new file mode 100644 index 0000000..a43fe6d --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_constants.dart @@ -0,0 +1,68 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/api_config_constants_language.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_constants_groups.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_constants_instance.dart'; +import 'package:json_annotation/json_annotation.dart'; + +part 'api_config_constants.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class APIConfigConstants { + /// Returns a new [APIConfigConstants] instance. + APIConfigConstants({ + required this.groups, + required this.instance, + required this.language, + }); + + @JsonKey( + name: r'GROUPS', + required: true, + includeIfNull: false, + ) + final APIConfigConstantsGROUPS groups; + + @JsonKey( + name: r'INSTANCE', + required: true, + includeIfNull: false, + ) + final APIConfigConstantsINSTANCE instance; + + @JsonKey( + name: r'LANGUAGE', + required: true, + includeIfNull: false, + ) + final APIConfigConstantsLANGUAGE language; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is APIConfigConstants && + other.groups == groups && + other.instance == instance && + other.language == language; + + @override + int get hashCode => groups.hashCode + instance.hashCode + language.hashCode; + + factory APIConfigConstants.fromJson(Map json) => + _$APIConfigConstantsFromJson(json); + + Map toJson() => _$APIConfigConstantsToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_constants.g.dart b/vrchat_dart_generated/lib/src/model/api_config_constants.g.dart new file mode 100644 index 0000000..d070c4e --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_constants.g.dart @@ -0,0 +1,48 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'api_config_constants.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +APIConfigConstants _$APIConfigConstantsFromJson(Map json) => + $checkedCreate( + 'APIConfigConstants', + json, + ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const ['GROUPS', 'INSTANCE', 'LANGUAGE'], + ); + final val = APIConfigConstants( + groups: $checkedConvert( + 'GROUPS', + (v) => + APIConfigConstantsGROUPS.fromJson(v as Map)), + instance: $checkedConvert( + 'INSTANCE', + (v) => APIConfigConstantsINSTANCE.fromJson( + v as Map)), + language: $checkedConvert( + 'LANGUAGE', + (v) => APIConfigConstantsLANGUAGE.fromJson( + v as Map)), + ); + return val; + }, + fieldKeyMap: const { + 'groups': 'GROUPS', + 'instance': 'INSTANCE', + 'language': 'LANGUAGE' + }, + ); + +Map _$APIConfigConstantsToJson(APIConfigConstants instance) => + { + 'GROUPS': instance.groups.toJson(), + 'INSTANCE': instance.instance.toJson(), + 'LANGUAGE': instance.language.toJson(), + }; diff --git a/vrchat_dart_generated/lib/src/model/api_config_constants_groups.dart b/vrchat_dart_generated/lib/src/model/api_config_constants_groups.dart new file mode 100644 index 0000000..9b7964e --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_constants_groups.dart @@ -0,0 +1,148 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:json_annotation/json_annotation.dart'; + +part 'api_config_constants_groups.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class APIConfigConstantsGROUPS { + /// Returns a new [APIConfigConstantsGROUPS] instance. + APIConfigConstantsGROUPS({ + this.capacity = 100000, + this.groupTransferRequirements, + this.maxInvitesRequests = 50, + this.maxJoined = 100, + this.maxJoinedPlus = 200, + this.maxLanguages = 10, + this.maxLinks = 3, + this.maxManagementRoles = 5, + this.maxOwned = 5, + this.maxRoles = 50, + }); + + /// Maximum group capacity + @JsonKey( + name: r'CAPACITY', + required: false, + includeIfNull: false, + ) + final int? capacity; + + /// Requirements for transferring group ownership + @JsonKey( + name: r'GROUP_TRANSFER_REQUIREMENTS', + required: false, + includeIfNull: false, + ) + final List? groupTransferRequirements; + + /// Maximum number of invite requests + @JsonKey( + name: r'MAX_INVITES_REQUESTS', + required: false, + includeIfNull: false, + ) + final int? maxInvitesRequests; + + /// Maximum number of joined groups + @JsonKey( + name: r'MAX_JOINED', + required: false, + includeIfNull: false, + ) + final int? maxJoined; + + /// Maximum number of joined groups for VRChat Plus members + @JsonKey( + name: r'MAX_JOINED_PLUS', + required: false, + includeIfNull: false, + ) + final int? maxJoinedPlus; + + /// Maximum number of supported languages + @JsonKey( + name: r'MAX_LANGUAGES', + required: false, + includeIfNull: false, + ) + final int? maxLanguages; + + /// Maximum number of group links + @JsonKey( + name: r'MAX_LINKS', + required: false, + includeIfNull: false, + ) + final int? maxLinks; + + /// Maximum number of management roles in a group + @JsonKey( + name: r'MAX_MANAGEMENT_ROLES', + required: false, + includeIfNull: false, + ) + final int? maxManagementRoles; + + /// Maximum number of groups a user can own + @JsonKey( + name: r'MAX_OWNED', + required: false, + includeIfNull: false, + ) + final int? maxOwned; + + /// Maximum number of roles in a group + @JsonKey( + name: r'MAX_ROLES', + required: false, + includeIfNull: false, + ) + final int? maxRoles; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is APIConfigConstantsGROUPS && + other.capacity == capacity && + other.groupTransferRequirements == groupTransferRequirements && + other.maxInvitesRequests == maxInvitesRequests && + other.maxJoined == maxJoined && + other.maxJoinedPlus == maxJoinedPlus && + other.maxLanguages == maxLanguages && + other.maxLinks == maxLinks && + other.maxManagementRoles == maxManagementRoles && + other.maxOwned == maxOwned && + other.maxRoles == maxRoles; + + @override + int get hashCode => + capacity.hashCode + + groupTransferRequirements.hashCode + + maxInvitesRequests.hashCode + + maxJoined.hashCode + + maxJoinedPlus.hashCode + + maxLanguages.hashCode + + maxLinks.hashCode + + maxManagementRoles.hashCode + + maxOwned.hashCode + + maxRoles.hashCode; + + factory APIConfigConstantsGROUPS.fromJson(Map json) => + _$APIConfigConstantsGROUPSFromJson(json); + + Map toJson() => _$APIConfigConstantsGROUPSToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_constants_groups.g.dart b/vrchat_dart_generated/lib/src/model/api_config_constants_groups.g.dart new file mode 100644 index 0000000..17f354b --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_constants_groups.g.dart @@ -0,0 +1,78 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'api_config_constants_groups.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +APIConfigConstantsGROUPS _$APIConfigConstantsGROUPSFromJson( + Map json) => + $checkedCreate( + 'APIConfigConstantsGROUPS', + json, + ($checkedConvert) { + final val = APIConfigConstantsGROUPS( + capacity: $checkedConvert( + 'CAPACITY', (v) => (v as num?)?.toInt() ?? 100000), + groupTransferRequirements: $checkedConvert( + 'GROUP_TRANSFER_REQUIREMENTS', + (v) => (v as List?)?.map((e) => e as String).toList()), + maxInvitesRequests: $checkedConvert( + 'MAX_INVITES_REQUESTS', (v) => (v as num?)?.toInt() ?? 50), + maxJoined: + $checkedConvert('MAX_JOINED', (v) => (v as num?)?.toInt() ?? 100), + maxJoinedPlus: $checkedConvert( + 'MAX_JOINED_PLUS', (v) => (v as num?)?.toInt() ?? 200), + maxLanguages: $checkedConvert( + 'MAX_LANGUAGES', (v) => (v as num?)?.toInt() ?? 10), + maxLinks: + $checkedConvert('MAX_LINKS', (v) => (v as num?)?.toInt() ?? 3), + maxManagementRoles: $checkedConvert( + 'MAX_MANAGEMENT_ROLES', (v) => (v as num?)?.toInt() ?? 5), + maxOwned: + $checkedConvert('MAX_OWNED', (v) => (v as num?)?.toInt() ?? 5), + maxRoles: + $checkedConvert('MAX_ROLES', (v) => (v as num?)?.toInt() ?? 50), + ); + return val; + }, + fieldKeyMap: const { + 'capacity': 'CAPACITY', + 'groupTransferRequirements': 'GROUP_TRANSFER_REQUIREMENTS', + 'maxInvitesRequests': 'MAX_INVITES_REQUESTS', + 'maxJoined': 'MAX_JOINED', + 'maxJoinedPlus': 'MAX_JOINED_PLUS', + 'maxLanguages': 'MAX_LANGUAGES', + 'maxLinks': 'MAX_LINKS', + 'maxManagementRoles': 'MAX_MANAGEMENT_ROLES', + 'maxOwned': 'MAX_OWNED', + 'maxRoles': 'MAX_ROLES' + }, + ); + +Map _$APIConfigConstantsGROUPSToJson( + APIConfigConstantsGROUPS instance) { + final val = {}; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('CAPACITY', instance.capacity); + writeNotNull( + 'GROUP_TRANSFER_REQUIREMENTS', instance.groupTransferRequirements); + writeNotNull('MAX_INVITES_REQUESTS', instance.maxInvitesRequests); + writeNotNull('MAX_JOINED', instance.maxJoined); + writeNotNull('MAX_JOINED_PLUS', instance.maxJoinedPlus); + writeNotNull('MAX_LANGUAGES', instance.maxLanguages); + writeNotNull('MAX_LINKS', instance.maxLinks); + writeNotNull('MAX_MANAGEMENT_ROLES', instance.maxManagementRoles); + writeNotNull('MAX_OWNED', instance.maxOwned); + writeNotNull('MAX_ROLES', instance.maxRoles); + return val; +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_constants_instance.dart b/vrchat_dart_generated/lib/src/model/api_config_constants_instance.dart new file mode 100644 index 0000000..ae2081c --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_constants_instance.dart @@ -0,0 +1,48 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/api_config_constants_instancepopulationbrackets.dart'; +import 'package:json_annotation/json_annotation.dart'; + +part 'api_config_constants_instance.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class APIConfigConstantsINSTANCE { + /// Returns a new [APIConfigConstantsINSTANCE] instance. + APIConfigConstantsINSTANCE({ + this.populationBrackets, + }); + + @JsonKey( + name: r'POPULATION_BRACKETS', + required: false, + includeIfNull: false, + ) + final APIConfigConstantsINSTANCEPOPULATIONBRACKETS? populationBrackets; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is APIConfigConstantsINSTANCE && + other.populationBrackets == populationBrackets; + + @override + int get hashCode => populationBrackets.hashCode; + + factory APIConfigConstantsINSTANCE.fromJson(Map json) => + _$APIConfigConstantsINSTANCEFromJson(json); + + Map toJson() => _$APIConfigConstantsINSTANCEToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_constants_instance.g.dart b/vrchat_dart_generated/lib/src/model/api_config_constants_instance.g.dart new file mode 100644 index 0000000..08f9481 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_constants_instance.g.dart @@ -0,0 +1,42 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'api_config_constants_instance.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +APIConfigConstantsINSTANCE _$APIConfigConstantsINSTANCEFromJson( + Map json) => + $checkedCreate( + 'APIConfigConstantsINSTANCE', + json, + ($checkedConvert) { + final val = APIConfigConstantsINSTANCE( + populationBrackets: $checkedConvert( + 'POPULATION_BRACKETS', + (v) => v == null + ? null + : APIConfigConstantsINSTANCEPOPULATIONBRACKETS.fromJson( + v as Map)), + ); + return val; + }, + fieldKeyMap: const {'populationBrackets': 'POPULATION_BRACKETS'}, + ); + +Map _$APIConfigConstantsINSTANCEToJson( + APIConfigConstantsINSTANCE instance) { + final val = {}; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('POPULATION_BRACKETS', instance.populationBrackets?.toJson()); + return val; +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbrackets.dart b/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbrackets.dart new file mode 100644 index 0000000..6cab3ba --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbrackets.dart @@ -0,0 +1,70 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/api_config_constants_instancepopulationbracketscrowded.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_constants_instancepopulationbracketsfew.dart'; +import 'package:vrchat_dart_generated/src/model/api_config_constants_instancepopulationbracketsmany.dart'; +import 'package:json_annotation/json_annotation.dart'; + +part 'api_config_constants_instancepopulationbrackets.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class APIConfigConstantsINSTANCEPOPULATIONBRACKETS { + /// Returns a new [APIConfigConstantsINSTANCEPOPULATIONBRACKETS] instance. + APIConfigConstantsINSTANCEPOPULATIONBRACKETS({ + this.crowded, + this.few, + this.many, + }); + + @JsonKey( + name: r'CROWDED', + required: false, + includeIfNull: false, + ) + final APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED? crowded; + + @JsonKey( + name: r'FEW', + required: false, + includeIfNull: false, + ) + final APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW? few; + + @JsonKey( + name: r'MANY', + required: false, + includeIfNull: false, + ) + final APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY? many; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is APIConfigConstantsINSTANCEPOPULATIONBRACKETS && + other.crowded == crowded && + other.few == few && + other.many == many; + + @override + int get hashCode => crowded.hashCode + few.hashCode + many.hashCode; + + factory APIConfigConstantsINSTANCEPOPULATIONBRACKETS.fromJson( + Map json) => + _$APIConfigConstantsINSTANCEPOPULATIONBRACKETSFromJson(json); + + Map toJson() => + _$APIConfigConstantsINSTANCEPOPULATIONBRACKETSToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbrackets.g.dart b/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbrackets.g.dart new file mode 100644 index 0000000..9a492ec --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbrackets.g.dart @@ -0,0 +1,61 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'api_config_constants_instancepopulationbrackets.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +APIConfigConstantsINSTANCEPOPULATIONBRACKETS + _$APIConfigConstantsINSTANCEPOPULATIONBRACKETSFromJson( + Map json) => + $checkedCreate( + 'APIConfigConstantsINSTANCEPOPULATIONBRACKETS', + json, + ($checkedConvert) { + final val = APIConfigConstantsINSTANCEPOPULATIONBRACKETS( + crowded: $checkedConvert( + 'CROWDED', + (v) => v == null + ? null + : APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED + .fromJson(v as Map)), + few: $checkedConvert( + 'FEW', + (v) => v == null + ? null + : APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW + .fromJson(v as Map)), + many: $checkedConvert( + 'MANY', + (v) => v == null + ? null + : APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY + .fromJson(v as Map)), + ); + return val; + }, + fieldKeyMap: const { + 'crowded': 'CROWDED', + 'few': 'FEW', + 'many': 'MANY' + }, + ); + +Map _$APIConfigConstantsINSTANCEPOPULATIONBRACKETSToJson( + APIConfigConstantsINSTANCEPOPULATIONBRACKETS instance) { + final val = {}; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('CROWDED', instance.crowded?.toJson()); + writeNotNull('FEW', instance.few?.toJson()); + writeNotNull('MANY', instance.many?.toJson()); + return val; +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbracketscrowded.dart b/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbracketscrowded.dart new file mode 100644 index 0000000..a06daba --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbracketscrowded.dart @@ -0,0 +1,60 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:json_annotation/json_annotation.dart'; + +part 'api_config_constants_instancepopulationbracketscrowded.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED { + /// Returns a new [APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED] instance. + APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED({ + this.max, + this.min, + }); + + /// Maximum population for a crowded instance + @JsonKey( + name: r'max', + required: false, + includeIfNull: false, + ) + final int? max; + + /// Minimum population for a crowded instance + @JsonKey( + name: r'min', + required: false, + includeIfNull: false, + ) + final int? min; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED && + other.max == max && + other.min == min; + + @override + int get hashCode => max.hashCode + min.hashCode; + + factory APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED.fromJson( + Map json) => + _$APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDEDFromJson(json); + + Map toJson() => + _$APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDEDToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbracketscrowded.g.dart b/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbracketscrowded.g.dart new file mode 100644 index 0000000..ec843ee --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbracketscrowded.g.dart @@ -0,0 +1,40 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'api_config_constants_instancepopulationbracketscrowded.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED + _$APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDEDFromJson( + Map json) => + $checkedCreate( + 'APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED', + json, + ($checkedConvert) { + final val = APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED( + max: $checkedConvert('max', (v) => (v as num?)?.toInt()), + min: $checkedConvert('min', (v) => (v as num?)?.toInt()), + ); + return val; + }, + ); + +Map + _$APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDEDToJson( + APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED instance) { + final val = {}; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('max', instance.max); + writeNotNull('min', instance.min); + return val; +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbracketsfew.dart b/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbracketsfew.dart new file mode 100644 index 0000000..9f952c1 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbracketsfew.dart @@ -0,0 +1,60 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:json_annotation/json_annotation.dart'; + +part 'api_config_constants_instancepopulationbracketsfew.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW { + /// Returns a new [APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW] instance. + APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW({ + this.max, + this.min, + }); + + /// Maximum population for a few instance + @JsonKey( + name: r'max', + required: false, + includeIfNull: false, + ) + final int? max; + + /// Minimum population for a few instance + @JsonKey( + name: r'min', + required: false, + includeIfNull: false, + ) + final int? min; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW && + other.max == max && + other.min == min; + + @override + int get hashCode => max.hashCode + min.hashCode; + + factory APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW.fromJson( + Map json) => + _$APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEWFromJson(json); + + Map toJson() => + _$APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEWToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbracketsfew.g.dart b/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbracketsfew.g.dart new file mode 100644 index 0000000..bbe290c --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbracketsfew.g.dart @@ -0,0 +1,39 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'api_config_constants_instancepopulationbracketsfew.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW + _$APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEWFromJson( + Map json) => + $checkedCreate( + 'APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW', + json, + ($checkedConvert) { + final val = APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW( + max: $checkedConvert('max', (v) => (v as num?)?.toInt()), + min: $checkedConvert('min', (v) => (v as num?)?.toInt()), + ); + return val; + }, + ); + +Map _$APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEWToJson( + APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW instance) { + final val = {}; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('max', instance.max); + writeNotNull('min', instance.min); + return val; +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbracketsmany.dart b/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbracketsmany.dart new file mode 100644 index 0000000..ed405a2 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbracketsmany.dart @@ -0,0 +1,60 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:json_annotation/json_annotation.dart'; + +part 'api_config_constants_instancepopulationbracketsmany.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY { + /// Returns a new [APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY] instance. + APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY({ + this.max, + this.min, + }); + + /// Maximum population for a many instance + @JsonKey( + name: r'max', + required: false, + includeIfNull: false, + ) + final int? max; + + /// Minimum population for a many instance + @JsonKey( + name: r'min', + required: false, + includeIfNull: false, + ) + final int? min; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY && + other.max == max && + other.min == min; + + @override + int get hashCode => max.hashCode + min.hashCode; + + factory APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY.fromJson( + Map json) => + _$APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANYFromJson(json); + + Map toJson() => + _$APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANYToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbracketsmany.g.dart b/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbracketsmany.g.dart new file mode 100644 index 0000000..e51ea3c --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_constants_instancepopulationbracketsmany.g.dart @@ -0,0 +1,39 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'api_config_constants_instancepopulationbracketsmany.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY + _$APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANYFromJson( + Map json) => + $checkedCreate( + 'APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY', + json, + ($checkedConvert) { + final val = APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY( + max: $checkedConvert('max', (v) => (v as num?)?.toInt()), + min: $checkedConvert('min', (v) => (v as num?)?.toInt()), + ); + return val; + }, + ); + +Map _$APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANYToJson( + APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY instance) { + final val = {}; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('max', instance.max); + writeNotNull('min', instance.min); + return val; +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_constants_language.dart b/vrchat_dart_generated/lib/src/model/api_config_constants_language.dart new file mode 100644 index 0000000..99940b7 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_constants_language.dart @@ -0,0 +1,48 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:json_annotation/json_annotation.dart'; + +part 'api_config_constants_language.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class APIConfigConstantsLANGUAGE { + /// Returns a new [APIConfigConstantsLANGUAGE] instance. + APIConfigConstantsLANGUAGE({ + this.spokenLanguageOptions, + }); + + /// Supported spoken language options + @JsonKey( + name: r'SPOKEN_LANGUAGE_OPTIONS', + required: false, + includeIfNull: false, + ) + final Map? spokenLanguageOptions; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is APIConfigConstantsLANGUAGE && + other.spokenLanguageOptions == spokenLanguageOptions; + + @override + int get hashCode => spokenLanguageOptions.hashCode; + + factory APIConfigConstantsLANGUAGE.fromJson(Map json) => + _$APIConfigConstantsLANGUAGEFromJson(json); + + Map toJson() => _$APIConfigConstantsLANGUAGEToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_constants_language.g.dart b/vrchat_dart_generated/lib/src/model/api_config_constants_language.g.dart new file mode 100644 index 0000000..8e9cbb9 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_constants_language.g.dart @@ -0,0 +1,41 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'api_config_constants_language.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +APIConfigConstantsLANGUAGE _$APIConfigConstantsLANGUAGEFromJson( + Map json) => + $checkedCreate( + 'APIConfigConstantsLANGUAGE', + json, + ($checkedConvert) { + final val = APIConfigConstantsLANGUAGE( + spokenLanguageOptions: $checkedConvert( + 'SPOKEN_LANGUAGE_OPTIONS', + (v) => (v as Map?)?.map( + (k, e) => MapEntry(k, e as String), + )), + ); + return val; + }, + fieldKeyMap: const {'spokenLanguageOptions': 'SPOKEN_LANGUAGE_OPTIONS'}, + ); + +Map _$APIConfigConstantsLANGUAGEToJson( + APIConfigConstantsLANGUAGE instance) { + final val = {}; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('SPOKEN_LANGUAGE_OPTIONS', instance.spokenLanguageOptions); + return val; +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_download_url_list.dart b/vrchat_dart_generated/lib/src/model/api_config_download_url_list.dart index 5c68050..5cecf16 100644 --- a/vrchat_dart_generated/lib/src/model/api_config_download_url_list.dart +++ b/vrchat_dart_generated/lib/src/model/api_config_download_url_list.dart @@ -25,23 +25,43 @@ class APIConfigDownloadURLList { /// Download link for legacy SDK2 @Deprecated('sdk2 has been deprecated') - @JsonKey(name: r'sdk2', required: true, includeIfNull: false) + @JsonKey( + name: r'sdk2', + required: true, + includeIfNull: false, + ) final String sdk2; /// Download link for SDK3 for Avatars - @JsonKey(name: r'sdk3-avatars', required: true, includeIfNull: false) + @JsonKey( + name: r'sdk3-avatars', + required: true, + includeIfNull: false, + ) final String sdk3Avatars; /// Download link for SDK3 for Worlds - @JsonKey(name: r'sdk3-worlds', required: true, includeIfNull: false) + @JsonKey( + name: r'sdk3-worlds', + required: true, + includeIfNull: false, + ) final String sdk3Worlds; /// Download link for the Creator Companion - @JsonKey(name: r'vcc', required: true, includeIfNull: false) + @JsonKey( + name: r'vcc', + required: true, + includeIfNull: false, + ) final String vcc; /// Download link for ??? - @JsonKey(name: r'bootstrap', required: true, includeIfNull: false) + @JsonKey( + name: r'bootstrap', + required: true, + includeIfNull: false, + ) final String bootstrap; @override 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 aa7cbf9..0ab8097 100644 --- a/vrchat_dart_generated/lib/src/model/api_config_events.dart +++ b/vrchat_dart_generated/lib/src/model/api_config_events.dart @@ -29,44 +29,83 @@ class APIConfigEvents { }); /// Unknown - @JsonKey(name: r'distanceClose', required: true, includeIfNull: false) + @JsonKey( + name: r'distanceClose', + required: true, + includeIfNull: false, + ) final int distanceClose; /// Unknown - @JsonKey(name: r'distanceFactor', required: true, includeIfNull: false) + @JsonKey( + name: r'distanceFactor', + required: true, + includeIfNull: false, + ) final int distanceFactor; /// Unknown - @JsonKey(name: r'distanceFar', required: true, includeIfNull: false) + @JsonKey( + name: r'distanceFar', + required: true, + includeIfNull: false, + ) final int distanceFar; /// Unknown - @JsonKey(name: r'groupDistance', required: true, includeIfNull: false) + @JsonKey( + name: r'groupDistance', + required: true, + includeIfNull: false, + ) final int groupDistance; /// Unknown - @JsonKey(name: r'maximumBunchSize', required: true, includeIfNull: false) + @JsonKey( + name: r'maximumBunchSize', + required: true, + includeIfNull: false, + ) final int maximumBunchSize; /// Unknown - @JsonKey(name: r'notVisibleFactor', required: true, includeIfNull: false) + @JsonKey( + name: r'notVisibleFactor', + required: true, + includeIfNull: false, + ) final int notVisibleFactor; /// Unknown - @JsonKey(name: r'playerOrderBucketSize', required: true, includeIfNull: false) + @JsonKey( + name: r'playerOrderBucketSize', + required: true, + includeIfNull: false, + ) final int playerOrderBucketSize; /// Unknown - @JsonKey(name: r'playerOrderFactor', required: true, includeIfNull: false) + @JsonKey( + name: r'playerOrderFactor', + required: true, + includeIfNull: false, + ) final int playerOrderFactor; /// Unknown @JsonKey( - name: r'slowUpdateFactorThreshold', required: true, includeIfNull: false) + name: r'slowUpdateFactorThreshold', + required: true, + includeIfNull: false, + ) final int slowUpdateFactorThreshold; /// Unknown - @JsonKey(name: r'viewSegmentLength', required: true, includeIfNull: false) + @JsonKey( + name: r'viewSegmentLength', + required: true, + includeIfNull: false, + ) final int viewSegmentLength; @override diff --git a/vrchat_dart_generated/lib/src/model/api_config_min_supported_client_build_number.dart b/vrchat_dart_generated/lib/src/model/api_config_min_supported_client_build_number.dart new file mode 100644 index 0000000..404bc98 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_min_supported_client_build_number.dart @@ -0,0 +1,151 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/platform_build_info.dart'; +import 'package:json_annotation/json_annotation.dart'; + +part 'api_config_min_supported_client_build_number.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class APIConfigMinSupportedClientBuildNumber { + /// Returns a new [APIConfigMinSupportedClientBuildNumber] instance. + APIConfigMinSupportedClientBuildNumber({ + required this.appStore, + required this.default_, + required this.firebase, + required this.firebaseiOS, + required this.googlePlay, + required this.pc, + required this.picoStore, + required this.questAppLab, + required this.questStore, + required this.testFlight, + required this.xRElite, + }); + + @JsonKey( + name: r'AppStore', + required: true, + includeIfNull: false, + ) + final PlatformBuildInfo appStore; + + @JsonKey( + name: r'Default', + required: true, + includeIfNull: false, + ) + final PlatformBuildInfo default_; + + @JsonKey( + name: r'Firebase', + required: true, + includeIfNull: false, + ) + final PlatformBuildInfo firebase; + + @JsonKey( + name: r'FirebaseiOS', + required: true, + includeIfNull: false, + ) + final PlatformBuildInfo firebaseiOS; + + @JsonKey( + name: r'GooglePlay', + required: true, + includeIfNull: false, + ) + final PlatformBuildInfo googlePlay; + + @JsonKey( + name: r'PC', + required: true, + includeIfNull: false, + ) + final PlatformBuildInfo pc; + + @JsonKey( + name: r'PicoStore', + required: true, + includeIfNull: false, + ) + final PlatformBuildInfo picoStore; + + @JsonKey( + name: r'QuestAppLab', + required: true, + includeIfNull: false, + ) + final PlatformBuildInfo questAppLab; + + @JsonKey( + name: r'QuestStore', + required: true, + includeIfNull: false, + ) + final PlatformBuildInfo questStore; + + @JsonKey( + name: r'TestFlight', + required: true, + includeIfNull: false, + ) + final PlatformBuildInfo testFlight; + + @JsonKey( + name: r'XRElite', + required: true, + includeIfNull: false, + ) + final PlatformBuildInfo xRElite; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is APIConfigMinSupportedClientBuildNumber && + other.appStore == appStore && + other.default_ == default_ && + other.firebase == firebase && + other.firebaseiOS == firebaseiOS && + other.googlePlay == googlePlay && + other.pc == pc && + other.picoStore == picoStore && + other.questAppLab == questAppLab && + other.questStore == questStore && + other.testFlight == testFlight && + other.xRElite == xRElite; + + @override + int get hashCode => + appStore.hashCode + + default_.hashCode + + firebase.hashCode + + firebaseiOS.hashCode + + googlePlay.hashCode + + pc.hashCode + + picoStore.hashCode + + questAppLab.hashCode + + questStore.hashCode + + testFlight.hashCode + + xRElite.hashCode; + + factory APIConfigMinSupportedClientBuildNumber.fromJson( + Map json) => + _$APIConfigMinSupportedClientBuildNumberFromJson(json); + + Map toJson() => + _$APIConfigMinSupportedClientBuildNumberToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_min_supported_client_build_number.g.dart b/vrchat_dart_generated/lib/src/model/api_config_min_supported_client_build_number.g.dart new file mode 100644 index 0000000..f6d0c5f --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_min_supported_client_build_number.g.dart @@ -0,0 +1,89 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'api_config_min_supported_client_build_number.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +APIConfigMinSupportedClientBuildNumber + _$APIConfigMinSupportedClientBuildNumberFromJson( + Map json) => + $checkedCreate( + 'APIConfigMinSupportedClientBuildNumber', + json, + ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + 'AppStore', + 'Default', + 'Firebase', + 'FirebaseiOS', + 'GooglePlay', + 'PC', + 'PicoStore', + 'QuestAppLab', + 'QuestStore', + 'TestFlight', + 'XRElite' + ], + ); + final val = APIConfigMinSupportedClientBuildNumber( + appStore: $checkedConvert('AppStore', + (v) => PlatformBuildInfo.fromJson(v as Map)), + default_: $checkedConvert('Default', + (v) => PlatformBuildInfo.fromJson(v as Map)), + firebase: $checkedConvert('Firebase', + (v) => PlatformBuildInfo.fromJson(v as Map)), + firebaseiOS: $checkedConvert('FirebaseiOS', + (v) => PlatformBuildInfo.fromJson(v as Map)), + googlePlay: $checkedConvert('GooglePlay', + (v) => PlatformBuildInfo.fromJson(v as Map)), + pc: $checkedConvert('PC', + (v) => PlatformBuildInfo.fromJson(v as Map)), + picoStore: $checkedConvert('PicoStore', + (v) => PlatformBuildInfo.fromJson(v as Map)), + questAppLab: $checkedConvert('QuestAppLab', + (v) => PlatformBuildInfo.fromJson(v as Map)), + questStore: $checkedConvert('QuestStore', + (v) => PlatformBuildInfo.fromJson(v as Map)), + testFlight: $checkedConvert('TestFlight', + (v) => PlatformBuildInfo.fromJson(v as Map)), + xRElite: $checkedConvert('XRElite', + (v) => PlatformBuildInfo.fromJson(v as Map)), + ); + return val; + }, + fieldKeyMap: const { + 'appStore': 'AppStore', + 'default_': 'Default', + 'firebase': 'Firebase', + 'firebaseiOS': 'FirebaseiOS', + 'googlePlay': 'GooglePlay', + 'pc': 'PC', + 'picoStore': 'PicoStore', + 'questAppLab': 'QuestAppLab', + 'questStore': 'QuestStore', + 'testFlight': 'TestFlight', + 'xRElite': 'XRElite' + }, + ); + +Map _$APIConfigMinSupportedClientBuildNumberToJson( + APIConfigMinSupportedClientBuildNumber instance) => + { + 'AppStore': instance.appStore.toJson(), + 'Default': instance.default_.toJson(), + 'Firebase': instance.firebase.toJson(), + 'FirebaseiOS': instance.firebaseiOS.toJson(), + 'GooglePlay': instance.googlePlay.toJson(), + 'PC': instance.pc.toJson(), + 'PicoStore': instance.picoStore.toJson(), + 'QuestAppLab': instance.questAppLab.toJson(), + 'QuestStore': instance.questStore.toJson(), + 'TestFlight': instance.testFlight.toJson(), + 'XRElite': instance.xRElite.toJson(), + }; diff --git a/vrchat_dart_generated/lib/src/model/api_config_offline_analysis.dart b/vrchat_dart_generated/lib/src/model/api_config_offline_analysis.dart new file mode 100644 index 0000000..344746f --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_offline_analysis.dart @@ -0,0 +1,58 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:json_annotation/json_annotation.dart'; + +part 'api_config_offline_analysis.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class APIConfigOfflineAnalysis { + /// Returns a new [APIConfigOfflineAnalysis] instance. + APIConfigOfflineAnalysis({ + this.android = true, + this.standalonewindows = true, + }); + + /// Whether to allow offline analysis + @JsonKey( + name: r'android', + required: false, + includeIfNull: false, + ) + final bool? android; + + /// Whether to allow offline analysis + @JsonKey( + name: r'standalonewindows', + required: false, + includeIfNull: false, + ) + final bool? standalonewindows; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is APIConfigOfflineAnalysis && + other.android == android && + other.standalonewindows == standalonewindows; + + @override + int get hashCode => android.hashCode + standalonewindows.hashCode; + + factory APIConfigOfflineAnalysis.fromJson(Map json) => + _$APIConfigOfflineAnalysisFromJson(json); + + Map toJson() => _$APIConfigOfflineAnalysisToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/api_config_offline_analysis.g.dart b/vrchat_dart_generated/lib/src/model/api_config_offline_analysis.g.dart new file mode 100644 index 0000000..49179bb --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_offline_analysis.g.dart @@ -0,0 +1,39 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'api_config_offline_analysis.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +APIConfigOfflineAnalysis _$APIConfigOfflineAnalysisFromJson( + Map json) => + $checkedCreate( + 'APIConfigOfflineAnalysis', + json, + ($checkedConvert) { + final val = APIConfigOfflineAnalysis( + android: $checkedConvert('android', (v) => v as bool? ?? true), + standalonewindows: + $checkedConvert('standalonewindows', (v) => v as bool? ?? true), + ); + return val; + }, + ); + +Map _$APIConfigOfflineAnalysisToJson( + APIConfigOfflineAnalysis instance) { + final val = {}; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('android', instance.android); + writeNotNull('standalonewindows', instance.standalonewindows); + return val; +} 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 new file mode 100644 index 0000000..0bbd454 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_report_categories.dart @@ -0,0 +1,139 @@ +// +// 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, + required this.behavior, + required this.chat, + required this.environment, + required this.groupstore, + required this.image, + 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'behavior', + required: true, + includeIfNull: false, + ) + final ReportCategory behavior; + + @JsonKey( + name: r'chat', + required: true, + includeIfNull: false, + ) + final ReportCategory chat; + + @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'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.behavior == behavior && + other.chat == chat && + other.environment == environment && + other.groupstore == groupstore && + other.image == image && + other.text == text && + other.warnings == warnings && + other.worldimage == worldimage && + other.worldstore == worldstore; + + @override + int get hashCode => + avatar.hashCode + + behavior.hashCode + + chat.hashCode + + environment.hashCode + + groupstore.hashCode + + image.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 new file mode 100644 index 0000000..ef34ae7 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_report_categories.g.dart @@ -0,0 +1,71 @@ +// 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)), + behavior: $checkedConvert('behavior', + (v) => ReportCategory.fromJson(v as Map)), + chat: $checkedConvert('chat', + (v) => 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)), + 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(), + 'behavior': instance.behavior.toJson(), + 'chat': instance.chat.toJson(), + 'environment': instance.environment.toJson(), + 'groupstore': instance.groupstore.toJson(), + 'image': instance.image.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_reasons.dart b/vrchat_dart_generated/lib/src/model/api_config_report_reasons.dart new file mode 100644 index 0000000..91cc29c --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_report_reasons.dart @@ -0,0 +1,229 @@ +// +// 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, + 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, + 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'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'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.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.threatening == threatening && + other.visuals == visuals; + + @override + int get hashCode => + billing.hashCode + + botting.hashCode + + cancellation.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 + + 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 new file mode 100644 index 0000000..e8ffde8 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/api_config_report_reasons.g.dart @@ -0,0 +1,107 @@ +// 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)), + 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)), + 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(), + '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(), + 'threatening': instance.threatening.toJson(), + 'visuals': instance.visuals.toJson(), + }; diff --git a/vrchat_dart_generated/lib/src/model/api_health.dart b/vrchat_dart_generated/lib/src/model/api_health.dart index df9474f..a483fbb 100644 --- a/vrchat_dart_generated/lib/src/model/api_health.dart +++ b/vrchat_dart_generated/lib/src/model/api_health.dart @@ -21,13 +21,25 @@ class APIHealth { required this.buildVersionTag, }); - @JsonKey(name: r'ok', required: true, includeIfNull: false) + @JsonKey( + name: r'ok', + required: true, + includeIfNull: false, + ) final bool ok; - @JsonKey(name: r'serverName', required: true, includeIfNull: false) + @JsonKey( + name: r'serverName', + required: true, + includeIfNull: false, + ) final String serverName; - @JsonKey(name: r'buildVersionTag', required: true, includeIfNull: false) + @JsonKey( + name: r'buildVersionTag', + required: true, + includeIfNull: false, + ) final String buildVersionTag; @override diff --git a/vrchat_dart_generated/lib/src/model/avatar.dart b/vrchat_dart_generated/lib/src/model/avatar.dart index 3115174..d300bc7 100644 --- a/vrchat_dart_generated/lib/src/model/avatar.dart +++ b/vrchat_dart_generated/lib/src/model/avatar.dart @@ -40,63 +40,135 @@ class Avatar { }); /// Not present from general serach `/avatars`, only on specific requests `/avatars/{avatarId}`. - @JsonKey(name: r'assetUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'assetUrl', + required: false, + includeIfNull: false, + ) final String? assetUrl; /// Not present from general serach `/avatars`, only on specific requests `/avatars/{avatarId}`. **Deprecation:** `Object` has unknown usage/fields, and is always empty. Use normal `Url` field instead. - @JsonKey(name: r'assetUrlObject', required: false, includeIfNull: false) + @JsonKey( + name: r'assetUrlObject', + required: false, + includeIfNull: false, + ) final Object? assetUrlObject; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'authorId', required: true, includeIfNull: false) + @JsonKey( + name: r'authorId', + required: true, + includeIfNull: false, + ) final String authorId; - @JsonKey(name: r'authorName', required: true, includeIfNull: false) + @JsonKey( + name: r'authorName', + required: true, + includeIfNull: false, + ) final String authorName; - @JsonKey(name: r'created_at', required: true, includeIfNull: false) + @JsonKey( + name: r'created_at', + required: true, + includeIfNull: false, + ) final DateTime createdAt; - @JsonKey(name: r'description', required: true, includeIfNull: false) + @JsonKey( + name: r'description', + required: true, + includeIfNull: false, + ) final String description; - @JsonKey(name: r'featured', required: true, includeIfNull: false) + @JsonKey( + name: r'featured', + required: true, + includeIfNull: false, + ) final bool featured; - @JsonKey(name: r'id', required: true, includeIfNull: false) + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) final String id; - @JsonKey(name: r'imageUrl', required: true, includeIfNull: false) + @JsonKey( + name: r'imageUrl', + required: true, + includeIfNull: false, + ) final String imageUrl; - @JsonKey(name: r'name', required: true, includeIfNull: false) + @JsonKey( + name: r'name', + required: true, + includeIfNull: false, + ) final String name; - @JsonKey(name: r'releaseStatus', required: true, includeIfNull: false) + @JsonKey( + name: r'releaseStatus', + required: true, + includeIfNull: false, + ) final ReleaseStatus releaseStatus; /// - @JsonKey(name: r'tags', required: true, includeIfNull: false) + @JsonKey( + name: r'tags', + required: true, + includeIfNull: false, + ) final List tags; - @JsonKey(name: r'thumbnailImageUrl', required: true, includeIfNull: false) + @JsonKey( + name: r'thumbnailImageUrl', + required: true, + includeIfNull: false, + ) final String thumbnailImageUrl; - @JsonKey(name: r'unityPackageUrl', required: true, includeIfNull: false) + @JsonKey( + name: r'unityPackageUrl', + required: true, + includeIfNull: false, + ) final String unityPackageUrl; @Deprecated('unityPackageUrlObject has been deprecated') - @JsonKey(name: r'unityPackageUrlObject', required: true, includeIfNull: false) + @JsonKey( + name: r'unityPackageUrlObject', + required: true, + includeIfNull: false, + ) final AvatarUnityPackageUrlObject unityPackageUrlObject; - @JsonKey(name: r'unityPackages', required: true, includeIfNull: false) + @JsonKey( + name: r'unityPackages', + required: true, + includeIfNull: false, + ) final Set unityPackages; - @JsonKey(name: r'updated_at', required: true, includeIfNull: false) + @JsonKey( + name: r'updated_at', + required: true, + includeIfNull: false, + ) final DateTime updatedAt; // minimum: 0 - @JsonKey(name: r'version', required: true, includeIfNull: false) + @JsonKey( + name: r'version', + required: true, + includeIfNull: false, + ) final int version; @override diff --git a/vrchat_dart_generated/lib/src/model/avatar_unity_package_url_object.dart b/vrchat_dart_generated/lib/src/model/avatar_unity_package_url_object.dart index 0310b8c..44cf440 100644 --- a/vrchat_dart_generated/lib/src/model/avatar_unity_package_url_object.dart +++ b/vrchat_dart_generated/lib/src/model/avatar_unity_package_url_object.dart @@ -20,7 +20,11 @@ class AvatarUnityPackageUrlObject { this.unityPackageUrl, }); - @JsonKey(name: r'unityPackageUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'unityPackageUrl', + required: false, + includeIfNull: false, + ) final String? unityPackageUrl; @override diff --git a/vrchat_dart_generated/lib/src/model/badge.dart b/vrchat_dart_generated/lib/src/model/badge.dart index 1d7c639..4ab0c51 100644 --- a/vrchat_dart_generated/lib/src/model/badge.dart +++ b/vrchat_dart_generated/lib/src/model/badge.dart @@ -27,31 +27,63 @@ class Badge { }); /// only present in CurrentUser badges - @JsonKey(name: r'assignedAt', required: false, includeIfNull: false) + @JsonKey( + name: r'assignedAt', + required: false, + includeIfNull: false, + ) final DateTime? assignedAt; - @JsonKey(name: r'badgeDescription', required: true, includeIfNull: false) + @JsonKey( + name: r'badgeDescription', + required: true, + includeIfNull: false, + ) final String badgeDescription; - @JsonKey(name: r'badgeId', required: true, includeIfNull: false) + @JsonKey( + name: r'badgeId', + required: true, + includeIfNull: false, + ) final String badgeId; /// direct url to image - @JsonKey(name: r'badgeImageUrl', required: true, includeIfNull: false) + @JsonKey( + name: r'badgeImageUrl', + required: true, + includeIfNull: false, + ) final String badgeImageUrl; - @JsonKey(name: r'badgeName', required: true, includeIfNull: false) + @JsonKey( + name: r'badgeName', + required: true, + includeIfNull: false, + ) final String badgeName; /// only present in CurrentUser badges - @JsonKey(name: r'hidden', required: false, includeIfNull: false) + @JsonKey( + name: r'hidden', + required: false, + includeIfNull: false, + ) final bool? hidden; - @JsonKey(name: r'showcased', required: true, includeIfNull: false) + @JsonKey( + name: r'showcased', + required: true, + includeIfNull: false, + ) final bool showcased; /// only present in CurrentUser badges - @JsonKey(name: r'updatedAt', required: false, includeIfNull: false) + @JsonKey( + name: r'updatedAt', + required: false, + includeIfNull: false, + ) final DateTime? updatedAt; @override diff --git a/vrchat_dart_generated/lib/src/model/ban_group_member_request.dart b/vrchat_dart_generated/lib/src/model/ban_group_member_request.dart index 1cab0f2..9a03391 100644 --- a/vrchat_dart_generated/lib/src/model/ban_group_member_request.dart +++ b/vrchat_dart_generated/lib/src/model/ban_group_member_request.dart @@ -20,7 +20,11 @@ class BanGroupMemberRequest { }); /// 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) + @JsonKey( + name: r'userId', + required: true, + includeIfNull: false, + ) final String userId; @override 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 c16f78e..0586227 100644 --- a/vrchat_dart_generated/lib/src/model/create_avatar_request.dart +++ b/vrchat_dart_generated/lib/src/model/create_avatar_request.dart @@ -29,36 +29,76 @@ class CreateAvatarRequest { this.unityVersion = '5.3.4p1', }); - @JsonKey(name: r'assetUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'assetUrl', + required: false, + includeIfNull: false, + ) final String? assetUrl; - @JsonKey(name: r'id', required: false, includeIfNull: false) + @JsonKey( + name: r'id', + required: false, + includeIfNull: false, + ) final String? id; - @JsonKey(name: r'name', required: true, includeIfNull: false) + @JsonKey( + name: r'name', + required: true, + includeIfNull: false, + ) final String name; - @JsonKey(name: r'description', required: false, includeIfNull: false) + @JsonKey( + name: r'description', + required: false, + includeIfNull: false, + ) final String? description; /// - @JsonKey(name: r'tags', required: false, includeIfNull: false) + @JsonKey( + name: r'tags', + required: false, + includeIfNull: false, + ) final List? tags; - @JsonKey(name: r'imageUrl', required: true, includeIfNull: false) + @JsonKey( + name: r'imageUrl', + required: true, + includeIfNull: false, + ) final String imageUrl; - @JsonKey(name: r'releaseStatus', required: false, includeIfNull: false) + @JsonKey( + name: r'releaseStatus', + required: false, + includeIfNull: false, + ) final ReleaseStatus? releaseStatus; // minimum: 0 - @JsonKey(name: r'version', required: false, includeIfNull: false) + @JsonKey( + name: r'version', + required: false, + includeIfNull: false, + ) final int? version; - @JsonKey(name: r'unityPackageUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'unityPackageUrl', + required: false, + includeIfNull: false, + ) final String? unityPackageUrl; - @JsonKey(name: r'unityVersion', required: false, includeIfNull: false) + @JsonKey( + name: r'unityVersion', + required: false, + includeIfNull: false, + ) final String? unityVersion; @override diff --git a/vrchat_dart_generated/lib/src/model/create_file_request.dart b/vrchat_dart_generated/lib/src/model/create_file_request.dart index 5012379..46cfeb1 100644 --- a/vrchat_dart_generated/lib/src/model/create_file_request.dart +++ b/vrchat_dart_generated/lib/src/model/create_file_request.dart @@ -23,17 +23,33 @@ class CreateFileRequest { this.tags, }); - @JsonKey(name: r'name', required: true, includeIfNull: false) + @JsonKey( + name: r'name', + required: true, + includeIfNull: false, + ) final String name; - @JsonKey(name: r'mimeType', required: true, includeIfNull: false) + @JsonKey( + name: r'mimeType', + required: true, + includeIfNull: false, + ) final MIMEType mimeType; - @JsonKey(name: r'extension', required: true, includeIfNull: false) + @JsonKey( + name: r'extension', + required: true, + includeIfNull: false, + ) final String extension_; /// - @JsonKey(name: r'tags', required: false, includeIfNull: false) + @JsonKey( + name: r'tags', + required: false, + includeIfNull: false, + ) final List? tags; @override diff --git a/vrchat_dart_generated/lib/src/model/create_file_version_request.dart b/vrchat_dart_generated/lib/src/model/create_file_version_request.dart index c64f57d..cec16c8 100644 --- a/vrchat_dart_generated/lib/src/model/create_file_version_request.dart +++ b/vrchat_dart_generated/lib/src/model/create_file_version_request.dart @@ -22,16 +22,32 @@ class CreateFileVersionRequest { this.fileSizeInBytes, }); - @JsonKey(name: r'signatureMd5', required: true, includeIfNull: false) + @JsonKey( + name: r'signatureMd5', + required: true, + includeIfNull: false, + ) final String signatureMd5; - @JsonKey(name: r'signatureSizeInBytes', required: true, includeIfNull: false) + @JsonKey( + name: r'signatureSizeInBytes', + required: true, + includeIfNull: false, + ) final int signatureSizeInBytes; - @JsonKey(name: r'fileMd5', required: false, includeIfNull: false) + @JsonKey( + name: r'fileMd5', + required: false, + includeIfNull: false, + ) final String? fileMd5; - @JsonKey(name: r'fileSizeInBytes', required: false, includeIfNull: false) + @JsonKey( + name: r'fileSizeInBytes', + required: false, + includeIfNull: false, + ) final int? fileSizeInBytes; @override diff --git a/vrchat_dart_generated/lib/src/model/create_group_announcement_request.dart b/vrchat_dart_generated/lib/src/model/create_group_announcement_request.dart index 5e59072..e58dfdb 100644 --- a/vrchat_dart_generated/lib/src/model/create_group_announcement_request.dart +++ b/vrchat_dart_generated/lib/src/model/create_group_announcement_request.dart @@ -23,18 +23,34 @@ class CreateGroupAnnouncementRequest { }); /// Announcement title - @JsonKey(name: r'title', required: true, includeIfNull: false) + @JsonKey( + name: r'title', + required: true, + includeIfNull: false, + ) final String title; /// Announcement text - @JsonKey(name: r'text', required: false, includeIfNull: false) + @JsonKey( + name: r'text', + required: false, + includeIfNull: false, + ) final String? text; - @JsonKey(name: r'imageId', required: false, includeIfNull: false) + @JsonKey( + name: r'imageId', + required: false, + includeIfNull: false, + ) final String? imageId; /// Send notification to group members. - @JsonKey(name: r'sendNotification', required: false, includeIfNull: false) + @JsonKey( + name: r'sendNotification', + required: false, + includeIfNull: false, + ) final bool? sendNotification; @override diff --git a/vrchat_dart_generated/lib/src/model/create_group_gallery_request.dart b/vrchat_dart_generated/lib/src/model/create_group_gallery_request.dart index 5e31209..5df809e 100644 --- a/vrchat_dart_generated/lib/src/model/create_group_gallery_request.dart +++ b/vrchat_dart_generated/lib/src/model/create_group_gallery_request.dart @@ -26,31 +26,59 @@ class CreateGroupGalleryRequest { }); /// Name of the gallery. - @JsonKey(name: r'name', required: true, includeIfNull: false) + @JsonKey( + name: r'name', + required: true, + includeIfNull: false, + ) final String name; /// Description of the gallery. - @JsonKey(name: r'description', required: false, includeIfNull: false) + @JsonKey( + name: r'description', + required: false, + includeIfNull: false, + ) final String? description; /// Whether the gallery is members only. - @JsonKey(name: r'membersOnly', required: false, includeIfNull: false) + @JsonKey( + name: r'membersOnly', + required: false, + includeIfNull: false, + ) final bool? membersOnly; /// - @JsonKey(name: r'roleIdsToView', required: false, includeIfNull: false) + @JsonKey( + name: r'roleIdsToView', + required: false, + includeIfNull: false, + ) final List? roleIdsToView; /// - @JsonKey(name: r'roleIdsToSubmit', required: false, includeIfNull: false) + @JsonKey( + name: r'roleIdsToSubmit', + required: false, + includeIfNull: false, + ) final List? roleIdsToSubmit; /// - @JsonKey(name: r'roleIdsToAutoApprove', required: false, includeIfNull: false) + @JsonKey( + name: r'roleIdsToAutoApprove', + required: false, + includeIfNull: false, + ) final List? roleIdsToAutoApprove; /// - @JsonKey(name: r'roleIdsToManage', required: false, includeIfNull: false) + @JsonKey( + name: r'roleIdsToManage', + required: false, + includeIfNull: false, + ) final List? roleIdsToManage; @override diff --git a/vrchat_dart_generated/lib/src/model/create_group_invite_request.dart b/vrchat_dart_generated/lib/src/model/create_group_invite_request.dart index 0f94765..34fec0d 100644 --- a/vrchat_dart_generated/lib/src/model/create_group_invite_request.dart +++ b/vrchat_dart_generated/lib/src/model/create_group_invite_request.dart @@ -21,10 +21,18 @@ class CreateGroupInviteRequest { }); /// 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) + @JsonKey( + name: r'userId', + required: true, + includeIfNull: false, + ) final String userId; - @JsonKey(name: r'confirmOverrideBlock', required: false, includeIfNull: false) + @JsonKey( + name: r'confirmOverrideBlock', + required: false, + includeIfNull: false, + ) final bool? confirmOverrideBlock; @override diff --git a/vrchat_dart_generated/lib/src/model/create_group_post_request.dart b/vrchat_dart_generated/lib/src/model/create_group_post_request.dart index 4ea0585..8ba3988 100644 --- a/vrchat_dart_generated/lib/src/model/create_group_post_request.dart +++ b/vrchat_dart_generated/lib/src/model/create_group_post_request.dart @@ -26,25 +26,49 @@ class CreateGroupPostRequest { }); /// Post title - @JsonKey(name: r'title', required: true, includeIfNull: false) + @JsonKey( + name: r'title', + required: true, + includeIfNull: false, + ) final String title; /// Post text - @JsonKey(name: r'text', required: true, includeIfNull: false) + @JsonKey( + name: r'text', + required: true, + includeIfNull: false, + ) final String text; - @JsonKey(name: r'imageId', required: false, includeIfNull: false) + @JsonKey( + name: r'imageId', + required: false, + includeIfNull: false, + ) final String? imageId; /// Send notification to group members. - @JsonKey(name: r'sendNotification', required: true, includeIfNull: false) + @JsonKey( + name: r'sendNotification', + required: true, + includeIfNull: false, + ) final bool sendNotification; /// - @JsonKey(name: r'roleIds', required: false, includeIfNull: false) + @JsonKey( + name: r'roleIds', + required: false, + includeIfNull: false, + ) final List? roleIds; - @JsonKey(name: r'visibility', required: true, includeIfNull: false) + @JsonKey( + name: r'visibility', + required: true, + includeIfNull: false, + ) final GroupPostVisibility visibility; @override diff --git a/vrchat_dart_generated/lib/src/model/create_group_request.dart b/vrchat_dart_generated/lib/src/model/create_group_request.dart index a509d4d..a328206 100644 --- a/vrchat_dart_generated/lib/src/model/create_group_request.dart +++ b/vrchat_dart_generated/lib/src/model/create_group_request.dart @@ -29,28 +29,60 @@ class CreateGroupRequest { required this.roleTemplate, }); - @JsonKey(name: r'name', required: true, includeIfNull: false) + @JsonKey( + name: r'name', + required: true, + includeIfNull: false, + ) final String name; - @JsonKey(name: r'shortCode', required: true, includeIfNull: false) + @JsonKey( + name: r'shortCode', + required: true, + includeIfNull: false, + ) final String shortCode; - @JsonKey(name: r'description', required: false, includeIfNull: false) + @JsonKey( + name: r'description', + required: false, + includeIfNull: false, + ) final String? description; - @JsonKey(name: r'joinState', required: false, includeIfNull: false) + @JsonKey( + name: r'joinState', + required: false, + includeIfNull: false, + ) final GroupJoinState? joinState; - @JsonKey(name: r'iconId', required: false, includeIfNull: false) + @JsonKey( + name: r'iconId', + required: false, + includeIfNull: false, + ) final String? iconId; - @JsonKey(name: r'bannerId', required: false, includeIfNull: false) + @JsonKey( + name: r'bannerId', + required: false, + includeIfNull: false, + ) final String? bannerId; - @JsonKey(name: r'privacy', required: false, includeIfNull: false) + @JsonKey( + name: r'privacy', + required: false, + includeIfNull: false, + ) final GroupPrivacy? privacy; - @JsonKey(name: r'roleTemplate', required: true, includeIfNull: false) + @JsonKey( + name: r'roleTemplate', + required: true, + includeIfNull: false, + ) final GroupRoleTemplate roleTemplate; @override diff --git a/vrchat_dart_generated/lib/src/model/create_group_role_request.dart b/vrchat_dart_generated/lib/src/model/create_group_role_request.dart index 8e6b2d0..c0ef6ed 100644 --- a/vrchat_dart_generated/lib/src/model/create_group_role_request.dart +++ b/vrchat_dart_generated/lib/src/model/create_group_role_request.dart @@ -23,19 +23,39 @@ class CreateGroupRoleRequest { this.permissions, }); - @JsonKey(name: r'id', required: false, includeIfNull: false) + @JsonKey( + name: r'id', + required: false, + includeIfNull: false, + ) final String? id; - @JsonKey(name: r'name', required: false, includeIfNull: false) + @JsonKey( + name: r'name', + required: false, + includeIfNull: false, + ) final String? name; - @JsonKey(name: r'description', required: false, includeIfNull: false) + @JsonKey( + name: r'description', + required: false, + includeIfNull: false, + ) final String? description; - @JsonKey(name: r'isSelfAssignable', required: false, includeIfNull: false) + @JsonKey( + name: r'isSelfAssignable', + required: false, + includeIfNull: false, + ) final bool? isSelfAssignable; - @JsonKey(name: r'permissions', required: false, includeIfNull: false) + @JsonKey( + name: r'permissions', + required: false, + includeIfNull: false, + ) final List? permissions; @override 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 a094b70..412bfd8 100644 --- a/vrchat_dart_generated/lib/src/model/create_instance_request.dart +++ b/vrchat_dart_generated/lib/src/model/create_instance_request.dart @@ -33,42 +33,86 @@ class CreateInstanceRequest { }); /// WorldID be \"offline\" on User profiles if you are not friends with that user. - @JsonKey(name: r'worldId', required: true, includeIfNull: false) + @JsonKey( + name: r'worldId', + required: true, + includeIfNull: false, + ) final String worldId; - @JsonKey(name: r'type', required: true, includeIfNull: false) + @JsonKey( + name: r'type', + required: true, + includeIfNull: false, + ) final InstanceType type; - @JsonKey(name: r'region', required: true, includeIfNull: false) + @JsonKey( + name: r'region', + required: true, + includeIfNull: false, + ) final InstanceRegion region; /// A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise - @JsonKey(name: r'ownerId', required: false, includeIfNull: false) + @JsonKey( + name: r'ownerId', + required: false, + includeIfNull: false, + ) final String? ownerId; /// Group roleIds that are allowed to join if the type is \"group\" and groupAccessType is \"member\" - @JsonKey(name: r'roleIds', required: false, includeIfNull: false) + @JsonKey( + name: r'roleIds', + required: false, + includeIfNull: false, + ) final List? roleIds; - @JsonKey(name: r'groupAccessType', required: false, includeIfNull: false) + @JsonKey( + name: r'groupAccessType', + required: false, + includeIfNull: false, + ) final GroupAccessType? groupAccessType; - @JsonKey(name: r'queueEnabled', required: false, includeIfNull: false) + @JsonKey( + name: r'queueEnabled', + required: false, + includeIfNull: false, + ) final bool? queueEnabled; /// The time after which users won't be allowed to join the instance. This doesn't work for public instances. - @JsonKey(name: r'closedAt', required: false, includeIfNull: false) + @JsonKey( + name: r'closedAt', + required: false, + includeIfNull: false, + ) final DateTime? closedAt; /// Only applies to invite type instances to make them invite+ - @JsonKey(name: r'canRequestInvite', required: false, includeIfNull: false) + @JsonKey( + name: r'canRequestInvite', + required: false, + includeIfNull: false, + ) final bool? canRequestInvite; /// Currently unused, but will eventually be a flag to set if the closing of the instance should kick people. - @JsonKey(name: r'hardClose', required: false, includeIfNull: false) + @JsonKey( + name: r'hardClose', + required: false, + includeIfNull: false, + ) final bool? hardClose; - @JsonKey(name: r'inviteOnly', required: false, includeIfNull: false) + @JsonKey( + name: r'inviteOnly', + required: false, + includeIfNull: false, + ) final bool? inviteOnly; @override 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 71716de..26001a1 100644 --- a/vrchat_dart_generated/lib/src/model/create_world_request.dart +++ b/vrchat_dart_generated/lib/src/model/create_world_request.dart @@ -33,53 +33,109 @@ class CreateWorldRequest { this.unityVersion = '5.3.4p1', }); - @JsonKey(name: r'assetUrl', required: true, includeIfNull: false) + @JsonKey( + name: r'assetUrl', + required: true, + includeIfNull: false, + ) final String assetUrl; // minimum: 0 - @JsonKey(name: r'assetVersion', required: false, includeIfNull: false) + @JsonKey( + name: r'assetVersion', + required: false, + includeIfNull: false, + ) final int? assetVersion; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'authorId', required: false, includeIfNull: false) + @JsonKey( + name: r'authorId', + required: false, + includeIfNull: false, + ) final String? authorId; - @JsonKey(name: r'authorName', required: false, includeIfNull: false) + @JsonKey( + name: r'authorName', + required: false, + includeIfNull: false, + ) final String? authorName; // minimum: 0 // maximum: 40 - @JsonKey(name: r'capacity', required: false, includeIfNull: false) + @JsonKey( + name: r'capacity', + required: false, + includeIfNull: false, + ) final int? capacity; - @JsonKey(name: r'description', required: false, includeIfNull: false) + @JsonKey( + name: r'description', + required: false, + includeIfNull: false, + ) final String? description; /// WorldID be \"offline\" on User profiles if you are not friends with that user. - @JsonKey(name: r'id', required: false, includeIfNull: false) + @JsonKey( + name: r'id', + required: false, + includeIfNull: false, + ) final String? id; - @JsonKey(name: r'imageUrl', required: true, includeIfNull: false) + @JsonKey( + name: r'imageUrl', + required: true, + includeIfNull: false, + ) final String imageUrl; - @JsonKey(name: r'name', required: true, includeIfNull: false) + @JsonKey( + name: r'name', + required: true, + includeIfNull: false, + ) final String name; /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. - @JsonKey(name: r'platform', required: false, includeIfNull: false) + @JsonKey( + name: r'platform', + required: false, + includeIfNull: false, + ) final String? platform; - @JsonKey(name: r'releaseStatus', required: false, includeIfNull: false) + @JsonKey( + name: r'releaseStatus', + required: false, + includeIfNull: false, + ) final ReleaseStatus? releaseStatus; /// - @JsonKey(name: r'tags', required: false, includeIfNull: false) + @JsonKey( + name: r'tags', + required: false, + includeIfNull: false, + ) final List? tags; - @JsonKey(name: r'unityPackageUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'unityPackageUrl', + required: false, + includeIfNull: false, + ) final String? unityPackageUrl; - @JsonKey(name: r'unityVersion', required: false, includeIfNull: false) + @JsonKey( + name: r'unityVersion', + required: false, + includeIfNull: false, + ) final String? unityVersion; @override diff --git a/vrchat_dart_generated/lib/src/model/current_user.dart b/vrchat_dart_generated/lib/src/model/current_user.dart index c02534b..dcc37b4 100644 --- a/vrchat_dart_generated/lib/src/model/current_user.dart +++ b/vrchat_dart_generated/lib/src/model/current_user.dart @@ -93,231 +93,488 @@ class CurrentUser { }); // minimum: 0 - @JsonKey(name: r'acceptedTOSVersion', required: true, includeIfNull: false) + @JsonKey( + name: r'acceptedTOSVersion', + required: true, + includeIfNull: false, + ) final int acceptedTOSVersion; // minimum: 0 @JsonKey( - name: r'acceptedPrivacyVersion', required: false, includeIfNull: false) + name: r'acceptedPrivacyVersion', + required: false, + includeIfNull: false, + ) final int? acceptedPrivacyVersion; - @JsonKey(name: r'accountDeletionDate', required: false, includeIfNull: false) + @JsonKey( + name: r'accountDeletionDate', + required: false, + includeIfNull: false, + ) final DateTime? accountDeletionDate; /// - @JsonKey(name: r'accountDeletionLog', required: false, includeIfNull: false) + @JsonKey( + name: r'accountDeletionLog', + required: false, + includeIfNull: false, + ) final List? accountDeletionLog; /// - @JsonKey(name: r'activeFriends', required: false, includeIfNull: false) + @JsonKey( + name: r'activeFriends', + required: false, + includeIfNull: false, + ) final List? activeFriends; - @JsonKey(name: r'allowAvatarCopying', required: true, includeIfNull: false) + @JsonKey( + name: r'allowAvatarCopying', + required: true, + includeIfNull: false, + ) final bool allowAvatarCopying; /// - @JsonKey(name: r'badges', required: false, includeIfNull: false) + @JsonKey( + name: r'badges', + required: false, + includeIfNull: false, + ) final List? badges; - @JsonKey(name: r'bio', required: true, includeIfNull: false) + @JsonKey( + name: r'bio', + required: true, + includeIfNull: false, + ) final String bio; /// - @JsonKey(name: r'bioLinks', required: true, includeIfNull: false) + @JsonKey( + name: r'bioLinks', + required: true, + includeIfNull: false, + ) final List bioLinks; - @JsonKey(name: r'currentAvatar', required: true, includeIfNull: false) + @JsonKey( + name: r'currentAvatar', + required: true, + includeIfNull: false, + ) final String currentAvatar; - @JsonKey(name: r'currentAvatarAssetUrl', required: true, includeIfNull: false) + @JsonKey( + name: r'currentAvatarAssetUrl', + required: true, + includeIfNull: false, + ) final String currentAvatarAssetUrl; /// When profilePicOverride is not empty, use it instead. - @JsonKey(name: r'currentAvatarImageUrl', required: true, includeIfNull: false) + @JsonKey( + name: r'currentAvatarImageUrl', + required: true, + includeIfNull: false, + ) final String currentAvatarImageUrl; /// When profilePicOverride is not empty, use it instead. @JsonKey( - name: r'currentAvatarThumbnailImageUrl', - required: true, - includeIfNull: false) + name: r'currentAvatarThumbnailImageUrl', + required: true, + includeIfNull: false, + ) final String currentAvatarThumbnailImageUrl; - @JsonKey(name: r'currentAvatarTags', required: true, includeIfNull: false) + @JsonKey( + name: r'currentAvatarTags', + required: true, + includeIfNull: false, + ) final List currentAvatarTags; - @JsonKey(name: r'date_joined', required: true, includeIfNull: false) + @JsonKey( + name: r'date_joined', + required: true, + includeIfNull: false, + ) final DateTime dateJoined; - @JsonKey(name: r'developerType', required: true, includeIfNull: false) + @JsonKey( + name: r'developerType', + required: true, + includeIfNull: false, + ) final DeveloperType developerType; - @JsonKey(name: r'displayName', required: true, includeIfNull: false) + @JsonKey( + name: r'displayName', + required: true, + includeIfNull: false, + ) final String displayName; - @JsonKey(name: r'emailVerified', required: true, includeIfNull: false) + @JsonKey( + name: r'emailVerified', + required: true, + includeIfNull: false, + ) final bool emailVerified; - @JsonKey(name: r'fallbackAvatar', required: false, includeIfNull: false) + @JsonKey( + name: r'fallbackAvatar', + required: false, + includeIfNull: false, + ) final String? fallbackAvatar; /// Always empty array. @Deprecated('friendGroupNames has been deprecated') - @JsonKey(name: r'friendGroupNames', required: true, includeIfNull: false) + @JsonKey( + name: r'friendGroupNames', + required: true, + includeIfNull: false, + ) final List friendGroupNames; - @JsonKey(name: r'friendKey', required: true, includeIfNull: false) + @JsonKey( + name: r'friendKey', + required: true, + includeIfNull: false, + ) final String friendKey; - @JsonKey(name: r'friends', required: true, includeIfNull: false) + @JsonKey( + name: r'friends', + required: true, + includeIfNull: false, + ) final List friends; - @JsonKey(name: r'hasBirthday', required: true, includeIfNull: false) + @JsonKey( + name: r'hasBirthday', + required: true, + includeIfNull: false, + ) final bool hasBirthday; @JsonKey( - name: r'hideContentFilterSettings', required: false, includeIfNull: false) + name: r'hideContentFilterSettings', + required: false, + includeIfNull: false, + ) final bool? hideContentFilterSettings; - @JsonKey(name: r'userLanguage', required: false, includeIfNull: false) + @JsonKey( + name: r'userLanguage', + required: false, + includeIfNull: false, + ) final String? userLanguage; - @JsonKey(name: r'userLanguageCode', required: false, includeIfNull: false) + @JsonKey( + name: r'userLanguageCode', + required: false, + includeIfNull: false, + ) final String? userLanguageCode; - @JsonKey(name: r'hasEmail', required: true, includeIfNull: false) + @JsonKey( + name: r'hasEmail', + required: true, + includeIfNull: false, + ) final bool hasEmail; - @JsonKey(name: r'hasLoggedInFromClient', required: true, includeIfNull: false) + @JsonKey( + name: r'hasLoggedInFromClient', + required: true, + includeIfNull: false, + ) final bool hasLoggedInFromClient; - @JsonKey(name: r'hasPendingEmail', required: true, includeIfNull: false) + @JsonKey( + name: r'hasPendingEmail', + required: true, + includeIfNull: false, + ) final bool hasPendingEmail; /// WorldID be \"offline\" on User profiles if you are not friends with that user. - @JsonKey(name: r'homeLocation', required: true, includeIfNull: false) + @JsonKey( + name: r'homeLocation', + required: true, + includeIfNull: false, + ) final String homeLocation; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'id', required: true, includeIfNull: false) + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) final String id; - @JsonKey(name: r'isBoopingEnabled', required: false, includeIfNull: false) + @JsonKey( + name: r'isBoopingEnabled', + required: false, + includeIfNull: false, + ) final bool? isBoopingEnabled; - @JsonKey(name: r'isFriend', required: true, includeIfNull: false) + @JsonKey( + name: r'isFriend', + required: true, + includeIfNull: false, + ) final bool isFriend; - @JsonKey(name: r'last_activity', required: false, includeIfNull: false) + @JsonKey( + name: r'last_activity', + required: false, + includeIfNull: false, + ) final DateTime? lastActivity; - @JsonKey(name: r'last_login', required: true, includeIfNull: false) + @JsonKey( + name: r'last_login', + required: true, + includeIfNull: false, + ) final DateTime lastLogin; - @JsonKey(name: r'last_mobile', required: true, includeIfNull: true) + @JsonKey( + name: r'last_mobile', + required: true, + includeIfNull: true, + ) final DateTime? lastMobile; /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison 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) + @JsonKey( + name: r'last_platform', + required: true, + includeIfNull: false, + ) final String lastPlatform; - @JsonKey(name: r'obfuscatedEmail', required: true, includeIfNull: false) + @JsonKey( + name: r'obfuscatedEmail', + required: true, + includeIfNull: false, + ) final String obfuscatedEmail; @JsonKey( - name: r'obfuscatedPendingEmail', required: true, includeIfNull: false) + name: r'obfuscatedPendingEmail', + required: true, + includeIfNull: false, + ) final String obfuscatedPendingEmail; - @JsonKey(name: r'oculusId', required: true, includeIfNull: false) + @JsonKey( + name: r'oculusId', + required: true, + includeIfNull: false, + ) final String oculusId; - @JsonKey(name: r'googleId', required: false, includeIfNull: false) + @JsonKey( + name: r'googleId', + required: false, + includeIfNull: false, + ) final String? googleId; - @JsonKey(name: r'googleDetails', required: false, includeIfNull: false) + @JsonKey( + name: r'googleDetails', + required: false, + includeIfNull: false, + ) final Object? googleDetails; - @JsonKey(name: r'picoId', required: false, includeIfNull: false) + @JsonKey( + name: r'picoId', + required: false, + includeIfNull: false, + ) final String? picoId; - @JsonKey(name: r'viveId', required: false, includeIfNull: false) + @JsonKey( + name: r'viveId', + required: false, + includeIfNull: false, + ) final String? viveId; - @JsonKey(name: r'offlineFriends', required: false, includeIfNull: false) + @JsonKey( + name: r'offlineFriends', + required: false, + includeIfNull: false, + ) final List? offlineFriends; - @JsonKey(name: r'onlineFriends', required: false, includeIfNull: false) + @JsonKey( + name: r'onlineFriends', + required: false, + includeIfNull: false, + ) final List? onlineFriends; /// - @JsonKey(name: r'pastDisplayNames', required: true, includeIfNull: false) + @JsonKey( + name: r'pastDisplayNames', + required: true, + includeIfNull: false, + ) final List pastDisplayNames; - @JsonKey(name: r'presence', required: false, includeIfNull: false) + @JsonKey( + name: r'presence', + required: false, + includeIfNull: false, + ) final CurrentUserPresence? presence; - @JsonKey(name: r'profilePicOverride', required: true, includeIfNull: false) + @JsonKey( + name: r'profilePicOverride', + required: true, + includeIfNull: false, + ) final String profilePicOverride; @JsonKey( - name: r'profilePicOverrideThumbnail', - required: true, - includeIfNull: false) + name: r'profilePicOverrideThumbnail', + required: true, + includeIfNull: false, + ) final String profilePicOverrideThumbnail; - @JsonKey(name: r'pronouns', required: true, includeIfNull: false) + @JsonKey( + name: r'pronouns', + required: true, + includeIfNull: false, + ) final String pronouns; - @JsonKey(name: r'queuedInstance', required: false, includeIfNull: false) + @JsonKey( + name: r'queuedInstance', + required: false, + includeIfNull: false, + ) final String? queuedInstance; @JsonKey( - name: r'receiveMobileInvitations', required: false, includeIfNull: false) + name: r'receiveMobileInvitations', + required: false, + includeIfNull: false, + ) final bool? receiveMobileInvitations; - @JsonKey(name: r'state', required: true, includeIfNull: false) + @JsonKey( + name: r'state', + required: true, + includeIfNull: false, + ) final UserState state; - @JsonKey(name: r'status', required: true, includeIfNull: false) + @JsonKey( + name: r'status', + required: true, + includeIfNull: false, + ) final UserStatus status; - @JsonKey(name: r'statusDescription', required: true, includeIfNull: false) + @JsonKey( + name: r'statusDescription', + required: true, + includeIfNull: false, + ) final String statusDescription; - @JsonKey(name: r'statusFirstTime', required: true, includeIfNull: false) + @JsonKey( + name: r'statusFirstTime', + required: true, + includeIfNull: false, + ) final bool statusFirstTime; - @JsonKey(name: r'statusHistory', required: true, includeIfNull: false) + @JsonKey( + name: r'statusHistory', + required: true, + includeIfNull: false, + ) final List statusHistory; - @JsonKey(name: r'steamDetails', required: true, includeIfNull: false) + @JsonKey( + name: r'steamDetails', + required: true, + includeIfNull: false, + ) final Object steamDetails; - @JsonKey(name: r'steamId', required: true, includeIfNull: false) + @JsonKey( + name: r'steamId', + required: true, + includeIfNull: false, + ) final String steamId; - @JsonKey(name: r'tags', required: true, includeIfNull: false) + @JsonKey( + name: r'tags', + required: true, + includeIfNull: false, + ) final List tags; - @JsonKey(name: r'twoFactorAuthEnabled', required: true, includeIfNull: false) + @JsonKey( + name: r'twoFactorAuthEnabled', + required: true, + includeIfNull: false, + ) final bool twoFactorAuthEnabled; @JsonKey( - name: r'twoFactorAuthEnabledDate', required: false, includeIfNull: false) + name: r'twoFactorAuthEnabledDate', + required: false, + includeIfNull: false, + ) final DateTime? twoFactorAuthEnabledDate; - @JsonKey(name: r'unsubscribe', required: true, includeIfNull: false) + @JsonKey( + name: r'unsubscribe', + required: true, + includeIfNull: false, + ) final bool unsubscribe; - @JsonKey(name: r'updated_at', required: false, includeIfNull: false) + @JsonKey( + name: r'updated_at', + required: false, + includeIfNull: false, + ) final DateTime? updatedAt; - @JsonKey(name: r'userIcon', required: true, includeIfNull: false) + @JsonKey( + name: r'userIcon', + required: true, + includeIfNull: false, + ) final String userIcon; /// -| **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). @Deprecated('username has been deprecated') - @JsonKey(name: r'username', required: false, includeIfNull: false) + @JsonKey( + name: r'username', + required: false, + includeIfNull: false, + ) final String? username; @override 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 ce16599..b312320 100644 --- a/vrchat_dart_generated/lib/src/model/current_user_presence.dart +++ b/vrchat_dart_generated/lib/src/model/current_user_presence.dart @@ -33,55 +33,115 @@ class CurrentUserPresence { this.world, }); - @JsonKey(name: r'avatarThumbnail', required: false, includeIfNull: false) + @JsonKey( + name: r'avatarThumbnail', + required: false, + includeIfNull: false, + ) final String? avatarThumbnail; - @JsonKey(name: r'currentAvatarTags', required: false, includeIfNull: false) + @JsonKey( + name: r'currentAvatarTags', + required: false, + includeIfNull: false, + ) final String? currentAvatarTags; - @JsonKey(name: r'displayName', required: false, includeIfNull: false) + @JsonKey( + name: r'displayName', + required: false, + includeIfNull: false, + ) final String? displayName; - @JsonKey(name: r'groups', required: false, includeIfNull: false) + @JsonKey( + name: r'groups', + required: false, + includeIfNull: false, + ) final List? groups; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'id', required: false, includeIfNull: false) + @JsonKey( + name: r'id', + required: false, + includeIfNull: false, + ) final String? id; - @JsonKey(name: r'instance', required: false, includeIfNull: false) + @JsonKey( + name: r'instance', + required: false, + includeIfNull: false, + ) final String? instance; /// either an InstanceType or an empty string - @JsonKey(name: r'instanceType', required: false, includeIfNull: false) + @JsonKey( + name: r'instanceType', + required: false, + includeIfNull: false, + ) final String? instanceType; - @JsonKey(name: r'isRejoining', required: false, includeIfNull: false) + @JsonKey( + name: r'isRejoining', + required: false, + includeIfNull: false, + ) final String? isRejoining; /// either a Platform or an empty string - @JsonKey(name: r'platform', required: false, includeIfNull: false) + @JsonKey( + name: r'platform', + required: false, + includeIfNull: false, + ) final String? platform; - @JsonKey(name: r'profilePicOverride', required: false, includeIfNull: false) + @JsonKey( + name: r'profilePicOverride', + required: false, + includeIfNull: false, + ) final String? profilePicOverride; /// either a UserStatus or empty string - @JsonKey(name: r'status', required: false, includeIfNull: false) + @JsonKey( + name: r'status', + required: false, + includeIfNull: false, + ) final String? status; - @JsonKey(name: r'travelingToInstance', required: false, includeIfNull: false) + @JsonKey( + name: r'travelingToInstance', + required: false, + includeIfNull: false, + ) final String? travelingToInstance; /// WorldID be \"offline\" on User profiles if you are not friends with that user. - @JsonKey(name: r'travelingToWorld', required: false, includeIfNull: false) + @JsonKey( + name: r'travelingToWorld', + required: false, + includeIfNull: false, + ) final String? travelingToWorld; - @JsonKey(name: r'userIcon', required: false, includeIfNull: false) + @JsonKey( + name: r'userIcon', + required: false, + includeIfNull: false, + ) final String? userIcon; /// WorldID be \"offline\" on User profiles if you are not friends with that user. - @JsonKey(name: r'world', required: false, includeIfNull: false) + @JsonKey( + name: r'world', + required: false, + includeIfNull: false, + ) final String? world; @override 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 1de90e4..a14d4ca 100644 --- a/vrchat_dart_generated/lib/src/model/dynamic_content_row.dart +++ b/vrchat_dart_generated/lib/src/model/dynamic_content_row.dart @@ -27,31 +27,63 @@ class DynamicContentRow { }); // minimum: 0 - @JsonKey(name: r'index', required: false, includeIfNull: false) + @JsonKey( + name: r'index', + required: false, + includeIfNull: false, + ) final int? index; - @JsonKey(name: r'name', required: true, includeIfNull: false) + @JsonKey( + name: r'name', + required: true, + includeIfNull: false, + ) final String name; /// Usually \"ThisPlatformSupported\", but can also be other values such as \"all\" or platform specific identifiers. - @JsonKey(name: r'platform', required: true, includeIfNull: false) + @JsonKey( + name: r'platform', + required: true, + includeIfNull: false, + ) final String platform; - @JsonKey(name: r'sortHeading', required: true, includeIfNull: false) + @JsonKey( + name: r'sortHeading', + required: true, + includeIfNull: false, + ) final String sortHeading; - @JsonKey(name: r'sortOrder', required: true, includeIfNull: false) + @JsonKey( + name: r'sortOrder', + required: true, + includeIfNull: false, + ) final String sortOrder; - @JsonKey(name: r'sortOwnership', required: true, includeIfNull: false) + @JsonKey( + name: r'sortOwnership', + required: true, + includeIfNull: false, + ) final String sortOwnership; /// Tag to filter content for this row. - @JsonKey(name: r'tag', required: false, includeIfNull: false) + @JsonKey( + name: r'tag', + required: false, + includeIfNull: false, + ) final String? tag; /// Type is not present if it is a world. - @JsonKey(name: r'type', required: false, includeIfNull: false) + @JsonKey( + name: r'type', + required: false, + includeIfNull: false, + ) final String? type; @override diff --git a/vrchat_dart_generated/lib/src/model/error.dart b/vrchat_dart_generated/lib/src/model/error.dart index 1100c2f..7348729 100644 --- a/vrchat_dart_generated/lib/src/model/error.dart +++ b/vrchat_dart_generated/lib/src/model/error.dart @@ -20,7 +20,11 @@ class Error { this.error, }); - @JsonKey(name: r'error', required: false, includeIfNull: false) + @JsonKey( + name: r'error', + required: false, + includeIfNull: false, + ) final Response? error; @override diff --git a/vrchat_dart_generated/lib/src/model/favorite.dart b/vrchat_dart_generated/lib/src/model/favorite.dart index 6ba8366..b74da1a 100644 --- a/vrchat_dart_generated/lib/src/model/favorite.dart +++ b/vrchat_dart_generated/lib/src/model/favorite.dart @@ -24,17 +24,33 @@ class Favorite { }); /// MUST be either AvatarID, UserID or WorldID. - @JsonKey(name: r'favoriteId', required: true, includeIfNull: false) + @JsonKey( + name: r'favoriteId', + required: true, + includeIfNull: false, + ) final String favoriteId; - @JsonKey(name: r'id', required: true, includeIfNull: false) + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) final String id; /// - @JsonKey(name: r'tags', required: true, includeIfNull: false) + @JsonKey( + name: r'tags', + required: true, + includeIfNull: false, + ) final List tags; - @JsonKey(name: r'type', required: true, includeIfNull: false) + @JsonKey( + name: r'type', + required: true, + includeIfNull: false, + ) final FavoriteType type; @override diff --git a/vrchat_dart_generated/lib/src/model/favorite_group.dart b/vrchat_dart_generated/lib/src/model/favorite_group.dart index 84ebc7f..1f725c1 100644 --- a/vrchat_dart_generated/lib/src/model/favorite_group.dart +++ b/vrchat_dart_generated/lib/src/model/favorite_group.dart @@ -28,30 +28,62 @@ class FavoriteGroup { required this.visibility, }); - @JsonKey(name: r'displayName', required: true, includeIfNull: false) + @JsonKey( + name: r'displayName', + required: true, + includeIfNull: false, + ) final String displayName; - @JsonKey(name: r'id', required: true, includeIfNull: false) + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) final String id; - @JsonKey(name: r'name', required: true, includeIfNull: false) + @JsonKey( + name: r'name', + required: true, + includeIfNull: false, + ) final String name; - @JsonKey(name: r'ownerDisplayName', required: true, includeIfNull: false) + @JsonKey( + name: r'ownerDisplayName', + required: true, + includeIfNull: false, + ) final String ownerDisplayName; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'ownerId', required: true, includeIfNull: false) + @JsonKey( + name: r'ownerId', + required: true, + includeIfNull: false, + ) final String ownerId; /// - @JsonKey(name: r'tags', required: true, includeIfNull: false) + @JsonKey( + name: r'tags', + required: true, + includeIfNull: false, + ) final List tags; - @JsonKey(name: r'type', required: true, includeIfNull: false) + @JsonKey( + name: r'type', + required: true, + includeIfNull: false, + ) final FavoriteType type; - @JsonKey(name: r'visibility', required: true, includeIfNull: false) + @JsonKey( + name: r'visibility', + required: true, + includeIfNull: false, + ) final FavoriteGroupVisibility visibility; @override diff --git a/vrchat_dart_generated/lib/src/model/favorited_world.dart b/vrchat_dart_generated/lib/src/model/favorited_world.dart new file mode 100644 index 0000000..3631b90 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/favorited_world.dart @@ -0,0 +1,330 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/release_status.dart'; +import 'package:vrchat_dart_generated/src/model/unity_package.dart'; +import 'package:json_annotation/json_annotation.dart'; + +part 'favorited_world.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class FavoritedWorld { + /// Returns a new [FavoritedWorld] instance. + FavoritedWorld({ + required this.authorId, + required this.authorName, + required this.capacity, + required this.description, + this.recommendedCapacity, + required this.createdAt, + this.favorites = 0, + required this.favoriteGroup, + required this.favoriteId, + this.featured = false, + this.visits = 0, + this.heat = 0, + required this.id, + required this.imageUrl, + required this.labsPublicationDate, + required this.name, + this.occupants = 0, + this.organization = 'vrchat', + this.popularity = 0, + this.previewYoutubeId, + required this.publicationDate, + required this.releaseStatus, + required this.tags, + required this.thumbnailImageUrl, + required this.unityPackages, + required this.updatedAt, + this.udonProducts, + required this.version, + }); + + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + @JsonKey( + name: r'authorId', + required: true, + includeIfNull: false, + ) + final String authorId; + + @JsonKey( + name: r'authorName', + required: true, + includeIfNull: false, + ) + final String authorName; + + @JsonKey( + name: r'capacity', + required: true, + includeIfNull: false, + ) + final int capacity; + + @JsonKey( + name: r'description', + required: true, + includeIfNull: false, + ) + final String description; + + @JsonKey( + name: r'recommendedCapacity', + required: false, + includeIfNull: false, + ) + final int? recommendedCapacity; + + @JsonKey( + name: r'created_at', + required: true, + includeIfNull: false, + ) + final DateTime createdAt; + + // minimum: 0 + @JsonKey( + name: r'favorites', + required: true, + includeIfNull: false, + ) + final int favorites; + + @JsonKey( + name: r'favoriteGroup', + required: true, + includeIfNull: false, + ) + final String favoriteGroup; + + @JsonKey( + name: r'favoriteId', + required: true, + includeIfNull: false, + ) + final String favoriteId; + + @JsonKey( + name: r'featured', + required: true, + includeIfNull: false, + ) + final bool featured; + + // minimum: 0 + @JsonKey( + name: r'visits', + required: false, + includeIfNull: false, + ) + final int? visits; + + // minimum: 0 + @JsonKey( + name: r'heat', + required: true, + includeIfNull: false, + ) + final int heat; + + /// WorldID be \"offline\" on User profiles if you are not friends with that user. + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) + final String id; + + @JsonKey( + name: r'imageUrl', + required: true, + includeIfNull: false, + ) + final String imageUrl; + + @JsonKey( + name: r'labsPublicationDate', + required: true, + includeIfNull: false, + ) + final String labsPublicationDate; + + @JsonKey( + name: r'name', + required: true, + includeIfNull: false, + ) + final String name; + + // minimum: 0 + @JsonKey( + name: r'occupants', + required: true, + includeIfNull: false, + ) + final int occupants; + + @JsonKey( + name: r'organization', + required: true, + includeIfNull: false, + ) + final String organization; + + // minimum: 0 + @JsonKey( + name: r'popularity', + required: true, + includeIfNull: false, + ) + final int popularity; + + @JsonKey( + name: r'previewYoutubeId', + required: false, + includeIfNull: false, + ) + final String? previewYoutubeId; + + @JsonKey( + name: r'publicationDate', + required: true, + includeIfNull: false, + ) + final String publicationDate; + + @JsonKey( + name: r'releaseStatus', + required: true, + includeIfNull: false, + ) + final ReleaseStatus releaseStatus; + + /// + @JsonKey( + name: r'tags', + required: true, + includeIfNull: false, + ) + final List tags; + + @JsonKey( + name: r'thumbnailImageUrl', + required: true, + includeIfNull: false, + ) + final String thumbnailImageUrl; + + /// + @JsonKey( + name: r'unityPackages', + required: true, + includeIfNull: false, + ) + final List unityPackages; + + @JsonKey( + name: r'updated_at', + required: true, + includeIfNull: false, + ) + final DateTime updatedAt; + + @JsonKey( + name: r'udonProducts', + required: false, + includeIfNull: false, + ) + final List? udonProducts; + + // minimum: 1 + @JsonKey( + name: r'version', + required: true, + includeIfNull: false, + ) + final int version; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is FavoritedWorld && + other.authorId == authorId && + other.authorName == authorName && + other.capacity == capacity && + other.description == description && + other.recommendedCapacity == recommendedCapacity && + other.createdAt == createdAt && + other.favorites == favorites && + other.favoriteGroup == favoriteGroup && + other.favoriteId == favoriteId && + other.featured == featured && + other.visits == visits && + other.heat == heat && + other.id == id && + other.imageUrl == imageUrl && + other.labsPublicationDate == labsPublicationDate && + other.name == name && + other.occupants == occupants && + other.organization == organization && + other.popularity == popularity && + other.previewYoutubeId == previewYoutubeId && + other.publicationDate == publicationDate && + other.releaseStatus == releaseStatus && + other.tags == tags && + other.thumbnailImageUrl == thumbnailImageUrl && + other.unityPackages == unityPackages && + other.updatedAt == updatedAt && + other.udonProducts == udonProducts && + other.version == version; + + @override + int get hashCode => + authorId.hashCode + + authorName.hashCode + + capacity.hashCode + + description.hashCode + + recommendedCapacity.hashCode + + createdAt.hashCode + + favorites.hashCode + + favoriteGroup.hashCode + + favoriteId.hashCode + + featured.hashCode + + visits.hashCode + + heat.hashCode + + id.hashCode + + imageUrl.hashCode + + labsPublicationDate.hashCode + + name.hashCode + + occupants.hashCode + + organization.hashCode + + popularity.hashCode + + (previewYoutubeId == null ? 0 : previewYoutubeId.hashCode) + + publicationDate.hashCode + + releaseStatus.hashCode + + tags.hashCode + + thumbnailImageUrl.hashCode + + unityPackages.hashCode + + updatedAt.hashCode + + udonProducts.hashCode + + version.hashCode; + + factory FavoritedWorld.fromJson(Map json) => + _$FavoritedWorldFromJson(json); + + Map toJson() => _$FavoritedWorldToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/favorited_world.g.dart b/vrchat_dart_generated/lib/src/model/favorited_world.g.dart new file mode 100644 index 0000000..f8cf269 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/favorited_world.g.dart @@ -0,0 +1,144 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'favorited_world.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +FavoritedWorld _$FavoritedWorldFromJson(Map json) => + $checkedCreate( + 'FavoritedWorld', + json, + ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + 'authorId', + 'authorName', + 'capacity', + 'description', + 'created_at', + 'favorites', + 'favoriteGroup', + 'favoriteId', + 'featured', + 'heat', + 'id', + 'imageUrl', + 'labsPublicationDate', + 'name', + 'occupants', + 'organization', + 'popularity', + 'publicationDate', + 'releaseStatus', + 'tags', + 'thumbnailImageUrl', + 'unityPackages', + 'updated_at', + 'version' + ], + ); + final val = FavoritedWorld( + authorId: $checkedConvert('authorId', (v) => v as String), + authorName: $checkedConvert('authorName', (v) => v as String), + capacity: $checkedConvert('capacity', (v) => (v as num).toInt()), + description: $checkedConvert('description', (v) => v as String), + recommendedCapacity: $checkedConvert( + 'recommendedCapacity', (v) => (v as num?)?.toInt()), + createdAt: + $checkedConvert('created_at', (v) => DateTime.parse(v as String)), + favorites: + $checkedConvert('favorites', (v) => (v as num?)?.toInt() ?? 0), + favoriteGroup: $checkedConvert('favoriteGroup', (v) => v as String), + favoriteId: $checkedConvert('favoriteId', (v) => v as String), + featured: $checkedConvert('featured', (v) => v as bool? ?? false), + visits: $checkedConvert('visits', (v) => (v as num?)?.toInt() ?? 0), + heat: $checkedConvert('heat', (v) => (v as num?)?.toInt() ?? 0), + id: $checkedConvert('id', (v) => v as String), + imageUrl: $checkedConvert('imageUrl', (v) => v as String), + labsPublicationDate: + $checkedConvert('labsPublicationDate', (v) => v as String), + name: $checkedConvert('name', (v) => v as String), + occupants: + $checkedConvert('occupants', (v) => (v as num?)?.toInt() ?? 0), + organization: + $checkedConvert('organization', (v) => v as String? ?? 'vrchat'), + popularity: + $checkedConvert('popularity', (v) => (v as num?)?.toInt() ?? 0), + previewYoutubeId: + $checkedConvert('previewYoutubeId', (v) => v as String?), + publicationDate: + $checkedConvert('publicationDate', (v) => v as String), + releaseStatus: $checkedConvert( + 'releaseStatus', (v) => $enumDecode(_$ReleaseStatusEnumMap, v)), + tags: $checkedConvert('tags', + (v) => (v as List).map((e) => e as String).toList()), + thumbnailImageUrl: + $checkedConvert('thumbnailImageUrl', (v) => v as String), + unityPackages: $checkedConvert( + 'unityPackages', + (v) => (v as List) + .map((e) => UnityPackage.fromJson(e as Map)) + .toList()), + updatedAt: + $checkedConvert('updated_at', (v) => DateTime.parse(v as String)), + udonProducts: $checkedConvert('udonProducts', + (v) => (v as List?)?.map((e) => e as String).toList()), + version: $checkedConvert('version', (v) => (v as num).toInt()), + ); + return val; + }, + fieldKeyMap: const {'createdAt': 'created_at', 'updatedAt': 'updated_at'}, + ); + +Map _$FavoritedWorldToJson(FavoritedWorld instance) { + final val = { + 'authorId': instance.authorId, + 'authorName': instance.authorName, + 'capacity': instance.capacity, + 'description': instance.description, + }; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('recommendedCapacity', instance.recommendedCapacity); + val['created_at'] = instance.createdAt.toIso8601String(); + val['favorites'] = instance.favorites; + val['favoriteGroup'] = instance.favoriteGroup; + val['favoriteId'] = instance.favoriteId; + val['featured'] = instance.featured; + writeNotNull('visits', instance.visits); + val['heat'] = instance.heat; + val['id'] = instance.id; + val['imageUrl'] = instance.imageUrl; + val['labsPublicationDate'] = instance.labsPublicationDate; + val['name'] = instance.name; + val['occupants'] = instance.occupants; + val['organization'] = instance.organization; + val['popularity'] = instance.popularity; + writeNotNull('previewYoutubeId', instance.previewYoutubeId); + val['publicationDate'] = instance.publicationDate; + val['releaseStatus'] = _$ReleaseStatusEnumMap[instance.releaseStatus]!; + val['tags'] = instance.tags; + val['thumbnailImageUrl'] = instance.thumbnailImageUrl; + val['unityPackages'] = instance.unityPackages.map((e) => e.toJson()).toList(); + val['updated_at'] = instance.updatedAt.toIso8601String(); + writeNotNull('udonProducts', instance.udonProducts); + val['version'] = instance.version; + return val; +} + +const _$ReleaseStatusEnumMap = { + ReleaseStatus.public: 'public', + ReleaseStatus.private: 'private', + ReleaseStatus.hidden: 'hidden', + ReleaseStatus.all: 'all', +}; diff --git a/vrchat_dart_generated/lib/src/model/file.dart b/vrchat_dart_generated/lib/src/model/file.dart index 517b72b..631b7ef 100644 --- a/vrchat_dart_generated/lib/src/model/file.dart +++ b/vrchat_dart_generated/lib/src/model/file.dart @@ -27,29 +27,57 @@ class File { required this.versions, }); - @JsonKey(name: r'extension', required: true, includeIfNull: false) + @JsonKey( + name: r'extension', + required: true, + includeIfNull: false, + ) final String extension_; - @JsonKey(name: r'id', required: true, includeIfNull: false) + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) final String id; - @JsonKey(name: r'mimeType', required: true, includeIfNull: false) + @JsonKey( + name: r'mimeType', + required: true, + includeIfNull: false, + ) final MIMEType mimeType; /// - @JsonKey(name: r'name', required: true, includeIfNull: false) + @JsonKey( + name: r'name', + required: true, + includeIfNull: false, + ) final String name; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'ownerId', required: true, includeIfNull: false) + @JsonKey( + name: r'ownerId', + required: true, + includeIfNull: false, + ) final String ownerId; /// - @JsonKey(name: r'tags', required: true, includeIfNull: false) + @JsonKey( + name: r'tags', + required: true, + includeIfNull: false, + ) final List tags; /// - @JsonKey(name: r'versions', required: true, includeIfNull: false) + @JsonKey( + name: r'versions', + required: true, + includeIfNull: false, + ) final Set versions; @override diff --git a/vrchat_dart_generated/lib/src/model/file_data.dart b/vrchat_dart_generated/lib/src/model/file_data.dart index 043d0ae..fb4ca98 100644 --- a/vrchat_dart_generated/lib/src/model/file_data.dart +++ b/vrchat_dart_generated/lib/src/model/file_data.dart @@ -26,26 +26,54 @@ class FileData { required this.url, }); - @JsonKey(name: r'category', required: true, includeIfNull: false) + @JsonKey( + name: r'category', + required: true, + includeIfNull: false, + ) final FileDataCategoryEnum category; - @JsonKey(name: r'fileName', required: true, includeIfNull: false) + @JsonKey( + name: r'fileName', + required: true, + includeIfNull: false, + ) final String fileName; - @JsonKey(name: r'md5', required: false, includeIfNull: false) + @JsonKey( + name: r'md5', + required: false, + includeIfNull: false, + ) final String? md5; // minimum: 0 - @JsonKey(name: r'sizeInBytes', required: true, includeIfNull: false) + @JsonKey( + name: r'sizeInBytes', + required: true, + includeIfNull: false, + ) final int sizeInBytes; - @JsonKey(name: r'status', required: true, includeIfNull: false) + @JsonKey( + name: r'status', + required: true, + includeIfNull: false, + ) final FileStatus status; - @JsonKey(name: r'uploadId', required: true, includeIfNull: false) + @JsonKey( + name: r'uploadId', + required: true, + includeIfNull: false, + ) final String uploadId; - @JsonKey(name: r'url', required: true, includeIfNull: false) + @JsonKey( + name: r'url', + required: true, + includeIfNull: false, + ) final String url; @override @@ -83,12 +111,16 @@ class FileData { enum FileDataCategoryEnum { @JsonValue(r'multipart') - multipart, + multipart(r'multipart'), @JsonValue(r'queued') - queued, + queued(r'queued'), @JsonValue(r'simple') - simple; + simple(r'simple'); + + const FileDataCategoryEnum(this.value); + + final String value; @override - String toString() => this.name; + String toString() => value; } diff --git a/vrchat_dart_generated/lib/src/model/file_upload_url.dart b/vrchat_dart_generated/lib/src/model/file_upload_url.dart index 7cb4863..c60ffb9 100644 --- a/vrchat_dart_generated/lib/src/model/file_upload_url.dart +++ b/vrchat_dart_generated/lib/src/model/file_upload_url.dart @@ -20,7 +20,11 @@ class FileUploadURL { }); /// - @JsonKey(name: r'url', required: true, includeIfNull: false) + @JsonKey( + name: r'url', + required: true, + includeIfNull: false, + ) final String url; @override diff --git a/vrchat_dart_generated/lib/src/model/file_version.dart b/vrchat_dart_generated/lib/src/model/file_version.dart index 00c4b5c..7de11c9 100644 --- a/vrchat_dart_generated/lib/src/model/file_version.dart +++ b/vrchat_dart_generated/lib/src/model/file_version.dart @@ -27,28 +27,56 @@ class FileVersion { this.version = 0, }); - @JsonKey(name: r'created_at', required: true, includeIfNull: false) + @JsonKey( + name: r'created_at', + required: true, + includeIfNull: false, + ) final DateTime createdAt; /// Usually only present if `true` - @JsonKey(name: r'deleted', required: false, includeIfNull: false) + @JsonKey( + name: r'deleted', + required: false, + includeIfNull: false, + ) final bool? deleted; - @JsonKey(name: r'delta', required: false, includeIfNull: false) + @JsonKey( + name: r'delta', + required: false, + includeIfNull: false, + ) final FileData? delta; - @JsonKey(name: r'file', required: false, includeIfNull: false) + @JsonKey( + name: r'file', + required: false, + includeIfNull: false, + ) final FileData? file; - @JsonKey(name: r'signature', required: false, includeIfNull: false) + @JsonKey( + name: r'signature', + required: false, + includeIfNull: false, + ) final FileData? signature; - @JsonKey(name: r'status', required: true, includeIfNull: false) + @JsonKey( + name: r'status', + required: true, + includeIfNull: false, + ) final FileStatus status; /// Incremental version counter, can only be increased. // minimum: 0 - @JsonKey(name: r'version', required: true, includeIfNull: false) + @JsonKey( + name: r'version', + required: true, + includeIfNull: false, + ) final int version; @override diff --git a/vrchat_dart_generated/lib/src/model/file_version_upload_status.dart b/vrchat_dart_generated/lib/src/model/file_version_upload_status.dart index 74e01dd..36b5490 100644 --- a/vrchat_dart_generated/lib/src/model/file_version_upload_status.dart +++ b/vrchat_dart_generated/lib/src/model/file_version_upload_status.dart @@ -24,25 +24,49 @@ class FileVersionUploadStatus { required this.etags, }); - @JsonKey(name: r'uploadId', required: true, includeIfNull: false) + @JsonKey( + name: r'uploadId', + required: true, + includeIfNull: false, + ) final String uploadId; - @JsonKey(name: r'fileName', required: true, includeIfNull: false) + @JsonKey( + name: r'fileName', + required: true, + includeIfNull: false, + ) final String fileName; // minimum: 0 - @JsonKey(name: r'nextPartNumber', required: true, includeIfNull: false) + @JsonKey( + name: r'nextPartNumber', + required: true, + includeIfNull: false, + ) final int nextPartNumber; // minimum: 1 - @JsonKey(name: r'maxParts', required: true, includeIfNull: false) + @JsonKey( + name: r'maxParts', + required: true, + includeIfNull: false, + ) final int maxParts; - @JsonKey(name: r'parts', required: true, includeIfNull: false) + @JsonKey( + name: r'parts', + required: true, + includeIfNull: false, + ) final List parts; /// Unknown - @JsonKey(name: r'etags', required: true, includeIfNull: false) + @JsonKey( + name: r'etags', + required: true, + includeIfNull: false, + ) final List etags; @override diff --git a/vrchat_dart_generated/lib/src/model/finish_file_data_upload_request.dart b/vrchat_dart_generated/lib/src/model/finish_file_data_upload_request.dart index f4218c1..a9a9b85 100644 --- a/vrchat_dart_generated/lib/src/model/finish_file_data_upload_request.dart +++ b/vrchat_dart_generated/lib/src/model/finish_file_data_upload_request.dart @@ -22,17 +22,29 @@ class FinishFileDataUploadRequest { }); /// Array of ETags uploaded. - @JsonKey(name: r'etags', required: false, includeIfNull: false) + @JsonKey( + name: r'etags', + required: false, + includeIfNull: false, + ) final Set? etags; /// Always a zero in string form, despite how many parts uploaded. @Deprecated('nextPartNumber has been deprecated') - @JsonKey(name: r'nextPartNumber', required: true, includeIfNull: false) + @JsonKey( + name: r'nextPartNumber', + required: true, + includeIfNull: false, + ) final String nextPartNumber; /// Always a zero in string form, despite how many parts uploaded. @Deprecated('maxParts has been deprecated') - @JsonKey(name: r'maxParts', required: true, includeIfNull: false) + @JsonKey( + name: r'maxParts', + required: true, + includeIfNull: false, + ) final String maxParts; @override diff --git a/vrchat_dart_generated/lib/src/model/friend_status.dart b/vrchat_dart_generated/lib/src/model/friend_status.dart index 9ca5eba..41c98fd 100644 --- a/vrchat_dart_generated/lib/src/model/friend_status.dart +++ b/vrchat_dart_generated/lib/src/model/friend_status.dart @@ -21,13 +21,25 @@ class FriendStatus { this.outgoingRequest = false, }); - @JsonKey(name: r'incomingRequest', required: true, includeIfNull: false) + @JsonKey( + name: r'incomingRequest', + required: true, + includeIfNull: false, + ) final bool incomingRequest; - @JsonKey(name: r'isFriend', required: true, includeIfNull: false) + @JsonKey( + name: r'isFriend', + required: true, + includeIfNull: false, + ) final bool isFriend; - @JsonKey(name: r'outgoingRequest', required: true, includeIfNull: false) + @JsonKey( + name: r'outgoingRequest', + required: true, + includeIfNull: false, + ) final bool outgoingRequest; @override diff --git a/vrchat_dart_generated/lib/src/model/group.dart b/vrchat_dart_generated/lib/src/model/group.dart index 942cd8d..5870add 100644 --- a/vrchat_dart_generated/lib/src/model/group.dart +++ b/vrchat_dart_generated/lib/src/model/group.dart @@ -22,6 +22,7 @@ part 'group.g.dart'; class Group { /// Returns a new [Group] instance. Group({ + this.badges, this.id, this.name, this.shortCode, @@ -52,97 +53,217 @@ class Group { this.roles, }); - @JsonKey(name: r'id', required: false, includeIfNull: false) + @JsonKey( + name: r'badges', + required: false, + includeIfNull: false, + ) + final List? badges; + + @JsonKey( + name: r'id', + required: false, + includeIfNull: false, + ) final String? id; - @JsonKey(name: r'name', required: false, includeIfNull: false) + @JsonKey( + name: r'name', + required: false, + includeIfNull: false, + ) final String? name; - @JsonKey(name: r'shortCode', required: false, includeIfNull: false) + @JsonKey( + name: r'shortCode', + required: false, + includeIfNull: false, + ) final String? shortCode; - @JsonKey(name: r'discriminator', required: false, includeIfNull: false) + @JsonKey( + name: r'discriminator', + required: false, + includeIfNull: false, + ) final String? discriminator; - @JsonKey(name: r'description', required: false, includeIfNull: false) + @JsonKey( + name: r'description', + required: false, + includeIfNull: false, + ) final String? description; - @JsonKey(name: r'iconUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'iconUrl', + required: false, + includeIfNull: false, + ) final String? iconUrl; - @JsonKey(name: r'bannerUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'bannerUrl', + required: false, + includeIfNull: false, + ) final String? bannerUrl; - @JsonKey(name: r'privacy', required: false, includeIfNull: false) + @JsonKey( + name: r'privacy', + required: false, + includeIfNull: false, + ) final GroupPrivacy? privacy; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'ownerId', required: false, includeIfNull: false) + @JsonKey( + name: r'ownerId', + required: false, + includeIfNull: false, + ) final String? ownerId; - @JsonKey(name: r'rules', required: false, includeIfNull: false) + @JsonKey( + name: r'rules', + required: false, + includeIfNull: false, + ) final String? rules; - @JsonKey(name: r'links', required: false, includeIfNull: false) + @JsonKey( + name: r'links', + required: false, + includeIfNull: false, + ) final List? links; - @JsonKey(name: r'languages', required: false, includeIfNull: false) + @JsonKey( + name: r'languages', + required: false, + includeIfNull: false, + ) final List? languages; - @JsonKey(name: r'iconId', required: false, includeIfNull: false) + @JsonKey( + name: r'iconId', + required: false, + includeIfNull: false, + ) final String? iconId; - @JsonKey(name: r'bannerId', required: false, includeIfNull: false) + @JsonKey( + name: r'bannerId', + required: false, + includeIfNull: false, + ) final String? bannerId; - @JsonKey(name: r'memberCount', required: false, includeIfNull: false) + @JsonKey( + name: r'memberCount', + required: false, + includeIfNull: false, + ) final int? memberCount; - @JsonKey(name: r'memberCountSyncedAt', required: false, includeIfNull: false) + @JsonKey( + name: r'memberCountSyncedAt', + required: false, + includeIfNull: false, + ) final DateTime? memberCountSyncedAt; - @JsonKey(name: r'isVerified', required: false, includeIfNull: false) + @JsonKey( + name: r'isVerified', + required: false, + includeIfNull: false, + ) final bool? isVerified; - @JsonKey(name: r'joinState', required: false, includeIfNull: false) + @JsonKey( + name: r'joinState', + required: false, + includeIfNull: false, + ) final GroupJoinState? joinState; - @JsonKey(name: r'tags', required: false, includeIfNull: false) + @JsonKey( + name: r'tags', + required: false, + 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'transferTargetId', required: false, includeIfNull: false) + @JsonKey( + name: r'transferTargetId', + required: false, + includeIfNull: false, + ) final String? transferTargetId; - @JsonKey(name: r'galleries', required: false, includeIfNull: false) + @JsonKey( + name: r'galleries', + required: false, + includeIfNull: false, + ) final List? galleries; - @JsonKey(name: r'createdAt', required: false, includeIfNull: false) + @JsonKey( + name: r'createdAt', + required: false, + includeIfNull: false, + ) final DateTime? createdAt; - @JsonKey(name: r'updatedAt', required: false, includeIfNull: false) + @JsonKey( + name: r'updatedAt', + required: false, + includeIfNull: false, + ) final DateTime? updatedAt; - @JsonKey(name: r'lastPostCreatedAt', required: false, includeIfNull: false) + @JsonKey( + name: r'lastPostCreatedAt', + required: false, + includeIfNull: false, + ) final DateTime? lastPostCreatedAt; - @JsonKey(name: r'onlineMemberCount', required: false, includeIfNull: false) + @JsonKey( + name: r'onlineMemberCount', + required: false, + includeIfNull: false, + ) final int? onlineMemberCount; - @JsonKey(name: r'membershipStatus', required: false, includeIfNull: false) + @JsonKey( + name: r'membershipStatus', + required: false, + includeIfNull: false, + ) final GroupMemberStatus? membershipStatus; - @JsonKey(name: r'myMember', required: false, includeIfNull: false) + @JsonKey( + name: r'myMember', + required: false, + includeIfNull: false, + ) final GroupMyMember? myMember; /// Only returned if ?includeRoles=true is specified. - @JsonKey(name: r'roles', required: false, includeIfNull: false) + @JsonKey( + name: r'roles', + required: false, + includeIfNull: false, + ) final List? roles; @override bool operator ==(Object other) => identical(this, other) || other is Group && + other.badges == badges && other.id == id && other.name == name && other.shortCode == shortCode && @@ -174,6 +295,7 @@ class Group { @override int get hashCode => + badges.hashCode + id.hashCode + name.hashCode + shortCode.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/group.g.dart b/vrchat_dart_generated/lib/src/model/group.g.dart index 1609ca7..38df868 100644 --- a/vrchat_dart_generated/lib/src/model/group.g.dart +++ b/vrchat_dart_generated/lib/src/model/group.g.dart @@ -13,6 +13,8 @@ Group _$GroupFromJson(Map json) => $checkedCreate( json, ($checkedConvert) { final val = Group( + badges: $checkedConvert('badges', + (v) => (v as List?)?.map((e) => e as String).toList()), id: $checkedConvert('id', (v) => v as String?), name: $checkedConvert('name', (v) => v as String?), shortCode: $checkedConvert('shortCode', (v) => v as String?), @@ -80,6 +82,7 @@ Map _$GroupToJson(Group instance) { } } + writeNotNull('badges', instance.badges); writeNotNull('id', instance.id); writeNotNull('name', instance.name); writeNotNull('shortCode', instance.shortCode); diff --git a/vrchat_dart_generated/lib/src/model/group_announcement.dart b/vrchat_dart_generated/lib/src/model/group_announcement.dart index b1b05b6..f9ed5c7 100644 --- a/vrchat_dart_generated/lib/src/model/group_announcement.dart +++ b/vrchat_dart_generated/lib/src/model/group_announcement.dart @@ -27,32 +27,68 @@ class GroupAnnouncement { this.updatedAt, }); - @JsonKey(name: r'id', required: false, includeIfNull: false) + @JsonKey( + name: r'id', + required: false, + includeIfNull: false, + ) final String? id; - @JsonKey(name: r'groupId', required: false, includeIfNull: false) + @JsonKey( + name: r'groupId', + required: false, + includeIfNull: false, + ) final String? groupId; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'authorId', required: false, includeIfNull: false) + @JsonKey( + name: r'authorId', + required: false, + includeIfNull: false, + ) final String? authorId; - @JsonKey(name: r'title', required: false, includeIfNull: false) + @JsonKey( + name: r'title', + required: false, + includeIfNull: false, + ) final String? title; - @JsonKey(name: r'text', required: false, includeIfNull: false) + @JsonKey( + name: r'text', + required: false, + includeIfNull: false, + ) final String? text; - @JsonKey(name: r'imageId', required: false, includeIfNull: false) + @JsonKey( + name: r'imageId', + required: false, + includeIfNull: false, + ) final String? imageId; - @JsonKey(name: r'imageUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'imageUrl', + required: false, + includeIfNull: false, + ) final String? imageUrl; - @JsonKey(name: r'createdAt', required: false, includeIfNull: false) + @JsonKey( + name: r'createdAt', + required: false, + includeIfNull: false, + ) final DateTime? createdAt; - @JsonKey(name: r'updatedAt', required: false, includeIfNull: false) + @JsonKey( + name: r'updatedAt', + required: false, + includeIfNull: false, + ) final DateTime? updatedAt; @override diff --git a/vrchat_dart_generated/lib/src/model/group_audit_log_entry.dart b/vrchat_dart_generated/lib/src/model/group_audit_log_entry.dart index 47c2e1b..9e33bb3 100644 --- a/vrchat_dart_generated/lib/src/model/group_audit_log_entry.dart +++ b/vrchat_dart_generated/lib/src/model/group_audit_log_entry.dart @@ -27,36 +27,72 @@ class GroupAuditLogEntry { this.data, }); - @JsonKey(name: r'id', required: false, includeIfNull: false) + @JsonKey( + name: r'id', + required: false, + includeIfNull: false, + ) final String? id; - @JsonKey(name: r'created_at', required: false, includeIfNull: false) + @JsonKey( + name: r'created_at', + required: false, + includeIfNull: false, + ) final DateTime? createdAt; - @JsonKey(name: r'groupId', required: false, includeIfNull: false) + @JsonKey( + name: r'groupId', + required: false, + includeIfNull: false, + ) final String? groupId; /// 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'actorId', required: false, includeIfNull: false) + @JsonKey( + name: r'actorId', + required: false, + includeIfNull: false, + ) final String? actorId; - @JsonKey(name: r'actorDisplayName', required: false, includeIfNull: false) + @JsonKey( + name: r'actorDisplayName', + required: false, + includeIfNull: false, + ) final String? actorDisplayName; /// Typically GroupID or GroupRoleID, but could be other types of IDs. - @JsonKey(name: r'targetId', required: false, includeIfNull: false) + @JsonKey( + name: r'targetId', + required: false, + includeIfNull: false, + ) final String? targetId; /// The type of event that occurred. This is a string that is prefixed with the type of object that the event occurred on. For example, a group role update event would be prefixed with `group.role`. - @JsonKey(name: r'eventType', required: false, includeIfNull: false) + @JsonKey( + name: r'eventType', + required: false, + includeIfNull: false, + ) final String? eventType; /// A human-readable description of the event. - @JsonKey(name: r'description', required: false, includeIfNull: false) + @JsonKey( + name: r'description', + required: false, + includeIfNull: false, + ) final String? description; /// The data associated with the event. The format of this data is dependent on the event type. - @JsonKey(name: r'data', required: false, includeIfNull: false) + @JsonKey( + name: r'data', + required: false, + includeIfNull: false, + ) final Object? data; @override diff --git a/vrchat_dart_generated/lib/src/model/group_gallery.dart b/vrchat_dart_generated/lib/src/model/group_gallery.dart index 0a472d2..03d4a0a 100644 --- a/vrchat_dart_generated/lib/src/model/group_gallery.dart +++ b/vrchat_dart_generated/lib/src/model/group_gallery.dart @@ -28,41 +28,81 @@ class GroupGallery { this.updatedAt, }); - @JsonKey(name: r'id', required: false, includeIfNull: false) + @JsonKey( + name: r'id', + required: false, + includeIfNull: false, + ) final String? id; /// Name of the gallery. - @JsonKey(name: r'name', required: false, includeIfNull: false) + @JsonKey( + name: r'name', + required: false, + includeIfNull: false, + ) final String? name; /// Description of the gallery. - @JsonKey(name: r'description', required: false, includeIfNull: false) + @JsonKey( + name: r'description', + required: false, + includeIfNull: false, + ) final String? description; /// Whether the gallery is members only. - @JsonKey(name: r'membersOnly', required: false, includeIfNull: false) + @JsonKey( + name: r'membersOnly', + required: false, + includeIfNull: false, + ) final bool? membersOnly; /// - @JsonKey(name: r'roleIdsToView', required: false, includeIfNull: false) + @JsonKey( + name: r'roleIdsToView', + required: false, + includeIfNull: false, + ) final List? roleIdsToView; /// - @JsonKey(name: r'roleIdsToSubmit', required: false, includeIfNull: false) + @JsonKey( + name: r'roleIdsToSubmit', + required: false, + includeIfNull: false, + ) final List? roleIdsToSubmit; /// - @JsonKey(name: r'roleIdsToAutoApprove', required: false, includeIfNull: false) + @JsonKey( + name: r'roleIdsToAutoApprove', + required: false, + includeIfNull: false, + ) final List? roleIdsToAutoApprove; /// - @JsonKey(name: r'roleIdsToManage', required: false, includeIfNull: false) + @JsonKey( + name: r'roleIdsToManage', + required: false, + includeIfNull: false, + ) final List? roleIdsToManage; - @JsonKey(name: r'createdAt', required: false, includeIfNull: false) + @JsonKey( + name: r'createdAt', + required: false, + includeIfNull: false, + ) final DateTime? createdAt; - @JsonKey(name: r'updatedAt', required: false, includeIfNull: false) + @JsonKey( + name: r'updatedAt', + required: false, + includeIfNull: false, + ) final DateTime? updatedAt; @override diff --git a/vrchat_dart_generated/lib/src/model/group_gallery_image.dart b/vrchat_dart_generated/lib/src/model/group_gallery_image.dart index 88c3e0b..a7d3770 100644 --- a/vrchat_dart_generated/lib/src/model/group_gallery_image.dart +++ b/vrchat_dart_generated/lib/src/model/group_gallery_image.dart @@ -28,36 +28,76 @@ class GroupGalleryImage { this.approvedAt, }); - @JsonKey(name: r'id', required: false, includeIfNull: false) + @JsonKey( + name: r'id', + required: false, + includeIfNull: false, + ) final String? id; - @JsonKey(name: r'groupId', required: false, includeIfNull: false) + @JsonKey( + name: r'groupId', + required: false, + includeIfNull: false, + ) final String? groupId; - @JsonKey(name: r'galleryId', required: false, includeIfNull: false) + @JsonKey( + name: r'galleryId', + required: false, + includeIfNull: false, + ) final String? galleryId; - @JsonKey(name: r'fileId', required: false, includeIfNull: false) + @JsonKey( + name: r'fileId', + required: false, + includeIfNull: false, + ) final String? fileId; - @JsonKey(name: r'imageUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'imageUrl', + required: false, + includeIfNull: false, + ) final String? imageUrl; - @JsonKey(name: r'createdAt', required: false, includeIfNull: false) + @JsonKey( + name: r'createdAt', + required: false, + includeIfNull: false, + ) final DateTime? createdAt; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'submittedByUserId', required: false, includeIfNull: false) + @JsonKey( + name: r'submittedByUserId', + required: false, + includeIfNull: false, + ) final String? submittedByUserId; - @JsonKey(name: r'approved', required: false, includeIfNull: false) + @JsonKey( + name: r'approved', + required: false, + includeIfNull: false, + ) final bool? approved; /// 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'approvedByUserId', required: false, includeIfNull: false) + @JsonKey( + name: r'approvedByUserId', + required: false, + includeIfNull: false, + ) final String? approvedByUserId; - @JsonKey(name: r'approvedAt', required: false, includeIfNull: false) + @JsonKey( + name: r'approvedAt', + required: false, + includeIfNull: false, + ) final DateTime? approvedAt; @override diff --git a/vrchat_dart_generated/lib/src/model/group_instance.dart b/vrchat_dart_generated/lib/src/model/group_instance.dart index 87e8f4a..7193ab0 100644 --- a/vrchat_dart_generated/lib/src/model/group_instance.dart +++ b/vrchat_dart_generated/lib/src/model/group_instance.dart @@ -23,18 +23,34 @@ class GroupInstance { required this.memberCount, }); - @JsonKey(name: r'instanceId', required: true, includeIfNull: false) + @JsonKey( + name: r'instanceId', + required: true, + includeIfNull: false, + ) final String instanceId; /// InstanceID can be \"offline\" on User profiles if you are not friends with that user and \"private\" if you are friends and user is in private instance. - @JsonKey(name: r'location', required: true, includeIfNull: false) + @JsonKey( + name: r'location', + required: true, + includeIfNull: false, + ) final String location; - @JsonKey(name: r'world', required: true, includeIfNull: false) + @JsonKey( + name: r'world', + required: true, + includeIfNull: false, + ) final World world; // minimum: 0 - @JsonKey(name: r'memberCount', required: true, includeIfNull: false) + @JsonKey( + name: r'memberCount', + required: true, + includeIfNull: false, + ) final int memberCount; @override diff --git a/vrchat_dart_generated/lib/src/model/group_limited_member.dart b/vrchat_dart_generated/lib/src/model/group_limited_member.dart index 8217dff..5cd21a0 100644 --- a/vrchat_dart_generated/lib/src/model/group_limited_member.dart +++ b/vrchat_dart_generated/lib/src/model/group_limited_member.dart @@ -34,58 +34,114 @@ class GroupLimitedMember { this.hasJoinedFromPurchase, }); - @JsonKey(name: r'id', required: false, includeIfNull: false) + @JsonKey( + name: r'id', + required: false, + includeIfNull: false, + ) final String? id; - @JsonKey(name: r'groupId', required: false, includeIfNull: false) + @JsonKey( + name: r'groupId', + required: false, + includeIfNull: false, + ) final String? groupId; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'userId', required: false, includeIfNull: false) + @JsonKey( + name: r'userId', + required: false, + includeIfNull: false, + ) final String? userId; /// Whether the user is representing the group. This makes the group show up above the name tag in-game. - @JsonKey(name: r'isRepresenting', required: false, includeIfNull: false) + @JsonKey( + name: r'isRepresenting', + required: false, + includeIfNull: false, + ) final bool? isRepresenting; - @JsonKey(name: r'roleIds', required: false, includeIfNull: false) + @JsonKey( + name: r'roleIds', + required: false, + includeIfNull: false, + ) final List? roleIds; - @JsonKey(name: r'mRoleIds', required: false, includeIfNull: false) + @JsonKey( + name: r'mRoleIds', + required: false, + includeIfNull: false, + ) final List? mRoleIds; - @JsonKey(name: r'joinedAt', required: false, includeIfNull: false) + @JsonKey( + name: r'joinedAt', + required: false, + includeIfNull: false, + ) final DateTime? joinedAt; - @JsonKey(name: r'membershipStatus', required: false, includeIfNull: false) + @JsonKey( + name: r'membershipStatus', + required: false, + includeIfNull: false, + ) final GroupMemberStatus? membershipStatus; - @JsonKey(name: r'visibility', required: false, includeIfNull: false) + @JsonKey( + name: r'visibility', + required: false, + includeIfNull: false, + ) final String? visibility; @JsonKey( - name: r'isSubscribedToAnnouncements', - required: false, - includeIfNull: false) + name: r'isSubscribedToAnnouncements', + required: false, + includeIfNull: false, + ) final bool? isSubscribedToAnnouncements; /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. - @JsonKey(name: r'createdAt', required: false, includeIfNull: false) + @JsonKey( + name: r'createdAt', + required: false, + includeIfNull: false, + ) final DateTime? createdAt; /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. - @JsonKey(name: r'bannedAt', required: false, includeIfNull: false) + @JsonKey( + name: r'bannedAt', + required: false, + includeIfNull: false, + ) final DateTime? bannedAt; /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. - @JsonKey(name: r'managerNotes', required: false, includeIfNull: false) + @JsonKey( + name: r'managerNotes', + required: false, + includeIfNull: false, + ) final String? managerNotes; - @JsonKey(name: r'lastPostReadAt', required: false, includeIfNull: false) + @JsonKey( + name: r'lastPostReadAt', + required: false, + includeIfNull: false, + ) final DateTime? lastPostReadAt; @JsonKey( - name: r'hasJoinedFromPurchase', required: false, includeIfNull: false) + name: r'hasJoinedFromPurchase', + required: false, + includeIfNull: false, + ) final bool? hasJoinedFromPurchase; @override diff --git a/vrchat_dart_generated/lib/src/model/group_member.dart b/vrchat_dart_generated/lib/src/model/group_member.dart index cc074d1..8cdd50c 100644 --- a/vrchat_dart_generated/lib/src/model/group_member.dart +++ b/vrchat_dart_generated/lib/src/model/group_member.dart @@ -18,6 +18,8 @@ part 'group_member.g.dart'; class GroupMember { /// Returns a new [GroupMember] instance. GroupMember({ + this.acceptedByDisplayName, + this.acceptedById, this.id, this.groupId, this.userId, @@ -36,67 +38,144 @@ class GroupMember { this.hasJoinedFromPurchase, }); - @JsonKey(name: r'id', required: false, includeIfNull: false) + @JsonKey( + name: r'acceptedByDisplayName', + required: false, + includeIfNull: false, + ) + final String? acceptedByDisplayName; + + /// 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'acceptedById', + required: false, + includeIfNull: false, + ) + final String? acceptedById; + + @JsonKey( + name: r'id', + required: false, + includeIfNull: false, + ) final String? id; - @JsonKey(name: r'groupId', required: false, includeIfNull: false) + @JsonKey( + name: r'groupId', + required: false, + includeIfNull: false, + ) final String? groupId; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'userId', required: false, includeIfNull: false) + @JsonKey( + name: r'userId', + required: false, + includeIfNull: false, + ) final String? userId; /// Whether the user is representing the group. This makes the group show up above the name tag in-game. - @JsonKey(name: r'isRepresenting', required: false, includeIfNull: false) + @JsonKey( + name: r'isRepresenting', + required: false, + includeIfNull: false, + ) final bool? isRepresenting; - @JsonKey(name: r'user', required: false, includeIfNull: false) + @JsonKey( + name: r'user', + required: false, + includeIfNull: false, + ) final GroupMemberLimitedUser? user; - @JsonKey(name: r'roleIds', required: false, includeIfNull: false) + @JsonKey( + name: r'roleIds', + required: false, + includeIfNull: false, + ) final List? roleIds; - @JsonKey(name: r'mRoleIds', required: false, includeIfNull: false) + @JsonKey( + name: r'mRoleIds', + required: false, + includeIfNull: false, + ) final List? mRoleIds; - @JsonKey(name: r'joinedAt', required: false, includeIfNull: false) + @JsonKey( + name: r'joinedAt', + required: false, + includeIfNull: false, + ) final DateTime? joinedAt; - @JsonKey(name: r'membershipStatus', required: false, includeIfNull: false) + @JsonKey( + name: r'membershipStatus', + required: false, + includeIfNull: false, + ) final GroupMemberStatus? membershipStatus; - @JsonKey(name: r'visibility', required: false, includeIfNull: false) + @JsonKey( + name: r'visibility', + required: false, + includeIfNull: false, + ) final String? visibility; @JsonKey( - name: r'isSubscribedToAnnouncements', - required: false, - includeIfNull: false) + name: r'isSubscribedToAnnouncements', + required: false, + includeIfNull: false, + ) final bool? isSubscribedToAnnouncements; /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. - @JsonKey(name: r'createdAt', required: false, includeIfNull: false) + @JsonKey( + name: r'createdAt', + required: false, + includeIfNull: false, + ) final DateTime? createdAt; /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. - @JsonKey(name: r'bannedAt', required: false, includeIfNull: false) + @JsonKey( + name: r'bannedAt', + required: false, + includeIfNull: false, + ) final DateTime? bannedAt; /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. - @JsonKey(name: r'managerNotes', required: false, includeIfNull: false) + @JsonKey( + name: r'managerNotes', + required: false, + includeIfNull: false, + ) final String? managerNotes; - @JsonKey(name: r'lastPostReadAt', required: false, includeIfNull: false) + @JsonKey( + name: r'lastPostReadAt', + required: false, + includeIfNull: false, + ) final DateTime? lastPostReadAt; @JsonKey( - name: r'hasJoinedFromPurchase', required: false, includeIfNull: false) + name: r'hasJoinedFromPurchase', + required: false, + includeIfNull: false, + ) final bool? hasJoinedFromPurchase; @override bool operator ==(Object other) => identical(this, other) || other is GroupMember && + other.acceptedByDisplayName == acceptedByDisplayName && + other.acceptedById == acceptedById && other.id == id && other.groupId == groupId && other.userId == userId && @@ -116,6 +195,8 @@ class GroupMember { @override int get hashCode => + acceptedByDisplayName.hashCode + + acceptedById.hashCode + id.hashCode + groupId.hashCode + userId.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/group_member.g.dart b/vrchat_dart_generated/lib/src/model/group_member.g.dart index 44b569b..777df6a 100644 --- a/vrchat_dart_generated/lib/src/model/group_member.g.dart +++ b/vrchat_dart_generated/lib/src/model/group_member.g.dart @@ -13,6 +13,9 @@ GroupMember _$GroupMemberFromJson(Map json) => $checkedCreate( json, ($checkedConvert) { final val = GroupMember( + acceptedByDisplayName: + $checkedConvert('acceptedByDisplayName', (v) => v as String?), + acceptedById: $checkedConvert('acceptedById', (v) => v as String?), id: $checkedConvert('id', (v) => v as String?), groupId: $checkedConvert('groupId', (v) => v as String?), userId: $checkedConvert('userId', (v) => v as String?), @@ -57,6 +60,8 @@ Map _$GroupMemberToJson(GroupMember instance) { } } + writeNotNull('acceptedByDisplayName', instance.acceptedByDisplayName); + writeNotNull('acceptedById', instance.acceptedById); writeNotNull('id', instance.id); writeNotNull('groupId', instance.groupId); writeNotNull('userId', instance.userId); diff --git a/vrchat_dart_generated/lib/src/model/group_member_limited_user.dart b/vrchat_dart_generated/lib/src/model/group_member_limited_user.dart index 729a341..ee514d7 100644 --- a/vrchat_dart_generated/lib/src/model/group_member_limited_user.dart +++ b/vrchat_dart_generated/lib/src/model/group_member_limited_user.dart @@ -26,28 +26,53 @@ class GroupMemberLimitedUser { }); /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'id', required: false, includeIfNull: false) + @JsonKey( + name: r'id', + required: false, + includeIfNull: false, + ) final String? id; - @JsonKey(name: r'displayName', required: false, includeIfNull: false) + @JsonKey( + name: r'displayName', + required: false, + includeIfNull: false, + ) final String? displayName; - @JsonKey(name: r'thumbnailUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'thumbnailUrl', + required: false, + includeIfNull: false, + ) final String? thumbnailUrl; - @JsonKey(name: r'iconUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'iconUrl', + required: false, + includeIfNull: false, + ) final String? iconUrl; - @JsonKey(name: r'profilePicOverride', required: false, includeIfNull: false) + @JsonKey( + name: r'profilePicOverride', + required: false, + includeIfNull: false, + ) final String? profilePicOverride; @JsonKey( - name: r'currentAvatarThumbnailImageUrl', - required: false, - includeIfNull: false) + name: r'currentAvatarThumbnailImageUrl', + required: false, + includeIfNull: false, + ) final String? currentAvatarThumbnailImageUrl; - @JsonKey(name: r'currentAvatarTags', required: false, includeIfNull: false) + @JsonKey( + name: r'currentAvatarTags', + required: false, + includeIfNull: false, + ) final List? currentAvatarTags; @override diff --git a/vrchat_dart_generated/lib/src/model/group_my_member.dart b/vrchat_dart_generated/lib/src/model/group_my_member.dart index 8ac7aaf..7e10ddb 100644 --- a/vrchat_dart_generated/lib/src/model/group_my_member.dart +++ b/vrchat_dart_generated/lib/src/model/group_my_member.dart @@ -37,68 +37,139 @@ class GroupMyMember { this.permissions, }); - @JsonKey(name: r'id', required: false, includeIfNull: false) + @JsonKey( + name: r'id', + required: false, + includeIfNull: false, + ) final String? id; - @JsonKey(name: r'groupId', required: false, includeIfNull: false) + @JsonKey( + name: r'groupId', + required: false, + includeIfNull: false, + ) final String? groupId; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'userId', required: false, includeIfNull: false) + @JsonKey( + name: r'userId', + required: false, + includeIfNull: false, + ) final String? userId; - @JsonKey(name: r'roleIds', required: false, includeIfNull: false) + @JsonKey( + name: r'roleIds', + required: false, + includeIfNull: false, + ) final List? roleIds; @JsonKey( - name: r'acceptedByDisplayName', required: false, includeIfNull: false) + name: r'acceptedByDisplayName', + required: false, + includeIfNull: false, + ) final String? acceptedByDisplayName; /// 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'acceptedById', required: false, includeIfNull: false) + @JsonKey( + name: r'acceptedById', + required: false, + includeIfNull: false, + ) final String? acceptedById; - @JsonKey(name: r'createdAt', required: false, includeIfNull: false) + @JsonKey( + name: r'createdAt', + required: false, + includeIfNull: false, + ) final DateTime? createdAt; - @JsonKey(name: r'managerNotes', required: false, includeIfNull: false) + @JsonKey( + name: r'managerNotes', + required: false, + includeIfNull: false, + ) final String? managerNotes; - @JsonKey(name: r'membershipStatus', required: false, includeIfNull: false) + @JsonKey( + name: r'membershipStatus', + required: false, + includeIfNull: false, + ) final String? membershipStatus; @JsonKey( - name: r'isSubscribedToAnnouncements', - required: false, - includeIfNull: false) + name: r'isSubscribedToAnnouncements', + required: false, + includeIfNull: false, + ) final bool? isSubscribedToAnnouncements; - @JsonKey(name: r'visibility', required: false, includeIfNull: false) + @JsonKey( + name: r'visibility', + required: false, + includeIfNull: false, + ) final String? visibility; - @JsonKey(name: r'isRepresenting', required: false, includeIfNull: false) + @JsonKey( + name: r'isRepresenting', + required: false, + includeIfNull: false, + ) final bool? isRepresenting; - @JsonKey(name: r'joinedAt', required: false, includeIfNull: false) + @JsonKey( + name: r'joinedAt', + required: false, + includeIfNull: false, + ) final DateTime? joinedAt; - @JsonKey(name: r'bannedAt', required: false, includeIfNull: false) + @JsonKey( + name: r'bannedAt', + required: false, + includeIfNull: false, + ) final String? bannedAt; - @JsonKey(name: r'has2FA', required: false, includeIfNull: false) + @JsonKey( + name: r'has2FA', + required: false, + includeIfNull: false, + ) final bool? has2FA; @JsonKey( - name: r'hasJoinedFromPurchase', required: false, includeIfNull: false) + name: r'hasJoinedFromPurchase', + required: false, + includeIfNull: false, + ) final bool? hasJoinedFromPurchase; - @JsonKey(name: r'lastPostReadAt', required: false, includeIfNull: false) + @JsonKey( + name: r'lastPostReadAt', + required: false, + includeIfNull: false, + ) final DateTime? lastPostReadAt; - @JsonKey(name: r'mRoleIds', required: false, includeIfNull: false) + @JsonKey( + name: r'mRoleIds', + required: false, + includeIfNull: false, + ) final List? mRoleIds; - @JsonKey(name: r'permissions', required: false, includeIfNull: false) + @JsonKey( + name: r'permissions', + required: false, + includeIfNull: false, + ) final List? permissions; @override diff --git a/vrchat_dart_generated/lib/src/model/group_permission.dart b/vrchat_dart_generated/lib/src/model/group_permission.dart index 4d62668..f9877cd 100644 --- a/vrchat_dart_generated/lib/src/model/group_permission.dart +++ b/vrchat_dart_generated/lib/src/model/group_permission.dart @@ -24,24 +24,43 @@ class GroupPermission { }); /// The name of the permission. - @JsonKey(name: r'name', required: false, includeIfNull: false) + @JsonKey( + name: r'name', + required: false, + includeIfNull: false, + ) final String? name; /// The display name of the permission. - @JsonKey(name: r'displayName', required: false, includeIfNull: false) + @JsonKey( + name: r'displayName', + required: false, + includeIfNull: false, + ) final String? displayName; /// Human-readable description of the permission. - @JsonKey(name: r'help', required: false, includeIfNull: false) + @JsonKey( + name: r'help', + required: false, + includeIfNull: false, + ) final String? help; /// Whether this permission is a \"management\" permission. @JsonKey( - name: r'isManagementPermission', required: false, includeIfNull: false) + name: r'isManagementPermission', + required: false, + includeIfNull: false, + ) final bool? isManagementPermission; /// Whether the user is allowed to add this permission to a role. - @JsonKey(name: r'allowedToAdd', required: false, includeIfNull: false) + @JsonKey( + name: r'allowedToAdd', + required: false, + includeIfNull: false, + ) final bool? allowedToAdd; @override diff --git a/vrchat_dart_generated/lib/src/model/group_post.dart b/vrchat_dart_generated/lib/src/model/group_post.dart index f3cda91..cfb398d 100644 --- a/vrchat_dart_generated/lib/src/model/group_post.dart +++ b/vrchat_dart_generated/lib/src/model/group_post.dart @@ -31,43 +31,91 @@ class GroupPost { this.updatedAt, }); - @JsonKey(name: r'id', required: false, includeIfNull: false) + @JsonKey( + name: r'id', + required: false, + includeIfNull: false, + ) final String? id; - @JsonKey(name: r'groupId', required: false, includeIfNull: false) + @JsonKey( + name: r'groupId', + required: false, + includeIfNull: false, + ) final String? groupId; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'authorId', required: false, includeIfNull: false) + @JsonKey( + name: r'authorId', + required: false, + includeIfNull: false, + ) final String? authorId; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'editorId', required: false, includeIfNull: false) + @JsonKey( + name: r'editorId', + required: false, + includeIfNull: false, + ) final String? editorId; - @JsonKey(name: r'visibility', required: false, includeIfNull: false) + @JsonKey( + name: r'visibility', + required: false, + includeIfNull: false, + ) final GroupPostVisibility? visibility; /// - @JsonKey(name: r'roleId', required: false, includeIfNull: false) + @JsonKey( + name: r'roleId', + required: false, + includeIfNull: false, + ) final List? roleId; - @JsonKey(name: r'title', required: false, includeIfNull: false) + @JsonKey( + name: r'title', + required: false, + includeIfNull: false, + ) final String? title; - @JsonKey(name: r'text', required: false, includeIfNull: false) + @JsonKey( + name: r'text', + required: false, + includeIfNull: false, + ) final String? text; - @JsonKey(name: r'imageId', required: false, includeIfNull: false) + @JsonKey( + name: r'imageId', + required: false, + includeIfNull: false, + ) final String? imageId; - @JsonKey(name: r'imageUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'imageUrl', + required: false, + includeIfNull: false, + ) final String? imageUrl; - @JsonKey(name: r'createdAt', required: false, includeIfNull: false) + @JsonKey( + name: r'createdAt', + required: false, + includeIfNull: false, + ) final DateTime? createdAt; - @JsonKey(name: r'updatedAt', required: false, includeIfNull: false) + @JsonKey( + name: r'updatedAt', + required: false, + includeIfNull: false, + ) final DateTime? updatedAt; @override diff --git a/vrchat_dart_generated/lib/src/model/group_role.dart b/vrchat_dart_generated/lib/src/model/group_role.dart index 3b46437..0511ee4 100644 --- a/vrchat_dart_generated/lib/src/model/group_role.dart +++ b/vrchat_dart_generated/lib/src/model/group_role.dart @@ -30,40 +30,88 @@ class GroupRole { this.updatedAt, }); - @JsonKey(name: r'id', required: false, includeIfNull: false) + @JsonKey( + name: r'id', + required: false, + includeIfNull: false, + ) final String? id; - @JsonKey(name: r'groupId', required: false, includeIfNull: false) + @JsonKey( + name: r'groupId', + required: false, + includeIfNull: false, + ) final String? groupId; - @JsonKey(name: r'name', required: false, includeIfNull: false) + @JsonKey( + name: r'name', + required: false, + includeIfNull: false, + ) final String? name; - @JsonKey(name: r'description', required: false, includeIfNull: false) + @JsonKey( + name: r'description', + required: false, + includeIfNull: false, + ) final String? description; - @JsonKey(name: r'isSelfAssignable', required: false, includeIfNull: false) + @JsonKey( + name: r'isSelfAssignable', + required: false, + includeIfNull: false, + ) final bool? isSelfAssignable; - @JsonKey(name: r'permissions', required: false, includeIfNull: false) + @JsonKey( + name: r'permissions', + required: false, + includeIfNull: false, + ) final List? permissions; - @JsonKey(name: r'isManagementRole', required: false, includeIfNull: false) + @JsonKey( + name: r'isManagementRole', + required: false, + includeIfNull: false, + ) final bool? isManagementRole; - @JsonKey(name: r'requiresTwoFactor', required: false, includeIfNull: false) + @JsonKey( + name: r'requiresTwoFactor', + required: false, + includeIfNull: false, + ) final bool? requiresTwoFactor; - @JsonKey(name: r'requiresPurchase', required: false, includeIfNull: false) + @JsonKey( + name: r'requiresPurchase', + required: false, + includeIfNull: false, + ) final bool? requiresPurchase; - @JsonKey(name: r'order', required: false, includeIfNull: false) + @JsonKey( + name: r'order', + required: false, + includeIfNull: false, + ) final int? order; - @JsonKey(name: r'createdAt', required: false, includeIfNull: false) + @JsonKey( + name: r'createdAt', + required: false, + includeIfNull: false, + ) final DateTime? createdAt; - @JsonKey(name: r'updatedAt', required: false, includeIfNull: false) + @JsonKey( + name: r'updatedAt', + required: false, + includeIfNull: false, + ) final DateTime? updatedAt; @override diff --git a/vrchat_dart_generated/lib/src/model/info_push.dart b/vrchat_dart_generated/lib/src/model/info_push.dart index eb32561..8e928f9 100644 --- a/vrchat_dart_generated/lib/src/model/info_push.dart +++ b/vrchat_dart_generated/lib/src/model/info_push.dart @@ -31,40 +31,84 @@ class InfoPush { this.endDate, }); - @JsonKey(name: r'id', required: true, includeIfNull: false) + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) final String id; - @JsonKey(name: r'isEnabled', required: true, includeIfNull: false) + @JsonKey( + name: r'isEnabled', + required: true, + includeIfNull: false, + ) final bool isEnabled; - @JsonKey(name: r'releaseStatus', required: true, includeIfNull: false) + @JsonKey( + name: r'releaseStatus', + required: true, + includeIfNull: false, + ) final ReleaseStatus releaseStatus; - @JsonKey(name: r'priority', required: true, includeIfNull: false) + @JsonKey( + name: r'priority', + required: true, + includeIfNull: false, + ) final int priority; /// - @JsonKey(name: r'tags', required: true, includeIfNull: false) + @JsonKey( + name: r'tags', + required: true, + includeIfNull: false, + ) final List tags; - @JsonKey(name: r'data', required: true, includeIfNull: false) + @JsonKey( + name: r'data', + required: true, + includeIfNull: false, + ) final InfoPushData data; /// Unknown usage, MD5 - @JsonKey(name: r'hash', required: true, includeIfNull: false) + @JsonKey( + name: r'hash', + required: true, + includeIfNull: false, + ) final String hash; - @JsonKey(name: r'createdAt', required: true, includeIfNull: false) + @JsonKey( + name: r'createdAt', + required: true, + includeIfNull: false, + ) final DateTime createdAt; - @JsonKey(name: r'updatedAt', required: true, includeIfNull: false) + @JsonKey( + name: r'updatedAt', + required: true, + includeIfNull: false, + ) final DateTime updatedAt; /// - @JsonKey(name: r'startDate', required: false, includeIfNull: false) + @JsonKey( + name: r'startDate', + required: false, + includeIfNull: false, + ) final DateTime? startDate; - @JsonKey(name: r'endDate', required: false, includeIfNull: false) + @JsonKey( + name: r'endDate', + required: false, + includeIfNull: false, + ) final DateTime? endDate; @override diff --git a/vrchat_dart_generated/lib/src/model/info_push_data.dart b/vrchat_dart_generated/lib/src/model/info_push_data.dart index 029adbc..66f2ef9 100644 --- a/vrchat_dart_generated/lib/src/model/info_push_data.dart +++ b/vrchat_dart_generated/lib/src/model/info_push_data.dart @@ -29,28 +29,60 @@ class InfoPushData { this.article, }); - @JsonKey(name: r'contentList', required: false, includeIfNull: false) + @JsonKey( + name: r'contentList', + required: false, + includeIfNull: false, + ) final DynamicContentRow? contentList; - @JsonKey(name: r'description', required: false, includeIfNull: false) + @JsonKey( + name: r'description', + required: false, + includeIfNull: false, + ) final String? description; - @JsonKey(name: r'imageUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'imageUrl', + required: false, + includeIfNull: false, + ) final String? imageUrl; - @JsonKey(name: r'name', required: false, includeIfNull: false) + @JsonKey( + name: r'name', + required: false, + includeIfNull: false, + ) final String? name; - @JsonKey(name: r'onPressed', required: false, includeIfNull: false) + @JsonKey( + name: r'onPressed', + required: false, + includeIfNull: false, + ) final InfoPushDataClickable? onPressed; - @JsonKey(name: r'template', required: false, includeIfNull: false) + @JsonKey( + name: r'template', + required: false, + includeIfNull: false, + ) final String? template; - @JsonKey(name: r'version', required: false, includeIfNull: false) + @JsonKey( + name: r'version', + required: false, + includeIfNull: false, + ) final String? version; - @JsonKey(name: r'article', required: false, includeIfNull: false) + @JsonKey( + name: r'article', + required: false, + includeIfNull: false, + ) final InfoPushDataArticle? article; @override diff --git a/vrchat_dart_generated/lib/src/model/info_push_data_article.dart b/vrchat_dart_generated/lib/src/model/info_push_data_article.dart index 063d657..ba58ada 100644 --- a/vrchat_dart_generated/lib/src/model/info_push_data_article.dart +++ b/vrchat_dart_generated/lib/src/model/info_push_data_article.dart @@ -20,7 +20,11 @@ class InfoPushDataArticle { this.content, }); - @JsonKey(name: r'content', required: false, includeIfNull: false) + @JsonKey( + name: r'content', + required: false, + includeIfNull: false, + ) final InfoPushDataArticleContent? content; @override diff --git a/vrchat_dart_generated/lib/src/model/info_push_data_article_content.dart b/vrchat_dart_generated/lib/src/model/info_push_data_article_content.dart index ae7b2d8..f938598 100644 --- a/vrchat_dart_generated/lib/src/model/info_push_data_article_content.dart +++ b/vrchat_dart_generated/lib/src/model/info_push_data_article_content.dart @@ -22,13 +22,25 @@ class InfoPushDataArticleContent { this.onPressed, }); - @JsonKey(name: r'text', required: false, includeIfNull: false) + @JsonKey( + name: r'text', + required: false, + includeIfNull: false, + ) final String? text; - @JsonKey(name: r'imageUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'imageUrl', + required: false, + includeIfNull: false, + ) final String? imageUrl; - @JsonKey(name: r'onPressed', required: false, includeIfNull: false) + @JsonKey( + name: r'onPressed', + required: false, + includeIfNull: false, + ) final InfoPushDataClickable? onPressed; @override diff --git a/vrchat_dart_generated/lib/src/model/info_push_data_clickable.dart b/vrchat_dart_generated/lib/src/model/info_push_data_clickable.dart index ffeae47..2690e67 100644 --- a/vrchat_dart_generated/lib/src/model/info_push_data_clickable.dart +++ b/vrchat_dart_generated/lib/src/model/info_push_data_clickable.dart @@ -20,11 +20,19 @@ class InfoPushDataClickable { this.parameters, }); - @JsonKey(name: r'command', required: true, includeIfNull: false) + @JsonKey( + name: r'command', + required: true, + includeIfNull: false, + ) final InfoPushDataClickableCommandEnum command; /// In case of OpenURL, this would contain the link. - @JsonKey(name: r'parameters', required: false, includeIfNull: false) + @JsonKey( + name: r'parameters', + required: false, + includeIfNull: false, + ) final List? parameters; @override @@ -50,14 +58,18 @@ class InfoPushDataClickable { enum InfoPushDataClickableCommandEnum { @JsonValue(r'OpenURL') - openURL, + openURL(r'OpenURL'), @JsonValue(r'OpenVRCPlusMenu') - openVRCPlusMenu, + openVRCPlusMenu(r'OpenVRCPlusMenu'), @JsonValue(r'OpenSafetyMenu') - openSafetyMenu, + openSafetyMenu(r'OpenSafetyMenu'), @JsonValue(r'CannedWorldSearch') - cannedWorldSearch; + cannedWorldSearch(r'CannedWorldSearch'); + + const InfoPushDataClickableCommandEnum(this.value); + + final String value; @override - String toString() => this.name; + String toString() => value; } diff --git a/vrchat_dart_generated/lib/src/model/instance.dart b/vrchat_dart_generated/lib/src/model/instance.dart index 9303ff5..196a4de 100644 --- a/vrchat_dart_generated/lib/src/model/instance.dart +++ b/vrchat_dart_generated/lib/src/model/instance.dart @@ -27,9 +27,12 @@ class Instance { this.canRequestInvite = true, required this.capacity, required this.clientNumber, + required this.displayName, this.full = false, + required this.gameServerVersion, required this.id, required this.instanceId, + required this.instancePersistenceEnabled, required this.location, required this.nUsers, required this.name, @@ -37,6 +40,7 @@ class Instance { this.permanent = false, required this.photonRegion, required this.platforms, + required this.playerPersistenceEnabled, required this.region, required this.secureName, this.shortName, @@ -61,128 +65,300 @@ class Instance { this.hardClose, }); - @JsonKey(name: r'active', required: true, includeIfNull: false) + @JsonKey( + name: r'active', + required: true, + includeIfNull: false, + ) final bool active; - @JsonKey(name: r'canRequestInvite', required: true, includeIfNull: false) + @JsonKey( + name: r'canRequestInvite', + required: true, + includeIfNull: false, + ) final bool canRequestInvite; // minimum: 0 - @JsonKey(name: r'capacity', required: true, includeIfNull: false) + @JsonKey( + name: r'capacity', + required: true, + includeIfNull: false, + ) final int capacity; /// Always returns \"unknown\". @Deprecated('clientNumber has been deprecated') - @JsonKey(name: r'clientNumber', required: true, includeIfNull: false) + @JsonKey( + name: r'clientNumber', + required: true, + includeIfNull: false, + ) final String clientNumber; - @JsonKey(name: r'full', required: true, includeIfNull: false) + @JsonKey( + name: r'displayName', + required: true, + includeIfNull: true, + ) + final String? displayName; + + @JsonKey( + name: r'full', + required: true, + includeIfNull: false, + ) final bool full; + @JsonKey( + name: r'gameServerVersion', + required: true, + includeIfNull: false, + ) + final int gameServerVersion; + /// InstanceID can be \"offline\" on User profiles if you are not friends with that user and \"private\" if you are friends and user is in private instance. - @JsonKey(name: r'id', required: true, includeIfNull: false) + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) final String id; - @JsonKey(name: r'instanceId', required: true, includeIfNull: false) + @JsonKey( + name: r'instanceId', + required: true, + includeIfNull: false, + ) final String instanceId; + @JsonKey( + name: r'instancePersistenceEnabled', + required: true, + includeIfNull: true, + ) + final String? instancePersistenceEnabled; + /// InstanceID can be \"offline\" on User profiles if you are not friends with that user and \"private\" if you are friends and user is in private instance. - @JsonKey(name: r'location', required: true, includeIfNull: false) + @JsonKey( + name: r'location', + required: true, + includeIfNull: false, + ) final String location; // minimum: 0 - @JsonKey(name: r'n_users', required: true, includeIfNull: false) + @JsonKey( + name: r'n_users', + required: true, + includeIfNull: false, + ) final int nUsers; - @JsonKey(name: r'name', required: true, includeIfNull: false) + @JsonKey( + name: r'name', + required: true, + includeIfNull: false, + ) final String name; /// A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise - @JsonKey(name: r'ownerId', required: false, includeIfNull: false) + @JsonKey( + name: r'ownerId', + required: false, + includeIfNull: false, + ) final String? ownerId; - @JsonKey(name: r'permanent', required: true, includeIfNull: false) + @JsonKey( + name: r'permanent', + required: true, + includeIfNull: false, + ) final bool permanent; - @JsonKey(name: r'photonRegion', required: true, includeIfNull: false) + @JsonKey( + name: r'photonRegion', + required: true, + includeIfNull: false, + ) final Region photonRegion; - @JsonKey(name: r'platforms', required: true, includeIfNull: false) + @JsonKey( + name: r'platforms', + required: true, + includeIfNull: false, + ) final InstancePlatforms platforms; - @JsonKey(name: r'region', required: true, includeIfNull: false) + @JsonKey( + name: r'playerPersistenceEnabled', + required: true, + includeIfNull: true, + ) + final String? playerPersistenceEnabled; + + @JsonKey( + name: r'region', + required: true, + includeIfNull: false, + ) final InstanceRegion region; - @JsonKey(name: r'secureName', required: true, includeIfNull: false) + @JsonKey( + name: r'secureName', + required: true, + includeIfNull: false, + ) final String secureName; - @JsonKey(name: r'shortName', required: false, includeIfNull: false) + @JsonKey( + name: r'shortName', + required: false, + includeIfNull: false, + ) final String? shortName; /// The tags array on Instances usually contain the language tags of the people in the instance. - @JsonKey(name: r'tags', required: true, includeIfNull: false) + @JsonKey( + name: r'tags', + required: true, + includeIfNull: false, + ) final List tags; - @JsonKey(name: r'type', required: true, includeIfNull: false) + @JsonKey( + name: r'type', + required: true, + includeIfNull: false, + ) final InstanceType type; /// WorldID be \"offline\" on User profiles if you are not friends with that user. - @JsonKey(name: r'worldId', required: true, includeIfNull: false) + @JsonKey( + name: r'worldId', + required: true, + includeIfNull: false, + ) final String worldId; /// 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'hidden', required: false, includeIfNull: false) + @JsonKey( + name: r'hidden', + required: false, + includeIfNull: false, + ) final String? hidden; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'friends', required: false, includeIfNull: false) + @JsonKey( + name: r'friends', + required: false, + includeIfNull: false, + ) final String? friends; /// 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'private', required: false, includeIfNull: false) + @JsonKey( + name: r'private', + required: false, + includeIfNull: false, + ) final String? private; - @JsonKey(name: r'queueEnabled', required: true, includeIfNull: false) + @JsonKey( + name: r'queueEnabled', + required: true, + includeIfNull: false, + ) final bool queueEnabled; // minimum: 0 - @JsonKey(name: r'queueSize', required: true, includeIfNull: false) + @JsonKey( + name: r'queueSize', + required: true, + includeIfNull: false, + ) final int queueSize; // minimum: 0 - @JsonKey(name: r'recommendedCapacity', required: true, includeIfNull: false) + @JsonKey( + name: r'recommendedCapacity', + required: true, + includeIfNull: false, + ) final int recommendedCapacity; - @JsonKey(name: r'roleRestricted', required: false, includeIfNull: false) + @JsonKey( + name: r'roleRestricted', + required: false, + includeIfNull: false, + ) final bool? roleRestricted; - @JsonKey(name: r'strict', required: true, includeIfNull: false) + @JsonKey( + name: r'strict', + required: true, + includeIfNull: false, + ) final bool strict; // minimum: 0 - @JsonKey(name: r'userCount', required: true, includeIfNull: false) + @JsonKey( + name: r'userCount', + required: true, + includeIfNull: false, + ) final int userCount; - @JsonKey(name: r'world', required: true, includeIfNull: false) + @JsonKey( + name: r'world', + required: true, + includeIfNull: false, + ) final World world; /// The users field is present on instances created by the requesting user. - @JsonKey(name: r'users', required: false, includeIfNull: false) + @JsonKey( + name: r'users', + required: false, + includeIfNull: false, + ) final List? users; - @JsonKey(name: r'groupAccessType', required: false, includeIfNull: false) + @JsonKey( + name: r'groupAccessType', + required: false, + includeIfNull: false, + ) final GroupAccessType? groupAccessType; - @JsonKey(name: r'hasCapacityForYou', required: false, includeIfNull: false) + @JsonKey( + name: r'hasCapacityForYou', + required: false, + includeIfNull: false, + ) final bool? hasCapacityForYou; - @JsonKey(name: r'nonce', required: false, includeIfNull: false) + @JsonKey( + name: r'nonce', + required: false, + includeIfNull: false, + ) final String? nonce; - @JsonKey(name: r'closedAt', required: false, includeIfNull: false) + @JsonKey( + name: r'closedAt', + required: false, + includeIfNull: false, + ) final DateTime? closedAt; - @JsonKey(name: r'hardClose', required: false, includeIfNull: false) + @JsonKey( + name: r'hardClose', + required: false, + includeIfNull: false, + ) final bool? hardClose; @override @@ -194,9 +370,12 @@ class Instance { other.capacity == capacity && // ignore: deprecated_member_use_from_same_package other.clientNumber == clientNumber && + other.displayName == displayName && other.full == full && + other.gameServerVersion == gameServerVersion && other.id == id && other.instanceId == instanceId && + other.instancePersistenceEnabled == instancePersistenceEnabled && other.location == location && other.nUsers == nUsers && other.name == name && @@ -204,6 +383,7 @@ class Instance { other.permanent == permanent && other.photonRegion == photonRegion && other.platforms == platforms && + other.playerPersistenceEnabled == playerPersistenceEnabled && other.region == region && other.secureName == secureName && other.shortName == shortName && @@ -234,9 +414,14 @@ class Instance { capacity.hashCode + // ignore: deprecated_member_use_from_same_package clientNumber.hashCode + + (displayName == null ? 0 : displayName.hashCode) + full.hashCode + + gameServerVersion.hashCode + id.hashCode + instanceId.hashCode + + (instancePersistenceEnabled == null + ? 0 + : instancePersistenceEnabled.hashCode) + location.hashCode + nUsers.hashCode + name.hashCode + @@ -244,6 +429,9 @@ class Instance { permanent.hashCode + photonRegion.hashCode + platforms.hashCode + + (playerPersistenceEnabled == null + ? 0 + : playerPersistenceEnabled.hashCode) + region.hashCode + secureName.hashCode + (shortName == null ? 0 : shortName.hashCode) + diff --git a/vrchat_dart_generated/lib/src/model/instance.g.dart b/vrchat_dart_generated/lib/src/model/instance.g.dart index b40096e..d05edcd 100644 --- a/vrchat_dart_generated/lib/src/model/instance.g.dart +++ b/vrchat_dart_generated/lib/src/model/instance.g.dart @@ -19,15 +19,19 @@ Instance _$InstanceFromJson(Map json) => $checkedCreate( 'canRequestInvite', 'capacity', 'clientNumber', + 'displayName', 'full', + 'gameServerVersion', 'id', 'instanceId', + 'instancePersistenceEnabled', 'location', 'n_users', 'name', 'permanent', 'photonRegion', 'platforms', + 'playerPersistenceEnabled', 'region', 'secureName', 'tags', @@ -47,9 +51,14 @@ Instance _$InstanceFromJson(Map json) => $checkedCreate( $checkedConvert('canRequestInvite', (v) => v as bool? ?? true), capacity: $checkedConvert('capacity', (v) => (v as num).toInt()), clientNumber: $checkedConvert('clientNumber', (v) => v as String), + displayName: $checkedConvert('displayName', (v) => v as String?), full: $checkedConvert('full', (v) => v as bool? ?? false), + gameServerVersion: + $checkedConvert('gameServerVersion', (v) => (v as num).toInt()), id: $checkedConvert('id', (v) => v as String), instanceId: $checkedConvert('instanceId', (v) => v as String), + instancePersistenceEnabled: $checkedConvert( + 'instancePersistenceEnabled', (v) => v as String?), location: $checkedConvert('location', (v) => v as String), nUsers: $checkedConvert('n_users', (v) => (v as num).toInt()), name: $checkedConvert('name', (v) => v as String), @@ -59,6 +68,8 @@ Instance _$InstanceFromJson(Map json) => $checkedCreate( 'photonRegion', (v) => $enumDecode(_$RegionEnumMap, v)), platforms: $checkedConvert('platforms', (v) => InstancePlatforms.fromJson(v as Map)), + playerPersistenceEnabled: + $checkedConvert('playerPersistenceEnabled', (v) => v as String?), region: $checkedConvert( 'region', (v) => $enumDecode(_$InstanceRegionEnumMap, v)), secureName: $checkedConvert('secureName', (v) => v as String), @@ -105,9 +116,12 @@ Map _$InstanceToJson(Instance instance) { 'canRequestInvite': instance.canRequestInvite, 'capacity': instance.capacity, 'clientNumber': instance.clientNumber, + 'displayName': instance.displayName, 'full': instance.full, + 'gameServerVersion': instance.gameServerVersion, 'id': instance.id, 'instanceId': instance.instanceId, + 'instancePersistenceEnabled': instance.instancePersistenceEnabled, 'location': instance.location, 'n_users': instance.nUsers, 'name': instance.name, @@ -123,6 +137,7 @@ Map _$InstanceToJson(Instance instance) { val['permanent'] = instance.permanent; val['photonRegion'] = _$RegionEnumMap[instance.photonRegion]!; val['platforms'] = instance.platforms.toJson(); + val['playerPersistenceEnabled'] = instance.playerPersistenceEnabled; val['region'] = _$InstanceRegionEnumMap[instance.region]!; val['secureName'] = instance.secureName; writeNotNull('shortName', instance.shortName); diff --git a/vrchat_dart_generated/lib/src/model/instance_platforms.dart b/vrchat_dart_generated/lib/src/model/instance_platforms.dart index b4b6963..f6ab4f9 100644 --- a/vrchat_dart_generated/lib/src/model/instance_platforms.dart +++ b/vrchat_dart_generated/lib/src/model/instance_platforms.dart @@ -17,15 +17,32 @@ class InstancePlatforms { /// Returns a new [InstancePlatforms] instance. InstancePlatforms({ required this.android, + this.ios, required this.standalonewindows, }); // minimum: 0 - @JsonKey(name: r'android', required: true, includeIfNull: false) + @JsonKey( + name: r'android', + required: true, + includeIfNull: false, + ) final int android; // minimum: 0 - @JsonKey(name: r'standalonewindows', required: true, includeIfNull: false) + @JsonKey( + name: r'ios', + required: false, + includeIfNull: false, + ) + final int? ios; + + // minimum: 0 + @JsonKey( + name: r'standalonewindows', + required: true, + includeIfNull: false, + ) final int standalonewindows; @override @@ -33,10 +50,12 @@ class InstancePlatforms { identical(this, other) || other is InstancePlatforms && other.android == android && + other.ios == ios && other.standalonewindows == standalonewindows; @override - int get hashCode => android.hashCode + standalonewindows.hashCode; + int get hashCode => + android.hashCode + ios.hashCode + standalonewindows.hashCode; factory InstancePlatforms.fromJson(Map json) => _$InstancePlatformsFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/instance_platforms.g.dart b/vrchat_dart_generated/lib/src/model/instance_platforms.g.dart index 5492c8e..8c647b5 100644 --- a/vrchat_dart_generated/lib/src/model/instance_platforms.g.dart +++ b/vrchat_dart_generated/lib/src/model/instance_platforms.g.dart @@ -19,6 +19,7 @@ InstancePlatforms _$InstancePlatformsFromJson(Map json) => ); final val = InstancePlatforms( android: $checkedConvert('android', (v) => (v as num).toInt()), + ios: $checkedConvert('ios', (v) => (v as num?)?.toInt()), standalonewindows: $checkedConvert('standalonewindows', (v) => (v as num).toInt()), ); @@ -26,8 +27,18 @@ InstancePlatforms _$InstancePlatformsFromJson(Map json) => }, ); -Map _$InstancePlatformsToJson(InstancePlatforms instance) => - { - 'android': instance.android, - 'standalonewindows': instance.standalonewindows, - }; +Map _$InstancePlatformsToJson(InstancePlatforms instance) { + final val = { + 'android': instance.android, + }; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('ios', instance.ios); + val['standalonewindows'] = instance.standalonewindows; + return val; +} diff --git a/vrchat_dart_generated/lib/src/model/instance_short_name_response.dart b/vrchat_dart_generated/lib/src/model/instance_short_name_response.dart index 5d569a6..61e56c5 100644 --- a/vrchat_dart_generated/lib/src/model/instance_short_name_response.dart +++ b/vrchat_dart_generated/lib/src/model/instance_short_name_response.dart @@ -20,10 +20,18 @@ class InstanceShortNameResponse { this.shortName, }); - @JsonKey(name: r'secureName', required: true, includeIfNull: false) + @JsonKey( + name: r'secureName', + required: true, + includeIfNull: false, + ) final String secureName; - @JsonKey(name: r'shortName', required: false, includeIfNull: false) + @JsonKey( + name: r'shortName', + required: false, + includeIfNull: false, + ) final String? shortName; @override @@ -34,7 +42,8 @@ class InstanceShortNameResponse { other.shortName == shortName; @override - int get hashCode => secureName.hashCode + shortName.hashCode; + int get hashCode => + secureName.hashCode + (shortName == null ? 0 : shortName.hashCode); factory InstanceShortNameResponse.fromJson(Map json) => _$InstanceShortNameResponseFromJson(json); diff --git a/vrchat_dart_generated/lib/src/model/invite_message.dart b/vrchat_dart_generated/lib/src/model/invite_message.dart index 4feece6..7f4f999 100644 --- a/vrchat_dart_generated/lib/src/model/invite_message.dart +++ b/vrchat_dart_generated/lib/src/model/invite_message.dart @@ -26,30 +26,57 @@ class InviteMessage { required this.updatedAt, }); - @JsonKey(name: r'canBeUpdated', required: true, includeIfNull: false) + @JsonKey( + name: r'canBeUpdated', + required: true, + includeIfNull: false, + ) final bool canBeUpdated; - @JsonKey(name: r'id', required: true, includeIfNull: false) + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) final String id; - @JsonKey(name: r'message', required: true, includeIfNull: false) + @JsonKey( + name: r'message', + required: true, + includeIfNull: false, + ) final String message; - @JsonKey(name: r'messageType', required: true, includeIfNull: false) + @JsonKey( + name: r'messageType', + required: true, + includeIfNull: false, + ) final InviteMessageType messageType; /// Changes to 60 when updated, although probably server-side configurable. // minimum: 0 @JsonKey( - name: r'remainingCooldownMinutes', required: true, includeIfNull: false) + name: r'remainingCooldownMinutes', + required: true, + includeIfNull: false, + ) final int remainingCooldownMinutes; // minimum: 0 // maximum: 11 - @JsonKey(name: r'slot', required: true, includeIfNull: false) + @JsonKey( + name: r'slot', + required: true, + includeIfNull: false, + ) final int slot; - @JsonKey(name: r'updatedAt', required: true, includeIfNull: false) + @JsonKey( + name: r'updatedAt', + required: true, + includeIfNull: false, + ) final DateTime updatedAt; @override diff --git a/vrchat_dart_generated/lib/src/model/invite_request.dart b/vrchat_dart_generated/lib/src/model/invite_request.dart index a31781b..84ee75e 100644 --- a/vrchat_dart_generated/lib/src/model/invite_request.dart +++ b/vrchat_dart_generated/lib/src/model/invite_request.dart @@ -21,12 +21,20 @@ class InviteRequest { }); /// InstanceID can be \"offline\" on User profiles if you are not friends with that user and \"private\" if you are friends and user is in private instance. - @JsonKey(name: r'instanceId', required: true, includeIfNull: false) + @JsonKey( + name: r'instanceId', + required: true, + includeIfNull: false, + ) final String instanceId; // minimum: 0 // maximum: 11 - @JsonKey(name: r'messageSlot', required: false, includeIfNull: false) + @JsonKey( + name: r'messageSlot', + required: false, + includeIfNull: false, + ) final int? messageSlot; @override diff --git a/vrchat_dart_generated/lib/src/model/invite_response.dart b/vrchat_dart_generated/lib/src/model/invite_response.dart index 687ae93..54cf639 100644 --- a/vrchat_dart_generated/lib/src/model/invite_response.dart +++ b/vrchat_dart_generated/lib/src/model/invite_response.dart @@ -21,7 +21,11 @@ class InviteResponse { // minimum: 0 // maximum: 11 - @JsonKey(name: r'responseSlot', required: true, includeIfNull: false) + @JsonKey( + name: r'responseSlot', + required: true, + includeIfNull: false, + ) final int responseSlot; @override diff --git a/vrchat_dart_generated/lib/src/model/jam.dart b/vrchat_dart_generated/lib/src/model/jam.dart new file mode 100644 index 0000000..f81e077 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/jam.dart @@ -0,0 +1,141 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/jam_state_change_dates.dart'; +import 'package:json_annotation/json_annotation.dart'; + +part 'jam.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class Jam { + /// Returns a new [Jam] instance. + Jam({ + required this.description, + required this.id, + required this.isVisible, + required this.moreInfo, + required this.state, + required this.stateChangeDates, + required this.submissionContentGateDate, + required this.submissionContentGated, + required this.title, + required this.updatedAt, + }); + + @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'isVisible', + required: true, + includeIfNull: false, + ) + final bool isVisible; + + @JsonKey( + name: r'moreInfo', + required: true, + includeIfNull: false, + ) + final String moreInfo; + + /// One of: - submissions_open - closed + @JsonKey( + name: r'state', + required: true, + includeIfNull: false, + ) + final String state; + + @JsonKey( + name: r'stateChangeDates', + required: true, + includeIfNull: false, + ) + final JamStateChangeDates stateChangeDates; + + @JsonKey( + name: r'submissionContentGateDate', + required: true, + includeIfNull: true, + ) + final DateTime? submissionContentGateDate; + + @JsonKey( + name: r'submissionContentGated', + required: true, + includeIfNull: false, + ) + final bool submissionContentGated; + + @JsonKey( + name: r'title', + required: true, + includeIfNull: false, + ) + final String title; + + @JsonKey( + name: r'updated_at', + required: true, + includeIfNull: false, + ) + final DateTime updatedAt; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is Jam && + other.description == description && + other.id == id && + other.isVisible == isVisible && + other.moreInfo == moreInfo && + other.state == state && + other.stateChangeDates == stateChangeDates && + other.submissionContentGateDate == submissionContentGateDate && + other.submissionContentGated == submissionContentGated && + other.title == title && + other.updatedAt == updatedAt; + + @override + int get hashCode => + description.hashCode + + id.hashCode + + isVisible.hashCode + + moreInfo.hashCode + + state.hashCode + + stateChangeDates.hashCode + + (submissionContentGateDate == null + ? 0 + : submissionContentGateDate.hashCode) + + submissionContentGated.hashCode + + title.hashCode + + updatedAt.hashCode; + + factory Jam.fromJson(Map json) => _$JamFromJson(json); + + Map toJson() => _$JamToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/jam.g.dart b/vrchat_dart_generated/lib/src/model/jam.g.dart new file mode 100644 index 0000000..4047495 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/jam.g.dart @@ -0,0 +1,64 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'jam.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +Jam _$JamFromJson(Map json) => $checkedCreate( + 'Jam', + json, + ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + 'description', + 'id', + 'isVisible', + 'moreInfo', + 'state', + 'stateChangeDates', + 'submissionContentGateDate', + 'submissionContentGated', + 'title', + 'updated_at' + ], + ); + final val = Jam( + description: $checkedConvert('description', (v) => v as String), + id: $checkedConvert('id', (v) => v as String), + isVisible: $checkedConvert('isVisible', (v) => v as bool), + moreInfo: $checkedConvert('moreInfo', (v) => v as String), + state: $checkedConvert('state', (v) => v as String), + stateChangeDates: $checkedConvert('stateChangeDates', + (v) => JamStateChangeDates.fromJson(v as Map)), + submissionContentGateDate: $checkedConvert( + 'submissionContentGateDate', + (v) => v == null ? null : DateTime.parse(v as String)), + submissionContentGated: + $checkedConvert('submissionContentGated', (v) => v as bool), + title: $checkedConvert('title', (v) => v as String), + updatedAt: + $checkedConvert('updated_at', (v) => DateTime.parse(v as String)), + ); + return val; + }, + fieldKeyMap: const {'updatedAt': 'updated_at'}, + ); + +Map _$JamToJson(Jam instance) => { + 'description': instance.description, + 'id': instance.id, + 'isVisible': instance.isVisible, + 'moreInfo': instance.moreInfo, + 'state': instance.state, + 'stateChangeDates': instance.stateChangeDates.toJson(), + 'submissionContentGateDate': + instance.submissionContentGateDate?.toIso8601String(), + 'submissionContentGated': instance.submissionContentGated, + 'title': instance.title, + 'updated_at': instance.updatedAt.toIso8601String(), + }; diff --git a/vrchat_dart_generated/lib/src/model/jam_state_change_dates.dart b/vrchat_dart_generated/lib/src/model/jam_state_change_dates.dart new file mode 100644 index 0000000..c5f8e9c --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/jam_state_change_dates.dart @@ -0,0 +1,78 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:json_annotation/json_annotation.dart'; + +part 'jam_state_change_dates.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class JamStateChangeDates { + /// Returns a new [JamStateChangeDates] instance. + JamStateChangeDates({ + this.closed, + this.submissionsClosed, + this.submissionsOpened, + this.winnersSelected, + }); + + @JsonKey( + name: r'closed', + required: false, + includeIfNull: false, + ) + final DateTime? closed; + + @JsonKey( + name: r'submissionsClosed', + required: false, + includeIfNull: false, + ) + final DateTime? submissionsClosed; + + @JsonKey( + name: r'submissionsOpened', + required: false, + includeIfNull: false, + ) + final DateTime? submissionsOpened; + + @JsonKey( + name: r'winnersSelected', + required: false, + includeIfNull: false, + ) + final DateTime? winnersSelected; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is JamStateChangeDates && + other.closed == closed && + other.submissionsClosed == submissionsClosed && + other.submissionsOpened == submissionsOpened && + other.winnersSelected == winnersSelected; + + @override + int get hashCode => + (closed == null ? 0 : closed.hashCode) + + (submissionsClosed == null ? 0 : submissionsClosed.hashCode) + + (submissionsOpened == null ? 0 : submissionsOpened.hashCode) + + (winnersSelected == null ? 0 : winnersSelected.hashCode); + + factory JamStateChangeDates.fromJson(Map json) => + _$JamStateChangeDatesFromJson(json); + + Map toJson() => _$JamStateChangeDatesToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/jam_state_change_dates.g.dart b/vrchat_dart_generated/lib/src/model/jam_state_change_dates.g.dart new file mode 100644 index 0000000..831206f --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/jam_state_change_dates.g.dart @@ -0,0 +1,46 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'jam_state_change_dates.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +JamStateChangeDates _$JamStateChangeDatesFromJson(Map json) => + $checkedCreate( + 'JamStateChangeDates', + json, + ($checkedConvert) { + final val = JamStateChangeDates( + closed: $checkedConvert( + 'closed', (v) => v == null ? null : DateTime.parse(v as String)), + submissionsClosed: $checkedConvert('submissionsClosed', + (v) => v == null ? null : DateTime.parse(v as String)), + submissionsOpened: $checkedConvert('submissionsOpened', + (v) => v == null ? null : DateTime.parse(v as String)), + winnersSelected: $checkedConvert('winnersSelected', + (v) => v == null ? null : DateTime.parse(v as String)), + ); + return val; + }, + ); + +Map _$JamStateChangeDatesToJson(JamStateChangeDates instance) { + final val = {}; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('closed', instance.closed?.toIso8601String()); + writeNotNull( + 'submissionsClosed', instance.submissionsClosed?.toIso8601String()); + writeNotNull( + 'submissionsOpened', instance.submissionsOpened?.toIso8601String()); + writeNotNull('winnersSelected', instance.winnersSelected?.toIso8601String()); + return val; +} diff --git a/vrchat_dart_generated/lib/src/model/license.dart b/vrchat_dart_generated/lib/src/model/license.dart index fd34114..7e3c0ea 100644 --- a/vrchat_dart_generated/lib/src/model/license.dart +++ b/vrchat_dart_generated/lib/src/model/license.dart @@ -25,16 +25,32 @@ class License { }); /// Either a AvatarID, LicenseGroupID, PermissionID or ProductID. This depends on the `forType` field. - @JsonKey(name: r'forId', required: true, includeIfNull: false) + @JsonKey( + name: r'forId', + required: true, + includeIfNull: false, + ) final String forId; - @JsonKey(name: r'forType', required: true, includeIfNull: false) + @JsonKey( + name: r'forType', + required: true, + includeIfNull: false, + ) final LicenseType forType; - @JsonKey(name: r'forName', required: true, includeIfNull: false) + @JsonKey( + name: r'forName', + required: true, + includeIfNull: false, + ) final String forName; - @JsonKey(name: r'forAction', required: true, includeIfNull: false) + @JsonKey( + name: r'forAction', + required: true, + includeIfNull: false, + ) final LicenseAction forAction; @override diff --git a/vrchat_dart_generated/lib/src/model/license_group.dart b/vrchat_dart_generated/lib/src/model/license_group.dart index 6e5ddc4..3ad7be5 100644 --- a/vrchat_dart_generated/lib/src/model/license_group.dart +++ b/vrchat_dart_generated/lib/src/model/license_group.dart @@ -23,16 +23,32 @@ class LicenseGroup { required this.licenses, }); - @JsonKey(name: r'id', required: true, includeIfNull: false) + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) final String id; - @JsonKey(name: r'name', required: true, includeIfNull: false) + @JsonKey( + name: r'name', + required: true, + includeIfNull: false, + ) final String name; - @JsonKey(name: r'description', required: true, includeIfNull: false) + @JsonKey( + name: r'description', + required: true, + includeIfNull: false, + ) final String description; - @JsonKey(name: r'licenses', required: true, includeIfNull: false) + @JsonKey( + name: r'licenses', + required: true, + includeIfNull: false, + ) final List licenses; @override diff --git a/vrchat_dart_generated/lib/src/model/limited_group.dart b/vrchat_dart_generated/lib/src/model/limited_group.dart index ed522cd..9f65e64 100644 --- a/vrchat_dart_generated/lib/src/model/limited_group.dart +++ b/vrchat_dart_generated/lib/src/model/limited_group.dart @@ -37,58 +37,126 @@ class LimitedGroup { this.galleries, }); - @JsonKey(name: r'id', required: false, includeIfNull: false) + @JsonKey( + name: r'id', + required: false, + includeIfNull: false, + ) final String? id; - @JsonKey(name: r'name', required: false, includeIfNull: false) + @JsonKey( + name: r'name', + required: false, + includeIfNull: false, + ) final String? name; - @JsonKey(name: r'shortCode', required: false, includeIfNull: false) + @JsonKey( + name: r'shortCode', + required: false, + includeIfNull: false, + ) final String? shortCode; - @JsonKey(name: r'discriminator', required: false, includeIfNull: false) + @JsonKey( + name: r'discriminator', + required: false, + includeIfNull: false, + ) final String? discriminator; - @JsonKey(name: r'description', required: false, includeIfNull: false) + @JsonKey( + name: r'description', + required: false, + includeIfNull: false, + ) final String? description; - @JsonKey(name: r'iconUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'iconUrl', + required: false, + includeIfNull: false, + ) final String? iconUrl; - @JsonKey(name: r'bannerUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'bannerUrl', + required: false, + includeIfNull: false, + ) final String? bannerUrl; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'ownerId', required: false, includeIfNull: false) + @JsonKey( + name: r'ownerId', + required: false, + includeIfNull: false, + ) final String? ownerId; - @JsonKey(name: r'rules', required: false, includeIfNull: false) + @JsonKey( + name: r'rules', + required: false, + includeIfNull: false, + ) final String? rules; - @JsonKey(name: r'iconId', required: false, includeIfNull: false) + @JsonKey( + name: r'iconId', + required: false, + includeIfNull: false, + ) final String? iconId; - @JsonKey(name: r'bannerId', required: false, includeIfNull: false) + @JsonKey( + name: r'bannerId', + required: false, + includeIfNull: false, + ) final String? bannerId; - @JsonKey(name: r'memberCount', required: false, includeIfNull: false) + @JsonKey( + name: r'memberCount', + required: false, + includeIfNull: false, + ) final int? memberCount; /// - @JsonKey(name: r'tags', required: false, includeIfNull: false) + @JsonKey( + name: r'tags', + required: false, + includeIfNull: false, + ) final List? tags; - @JsonKey(name: r'createdAt', required: false, includeIfNull: false) + @JsonKey( + name: r'createdAt', + required: false, + includeIfNull: false, + ) final DateTime? createdAt; - @JsonKey(name: r'membershipStatus', required: false, includeIfNull: false) + @JsonKey( + name: r'membershipStatus', + required: false, + includeIfNull: false, + ) final GroupMemberStatus? membershipStatus; - @JsonKey(name: r'isSearchable', required: false, includeIfNull: false) + @JsonKey( + name: r'isSearchable', + required: false, + includeIfNull: false, + ) final bool? isSearchable; /// - @JsonKey(name: r'galleries', required: false, includeIfNull: false) + @JsonKey( + name: r'galleries', + required: false, + includeIfNull: false, + ) final List? galleries; @override 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 8aa9e75..87b331c 100644 --- a/vrchat_dart_generated/lib/src/model/limited_unity_package.dart +++ b/vrchat_dart_generated/lib/src/model/limited_unity_package.dart @@ -21,10 +21,18 @@ class LimitedUnityPackage { }); /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. - @JsonKey(name: r'platform', required: true, includeIfNull: false) + @JsonKey( + name: r'platform', + required: true, + includeIfNull: false, + ) final String platform; - @JsonKey(name: r'unityVersion', required: true, includeIfNull: false) + @JsonKey( + name: r'unityVersion', + required: true, + includeIfNull: false, + ) final String unityVersion; @override diff --git a/vrchat_dart_generated/lib/src/model/limited_user.dart b/vrchat_dart_generated/lib/src/model/limited_user.dart index b7ef799..234ca95 100644 --- a/vrchat_dart_generated/lib/src/model/limited_user.dart +++ b/vrchat_dart_generated/lib/src/model/limited_user.dart @@ -29,6 +29,7 @@ class LimitedUser { required this.id, required this.isFriend, required this.lastPlatform, + this.lastLogin, this.profilePicOverride, this.pronouns, required this.status, @@ -40,76 +41,159 @@ class LimitedUser { this.friendKey, }); - @JsonKey(name: r'bio', required: false, includeIfNull: false) + @JsonKey( + name: r'bio', + required: false, + includeIfNull: false, + ) final String? bio; /// - @JsonKey(name: r'bioLinks', required: false, includeIfNull: false) + @JsonKey( + name: r'bioLinks', + required: false, + includeIfNull: false, + ) final List? bioLinks; /// When profilePicOverride is not empty, use it instead. @JsonKey( - name: r'currentAvatarImageUrl', required: false, includeIfNull: false) + name: r'currentAvatarImageUrl', + required: false, + includeIfNull: false, + ) final String? currentAvatarImageUrl; /// When profilePicOverride is not empty, use it instead. @JsonKey( - name: r'currentAvatarThumbnailImageUrl', - required: false, - includeIfNull: false) + name: r'currentAvatarThumbnailImageUrl', + required: false, + includeIfNull: false, + ) final String? currentAvatarThumbnailImageUrl; - @JsonKey(name: r'currentAvatarTags', required: false, includeIfNull: false) + @JsonKey( + name: r'currentAvatarTags', + required: false, + includeIfNull: false, + ) final List? currentAvatarTags; - @JsonKey(name: r'developerType', required: true, includeIfNull: false) + @JsonKey( + name: r'developerType', + required: true, + includeIfNull: false, + ) final DeveloperType developerType; - @JsonKey(name: r'displayName', required: true, includeIfNull: false) + @JsonKey( + name: r'displayName', + required: true, + includeIfNull: false, + ) final String displayName; - @JsonKey(name: r'fallbackAvatar', required: false, includeIfNull: false) + @JsonKey( + name: r'fallbackAvatar', + required: false, + includeIfNull: false, + ) final String? fallbackAvatar; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'id', required: true, includeIfNull: false) + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) final String id; - @JsonKey(name: r'isFriend', required: true, includeIfNull: false) + @JsonKey( + name: r'isFriend', + required: true, + includeIfNull: false, + ) final bool isFriend; /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison 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) + @JsonKey( + name: r'last_platform', + required: true, + includeIfNull: false, + ) final String lastPlatform; - @JsonKey(name: r'profilePicOverride', required: false, includeIfNull: false) + @JsonKey( + name: r'last_login', + required: false, + includeIfNull: false, + ) + final DateTime? lastLogin; + + @JsonKey( + name: r'profilePicOverride', + required: false, + includeIfNull: false, + ) final String? profilePicOverride; - @JsonKey(name: r'pronouns', required: false, includeIfNull: false) + @JsonKey( + name: r'pronouns', + required: false, + includeIfNull: false, + ) final String? pronouns; - @JsonKey(name: r'status', required: true, includeIfNull: false) + @JsonKey( + name: r'status', + required: true, + includeIfNull: false, + ) final UserStatus status; - @JsonKey(name: r'statusDescription', required: true, includeIfNull: false) + @JsonKey( + name: r'statusDescription', + required: true, + includeIfNull: false, + ) final String statusDescription; /// <- Always empty. - @JsonKey(name: r'tags', required: true, includeIfNull: false) + @JsonKey( + name: r'tags', + required: true, + includeIfNull: false, + ) final List tags; - @JsonKey(name: r'userIcon', required: false, includeIfNull: false) + @JsonKey( + name: r'userIcon', + required: false, + includeIfNull: false, + ) final String? userIcon; /// -| **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). @Deprecated('username has been deprecated') - @JsonKey(name: r'username', required: false, includeIfNull: false) + @JsonKey( + name: r'username', + required: false, + includeIfNull: false, + ) final String? username; - @JsonKey(name: r'location', required: false, includeIfNull: false) + @JsonKey( + name: r'location', + required: false, + includeIfNull: false, + ) final String? location; - @JsonKey(name: r'friendKey', required: false, includeIfNull: false) + @JsonKey( + name: r'friendKey', + required: false, + includeIfNull: false, + ) final String? friendKey; @override @@ -128,6 +212,7 @@ class LimitedUser { other.id == id && other.isFriend == isFriend && other.lastPlatform == lastPlatform && + other.lastLogin == lastLogin && other.profilePicOverride == profilePicOverride && other.pronouns == pronouns && other.status == status && @@ -152,6 +237,7 @@ class LimitedUser { id.hashCode + isFriend.hashCode + lastPlatform.hashCode + + (lastLogin == null ? 0 : lastLogin.hashCode) + profilePicOverride.hashCode + pronouns.hashCode + status.hashCode + diff --git a/vrchat_dart_generated/lib/src/model/limited_user.g.dart b/vrchat_dart_generated/lib/src/model/limited_user.g.dart index 33f7579..ce99a94 100644 --- a/vrchat_dart_generated/lib/src/model/limited_user.g.dart +++ b/vrchat_dart_generated/lib/src/model/limited_user.g.dart @@ -43,6 +43,8 @@ LimitedUser _$LimitedUserFromJson(Map json) => $checkedCreate( id: $checkedConvert('id', (v) => v as String), isFriend: $checkedConvert('isFriend', (v) => v as bool), lastPlatform: $checkedConvert('last_platform', (v) => v as String), + lastLogin: $checkedConvert('last_login', + (v) => v == null ? null : DateTime.parse(v as String)), profilePicOverride: $checkedConvert('profilePicOverride', (v) => v as String?), pronouns: $checkedConvert('pronouns', (v) => v as String?), @@ -59,7 +61,10 @@ LimitedUser _$LimitedUserFromJson(Map json) => $checkedCreate( ); return val; }, - fieldKeyMap: const {'lastPlatform': 'last_platform'}, + fieldKeyMap: const { + 'lastPlatform': 'last_platform', + 'lastLogin': 'last_login' + }, ); Map _$LimitedUserToJson(LimitedUser instance) { @@ -83,6 +88,7 @@ Map _$LimitedUserToJson(LimitedUser instance) { val['id'] = instance.id; val['isFriend'] = instance.isFriend; val['last_platform'] = instance.lastPlatform; + writeNotNull('last_login', instance.lastLogin?.toIso8601String()); writeNotNull('profilePicOverride', instance.profilePicOverride); writeNotNull('pronouns', instance.pronouns); val['status'] = _$UserStatusEnumMap[instance.status]!; diff --git a/vrchat_dart_generated/lib/src/model/limited_user_groups.dart b/vrchat_dart_generated/lib/src/model/limited_user_groups.dart index e53333d..9b9ce34 100644 --- a/vrchat_dart_generated/lib/src/model/limited_user_groups.dart +++ b/vrchat_dart_generated/lib/src/model/limited_user_groups.dart @@ -36,59 +36,131 @@ class LimitedUserGroups { this.lastPostReadAt, }); - @JsonKey(name: r'id', required: false, includeIfNull: false) + @JsonKey( + name: r'id', + required: false, + includeIfNull: false, + ) final String? id; - @JsonKey(name: r'name', required: false, includeIfNull: false) + @JsonKey( + name: r'name', + required: false, + includeIfNull: false, + ) final String? name; - @JsonKey(name: r'shortCode', required: false, includeIfNull: false) + @JsonKey( + name: r'shortCode', + required: false, + includeIfNull: false, + ) final String? shortCode; - @JsonKey(name: r'discriminator', required: false, includeIfNull: false) + @JsonKey( + name: r'discriminator', + required: false, + includeIfNull: false, + ) final String? discriminator; - @JsonKey(name: r'description', required: false, includeIfNull: false) + @JsonKey( + name: r'description', + required: false, + includeIfNull: false, + ) final String? description; - @JsonKey(name: r'iconId', required: false, includeIfNull: false) + @JsonKey( + name: r'iconId', + required: false, + includeIfNull: false, + ) final String? iconId; - @JsonKey(name: r'iconUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'iconUrl', + required: false, + includeIfNull: false, + ) final String? iconUrl; - @JsonKey(name: r'bannerId', required: false, includeIfNull: false) + @JsonKey( + name: r'bannerId', + required: false, + includeIfNull: false, + ) final String? bannerId; - @JsonKey(name: r'bannerUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'bannerUrl', + required: false, + includeIfNull: false, + ) final String? bannerUrl; - @JsonKey(name: r'privacy', required: false, includeIfNull: false) + @JsonKey( + name: r'privacy', + required: false, + includeIfNull: false, + ) final String? privacy; - @JsonKey(name: r'lastPostCreatedAt', required: false, includeIfNull: false) + @JsonKey( + name: r'lastPostCreatedAt', + required: false, + includeIfNull: false, + ) final DateTime? lastPostCreatedAt; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'ownerId', required: false, includeIfNull: false) + @JsonKey( + name: r'ownerId', + required: false, + includeIfNull: false, + ) final String? ownerId; - @JsonKey(name: r'memberCount', required: false, includeIfNull: false) + @JsonKey( + name: r'memberCount', + required: false, + includeIfNull: false, + ) final int? memberCount; - @JsonKey(name: r'groupId', required: false, includeIfNull: false) + @JsonKey( + name: r'groupId', + required: false, + includeIfNull: false, + ) final String? groupId; - @JsonKey(name: r'memberVisibility', required: false, includeIfNull: false) + @JsonKey( + name: r'memberVisibility', + required: false, + includeIfNull: false, + ) final String? memberVisibility; - @JsonKey(name: r'isRepresenting', required: false, includeIfNull: false) + @JsonKey( + name: r'isRepresenting', + required: false, + includeIfNull: false, + ) final bool? isRepresenting; - @JsonKey(name: r'mutualGroup', required: false, includeIfNull: false) + @JsonKey( + name: r'mutualGroup', + required: false, + includeIfNull: false, + ) final bool? mutualGroup; - @JsonKey(name: r'lastPostReadAt', required: false, includeIfNull: false) + @JsonKey( + name: r'lastPostReadAt', + required: false, + includeIfNull: false, + ) final DateTime? lastPostReadAt; @override diff --git a/vrchat_dart_generated/lib/src/model/limited_world.dart b/vrchat_dart_generated/lib/src/model/limited_world.dart index ca54353..a40c16f 100644 --- a/vrchat_dart_generated/lib/src/model/limited_world.dart +++ b/vrchat_dart_generated/lib/src/model/limited_world.dart @@ -44,81 +44,173 @@ class LimitedWorld { }); /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'authorId', required: true, includeIfNull: false) + @JsonKey( + name: r'authorId', + required: true, + includeIfNull: false, + ) final String authorId; - @JsonKey(name: r'authorName', required: true, includeIfNull: false) + @JsonKey( + name: r'authorName', + required: true, + includeIfNull: false, + ) final String authorName; - @JsonKey(name: r'capacity', required: true, includeIfNull: false) + @JsonKey( + name: r'capacity', + required: true, + includeIfNull: false, + ) final int capacity; - @JsonKey(name: r'recommendedCapacity', required: false, includeIfNull: false) + @JsonKey( + name: r'recommendedCapacity', + required: false, + includeIfNull: false, + ) final int? recommendedCapacity; - @JsonKey(name: r'created_at', required: true, includeIfNull: false) + @JsonKey( + name: r'created_at', + required: true, + includeIfNull: false, + ) final DateTime createdAt; // minimum: 0 - @JsonKey(name: r'favorites', required: true, includeIfNull: false) + @JsonKey( + name: r'favorites', + required: true, + includeIfNull: false, + ) final int favorites; // minimum: 0 - @JsonKey(name: r'visits', required: false, includeIfNull: false) + @JsonKey( + name: r'visits', + required: false, + includeIfNull: false, + ) final int? visits; // minimum: 0 - @JsonKey(name: r'heat', required: true, includeIfNull: false) + @JsonKey( + name: r'heat', + required: true, + includeIfNull: false, + ) final int heat; /// WorldID be \"offline\" on User profiles if you are not friends with that user. - @JsonKey(name: r'id', required: true, includeIfNull: false) + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) final String id; - @JsonKey(name: r'imageUrl', required: true, includeIfNull: false) + @JsonKey( + name: r'imageUrl', + required: true, + includeIfNull: false, + ) final String imageUrl; - @JsonKey(name: r'labsPublicationDate', required: true, includeIfNull: false) + @JsonKey( + name: r'labsPublicationDate', + required: true, + includeIfNull: false, + ) final String labsPublicationDate; - @JsonKey(name: r'name', required: true, includeIfNull: false) + @JsonKey( + name: r'name', + required: true, + includeIfNull: false, + ) final String name; // minimum: 0 - @JsonKey(name: r'occupants', required: true, includeIfNull: false) + @JsonKey( + name: r'occupants', + required: true, + includeIfNull: false, + ) final int occupants; - @JsonKey(name: r'organization', required: true, includeIfNull: false) + @JsonKey( + name: r'organization', + required: true, + includeIfNull: false, + ) final String organization; // minimum: 0 - @JsonKey(name: r'popularity', required: true, includeIfNull: false) + @JsonKey( + name: r'popularity', + required: true, + includeIfNull: false, + ) final int popularity; - @JsonKey(name: r'previewYoutubeId', required: false, includeIfNull: false) + @JsonKey( + name: r'previewYoutubeId', + required: false, + includeIfNull: false, + ) final String? previewYoutubeId; - @JsonKey(name: r'publicationDate', required: true, includeIfNull: false) + @JsonKey( + name: r'publicationDate', + required: true, + includeIfNull: false, + ) final String publicationDate; - @JsonKey(name: r'releaseStatus', required: true, includeIfNull: false) + @JsonKey( + name: r'releaseStatus', + required: true, + includeIfNull: false, + ) final ReleaseStatus releaseStatus; /// - @JsonKey(name: r'tags', required: true, includeIfNull: false) + @JsonKey( + name: r'tags', + required: true, + includeIfNull: false, + ) final List tags; - @JsonKey(name: r'thumbnailImageUrl', required: true, includeIfNull: false) + @JsonKey( + name: r'thumbnailImageUrl', + required: true, + includeIfNull: false, + ) final String thumbnailImageUrl; /// - @JsonKey(name: r'unityPackages', required: true, includeIfNull: false) + @JsonKey( + name: r'unityPackages', + required: true, + includeIfNull: false, + ) final List unityPackages; - @JsonKey(name: r'updated_at', required: true, includeIfNull: false) + @JsonKey( + name: r'updated_at', + required: true, + includeIfNull: false, + ) final DateTime updatedAt; - @JsonKey(name: r'udonProducts', required: false, includeIfNull: false) + @JsonKey( + name: r'udonProducts', + required: false, + includeIfNull: false, + ) final List? udonProducts; @override diff --git a/vrchat_dart_generated/lib/src/model/moderate_user_request.dart b/vrchat_dart_generated/lib/src/model/moderate_user_request.dart index dc0b531..86f37fb 100644 --- a/vrchat_dart_generated/lib/src/model/moderate_user_request.dart +++ b/vrchat_dart_generated/lib/src/model/moderate_user_request.dart @@ -22,10 +22,18 @@ class ModerateUserRequest { }); /// 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'moderated', required: true, includeIfNull: false) + @JsonKey( + name: r'moderated', + required: true, + includeIfNull: false, + ) final String moderated; - @JsonKey(name: r'type', required: true, includeIfNull: false) + @JsonKey( + name: r'type', + required: true, + includeIfNull: false, + ) final PlayerModerationType type; @override diff --git a/vrchat_dart_generated/lib/src/model/notification.dart b/vrchat_dart_generated/lib/src/model/notification.dart index c14b1a3..1280b8e 100644 --- a/vrchat_dart_generated/lib/src/model/notification.dart +++ b/vrchat_dart_generated/lib/src/model/notification.dart @@ -28,38 +28,74 @@ class Notification { required this.type, }); - @JsonKey(name: r'created_at', required: true, includeIfNull: false) + @JsonKey( + name: r'created_at', + required: true, + includeIfNull: false, + ) final DateTime createdAt; /// **NOTICE:** This is not a JSON object when received from the REST API, but it is when received from the Websocket API. When received from the REST API, this is a json **encoded** object, meaning you have to json-de-encode to get the NotificationDetail object depending on the NotificationType. - @JsonKey(name: r'details', required: true, includeIfNull: false) + @JsonKey( + name: r'details', + required: true, + includeIfNull: false, + ) final String details; - @JsonKey(name: r'id', required: true, includeIfNull: false) + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) final String id; /// - @JsonKey(name: r'message', required: true, includeIfNull: false) + @JsonKey( + name: r'message', + required: true, + includeIfNull: false, + ) final String message; /// Not included in notification objects received from the Websocket API - @JsonKey(name: r'seen', required: false, includeIfNull: false) + @JsonKey( + name: r'seen', + required: false, + includeIfNull: false, + ) final bool? seen; /// 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'receiverUserId', required: false, includeIfNull: false) + @JsonKey( + name: r'receiverUserId', + required: false, + includeIfNull: false, + ) final String? receiverUserId; /// 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'senderUserId', required: true, includeIfNull: false) + @JsonKey( + name: r'senderUserId', + required: true, + includeIfNull: false, + ) final String senderUserId; /// -| **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). @Deprecated('senderUsername has been deprecated') - @JsonKey(name: r'senderUsername', required: false, includeIfNull: false) + @JsonKey( + name: r'senderUsername', + required: false, + includeIfNull: false, + ) final String? senderUsername; - @JsonKey(name: r'type', required: true, includeIfNull: false) + @JsonKey( + name: r'type', + required: true, + includeIfNull: false, + ) final NotificationType type; @override diff --git a/vrchat_dart_generated/lib/src/model/notification_detail_invite.dart b/vrchat_dart_generated/lib/src/model/notification_detail_invite.dart index 54558a0..13ed52c 100644 --- a/vrchat_dart_generated/lib/src/model/notification_detail_invite.dart +++ b/vrchat_dart_generated/lib/src/model/notification_detail_invite.dart @@ -21,14 +21,26 @@ class NotificationDetailInvite { required this.worldName, }); - @JsonKey(name: r'inviteMessage', required: false, includeIfNull: false) + @JsonKey( + name: r'inviteMessage', + required: false, + includeIfNull: false, + ) final String? inviteMessage; /// WorldID be \"offline\" on User profiles if you are not friends with that user. - @JsonKey(name: r'worldId', required: true, includeIfNull: false) + @JsonKey( + name: r'worldId', + required: true, + includeIfNull: false, + ) final String worldId; - @JsonKey(name: r'worldName', required: true, includeIfNull: false) + @JsonKey( + name: r'worldName', + required: true, + includeIfNull: false, + ) final String worldName; @override diff --git a/vrchat_dart_generated/lib/src/model/notification_detail_invite_response.dart b/vrchat_dart_generated/lib/src/model/notification_detail_invite_response.dart index 37a972c..a961c4a 100644 --- a/vrchat_dart_generated/lib/src/model/notification_detail_invite_response.dart +++ b/vrchat_dart_generated/lib/src/model/notification_detail_invite_response.dart @@ -20,10 +20,18 @@ class NotificationDetailInviteResponse { required this.responseMessage, }); - @JsonKey(name: r'inResponseTo', required: true, includeIfNull: false) + @JsonKey( + name: r'inResponseTo', + required: true, + includeIfNull: false, + ) final String inResponseTo; - @JsonKey(name: r'responseMessage', required: true, includeIfNull: false) + @JsonKey( + name: r'responseMessage', + required: true, + includeIfNull: false, + ) final String responseMessage; @override 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 af1895a..99e62b6 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 @@ -21,11 +21,19 @@ class NotificationDetailRequestInvite { }); /// TODO: Does this still exist? - @JsonKey(name: r'platform', required: false, includeIfNull: false) + @JsonKey( + name: r'platform', + required: false, + includeIfNull: false, + ) final String? platform; /// Used when using InviteMessage Slot. - @JsonKey(name: r'requestMessage', required: false, includeIfNull: false) + @JsonKey( + name: r'requestMessage', + required: false, + includeIfNull: false, + ) final String? requestMessage; @override diff --git a/vrchat_dart_generated/lib/src/model/notification_detail_request_invite_response.dart b/vrchat_dart_generated/lib/src/model/notification_detail_request_invite_response.dart index c60ae3f..fcc5b9b 100644 --- a/vrchat_dart_generated/lib/src/model/notification_detail_request_invite_response.dart +++ b/vrchat_dart_generated/lib/src/model/notification_detail_request_invite_response.dart @@ -20,11 +20,19 @@ class NotificationDetailRequestInviteResponse { this.requestMessage, }); - @JsonKey(name: r'inResponseTo', required: true, includeIfNull: false) + @JsonKey( + name: r'inResponseTo', + required: true, + includeIfNull: false, + ) final String inResponseTo; /// Used when using InviteMessage Slot. - @JsonKey(name: r'requestMessage', required: false, includeIfNull: false) + @JsonKey( + name: r'requestMessage', + required: false, + includeIfNull: false, + ) final String? requestMessage; @override diff --git a/vrchat_dart_generated/lib/src/model/notification_detail_vote_to_kick.dart b/vrchat_dart_generated/lib/src/model/notification_detail_vote_to_kick.dart index c43e3a0..123170b 100644 --- a/vrchat_dart_generated/lib/src/model/notification_detail_vote_to_kick.dart +++ b/vrchat_dart_generated/lib/src/model/notification_detail_vote_to_kick.dart @@ -21,11 +21,19 @@ class NotificationDetailVoteToKick { }); /// 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'initiatorUserId', required: true, includeIfNull: false) + @JsonKey( + name: r'initiatorUserId', + required: true, + includeIfNull: false, + ) final String initiatorUserId; /// 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'userToKickId', required: true, includeIfNull: false) + @JsonKey( + name: r'userToKickId', + required: true, + includeIfNull: false, + ) final String userToKickId; @override diff --git a/vrchat_dart_generated/lib/src/model/paginated_group_audit_log_entry_list.dart b/vrchat_dart_generated/lib/src/model/paginated_group_audit_log_entry_list.dart index 779c1b0..0438edc 100644 --- a/vrchat_dart_generated/lib/src/model/paginated_group_audit_log_entry_list.dart +++ b/vrchat_dart_generated/lib/src/model/paginated_group_audit_log_entry_list.dart @@ -23,15 +23,27 @@ class PaginatedGroupAuditLogEntryList { }); /// - @JsonKey(name: r'results', required: false, includeIfNull: false) + @JsonKey( + name: r'results', + required: false, + includeIfNull: false, + ) final List? results; /// The total number of results that the query would return if there were no pagination. - @JsonKey(name: r'totalCount', required: false, includeIfNull: false) + @JsonKey( + name: r'totalCount', + required: false, + includeIfNull: false, + ) final int? totalCount; /// Whether there are more results after this page. - @JsonKey(name: r'hasNext', required: false, includeIfNull: false) + @JsonKey( + name: r'hasNext', + required: false, + includeIfNull: false, + ) final bool? hasNext; @override diff --git a/vrchat_dart_generated/lib/src/model/past_display_name.dart b/vrchat_dart_generated/lib/src/model/past_display_name.dart index edb2519..b0b0618 100644 --- a/vrchat_dart_generated/lib/src/model/past_display_name.dart +++ b/vrchat_dart_generated/lib/src/model/past_display_name.dart @@ -20,10 +20,18 @@ class PastDisplayName { required this.updatedAt, }); - @JsonKey(name: r'displayName', required: true, includeIfNull: false) + @JsonKey( + name: r'displayName', + required: true, + includeIfNull: false, + ) final String displayName; - @JsonKey(name: r'updated_at', required: true, includeIfNull: false) + @JsonKey( + name: r'updated_at', + required: true, + includeIfNull: false, + ) final DateTime updatedAt; @override diff --git a/vrchat_dart_generated/lib/src/model/performance_ratings.dart b/vrchat_dart_generated/lib/src/model/performance_ratings.dart new file mode 100644 index 0000000..68bc707 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/performance_ratings.dart @@ -0,0 +1,40 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:json_annotation/json_annotation.dart'; + +/// Avatar Performance ratings. +enum PerformanceRatings { + /// Avatar Performance ratings. + @JsonValue(r'None') + none(r'None'), + + /// Avatar Performance ratings. + @JsonValue(r'Excellent') + excellent(r'Excellent'), + + /// Avatar Performance ratings. + @JsonValue(r'Good') + good(r'Good'), + + /// Avatar Performance ratings. + @JsonValue(r'Medium') + medium(r'Medium'), + + /// Avatar Performance ratings. + @JsonValue(r'Poor') + poor(r'Poor'), + + /// Avatar Performance ratings. + @JsonValue(r'VeryPoor') + veryPoor(r'VeryPoor'); + + const PerformanceRatings(this.value); + + final String value; + + @override + String toString() => value; +} diff --git a/vrchat_dart_generated/lib/src/model/permission.dart b/vrchat_dart_generated/lib/src/model/permission.dart index 5e61627..98c5b25 100644 --- a/vrchat_dart_generated/lib/src/model/permission.dart +++ b/vrchat_dart_generated/lib/src/model/permission.dart @@ -16,45 +16,95 @@ part 'permission.g.dart'; class Permission { /// Returns a new [Permission] instance. Permission({ + this.displayName, + this.description, required this.id, required this.ownerDisplayName, required this.name, required this.ownerId, + this.type, this.data, }); - @JsonKey(name: r'id', required: true, includeIfNull: false) + @JsonKey( + name: r'displayName', + required: false, + includeIfNull: false, + ) + final String? displayName; + + @JsonKey( + name: r'description', + required: false, + includeIfNull: false, + ) + final String? description; + + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) final String id; - @JsonKey(name: r'ownerDisplayName', required: true, includeIfNull: false) + @JsonKey( + name: r'ownerDisplayName', + required: true, + includeIfNull: false, + ) final String ownerDisplayName; - @JsonKey(name: r'name', required: true, includeIfNull: false) + @JsonKey( + name: r'name', + required: true, + includeIfNull: false, + ) final String name; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'ownerId', required: true, includeIfNull: false) + @JsonKey( + name: r'ownerId', + required: true, + includeIfNull: false, + ) final String ownerId; - @JsonKey(name: r'data', required: false, includeIfNull: false) + @JsonKey( + name: r'type', + required: false, + includeIfNull: false, + ) + final String? type; + + @JsonKey( + name: r'data', + required: false, + includeIfNull: false, + ) final Object? data; @override bool operator ==(Object other) => identical(this, other) || other is Permission && + other.displayName == displayName && + other.description == description && other.id == id && other.ownerDisplayName == ownerDisplayName && other.name == name && other.ownerId == ownerId && + other.type == type && other.data == data; @override int get hashCode => + displayName.hashCode + + description.hashCode + id.hashCode + ownerDisplayName.hashCode + name.hashCode + ownerId.hashCode + + type.hashCode + data.hashCode; factory Permission.fromJson(Map json) => diff --git a/vrchat_dart_generated/lib/src/model/permission.g.dart b/vrchat_dart_generated/lib/src/model/permission.g.dart index 3ce3a38..e435091 100644 --- a/vrchat_dart_generated/lib/src/model/permission.g.dart +++ b/vrchat_dart_generated/lib/src/model/permission.g.dart @@ -17,11 +17,14 @@ Permission _$PermissionFromJson(Map json) => $checkedCreate( requiredKeys: const ['id', 'ownerDisplayName', 'name', 'ownerId'], ); final val = Permission( + displayName: $checkedConvert('displayName', (v) => v as String?), + description: $checkedConvert('description', (v) => v as String?), id: $checkedConvert('id', (v) => v as String), ownerDisplayName: $checkedConvert('ownerDisplayName', (v) => v as String), name: $checkedConvert('name', (v) => v as String), ownerId: $checkedConvert('ownerId', (v) => v as String), + type: $checkedConvert('type', (v) => v as String?), data: $checkedConvert('data', (v) => v), ); return val; @@ -29,12 +32,7 @@ Permission _$PermissionFromJson(Map json) => $checkedCreate( ); Map _$PermissionToJson(Permission instance) { - final val = { - 'id': instance.id, - 'ownerDisplayName': instance.ownerDisplayName, - 'name': instance.name, - 'ownerId': instance.ownerId, - }; + final val = {}; void writeNotNull(String key, dynamic value) { if (value != null) { @@ -42,6 +40,13 @@ Map _$PermissionToJson(Permission instance) { } } + writeNotNull('displayName', instance.displayName); + writeNotNull('description', instance.description); + val['id'] = instance.id; + val['ownerDisplayName'] = instance.ownerDisplayName; + val['name'] = instance.name; + val['ownerId'] = instance.ownerId; + writeNotNull('type', instance.type); writeNotNull('data', instance.data); return val; } diff --git a/vrchat_dart_generated/lib/src/model/platform_build_info.dart b/vrchat_dart_generated/lib/src/model/platform_build_info.dart new file mode 100644 index 0000000..fbccb30 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/platform_build_info.dart @@ -0,0 +1,58 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:json_annotation/json_annotation.dart'; + +part 'platform_build_info.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class PlatformBuildInfo { + /// Returns a new [PlatformBuildInfo] instance. + PlatformBuildInfo({ + required this.minBuildNumber, + required this.redirectionAddress, + }); + + /// Minimum build number required for the platform + @JsonKey( + name: r'minBuildNumber', + required: true, + includeIfNull: false, + ) + final int minBuildNumber; + + /// Redirection URL for updating the app + @JsonKey( + name: r'redirectionAddress', + required: true, + includeIfNull: false, + ) + final String redirectionAddress; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is PlatformBuildInfo && + other.minBuildNumber == minBuildNumber && + other.redirectionAddress == redirectionAddress; + + @override + int get hashCode => minBuildNumber.hashCode + redirectionAddress.hashCode; + + factory PlatformBuildInfo.fromJson(Map json) => + _$PlatformBuildInfoFromJson(json); + + Map toJson() => _$PlatformBuildInfoToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/platform_build_info.g.dart b/vrchat_dart_generated/lib/src/model/platform_build_info.g.dart new file mode 100644 index 0000000..675e8cb --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/platform_build_info.g.dart @@ -0,0 +1,34 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'platform_build_info.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +PlatformBuildInfo _$PlatformBuildInfoFromJson(Map json) => + $checkedCreate( + 'PlatformBuildInfo', + json, + ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const ['minBuildNumber', 'redirectionAddress'], + ); + final val = PlatformBuildInfo( + minBuildNumber: + $checkedConvert('minBuildNumber', (v) => (v as num).toInt()), + redirectionAddress: + $checkedConvert('redirectionAddress', (v) => v as String), + ); + return val; + }, + ); + +Map _$PlatformBuildInfoToJson(PlatformBuildInfo instance) => + { + 'minBuildNumber': instance.minBuildNumber, + 'redirectionAddress': instance.redirectionAddress, + }; diff --git a/vrchat_dart_generated/lib/src/model/player_moderation.dart b/vrchat_dart_generated/lib/src/model/player_moderation.dart index 572d9c7..2376597 100644 --- a/vrchat_dart_generated/lib/src/model/player_moderation.dart +++ b/vrchat_dart_generated/lib/src/model/player_moderation.dart @@ -26,27 +26,55 @@ class PlayerModeration { required this.type, }); - @JsonKey(name: r'created', required: true, includeIfNull: false) + @JsonKey( + name: r'created', + required: true, + includeIfNull: false, + ) final DateTime created; - @JsonKey(name: r'id', required: true, includeIfNull: false) + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) final String id; - @JsonKey(name: r'sourceDisplayName', required: true, includeIfNull: false) + @JsonKey( + name: r'sourceDisplayName', + required: true, + includeIfNull: false, + ) final String sourceDisplayName; /// 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'sourceUserId', required: true, includeIfNull: false) + @JsonKey( + name: r'sourceUserId', + required: true, + includeIfNull: false, + ) final String sourceUserId; - @JsonKey(name: r'targetDisplayName', required: true, includeIfNull: false) + @JsonKey( + name: r'targetDisplayName', + required: true, + includeIfNull: false, + ) final String targetDisplayName; /// 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'targetUserId', required: true, includeIfNull: false) + @JsonKey( + name: r'targetUserId', + required: true, + includeIfNull: false, + ) final String targetUserId; - @JsonKey(name: r'type', required: true, includeIfNull: false) + @JsonKey( + name: r'type', + required: true, + includeIfNull: false, + ) final PlayerModerationType type; @override diff --git a/vrchat_dart_generated/lib/src/model/report_category.dart b/vrchat_dart_generated/lib/src/model/report_category.dart new file mode 100644 index 0000000..bf2d481 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/report_category.dart @@ -0,0 +1,56 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:json_annotation/json_annotation.dart'; + +part 'report_category.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class ReportCategory { + /// Returns a new [ReportCategory] instance. + ReportCategory({ + required this.text, + required this.tooltip, + }); + + /// The label of the report category + @JsonKey( + name: r'text', + required: true, + includeIfNull: false, + ) + final String text; + + /// The tooltip that describes the category + @JsonKey( + name: r'tooltip', + required: true, + includeIfNull: false, + ) + final String tooltip; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is ReportCategory && other.text == text && other.tooltip == tooltip; + + @override + int get hashCode => text.hashCode + tooltip.hashCode; + + factory ReportCategory.fromJson(Map json) => + _$ReportCategoryFromJson(json); + + Map toJson() => _$ReportCategoryToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/report_category.g.dart b/vrchat_dart_generated/lib/src/model/report_category.g.dart new file mode 100644 index 0000000..52d7a30 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/report_category.g.dart @@ -0,0 +1,32 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'report_category.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ReportCategory _$ReportCategoryFromJson(Map json) => + $checkedCreate( + 'ReportCategory', + json, + ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const ['text', 'tooltip'], + ); + final val = ReportCategory( + text: $checkedConvert('text', (v) => v as String), + tooltip: $checkedConvert('tooltip', (v) => v as String), + ); + return val; + }, + ); + +Map _$ReportCategoryToJson(ReportCategory instance) => + { + 'text': instance.text, + 'tooltip': instance.tooltip, + }; diff --git a/vrchat_dart_generated/lib/src/model/report_reason.dart b/vrchat_dart_generated/lib/src/model/report_reason.dart new file mode 100644 index 0000000..f059647 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/report_reason.dart @@ -0,0 +1,56 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:json_annotation/json_annotation.dart'; + +part 'report_reason.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class ReportReason { + /// Returns a new [ReportReason] instance. + ReportReason({ + required this.text, + required this.tooltip, + }); + + /// The label or name of the report reason + @JsonKey( + name: r'text', + required: true, + includeIfNull: false, + ) + final String text; + + /// A brief explanation of what this reason entails + @JsonKey( + name: r'tooltip', + required: true, + includeIfNull: false, + ) + final String tooltip; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is ReportReason && other.text == text && other.tooltip == tooltip; + + @override + int get hashCode => text.hashCode + tooltip.hashCode; + + factory ReportReason.fromJson(Map json) => + _$ReportReasonFromJson(json); + + Map toJson() => _$ReportReasonToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/report_reason.g.dart b/vrchat_dart_generated/lib/src/model/report_reason.g.dart new file mode 100644 index 0000000..12aff2f --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/report_reason.g.dart @@ -0,0 +1,32 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'report_reason.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +ReportReason _$ReportReasonFromJson(Map json) => + $checkedCreate( + 'ReportReason', + json, + ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const ['text', 'tooltip'], + ); + final val = ReportReason( + text: $checkedConvert('text', (v) => v as String), + tooltip: $checkedConvert('tooltip', (v) => v as String), + ); + return val; + }, + ); + +Map _$ReportReasonToJson(ReportReason instance) => + { + 'text': instance.text, + 'tooltip': instance.tooltip, + }; diff --git a/vrchat_dart_generated/lib/src/model/represented_group.dart b/vrchat_dart_generated/lib/src/model/represented_group.dart index 90c70be..cb159d7 100644 --- a/vrchat_dart_generated/lib/src/model/represented_group.dart +++ b/vrchat_dart_generated/lib/src/model/represented_group.dart @@ -34,47 +34,103 @@ class RepresentedGroup { this.isRepresenting, }); - @JsonKey(name: r'name', required: false, includeIfNull: false) + @JsonKey( + name: r'name', + required: false, + includeIfNull: false, + ) final String? name; - @JsonKey(name: r'shortCode', required: false, includeIfNull: false) + @JsonKey( + name: r'shortCode', + required: false, + includeIfNull: false, + ) final String? shortCode; - @JsonKey(name: r'discriminator', required: false, includeIfNull: false) + @JsonKey( + name: r'discriminator', + required: false, + includeIfNull: false, + ) final String? discriminator; - @JsonKey(name: r'description', required: false, includeIfNull: false) + @JsonKey( + name: r'description', + required: false, + includeIfNull: false, + ) final String? description; - @JsonKey(name: r'iconId', required: false, includeIfNull: false) + @JsonKey( + name: r'iconId', + required: false, + includeIfNull: false, + ) final String? iconId; - @JsonKey(name: r'iconUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'iconUrl', + required: false, + includeIfNull: false, + ) final String? iconUrl; - @JsonKey(name: r'bannerId', required: false, includeIfNull: false) + @JsonKey( + name: r'bannerId', + required: false, + includeIfNull: false, + ) final String? bannerId; - @JsonKey(name: r'bannerUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'bannerUrl', + required: false, + includeIfNull: false, + ) final String? bannerUrl; - @JsonKey(name: r'privacy', required: false, includeIfNull: false) + @JsonKey( + name: r'privacy', + required: false, + includeIfNull: false, + ) final GroupPrivacy? privacy; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'ownerId', required: false, includeIfNull: false) + @JsonKey( + name: r'ownerId', + required: false, + includeIfNull: false, + ) final String? ownerId; - @JsonKey(name: r'memberCount', required: false, includeIfNull: false) + @JsonKey( + name: r'memberCount', + required: false, + includeIfNull: false, + ) final int? memberCount; - @JsonKey(name: r'groupId', required: false, includeIfNull: false) + @JsonKey( + name: r'groupId', + required: false, + includeIfNull: false, + ) final String? groupId; - @JsonKey(name: r'memberVisibility', required: false, includeIfNull: false) + @JsonKey( + name: r'memberVisibility', + required: false, + includeIfNull: false, + ) final GroupUserVisibility? memberVisibility; - @JsonKey(name: r'isRepresenting', required: false, includeIfNull: false) + @JsonKey( + name: r'isRepresenting', + required: false, + includeIfNull: false, + ) final bool? isRepresenting; @override diff --git a/vrchat_dart_generated/lib/src/model/request_invite_request.dart b/vrchat_dart_generated/lib/src/model/request_invite_request.dart index dc75439..b5c3d7e 100644 --- a/vrchat_dart_generated/lib/src/model/request_invite_request.dart +++ b/vrchat_dart_generated/lib/src/model/request_invite_request.dart @@ -21,7 +21,11 @@ class RequestInviteRequest { // minimum: 0 // maximum: 11 - @JsonKey(name: r'messageSlot', required: false, includeIfNull: false) + @JsonKey( + name: r'messageSlot', + required: false, + includeIfNull: false, + ) final int? messageSlot; @override diff --git a/vrchat_dart_generated/lib/src/model/respond_group_join_request.dart b/vrchat_dart_generated/lib/src/model/respond_group_join_request.dart index 383fa0b..68f8d8f 100644 --- a/vrchat_dart_generated/lib/src/model/respond_group_join_request.dart +++ b/vrchat_dart_generated/lib/src/model/respond_group_join_request.dart @@ -21,11 +21,19 @@ class RespondGroupJoinRequest { this.block, }); - @JsonKey(name: r'action', required: true, includeIfNull: false) + @JsonKey( + name: r'action', + required: true, + includeIfNull: false, + ) final GroupJoinRequestAction action; /// Whether to block the user from requesting again - @JsonKey(name: r'block', required: false, includeIfNull: false) + @JsonKey( + name: r'block', + required: false, + includeIfNull: false, + ) final bool? block; @override diff --git a/vrchat_dart_generated/lib/src/model/response.dart b/vrchat_dart_generated/lib/src/model/response.dart index 5905680..a5065f0 100644 --- a/vrchat_dart_generated/lib/src/model/response.dart +++ b/vrchat_dart_generated/lib/src/model/response.dart @@ -20,11 +20,19 @@ class Response { required this.statusCode, }); - @JsonKey(name: r'message', required: false, includeIfNull: false) + @JsonKey( + name: r'message', + required: false, + includeIfNull: false, + ) final String? message; // minimum: 100 - @JsonKey(name: r'status_code', required: true, includeIfNull: false) + @JsonKey( + name: r'status_code', + required: true, + includeIfNull: false, + ) final int statusCode; @override diff --git a/vrchat_dart_generated/lib/src/model/sent_notification.dart b/vrchat_dart_generated/lib/src/model/sent_notification.dart index 7ad8c00..a99800b 100644 --- a/vrchat_dart_generated/lib/src/model/sent_notification.dart +++ b/vrchat_dart_generated/lib/src/model/sent_notification.dart @@ -27,33 +27,65 @@ class SentNotification { required this.type, }); - @JsonKey(name: r'created_at', required: true, includeIfNull: false) + @JsonKey( + name: r'created_at', + required: true, + includeIfNull: false, + ) final DateTime createdAt; - @JsonKey(name: r'details', required: true, includeIfNull: false) + @JsonKey( + name: r'details', + required: true, + includeIfNull: false, + ) final Object details; - @JsonKey(name: r'id', required: true, includeIfNull: false) + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) final String id; /// - @JsonKey(name: r'message', required: true, includeIfNull: false) + @JsonKey( + name: r'message', + required: true, + includeIfNull: false, + ) final String message; /// 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'receiverUserId', required: true, includeIfNull: false) + @JsonKey( + name: r'receiverUserId', + required: true, + includeIfNull: false, + ) final String receiverUserId; /// 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'senderUserId', required: true, includeIfNull: false) + @JsonKey( + name: r'senderUserId', + required: true, + includeIfNull: false, + ) final String senderUserId; /// -| **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). @Deprecated('senderUsername has been deprecated') - @JsonKey(name: r'senderUsername', required: false, includeIfNull: false) + @JsonKey( + name: r'senderUsername', + required: false, + includeIfNull: false, + ) final String? senderUsername; - @JsonKey(name: r'type', required: true, includeIfNull: false) + @JsonKey( + name: r'type', + required: true, + includeIfNull: false, + ) final NotificationType type; @override diff --git a/vrchat_dart_generated/lib/src/model/submission.dart b/vrchat_dart_generated/lib/src/model/submission.dart new file mode 100644 index 0000000..3e482c2 --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/submission.dart @@ -0,0 +1,111 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:json_annotation/json_annotation.dart'; + +part 'submission.g.dart'; + +@JsonSerializable( + checked: true, + createToJson: true, + disallowUnrecognizedKeys: false, + explicitToJson: true, +) +class Submission { + /// Returns a new [Submission] instance. + Submission({ + required this.contentId, + required this.createdAt, + required this.description, + required this.id, + required this.jamId, + this.ratingScore, + required this.submitterId, + }); + + /// Either world ID or avatar ID + @JsonKey( + name: r'contentId', + required: true, + includeIfNull: false, + ) + final String contentId; + + @JsonKey( + name: r'created_at', + required: true, + includeIfNull: false, + ) + final DateTime createdAt; + + @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'jamId', + required: true, + includeIfNull: false, + ) + final String jamId; + + // minimum: 0 + @JsonKey( + name: r'ratingScore', + required: false, + includeIfNull: false, + ) + final int? ratingScore; + + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + @JsonKey( + name: r'submitterId', + required: true, + includeIfNull: false, + ) + final String submitterId; + + @override + bool operator ==(Object other) => + identical(this, other) || + other is Submission && + other.contentId == contentId && + other.createdAt == createdAt && + other.description == description && + other.id == id && + other.jamId == jamId && + other.ratingScore == ratingScore && + other.submitterId == submitterId; + + @override + int get hashCode => + contentId.hashCode + + createdAt.hashCode + + description.hashCode + + id.hashCode + + jamId.hashCode + + ratingScore.hashCode + + submitterId.hashCode; + + factory Submission.fromJson(Map json) => + _$SubmissionFromJson(json); + + Map toJson() => _$SubmissionToJson(this); + + @override + String toString() { + return toJson().toString(); + } +} diff --git a/vrchat_dart_generated/lib/src/model/submission.g.dart b/vrchat_dart_generated/lib/src/model/submission.g.dart new file mode 100644 index 0000000..8ba9bdb --- /dev/null +++ b/vrchat_dart_generated/lib/src/model/submission.g.dart @@ -0,0 +1,60 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +// ignore_for_file: deprecated_member_use_from_same_package + +part of 'submission.dart'; + +// ************************************************************************** +// JsonSerializableGenerator +// ************************************************************************** + +Submission _$SubmissionFromJson(Map json) => $checkedCreate( + 'Submission', + json, + ($checkedConvert) { + $checkKeys( + json, + requiredKeys: const [ + 'contentId', + 'created_at', + 'description', + 'id', + 'jamId', + 'submitterId' + ], + ); + final val = Submission( + contentId: $checkedConvert('contentId', (v) => v as String), + createdAt: + $checkedConvert('created_at', (v) => DateTime.parse(v as String)), + description: $checkedConvert('description', (v) => v as String), + id: $checkedConvert('id', (v) => v as String), + jamId: $checkedConvert('jamId', (v) => v as String), + ratingScore: + $checkedConvert('ratingScore', (v) => (v as num?)?.toInt()), + submitterId: $checkedConvert('submitterId', (v) => v as String), + ); + return val; + }, + fieldKeyMap: const {'createdAt': 'created_at'}, + ); + +Map _$SubmissionToJson(Submission instance) { + final val = { + 'contentId': instance.contentId, + 'created_at': instance.createdAt.toIso8601String(), + 'description': instance.description, + 'id': instance.id, + 'jamId': instance.jamId, + }; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('ratingScore', instance.ratingScore); + val['submitterId'] = instance.submitterId; + return val; +} diff --git a/vrchat_dart_generated/lib/src/model/subscription.dart b/vrchat_dart_generated/lib/src/model/subscription.dart index 8af0c25..7e47153 100644 --- a/vrchat_dart_generated/lib/src/model/subscription.dart +++ b/vrchat_dart_generated/lib/src/model/subscription.dart @@ -29,34 +29,74 @@ class Subscription { required this.tier, }); - @JsonKey(name: r'id', required: true, includeIfNull: false) + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) final String id; - @JsonKey(name: r'steamItemId', required: true, includeIfNull: false) + @JsonKey( + name: r'steamItemId', + required: true, + includeIfNull: false, + ) final String steamItemId; - @JsonKey(name: r'oculusSku', required: false, includeIfNull: false) + @JsonKey( + name: r'oculusSku', + required: false, + includeIfNull: false, + ) final String? oculusSku; - @JsonKey(name: r'googleProductId', required: false, includeIfNull: false) + @JsonKey( + name: r'googleProductId', + required: false, + includeIfNull: false, + ) final String? googleProductId; - @JsonKey(name: r'googlePlanId', required: false, includeIfNull: false) + @JsonKey( + name: r'googlePlanId', + required: false, + includeIfNull: false, + ) final String? googlePlanId; - @JsonKey(name: r'picoSku', required: false, includeIfNull: false) + @JsonKey( + name: r'picoSku', + required: false, + includeIfNull: false, + ) final String? picoSku; - @JsonKey(name: r'amount', required: true, includeIfNull: false) + @JsonKey( + name: r'amount', + required: true, + includeIfNull: false, + ) final num amount; - @JsonKey(name: r'description', required: true, includeIfNull: false) + @JsonKey( + name: r'description', + required: true, + includeIfNull: false, + ) final String description; - @JsonKey(name: r'period', required: true, includeIfNull: false) + @JsonKey( + name: r'period', + required: true, + includeIfNull: false, + ) final SubscriptionPeriod period; - @JsonKey(name: r'tier', required: true, includeIfNull: false) + @JsonKey( + name: r'tier', + required: true, + includeIfNull: false, + ) final int tier; @override diff --git a/vrchat_dart_generated/lib/src/model/success.dart b/vrchat_dart_generated/lib/src/model/success.dart index a3c52d0..b66971f 100644 --- a/vrchat_dart_generated/lib/src/model/success.dart +++ b/vrchat_dart_generated/lib/src/model/success.dart @@ -20,7 +20,11 @@ class Success { this.success, }); - @JsonKey(name: r'success', required: false, includeIfNull: false) + @JsonKey( + name: r'success', + required: false, + includeIfNull: false, + ) final Response? success; @override diff --git a/vrchat_dart_generated/lib/src/model/transaction.dart b/vrchat_dart_generated/lib/src/model/transaction.dart index b6234f4..aa9a11c 100644 --- a/vrchat_dart_generated/lib/src/model/transaction.dart +++ b/vrchat_dart_generated/lib/src/model/transaction.dart @@ -35,44 +35,96 @@ class Transaction { this.isTokens = false, }); - @JsonKey(name: r'id', required: true, includeIfNull: false) + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) final String id; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'userId', required: false, includeIfNull: false) + @JsonKey( + name: r'userId', + required: false, + includeIfNull: false, + ) final String? userId; - @JsonKey(name: r'userDisplayName', required: false, includeIfNull: false) + @JsonKey( + name: r'userDisplayName', + required: false, + includeIfNull: false, + ) final String? userDisplayName; - @JsonKey(name: r'status', required: true, includeIfNull: false) + @JsonKey( + name: r'status', + required: true, + includeIfNull: false, + ) final TransactionStatus status; - @JsonKey(name: r'subscription', required: true, includeIfNull: false) + @JsonKey( + name: r'subscription', + required: true, + includeIfNull: false, + ) final Subscription subscription; - @JsonKey(name: r'sandbox', required: true, includeIfNull: false) + @JsonKey( + name: r'sandbox', + required: true, + includeIfNull: false, + ) final bool sandbox; - @JsonKey(name: r'created_at', required: true, includeIfNull: false) + @JsonKey( + name: r'created_at', + required: true, + includeIfNull: false, + ) final DateTime createdAt; - @JsonKey(name: r'updated_at', required: true, includeIfNull: false) + @JsonKey( + name: r'updated_at', + required: true, + includeIfNull: false, + ) final DateTime updatedAt; - @JsonKey(name: r'steam', required: false, includeIfNull: false) + @JsonKey( + name: r'steam', + required: false, + includeIfNull: false, + ) final TransactionSteamInfo? steam; - @JsonKey(name: r'agreement', required: false, includeIfNull: false) + @JsonKey( + name: r'agreement', + required: false, + includeIfNull: false, + ) final TransactionAgreement? agreement; - @JsonKey(name: r'error', required: true, includeIfNull: false) + @JsonKey( + name: r'error', + required: true, + includeIfNull: false, + ) final String error; - @JsonKey(name: r'isGift', required: false, includeIfNull: false) + @JsonKey( + name: r'isGift', + required: false, + includeIfNull: false, + ) final bool? isGift; - @JsonKey(name: r'isTokens', required: false, includeIfNull: false) + @JsonKey( + name: r'isTokens', + required: false, + includeIfNull: false, + ) final bool? isTokens; @override diff --git a/vrchat_dart_generated/lib/src/model/transaction_agreement.dart b/vrchat_dart_generated/lib/src/model/transaction_agreement.dart index 9475ca1..1e9049b 100644 --- a/vrchat_dart_generated/lib/src/model/transaction_agreement.dart +++ b/vrchat_dart_generated/lib/src/model/transaction_agreement.dart @@ -36,59 +36,131 @@ class TransactionAgreement { required this.failedAttempts, }); - @JsonKey(name: r'agreementId', required: true, includeIfNull: false) + @JsonKey( + name: r'agreementId', + required: true, + includeIfNull: false, + ) final String agreementId; - @JsonKey(name: r'itemId', required: true, includeIfNull: false) + @JsonKey( + name: r'itemId', + required: true, + includeIfNull: false, + ) final int itemId; - @JsonKey(name: r'agreement', required: true, includeIfNull: false) + @JsonKey( + name: r'agreement', + required: true, + includeIfNull: false, + ) final String agreement; /// This is NOT TransactionStatus, but whatever Steam return. - @JsonKey(name: r'status', required: true, includeIfNull: false) + @JsonKey( + name: r'status', + required: true, + includeIfNull: false, + ) final String status; - @JsonKey(name: r'period', required: true, includeIfNull: false) + @JsonKey( + name: r'period', + required: true, + includeIfNull: false, + ) final String period; - @JsonKey(name: r'frequency', required: true, includeIfNull: false) + @JsonKey( + name: r'frequency', + required: true, + includeIfNull: false, + ) final int frequency; - @JsonKey(name: r'billingType', required: true, includeIfNull: false) + @JsonKey( + name: r'billingType', + required: true, + includeIfNull: false, + ) final String billingType; - @JsonKey(name: r'startDate', required: true, includeIfNull: false) + @JsonKey( + name: r'startDate', + required: true, + includeIfNull: false, + ) final String startDate; - @JsonKey(name: r'endDate', required: true, includeIfNull: false) + @JsonKey( + name: r'endDate', + required: true, + includeIfNull: false, + ) final String endDate; - @JsonKey(name: r'recurringAmt', required: true, includeIfNull: false) + @JsonKey( + name: r'recurringAmt', + required: true, + includeIfNull: false, + ) final num recurringAmt; - @JsonKey(name: r'currency', required: true, includeIfNull: false) + @JsonKey( + name: r'currency', + required: true, + includeIfNull: false, + ) final String currency; - @JsonKey(name: r'timeCreated', required: true, includeIfNull: false) + @JsonKey( + name: r'timeCreated', + required: true, + includeIfNull: false, + ) final String timeCreated; - @JsonKey(name: r'nextPayment', required: true, includeIfNull: false) + @JsonKey( + name: r'nextPayment', + required: true, + includeIfNull: false, + ) final String nextPayment; - @JsonKey(name: r'lastPayment', required: true, includeIfNull: false) + @JsonKey( + name: r'lastPayment', + required: true, + includeIfNull: false, + ) final String lastPayment; - @JsonKey(name: r'lastAmount', required: true, includeIfNull: false) + @JsonKey( + name: r'lastAmount', + required: true, + includeIfNull: false, + ) final num lastAmount; - @JsonKey(name: r'lastAmountVat', required: true, includeIfNull: false) + @JsonKey( + name: r'lastAmountVat', + required: true, + includeIfNull: false, + ) final num lastAmountVat; - @JsonKey(name: r'outstanding', required: true, includeIfNull: false) + @JsonKey( + name: r'outstanding', + required: true, + includeIfNull: false, + ) final int outstanding; - @JsonKey(name: r'failedAttempts', required: true, includeIfNull: false) + @JsonKey( + name: r'failedAttempts', + required: true, + includeIfNull: false, + ) final int failedAttempts; @override diff --git a/vrchat_dart_generated/lib/src/model/transaction_steam_info.dart b/vrchat_dart_generated/lib/src/model/transaction_steam_info.dart index 51cfd11..5fd8a47 100644 --- a/vrchat_dart_generated/lib/src/model/transaction_steam_info.dart +++ b/vrchat_dart_generated/lib/src/model/transaction_steam_info.dart @@ -24,23 +24,43 @@ class TransactionSteamInfo { required this.transId, }); - @JsonKey(name: r'walletInfo', required: true, includeIfNull: false) + @JsonKey( + name: r'walletInfo', + required: true, + includeIfNull: false, + ) final TransactionSteamWalletInfo walletInfo; /// Steam User ID - @JsonKey(name: r'steamId', required: true, includeIfNull: false) + @JsonKey( + name: r'steamId', + required: true, + includeIfNull: false, + ) final String steamId; /// Steam Order ID - @JsonKey(name: r'orderId', required: true, includeIfNull: false) + @JsonKey( + name: r'orderId', + required: true, + includeIfNull: false, + ) final String orderId; /// Empty - @JsonKey(name: r'steamUrl', required: true, includeIfNull: false) + @JsonKey( + name: r'steamUrl', + required: true, + includeIfNull: false, + ) final String steamUrl; /// Steam Transaction ID, NOT the same as VRChat TransactionID - @JsonKey(name: r'transId', required: true, includeIfNull: false) + @JsonKey( + name: r'transId', + required: true, + includeIfNull: false, + ) final String transId; @override diff --git a/vrchat_dart_generated/lib/src/model/transaction_steam_wallet_info.dart b/vrchat_dart_generated/lib/src/model/transaction_steam_wallet_info.dart index 408dfdb..d85d3d3 100644 --- a/vrchat_dart_generated/lib/src/model/transaction_steam_wallet_info.dart +++ b/vrchat_dart_generated/lib/src/model/transaction_steam_wallet_info.dart @@ -22,16 +22,32 @@ class TransactionSteamWalletInfo { required this.status, }); - @JsonKey(name: r'state', required: true, includeIfNull: false) + @JsonKey( + name: r'state', + required: true, + includeIfNull: false, + ) final String state; - @JsonKey(name: r'country', required: true, includeIfNull: false) + @JsonKey( + name: r'country', + required: true, + includeIfNull: false, + ) final String country; - @JsonKey(name: r'currency', required: true, includeIfNull: false) + @JsonKey( + name: r'currency', + required: true, + includeIfNull: false, + ) final String currency; - @JsonKey(name: r'status', required: true, includeIfNull: false) + @JsonKey( + name: r'status', + required: true, + includeIfNull: false, + ) final String status; @override diff --git a/vrchat_dart_generated/lib/src/model/two_factor_auth_code.dart b/vrchat_dart_generated/lib/src/model/two_factor_auth_code.dart index ecd04ab..fbd8087 100644 --- a/vrchat_dart_generated/lib/src/model/two_factor_auth_code.dart +++ b/vrchat_dart_generated/lib/src/model/two_factor_auth_code.dart @@ -19,7 +19,11 @@ class TwoFactorAuthCode { required this.code, }); - @JsonKey(name: r'code', required: true, includeIfNull: false) + @JsonKey( + name: r'code', + required: true, + includeIfNull: false, + ) final String code; @override diff --git a/vrchat_dart_generated/lib/src/model/two_factor_email_code.dart b/vrchat_dart_generated/lib/src/model/two_factor_email_code.dart index 8d690f9..3e75966 100644 --- a/vrchat_dart_generated/lib/src/model/two_factor_email_code.dart +++ b/vrchat_dart_generated/lib/src/model/two_factor_email_code.dart @@ -19,7 +19,11 @@ class TwoFactorEmailCode { required this.code, }); - @JsonKey(name: r'code', required: true, includeIfNull: false) + @JsonKey( + name: r'code', + required: true, + includeIfNull: false, + ) final String code; @override diff --git a/vrchat_dart_generated/lib/src/model/unity_package.dart b/vrchat_dart_generated/lib/src/model/unity_package.dart index 6677d7a..650e812 100644 --- a/vrchat_dart_generated/lib/src/model/unity_package.dart +++ b/vrchat_dart_generated/lib/src/model/unity_package.dart @@ -3,6 +3,7 @@ // // ignore_for_file: unused_element +import 'package:vrchat_dart_generated/src/model/performance_ratings.dart'; import 'package:json_annotation/json_annotation.dart'; part 'unity_package.g.dart'; @@ -22,59 +23,131 @@ class UnityPackage { required this.assetVersion, this.createdAt, this.impostorizerVersion, + this.performanceRating, required this.platform, this.pluginUrl, this.pluginUrlObject, this.unitySortNumber, this.unityVersion = '5.3.4p1', + this.worldSignature, this.impostorUrl, this.scanStatus, this.variant, }); - @JsonKey(name: r'id', required: true, includeIfNull: false) + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) final String id; - @JsonKey(name: r'assetUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'assetUrl', + required: false, + includeIfNull: false, + ) final String? assetUrl; - @JsonKey(name: r'assetUrlObject', required: false, includeIfNull: false) + @JsonKey( + name: r'assetUrlObject', + required: false, + includeIfNull: false, + ) final Object? assetUrlObject; // minimum: 0 - @JsonKey(name: r'assetVersion', required: true, includeIfNull: false) + @JsonKey( + name: r'assetVersion', + required: true, + includeIfNull: false, + ) final int assetVersion; - @JsonKey(name: r'created_at', required: false, includeIfNull: false) + @JsonKey( + name: r'created_at', + required: false, + includeIfNull: false, + ) final DateTime? createdAt; - @JsonKey(name: r'impostorizerVersion', required: false, includeIfNull: false) + @JsonKey( + name: r'impostorizerVersion', + required: false, + includeIfNull: false, + ) final String? impostorizerVersion; + @JsonKey( + name: r'performanceRating', + required: false, + includeIfNull: false, + ) + final PerformanceRatings? performanceRating; + /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. - @JsonKey(name: r'platform', required: true, includeIfNull: false) + @JsonKey( + name: r'platform', + required: true, + includeIfNull: false, + ) final String platform; - @JsonKey(name: r'pluginUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'pluginUrl', + required: false, + includeIfNull: false, + ) final String? pluginUrl; - @JsonKey(name: r'pluginUrlObject', required: false, includeIfNull: false) + @JsonKey( + name: r'pluginUrlObject', + required: false, + includeIfNull: false, + ) final Object? pluginUrlObject; // minimum: 0 - @JsonKey(name: r'unitySortNumber', required: false, includeIfNull: false) + @JsonKey( + name: r'unitySortNumber', + required: false, + includeIfNull: false, + ) final int? unitySortNumber; - @JsonKey(name: r'unityVersion', required: true, includeIfNull: false) + @JsonKey( + name: r'unityVersion', + required: true, + includeIfNull: false, + ) final String unityVersion; - @JsonKey(name: r'impostorUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'worldSignature', + required: false, + includeIfNull: false, + ) + final String? worldSignature; + + @JsonKey( + name: r'impostorUrl', + required: false, + includeIfNull: false, + ) final String? impostorUrl; - @JsonKey(name: r'scanStatus', required: false, includeIfNull: false) + @JsonKey( + name: r'scanStatus', + required: false, + includeIfNull: false, + ) final String? scanStatus; - @JsonKey(name: r'variant', required: false, includeIfNull: false) + @JsonKey( + name: r'variant', + required: false, + includeIfNull: false, + ) final String? variant; @override @@ -87,11 +160,13 @@ class UnityPackage { other.assetVersion == assetVersion && other.createdAt == createdAt && other.impostorizerVersion == impostorizerVersion && + other.performanceRating == performanceRating && other.platform == platform && other.pluginUrl == pluginUrl && other.pluginUrlObject == pluginUrlObject && other.unitySortNumber == unitySortNumber && other.unityVersion == unityVersion && + other.worldSignature == worldSignature && other.impostorUrl == impostorUrl && other.scanStatus == scanStatus && other.variant == variant; @@ -104,11 +179,13 @@ class UnityPackage { assetVersion.hashCode + createdAt.hashCode + impostorizerVersion.hashCode + + performanceRating.hashCode + platform.hashCode + pluginUrl.hashCode + pluginUrlObject.hashCode + unitySortNumber.hashCode + unityVersion.hashCode + + (worldSignature == null ? 0 : worldSignature.hashCode) + (impostorUrl == null ? 0 : impostorUrl.hashCode) + scanStatus.hashCode + variant.hashCode; diff --git a/vrchat_dart_generated/lib/src/model/unity_package.g.dart b/vrchat_dart_generated/lib/src/model/unity_package.g.dart index 321b185..ee7ce29 100644 --- a/vrchat_dart_generated/lib/src/model/unity_package.g.dart +++ b/vrchat_dart_generated/lib/src/model/unity_package.g.dart @@ -32,6 +32,8 @@ UnityPackage _$UnityPackageFromJson(Map json) => (v) => v == null ? null : DateTime.parse(v as String)), impostorizerVersion: $checkedConvert('impostorizerVersion', (v) => v as String?), + performanceRating: $checkedConvert('performanceRating', + (v) => $enumDecodeNullable(_$PerformanceRatingsEnumMap, v)), platform: $checkedConvert('platform', (v) => v as String), pluginUrl: $checkedConvert('pluginUrl', (v) => v as String?), pluginUrlObject: $checkedConvert('pluginUrlObject', (v) => v), @@ -39,6 +41,8 @@ UnityPackage _$UnityPackageFromJson(Map json) => $checkedConvert('unitySortNumber', (v) => (v as num?)?.toInt()), unityVersion: $checkedConvert('unityVersion', (v) => v as String? ?? '5.3.4p1'), + worldSignature: + $checkedConvert('worldSignature', (v) => v as String?), impostorUrl: $checkedConvert('impostorUrl', (v) => v as String?), scanStatus: $checkedConvert('scanStatus', (v) => v as String?), variant: $checkedConvert('variant', (v) => v as String?), @@ -64,13 +68,25 @@ Map _$UnityPackageToJson(UnityPackage instance) { val['assetVersion'] = instance.assetVersion; writeNotNull('created_at', instance.createdAt?.toIso8601String()); writeNotNull('impostorizerVersion', instance.impostorizerVersion); + writeNotNull('performanceRating', + _$PerformanceRatingsEnumMap[instance.performanceRating]); val['platform'] = instance.platform; writeNotNull('pluginUrl', instance.pluginUrl); writeNotNull('pluginUrlObject', instance.pluginUrlObject); writeNotNull('unitySortNumber', instance.unitySortNumber); val['unityVersion'] = instance.unityVersion; + writeNotNull('worldSignature', instance.worldSignature); writeNotNull('impostorUrl', instance.impostorUrl); writeNotNull('scanStatus', instance.scanStatus); writeNotNull('variant', instance.variant); return val; } + +const _$PerformanceRatingsEnumMap = { + PerformanceRatings.none: 'None', + PerformanceRatings.excellent: 'Excellent', + PerformanceRatings.good: 'Good', + PerformanceRatings.medium: 'Medium', + PerformanceRatings.poor: 'Poor', + PerformanceRatings.veryPoor: 'VeryPoor', +}; diff --git a/vrchat_dart_generated/lib/src/model/update_avatar_request.dart b/vrchat_dart_generated/lib/src/model/update_avatar_request.dart index 3eac722..b294424 100644 --- a/vrchat_dart_generated/lib/src/model/update_avatar_request.dart +++ b/vrchat_dart_generated/lib/src/model/update_avatar_request.dart @@ -29,36 +29,76 @@ class UpdateAvatarRequest { this.unityVersion = '5.3.4p1', }); - @JsonKey(name: r'assetUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'assetUrl', + required: false, + includeIfNull: false, + ) final String? assetUrl; - @JsonKey(name: r'id', required: false, includeIfNull: false) + @JsonKey( + name: r'id', + required: false, + includeIfNull: false, + ) final String? id; - @JsonKey(name: r'name', required: false, includeIfNull: false) + @JsonKey( + name: r'name', + required: false, + includeIfNull: false, + ) final String? name; - @JsonKey(name: r'description', required: false, includeIfNull: false) + @JsonKey( + name: r'description', + required: false, + includeIfNull: false, + ) final String? description; /// - @JsonKey(name: r'tags', required: false, includeIfNull: false) + @JsonKey( + name: r'tags', + required: false, + includeIfNull: false, + ) final List? tags; - @JsonKey(name: r'imageUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'imageUrl', + required: false, + includeIfNull: false, + ) final String? imageUrl; - @JsonKey(name: r'releaseStatus', required: false, includeIfNull: false) + @JsonKey( + name: r'releaseStatus', + required: false, + includeIfNull: false, + ) final ReleaseStatus? releaseStatus; // minimum: 0 - @JsonKey(name: r'version', required: false, includeIfNull: false) + @JsonKey( + name: r'version', + required: false, + includeIfNull: false, + ) final int? version; - @JsonKey(name: r'unityPackageUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'unityPackageUrl', + required: false, + includeIfNull: false, + ) final String? unityPackageUrl; - @JsonKey(name: r'unityVersion', required: false, includeIfNull: false) + @JsonKey( + name: r'unityVersion', + required: false, + includeIfNull: false, + ) final String? unityVersion; @override diff --git a/vrchat_dart_generated/lib/src/model/update_favorite_group_request.dart b/vrchat_dart_generated/lib/src/model/update_favorite_group_request.dart index 1b70c54..02a941f 100644 --- a/vrchat_dart_generated/lib/src/model/update_favorite_group_request.dart +++ b/vrchat_dart_generated/lib/src/model/update_favorite_group_request.dart @@ -22,14 +22,26 @@ class UpdateFavoriteGroupRequest { this.tags, }); - @JsonKey(name: r'displayName', required: false, includeIfNull: false) + @JsonKey( + name: r'displayName', + required: false, + includeIfNull: false, + ) final String? displayName; - @JsonKey(name: r'visibility', required: false, includeIfNull: false) + @JsonKey( + name: r'visibility', + required: false, + includeIfNull: false, + ) final FavoriteGroupVisibility? visibility; /// Tags on FavoriteGroups are believed to do nothing. - @JsonKey(name: r'tags', required: false, includeIfNull: false) + @JsonKey( + name: r'tags', + required: false, + includeIfNull: false, + ) final List? tags; @override diff --git a/vrchat_dart_generated/lib/src/model/update_group_gallery_request.dart b/vrchat_dart_generated/lib/src/model/update_group_gallery_request.dart index 960f812..5fc547b 100644 --- a/vrchat_dart_generated/lib/src/model/update_group_gallery_request.dart +++ b/vrchat_dart_generated/lib/src/model/update_group_gallery_request.dart @@ -26,31 +26,59 @@ class UpdateGroupGalleryRequest { }); /// Name of the gallery. - @JsonKey(name: r'name', required: false, includeIfNull: false) + @JsonKey( + name: r'name', + required: false, + includeIfNull: false, + ) final String? name; /// Description of the gallery. - @JsonKey(name: r'description', required: false, includeIfNull: false) + @JsonKey( + name: r'description', + required: false, + includeIfNull: false, + ) final String? description; /// Whether the gallery is members only. - @JsonKey(name: r'membersOnly', required: false, includeIfNull: false) + @JsonKey( + name: r'membersOnly', + required: false, + includeIfNull: false, + ) final bool? membersOnly; /// - @JsonKey(name: r'roleIdsToView', required: false, includeIfNull: false) + @JsonKey( + name: r'roleIdsToView', + required: false, + includeIfNull: false, + ) final List? roleIdsToView; /// - @JsonKey(name: r'roleIdsToSubmit', required: false, includeIfNull: false) + @JsonKey( + name: r'roleIdsToSubmit', + required: false, + includeIfNull: false, + ) final List? roleIdsToSubmit; /// - @JsonKey(name: r'roleIdsToAutoApprove', required: false, includeIfNull: false) + @JsonKey( + name: r'roleIdsToAutoApprove', + required: false, + includeIfNull: false, + ) final List? roleIdsToAutoApprove; /// - @JsonKey(name: r'roleIdsToManage', required: false, includeIfNull: false) + @JsonKey( + name: r'roleIdsToManage', + required: false, + includeIfNull: false, + ) final List? roleIdsToManage; @override diff --git a/vrchat_dart_generated/lib/src/model/update_group_member_request.dart b/vrchat_dart_generated/lib/src/model/update_group_member_request.dart index 2ce0739..69b3fa0 100644 --- a/vrchat_dart_generated/lib/src/model/update_group_member_request.dart +++ b/vrchat_dart_generated/lib/src/model/update_group_member_request.dart @@ -22,16 +22,25 @@ class UpdateGroupMemberRequest { this.managerNotes, }); - @JsonKey(name: r'visibility', required: false, includeIfNull: false) + @JsonKey( + name: r'visibility', + required: false, + includeIfNull: false, + ) final GroupUserVisibility? visibility; @JsonKey( - name: r'isSubscribedToAnnouncements', - required: false, - includeIfNull: false) + name: r'isSubscribedToAnnouncements', + required: false, + includeIfNull: false, + ) final bool? isSubscribedToAnnouncements; - @JsonKey(name: r'managerNotes', required: false, includeIfNull: false) + @JsonKey( + name: r'managerNotes', + required: false, + includeIfNull: false, + ) final String? managerNotes; @override diff --git a/vrchat_dart_generated/lib/src/model/update_group_request.dart b/vrchat_dart_generated/lib/src/model/update_group_request.dart index 48dfc65..b19d525 100644 --- a/vrchat_dart_generated/lib/src/model/update_group_request.dart +++ b/vrchat_dart_generated/lib/src/model/update_group_request.dart @@ -29,36 +29,76 @@ class UpdateGroupRequest { this.tags, }); - @JsonKey(name: r'name', required: false, includeIfNull: false) + @JsonKey( + name: r'name', + required: false, + includeIfNull: false, + ) final String? name; - @JsonKey(name: r'shortCode', required: false, includeIfNull: false) + @JsonKey( + name: r'shortCode', + required: false, + includeIfNull: false, + ) final String? shortCode; - @JsonKey(name: r'description', required: false, includeIfNull: false) + @JsonKey( + name: r'description', + required: false, + includeIfNull: false, + ) final String? description; - @JsonKey(name: r'joinState', required: false, includeIfNull: false) + @JsonKey( + name: r'joinState', + required: false, + includeIfNull: false, + ) final GroupJoinState? joinState; - @JsonKey(name: r'iconId', required: false, includeIfNull: false) + @JsonKey( + name: r'iconId', + required: false, + includeIfNull: false, + ) final String? iconId; - @JsonKey(name: r'bannerId', required: false, includeIfNull: false) + @JsonKey( + name: r'bannerId', + required: false, + includeIfNull: false, + ) final String? bannerId; /// 3 letter language code - @JsonKey(name: r'languages', required: false, includeIfNull: false) + @JsonKey( + name: r'languages', + required: false, + includeIfNull: false, + ) final List? languages; - @JsonKey(name: r'links', required: false, includeIfNull: false) + @JsonKey( + name: r'links', + required: false, + includeIfNull: false, + ) final List? links; - @JsonKey(name: r'rules', required: false, includeIfNull: false) + @JsonKey( + name: r'rules', + required: false, + includeIfNull: false, + ) final String? rules; /// - @JsonKey(name: r'tags', required: false, includeIfNull: false) + @JsonKey( + name: r'tags', + required: false, + includeIfNull: false, + ) final List? tags; @override diff --git a/vrchat_dart_generated/lib/src/model/update_group_role_request.dart b/vrchat_dart_generated/lib/src/model/update_group_role_request.dart index 9cd33d1..dbde8aa 100644 --- a/vrchat_dart_generated/lib/src/model/update_group_role_request.dart +++ b/vrchat_dart_generated/lib/src/model/update_group_role_request.dart @@ -23,19 +23,39 @@ class UpdateGroupRoleRequest { this.order, }); - @JsonKey(name: r'name', required: false, includeIfNull: false) + @JsonKey( + name: r'name', + required: false, + includeIfNull: false, + ) final String? name; - @JsonKey(name: r'description', required: false, includeIfNull: false) + @JsonKey( + name: r'description', + required: false, + includeIfNull: false, + ) final String? description; - @JsonKey(name: r'isSelfAssignable', required: false, includeIfNull: false) + @JsonKey( + name: r'isSelfAssignable', + required: false, + includeIfNull: false, + ) final bool? isSelfAssignable; - @JsonKey(name: r'permissions', required: false, includeIfNull: false) + @JsonKey( + name: r'permissions', + required: false, + includeIfNull: false, + ) final List? permissions; - @JsonKey(name: r'order', required: false, includeIfNull: false) + @JsonKey( + name: r'order', + required: false, + includeIfNull: false, + ) final int? order; @override diff --git a/vrchat_dart_generated/lib/src/model/update_invite_message_request.dart b/vrchat_dart_generated/lib/src/model/update_invite_message_request.dart index 47ae6ae..adeea33 100644 --- a/vrchat_dart_generated/lib/src/model/update_invite_message_request.dart +++ b/vrchat_dart_generated/lib/src/model/update_invite_message_request.dart @@ -19,7 +19,11 @@ class UpdateInviteMessageRequest { required this.message, }); - @JsonKey(name: r'message', required: true, includeIfNull: false) + @JsonKey( + name: r'message', + required: true, + includeIfNull: false, + ) final String message; @override diff --git a/vrchat_dart_generated/lib/src/model/update_user_request.dart b/vrchat_dart_generated/lib/src/model/update_user_request.dart index 035be62..8cd1d5f 100644 --- a/vrchat_dart_generated/lib/src/model/update_user_request.dart +++ b/vrchat_dart_generated/lib/src/model/update_user_request.dart @@ -30,39 +30,83 @@ class UpdateUserRequest { this.userIcon, }); - @JsonKey(name: r'email', required: false, includeIfNull: false) + @JsonKey( + name: r'email', + required: false, + includeIfNull: false, + ) final String? email; - @JsonKey(name: r'birthday', required: false, includeIfNull: false) + @JsonKey( + name: r'birthday', + required: false, + includeIfNull: false, + ) final DateTime? birthday; - @JsonKey(name: r'acceptedTOSVersion', required: false, includeIfNull: false) + @JsonKey( + name: r'acceptedTOSVersion', + required: false, + includeIfNull: false, + ) final int? acceptedTOSVersion; /// - @JsonKey(name: r'tags', required: false, includeIfNull: false) + @JsonKey( + name: r'tags', + required: false, + includeIfNull: false, + ) final List? tags; - @JsonKey(name: r'status', required: false, includeIfNull: false) + @JsonKey( + name: r'status', + required: false, + includeIfNull: false, + ) final UserStatus? status; - @JsonKey(name: r'statusDescription', required: false, includeIfNull: false) + @JsonKey( + name: r'statusDescription', + required: false, + includeIfNull: false, + ) final String? statusDescription; - @JsonKey(name: r'bio', required: false, includeIfNull: false) + @JsonKey( + name: r'bio', + required: false, + includeIfNull: false, + ) final String? bio; - @JsonKey(name: r'bioLinks', required: false, includeIfNull: false) + @JsonKey( + name: r'bioLinks', + required: false, + includeIfNull: false, + ) final List? bioLinks; - @JsonKey(name: r'pronouns', required: false, includeIfNull: false) + @JsonKey( + name: r'pronouns', + required: false, + includeIfNull: false, + ) final String? pronouns; - @JsonKey(name: r'isBoopingEnabled', required: false, includeIfNull: false) + @JsonKey( + name: r'isBoopingEnabled', + required: false, + includeIfNull: false, + ) final bool? isBoopingEnabled; /// MUST be a valid VRChat /file/ url. - @JsonKey(name: r'userIcon', required: false, includeIfNull: false) + @JsonKey( + name: r'userIcon', + required: false, + includeIfNull: false, + ) final String? userIcon; @override 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 8b944c3..8267a2b 100644 --- a/vrchat_dart_generated/lib/src/model/update_world_request.dart +++ b/vrchat_dart_generated/lib/src/model/update_world_request.dart @@ -32,48 +32,100 @@ class UpdateWorldRequest { this.unityVersion = '5.3.4p1', }); - @JsonKey(name: r'assetUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'assetUrl', + required: false, + includeIfNull: false, + ) final String? assetUrl; - @JsonKey(name: r'assetVersion', required: false, includeIfNull: false) + @JsonKey( + name: r'assetVersion', + required: false, + includeIfNull: false, + ) final String? assetVersion; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'authorId', required: false, includeIfNull: false) + @JsonKey( + name: r'authorId', + required: false, + includeIfNull: false, + ) final String? authorId; - @JsonKey(name: r'authorName', required: false, includeIfNull: false) + @JsonKey( + name: r'authorName', + required: false, + includeIfNull: false, + ) final String? authorName; // minimum: 0 // maximum: 40 - @JsonKey(name: r'capacity', required: false, includeIfNull: false) + @JsonKey( + name: r'capacity', + required: false, + includeIfNull: false, + ) final int? capacity; - @JsonKey(name: r'description', required: false, includeIfNull: false) + @JsonKey( + name: r'description', + required: false, + includeIfNull: false, + ) final String? description; - @JsonKey(name: r'imageUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'imageUrl', + required: false, + includeIfNull: false, + ) final String? imageUrl; - @JsonKey(name: r'name', required: false, includeIfNull: false) + @JsonKey( + name: r'name', + required: false, + includeIfNull: false, + ) final String? name; /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. - @JsonKey(name: r'platform', required: false, includeIfNull: false) + @JsonKey( + name: r'platform', + required: false, + includeIfNull: false, + ) final String? platform; - @JsonKey(name: r'releaseStatus', required: false, includeIfNull: false) + @JsonKey( + name: r'releaseStatus', + required: false, + includeIfNull: false, + ) final ReleaseStatus? releaseStatus; /// - @JsonKey(name: r'tags', required: false, includeIfNull: false) + @JsonKey( + name: r'tags', + required: false, + includeIfNull: false, + ) final List? tags; - @JsonKey(name: r'unityPackageUrl', required: false, includeIfNull: false) + @JsonKey( + name: r'unityPackageUrl', + required: false, + includeIfNull: false, + ) final String? unityPackageUrl; - @JsonKey(name: r'unityVersion', required: false, includeIfNull: false) + @JsonKey( + name: r'unityVersion', + required: false, + includeIfNull: false, + ) final String? unityVersion; @override diff --git a/vrchat_dart_generated/lib/src/model/user.dart b/vrchat_dart_generated/lib/src/model/user.dart index f3d8705..66f0660 100644 --- a/vrchat_dart_generated/lib/src/model/user.dart +++ b/vrchat_dart_generated/lib/src/model/user.dart @@ -57,130 +57,264 @@ class User { this.worldId, }); - @JsonKey(name: r'allowAvatarCopying', required: true, includeIfNull: false) + @JsonKey( + name: r'allowAvatarCopying', + required: true, + includeIfNull: false, + ) final bool allowAvatarCopying; /// - @JsonKey(name: r'badges', required: false, includeIfNull: false) + @JsonKey( + name: r'badges', + required: false, + includeIfNull: false, + ) final List? badges; - @JsonKey(name: r'bio', required: true, includeIfNull: false) + @JsonKey( + name: r'bio', + required: true, + includeIfNull: false, + ) final String bio; - @JsonKey(name: r'bioLinks', required: true, includeIfNull: false) + @JsonKey( + name: r'bioLinks', + required: true, + includeIfNull: false, + ) final List bioLinks; /// When profilePicOverride is not empty, use it instead. - @JsonKey(name: r'currentAvatarImageUrl', required: true, includeIfNull: false) + @JsonKey( + name: r'currentAvatarImageUrl', + required: true, + includeIfNull: false, + ) final String currentAvatarImageUrl; /// When profilePicOverride is not empty, use it instead. @JsonKey( - name: r'currentAvatarThumbnailImageUrl', - required: true, - includeIfNull: false) + name: r'currentAvatarThumbnailImageUrl', + required: true, + includeIfNull: false, + ) final String currentAvatarThumbnailImageUrl; - @JsonKey(name: r'currentAvatarTags', required: true, includeIfNull: false) + @JsonKey( + name: r'currentAvatarTags', + required: true, + includeIfNull: false, + ) final List currentAvatarTags; - @JsonKey(name: r'date_joined', required: true, includeIfNull: false) + @JsonKey( + name: r'date_joined', + required: true, + includeIfNull: false, + ) final DateTime dateJoined; - @JsonKey(name: r'developerType', required: true, includeIfNull: false) + @JsonKey( + name: r'developerType', + required: true, + includeIfNull: false, + ) final DeveloperType developerType; /// A users visual display name. This is what shows up in-game, and can different from their `username`. Changing display name is restricted to a cooldown period. - @JsonKey(name: r'displayName', required: true, includeIfNull: false) + @JsonKey( + name: r'displayName', + required: true, + includeIfNull: false, + ) final String displayName; - @JsonKey(name: r'friendKey', required: true, includeIfNull: false) + @JsonKey( + name: r'friendKey', + required: true, + includeIfNull: false, + ) final String friendKey; - @JsonKey(name: r'friendRequestStatus', required: false, includeIfNull: false) + @JsonKey( + name: r'friendRequestStatus', + required: false, + includeIfNull: false, + ) final String? friendRequestStatus; /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'id', required: true, includeIfNull: false) + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) final String id; /// InstanceID can be \"offline\" on User profiles if you are not friends with that user and \"private\" if you are friends and user is in private instance. - @JsonKey(name: r'instanceId', required: false, includeIfNull: false) + @JsonKey( + name: r'instanceId', + required: false, + includeIfNull: false, + ) final String? instanceId; /// Either their `friendKey`, or empty string if you are not friends. Unknown usage. - @JsonKey(name: r'isFriend', required: true, includeIfNull: false) + @JsonKey( + name: r'isFriend', + required: true, + includeIfNull: false, + ) final bool isFriend; /// Either a date-time or empty string. - @JsonKey(name: r'last_activity', required: true, includeIfNull: false) + @JsonKey( + name: r'last_activity', + required: true, + includeIfNull: false, + ) final String lastActivity; /// Either a date-time or empty string. - @JsonKey(name: r'last_login', required: true, includeIfNull: false) + @JsonKey( + name: r'last_login', + required: true, + includeIfNull: false, + ) final String lastLogin; - @JsonKey(name: r'last_mobile', required: false, includeIfNull: false) + @JsonKey( + name: r'last_mobile', + required: false, + includeIfNull: false, + ) final String? lastMobile; /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison 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) + @JsonKey( + name: r'last_platform', + required: true, + includeIfNull: false, + ) final String lastPlatform; /// WorldID be \"offline\" on User profiles if you are not friends with that user. - @JsonKey(name: r'location', required: false, includeIfNull: false) + @JsonKey( + name: r'location', + required: false, + includeIfNull: false, + ) final String? location; - @JsonKey(name: r'note', required: false, includeIfNull: false) + @JsonKey( + name: r'note', + required: false, + includeIfNull: false, + ) final String? note; - @JsonKey(name: r'platform', required: false, includeIfNull: false) + @JsonKey( + name: r'platform', + required: false, + includeIfNull: false, + ) final String? platform; - @JsonKey(name: r'profilePicOverride', required: true, includeIfNull: false) + @JsonKey( + name: r'profilePicOverride', + required: true, + includeIfNull: false, + ) final String profilePicOverride; @JsonKey( - name: r'profilePicOverrideThumbnail', - required: true, - includeIfNull: false) + name: r'profilePicOverrideThumbnail', + required: true, + includeIfNull: false, + ) final String profilePicOverrideThumbnail; - @JsonKey(name: r'pronouns', required: true, includeIfNull: false) + @JsonKey( + name: r'pronouns', + required: true, + includeIfNull: false, + ) final String pronouns; - @JsonKey(name: r'state', required: true, includeIfNull: false) + @JsonKey( + name: r'state', + required: true, + includeIfNull: false, + ) final UserState state; - @JsonKey(name: r'status', required: true, includeIfNull: false) + @JsonKey( + name: r'status', + required: true, + includeIfNull: false, + ) final UserStatus status; - @JsonKey(name: r'statusDescription', required: true, includeIfNull: false) + @JsonKey( + name: r'statusDescription', + required: true, + includeIfNull: false, + ) final String statusDescription; /// - @JsonKey(name: r'tags', required: true, includeIfNull: false) + @JsonKey( + name: r'tags', + required: true, + includeIfNull: false, + ) final List tags; - @JsonKey(name: r'travelingToInstance', required: false, includeIfNull: false) + @JsonKey( + name: r'travelingToInstance', + required: false, + includeIfNull: false, + ) final String? travelingToInstance; - @JsonKey(name: r'travelingToLocation', required: false, includeIfNull: false) + @JsonKey( + name: r'travelingToLocation', + required: false, + includeIfNull: false, + ) final String? travelingToLocation; - @JsonKey(name: r'travelingToWorld', required: false, includeIfNull: false) + @JsonKey( + name: r'travelingToWorld', + required: false, + includeIfNull: false, + ) final String? travelingToWorld; - @JsonKey(name: r'userIcon', required: true, includeIfNull: false) + @JsonKey( + name: r'userIcon', + required: true, + includeIfNull: false, + ) final String userIcon; /// -| A users unique name, used during login. This is different from `displayName` which is what shows up in-game. A users `username` can never be changed.' **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). @Deprecated('username has been deprecated') - @JsonKey(name: r'username', required: false, includeIfNull: false) + @JsonKey( + name: r'username', + required: false, + includeIfNull: false, + ) final String? username; /// WorldID be \"offline\" on User profiles if you are not friends with that user. - @JsonKey(name: r'worldId', required: false, includeIfNull: false) + @JsonKey( + name: r'worldId', + required: false, + includeIfNull: false, + ) final String? worldId; @override diff --git a/vrchat_dart_generated/lib/src/model/user_exists.dart b/vrchat_dart_generated/lib/src/model/user_exists.dart index 135db07..95dc255 100644 --- a/vrchat_dart_generated/lib/src/model/user_exists.dart +++ b/vrchat_dart_generated/lib/src/model/user_exists.dart @@ -21,12 +21,20 @@ class UserExists { }); /// Status if a user exist with that username or userId. - @JsonKey(name: r'userExists', required: true, includeIfNull: false) + @JsonKey( + name: r'userExists', + required: true, + includeIfNull: false, + ) final bool userExists; /// Is the username valid? - @JsonKey(name: r'nameOk', required: true, includeIfNull: false) - final bool nameOk; + @JsonKey( + name: r'nameOk', + required: false, + includeIfNull: false, + ) + final bool? nameOk; @override bool operator ==(Object other) => diff --git a/vrchat_dart_generated/lib/src/model/user_exists.g.dart b/vrchat_dart_generated/lib/src/model/user_exists.g.dart index da0bb0a..b1462a8 100644 --- a/vrchat_dart_generated/lib/src/model/user_exists.g.dart +++ b/vrchat_dart_generated/lib/src/model/user_exists.g.dart @@ -14,7 +14,7 @@ UserExists _$UserExistsFromJson(Map json) => $checkedCreate( ($checkedConvert) { $checkKeys( json, - requiredKeys: const ['userExists', 'nameOk'], + requiredKeys: const ['userExists'], ); final val = UserExists( userExists: $checkedConvert('userExists', (v) => v as bool? ?? false), @@ -24,8 +24,17 @@ UserExists _$UserExistsFromJson(Map json) => $checkedCreate( }, ); -Map _$UserExistsToJson(UserExists instance) => - { - 'userExists': instance.userExists, - 'nameOk': instance.nameOk, - }; +Map _$UserExistsToJson(UserExists instance) { + final val = { + 'userExists': instance.userExists, + }; + + void writeNotNull(String key, dynamic value) { + if (value != null) { + val[key] = value; + } + } + + writeNotNull('nameOk', instance.nameOk); + return val; +} diff --git a/vrchat_dart_generated/lib/src/model/user_subscription.dart b/vrchat_dart_generated/lib/src/model/user_subscription.dart index ee2446d..22f9aaf 100644 --- a/vrchat_dart_generated/lib/src/model/user_subscription.dart +++ b/vrchat_dart_generated/lib/src/model/user_subscription.dart @@ -36,53 +36,117 @@ class UserSubscription { this.isGift = false, }); - @JsonKey(name: r'id', required: true, includeIfNull: false) + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) final String id; - @JsonKey(name: r'transactionId', required: true, includeIfNull: false) + @JsonKey( + name: r'transactionId', + required: true, + includeIfNull: false, + ) final String transactionId; /// Which \"Store\" it came from. Right now only Stores are \"Steam\" and \"Admin\". - @JsonKey(name: r'store', required: true, includeIfNull: false) + @JsonKey( + name: r'store', + required: true, + includeIfNull: false, + ) final String store; - @JsonKey(name: r'steamItemId', required: false, includeIfNull: false) + @JsonKey( + name: r'steamItemId', + required: false, + includeIfNull: false, + ) final String? steamItemId; - @JsonKey(name: r'amount', required: true, includeIfNull: false) + @JsonKey( + name: r'amount', + required: true, + includeIfNull: false, + ) final num amount; - @JsonKey(name: r'description', required: true, includeIfNull: false) + @JsonKey( + name: r'description', + required: true, + includeIfNull: false, + ) final String description; - @JsonKey(name: r'period', required: true, includeIfNull: false) + @JsonKey( + name: r'period', + required: true, + includeIfNull: false, + ) final SubscriptionPeriod period; - @JsonKey(name: r'tier', required: true, includeIfNull: false) + @JsonKey( + name: r'tier', + required: true, + includeIfNull: false, + ) final int tier; - @JsonKey(name: r'active', required: true, includeIfNull: false) + @JsonKey( + name: r'active', + required: true, + includeIfNull: false, + ) final bool active; - @JsonKey(name: r'status', required: true, includeIfNull: false) + @JsonKey( + name: r'status', + required: true, + includeIfNull: false, + ) final TransactionStatus status; - @JsonKey(name: r'starts', required: false, includeIfNull: false) + @JsonKey( + name: r'starts', + required: false, + includeIfNull: false, + ) final String? starts; - @JsonKey(name: r'expires', required: true, includeIfNull: false) + @JsonKey( + name: r'expires', + required: true, + includeIfNull: false, + ) final DateTime expires; - @JsonKey(name: r'created_at', required: true, includeIfNull: false) + @JsonKey( + name: r'created_at', + required: true, + includeIfNull: false, + ) final DateTime createdAt; - @JsonKey(name: r'updated_at', required: true, includeIfNull: false) + @JsonKey( + name: r'updated_at', + required: true, + includeIfNull: false, + ) final DateTime updatedAt; - @JsonKey(name: r'licenseGroups', required: true, includeIfNull: false) + @JsonKey( + name: r'licenseGroups', + required: true, + includeIfNull: false, + ) final List licenseGroups; - @JsonKey(name: r'isGift', required: true, includeIfNull: false) + @JsonKey( + name: r'isGift', + required: true, + includeIfNull: false, + ) final bool isGift; @override diff --git a/vrchat_dart_generated/lib/src/model/verify2_fa_email_code_result.dart b/vrchat_dart_generated/lib/src/model/verify2_fa_email_code_result.dart index eab93b5..21af4c7 100644 --- a/vrchat_dart_generated/lib/src/model/verify2_fa_email_code_result.dart +++ b/vrchat_dart_generated/lib/src/model/verify2_fa_email_code_result.dart @@ -19,7 +19,11 @@ class Verify2FAEmailCodeResult { required this.verified, }); - @JsonKey(name: r'verified', required: true, includeIfNull: false) + @JsonKey( + name: r'verified', + required: true, + includeIfNull: false, + ) final bool verified; @override diff --git a/vrchat_dart_generated/lib/src/model/verify2_fa_result.dart b/vrchat_dart_generated/lib/src/model/verify2_fa_result.dart index e195125..abf0eaf 100644 --- a/vrchat_dart_generated/lib/src/model/verify2_fa_result.dart +++ b/vrchat_dart_generated/lib/src/model/verify2_fa_result.dart @@ -19,7 +19,11 @@ class Verify2FAResult { required this.verified, }); - @JsonKey(name: r'verified', required: true, includeIfNull: false) + @JsonKey( + name: r'verified', + required: true, + includeIfNull: false, + ) final bool verified; @override diff --git a/vrchat_dart_generated/lib/src/model/verify_auth_token_result.dart b/vrchat_dart_generated/lib/src/model/verify_auth_token_result.dart index 91e073a..acc6e5d 100644 --- a/vrchat_dart_generated/lib/src/model/verify_auth_token_result.dart +++ b/vrchat_dart_generated/lib/src/model/verify_auth_token_result.dart @@ -20,10 +20,18 @@ class VerifyAuthTokenResult { required this.token, }); - @JsonKey(name: r'ok', required: true, includeIfNull: false) + @JsonKey( + name: r'ok', + required: true, + includeIfNull: false, + ) final bool ok; - @JsonKey(name: r'token', required: true, includeIfNull: false) + @JsonKey( + name: r'token', + required: true, + includeIfNull: false, + ) final String token; @override diff --git a/vrchat_dart_generated/lib/src/model/world.dart b/vrchat_dart_generated/lib/src/model/world.dart index ebdc8dd..0bdc822 100644 --- a/vrchat_dart_generated/lib/src/model/world.dart +++ b/vrchat_dart_generated/lib/src/model/world.dart @@ -51,109 +51,229 @@ class World { }); /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - @JsonKey(name: r'authorId', required: true, includeIfNull: false) + @JsonKey( + name: r'authorId', + required: true, + includeIfNull: false, + ) final String authorId; - @JsonKey(name: r'authorName', required: true, includeIfNull: false) + @JsonKey( + name: r'authorName', + required: true, + includeIfNull: false, + ) final String authorName; - @JsonKey(name: r'capacity', required: true, includeIfNull: false) + @JsonKey( + name: r'capacity', + required: true, + includeIfNull: false, + ) final int capacity; - @JsonKey(name: r'recommendedCapacity', required: true, includeIfNull: false) + @JsonKey( + name: r'recommendedCapacity', + required: true, + includeIfNull: false, + ) final int recommendedCapacity; - @JsonKey(name: r'created_at', required: true, includeIfNull: false) + @JsonKey( + name: r'created_at', + required: true, + includeIfNull: false, + ) final DateTime createdAt; - @JsonKey(name: r'description', required: true, includeIfNull: false) + @JsonKey( + name: r'description', + required: true, + includeIfNull: false, + ) final String description; // minimum: 0 - @JsonKey(name: r'favorites', required: false, includeIfNull: false) + @JsonKey( + name: r'favorites', + required: false, + includeIfNull: false, + ) final int? favorites; - @JsonKey(name: r'featured', required: true, includeIfNull: false) + @JsonKey( + name: r'featured', + required: true, + includeIfNull: false, + ) final bool featured; // minimum: 0 - @JsonKey(name: r'heat', required: true, includeIfNull: false) + @JsonKey( + name: r'heat', + required: true, + includeIfNull: false, + ) final int heat; /// WorldID be \"offline\" on User profiles if you are not friends with that user. - @JsonKey(name: r'id', required: true, includeIfNull: false) + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) final String id; - @JsonKey(name: r'imageUrl', required: true, includeIfNull: false) + @JsonKey( + name: r'imageUrl', + required: true, + includeIfNull: false, + ) final String imageUrl; /// Will always be an empty list when unauthenticated. - @JsonKey(name: r'instances', required: false, includeIfNull: false) + @JsonKey( + name: r'instances', + required: false, + includeIfNull: false, + ) final List>? instances; - @JsonKey(name: r'labsPublicationDate', required: true, includeIfNull: false) + @JsonKey( + name: r'labsPublicationDate', + required: true, + includeIfNull: false, + ) final String labsPublicationDate; - @JsonKey(name: r'name', required: true, includeIfNull: false) + @JsonKey( + name: r'name', + required: true, + includeIfNull: false, + ) final String name; - @JsonKey(name: r'namespace', required: false, includeIfNull: false) + @JsonKey( + name: r'namespace', + required: false, + includeIfNull: false, + ) final String? namespace; /// Will always be `0` when unauthenticated. // minimum: 0 - @JsonKey(name: r'occupants', required: false, includeIfNull: false) + @JsonKey( + name: r'occupants', + required: false, + includeIfNull: false, + ) final int? occupants; - @JsonKey(name: r'organization', required: true, includeIfNull: false) + @JsonKey( + name: r'organization', + required: true, + includeIfNull: false, + ) final String organization; // minimum: 0 - @JsonKey(name: r'popularity', required: true, includeIfNull: false) + @JsonKey( + name: r'popularity', + required: true, + includeIfNull: false, + ) final int popularity; - @JsonKey(name: r'previewYoutubeId', required: false, includeIfNull: false) + @JsonKey( + name: r'previewYoutubeId', + required: false, + includeIfNull: false, + ) final String? previewYoutubeId; /// Will always be `0` when unauthenticated. // minimum: 0 - @JsonKey(name: r'privateOccupants', required: false, includeIfNull: false) + @JsonKey( + name: r'privateOccupants', + required: false, + includeIfNull: false, + ) final int? privateOccupants; /// Will always be `0` when unauthenticated. // minimum: 0 - @JsonKey(name: r'publicOccupants', required: false, includeIfNull: false) + @JsonKey( + name: r'publicOccupants', + required: false, + includeIfNull: false, + ) final int? publicOccupants; - @JsonKey(name: r'publicationDate', required: true, includeIfNull: false) + @JsonKey( + name: r'publicationDate', + required: true, + includeIfNull: false, + ) final String publicationDate; - @JsonKey(name: r'releaseStatus', required: true, includeIfNull: false) + @JsonKey( + name: r'releaseStatus', + required: true, + includeIfNull: false, + ) final ReleaseStatus releaseStatus; /// - @JsonKey(name: r'tags', required: true, includeIfNull: false) + @JsonKey( + name: r'tags', + required: true, + includeIfNull: false, + ) final List tags; - @JsonKey(name: r'thumbnailImageUrl', required: true, includeIfNull: false) + @JsonKey( + name: r'thumbnailImageUrl', + required: true, + includeIfNull: false, + ) final String thumbnailImageUrl; /// Empty if unauthenticated. - @JsonKey(name: r'unityPackages', required: false, includeIfNull: false) + @JsonKey( + name: r'unityPackages', + required: false, + includeIfNull: false, + ) final List? unityPackages; - @JsonKey(name: r'updated_at', required: true, includeIfNull: false) + @JsonKey( + name: r'updated_at', + required: true, + includeIfNull: false, + ) final DateTime updatedAt; // minimum: 0 - @JsonKey(name: r'version', required: true, includeIfNull: false) + @JsonKey( + name: r'version', + required: true, + includeIfNull: false, + ) final int version; // minimum: 0 - @JsonKey(name: r'visits', required: true, includeIfNull: false) + @JsonKey( + name: r'visits', + required: true, + includeIfNull: false, + ) final int visits; - @JsonKey(name: r'udonProducts', required: false, includeIfNull: false) + @JsonKey( + name: r'udonProducts', + required: false, + includeIfNull: false, + ) final List? udonProducts; @override diff --git a/vrchat_dart_generated/lib/src/model/world_metadata.dart b/vrchat_dart_generated/lib/src/model/world_metadata.dart index 0c1ac26..28d9530 100644 --- a/vrchat_dart_generated/lib/src/model/world_metadata.dart +++ b/vrchat_dart_generated/lib/src/model/world_metadata.dart @@ -21,10 +21,18 @@ class WorldMetadata { }); /// WorldID be \"offline\" on User profiles if you are not friends with that user. - @JsonKey(name: r'id', required: true, includeIfNull: false) + @JsonKey( + name: r'id', + required: true, + includeIfNull: false, + ) final String id; - @JsonKey(name: r'metadata', required: true, includeIfNull: false) + @JsonKey( + name: r'metadata', + required: true, + includeIfNull: false, + ) final Object metadata; @override diff --git a/vrchat_dart_generated/lib/src/model/world_publish_status.dart b/vrchat_dart_generated/lib/src/model/world_publish_status.dart index 0816ce4..e1f298b 100644 --- a/vrchat_dart_generated/lib/src/model/world_publish_status.dart +++ b/vrchat_dart_generated/lib/src/model/world_publish_status.dart @@ -19,7 +19,11 @@ class WorldPublishStatus { this.canPublish = true, }); - @JsonKey(name: r'canPublish', required: true, includeIfNull: false) + @JsonKey( + name: r'canPublish', + required: true, + includeIfNull: false, + ) final bool canPublish; @override diff --git a/vrchat_dart_generated/lib/vrchat_dart_generated.dart b/vrchat_dart_generated/lib/vrchat_dart_generated.dart index fe90c79..cd1c577 100644 --- a/vrchat_dart_generated/lib/vrchat_dart_generated.dart +++ b/vrchat_dart_generated/lib/vrchat_dart_generated.dart @@ -17,6 +17,7 @@ export 'package:vrchat_dart_generated/src/api/friends_api.dart'; export 'package:vrchat_dart_generated/src/api/groups_api.dart'; export 'package:vrchat_dart_generated/src/api/instances_api.dart'; export 'package:vrchat_dart_generated/src/api/invite_api.dart'; +export 'package:vrchat_dart_generated/src/api/jams_api.dart'; export 'package:vrchat_dart_generated/src/api/notifications_api.dart'; export 'package:vrchat_dart_generated/src/api/permissions_api.dart'; export 'package:vrchat_dart_generated/src/api/playermoderation_api.dart'; @@ -26,8 +27,20 @@ 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_announcement.dart'; +export 'package:vrchat_dart_generated/src/model/api_config_constants.dart'; +export 'package:vrchat_dart_generated/src/model/api_config_constants_groups.dart'; +export 'package:vrchat_dart_generated/src/model/api_config_constants_instance.dart'; +export 'package:vrchat_dart_generated/src/model/api_config_constants_instancepopulationbrackets.dart'; +export 'package:vrchat_dart_generated/src/model/api_config_constants_instancepopulationbracketscrowded.dart'; +export 'package:vrchat_dart_generated/src/model/api_config_constants_instancepopulationbracketsfew.dart'; +export 'package:vrchat_dart_generated/src/model/api_config_constants_instancepopulationbracketsmany.dart'; +export 'package:vrchat_dart_generated/src/model/api_config_constants_language.dart'; export 'package:vrchat_dart_generated/src/model/api_config_download_url_list.dart'; export 'package:vrchat_dart_generated/src/model/api_config_events.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_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'; @@ -57,6 +70,7 @@ export 'package:vrchat_dart_generated/src/model/favorite.dart'; export 'package:vrchat_dart_generated/src/model/favorite_group.dart'; export 'package:vrchat_dart_generated/src/model/favorite_group_visibility.dart'; export 'package:vrchat_dart_generated/src/model/favorite_type.dart'; +export 'package:vrchat_dart_generated/src/model/favorited_world.dart'; export 'package:vrchat_dart_generated/src/model/file.dart'; export 'package:vrchat_dart_generated/src/model/file_data.dart'; export 'package:vrchat_dart_generated/src/model/file_status.dart'; @@ -101,6 +115,8 @@ export 'package:vrchat_dart_generated/src/model/invite_message.dart'; export 'package:vrchat_dart_generated/src/model/invite_message_type.dart'; 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/license.dart'; export 'package:vrchat_dart_generated/src/model/license_action.dart'; export 'package:vrchat_dart_generated/src/model/license_group.dart'; @@ -122,17 +138,22 @@ export 'package:vrchat_dart_generated/src/model/notification_type.dart'; export 'package:vrchat_dart_generated/src/model/order_option.dart'; export 'package:vrchat_dart_generated/src/model/paginated_group_audit_log_entry_list.dart'; export 'package:vrchat_dart_generated/src/model/past_display_name.dart'; +export 'package:vrchat_dart_generated/src/model/performance_ratings.dart'; export 'package:vrchat_dart_generated/src/model/permission.dart'; +export 'package:vrchat_dart_generated/src/model/platform_build_info.dart'; export 'package:vrchat_dart_generated/src/model/player_moderation.dart'; export 'package:vrchat_dart_generated/src/model/player_moderation_type.dart'; export 'package:vrchat_dart_generated/src/model/region.dart'; export 'package:vrchat_dart_generated/src/model/release_status.dart'; +export 'package:vrchat_dart_generated/src/model/report_category.dart'; +export 'package:vrchat_dart_generated/src/model/report_reason.dart'; export 'package:vrchat_dart_generated/src/model/represented_group.dart'; 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/response.dart'; export 'package:vrchat_dart_generated/src/model/sent_notification.dart'; export 'package:vrchat_dart_generated/src/model/sort_option.dart'; +export 'package:vrchat_dart_generated/src/model/submission.dart'; export 'package:vrchat_dart_generated/src/model/subscription.dart'; export 'package:vrchat_dart_generated/src/model/subscription_period.dart'; export 'package:vrchat_dart_generated/src/model/success.dart'; diff --git a/vrchat_dart_generated/pubspec.yaml b/vrchat_dart_generated/pubspec.yaml index b3bf13c..e9f4286 100644 --- a/vrchat_dart_generated/pubspec.yaml +++ b/vrchat_dart_generated/pubspec.yaml @@ -1,5 +1,5 @@ name: vrchat_dart_generated -version: 1.18.4 +version: 1.18.5 description: The generated API used by vrchat_dart. Generated from https://github.com/vrchatapi/specification. homepage: https://github.com/vrchatapi/vrchatapi-dart @@ -13,3 +13,4 @@ dependencies: dev_dependencies: build_runner: ^2.4.10 json_serializable: ^6.1.5 + lints: ^5.0.0