Skip to content

Commit ea7140d

Browse files
committed
Upgrade Node SDK to spec 1.17.0
1 parent 0012d27 commit ea7140d

File tree

7 files changed

+141
-12
lines changed

7 files changed

+141
-12
lines changed

api.ts

Lines changed: 134 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* VRChat API Documentation
55
*
6-
* The version of the OpenAPI document: 1.16.8
6+
* The version of the OpenAPI document: 1.17.0
77
* Contact: vrchatapi.lpv0t@aries.fyi
88
*
99
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2319,6 +2319,21 @@ export interface Group {
23192319
*/
23202320
'roles'?: Array<GroupRole> | null;
23212321
}
2322+
/**
2323+
* Group access type when the instance type is \"group\"
2324+
* @export
2325+
* @enum {string}
2326+
*/
2327+
2328+
export const GroupAccessType = {
2329+
Public: 'public',
2330+
Plus: 'plus',
2331+
Member: 'member'
2332+
} as const;
2333+
2334+
export type GroupAccessType = typeof GroupAccessType[keyof typeof GroupAccessType];
2335+
2336+
23222337
/**
23232338
*
23242339
* @export
@@ -3394,11 +3409,11 @@ export interface Instance {
33943409
*/
33953410
'name': string;
33963411
/**
3397-
* 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.
3412+
* A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise
33983413
* @type {string}
33993414
* @memberof Instance
34003415
*/
3401-
'ownerId'?: string;
3416+
'ownerId'?: string | null;
34023417
/**
34033418
*
34043419
* @type {boolean}
@@ -3434,7 +3449,7 @@ export interface Instance {
34343449
* @type {string}
34353450
* @memberof Instance
34363451
*/
3437-
'shortName'?: string;
3452+
'shortName'?: string | null;
34383453
/**
34393454
* The tags array on Instances usually contain the language tags of the people in the instance.
34403455
* @type {Array<string>}
@@ -3494,7 +3509,7 @@ export interface Instance {
34943509
* @type {boolean}
34953510
* @memberof Instance
34963511
*/
3497-
'roleRestricted': boolean;
3512+
'roleRestricted'?: boolean;
34983513
/**
34993514
*
35003515
* @type {boolean}
@@ -3519,6 +3534,36 @@ export interface Instance {
35193534
* @memberof Instance
35203535
*/
35213536
'users'?: Array<LimitedUser>;
3537+
/**
3538+
*
3539+
* @type {GroupAccessType}
3540+
* @memberof Instance
3541+
*/
3542+
'groupAccessType'?: GroupAccessType;
3543+
/**
3544+
*
3545+
* @type {boolean}
3546+
* @memberof Instance
3547+
*/
3548+
'hasCapacityForYou'?: boolean;
3549+
/**
3550+
*
3551+
* @type {string}
3552+
* @memberof Instance
3553+
*/
3554+
'nonce'?: string;
3555+
/**
3556+
*
3557+
* @type {string}
3558+
* @memberof Instance
3559+
*/
3560+
'closedAt'?: string | null;
3561+
/**
3562+
*
3563+
* @type {boolean}
3564+
* @memberof Instance
3565+
*/
3566+
'hardClose'?: boolean | null;
35223567
}
35233568
/**
35243569
*
@@ -12898,6 +12943,51 @@ export class GroupsApi extends BaseAPI {
1289812943
*/
1289912944
export const InstancesApiAxiosParamCreator = function (configuration?: Configuration) {
1290012945
return {
12946+
/**
12947+
* Close an instance. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
12948+
* @summary Close Instance
12949+
* @param {string} worldId Must be a valid world ID.
12950+
* @param {string} instanceId Must be a valid instance ID.
12951+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
12952+
* @param {*} [options] Override http request option.
12953+
* @throws {RequiredError}
12954+
*/
12955+
closeInstance: async (worldId: string, instanceId: string, hardClose?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12956+
// verify required parameter 'worldId' is not null or undefined
12957+
assertParamExists('closeInstance', 'worldId', worldId)
12958+
// verify required parameter 'instanceId' is not null or undefined
12959+
assertParamExists('closeInstance', 'instanceId', instanceId)
12960+
const localVarPath = `/instances/{worldId}:{instanceId}`
12961+
.replace(`{${"worldId"}}`, encodeURIComponent(String(worldId)))
12962+
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
12963+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
12964+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12965+
let baseOptions;
12966+
if (configuration) {
12967+
baseOptions = configuration.baseOptions;
12968+
}
12969+
12970+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
12971+
const localVarHeaderParameter = {} as any;
12972+
const localVarQueryParameter = {} as any;
12973+
12974+
// authentication authCookie required
12975+
12976+
if (hardClose !== undefined) {
12977+
localVarQueryParameter['hardClose'] = hardClose;
12978+
}
12979+
12980+
12981+
12982+
setSearchParams(localVarUrlObj, localVarQueryParameter);
12983+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12984+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12985+
12986+
return {
12987+
url: toPathString(localVarUrlObj),
12988+
options: localVarRequestOptions,
12989+
};
12990+
},
1290112991
/**
1290212992
* Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances. If an invalid instanceId is provided, this endpoint will simply return \"null\"!
1290312993
* @summary Get Instance
@@ -13064,6 +13154,19 @@ export const InstancesApiAxiosParamCreator = function (configuration?: Configura
1306413154
export const InstancesApiFp = function(configuration?: Configuration) {
1306513155
const localVarAxiosParamCreator = InstancesApiAxiosParamCreator(configuration)
1306613156
return {
13157+
/**
13158+
* Close an instance. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
13159+
* @summary Close Instance
13160+
* @param {string} worldId Must be a valid world ID.
13161+
* @param {string} instanceId Must be a valid instance ID.
13162+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
13163+
* @param {*} [options] Override http request option.
13164+
* @throws {RequiredError}
13165+
*/
13166+
async closeInstance(worldId: string, instanceId: string, hardClose?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Instance>> {
13167+
const localVarAxiosArgs = await localVarAxiosParamCreator.closeInstance(worldId, instanceId, hardClose, options);
13168+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
13169+
},
1306713170
/**
1306813171
* Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances. If an invalid instanceId is provided, this endpoint will simply return \"null\"!
1306913172
* @summary Get Instance
@@ -13121,6 +13224,18 @@ export const InstancesApiFp = function(configuration?: Configuration) {
1312113224
export const InstancesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1312213225
const localVarFp = InstancesApiFp(configuration)
1312313226
return {
13227+
/**
13228+
* Close an instance. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
13229+
* @summary Close Instance
13230+
* @param {string} worldId Must be a valid world ID.
13231+
* @param {string} instanceId Must be a valid instance ID.
13232+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
13233+
* @param {*} [options] Override http request option.
13234+
* @throws {RequiredError}
13235+
*/
13236+
closeInstance(worldId: string, instanceId: string, hardClose?: boolean, options?: any): AxiosPromise<Instance> {
13237+
return localVarFp.closeInstance(worldId, instanceId, hardClose, options).then((request) => request(axios, basePath));
13238+
},
1312413239
/**
1312513240
* Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances. If an invalid instanceId is provided, this endpoint will simply return \"null\"!
1312613241
* @summary Get Instance
@@ -13174,6 +13289,20 @@ export const InstancesApiFactory = function (configuration?: Configuration, base
1317413289
* @extends {BaseAPI}
1317513290
*/
1317613291
export class InstancesApi extends BaseAPI {
13292+
/**
13293+
* Close an instance. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
13294+
* @summary Close Instance
13295+
* @param {string} worldId Must be a valid world ID.
13296+
* @param {string} instanceId Must be a valid instance ID.
13297+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
13298+
* @param {*} [options] Override http request option.
13299+
* @throws {RequiredError}
13300+
* @memberof InstancesApi
13301+
*/
13302+
public closeInstance(worldId: string, instanceId: string, hardClose?: boolean, options?: AxiosRequestConfig) {
13303+
return InstancesApiFp(this.configuration).closeInstance(worldId, instanceId, hardClose, options).then((request) => request(this.axios, this.basePath));
13304+
}
13305+
1317713306
/**
1317813307
* Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances. If an invalid instanceId is provided, this endpoint will simply return \"null\"!
1317913308
* @summary Get Instance

base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* VRChat API Documentation
55
*
6-
* The version of the OpenAPI document: 1.16.8
6+
* The version of the OpenAPI document: 1.17.0
77
* Contact: vrchatapi.lpv0t@aries.fyi
88
*
99
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* VRChat API Documentation
55
*
6-
* The version of the OpenAPI document: 1.16.8
6+
* The version of the OpenAPI document: 1.17.0
77
* Contact: vrchatapi.lpv0t@aries.fyi
88
*
99
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* VRChat API Documentation
55
*
6-
* The version of the OpenAPI document: 1.16.8
6+
* The version of the OpenAPI document: 1.17.0
77
* Contact: vrchatapi.lpv0t@aries.fyi
88
*
99
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* VRChat API Documentation
55
*
6-
* The version of the OpenAPI document: 1.16.8
6+
* The version of the OpenAPI document: 1.17.0
77
* Contact: vrchatapi.lpv0t@aries.fyi
88
*
99
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vrchat",
3-
"version": "1.16.8",
3+
"version": "1.17.0",
44
"description": "🟡🔵 VRChat API Library for JavaScript and TypeScript",
55
"author": "OpenAPI-Generator Contributors",
66
"repository": {

0 commit comments

Comments
 (0)