vrchat 1.16.8 → 1.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.ts +235 -6
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +152 -6
- package/dist/api.js +179 -3
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* VRChat API Documentation
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 1.
|
|
6
|
+
* The version of the OpenAPI document: 1.17.1
|
|
7
7
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2319,6 +2319,21 @@ export interface Group {
|
|
|
2319
2319
|
*/
|
|
2320
2320
|
'roles'?: Array<GroupRole> | null;
|
|
2321
2321
|
}
|
|
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
|
+
|
|
2322
2337
|
/**
|
|
2323
2338
|
*
|
|
2324
2339
|
* @export
|
|
@@ -2575,6 +2590,37 @@ export interface GroupGalleryImage {
|
|
|
2575
2590
|
*/
|
|
2576
2591
|
'approvedAt'?: string;
|
|
2577
2592
|
}
|
|
2593
|
+
/**
|
|
2594
|
+
*
|
|
2595
|
+
* @export
|
|
2596
|
+
* @interface GroupInstance
|
|
2597
|
+
*/
|
|
2598
|
+
export interface GroupInstance {
|
|
2599
|
+
/**
|
|
2600
|
+
*
|
|
2601
|
+
* @type {string}
|
|
2602
|
+
* @memberof GroupInstance
|
|
2603
|
+
*/
|
|
2604
|
+
'instanceId': string;
|
|
2605
|
+
/**
|
|
2606
|
+
* 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.
|
|
2607
|
+
* @type {string}
|
|
2608
|
+
* @memberof GroupInstance
|
|
2609
|
+
*/
|
|
2610
|
+
'location': string;
|
|
2611
|
+
/**
|
|
2612
|
+
*
|
|
2613
|
+
* @type {World}
|
|
2614
|
+
* @memberof GroupInstance
|
|
2615
|
+
*/
|
|
2616
|
+
'world': World;
|
|
2617
|
+
/**
|
|
2618
|
+
*
|
|
2619
|
+
* @type {number}
|
|
2620
|
+
* @memberof GroupInstance
|
|
2621
|
+
*/
|
|
2622
|
+
'memberCount': number;
|
|
2623
|
+
}
|
|
2578
2624
|
/**
|
|
2579
2625
|
*
|
|
2580
2626
|
* @export
|
|
@@ -2828,7 +2874,7 @@ export interface GroupMemberLimitedUser {
|
|
|
2828
2874
|
* @type {string}
|
|
2829
2875
|
* @memberof GroupMemberLimitedUser
|
|
2830
2876
|
*/
|
|
2831
|
-
'thumbnailUrl'?: string;
|
|
2877
|
+
'thumbnailUrl'?: string | null;
|
|
2832
2878
|
/**
|
|
2833
2879
|
*
|
|
2834
2880
|
* @type {string}
|
|
@@ -3394,11 +3440,11 @@ export interface Instance {
|
|
|
3394
3440
|
*/
|
|
3395
3441
|
'name': string;
|
|
3396
3442
|
/**
|
|
3397
|
-
* A
|
|
3443
|
+
* A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise
|
|
3398
3444
|
* @type {string}
|
|
3399
3445
|
* @memberof Instance
|
|
3400
3446
|
*/
|
|
3401
|
-
'ownerId'?: string;
|
|
3447
|
+
'ownerId'?: string | null;
|
|
3402
3448
|
/**
|
|
3403
3449
|
*
|
|
3404
3450
|
* @type {boolean}
|
|
@@ -3434,7 +3480,7 @@ export interface Instance {
|
|
|
3434
3480
|
* @type {string}
|
|
3435
3481
|
* @memberof Instance
|
|
3436
3482
|
*/
|
|
3437
|
-
'shortName'?: string;
|
|
3483
|
+
'shortName'?: string | null;
|
|
3438
3484
|
/**
|
|
3439
3485
|
* The tags array on Instances usually contain the language tags of the people in the instance.
|
|
3440
3486
|
* @type {Array<string>}
|
|
@@ -3494,7 +3540,7 @@ export interface Instance {
|
|
|
3494
3540
|
* @type {boolean}
|
|
3495
3541
|
* @memberof Instance
|
|
3496
3542
|
*/
|
|
3497
|
-
'roleRestricted'
|
|
3543
|
+
'roleRestricted'?: boolean;
|
|
3498
3544
|
/**
|
|
3499
3545
|
*
|
|
3500
3546
|
* @type {boolean}
|
|
@@ -3519,6 +3565,36 @@ export interface Instance {
|
|
|
3519
3565
|
* @memberof Instance
|
|
3520
3566
|
*/
|
|
3521
3567
|
'users'?: Array<LimitedUser>;
|
|
3568
|
+
/**
|
|
3569
|
+
*
|
|
3570
|
+
* @type {GroupAccessType}
|
|
3571
|
+
* @memberof Instance
|
|
3572
|
+
*/
|
|
3573
|
+
'groupAccessType'?: GroupAccessType;
|
|
3574
|
+
/**
|
|
3575
|
+
*
|
|
3576
|
+
* @type {boolean}
|
|
3577
|
+
* @memberof Instance
|
|
3578
|
+
*/
|
|
3579
|
+
'hasCapacityForYou'?: boolean;
|
|
3580
|
+
/**
|
|
3581
|
+
*
|
|
3582
|
+
* @type {string}
|
|
3583
|
+
* @memberof Instance
|
|
3584
|
+
*/
|
|
3585
|
+
'nonce'?: string;
|
|
3586
|
+
/**
|
|
3587
|
+
*
|
|
3588
|
+
* @type {string}
|
|
3589
|
+
* @memberof Instance
|
|
3590
|
+
*/
|
|
3591
|
+
'closedAt'?: string | null;
|
|
3592
|
+
/**
|
|
3593
|
+
*
|
|
3594
|
+
* @type {boolean}
|
|
3595
|
+
* @memberof Instance
|
|
3596
|
+
*/
|
|
3597
|
+
'hardClose'?: boolean | null;
|
|
3522
3598
|
}
|
|
3523
3599
|
/**
|
|
3524
3600
|
*
|
|
@@ -10772,6 +10848,42 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
10772
10848
|
|
|
10773
10849
|
|
|
10774
10850
|
|
|
10851
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10852
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10853
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10854
|
+
|
|
10855
|
+
return {
|
|
10856
|
+
url: toPathString(localVarUrlObj),
|
|
10857
|
+
options: localVarRequestOptions,
|
|
10858
|
+
};
|
|
10859
|
+
},
|
|
10860
|
+
/**
|
|
10861
|
+
* Returns a list of group instances
|
|
10862
|
+
* @summary Get Group Instances
|
|
10863
|
+
* @param {string} groupId Must be a valid group ID.
|
|
10864
|
+
* @param {*} [options] Override http request option.
|
|
10865
|
+
* @throws {RequiredError}
|
|
10866
|
+
*/
|
|
10867
|
+
getGroupInstances: async (groupId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10868
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
10869
|
+
assertParamExists('getGroupInstances', 'groupId', groupId)
|
|
10870
|
+
const localVarPath = `/groups/{groupId}/instances`
|
|
10871
|
+
.replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
|
|
10872
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10873
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10874
|
+
let baseOptions;
|
|
10875
|
+
if (configuration) {
|
|
10876
|
+
baseOptions = configuration.baseOptions;
|
|
10877
|
+
}
|
|
10878
|
+
|
|
10879
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
10880
|
+
const localVarHeaderParameter = {} as any;
|
|
10881
|
+
const localVarQueryParameter = {} as any;
|
|
10882
|
+
|
|
10883
|
+
// authentication authCookie required
|
|
10884
|
+
|
|
10885
|
+
|
|
10886
|
+
|
|
10775
10887
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10776
10888
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10777
10889
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -11750,6 +11862,17 @@ export const GroupsApiFp = function(configuration?: Configuration) {
|
|
|
11750
11862
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getGroupGalleryImages(groupId, groupGalleryId, n, offset, approved, options);
|
|
11751
11863
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11752
11864
|
},
|
|
11865
|
+
/**
|
|
11866
|
+
* Returns a list of group instances
|
|
11867
|
+
* @summary Get Group Instances
|
|
11868
|
+
* @param {string} groupId Must be a valid group ID.
|
|
11869
|
+
* @param {*} [options] Override http request option.
|
|
11870
|
+
* @throws {RequiredError}
|
|
11871
|
+
*/
|
|
11872
|
+
async getGroupInstances(groupId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GroupInstance>>> {
|
|
11873
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGroupInstances(groupId, options);
|
|
11874
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11875
|
+
},
|
|
11753
11876
|
/**
|
|
11754
11877
|
* Returns a list of members that have been invited to the Group.
|
|
11755
11878
|
* @summary Get Group Invites Sent
|
|
@@ -12195,6 +12318,16 @@ export const GroupsApiFactory = function (configuration?: Configuration, basePat
|
|
|
12195
12318
|
getGroupGalleryImages(groupId: string, groupGalleryId: string, n?: number, offset?: number, approved?: boolean, options?: any): AxiosPromise<Array<GroupGalleryImage>> {
|
|
12196
12319
|
return localVarFp.getGroupGalleryImages(groupId, groupGalleryId, n, offset, approved, options).then((request) => request(axios, basePath));
|
|
12197
12320
|
},
|
|
12321
|
+
/**
|
|
12322
|
+
* Returns a list of group instances
|
|
12323
|
+
* @summary Get Group Instances
|
|
12324
|
+
* @param {string} groupId Must be a valid group ID.
|
|
12325
|
+
* @param {*} [options] Override http request option.
|
|
12326
|
+
* @throws {RequiredError}
|
|
12327
|
+
*/
|
|
12328
|
+
getGroupInstances(groupId: string, options?: any): AxiosPromise<Array<GroupInstance>> {
|
|
12329
|
+
return localVarFp.getGroupInstances(groupId, options).then((request) => request(axios, basePath));
|
|
12330
|
+
},
|
|
12198
12331
|
/**
|
|
12199
12332
|
* Returns a list of members that have been invited to the Group.
|
|
12200
12333
|
* @summary Get Group Invites Sent
|
|
@@ -12663,6 +12796,18 @@ export class GroupsApi extends BaseAPI {
|
|
|
12663
12796
|
return GroupsApiFp(this.configuration).getGroupGalleryImages(groupId, groupGalleryId, n, offset, approved, options).then((request) => request(this.axios, this.basePath));
|
|
12664
12797
|
}
|
|
12665
12798
|
|
|
12799
|
+
/**
|
|
12800
|
+
* Returns a list of group instances
|
|
12801
|
+
* @summary Get Group Instances
|
|
12802
|
+
* @param {string} groupId Must be a valid group ID.
|
|
12803
|
+
* @param {*} [options] Override http request option.
|
|
12804
|
+
* @throws {RequiredError}
|
|
12805
|
+
* @memberof GroupsApi
|
|
12806
|
+
*/
|
|
12807
|
+
public getGroupInstances(groupId: string, options?: AxiosRequestConfig) {
|
|
12808
|
+
return GroupsApiFp(this.configuration).getGroupInstances(groupId, options).then((request) => request(this.axios, this.basePath));
|
|
12809
|
+
}
|
|
12810
|
+
|
|
12666
12811
|
/**
|
|
12667
12812
|
* Returns a list of members that have been invited to the Group.
|
|
12668
12813
|
* @summary Get Group Invites Sent
|
|
@@ -12898,6 +13043,51 @@ export class GroupsApi extends BaseAPI {
|
|
|
12898
13043
|
*/
|
|
12899
13044
|
export const InstancesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
12900
13045
|
return {
|
|
13046
|
+
/**
|
|
13047
|
+
* 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.
|
|
13048
|
+
* @summary Close Instance
|
|
13049
|
+
* @param {string} worldId Must be a valid world ID.
|
|
13050
|
+
* @param {string} instanceId Must be a valid instance ID.
|
|
13051
|
+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
13052
|
+
* @param {*} [options] Override http request option.
|
|
13053
|
+
* @throws {RequiredError}
|
|
13054
|
+
*/
|
|
13055
|
+
closeInstance: async (worldId: string, instanceId: string, hardClose?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13056
|
+
// verify required parameter 'worldId' is not null or undefined
|
|
13057
|
+
assertParamExists('closeInstance', 'worldId', worldId)
|
|
13058
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
13059
|
+
assertParamExists('closeInstance', 'instanceId', instanceId)
|
|
13060
|
+
const localVarPath = `/instances/{worldId}:{instanceId}`
|
|
13061
|
+
.replace(`{${"worldId"}}`, encodeURIComponent(String(worldId)))
|
|
13062
|
+
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
13063
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13064
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13065
|
+
let baseOptions;
|
|
13066
|
+
if (configuration) {
|
|
13067
|
+
baseOptions = configuration.baseOptions;
|
|
13068
|
+
}
|
|
13069
|
+
|
|
13070
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
13071
|
+
const localVarHeaderParameter = {} as any;
|
|
13072
|
+
const localVarQueryParameter = {} as any;
|
|
13073
|
+
|
|
13074
|
+
// authentication authCookie required
|
|
13075
|
+
|
|
13076
|
+
if (hardClose !== undefined) {
|
|
13077
|
+
localVarQueryParameter['hardClose'] = hardClose;
|
|
13078
|
+
}
|
|
13079
|
+
|
|
13080
|
+
|
|
13081
|
+
|
|
13082
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13083
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13084
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13085
|
+
|
|
13086
|
+
return {
|
|
13087
|
+
url: toPathString(localVarUrlObj),
|
|
13088
|
+
options: localVarRequestOptions,
|
|
13089
|
+
};
|
|
13090
|
+
},
|
|
12901
13091
|
/**
|
|
12902
13092
|
* 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\"!
|
|
12903
13093
|
* @summary Get Instance
|
|
@@ -13064,6 +13254,19 @@ export const InstancesApiAxiosParamCreator = function (configuration?: Configura
|
|
|
13064
13254
|
export const InstancesApiFp = function(configuration?: Configuration) {
|
|
13065
13255
|
const localVarAxiosParamCreator = InstancesApiAxiosParamCreator(configuration)
|
|
13066
13256
|
return {
|
|
13257
|
+
/**
|
|
13258
|
+
* 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.
|
|
13259
|
+
* @summary Close Instance
|
|
13260
|
+
* @param {string} worldId Must be a valid world ID.
|
|
13261
|
+
* @param {string} instanceId Must be a valid instance ID.
|
|
13262
|
+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
13263
|
+
* @param {*} [options] Override http request option.
|
|
13264
|
+
* @throws {RequiredError}
|
|
13265
|
+
*/
|
|
13266
|
+
async closeInstance(worldId: string, instanceId: string, hardClose?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Instance>> {
|
|
13267
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.closeInstance(worldId, instanceId, hardClose, options);
|
|
13268
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13269
|
+
},
|
|
13067
13270
|
/**
|
|
13068
13271
|
* 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\"!
|
|
13069
13272
|
* @summary Get Instance
|
|
@@ -13121,6 +13324,18 @@ export const InstancesApiFp = function(configuration?: Configuration) {
|
|
|
13121
13324
|
export const InstancesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
13122
13325
|
const localVarFp = InstancesApiFp(configuration)
|
|
13123
13326
|
return {
|
|
13327
|
+
/**
|
|
13328
|
+
* 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.
|
|
13329
|
+
* @summary Close Instance
|
|
13330
|
+
* @param {string} worldId Must be a valid world ID.
|
|
13331
|
+
* @param {string} instanceId Must be a valid instance ID.
|
|
13332
|
+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
13333
|
+
* @param {*} [options] Override http request option.
|
|
13334
|
+
* @throws {RequiredError}
|
|
13335
|
+
*/
|
|
13336
|
+
closeInstance(worldId: string, instanceId: string, hardClose?: boolean, options?: any): AxiosPromise<Instance> {
|
|
13337
|
+
return localVarFp.closeInstance(worldId, instanceId, hardClose, options).then((request) => request(axios, basePath));
|
|
13338
|
+
},
|
|
13124
13339
|
/**
|
|
13125
13340
|
* 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\"!
|
|
13126
13341
|
* @summary Get Instance
|
|
@@ -13174,6 +13389,20 @@ export const InstancesApiFactory = function (configuration?: Configuration, base
|
|
|
13174
13389
|
* @extends {BaseAPI}
|
|
13175
13390
|
*/
|
|
13176
13391
|
export class InstancesApi extends BaseAPI {
|
|
13392
|
+
/**
|
|
13393
|
+
* 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.
|
|
13394
|
+
* @summary Close Instance
|
|
13395
|
+
* @param {string} worldId Must be a valid world ID.
|
|
13396
|
+
* @param {string} instanceId Must be a valid instance ID.
|
|
13397
|
+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
13398
|
+
* @param {*} [options] Override http request option.
|
|
13399
|
+
* @throws {RequiredError}
|
|
13400
|
+
* @memberof InstancesApi
|
|
13401
|
+
*/
|
|
13402
|
+
public closeInstance(worldId: string, instanceId: string, hardClose?: boolean, options?: AxiosRequestConfig) {
|
|
13403
|
+
return InstancesApiFp(this.configuration).closeInstance(worldId, instanceId, hardClose, options).then((request) => request(this.axios, this.basePath));
|
|
13404
|
+
}
|
|
13405
|
+
|
|
13177
13406
|
/**
|
|
13178
13407
|
* 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\"!
|
|
13179
13408
|
* @summary Get Instance
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* VRChat API Documentation
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 1.
|
|
6
|
+
* The version of the OpenAPI document: 1.17.1
|
|
7
7
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/common.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* VRChat API Documentation
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 1.
|
|
6
|
+
* The version of the OpenAPI document: 1.17.1
|
|
7
7
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* VRChat API Documentation
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 1.
|
|
6
|
+
* The version of the OpenAPI document: 1.17.1
|
|
7
7
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* VRChat API Documentation
|
|
3
3
|
*
|
|
4
|
-
* The version of the OpenAPI document: 1.
|
|
4
|
+
* The version of the OpenAPI document: 1.17.1
|
|
5
5
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2286,6 +2286,17 @@ export interface Group {
|
|
|
2286
2286
|
*/
|
|
2287
2287
|
'roles'?: Array<GroupRole> | null;
|
|
2288
2288
|
}
|
|
2289
|
+
/**
|
|
2290
|
+
* Group access type when the instance type is \"group\"
|
|
2291
|
+
* @export
|
|
2292
|
+
* @enum {string}
|
|
2293
|
+
*/
|
|
2294
|
+
export declare const GroupAccessType: {
|
|
2295
|
+
readonly Public: "public";
|
|
2296
|
+
readonly Plus: "plus";
|
|
2297
|
+
readonly Member: "member";
|
|
2298
|
+
};
|
|
2299
|
+
export type GroupAccessType = typeof GroupAccessType[keyof typeof GroupAccessType];
|
|
2289
2300
|
/**
|
|
2290
2301
|
*
|
|
2291
2302
|
* @export
|
|
@@ -2542,6 +2553,37 @@ export interface GroupGalleryImage {
|
|
|
2542
2553
|
*/
|
|
2543
2554
|
'approvedAt'?: string;
|
|
2544
2555
|
}
|
|
2556
|
+
/**
|
|
2557
|
+
*
|
|
2558
|
+
* @export
|
|
2559
|
+
* @interface GroupInstance
|
|
2560
|
+
*/
|
|
2561
|
+
export interface GroupInstance {
|
|
2562
|
+
/**
|
|
2563
|
+
*
|
|
2564
|
+
* @type {string}
|
|
2565
|
+
* @memberof GroupInstance
|
|
2566
|
+
*/
|
|
2567
|
+
'instanceId': string;
|
|
2568
|
+
/**
|
|
2569
|
+
* 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.
|
|
2570
|
+
* @type {string}
|
|
2571
|
+
* @memberof GroupInstance
|
|
2572
|
+
*/
|
|
2573
|
+
'location': string;
|
|
2574
|
+
/**
|
|
2575
|
+
*
|
|
2576
|
+
* @type {World}
|
|
2577
|
+
* @memberof GroupInstance
|
|
2578
|
+
*/
|
|
2579
|
+
'world': World;
|
|
2580
|
+
/**
|
|
2581
|
+
*
|
|
2582
|
+
* @type {number}
|
|
2583
|
+
* @memberof GroupInstance
|
|
2584
|
+
*/
|
|
2585
|
+
'memberCount': number;
|
|
2586
|
+
}
|
|
2545
2587
|
/**
|
|
2546
2588
|
*
|
|
2547
2589
|
* @export
|
|
@@ -2787,7 +2829,7 @@ export interface GroupMemberLimitedUser {
|
|
|
2787
2829
|
* @type {string}
|
|
2788
2830
|
* @memberof GroupMemberLimitedUser
|
|
2789
2831
|
*/
|
|
2790
|
-
'thumbnailUrl'?: string;
|
|
2832
|
+
'thumbnailUrl'?: string | null;
|
|
2791
2833
|
/**
|
|
2792
2834
|
*
|
|
2793
2835
|
* @type {string}
|
|
@@ -3330,11 +3372,11 @@ export interface Instance {
|
|
|
3330
3372
|
*/
|
|
3331
3373
|
'name': string;
|
|
3332
3374
|
/**
|
|
3333
|
-
* A
|
|
3375
|
+
* A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise
|
|
3334
3376
|
* @type {string}
|
|
3335
3377
|
* @memberof Instance
|
|
3336
3378
|
*/
|
|
3337
|
-
'ownerId'?: string;
|
|
3379
|
+
'ownerId'?: string | null;
|
|
3338
3380
|
/**
|
|
3339
3381
|
*
|
|
3340
3382
|
* @type {boolean}
|
|
@@ -3370,7 +3412,7 @@ export interface Instance {
|
|
|
3370
3412
|
* @type {string}
|
|
3371
3413
|
* @memberof Instance
|
|
3372
3414
|
*/
|
|
3373
|
-
'shortName'?: string;
|
|
3415
|
+
'shortName'?: string | null;
|
|
3374
3416
|
/**
|
|
3375
3417
|
* The tags array on Instances usually contain the language tags of the people in the instance.
|
|
3376
3418
|
* @type {Array<string>}
|
|
@@ -3430,7 +3472,7 @@ export interface Instance {
|
|
|
3430
3472
|
* @type {boolean}
|
|
3431
3473
|
* @memberof Instance
|
|
3432
3474
|
*/
|
|
3433
|
-
'roleRestricted'
|
|
3475
|
+
'roleRestricted'?: boolean;
|
|
3434
3476
|
/**
|
|
3435
3477
|
*
|
|
3436
3478
|
* @type {boolean}
|
|
@@ -3455,6 +3497,36 @@ export interface Instance {
|
|
|
3455
3497
|
* @memberof Instance
|
|
3456
3498
|
*/
|
|
3457
3499
|
'users'?: Array<LimitedUser>;
|
|
3500
|
+
/**
|
|
3501
|
+
*
|
|
3502
|
+
* @type {GroupAccessType}
|
|
3503
|
+
* @memberof Instance
|
|
3504
|
+
*/
|
|
3505
|
+
'groupAccessType'?: GroupAccessType;
|
|
3506
|
+
/**
|
|
3507
|
+
*
|
|
3508
|
+
* @type {boolean}
|
|
3509
|
+
* @memberof Instance
|
|
3510
|
+
*/
|
|
3511
|
+
'hasCapacityForYou'?: boolean;
|
|
3512
|
+
/**
|
|
3513
|
+
*
|
|
3514
|
+
* @type {string}
|
|
3515
|
+
* @memberof Instance
|
|
3516
|
+
*/
|
|
3517
|
+
'nonce'?: string;
|
|
3518
|
+
/**
|
|
3519
|
+
*
|
|
3520
|
+
* @type {string}
|
|
3521
|
+
* @memberof Instance
|
|
3522
|
+
*/
|
|
3523
|
+
'closedAt'?: string | null;
|
|
3524
|
+
/**
|
|
3525
|
+
*
|
|
3526
|
+
* @type {boolean}
|
|
3527
|
+
* @memberof Instance
|
|
3528
|
+
*/
|
|
3529
|
+
'hardClose'?: boolean | null;
|
|
3458
3530
|
}
|
|
3459
3531
|
/**
|
|
3460
3532
|
*
|
|
@@ -8095,6 +8167,14 @@ export declare const GroupsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
8095
8167
|
* @throws {RequiredError}
|
|
8096
8168
|
*/
|
|
8097
8169
|
getGroupGalleryImages: (groupId: string, groupGalleryId: string, n?: number, offset?: number, approved?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
8170
|
+
/**
|
|
8171
|
+
* Returns a list of group instances
|
|
8172
|
+
* @summary Get Group Instances
|
|
8173
|
+
* @param {string} groupId Must be a valid group ID.
|
|
8174
|
+
* @param {*} [options] Override http request option.
|
|
8175
|
+
* @throws {RequiredError}
|
|
8176
|
+
*/
|
|
8177
|
+
getGroupInstances: (groupId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
8098
8178
|
/**
|
|
8099
8179
|
* Returns a list of members that have been invited to the Group.
|
|
8100
8180
|
* @summary Get Group Invites Sent
|
|
@@ -8445,6 +8525,14 @@ export declare const GroupsApiFp: (configuration?: Configuration) => {
|
|
|
8445
8525
|
* @throws {RequiredError}
|
|
8446
8526
|
*/
|
|
8447
8527
|
getGroupGalleryImages(groupId: string, groupGalleryId: string, n?: number, offset?: number, approved?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GroupGalleryImage>>>;
|
|
8528
|
+
/**
|
|
8529
|
+
* Returns a list of group instances
|
|
8530
|
+
* @summary Get Group Instances
|
|
8531
|
+
* @param {string} groupId Must be a valid group ID.
|
|
8532
|
+
* @param {*} [options] Override http request option.
|
|
8533
|
+
* @throws {RequiredError}
|
|
8534
|
+
*/
|
|
8535
|
+
getGroupInstances(groupId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GroupInstance>>>;
|
|
8448
8536
|
/**
|
|
8449
8537
|
* Returns a list of members that have been invited to the Group.
|
|
8450
8538
|
* @summary Get Group Invites Sent
|
|
@@ -8795,6 +8883,14 @@ export declare const GroupsApiFactory: (configuration?: Configuration, basePath?
|
|
|
8795
8883
|
* @throws {RequiredError}
|
|
8796
8884
|
*/
|
|
8797
8885
|
getGroupGalleryImages(groupId: string, groupGalleryId: string, n?: number, offset?: number, approved?: boolean, options?: any): AxiosPromise<Array<GroupGalleryImage>>;
|
|
8886
|
+
/**
|
|
8887
|
+
* Returns a list of group instances
|
|
8888
|
+
* @summary Get Group Instances
|
|
8889
|
+
* @param {string} groupId Must be a valid group ID.
|
|
8890
|
+
* @param {*} [options] Override http request option.
|
|
8891
|
+
* @throws {RequiredError}
|
|
8892
|
+
*/
|
|
8893
|
+
getGroupInstances(groupId: string, options?: any): AxiosPromise<Array<GroupInstance>>;
|
|
8798
8894
|
/**
|
|
8799
8895
|
* Returns a list of members that have been invited to the Group.
|
|
8800
8896
|
* @summary Get Group Invites Sent
|
|
@@ -9167,6 +9263,15 @@ export declare class GroupsApi extends BaseAPI {
|
|
|
9167
9263
|
* @memberof GroupsApi
|
|
9168
9264
|
*/
|
|
9169
9265
|
getGroupGalleryImages(groupId: string, groupGalleryId: string, n?: number, offset?: number, approved?: boolean, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GroupGalleryImage[], any>>;
|
|
9266
|
+
/**
|
|
9267
|
+
* Returns a list of group instances
|
|
9268
|
+
* @summary Get Group Instances
|
|
9269
|
+
* @param {string} groupId Must be a valid group ID.
|
|
9270
|
+
* @param {*} [options] Override http request option.
|
|
9271
|
+
* @throws {RequiredError}
|
|
9272
|
+
* @memberof GroupsApi
|
|
9273
|
+
*/
|
|
9274
|
+
getGroupInstances(groupId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GroupInstance[], any>>;
|
|
9170
9275
|
/**
|
|
9171
9276
|
* Returns a list of members that have been invited to the Group.
|
|
9172
9277
|
* @summary Get Group Invites Sent
|
|
@@ -9349,6 +9454,16 @@ export declare class GroupsApi extends BaseAPI {
|
|
|
9349
9454
|
* @export
|
|
9350
9455
|
*/
|
|
9351
9456
|
export declare const InstancesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
9457
|
+
/**
|
|
9458
|
+
* 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.
|
|
9459
|
+
* @summary Close Instance
|
|
9460
|
+
* @param {string} worldId Must be a valid world ID.
|
|
9461
|
+
* @param {string} instanceId Must be a valid instance ID.
|
|
9462
|
+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
9463
|
+
* @param {*} [options] Override http request option.
|
|
9464
|
+
* @throws {RequiredError}
|
|
9465
|
+
*/
|
|
9466
|
+
closeInstance: (worldId: string, instanceId: string, hardClose?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
9352
9467
|
/**
|
|
9353
9468
|
* 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\"!
|
|
9354
9469
|
* @summary Get Instance
|
|
@@ -9390,6 +9505,16 @@ export declare const InstancesApiAxiosParamCreator: (configuration?: Configurati
|
|
|
9390
9505
|
* @export
|
|
9391
9506
|
*/
|
|
9392
9507
|
export declare const InstancesApiFp: (configuration?: Configuration) => {
|
|
9508
|
+
/**
|
|
9509
|
+
* 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.
|
|
9510
|
+
* @summary Close Instance
|
|
9511
|
+
* @param {string} worldId Must be a valid world ID.
|
|
9512
|
+
* @param {string} instanceId Must be a valid instance ID.
|
|
9513
|
+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
9514
|
+
* @param {*} [options] Override http request option.
|
|
9515
|
+
* @throws {RequiredError}
|
|
9516
|
+
*/
|
|
9517
|
+
closeInstance(worldId: string, instanceId: string, hardClose?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Instance>>;
|
|
9393
9518
|
/**
|
|
9394
9519
|
* 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\"!
|
|
9395
9520
|
* @summary Get Instance
|
|
@@ -9431,6 +9556,16 @@ export declare const InstancesApiFp: (configuration?: Configuration) => {
|
|
|
9431
9556
|
* @export
|
|
9432
9557
|
*/
|
|
9433
9558
|
export declare const InstancesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
9559
|
+
/**
|
|
9560
|
+
* 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.
|
|
9561
|
+
* @summary Close Instance
|
|
9562
|
+
* @param {string} worldId Must be a valid world ID.
|
|
9563
|
+
* @param {string} instanceId Must be a valid instance ID.
|
|
9564
|
+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
9565
|
+
* @param {*} [options] Override http request option.
|
|
9566
|
+
* @throws {RequiredError}
|
|
9567
|
+
*/
|
|
9568
|
+
closeInstance(worldId: string, instanceId: string, hardClose?: boolean, options?: any): AxiosPromise<Instance>;
|
|
9434
9569
|
/**
|
|
9435
9570
|
* 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\"!
|
|
9436
9571
|
* @summary Get Instance
|
|
@@ -9474,6 +9609,17 @@ export declare const InstancesApiFactory: (configuration?: Configuration, basePa
|
|
|
9474
9609
|
* @extends {BaseAPI}
|
|
9475
9610
|
*/
|
|
9476
9611
|
export declare class InstancesApi extends BaseAPI {
|
|
9612
|
+
/**
|
|
9613
|
+
* 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.
|
|
9614
|
+
* @summary Close Instance
|
|
9615
|
+
* @param {string} worldId Must be a valid world ID.
|
|
9616
|
+
* @param {string} instanceId Must be a valid instance ID.
|
|
9617
|
+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
9618
|
+
* @param {*} [options] Override http request option.
|
|
9619
|
+
* @throws {RequiredError}
|
|
9620
|
+
* @memberof InstancesApi
|
|
9621
|
+
*/
|
|
9622
|
+
closeInstance(worldId: string, instanceId: string, hardClose?: boolean, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Instance, any>>;
|
|
9477
9623
|
/**
|
|
9478
9624
|
* 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\"!
|
|
9479
9625
|
* @summary Get Instance
|
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* VRChat API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.17.1
|
|
8
8
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -74,8 +74,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
77
|
-
exports.
|
|
78
|
-
exports.WorldsApi = exports.WorldsApiFactory = exports.WorldsApiFp = exports.WorldsApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.PlayermoderationApi = exports.PlayermoderationApiFactory = exports.PlayermoderationApiFp = exports.PlayermoderationApiAxiosParamCreator = exports.PermissionsApi = exports.PermissionsApiFactory = exports.PermissionsApiFp = exports.PermissionsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.InviteApi = exports.InviteApiFactory = exports.InviteApiFp = exports.InviteApiAxiosParamCreator = exports.InstancesApi = exports.InstancesApiFactory = exports.InstancesApiFp = exports.InstancesApiAxiosParamCreator = exports.GroupsApi = exports.GroupsApiFactory = exports.GroupsApiFp = exports.GroupsApiAxiosParamCreator = exports.FriendsApi = exports.FriendsApiFactory = exports.FriendsApiFp = void 0;
|
|
77
|
+
exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.FavoritesApi = exports.FavoritesApiFactory = exports.FavoritesApiFp = exports.FavoritesApiAxiosParamCreator = exports.EconomyApi = exports.EconomyApiFactory = exports.EconomyApiFp = exports.EconomyApiAxiosParamCreator = exports.AvatarsApi = exports.AvatarsApiFactory = exports.AvatarsApiFp = exports.AvatarsApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.UserStatus = exports.UserState = exports.TransactionStatus = exports.SubscriptionPeriod = exports.SortOption = exports.ReleaseStatus = exports.Region = exports.PlayerModerationType = exports.OrderOption = exports.NotificationType = exports.MIMEType = exports.LicenseType = exports.LicenseAction = exports.InviteMessageType = exports.InstanceType = exports.InfoPushDataClickableCommandEnum = exports.GroupUserVisibility = exports.GroupSearchSort = exports.GroupRoleTemplate = exports.GroupPrivacy = exports.GroupMemberStatus = exports.GroupJoinState = exports.GroupJoinRequestAction = exports.GroupAccessType = exports.FileStatus = exports.FileDataCategoryEnum = exports.FavoriteType = exports.FavoriteGroupVisibility = exports.DeveloperType = exports.DeploymentGroup = void 0;
|
|
78
|
+
exports.WorldsApi = exports.WorldsApiFactory = exports.WorldsApiFp = exports.WorldsApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.PlayermoderationApi = exports.PlayermoderationApiFactory = exports.PlayermoderationApiFp = exports.PlayermoderationApiAxiosParamCreator = exports.PermissionsApi = exports.PermissionsApiFactory = exports.PermissionsApiFp = exports.PermissionsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.InviteApi = exports.InviteApiFactory = exports.InviteApiFp = exports.InviteApiAxiosParamCreator = exports.InstancesApi = exports.InstancesApiFactory = exports.InstancesApiFp = exports.InstancesApiAxiosParamCreator = exports.GroupsApi = exports.GroupsApiFactory = exports.GroupsApiFp = exports.GroupsApiAxiosParamCreator = exports.FriendsApi = exports.FriendsApiFactory = exports.FriendsApiFp = exports.FriendsApiAxiosParamCreator = void 0;
|
|
79
79
|
var axios_1 = require("axios");
|
|
80
80
|
// Some imports not used depending on template conditions
|
|
81
81
|
// @ts-ignore
|
|
@@ -145,6 +145,16 @@ exports.FileStatus = {
|
|
|
145
145
|
None: 'none',
|
|
146
146
|
Queued: 'queued'
|
|
147
147
|
};
|
|
148
|
+
/**
|
|
149
|
+
* Group access type when the instance type is \"group\"
|
|
150
|
+
* @export
|
|
151
|
+
* @enum {string}
|
|
152
|
+
*/
|
|
153
|
+
exports.GroupAccessType = {
|
|
154
|
+
Public: 'public',
|
|
155
|
+
Plus: 'plus',
|
|
156
|
+
Member: 'member'
|
|
157
|
+
};
|
|
148
158
|
/**
|
|
149
159
|
*
|
|
150
160
|
* @export
|
|
@@ -5251,6 +5261,40 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
5251
5261
|
});
|
|
5252
5262
|
});
|
|
5253
5263
|
},
|
|
5264
|
+
/**
|
|
5265
|
+
* Returns a list of group instances
|
|
5266
|
+
* @summary Get Group Instances
|
|
5267
|
+
* @param {string} groupId Must be a valid group ID.
|
|
5268
|
+
* @param {*} [options] Override http request option.
|
|
5269
|
+
* @throws {RequiredError}
|
|
5270
|
+
*/
|
|
5271
|
+
getGroupInstances: function (groupId, options) {
|
|
5272
|
+
if (options === void 0) { options = {}; }
|
|
5273
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
5274
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5275
|
+
return __generator(this, function (_a) {
|
|
5276
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
5277
|
+
(0, common_1.assertParamExists)('getGroupInstances', 'groupId', groupId);
|
|
5278
|
+
localVarPath = "/groups/{groupId}/instances"
|
|
5279
|
+
.replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)));
|
|
5280
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5281
|
+
if (configuration) {
|
|
5282
|
+
baseOptions = configuration.baseOptions;
|
|
5283
|
+
}
|
|
5284
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
5285
|
+
localVarHeaderParameter = {};
|
|
5286
|
+
localVarQueryParameter = {};
|
|
5287
|
+
// authentication authCookie required
|
|
5288
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5289
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5290
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5291
|
+
return [2 /*return*/, {
|
|
5292
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5293
|
+
options: localVarRequestOptions,
|
|
5294
|
+
}];
|
|
5295
|
+
});
|
|
5296
|
+
});
|
|
5297
|
+
},
|
|
5254
5298
|
/**
|
|
5255
5299
|
* Returns a list of members that have been invited to the Group.
|
|
5256
5300
|
* @summary Get Group Invites Sent
|
|
@@ -6352,6 +6396,26 @@ var GroupsApiFp = function (configuration) {
|
|
|
6352
6396
|
});
|
|
6353
6397
|
});
|
|
6354
6398
|
},
|
|
6399
|
+
/**
|
|
6400
|
+
* Returns a list of group instances
|
|
6401
|
+
* @summary Get Group Instances
|
|
6402
|
+
* @param {string} groupId Must be a valid group ID.
|
|
6403
|
+
* @param {*} [options] Override http request option.
|
|
6404
|
+
* @throws {RequiredError}
|
|
6405
|
+
*/
|
|
6406
|
+
getGroupInstances: function (groupId, options) {
|
|
6407
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6408
|
+
var localVarAxiosArgs;
|
|
6409
|
+
return __generator(this, function (_a) {
|
|
6410
|
+
switch (_a.label) {
|
|
6411
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGroupInstances(groupId, options)];
|
|
6412
|
+
case 1:
|
|
6413
|
+
localVarAxiosArgs = _a.sent();
|
|
6414
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
6415
|
+
}
|
|
6416
|
+
});
|
|
6417
|
+
});
|
|
6418
|
+
},
|
|
6355
6419
|
/**
|
|
6356
6420
|
* Returns a list of members that have been invited to the Group.
|
|
6357
6421
|
* @summary Get Group Invites Sent
|
|
@@ -6950,6 +7014,16 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
|
|
|
6950
7014
|
getGroupGalleryImages: function (groupId, groupGalleryId, n, offset, approved, options) {
|
|
6951
7015
|
return localVarFp.getGroupGalleryImages(groupId, groupGalleryId, n, offset, approved, options).then(function (request) { return request(axios, basePath); });
|
|
6952
7016
|
},
|
|
7017
|
+
/**
|
|
7018
|
+
* Returns a list of group instances
|
|
7019
|
+
* @summary Get Group Instances
|
|
7020
|
+
* @param {string} groupId Must be a valid group ID.
|
|
7021
|
+
* @param {*} [options] Override http request option.
|
|
7022
|
+
* @throws {RequiredError}
|
|
7023
|
+
*/
|
|
7024
|
+
getGroupInstances: function (groupId, options) {
|
|
7025
|
+
return localVarFp.getGroupInstances(groupId, options).then(function (request) { return request(axios, basePath); });
|
|
7026
|
+
},
|
|
6953
7027
|
/**
|
|
6954
7028
|
* Returns a list of members that have been invited to the Group.
|
|
6955
7029
|
* @summary Get Group Invites Sent
|
|
@@ -7422,6 +7496,18 @@ var GroupsApi = /** @class */ (function (_super) {
|
|
|
7422
7496
|
var _this = this;
|
|
7423
7497
|
return (0, exports.GroupsApiFp)(this.configuration).getGroupGalleryImages(groupId, groupGalleryId, n, offset, approved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7424
7498
|
};
|
|
7499
|
+
/**
|
|
7500
|
+
* Returns a list of group instances
|
|
7501
|
+
* @summary Get Group Instances
|
|
7502
|
+
* @param {string} groupId Must be a valid group ID.
|
|
7503
|
+
* @param {*} [options] Override http request option.
|
|
7504
|
+
* @throws {RequiredError}
|
|
7505
|
+
* @memberof GroupsApi
|
|
7506
|
+
*/
|
|
7507
|
+
GroupsApi.prototype.getGroupInstances = function (groupId, options) {
|
|
7508
|
+
var _this = this;
|
|
7509
|
+
return (0, exports.GroupsApiFp)(this.configuration).getGroupInstances(groupId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7510
|
+
};
|
|
7425
7511
|
/**
|
|
7426
7512
|
* Returns a list of members that have been invited to the Group.
|
|
7427
7513
|
* @summary Get Group Invites Sent
|
|
@@ -7659,6 +7745,48 @@ exports.GroupsApi = GroupsApi;
|
|
|
7659
7745
|
var InstancesApiAxiosParamCreator = function (configuration) {
|
|
7660
7746
|
var _this = this;
|
|
7661
7747
|
return {
|
|
7748
|
+
/**
|
|
7749
|
+
* 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.
|
|
7750
|
+
* @summary Close Instance
|
|
7751
|
+
* @param {string} worldId Must be a valid world ID.
|
|
7752
|
+
* @param {string} instanceId Must be a valid instance ID.
|
|
7753
|
+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
7754
|
+
* @param {*} [options] Override http request option.
|
|
7755
|
+
* @throws {RequiredError}
|
|
7756
|
+
*/
|
|
7757
|
+
closeInstance: function (worldId, instanceId, hardClose, options) {
|
|
7758
|
+
if (options === void 0) { options = {}; }
|
|
7759
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
7760
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
7761
|
+
return __generator(this, function (_a) {
|
|
7762
|
+
// verify required parameter 'worldId' is not null or undefined
|
|
7763
|
+
(0, common_1.assertParamExists)('closeInstance', 'worldId', worldId);
|
|
7764
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
7765
|
+
(0, common_1.assertParamExists)('closeInstance', 'instanceId', instanceId);
|
|
7766
|
+
localVarPath = "/instances/{worldId}:{instanceId}"
|
|
7767
|
+
.replace("{".concat("worldId", "}"), encodeURIComponent(String(worldId)))
|
|
7768
|
+
.replace("{".concat("instanceId", "}"), encodeURIComponent(String(instanceId)));
|
|
7769
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7770
|
+
if (configuration) {
|
|
7771
|
+
baseOptions = configuration.baseOptions;
|
|
7772
|
+
}
|
|
7773
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
7774
|
+
localVarHeaderParameter = {};
|
|
7775
|
+
localVarQueryParameter = {};
|
|
7776
|
+
// authentication authCookie required
|
|
7777
|
+
if (hardClose !== undefined) {
|
|
7778
|
+
localVarQueryParameter['hardClose'] = hardClose;
|
|
7779
|
+
}
|
|
7780
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7781
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7782
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7783
|
+
return [2 /*return*/, {
|
|
7784
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7785
|
+
options: localVarRequestOptions,
|
|
7786
|
+
}];
|
|
7787
|
+
});
|
|
7788
|
+
});
|
|
7789
|
+
},
|
|
7662
7790
|
/**
|
|
7663
7791
|
* 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\"!
|
|
7664
7792
|
* @summary Get Instance
|
|
@@ -7817,6 +7945,28 @@ exports.InstancesApiAxiosParamCreator = InstancesApiAxiosParamCreator;
|
|
|
7817
7945
|
var InstancesApiFp = function (configuration) {
|
|
7818
7946
|
var localVarAxiosParamCreator = (0, exports.InstancesApiAxiosParamCreator)(configuration);
|
|
7819
7947
|
return {
|
|
7948
|
+
/**
|
|
7949
|
+
* 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.
|
|
7950
|
+
* @summary Close Instance
|
|
7951
|
+
* @param {string} worldId Must be a valid world ID.
|
|
7952
|
+
* @param {string} instanceId Must be a valid instance ID.
|
|
7953
|
+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
7954
|
+
* @param {*} [options] Override http request option.
|
|
7955
|
+
* @throws {RequiredError}
|
|
7956
|
+
*/
|
|
7957
|
+
closeInstance: function (worldId, instanceId, hardClose, options) {
|
|
7958
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7959
|
+
var localVarAxiosArgs;
|
|
7960
|
+
return __generator(this, function (_a) {
|
|
7961
|
+
switch (_a.label) {
|
|
7962
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.closeInstance(worldId, instanceId, hardClose, options)];
|
|
7963
|
+
case 1:
|
|
7964
|
+
localVarAxiosArgs = _a.sent();
|
|
7965
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
7966
|
+
}
|
|
7967
|
+
});
|
|
7968
|
+
});
|
|
7969
|
+
},
|
|
7820
7970
|
/**
|
|
7821
7971
|
* 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\"!
|
|
7822
7972
|
* @summary Get Instance
|
|
@@ -7910,6 +8060,18 @@ exports.InstancesApiFp = InstancesApiFp;
|
|
|
7910
8060
|
var InstancesApiFactory = function (configuration, basePath, axios) {
|
|
7911
8061
|
var localVarFp = (0, exports.InstancesApiFp)(configuration);
|
|
7912
8062
|
return {
|
|
8063
|
+
/**
|
|
8064
|
+
* 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.
|
|
8065
|
+
* @summary Close Instance
|
|
8066
|
+
* @param {string} worldId Must be a valid world ID.
|
|
8067
|
+
* @param {string} instanceId Must be a valid instance ID.
|
|
8068
|
+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
8069
|
+
* @param {*} [options] Override http request option.
|
|
8070
|
+
* @throws {RequiredError}
|
|
8071
|
+
*/
|
|
8072
|
+
closeInstance: function (worldId, instanceId, hardClose, options) {
|
|
8073
|
+
return localVarFp.closeInstance(worldId, instanceId, hardClose, options).then(function (request) { return request(axios, basePath); });
|
|
8074
|
+
},
|
|
7913
8075
|
/**
|
|
7914
8076
|
* 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\"!
|
|
7915
8077
|
* @summary Get Instance
|
|
@@ -7967,6 +8129,20 @@ var InstancesApi = /** @class */ (function (_super) {
|
|
|
7967
8129
|
function InstancesApi() {
|
|
7968
8130
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
7969
8131
|
}
|
|
8132
|
+
/**
|
|
8133
|
+
* 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.
|
|
8134
|
+
* @summary Close Instance
|
|
8135
|
+
* @param {string} worldId Must be a valid world ID.
|
|
8136
|
+
* @param {string} instanceId Must be a valid instance ID.
|
|
8137
|
+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
8138
|
+
* @param {*} [options] Override http request option.
|
|
8139
|
+
* @throws {RequiredError}
|
|
8140
|
+
* @memberof InstancesApi
|
|
8141
|
+
*/
|
|
8142
|
+
InstancesApi.prototype.closeInstance = function (worldId, instanceId, hardClose, options) {
|
|
8143
|
+
var _this = this;
|
|
8144
|
+
return (0, exports.InstancesApiFp)(this.configuration).closeInstance(worldId, instanceId, hardClose, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8145
|
+
};
|
|
7970
8146
|
/**
|
|
7971
8147
|
* 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\"!
|
|
7972
8148
|
* @summary Get Instance
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* VRChat API Documentation
|
|
3
3
|
*
|
|
4
|
-
* The version of the OpenAPI document: 1.
|
|
4
|
+
* The version of the OpenAPI document: 1.17.1
|
|
5
5
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* VRChat API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.17.1
|
|
8
8
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* VRChat API Documentation
|
|
3
3
|
*
|
|
4
|
-
* The version of the OpenAPI document: 1.
|
|
4
|
+
* The version of the OpenAPI document: 1.17.1
|
|
5
5
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* VRChat API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.17.1
|
|
8
8
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* VRChat API Documentation
|
|
3
3
|
*
|
|
4
|
-
* The version of the OpenAPI document: 1.
|
|
4
|
+
* The version of the OpenAPI document: 1.17.1
|
|
5
5
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* VRChat API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.17.1
|
|
8
8
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* VRChat API Documentation
|
|
3
3
|
*
|
|
4
|
-
* The version of the OpenAPI document: 1.
|
|
4
|
+
* The version of the OpenAPI document: 1.17.1
|
|
5
5
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* VRChat API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.17.1
|
|
8
8
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* VRChat API Documentation
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 1.
|
|
6
|
+
* The version of the OpenAPI document: 1.17.1
|
|
7
7
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|