Skip to content

Commit 10a9192

Browse files
committed
Regenerate with legacy spec
1 parent 0350f96 commit 10a9192

15 files changed

Lines changed: 30 additions & 1352 deletions

vrchat_dart/tool/patch_input.dart

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,20 @@ Future<Map<String, dynamic>> getSpec({required bool local}) async {
2727
if (local) {
2828
print('Using local spec file');
2929
final file = File(
30-
path.join('..', '..', 'vrchatapi-specification', 'dist', 'openapi.yaml'),
30+
path.join(
31+
'..',
32+
'..',
33+
'vrchatapi-specification',
34+
'dist',
35+
'openapi-legacy.yaml',
36+
),
3137
);
3238
final data = await file.readAsString();
3339
yaml = loadYaml(data);
3440
} else {
3541
print('Using remote spec file');
3642
final response = await dio.get(
37-
'https://github.com/vrchatapi/specification/releases/latest/download/openapi.json',
43+
'https://github.com/vrchatapi/specification/releases/latest/download/openapi-legacy.json',
3844
);
3945
final data = response.data;
4046
if (data == null) throw 'Failed to fetch spec';

vrchat_dart_generated/.openapi-generator/FILES

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,12 @@ doc/PropUnityPackage.md
225225
doc/PropsApi.md
226226
doc/PurchaseProductListingRequest.md
227227
doc/Region.md
228-
doc/RegisterUserAccount200Response.md
229228
doc/RegisterUserAccountRequest.md
230229
doc/ReleaseStatus.md
231230
doc/ReportCategory.md
232231
doc/ReportReason.md
233232
doc/RepresentedGroup.md
234233
doc/RequestInviteRequest.md
235-
doc/RequiresTwoFactorAuth.md
236234
doc/RespondGroupJoinRequest.md
237235
doc/RespondNotificationV2Request.md
238236
doc/Response.md
@@ -262,7 +260,6 @@ doc/TransactionStatus.md
262260
doc/TransactionSteamInfo.md
263261
doc/TransactionSteamWalletInfo.md
264262
doc/TwoFactorAuthCode.md
265-
doc/TwoFactorAuthType.md
266263
doc/TwoFactorEmailCode.md
267264
doc/TwoFactorRecoveryCodes.md
268265
doc/TwoFactorRecoveryCodesOtpInner.md
@@ -533,14 +530,12 @@ lib/src/model/prop.dart
533530
lib/src/model/prop_unity_package.dart
534531
lib/src/model/purchase_product_listing_request.dart
535532
lib/src/model/region.dart
536-
lib/src/model/register_user_account200_response.dart
537533
lib/src/model/register_user_account_request.dart
538534
lib/src/model/release_status.dart
539535
lib/src/model/report_category.dart
540536
lib/src/model/report_reason.dart
541537
lib/src/model/represented_group.dart
542538
lib/src/model/request_invite_request.dart
543-
lib/src/model/requires_two_factor_auth.dart
544539
lib/src/model/respond_group_join_request.dart
545540
lib/src/model/respond_notification_v2_request.dart
546541
lib/src/model/response.dart
@@ -570,7 +565,6 @@ lib/src/model/transaction_status.dart
570565
lib/src/model/transaction_steam_info.dart
571566
lib/src/model/transaction_steam_wallet_info.dart
572567
lib/src/model/two_factor_auth_code.dart
573-
lib/src/model/two_factor_auth_type.dart
574568
lib/src/model/two_factor_email_code.dart
575569
lib/src/model/two_factor_recovery_codes.dart
576570
lib/src/model/two_factor_recovery_codes_otp_inner.dart
@@ -831,14 +825,12 @@ test/prop_unity_package_test.dart
831825
test/props_api_test.dart
832826
test/purchase_product_listing_request_test.dart
833827
test/region_test.dart
834-
test/register_user_account200_response_test.dart
835828
test/register_user_account_request_test.dart
836829
test/release_status_test.dart
837830
test/report_category_test.dart
838831
test/report_reason_test.dart
839832
test/represented_group_test.dart
840833
test/request_invite_request_test.dart
841-
test/requires_two_factor_auth_test.dart
842834
test/respond_group_join_request_test.dart
843835
test/respond_notification_v2_request_test.dart
844836
test/response_test.dart
@@ -868,7 +860,6 @@ test/transaction_steam_info_test.dart
868860
test/transaction_steam_wallet_info_test.dart
869861
test/transaction_test.dart
870862
test/two_factor_auth_code_test.dart
871-
test/two_factor_auth_type_test.dart
872863
test/two_factor_email_code_test.dart
873864
test/two_factor_recovery_codes_otp_inner_test.dart
874865
test/two_factor_recovery_codes_test.dart

vrchat_dart_generated/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -608,14 +608,12 @@ Class | Method | HTTP request | Description
608608
- [PropUnityPackage](doc/PropUnityPackage.md)
609609
- [PurchaseProductListingRequest](doc/PurchaseProductListingRequest.md)
610610
- [Region](doc/Region.md)
611-
- [RegisterUserAccount200Response](doc/RegisterUserAccount200Response.md)
612611
- [RegisterUserAccountRequest](doc/RegisterUserAccountRequest.md)
613612
- [ReleaseStatus](doc/ReleaseStatus.md)
614613
- [ReportCategory](doc/ReportCategory.md)
615614
- [ReportReason](doc/ReportReason.md)
616615
- [RepresentedGroup](doc/RepresentedGroup.md)
617616
- [RequestInviteRequest](doc/RequestInviteRequest.md)
618-
- [RequiresTwoFactorAuth](doc/RequiresTwoFactorAuth.md)
619617
- [RespondGroupJoinRequest](doc/RespondGroupJoinRequest.md)
620618
- [RespondNotificationV2Request](doc/RespondNotificationV2Request.md)
621619
- [Response](doc/Response.md)
@@ -645,7 +643,6 @@ Class | Method | HTTP request | Description
645643
- [TransactionSteamInfo](doc/TransactionSteamInfo.md)
646644
- [TransactionSteamWalletInfo](doc/TransactionSteamWalletInfo.md)
647645
- [TwoFactorAuthCode](doc/TwoFactorAuthCode.md)
648-
- [TwoFactorAuthType](doc/TwoFactorAuthType.md)
649646
- [TwoFactorEmailCode](doc/TwoFactorEmailCode.md)
650647
- [TwoFactorRecoveryCodes](doc/TwoFactorRecoveryCodes.md)
651648
- [TwoFactorRecoveryCodesOtpInner](doc/TwoFactorRecoveryCodesOtpInner.md)

vrchat_dart_generated/doc/AuthenticationApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ This endpoint does not need any parameter.
447447
[[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)
448448

449449
# **getCurrentUser**
450-
> RegisterUserAccount200Response getCurrentUser()
450+
> CurrentUser getCurrentUser()
451451
452452
Login and/or Get Current User Info
453453

@@ -483,7 +483,7 @@ This endpoint does not need any parameter.
483483

484484
### Return type
485485

486-
[**RegisterUserAccount200Response**](RegisterUserAccount200Response.md)
486+
[**CurrentUser**](CurrentUser.md)
487487

488488
### Authorization
489489

@@ -681,7 +681,7 @@ This endpoint does not need any parameter.
681681
[[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)
682682

683683
# **registerUserAccount**
684-
> RegisterUserAccount200Response registerUserAccount(registerUserAccountRequest)
684+
> CurrentUser registerUserAccount(registerUserAccountRequest)
685685
686686
Register User Account
687687

@@ -710,7 +710,7 @@ Name | Type | Description | Notes
710710

711711
### Return type
712712

713-
[**RegisterUserAccount200Response**](RegisterUserAccount200Response.md)
713+
[**CurrentUser**](CurrentUser.md)
714714

715715
### Authorization
716716

vrchat_dart_generated/doc/RegisterUserAccount200Response.md

Lines changed: 0 additions & 91 deletions
This file was deleted.

vrchat_dart_generated/doc/RequiresTwoFactorAuth.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

vrchat_dart_generated/doc/TwoFactorAuthType.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

vrchat_dart_generated/lib/src/api/authentication_api.dart

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import 'package:vrchat_dart_generated/src/model/moderation_report.dart';
1919
import 'package:vrchat_dart_generated/src/model/ok_status2.dart';
2020
import 'package:vrchat_dart_generated/src/model/paginated_moderation_report_list.dart';
2121
import 'package:vrchat_dart_generated/src/model/pending2_fa_result.dart';
22-
import 'package:vrchat_dart_generated/src/model/register_user_account200_response.dart';
2322
import 'package:vrchat_dart_generated/src/model/register_user_account_request.dart';
2423
import 'package:vrchat_dart_generated/src/model/submit_moderation_report_request.dart';
2524
import 'package:vrchat_dart_generated/src/model/success.dart';
@@ -785,9 +784,9 @@ class AuthenticationApi {
785784
/// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress
786785
/// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress
787786
///
788-
/// Returns a [Future] containing a [Response] with a [RegisterUserAccount200Response] as data
787+
/// Returns a [Future] containing a [Response] with a [CurrentUser] as data
789788
/// Throws [DioException] if API call or serialization fails
790-
Future<Response<RegisterUserAccount200Response>> getCurrentUser({
789+
Future<Response<CurrentUser>> getCurrentUser({
791790
CancelToken? cancelToken,
792791
Map<String, dynamic>? headers,
793792
Map<String, dynamic>? extra,
@@ -828,16 +827,17 @@ class AuthenticationApi {
828827
onReceiveProgress: onReceiveProgress,
829828
);
830829

831-
RegisterUserAccount200Response? _responseData;
830+
CurrentUser? _responseData;
832831

833832
try {
834833
final rawData = _response.data;
835834
_responseData = rawData == null
836835
? null
837-
: deserialize<
838-
RegisterUserAccount200Response,
839-
RegisterUserAccount200Response
840-
>(rawData, 'RegisterUserAccount200Response', growable: true);
836+
: deserialize<CurrentUser, CurrentUser>(
837+
rawData,
838+
'CurrentUser',
839+
growable: true,
840+
);
841841
} catch (error, stackTrace) {
842842
throw DioException(
843843
requestOptions: _response.requestOptions,
@@ -848,7 +848,7 @@ class AuthenticationApi {
848848
);
849849
}
850850

851-
return Response<RegisterUserAccount200Response>(
851+
return Response<CurrentUser>(
852852
data: _responseData,
853853
headers: _response.headers,
854854
isRedirect: _response.isRedirect,
@@ -1206,10 +1206,10 @@ class AuthenticationApi {
12061206
/// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress
12071207
/// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress
12081208
///
1209-
/// Returns a [Future] containing a [Response] with a [RegisterUserAccount200Response] as data
1209+
/// Returns a [Future] containing a [Response] with a [CurrentUser] as data
12101210
/// Throws [DioException] if API call or serialization fails
12111211
@Deprecated('This operation has been deprecated')
1212-
Future<Response<RegisterUserAccount200Response>> registerUserAccount({
1212+
Future<Response<CurrentUser>> registerUserAccount({
12131213
required RegisterUserAccountRequest registerUserAccountRequest,
12141214
CancelToken? cancelToken,
12151215
Map<String, dynamic>? headers,
@@ -1249,16 +1249,17 @@ class AuthenticationApi {
12491249
onReceiveProgress: onReceiveProgress,
12501250
);
12511251

1252-
RegisterUserAccount200Response? _responseData;
1252+
CurrentUser? _responseData;
12531253

12541254
try {
12551255
final rawData = _response.data;
12561256
_responseData = rawData == null
12571257
? null
1258-
: deserialize<
1259-
RegisterUserAccount200Response,
1260-
RegisterUserAccount200Response
1261-
>(rawData, 'RegisterUserAccount200Response', growable: true);
1258+
: deserialize<CurrentUser, CurrentUser>(
1259+
rawData,
1260+
'CurrentUser',
1261+
growable: true,
1262+
);
12621263
} catch (error, stackTrace) {
12631264
throw DioException(
12641265
requestOptions: _response.requestOptions,
@@ -1269,7 +1270,7 @@ class AuthenticationApi {
12691270
);
12701271
}
12711272

1272-
return Response<RegisterUserAccount200Response>(
1273+
return Response<CurrentUser>(
12731274
data: _responseData,
12741275
headers: _response.headers,
12751276
isRedirect: _response.isRedirect,

0 commit comments

Comments
 (0)