Skip to content

Commit 904b64e

Browse files
committed
Upgrade Java SDK to spec 1.7.3
1 parent 8dc15cd commit 904b64e

126 files changed

Lines changed: 1193 additions & 251 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.openapi-generator/FILES‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ docs/InstancesApi.md
4646
docs/InviteApi.md
4747
docs/InviteMessage.md
4848
docs/InviteMessageType.md
49+
docs/InviteMyselfToRequest.md
4950
docs/InviteRequest.md
5051
docs/InviteResponse.md
5152
docs/License.md
@@ -71,6 +72,7 @@ docs/Region.md
7172
docs/ReleaseStatus.md
7273
docs/RequestInviteRequest.md
7374
docs/Response.md
75+
docs/SentNotification.md
7476
docs/Subscription.md
7577
docs/SubscriptionPeriod.md
7678
docs/Success.md
@@ -176,6 +178,7 @@ src/main/java/io/github/vrchatapi/model/InstancePlatforms.java
176178
src/main/java/io/github/vrchatapi/model/InstanceType.java
177179
src/main/java/io/github/vrchatapi/model/InviteMessage.java
178180
src/main/java/io/github/vrchatapi/model/InviteMessageType.java
181+
src/main/java/io/github/vrchatapi/model/InviteMyselfToRequest.java
179182
src/main/java/io/github/vrchatapi/model/InviteRequest.java
180183
src/main/java/io/github/vrchatapi/model/InviteResponse.java
181184
src/main/java/io/github/vrchatapi/model/License.java
@@ -198,6 +201,7 @@ src/main/java/io/github/vrchatapi/model/Region.java
198201
src/main/java/io/github/vrchatapi/model/ReleaseStatus.java
199202
src/main/java/io/github/vrchatapi/model/RequestInviteRequest.java
200203
src/main/java/io/github/vrchatapi/model/Response.java
204+
src/main/java/io/github/vrchatapi/model/SentNotification.java
201205
src/main/java/io/github/vrchatapi/model/Subscription.java
202206
src/main/java/io/github/vrchatapi/model/SubscriptionPeriod.java
203207
src/main/java/io/github/vrchatapi/model/Success.java

‎build.gradle‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'eclipse'
33
apply plugin: 'java'
44

55
group = 'io.github.vrchatapi'
6-
version = '1.7.2'
6+
version = '1.7.3'
77

