Skip to content

Commit

Permalink
Regenerate with vrchatapi/specification#408
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexios80 committed Nov 11, 2024
1 parent 85bc0fb commit cbb8f83
Show file tree
Hide file tree
Showing 6 changed files with 492 additions and 9 deletions.
3 changes: 3 additions & 0 deletions vrchat_dart_generated/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ Class | Method | HTTP request | Description
[*FilesApi*](doc/FilesApi.md) | [**getFileDataUploadStatus**](doc/FilesApi.md#getfiledatauploadstatus) | **GET** /file/{fileId}/{versionId}/{fileType}/status | Check FileData Upload Status
[*FilesApi*](doc/FilesApi.md) | [**getFiles**](doc/FilesApi.md#getfiles) | **GET** /files | List Files
[*FilesApi*](doc/FilesApi.md) | [**startFileDataUpload**](doc/FilesApi.md#startfiledataupload) | **PUT** /file/{fileId}/{versionId}/{fileType}/start | Start FileData Upload
[*FilesApi*](doc/FilesApi.md) | [**uploadGalleryImage**](doc/FilesApi.md#uploadgalleryimage) | **POST** /gallery | Upload gallery image
[*FilesApi*](doc/FilesApi.md) | [**uploadIcon**](doc/FilesApi.md#uploadicon) | **POST** /icon | Upload icon
[*FilesApi*](doc/FilesApi.md) | [**uploadImage**](doc/FilesApi.md#uploadimage) | **POST** /file/image | Upload gallery image, icon, emoji or sticker
[*FriendsApi*](doc/FriendsApi.md) | [**deleteFriendRequest**](doc/FriendsApi.md#deletefriendrequest) | **DELETE** /user/{userId}/friendRequest | Delete Friend Request
[*FriendsApi*](doc/FriendsApi.md) | [**friend**](doc/FriendsApi.md#friend) | **POST** /user/{userId}/friendRequest | Send Friend Request
[*FriendsApi*](doc/FriendsApi.md) | [**getFriendStatus**](doc/FriendsApi.md#getfriendstatus) | **GET** /user/{userId}/friendStatus | Check Friend Status
Expand Down
2 changes: 2 additions & 0 deletions vrchat_dart_generated/doc/File.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import 'package:vrchat_dart_generated/api.dart';
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**animationStyle** | **String** | | [optional]
**maskTag** | **String** | | [optional]
**extension_** | **String** | |
**id** | **String** | |
**mimeType** | [**MIMEType**](MIMEType.md) | |
Expand Down
150 changes: 150 additions & 0 deletions vrchat_dart_generated/doc/FilesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ Method | HTTP request | Description
[**getFileDataUploadStatus**](FilesApi.md#getfiledatauploadstatus) | **GET** /file/{fileId}/{versionId}/{fileType}/status | Check FileData Upload Status
[**getFiles**](FilesApi.md#getfiles) | **GET** /files | List Files
[**startFileDataUpload**](FilesApi.md#startfiledataupload) | **PUT** /file/{fileId}/{versionId}/{fileType}/start | Start FileData Upload
[**uploadGalleryImage**](FilesApi.md#uploadgalleryimage) | **POST** /gallery | Upload gallery image
[**uploadIcon**](FilesApi.md#uploadicon) | **POST** /icon | Upload icon
[**uploadImage**](FilesApi.md#uploadimage) | **POST** /file/image | Upload gallery image, icon, emoji or sticker


# **createFile**
Expand Down Expand Up @@ -518,3 +521,150 @@ 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)

# **uploadGalleryImage**
> File uploadGalleryImage(file)
Upload gallery image

Upload a gallery image

### Example
```dart
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getFilesApi();
final MultipartFile file = BINARY_DATA_HERE; // MultipartFile | The binary blob of the png file.
try {
final response = api.uploadGalleryImage(file);
print(response);
} catch on DioException (e) {
print('Exception when calling FilesApi->uploadGalleryImage: $e\n');
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**file** | **MultipartFile**| The binary blob of the png file. |

### Return type

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

### Authorization

[authCookie](../README.md#authCookie)

### HTTP request headers

- **Content-Type**: multipart/form-data
- **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)

# **uploadIcon**
> File uploadIcon(file)
Upload icon

Upload an icon

### Example
```dart
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getFilesApi();
final MultipartFile file = BINARY_DATA_HERE; // MultipartFile | The binary blob of the png file.
try {
final response = api.uploadIcon(file);
print(response);
} catch on DioException (e) {
print('Exception when calling FilesApi->uploadIcon: $e\n');
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**file** | **MultipartFile**| The binary blob of the png file. |

### Return type

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

### Authorization

[authCookie](../README.md#authCookie)

### HTTP request headers

- **Content-Type**: multipart/form-data
- **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)

# **uploadImage**
> File uploadImage(file, tag, animationStyle, maskTag)
Upload gallery image, icon, emoji or sticker

Upload an image, which can be an icon, gallery image, sticker or emoji

### Example
```dart
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getFilesApi();
final MultipartFile file = BINARY_DATA_HERE; // MultipartFile | The binary blob of the png file.
final String tag = tag_example; // String | Needs to be either icon, gallery, sticker or emoji
final String animationStyle = animationStyle_example; // String | Animation style for sticker, required for sticker.
final String maskTag = maskTag_example; // String | Mask of the sticker, optional for sticker.
try {
final response = api.uploadImage(file, tag, animationStyle, maskTag);
print(response);
} catch on DioException (e) {
print('Exception when calling FilesApi->uploadImage: $e\n');
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**file** | **MultipartFile**| The binary blob of the png file. |
**tag** | **String**| Needs to be either icon, gallery, sticker or emoji |
**animationStyle** | **String**| Animation style for sticker, required for sticker. | [optional]
**maskTag** | **String**| Mask of the sticker, optional for sticker. | [optional]

### Return type

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

### Authorization

[authCookie](../README.md#authCookie)

### HTTP request headers

- **Content-Type**: multipart/form-data
- **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)

Loading

0 comments on commit cbb8f83

Please sign in to comment.