Skip to content

Commit ea88feb

Browse files
committed
Upgrade Java SDK to spec 1.20.9-nightly.20
1 parent 8034784 commit ea88feb

14 files changed

Lines changed: 1354 additions & 6 deletions

.openapi-generator/FILES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,13 @@ docs/InfoPushEmbeddedLink.md
175175
docs/InfoPushExperiment.md
176176
docs/InfoPushIpsQuery.md
177177
docs/Instance.md
178+
docs/InstanceCategory.md
178179
docs/InstanceContentSettings.md
179180
docs/InstancePlatforms.md
180181
docs/InstanceRegion.md
181182
docs/InstanceShortNameResponse.md
182183
docs/InstanceType.md
184+
docs/InstanceVibe.md
183185
docs/InstancesApi.md
184186
docs/Inventory.md
185187
docs/InventoryApi.md
@@ -586,11 +588,13 @@ src/main/java/io/github/vrchatapi/model/InfoPushEmbeddedLink.java
586588
src/main/java/io/github/vrchatapi/model/InfoPushExperiment.java
587589
src/main/java/io/github/vrchatapi/model/InfoPushIpsQuery.java
588590
src/main/java/io/github/vrchatapi/model/Instance.java
591+
src/main/java/io/github/vrchatapi/model/InstanceCategory.java
589592
src/main/java/io/github/vrchatapi/model/InstanceContentSettings.java
590593
src/main/java/io/github/vrchatapi/model/InstancePlatforms.java
591594
src/main/java/io/github/vrchatapi/model/InstanceRegion.java
592595
src/main/java/io/github/vrchatapi/model/InstanceShortNameResponse.java
593596
src/main/java/io/github/vrchatapi/model/InstanceType.java
597+
src/main/java/io/github/vrchatapi/model/InstanceVibe.java
594598
src/main/java/io/github/vrchatapi/model/Inventory.java
595599
src/main/java/io/github/vrchatapi/model/InventoryConsumptionResults.java
596600
src/main/java/io/github/vrchatapi/model/InventoryDefaultAttributesValue.java

docs/CreateInstanceRequest.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
|------------ | ------------- | ------------- | -------------|
1010
|**ageGate** | **Boolean** | | [optional] |
1111
|**calendarEntryId** | **String** | | [optional] |
12-
|**canRequestInvite** | **Boolean** | Only applies to invite type instances to make them invite+ | [optional] |
12+
|**canRequestInvite** | **Boolean** | Makes a private instance invite+. A friends instance is rejected. | [optional] |
13+
|**categoryId** | **String** | | [optional] |
1314
|**closedAt** | **OffsetDateTime** | The time after which users won't be allowed to join the instance. This doesn't work for public instances. | [optional] |
1415
|**contentSettings** | [**InstanceContentSettings**](InstanceContentSettings.md) | | [optional] |
16+
|**description** | **String** | | [optional] |
1517
|**displayName** | **String** | | [optional] |
1618
|**groupAccessType** | **GroupAccessType** | | [optional] |
1719
|**hardClose** | **Boolean** | Currently unused, but will eventually be a flag to set if the closing of the instance should kick people. | [optional] |
@@ -23,6 +25,7 @@
2325
|**region** | **InstanceRegion** | | |
2426
|**roleIds** | **List<String>** | Group roleIds that are allowed to join if the type is \"group\" and groupAccessType is \"member\" | [optional] |
2527
|**type** | **InstanceType** | | |
28+
|**vibeIds** | **List<String>** | | [optional] |
2629
|**worldId** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | |
2730

2831

docs/Instance.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@
1313
|**calendarEntryId** | **String** | | [optional] |
1414
|**canRequestInvite** | **Boolean** | | [optional] |
1515
|**capacity** | **Integer** | | [optional] |
16+
|**categoryId** | **String** | | [optional] |
1617
|**clientNumber** | **String** | Always returns \"unknown\". | |
1718
|**closedAt** | **OffsetDateTime** | | [optional] |
1819
|**contentSettings** | [**InstanceContentSettings**](InstanceContentSettings.md) | | [optional] |
20+
|**creationLanguages** | **List<Object>** | | [optional] |
1921
|**creatorId** | **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] |
22+
|**description** | **String** | | [optional] |
2023
|**disabledPropAbilities** | **List<Object>** | | [optional] |
2124
|**displayName** | **String** | | [optional] |
2225
|**dominantLanguage** | **String** | | [optional] |
@@ -31,6 +34,8 @@
3134
|**instanceId** | **String** | InstanceID can be \"offline\" on User profiles if you are not friends with that user and \"private\" if you are friends and user is in private instance. | |
3235
|**instancePersistenceEnabled** | **Boolean** | | [optional] |
3336
|**languageRatio** | **Map<String, Object>** | | [optional] |
37+
|**languages** | **List<String>** | The keys of languageRatio, ordered by their share of the instance. | [optional] |
38+
|**languagesIso639** | **List<String>** | | [optional] |
3439
|**location** | **String** | Represents a unique location, consisting of a world identifier and an instance identifier, or \"offline\" if the user is not on your friends list. | |
3540
|**minimumAvatarPerformance** | **String** | | [optional] |
3641
|**nUsers** | **Integer** | | |
@@ -53,7 +58,9 @@
5358
|**tags** | **List<String>** | The tags array on Instances usually contain the language tags of the people in the instance. | |
5459
|**type** | **InstanceType** | | |
5560
|**userCount** | **Integer** | | |
61+
|**userIcons** | **List<String>** | | [optional] |
5662
|**users** | [**List<LimitedUserInstance>**](LimitedUserInstance.md) | The users field is present on instances created by the requesting user. | [optional] |
63+
|**vibeIds** | **List<String>** | | [optional] |
5764
|**world** | [**World**](World.md) | | |
5865
|**worldId** | **String** | WorldID be \"offline\" on User profiles if you are not friends with that user. | |
5966

