Skip to content

Commit

Permalink
Upgrade C# SDK to spec 1.16.6
Browse files Browse the repository at this point in the history
  • Loading branch information
VRCCat committed Feb 24, 2024
1 parent 4de4b21 commit e7debba
Show file tree
Hide file tree
Showing 164 changed files with 901 additions and 175 deletions.
2 changes: 2 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ docs/PlayerModerationType.md
docs/PlayermoderationApi.md
docs/Region.md
docs/ReleaseStatus.md
docs/RepresentedGroup.md
docs/RequestInviteRequest.md
docs/RespondGroupJoinRequest.md
docs/Response.md
Expand Down Expand Up @@ -260,6 +261,7 @@ src/VRChat.API/Model/PlayerModeration.cs
src/VRChat.API/Model/PlayerModerationType.cs
src/VRChat.API/Model/Region.cs
src/VRChat.API/Model/ReleaseStatus.cs
src/VRChat.API/Model/RepresentedGroup.cs
src/VRChat.API/Model/RequestInviteRequest.cs
src/VRChat.API/Model/RespondGroupJoinRequest.cs
src/VRChat.API/Model/Response.cs
Expand Down
1 change: 1 addition & 0 deletions docs/CreateAvatarRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Name | Type | Description | Notes
**ReleaseStatus** | **ReleaseStatus** | | [optional]
**_Version** | **decimal** | | [optional] [default to 1M]
**UnityPackageUrl** | **string** | | [optional]
**UnityVersion** | **string** | | [optional] [default to "5.3.4p1"]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

2 changes: 1 addition & 1 deletion docs/GroupAuditLogEntry.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Name | Type | Description | Notes
**CreatedAt** | **DateTime** | | [optional]
**GroupId** | **string** | | [optional]
**ActorId** | **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]
**ActorDisplayname** | **string** | | [optional]
**ActorDisplayName** | **string** | | [optional]
**TargetId** | **string** | Typically GroupID or GroupRoleID, but could be other types of IDs. | [optional]
**EventType** | **string** | 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`. | [optional] [default to "group.update"]
**Description** | **string** | A human-readable description of the event. | [optional]
Expand Down
23 changes: 23 additions & 0 deletions docs/RepresentedGroup.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# VRChat.API.Model.RepresentedGroup

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | | [optional]
**ShortCode** | **string** | | [optional]
**Discriminator** | **string** | | [optional]
**Description** | **string** | | [optional]
**IconId** | **string** | | [optional]
**IconUrl** | **string** | | [optional]
**BannerId** | **string** | | [optional]
**BannerUrl** | **string** | | [optional]
**Privacy** | **GroupPrivacy** | | [optional]
**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. | [optional]
**MemberCount** | **int** | | [optional]
**GroupId** | **string** | | [optional]
**MemberVisibility** | **GroupUserVisibility** | | [optional]
**IsRepresenting** | **bool** | | [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)

1 change: 1 addition & 0 deletions docs/UpdateAvatarRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Name | Type | Description | Notes
**ReleaseStatus** | **ReleaseStatus** | | [optional]
**_Version** | **decimal** | | [optional] [default to 1M]
**UnityPackageUrl** | **string** | | [optional]
**UnityVersion** | **string** | | [optional] [default to "5.3.4p1"]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

98 changes: 98 additions & 0 deletions docs/UsersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
| [**GetUserByName**](UsersApi.md#getuserbyname) | **GET** /users/{username}/name | Get User by Username |
| [**GetUserGroupRequests**](UsersApi.md#getusergrouprequests) | **GET** /users/{userId}/groups/requested | Get User Group Requests |
| [**GetUserGroups**](UsersApi.md#getusergroups) | **GET** /users/{userId}/groups | Get User Groups |
| [**GetUserRepresentedGroup**](UsersApi.md#getuserrepresentedgroup) | **GET** /users/{userId}/groups/represented | Get user's current represented group |
| [**SearchUsers**](UsersApi.md#searchusers) | **GET** /users | Search All Users |
| [**UpdateUser**](UsersApi.md#updateuser) | **PUT** /users/{userId} | Update User Info |

Expand Down Expand Up @@ -399,6 +400,103 @@ catch (ApiException e)

[[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)

<a name="getuserrepresentedgroup"></a>
# **GetUserRepresentedGroup**
> RepresentedGroup GetUserRepresentedGroup (string userId)
Get user's current represented group

Returns the current group that the user is currently representing

### Example
```csharp
using System.Collections.Generic;
using System.Diagnostics;
using VRChat.API.Api;
using VRChat.API.Client;
using VRChat.API.Model;

namespace Example
{
public class GetUserRepresentedGroupExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.vrchat.cloud/api/1";
// Configure API key authorization: authCookie
config.AddApiKey("auth", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("auth", "Bearer");
var apiInstance = new UsersApi(config);
var userId = "userId_example"; // string | Must be a valid user ID.
try
{
// Get user's current represented group
RepresentedGroup result = apiInstance.GetUserRepresentedGroup(userId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling UsersApi.GetUserRepresentedGroup: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
```

#### Using the GetUserRepresentedGroupWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.

```csharp
try
{
// Get user's current represented group
ApiResponse<RepresentedGroup> response = apiInstance.GetUserRepresentedGroupWithHttpInfo(userId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling UsersApi.GetUserRepresentedGroupWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
```

### Parameters

| Name | Type | Description | Notes |
|------|------|-------------|-------|
| **userId** | **string** | Must be a valid user ID. | |

### Return type

[**RepresentedGroup**](RepresentedGroup.md)

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json


### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
| **401** | Error response due to missing auth cookie. | - |

[[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)

<a name="searchusers"></a>
# **SearchUsers**
> List&lt;LimitedUser&gt; SearchUsers (string search = null, string developerType = null, int? n = null, int? offset = null)
Expand Down
2 changes: 1 addition & 1 deletion src/VRChat.API/Api/AuthenticationApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* VRChat API Documentation
*
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/VRChat.API/Api/AvatarsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* VRChat API Documentation
*
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/VRChat.API/Api/EconomyApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* VRChat API Documentation
*
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/VRChat.API/Api/FavoritesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* VRChat API Documentation
*
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/VRChat.API/Api/FilesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* VRChat API Documentation
*
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/VRChat.API/Api/FriendsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* VRChat API Documentation
*
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/VRChat.API/Api/GroupsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* VRChat API Documentation
*
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/VRChat.API/Api/InstancesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* VRChat API Documentation
*
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/VRChat.API/Api/InviteApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* VRChat API Documentation
*
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/VRChat.API/Api/NotificationsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* VRChat API Documentation
*
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/VRChat.API/Api/PermissionsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* VRChat API Documentation
*
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/VRChat.API/Api/PlayermoderationApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* VRChat API Documentation
*
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/VRChat.API/Api/SystemApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* VRChat API Documentation
*
*
* The version of the OpenAPI document: 1.16.5
* The version of the OpenAPI document: 1.16.6
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
Loading

0 comments on commit e7debba

Please sign in to comment.