88
buildscript {
99
repositories {

‎build.sbt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "io.github.vrchatapi",
44
name := "vrchatapi",
5-
version := "1.7.2",
5+
version := "1.7.3",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

‎docs/APIConfig.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ Name | Type | Description | Notes
8585
**viveWindowsUrl** | **String** | Download link for game on the Steam website. |
8686
**whiteListedAssetUrls** | **List<String>** | List of allowed URLs that are allowed to host avatar assets |
8787
**worldUpdatePeriod** | **Integer** | Unknown |
88-
**youtubedlHash** | **String** | Currently used youtube-dl.exe hash in SHA-256-delimited format |
89-
**youtubedlVersion** | **String** | Currently used youtube-dl.exe version |
88+
**playerUrlResolverHash** | **String** | Currently used youtube-dl.exe hash in SHA-256-delimited format |
89+
**playerUrlResolverVersion** | **String** | Currently used youtube-dl.exe version |
9090

9191

9292

‎docs/InstancesApi.md‎

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
55
Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**getInstance**](InstancesApi.md#getInstance) | **GET** /instances/{worldId}:{instanceId} | Get Instance
8+
[**getInstanceByShortName**](InstancesApi.md#getInstanceByShortName) | **GET** /instances/s/{shortName} | Get Instance By Short Name
89
[**getShortName**](InstancesApi.md#getShortName) | **GET** /instances/{worldId}:{instanceId}/shortName | Get Instance Short Name
910
[**sendSelfInvite**](InstancesApi.md#sendSelfInvite) | **POST** /instances/{worldId}:{instanceId}/invite | Send Self Invite
1011

@@ -87,6 +88,83 @@ Name | Type | Description | Notes
8788
**200** | Returns a single Instance object. | - |
8889
**401** | Error response due to missing apiKey or auth cookie. | - |
8990

91+
<a name="getInstanceByShortName"></a>
92+
# **getInstanceByShortName**
93+
> Instance getInstanceByShortName(shortName)
94+
95+
Get Instance By Short Name
96+
97+
Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances.
98+
99+
### Example
100+
```java
101+
// Import classes:
102+
import io.github.vrchatapi.ApiClient;
103+
import io.github.vrchatapi.ApiException;
104+
import io.github.vrchatapi.Configuration;
105+
import io.github.vrchatapi.auth.*;
106+
import io.github.vrchatapi.models.*;
107+
import io.github.vrchatapi.api.InstancesApi;
108+
109+
public class Example {
110+
public static void main(String[] args) {
111+
ApiClient defaultClient = Configuration.getDefaultApiClient();
112+
defaultClient.setBasePath("https://api.vrchat.cloud/api/1");
113+
114+
// Configure API key authorization: apiKeyCookie
115+
ApiKeyAuth apiKeyCookie = (ApiKeyAuth) defaultClient.getAuthentication("apiKeyCookie");
116+
apiKeyCookie.setApiKey("YOUR API KEY");
117+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
118+
//apiKeyCookie.setApiKeyPrefix("Token");
119+
120+
// Configure API key authorization: authCookie
121+
ApiKeyAuth authCookie = (ApiKeyAuth) defaultClient.getAuthentication("authCookie");
122+
authCookie.setApiKey("YOUR API KEY");
123+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
124+
//authCookie.setApiKeyPrefix("Token");
125+
126+
InstancesApi apiInstance = new InstancesApi(defaultClient);
127+
String shortName = "shortName_example"; // String |
128+
try {
129+
Instance result = apiInstance.getInstanceByShortName(shortName);
130+
System.out.println(result);
131+
} catch (ApiException e) {
132+
System.err.println("Exception when calling InstancesApi#getInstanceByShortName");
133+
System.err.println("Status code: " + e.getCode());
134+
System.err.println("Reason: " + e.getResponseBody());
135+
System.err.println("Response headers: " + e.getResponseHeaders());
136+
e.printStackTrace();
137+
}
138+
}
139+
}
140+
```
141+
142+
### Parameters
143+
144+
Name | Type | Description | Notes
145+
------------- | ------------- | ------------- | -------------
146+
**shortName** | **String**| |
147+
148+
### Return type
149+
150+
[**Instance**](Instance.md)
151+
152+
### Authorization
153+
154+
[apiKeyCookie](../README.md#apiKeyCookie), [authCookie](../README.md#authCookie)
155+
156+
### HTTP request headers
157+
158+
- **Content-Type**: Not defined
159+
- **Accept**: application/json
160+
161+
### HTTP response details
162+
| Status code | Description | Response headers |
163+
|-------------|-------------|------------------|
164+
**200** | Returns a single Instance object. | - |
165+
**401** | Error response due to missing apiKey or auth cookie. | - |
166+
**404** | Error response due to non existant instance | - |
167+
90168
<a name="getShortName"></a>
91169
# **getShortName**
92170
> String getShortName(worldId, instanceId)

‎docs/InviteApi.md‎

Lines changed: 86 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**getInviteMessage**](InviteApi.md#getInviteMessage) | **GET** /message/{userId}/{messageType}/{slot} | Get Invite Message
88
[**getInviteMessages**](InviteApi.md#getInviteMessages) | **GET** /message/{userId}/{messageType} | List Invite Messages
9+
[**inviteMyselfTo**](InviteApi.md#inviteMyselfTo) | **POST** /invite/myself/to/{worldId}:{instanceId} | Invite Myself To Instance
910
[**inviteUser**](InviteApi.md#inviteUser) | **POST** /invite/{userId} | Invite User
1011
[**requestInvite**](InviteApi.md#requestInvite) | **POST** /requestInvite/{userId} | Request Invite
1112
[**resetInviteMessage**](InviteApi.md#resetInviteMessage) | **DELETE** /message/{userId}/{messageType}/{slot} | Reset Invite Message
@@ -174,9 +175,90 @@ Name | Type | Description | Notes
174175
**400** | Error response when trying to update an Invite Message with an invalid slot number. | - |
175176
**401** | Error response due to missing authorization to perform that action. | - |
176177

178+
<a name="inviteMyselfTo"></a>
179+
# **inviteMyselfTo**
180+
> SentNotification inviteMyselfTo(worldId, instanceId, inviteMyselfToRequest)
181+
182+
Invite Myself To Instance
183+
184+
Sends self an invite to an instance
185+
186+
### Example
187+
```java
188+
// Import classes:
189+
import io.github.vrchatapi.ApiClient;
190+
import io.github.vrchatapi.ApiException;
191+
import io.github.vrchatapi.Configuration;
192+
import io.github.vrchatapi.auth.*;
193+
import io.github.vrchatapi.models.*;
194+
import io.github.vrchatapi.api.InviteApi;
195+
196+
public class Example {
197+
public static void main(String[] args) {
198+
ApiClient defaultClient = Configuration.getDefaultApiClient();
199+
defaultClient.setBasePath("https://api.vrchat.cloud/api/1");
200+
201+
// Configure API key authorization: apiKeyCookie
202+
ApiKeyAuth apiKeyCookie = (ApiKeyAuth) defaultClient.getAuthentication("apiKeyCookie");
203+
apiKeyCookie.setApiKey("YOUR API KEY");
204+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
205+
//apiKeyCookie.setApiKeyPrefix("Token");
206+
207+
// Configure API key authorization: authCookie
208+
ApiKeyAuth authCookie = (ApiKeyAuth) defaultClient.getAuthentication("authCookie");
209+
authCookie.setApiKey("YOUR API KEY");
210+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
211+
//authCookie.setApiKeyPrefix("Token");
212+
213+
InviteApi apiInstance = new InviteApi(defaultClient);
214+
String worldId = "worldId_example"; // String |
215+
String instanceId = "instanceId_example"; // String |
216+
InviteMyselfToRequest inviteMyselfToRequest = new InviteMyselfToRequest(); // InviteMyselfToRequest |
217+
try {
218+
SentNotification result = apiInstance.inviteMyselfTo(worldId, instanceId, inviteMyselfToRequest);
219+
System.out.println(result);
220+
} catch (ApiException e) {
221+
System.err.println("Exception when calling InviteApi#inviteMyselfTo");
222+
System.err.println("Status code: " + e.getCode());
223+
System.err.println("Reason: " + e.getResponseBody());
224+
System.err.println("Response headers: " + e.getResponseHeaders());
225+
e.printStackTrace();
226+
}
227+
}
228+
}
229+
```
230+
231+
### Parameters
232+
233+
Name | Type | Description | Notes
234+
------------- | ------------- | ------------- | -------------
235+
**worldId** | **String**| |
236+
**instanceId** | **String**| |
237+
**inviteMyselfToRequest** | [**InviteMyselfToRequest**](InviteMyselfToRequest.md)| | [optional]
238+
239+
### Return type
240+
241+
[**SentNotification**](SentNotification.md)
242+
243+
### Authorization
244+
245+
[apiKeyCookie](../README.md#apiKeyCookie), [authCookie](../README.md#authCookie)
246+
247+
### HTTP request headers
248+
249+
- **Content-Type**: application/json
250+
- **Accept**: application/json
251+
252+
### HTTP response details
253+
| Status code | Description | Response headers |
254+
|-------------|-------------|------------------|
255+
**200** | Returns a single SentNotifcation object. | - |
256+
**401** | Error response due to missing apiKey or auth cookie. | - |
257+
**404** | Error response due to non existant instance | - |
258+
177259
<a name="inviteUser"></a>
178260
# **inviteUser**
179-
> Notification inviteUser(userId, inviteRequest)
261+
> SentNotification inviteUser(userId, inviteRequest)
180262
181263
Invite User
182264

@@ -213,7 +295,7 @@ public class Example {
213295
String userId = "userId_example"; // String |
214296
InviteRequest inviteRequest = new InviteRequest(); // InviteRequest | Slot number of the Invite Message to use when inviting a user.
215297
try {
216-
Notification result = apiInstance.inviteUser(userId, inviteRequest);
298+
SentNotification result = apiInstance.inviteUser(userId, inviteRequest);
217299
System.out.println(result);
218300
} catch (ApiException e) {
219301
System.err.println("Exception when calling InviteApi#inviteUser");
@@ -235,7 +317,7 @@ Name | Type | Description | Notes
235317

236318
### Return type
237319

238-
[**Notification**](Notification.md)
320+
[**SentNotification**](SentNotification.md)
239321

240322
### Authorization
241323

@@ -249,7 +331,7 @@ Name | Type | Description | Notes
249331
### HTTP response details
250332
| Status code | Description | Response headers |
251333
|-------------|-------------|------------------|
252-
**200** | Returns a single Notifcation object. | - |
334+
**200** | Returns a single SentNotifcation object. | - |
253335
**403** | Error response when trying to invite someome whom you are not friends with. | - |
254336

255337
<a name="requestInvite"></a>

‎docs/InviteMyselfToRequest.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
3+
# InviteMyselfToRequest
4+
5+
6+
## Properties
7+
8+
Name | Type | Description | Notes
9+
------------ | ------------- | ------------- | -------------
10+
**shortName** | **String** | Short Name of the Instance; can be retrieved from the Get Instance Short Name endpoint. |
11+
12+
13+

‎docs/SentNotification.md‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
3+
# SentNotification
4+
5+
6+
## Properties
7+
8+
Name | Type | Description | Notes
9+
------------ | ------------- | ------------- | -------------
10+
**createdAt** | **OffsetDateTime** | |
11+
**details** | **String** | **NOTICE:** This is not a JSON object, this is a json **encoded** object, meaning you have to json-de-encode to get the NotificationDetail object depending on the NotificationType. |
12+
**id** | **String** | |
13+
**message** | **String** | |
14+
**recieverUserId** | **String** | A users unique ID, usually in the form of &#x60;usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469&#x60;. Legacy players can have old IDs in the form of &#x60;8JoV9XEdpo&#x60;. The ID can never be changed. |
15+
**senderUserId** | **String** | A users unique ID, usually in the form of &#x60;usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469&#x60;. Legacy players can have old IDs in the form of &#x60;8JoV9XEdpo&#x60;. The ID can never be changed. |
16+
**senderUsername** | **String** | |
17+
**type** | **NotificationType** | |
18+
19+
20+

‎docs/User.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,23 @@ Name | Type | Description | Notes
1616
**developerType** | **DeveloperType** | |
1717
**displayName** | **String** | A users visual display name. This is what shows up in-game, and can different from their &#x60;username&#x60;. Changing display name is restricted to a cooldown period. |
1818
**friendKey** | **String** | |
19+
**friendRequestStatus** | **String** | |
1920
**id** | **String** | A users unique ID, usually in the form of &#x60;usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469&#x60;. Legacy players can have old IDs in the form of &#x60;8JoV9XEdpo&#x60;. The ID can never be changed. |
2021
**instanceId** | **String** | InstanceID can be \&quot;offline\&quot; on User profiles if you are not friends with that user and \&quot;private\&quot; if you are friends and user is in private instance. | [optional]
2122
**isFriend** | **Boolean** | Either their &#x60;friendKey&#x60;, or empty string if you are not friends. Unknown usage. |
23+
**lastActivity** | **String** | Either a date-time or empty string. |
2224
**lastLogin** | **String** | Either a date-time or empty string. |
2325
**lastPlatform** | **String** | This can be &#x60;standalonewindows&#x60; or &#x60;android&#x60;, but can also pretty much be any random Unity verison such as &#x60;2019.2.4-801-Release&#x60; or &#x60;2019.2.2-772-Release&#x60; or even &#x60;unknownplatform&#x60;. |
2426
**location** | **String** | WorldID be \&quot;offline\&quot; on User profiles if you are not friends with that user. | [optional]
27+
**note** | **String** | | [optional]
2528
**profilePicOverride** | **String** | |
2629
**state** | **UserState** | |
2730
**status** | **UserStatus** | |
2831
**statusDescription** | **String** | |
2932
**tags** | **List&lt;String&gt;** | |
33+
**travelingToInstance** | **String** | | [optional]
34+
**travelingToLocation** | **String** | | [optional]
35+
**travelingToWorld** | **String** | | [optional]
3036
**userIcon** | **String** | |
3137
**username** | **String** | A users unique name, used during login. This is different from &#x60;displayName&#x60; which is what shows up in-game. A users &#x60;username&#x60; can never be changed. |
3238
**worldId** | **String** | WorldID be \&quot;offline\&quot; on User profiles if you are not friends with that user. | [optional]

‎docs/World.md‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
1010
**assetUrl** | **String** | Empty if unauthenticated. |
11-
**assetUrlObject** | **Object** | |
1211
**authorId** | **String** | A users unique ID, usually in the form of &#x60;usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469&#x60;. Legacy players can have old IDs in the form of &#x60;8JoV9XEdpo&#x60;. The ID can never be changed. |
1312
**authorName** | **String** | |
1413
**capacity** | **Integer** | |
@@ -25,7 +24,6 @@ Name | Type | Description | Notes
2524
**namespace** | **String** | |
2625
**occupants** | **Integer** | | [optional]
2726
**organization** | **String** | |
28-
**pluginUrlObject** | **Object** | |
2927
**popularity** | **Integer** | |
3028
**previewYoutubeId** | **String** | | [optional]
3129
**privateOccupants** | **Integer** | | [optional]
@@ -34,7 +32,6 @@ Name | Type | Description | Notes
3432
**releaseStatus** | **ReleaseStatus** | |
3533
**tags** | **List&lt;String&gt;** | |
3634
**thumbnailImageUrl** | **String** | |
37-
**unityPackageUrlObject** | **Object** | |
3835
**unityPackages** | [**List&lt;UnityPackage&gt;**](UnityPackage.md) | Empty if unauthenticated. |
3936
**updatedAt** | **OffsetDateTime** | |
4037
**version** | **Integer** | |

0 commit comments

Comments
 (0)