Skip to content

Commit

Permalink
Regenerated from spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexios80 authored and github-actions[bot] committed Jul 22, 2024
1 parent 8feb81f commit 20dda56
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 26 deletions.
3 changes: 3 additions & 0 deletions vrchat_dart_generated/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.18.0
- Updated to match spec

## 1.17.6
- Updated to match spec

Expand Down
2 changes: 1 addition & 1 deletion vrchat_dart_generated/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ commit-access to the project. It also means we are very open and welcoming of ne

This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.17.6
- API version: 1.18.0
- Generator version: 7.7.0
- Build package: org.openapitools.codegen.languages.DartDioClientCodegen
For more information, please visit [https://github.com/VRChatAPI](https://github.com/VRChatAPI)
Expand Down
2 changes: 1 addition & 1 deletion vrchat_dart_generated/doc/FileData.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**category** | **String** | | [default to 'queued']
**fileName** | **String** | |
**md5** | **String** | |
**md5** | **String** | | [optional]
**sizeInBytes** | **int** | |
**status** | [**FileStatus**](FileStatus.md) | |
**uploadId** | **String** | | [default to '']
Expand Down
6 changes: 3 additions & 3 deletions vrchat_dart_generated/doc/FilesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,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)

# **deleteFile**
> Success deleteFile(fileId)
> File deleteFile(fileId)
Delete File

Expand Down Expand Up @@ -151,7 +151,7 @@ Name | Type | Description | Notes

### Return type

[**Success**](Success.md)
[**File**](File.md)

### Authorization

Expand Down Expand Up @@ -257,7 +257,7 @@ void (empty response body)
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: 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)

Expand Down
1 change: 1 addition & 0 deletions vrchat_dart_generated/doc/User.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Name | Type | Description | Notes
**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`. |
**location** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | [optional]
**note** | **String** | | [optional]
**platform** | **String** | | [optional]
**profilePicOverride** | **String** | |
**profilePicOverrideThumbnail** | **String** | |
**pronouns** | **String** | |
Expand Down
11 changes: 5 additions & 6 deletions vrchat_dart_generated/lib/src/api/files_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import 'package:vrchat_dart_generated/src/model/file.dart';
import 'package:vrchat_dart_generated/src/model/file_upload_url.dart';
import 'package:vrchat_dart_generated/src/model/file_version_upload_status.dart';
import 'package:vrchat_dart_generated/src/model/finish_file_data_upload_request.dart';
import 'package:vrchat_dart_generated/src/model/success.dart';

class FilesApi {
final Dio _dio;
Expand Down Expand Up @@ -233,9 +232,9 @@ class FilesApi {
/// * [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
/// Returns a [Future] containing a [Response] with a [File] as data
/// Throws [DioException] if API call or serialization fails
Future<Response<Success>> deleteFile({
Future<Response<File>> deleteFile({
required String fileId,
CancelToken? cancelToken,
Map<String, dynamic>? headers,
Expand Down Expand Up @@ -273,13 +272,13 @@ class FilesApi {
onReceiveProgress: onReceiveProgress,
);

Success? _responseData;
File? _responseData;

try {
final rawData = _response.data;
_responseData = rawData == null
? null
: deserialize<Success, Success>(rawData, 'Success', growable: true);
: deserialize<File, File>(rawData, 'File', growable: true);
} catch (error, stackTrace) {
throw DioException(
requestOptions: _response.requestOptions,
Expand All @@ -290,7 +289,7 @@ class FilesApi {
);
}

return Response<Success>(
return Response<File>(
data: _responseData,
headers: _response.headers,
isRedirect: _response.isRedirect,
Expand Down
6 changes: 3 additions & 3 deletions vrchat_dart_generated/lib/src/model/file_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class FileData {
FileData({
this.category = FileDataCategoryEnum.queued,
required this.fileName,
required this.md5,
this.md5,
required this.sizeInBytes,
required this.status,
this.uploadId = '',
Expand All @@ -32,8 +32,8 @@ class FileData {
@JsonKey(name: r'fileName', required: true, includeIfNull: false)
final String fileName;

@JsonKey(name: r'md5', required: true, includeIfNull: false)
final String md5;
@JsonKey(name: r'md5', required: false, includeIfNull: false)
final String? md5;

// minimum: 0
@JsonKey(name: r'sizeInBytes', required: true, includeIfNull: false)
Expand Down
31 changes: 20 additions & 11 deletions vrchat_dart_generated/lib/src/model/file_data.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions vrchat_dart_generated/lib/src/model/user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class User {
required this.lastPlatform,
this.location,
this.note,
this.platform,
required this.profilePicOverride,
required this.profilePicOverrideThumbnail,
required this.pronouns,
Expand Down Expand Up @@ -129,6 +130,9 @@ class User {
@JsonKey(name: r'note', required: false, includeIfNull: false)
final String? note;

@JsonKey(name: r'platform', required: false, includeIfNull: false)
final String? platform;

@JsonKey(name: r'profilePicOverride', required: true, includeIfNull: false)
final String profilePicOverride;

Expand Down Expand Up @@ -200,6 +204,7 @@ class User {
other.lastPlatform == lastPlatform &&
other.location == location &&
other.note == note &&
other.platform == platform &&
other.profilePicOverride == profilePicOverride &&
other.profilePicOverrideThumbnail == profilePicOverrideThumbnail &&
other.pronouns == pronouns &&
Expand Down Expand Up @@ -237,6 +242,7 @@ class User {
lastPlatform.hashCode +
location.hashCode +
note.hashCode +
platform.hashCode +
profilePicOverride.hashCode +
profilePicOverrideThumbnail.hashCode +
pronouns.hashCode +
Expand Down
2 changes: 2 additions & 0 deletions vrchat_dart_generated/lib/src/model/user.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vrchat_dart_generated/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: vrchat_dart_generated
version: 1.17.6
version: 1.18.0
description: The generated API used by vrchat_dart. Generated from https://github.com/vrchatapi/specification.
homepage: https://github.com/vrchatapi/vrchatapi-dart

Expand Down

0 comments on commit 20dda56

Please sign in to comment.