docs/InstanceCategory.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
3+
# InstanceCategory
4+
5+
A category an instance can be listed under.
6+
7+
## Properties
8+
9+
| Name | Type | Description | Notes |
10+
|------------ | ------------- | ------------- | -------------|
11+
|**deleted** | **Boolean** | | |
12+
|**iconUrl** | **String** | | |
13+
|**id** | **String** | | |
14+
|**name** | **String** | | |
15+
|**order** | **Integer** | | |
16+
17+
18+

docs/InstanceVibe.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
3+
# InstanceVibe
4+
5+
A vibe an instance can be tagged with.
6+
7+
## Properties
8+
9+
| Name | Type | Description | Notes |
10+
|------------ | ------------- | ------------- | -------------|
11+
|**deleted** | **Boolean** | | |
12+
|**id** | **String** | | |
13+
|**title** | **String** | | |
14+
15+
16+

docs/InstancesApi.md

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ All URIs are relative to *https://api.vrchat.cloud/api/1*
88
| [**createInstance**](InstancesApi.md#createInstance) | **POST** /instances | Create Instance |
99
| [**getInstance**](InstancesApi.md#getInstance) | **GET** /instances/{worldId}:{instanceId} | Get Instance |
1010
| [**getInstanceByShortName**](InstancesApi.md#getInstanceByShortName) | **GET** /instances/s/{shortName} | Get Instance By Short Name |
11+
| [**getInstanceCategories**](InstancesApi.md#getInstanceCategories) | **GET** /instanceCategories | List Instance Categories |
12+
| [**getInstanceVibes**](InstancesApi.md#getInstanceVibes) | **GET** /instanceVibes | List Instance Vibes |
1113
| [**getRecentLocations**](InstancesApi.md#getRecentLocations) | **GET** /instances/recent | List Recent Locations |
1214
| [**getShortName**](InstancesApi.md#getShortName) | **GET** /instances/{worldId}:{instanceId}/shortName | Get Instance Short Name |
1315

@@ -304,6 +306,136 @@ public class Example {
304306
| **401** | Error response due to missing auth cookie. | - |
305307
| **404** | The requested resource does not exist. The message varies by resource and by route, and only some name the id. Worlds sometimes answer `model <worldId> not found` instead of `World <worldId> not found`. | - |
306308

309+
<a id="getInstanceCategories"></a>
310+
# **getInstanceCategories**
311+
> List&lt;InstanceCategory&gt; getInstanceCategories()
312+
313+
List Instance Categories
314+
315+
Returns the categories an instance can be listed under.
316+
317+
### Example
318+
```java
319+
// Import classes:
320+
import io.github.vrchatapi.ApiClient;
321+
import io.github.vrchatapi.ApiException;
322+
import io.github.vrchatapi.Configuration;
323+
import io.github.vrchatapi.auth.*;
324+
import io.github.vrchatapi.models.*;
325+
import io.github.vrchatapi.api.InstancesApi;
326+
327+
public class Example {
328+
public static void main(String[] args) {
329+
ApiClient defaultClient = Configuration.getDefaultApiClient();
330+
defaultClient.setBasePath("https://api.vrchat.cloud/api/1");
331+
332+
// Configure API key authorization: authCookie
333+
ApiKeyAuth authCookie = (ApiKeyAuth) defaultClient.getAuthentication("authCookie");
334+
authCookie.setApiKey("YOUR API KEY");
335+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
336+
//authCookie.setApiKeyPrefix("Token");
337+
338+
InstancesApi apiInstance = new InstancesApi(defaultClient);
339+
try {
340+
List<InstanceCategory> result = apiInstance.getInstanceCategories();
341+
System.out.println(result);
342+
} catch (ApiException e) {
343+
System.err.println("Exception when calling InstancesApi#getInstanceCategories");
344+
System.err.println("Status code: " + e.getCode());
345+
System.err.println("Reason: " + e.getResponseBody());
346+
System.err.println("Response headers: " + e.getResponseHeaders());
347+
e.printStackTrace();
348+
}
349+
}
350+
}
351+
```
352+
353+
### Parameters
354+
This endpoint does not need any parameter.
355+
356+
### Return type
357+
358+
[**List&lt;InstanceCategory&gt;**](InstanceCategory.md)
359+
360+
### Authorization
361+
362+
[authCookie](../README.md#authCookie)
363+
364+
### HTTP request headers
365+
366+
- **Content-Type**: Not defined
367+
- **Accept**: application/json
368+
369+
### HTTP response details
370+
| Status code | Description | Response headers |
371+
|-------------|-------------|------------------|
372+
| **200** | Returns a list of InstanceCategory objects. | - |
373+
374+
<a id="getInstanceVibes"></a>
375+
# **getInstanceVibes**
376+
> List&lt;InstanceVibe&gt; getInstanceVibes()
377+
378+
List Instance Vibes
379+
380+
Returns the vibes an instance can be tagged with.
381+
382+
### Example
383+
```java
384+
// Import classes:
385+
import io.github.vrchatapi.ApiClient;
386+
import io.github.vrchatapi.ApiException;
387+
import io.github.vrchatapi.Configuration;
388+
import io.github.vrchatapi.auth.*;
389+
import io.github.vrchatapi.models.*;
390+
import io.github.vrchatapi.api.InstancesApi;
391+
392+
public class Example {
393+
public static void main(String[] args) {
394+
ApiClient defaultClient = Configuration.getDefaultApiClient();
395+
defaultClient.setBasePath("https://api.vrchat.cloud/api/1");
396+
397+
// Configure API key authorization: authCookie
398+
ApiKeyAuth authCookie = (ApiKeyAuth) defaultClient.getAuthentication("authCookie");
399+
authCookie.setApiKey("YOUR API KEY");
400+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
401+
//authCookie.setApiKeyPrefix("Token");
402+
403+
InstancesApi apiInstance = new InstancesApi(defaultClient);
404+
try {
405+
List<InstanceVibe> result = apiInstance.getInstanceVibes();
406+
System.out.println(result);
407+
} catch (ApiException e) {
408+
System.err.println("Exception when calling InstancesApi#getInstanceVibes");
409+
System.err.println("Status code: " + e.getCode());
410+
System.err.println("Reason: " + e.getResponseBody());
411+
System.err.println("Response headers: " + e.getResponseHeaders());
412+
e.printStackTrace();
413+
}
414+
}
415+
}
416+
```
417+
418+
### Parameters
419+
This endpoint does not need any parameter.
420+
421+
### Return type
422+
423+
[**List&lt;InstanceVibe&gt;**](InstanceVibe.md)
424+
425+
### Authorization
426+
427+
[authCookie](../README.md#authCookie)
428+
429+
### HTTP request headers
430+
431+
- **Content-Type**: Not defined
432+
- **Accept**: application/json
433+
434+
### HTTP response details
435+
| Status code | Description | Response headers |
436+
|-------------|-------------|------------------|
437+
| **200** | Returns a list of InstanceVibe objects. | - |
438+
307439
<a id="getRecentLocations"></a>
308440
# **getRecentLocations**
309441
> List&lt;String&gt; getRecentLocations(n, offset)

docs/InviteApi.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ public class Example {
310310
| Status code | Description | Response headers |
311311
|-------------|-------------|------------------|
312312
| **200** | Returns a single SentNotification object. | - |
313+
| **401** | Error response due to missing auth cookie. | - |
313314
| **403** | Error response when trying to invite someone whom you are not friends with. | - |
314315

315316
<a id="inviteUserWithPhoto"></a>

src/main/java/io/github/vrchatapi/JSON.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,11 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
228228
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.InfoPushExperiment.CustomTypeAdapterFactory());
229229
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.InfoPushIpsQuery.CustomTypeAdapterFactory());
230230
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.Instance.CustomTypeAdapterFactory());
231+
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.InstanceCategory.CustomTypeAdapterFactory());
231232
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.InstanceContentSettings.CustomTypeAdapterFactory());
232233
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.InstancePlatforms.CustomTypeAdapterFactory());
233234
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.InstanceShortNameResponse.CustomTypeAdapterFactory());
235+
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.InstanceVibe.CustomTypeAdapterFactory());
234236
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.Inventory.CustomTypeAdapterFactory());
235237
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.InventoryConsumptionResults.CustomTypeAdapterFactory());
236238
gsonBuilder.registerTypeAdapterFactory(new io.github.vrchatapi.model.InventoryDefaultAttributesValue.CustomTypeAdapterFactory());

0 commit comments

Comments
 (0)