vrchat 1.17.2 → 1.17.3
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 +336 -14
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +246 -12
- package/dist/api.js +189 -12
- 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.17.
|
|
6
|
+
* The version of the OpenAPI document: 1.17.3
|
|
7
7
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1232,6 +1232,61 @@ export interface CreateGroupRoleRequest {
|
|
|
1232
1232
|
*/
|
|
1233
1233
|
'permissions'?: Array<string>;
|
|
1234
1234
|
}
|
|
1235
|
+
/**
|
|
1236
|
+
*
|
|
1237
|
+
* @export
|
|
1238
|
+
* @interface CreateInstanceRequest
|
|
1239
|
+
*/
|
|
1240
|
+
export interface CreateInstanceRequest {
|
|
1241
|
+
/**
|
|
1242
|
+
* WorldID be \"offline\" on User profiles if you are not friends with that user.
|
|
1243
|
+
* @type {string}
|
|
1244
|
+
* @memberof CreateInstanceRequest
|
|
1245
|
+
*/
|
|
1246
|
+
'worldId': string;
|
|
1247
|
+
/**
|
|
1248
|
+
*
|
|
1249
|
+
* @type {InstanceType}
|
|
1250
|
+
* @memberof CreateInstanceRequest
|
|
1251
|
+
*/
|
|
1252
|
+
'type': InstanceType;
|
|
1253
|
+
/**
|
|
1254
|
+
*
|
|
1255
|
+
* @type {Region}
|
|
1256
|
+
* @memberof CreateInstanceRequest
|
|
1257
|
+
*/
|
|
1258
|
+
'region': Region;
|
|
1259
|
+
/**
|
|
1260
|
+
* A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise
|
|
1261
|
+
* @type {string}
|
|
1262
|
+
* @memberof CreateInstanceRequest
|
|
1263
|
+
*/
|
|
1264
|
+
'ownerId'?: string | null;
|
|
1265
|
+
/**
|
|
1266
|
+
* Group roleIds that are allowed to join if the type is \"group\" and groupAccessType is \"member\"
|
|
1267
|
+
* @type {Array<string>}
|
|
1268
|
+
* @memberof CreateInstanceRequest
|
|
1269
|
+
*/
|
|
1270
|
+
'roleIds'?: Array<string>;
|
|
1271
|
+
/**
|
|
1272
|
+
*
|
|
1273
|
+
* @type {GroupAccessType}
|
|
1274
|
+
* @memberof CreateInstanceRequest
|
|
1275
|
+
*/
|
|
1276
|
+
'groupAccessType'?: GroupAccessType;
|
|
1277
|
+
/**
|
|
1278
|
+
*
|
|
1279
|
+
* @type {boolean}
|
|
1280
|
+
* @memberof CreateInstanceRequest
|
|
1281
|
+
*/
|
|
1282
|
+
'queueEnabled'?: boolean;
|
|
1283
|
+
/**
|
|
1284
|
+
* The time after which users won\'t be allowed to join the instance
|
|
1285
|
+
* @type {string}
|
|
1286
|
+
* @memberof CreateInstanceRequest
|
|
1287
|
+
*/
|
|
1288
|
+
'closedAt'?: string;
|
|
1289
|
+
}
|
|
1235
1290
|
/**
|
|
1236
1291
|
*
|
|
1237
1292
|
* @export
|
|
@@ -4516,6 +4571,107 @@ export interface Notification {
|
|
|
4516
4571
|
*/
|
|
4517
4572
|
'type': NotificationType;
|
|
4518
4573
|
}
|
|
4574
|
+
/**
|
|
4575
|
+
*
|
|
4576
|
+
* @export
|
|
4577
|
+
* @interface NotificationDetailInvite
|
|
4578
|
+
*/
|
|
4579
|
+
export interface NotificationDetailInvite {
|
|
4580
|
+
/**
|
|
4581
|
+
*
|
|
4582
|
+
* @type {string}
|
|
4583
|
+
* @memberof NotificationDetailInvite
|
|
4584
|
+
*/
|
|
4585
|
+
'inviteMessage'?: string;
|
|
4586
|
+
/**
|
|
4587
|
+
* WorldID be \"offline\" on User profiles if you are not friends with that user.
|
|
4588
|
+
* @type {string}
|
|
4589
|
+
* @memberof NotificationDetailInvite
|
|
4590
|
+
*/
|
|
4591
|
+
'worldId': string;
|
|
4592
|
+
/**
|
|
4593
|
+
*
|
|
4594
|
+
* @type {string}
|
|
4595
|
+
* @memberof NotificationDetailInvite
|
|
4596
|
+
*/
|
|
4597
|
+
'worldName': string;
|
|
4598
|
+
}
|
|
4599
|
+
/**
|
|
4600
|
+
*
|
|
4601
|
+
* @export
|
|
4602
|
+
* @interface NotificationDetailInviteResponse
|
|
4603
|
+
*/
|
|
4604
|
+
export interface NotificationDetailInviteResponse {
|
|
4605
|
+
/**
|
|
4606
|
+
*
|
|
4607
|
+
* @type {string}
|
|
4608
|
+
* @memberof NotificationDetailInviteResponse
|
|
4609
|
+
*/
|
|
4610
|
+
'inResponseTo': string;
|
|
4611
|
+
/**
|
|
4612
|
+
*
|
|
4613
|
+
* @type {string}
|
|
4614
|
+
* @memberof NotificationDetailInviteResponse
|
|
4615
|
+
*/
|
|
4616
|
+
'responseMessage': string;
|
|
4617
|
+
}
|
|
4618
|
+
/**
|
|
4619
|
+
*
|
|
4620
|
+
* @export
|
|
4621
|
+
* @interface NotificationDetailRequestInvite
|
|
4622
|
+
*/
|
|
4623
|
+
export interface NotificationDetailRequestInvite {
|
|
4624
|
+
/**
|
|
4625
|
+
* TODO: Does this still exist?
|
|
4626
|
+
* @type {string}
|
|
4627
|
+
* @memberof NotificationDetailRequestInvite
|
|
4628
|
+
*/
|
|
4629
|
+
'platform'?: string;
|
|
4630
|
+
/**
|
|
4631
|
+
* Used when using InviteMessage Slot.
|
|
4632
|
+
* @type {string}
|
|
4633
|
+
* @memberof NotificationDetailRequestInvite
|
|
4634
|
+
*/
|
|
4635
|
+
'requestMessage'?: string;
|
|
4636
|
+
}
|
|
4637
|
+
/**
|
|
4638
|
+
*
|
|
4639
|
+
* @export
|
|
4640
|
+
* @interface NotificationDetailRequestInviteResponse
|
|
4641
|
+
*/
|
|
4642
|
+
export interface NotificationDetailRequestInviteResponse {
|
|
4643
|
+
/**
|
|
4644
|
+
*
|
|
4645
|
+
* @type {string}
|
|
4646
|
+
* @memberof NotificationDetailRequestInviteResponse
|
|
4647
|
+
*/
|
|
4648
|
+
'inResponseTo': string;
|
|
4649
|
+
/**
|
|
4650
|
+
* Used when using InviteMessage Slot.
|
|
4651
|
+
* @type {string}
|
|
4652
|
+
* @memberof NotificationDetailRequestInviteResponse
|
|
4653
|
+
*/
|
|
4654
|
+
'requestMessage'?: string;
|
|
4655
|
+
}
|
|
4656
|
+
/**
|
|
4657
|
+
*
|
|
4658
|
+
* @export
|
|
4659
|
+
* @interface NotificationDetailVoteToKick
|
|
4660
|
+
*/
|
|
4661
|
+
export interface NotificationDetailVoteToKick {
|
|
4662
|
+
/**
|
|
4663
|
+
* 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.
|
|
4664
|
+
* @type {string}
|
|
4665
|
+
* @memberof NotificationDetailVoteToKick
|
|
4666
|
+
*/
|
|
4667
|
+
'initiatorUserId': string;
|
|
4668
|
+
/**
|
|
4669
|
+
* 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.
|
|
4670
|
+
* @type {string}
|
|
4671
|
+
* @memberof NotificationDetailVoteToKick
|
|
4672
|
+
*/
|
|
4673
|
+
'userToKickId': string;
|
|
4674
|
+
}
|
|
4519
4675
|
/**
|
|
4520
4676
|
*
|
|
4521
4677
|
* @export
|
|
@@ -11832,6 +11988,52 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
11832
11988
|
options: localVarRequestOptions,
|
|
11833
11989
|
};
|
|
11834
11990
|
},
|
|
11991
|
+
/**
|
|
11992
|
+
* Edits a Group post
|
|
11993
|
+
* @summary Edits a Group post
|
|
11994
|
+
* @param {string} groupId Must be a valid group ID.
|
|
11995
|
+
* @param {string} notificationId Must be a valid notification ID.
|
|
11996
|
+
* @param {CreateGroupPostRequest} createGroupPostRequest
|
|
11997
|
+
* @param {*} [options] Override http request option.
|
|
11998
|
+
* @throws {RequiredError}
|
|
11999
|
+
*/
|
|
12000
|
+
updateGroupPost: async (groupId: string, notificationId: string, createGroupPostRequest: CreateGroupPostRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12001
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
12002
|
+
assertParamExists('updateGroupPost', 'groupId', groupId)
|
|
12003
|
+
// verify required parameter 'notificationId' is not null or undefined
|
|
12004
|
+
assertParamExists('updateGroupPost', 'notificationId', notificationId)
|
|
12005
|
+
// verify required parameter 'createGroupPostRequest' is not null or undefined
|
|
12006
|
+
assertParamExists('updateGroupPost', 'createGroupPostRequest', createGroupPostRequest)
|
|
12007
|
+
const localVarPath = `/groups/{groupId}/posts/{notificationId}`
|
|
12008
|
+
.replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)))
|
|
12009
|
+
.replace(`{${"notificationId"}}`, encodeURIComponent(String(notificationId)));
|
|
12010
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12011
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12012
|
+
let baseOptions;
|
|
12013
|
+
if (configuration) {
|
|
12014
|
+
baseOptions = configuration.baseOptions;
|
|
12015
|
+
}
|
|
12016
|
+
|
|
12017
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
12018
|
+
const localVarHeaderParameter = {} as any;
|
|
12019
|
+
const localVarQueryParameter = {} as any;
|
|
12020
|
+
|
|
12021
|
+
// authentication authCookie required
|
|
12022
|
+
|
|
12023
|
+
|
|
12024
|
+
|
|
12025
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12026
|
+
|
|
12027
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12028
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12029
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12030
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createGroupPostRequest, localVarRequestOptions, configuration)
|
|
12031
|
+
|
|
12032
|
+
return {
|
|
12033
|
+
url: toPathString(localVarUrlObj),
|
|
12034
|
+
options: localVarRequestOptions,
|
|
12035
|
+
};
|
|
12036
|
+
},
|
|
11835
12037
|
/**
|
|
11836
12038
|
* Updates a group role by ID.
|
|
11837
12039
|
* @summary Update Group Role
|
|
@@ -12377,6 +12579,19 @@ export const GroupsApiFp = function(configuration?: Configuration) {
|
|
|
12377
12579
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateGroupMember(groupId, userId, updateGroupMemberRequest, options);
|
|
12378
12580
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12379
12581
|
},
|
|
12582
|
+
/**
|
|
12583
|
+
* Edits a Group post
|
|
12584
|
+
* @summary Edits a Group post
|
|
12585
|
+
* @param {string} groupId Must be a valid group ID.
|
|
12586
|
+
* @param {string} notificationId Must be a valid notification ID.
|
|
12587
|
+
* @param {CreateGroupPostRequest} createGroupPostRequest
|
|
12588
|
+
* @param {*} [options] Override http request option.
|
|
12589
|
+
* @throws {RequiredError}
|
|
12590
|
+
*/
|
|
12591
|
+
async updateGroupPost(groupId: string, notificationId: string, createGroupPostRequest: CreateGroupPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupPost>> {
|
|
12592
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateGroupPost(groupId, notificationId, createGroupPostRequest, options);
|
|
12593
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12594
|
+
},
|
|
12380
12595
|
/**
|
|
12381
12596
|
* Updates a group role by ID.
|
|
12382
12597
|
* @summary Update Group Role
|
|
@@ -12851,6 +13066,18 @@ export const GroupsApiFactory = function (configuration?: Configuration, basePat
|
|
|
12851
13066
|
updateGroupMember(groupId: string, userId: string, updateGroupMemberRequest?: UpdateGroupMemberRequest, options?: any): AxiosPromise<GroupLimitedMember> {
|
|
12852
13067
|
return localVarFp.updateGroupMember(groupId, userId, updateGroupMemberRequest, options).then((request) => request(axios, basePath));
|
|
12853
13068
|
},
|
|
13069
|
+
/**
|
|
13070
|
+
* Edits a Group post
|
|
13071
|
+
* @summary Edits a Group post
|
|
13072
|
+
* @param {string} groupId Must be a valid group ID.
|
|
13073
|
+
* @param {string} notificationId Must be a valid notification ID.
|
|
13074
|
+
* @param {CreateGroupPostRequest} createGroupPostRequest
|
|
13075
|
+
* @param {*} [options] Override http request option.
|
|
13076
|
+
* @throws {RequiredError}
|
|
13077
|
+
*/
|
|
13078
|
+
updateGroupPost(groupId: string, notificationId: string, createGroupPostRequest: CreateGroupPostRequest, options?: any): AxiosPromise<GroupPost> {
|
|
13079
|
+
return localVarFp.updateGroupPost(groupId, notificationId, createGroupPostRequest, options).then((request) => request(axios, basePath));
|
|
13080
|
+
},
|
|
12854
13081
|
/**
|
|
12855
13082
|
* Updates a group role by ID.
|
|
12856
13083
|
* @summary Update Group Role
|
|
@@ -13404,6 +13631,20 @@ export class GroupsApi extends BaseAPI {
|
|
|
13404
13631
|
return GroupsApiFp(this.configuration).updateGroupMember(groupId, userId, updateGroupMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13405
13632
|
}
|
|
13406
13633
|
|
|
13634
|
+
/**
|
|
13635
|
+
* Edits a Group post
|
|
13636
|
+
* @summary Edits a Group post
|
|
13637
|
+
* @param {string} groupId Must be a valid group ID.
|
|
13638
|
+
* @param {string} notificationId Must be a valid notification ID.
|
|
13639
|
+
* @param {CreateGroupPostRequest} createGroupPostRequest
|
|
13640
|
+
* @param {*} [options] Override http request option.
|
|
13641
|
+
* @throws {RequiredError}
|
|
13642
|
+
* @memberof GroupsApi
|
|
13643
|
+
*/
|
|
13644
|
+
public updateGroupPost(groupId: string, notificationId: string, createGroupPostRequest: CreateGroupPostRequest, options?: AxiosRequestConfig) {
|
|
13645
|
+
return GroupsApiFp(this.configuration).updateGroupPost(groupId, notificationId, createGroupPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13646
|
+
}
|
|
13647
|
+
|
|
13407
13648
|
/**
|
|
13408
13649
|
* Updates a group role by ID.
|
|
13409
13650
|
* @summary Update Group Role
|
|
@@ -13427,15 +13668,16 @@ export class GroupsApi extends BaseAPI {
|
|
|
13427
13668
|
export const InstancesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
13428
13669
|
return {
|
|
13429
13670
|
/**
|
|
13430
|
-
* 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.
|
|
13671
|
+
* Close an instance or update the closedAt time when it will be closed. 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.
|
|
13431
13672
|
* @summary Close Instance
|
|
13432
13673
|
* @param {string} worldId Must be a valid world ID.
|
|
13433
13674
|
* @param {string} instanceId Must be a valid instance ID.
|
|
13434
13675
|
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
13676
|
+
* @param {string} [closedAt] The time after which users won\'t be allowed to join the instances. If omitted, the instance will be closed immediately.
|
|
13435
13677
|
* @param {*} [options] Override http request option.
|
|
13436
13678
|
* @throws {RequiredError}
|
|
13437
13679
|
*/
|
|
13438
|
-
closeInstance: async (worldId: string, instanceId: string, hardClose?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13680
|
+
closeInstance: async (worldId: string, instanceId: string, hardClose?: boolean, closedAt?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13439
13681
|
// verify required parameter 'worldId' is not null or undefined
|
|
13440
13682
|
assertParamExists('closeInstance', 'worldId', worldId)
|
|
13441
13683
|
// verify required parameter 'instanceId' is not null or undefined
|
|
@@ -13460,11 +13702,55 @@ export const InstancesApiAxiosParamCreator = function (configuration?: Configura
|
|
|
13460
13702
|
localVarQueryParameter['hardClose'] = hardClose;
|
|
13461
13703
|
}
|
|
13462
13704
|
|
|
13705
|
+
if (closedAt !== undefined) {
|
|
13706
|
+
localVarQueryParameter['closedAt'] = (closedAt as any instanceof Date) ?
|
|
13707
|
+
(closedAt as any).toISOString() :
|
|
13708
|
+
closedAt;
|
|
13709
|
+
}
|
|
13710
|
+
|
|
13711
|
+
|
|
13712
|
+
|
|
13713
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13714
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13715
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13716
|
+
|
|
13717
|
+
return {
|
|
13718
|
+
url: toPathString(localVarUrlObj),
|
|
13719
|
+
options: localVarRequestOptions,
|
|
13720
|
+
};
|
|
13721
|
+
},
|
|
13722
|
+
/**
|
|
13723
|
+
* Create an instance
|
|
13724
|
+
* @summary Create Instance
|
|
13725
|
+
* @param {CreateInstanceRequest} createInstanceRequest
|
|
13726
|
+
* @param {*} [options] Override http request option.
|
|
13727
|
+
* @throws {RequiredError}
|
|
13728
|
+
*/
|
|
13729
|
+
createInstance: async (createInstanceRequest: CreateInstanceRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13730
|
+
// verify required parameter 'createInstanceRequest' is not null or undefined
|
|
13731
|
+
assertParamExists('createInstance', 'createInstanceRequest', createInstanceRequest)
|
|
13732
|
+
const localVarPath = `/instances`;
|
|
13733
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13734
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13735
|
+
let baseOptions;
|
|
13736
|
+
if (configuration) {
|
|
13737
|
+
baseOptions = configuration.baseOptions;
|
|
13738
|
+
}
|
|
13739
|
+
|
|
13740
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
13741
|
+
const localVarHeaderParameter = {} as any;
|
|
13742
|
+
const localVarQueryParameter = {} as any;
|
|
13743
|
+
|
|
13744
|
+
// authentication authCookie required
|
|
13745
|
+
|
|
13463
13746
|
|
|
13464
13747
|
|
|
13748
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13749
|
+
|
|
13465
13750
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13466
13751
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13467
13752
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13753
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createInstanceRequest, localVarRequestOptions, configuration)
|
|
13468
13754
|
|
|
13469
13755
|
return {
|
|
13470
13756
|
url: toPathString(localVarUrlObj),
|
|
@@ -13638,16 +13924,28 @@ export const InstancesApiFp = function(configuration?: Configuration) {
|
|
|
13638
13924
|
const localVarAxiosParamCreator = InstancesApiAxiosParamCreator(configuration)
|
|
13639
13925
|
return {
|
|
13640
13926
|
/**
|
|
13641
|
-
* 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.
|
|
13927
|
+
* Close an instance or update the closedAt time when it will be closed. 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.
|
|
13642
13928
|
* @summary Close Instance
|
|
13643
13929
|
* @param {string} worldId Must be a valid world ID.
|
|
13644
13930
|
* @param {string} instanceId Must be a valid instance ID.
|
|
13645
13931
|
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
13932
|
+
* @param {string} [closedAt] The time after which users won\'t be allowed to join the instances. If omitted, the instance will be closed immediately.
|
|
13933
|
+
* @param {*} [options] Override http request option.
|
|
13934
|
+
* @throws {RequiredError}
|
|
13935
|
+
*/
|
|
13936
|
+
async closeInstance(worldId: string, instanceId: string, hardClose?: boolean, closedAt?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Instance>> {
|
|
13937
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.closeInstance(worldId, instanceId, hardClose, closedAt, options);
|
|
13938
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13939
|
+
},
|
|
13940
|
+
/**
|
|
13941
|
+
* Create an instance
|
|
13942
|
+
* @summary Create Instance
|
|
13943
|
+
* @param {CreateInstanceRequest} createInstanceRequest
|
|
13646
13944
|
* @param {*} [options] Override http request option.
|
|
13647
13945
|
* @throws {RequiredError}
|
|
13648
13946
|
*/
|
|
13649
|
-
async
|
|
13650
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
13947
|
+
async createInstance(createInstanceRequest: CreateInstanceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Instance>> {
|
|
13948
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createInstance(createInstanceRequest, options);
|
|
13651
13949
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13652
13950
|
},
|
|
13653
13951
|
/**
|
|
@@ -13708,16 +14006,27 @@ export const InstancesApiFactory = function (configuration?: Configuration, base
|
|
|
13708
14006
|
const localVarFp = InstancesApiFp(configuration)
|
|
13709
14007
|
return {
|
|
13710
14008
|
/**
|
|
13711
|
-
* 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.
|
|
14009
|
+
* Close an instance or update the closedAt time when it will be closed. 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.
|
|
13712
14010
|
* @summary Close Instance
|
|
13713
14011
|
* @param {string} worldId Must be a valid world ID.
|
|
13714
14012
|
* @param {string} instanceId Must be a valid instance ID.
|
|
13715
14013
|
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
14014
|
+
* @param {string} [closedAt] The time after which users won\'t be allowed to join the instances. If omitted, the instance will be closed immediately.
|
|
14015
|
+
* @param {*} [options] Override http request option.
|
|
14016
|
+
* @throws {RequiredError}
|
|
14017
|
+
*/
|
|
14018
|
+
closeInstance(worldId: string, instanceId: string, hardClose?: boolean, closedAt?: string, options?: any): AxiosPromise<Instance> {
|
|
14019
|
+
return localVarFp.closeInstance(worldId, instanceId, hardClose, closedAt, options).then((request) => request(axios, basePath));
|
|
14020
|
+
},
|
|
14021
|
+
/**
|
|
14022
|
+
* Create an instance
|
|
14023
|
+
* @summary Create Instance
|
|
14024
|
+
* @param {CreateInstanceRequest} createInstanceRequest
|
|
13716
14025
|
* @param {*} [options] Override http request option.
|
|
13717
14026
|
* @throws {RequiredError}
|
|
13718
14027
|
*/
|
|
13719
|
-
|
|
13720
|
-
return localVarFp.
|
|
14028
|
+
createInstance(createInstanceRequest: CreateInstanceRequest, options?: any): AxiosPromise<Instance> {
|
|
14029
|
+
return localVarFp.createInstance(createInstanceRequest, options).then((request) => request(axios, basePath));
|
|
13721
14030
|
},
|
|
13722
14031
|
/**
|
|
13723
14032
|
* 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\"!
|
|
@@ -13773,17 +14082,30 @@ export const InstancesApiFactory = function (configuration?: Configuration, base
|
|
|
13773
14082
|
*/
|
|
13774
14083
|
export class InstancesApi extends BaseAPI {
|
|
13775
14084
|
/**
|
|
13776
|
-
* 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.
|
|
14085
|
+
* Close an instance or update the closedAt time when it will be closed. 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.
|
|
13777
14086
|
* @summary Close Instance
|
|
13778
14087
|
* @param {string} worldId Must be a valid world ID.
|
|
13779
14088
|
* @param {string} instanceId Must be a valid instance ID.
|
|
13780
14089
|
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
14090
|
+
* @param {string} [closedAt] The time after which users won\'t be allowed to join the instances. If omitted, the instance will be closed immediately.
|
|
14091
|
+
* @param {*} [options] Override http request option.
|
|
14092
|
+
* @throws {RequiredError}
|
|
14093
|
+
* @memberof InstancesApi
|
|
14094
|
+
*/
|
|
14095
|
+
public closeInstance(worldId: string, instanceId: string, hardClose?: boolean, closedAt?: string, options?: AxiosRequestConfig) {
|
|
14096
|
+
return InstancesApiFp(this.configuration).closeInstance(worldId, instanceId, hardClose, closedAt, options).then((request) => request(this.axios, this.basePath));
|
|
14097
|
+
}
|
|
14098
|
+
|
|
14099
|
+
/**
|
|
14100
|
+
* Create an instance
|
|
14101
|
+
* @summary Create Instance
|
|
14102
|
+
* @param {CreateInstanceRequest} createInstanceRequest
|
|
13781
14103
|
* @param {*} [options] Override http request option.
|
|
13782
14104
|
* @throws {RequiredError}
|
|
13783
14105
|
* @memberof InstancesApi
|
|
13784
14106
|
*/
|
|
13785
|
-
public
|
|
13786
|
-
return InstancesApiFp(this.configuration).
|
|
14107
|
+
public createInstance(createInstanceRequest: CreateInstanceRequest, options?: AxiosRequestConfig) {
|
|
14108
|
+
return InstancesApiFp(this.configuration).createInstance(createInstanceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13787
14109
|
}
|
|
13788
14110
|
|
|
13789
14111
|
/**
|
|
@@ -16401,7 +16723,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
16401
16723
|
* @param {*} [options] Override http request option.
|
|
16402
16724
|
* @throws {RequiredError}
|
|
16403
16725
|
*/
|
|
16404
|
-
async getUserGroups(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
16726
|
+
async getUserGroups(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LimitedGroup>>> {
|
|
16405
16727
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserGroups(userId, options);
|
|
16406
16728
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
16407
16729
|
},
|
|
@@ -16490,7 +16812,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
16490
16812
|
* @param {*} [options] Override http request option.
|
|
16491
16813
|
* @throws {RequiredError}
|
|
16492
16814
|
*/
|
|
16493
|
-
getUserGroups(userId: string, options?: any): AxiosPromise<Array<
|
|
16815
|
+
getUserGroups(userId: string, options?: any): AxiosPromise<Array<LimitedGroup>> {
|
|
16494
16816
|
return localVarFp.getUserGroups(userId, options).then((request) => request(axios, basePath));
|
|
16495
16817
|
},
|
|
16496
16818
|
/**
|
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.17.
|
|
6
|
+
* The version of the OpenAPI document: 1.17.3
|
|
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.17.
|
|
6
|
+
* The version of the OpenAPI document: 1.17.3
|
|
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.17.
|
|
6
|
+
* The version of the OpenAPI document: 1.17.3
|
|
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.17.
|
|
4
|
+
* The version of the OpenAPI document: 1.17.3
|
|
5
5
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1222,6 +1222,61 @@ export interface CreateGroupRoleRequest {
|
|
|
1222
1222
|
*/
|
|
1223
1223
|
'permissions'?: Array<string>;
|
|
1224
1224
|
}
|
|
1225
|
+
/**
|
|
1226
|
+
*
|
|
1227
|
+
* @export
|
|
1228
|
+
* @interface CreateInstanceRequest
|
|
1229
|
+
*/
|
|
1230
|
+
export interface CreateInstanceRequest {
|
|
1231
|
+
/**
|
|
1232
|
+
* WorldID be \"offline\" on User profiles if you are not friends with that user.
|
|
1233
|
+
* @type {string}
|
|
1234
|
+
* @memberof CreateInstanceRequest
|
|
1235
|
+
*/
|
|
1236
|
+
'worldId': string;
|
|
1237
|
+
/**
|
|
1238
|
+
*
|
|
1239
|
+
* @type {InstanceType}
|
|
1240
|
+
* @memberof CreateInstanceRequest
|
|
1241
|
+
*/
|
|
1242
|
+
'type': InstanceType;
|
|
1243
|
+
/**
|
|
1244
|
+
*
|
|
1245
|
+
* @type {Region}
|
|
1246
|
+
* @memberof CreateInstanceRequest
|
|
1247
|
+
*/
|
|
1248
|
+
'region': Region;
|
|
1249
|
+
/**
|
|
1250
|
+
* A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise
|
|
1251
|
+
* @type {string}
|
|
1252
|
+
* @memberof CreateInstanceRequest
|
|
1253
|
+
*/
|
|
1254
|
+
'ownerId'?: string | null;
|
|
1255
|
+
/**
|
|
1256
|
+
* Group roleIds that are allowed to join if the type is \"group\" and groupAccessType is \"member\"
|
|
1257
|
+
* @type {Array<string>}
|
|
1258
|
+
* @memberof CreateInstanceRequest
|
|
1259
|
+
*/
|
|
1260
|
+
'roleIds'?: Array<string>;
|
|
1261
|
+
/**
|
|
1262
|
+
*
|
|
1263
|
+
* @type {GroupAccessType}
|
|
1264
|
+
* @memberof CreateInstanceRequest
|
|
1265
|
+
*/
|
|
1266
|
+
'groupAccessType'?: GroupAccessType;
|
|
1267
|
+
/**
|
|
1268
|
+
*
|
|
1269
|
+
* @type {boolean}
|
|
1270
|
+
* @memberof CreateInstanceRequest
|
|
1271
|
+
*/
|
|
1272
|
+
'queueEnabled'?: boolean;
|
|
1273
|
+
/**
|
|
1274
|
+
* The time after which users won\'t be allowed to join the instance
|
|
1275
|
+
* @type {string}
|
|
1276
|
+
* @memberof CreateInstanceRequest
|
|
1277
|
+
*/
|
|
1278
|
+
'closedAt'?: string;
|
|
1279
|
+
}
|
|
1225
1280
|
/**
|
|
1226
1281
|
*
|
|
1227
1282
|
* @export
|
|
@@ -4424,6 +4479,107 @@ export interface Notification {
|
|
|
4424
4479
|
*/
|
|
4425
4480
|
'type': NotificationType;
|
|
4426
4481
|
}
|
|
4482
|
+
/**
|
|
4483
|
+
*
|
|
4484
|
+
* @export
|
|
4485
|
+
* @interface NotificationDetailInvite
|
|
4486
|
+
*/
|
|
4487
|
+
export interface NotificationDetailInvite {
|
|
4488
|
+
/**
|
|
4489
|
+
*
|
|
4490
|
+
* @type {string}
|
|
4491
|
+
* @memberof NotificationDetailInvite
|
|
4492
|
+
*/
|
|
4493
|
+
'inviteMessage'?: string;
|
|
4494
|
+
/**
|
|
4495
|
+
* WorldID be \"offline\" on User profiles if you are not friends with that user.
|
|
4496
|
+
* @type {string}
|
|
4497
|
+
* @memberof NotificationDetailInvite
|
|
4498
|
+
*/
|
|
4499
|
+
'worldId': string;
|
|
4500
|
+
/**
|
|
4501
|
+
*
|
|
4502
|
+
* @type {string}
|
|
4503
|
+
* @memberof NotificationDetailInvite
|
|
4504
|
+
*/
|
|
4505
|
+
'worldName': string;
|
|
4506
|
+
}
|
|
4507
|
+
/**
|
|
4508
|
+
*
|
|
4509
|
+
* @export
|
|
4510
|
+
* @interface NotificationDetailInviteResponse
|
|
4511
|
+
*/
|
|
4512
|
+
export interface NotificationDetailInviteResponse {
|
|
4513
|
+
/**
|
|
4514
|
+
*
|
|
4515
|
+
* @type {string}
|
|
4516
|
+
* @memberof NotificationDetailInviteResponse
|
|
4517
|
+
*/
|
|
4518
|
+
'inResponseTo': string;
|
|
4519
|
+
/**
|
|
4520
|
+
*
|
|
4521
|
+
* @type {string}
|
|
4522
|
+
* @memberof NotificationDetailInviteResponse
|
|
4523
|
+
*/
|
|
4524
|
+
'responseMessage': string;
|
|
4525
|
+
}
|
|
4526
|
+
/**
|
|
4527
|
+
*
|
|
4528
|
+
* @export
|
|
4529
|
+
* @interface NotificationDetailRequestInvite
|
|
4530
|
+
*/
|
|
4531
|
+
export interface NotificationDetailRequestInvite {
|
|
4532
|
+
/**
|
|
4533
|
+
* TODO: Does this still exist?
|
|
4534
|
+
* @type {string}
|
|
4535
|
+
* @memberof NotificationDetailRequestInvite
|
|
4536
|
+
*/
|
|
4537
|
+
'platform'?: string;
|
|
4538
|
+
/**
|
|
4539
|
+
* Used when using InviteMessage Slot.
|
|
4540
|
+
* @type {string}
|
|
4541
|
+
* @memberof NotificationDetailRequestInvite
|
|
4542
|
+
*/
|
|
4543
|
+
'requestMessage'?: string;
|
|
4544
|
+
}
|
|
4545
|
+
/**
|
|
4546
|
+
*
|
|
4547
|
+
* @export
|
|
4548
|
+
* @interface NotificationDetailRequestInviteResponse
|
|
4549
|
+
*/
|
|
4550
|
+
export interface NotificationDetailRequestInviteResponse {
|
|
4551
|
+
/**
|
|
4552
|
+
*
|
|
4553
|
+
* @type {string}
|
|
4554
|
+
* @memberof NotificationDetailRequestInviteResponse
|
|
4555
|
+
*/
|
|
4556
|
+
'inResponseTo': string;
|
|
4557
|
+
/**
|
|
4558
|
+
* Used when using InviteMessage Slot.
|
|
4559
|
+
* @type {string}
|
|
4560
|
+
* @memberof NotificationDetailRequestInviteResponse
|
|
4561
|
+
*/
|
|
4562
|
+
'requestMessage'?: string;
|
|
4563
|
+
}
|
|
4564
|
+
/**
|
|
4565
|
+
*
|
|
4566
|
+
* @export
|
|
4567
|
+
* @interface NotificationDetailVoteToKick
|
|
4568
|
+
*/
|
|
4569
|
+
export interface NotificationDetailVoteToKick {
|
|
4570
|
+
/**
|
|
4571
|
+
* 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.
|
|
4572
|
+
* @type {string}
|
|
4573
|
+
* @memberof NotificationDetailVoteToKick
|
|
4574
|
+
*/
|
|
4575
|
+
'initiatorUserId': string;
|
|
4576
|
+
/**
|
|
4577
|
+
* 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.
|
|
4578
|
+
* @type {string}
|
|
4579
|
+
* @memberof NotificationDetailVoteToKick
|
|
4580
|
+
*/
|
|
4581
|
+
'userToKickId': string;
|
|
4582
|
+
}
|
|
4427
4583
|
/**
|
|
4428
4584
|
*
|
|
4429
4585
|
* @export
|
|
@@ -8485,6 +8641,16 @@ export declare const GroupsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
8485
8641
|
* @throws {RequiredError}
|
|
8486
8642
|
*/
|
|
8487
8643
|
updateGroupMember: (groupId: string, userId: string, updateGroupMemberRequest?: UpdateGroupMemberRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
8644
|
+
/**
|
|
8645
|
+
* Edits a Group post
|
|
8646
|
+
* @summary Edits a Group post
|
|
8647
|
+
* @param {string} groupId Must be a valid group ID.
|
|
8648
|
+
* @param {string} notificationId Must be a valid notification ID.
|
|
8649
|
+
* @param {CreateGroupPostRequest} createGroupPostRequest
|
|
8650
|
+
* @param {*} [options] Override http request option.
|
|
8651
|
+
* @throws {RequiredError}
|
|
8652
|
+
*/
|
|
8653
|
+
updateGroupPost: (groupId: string, notificationId: string, createGroupPostRequest: CreateGroupPostRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
8488
8654
|
/**
|
|
8489
8655
|
* Updates a group role by ID.
|
|
8490
8656
|
* @summary Update Group Role
|
|
@@ -8872,6 +9038,16 @@ export declare const GroupsApiFp: (configuration?: Configuration) => {
|
|
|
8872
9038
|
* @throws {RequiredError}
|
|
8873
9039
|
*/
|
|
8874
9040
|
updateGroupMember(groupId: string, userId: string, updateGroupMemberRequest?: UpdateGroupMemberRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupLimitedMember>>;
|
|
9041
|
+
/**
|
|
9042
|
+
* Edits a Group post
|
|
9043
|
+
* @summary Edits a Group post
|
|
9044
|
+
* @param {string} groupId Must be a valid group ID.
|
|
9045
|
+
* @param {string} notificationId Must be a valid notification ID.
|
|
9046
|
+
* @param {CreateGroupPostRequest} createGroupPostRequest
|
|
9047
|
+
* @param {*} [options] Override http request option.
|
|
9048
|
+
* @throws {RequiredError}
|
|
9049
|
+
*/
|
|
9050
|
+
updateGroupPost(groupId: string, notificationId: string, createGroupPostRequest: CreateGroupPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupPost>>;
|
|
8875
9051
|
/**
|
|
8876
9052
|
* Updates a group role by ID.
|
|
8877
9053
|
* @summary Update Group Role
|
|
@@ -9259,6 +9435,16 @@ export declare const GroupsApiFactory: (configuration?: Configuration, basePath?
|
|
|
9259
9435
|
* @throws {RequiredError}
|
|
9260
9436
|
*/
|
|
9261
9437
|
updateGroupMember(groupId: string, userId: string, updateGroupMemberRequest?: UpdateGroupMemberRequest, options?: any): AxiosPromise<GroupLimitedMember>;
|
|
9438
|
+
/**
|
|
9439
|
+
* Edits a Group post
|
|
9440
|
+
* @summary Edits a Group post
|
|
9441
|
+
* @param {string} groupId Must be a valid group ID.
|
|
9442
|
+
* @param {string} notificationId Must be a valid notification ID.
|
|
9443
|
+
* @param {CreateGroupPostRequest} createGroupPostRequest
|
|
9444
|
+
* @param {*} [options] Override http request option.
|
|
9445
|
+
* @throws {RequiredError}
|
|
9446
|
+
*/
|
|
9447
|
+
updateGroupPost(groupId: string, notificationId: string, createGroupPostRequest: CreateGroupPostRequest, options?: any): AxiosPromise<GroupPost>;
|
|
9262
9448
|
/**
|
|
9263
9449
|
* Updates a group role by ID.
|
|
9264
9450
|
* @summary Update Group Role
|
|
@@ -9688,6 +9874,17 @@ export declare class GroupsApi extends BaseAPI {
|
|
|
9688
9874
|
* @memberof GroupsApi
|
|
9689
9875
|
*/
|
|
9690
9876
|
updateGroupMember(groupId: string, userId: string, updateGroupMemberRequest?: UpdateGroupMemberRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GroupLimitedMember, any>>;
|
|
9877
|
+
/**
|
|
9878
|
+
* Edits a Group post
|
|
9879
|
+
* @summary Edits a Group post
|
|
9880
|
+
* @param {string} groupId Must be a valid group ID.
|
|
9881
|
+
* @param {string} notificationId Must be a valid notification ID.
|
|
9882
|
+
* @param {CreateGroupPostRequest} createGroupPostRequest
|
|
9883
|
+
* @param {*} [options] Override http request option.
|
|
9884
|
+
* @throws {RequiredError}
|
|
9885
|
+
* @memberof GroupsApi
|
|
9886
|
+
*/
|
|
9887
|
+
updateGroupPost(groupId: string, notificationId: string, createGroupPostRequest: CreateGroupPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GroupPost, any>>;
|
|
9691
9888
|
/**
|
|
9692
9889
|
* Updates a group role by ID.
|
|
9693
9890
|
* @summary Update Group Role
|
|
@@ -9706,15 +9903,24 @@ export declare class GroupsApi extends BaseAPI {
|
|
|
9706
9903
|
*/
|
|
9707
9904
|
export declare const InstancesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
9708
9905
|
/**
|
|
9709
|
-
* 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.
|
|
9906
|
+
* Close an instance or update the closedAt time when it will be closed. 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.
|
|
9710
9907
|
* @summary Close Instance
|
|
9711
9908
|
* @param {string} worldId Must be a valid world ID.
|
|
9712
9909
|
* @param {string} instanceId Must be a valid instance ID.
|
|
9713
9910
|
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
9911
|
+
* @param {string} [closedAt] The time after which users won\'t be allowed to join the instances. If omitted, the instance will be closed immediately.
|
|
9912
|
+
* @param {*} [options] Override http request option.
|
|
9913
|
+
* @throws {RequiredError}
|
|
9914
|
+
*/
|
|
9915
|
+
closeInstance: (worldId: string, instanceId: string, hardClose?: boolean, closedAt?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
9916
|
+
/**
|
|
9917
|
+
* Create an instance
|
|
9918
|
+
* @summary Create Instance
|
|
9919
|
+
* @param {CreateInstanceRequest} createInstanceRequest
|
|
9714
9920
|
* @param {*} [options] Override http request option.
|
|
9715
9921
|
* @throws {RequiredError}
|
|
9716
9922
|
*/
|
|
9717
|
-
|
|
9923
|
+
createInstance: (createInstanceRequest: CreateInstanceRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
9718
9924
|
/**
|
|
9719
9925
|
* 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\"!
|
|
9720
9926
|
* @summary Get Instance
|
|
@@ -9757,15 +9963,24 @@ export declare const InstancesApiAxiosParamCreator: (configuration?: Configurati
|
|
|
9757
9963
|
*/
|
|
9758
9964
|
export declare const InstancesApiFp: (configuration?: Configuration) => {
|
|
9759
9965
|
/**
|
|
9760
|
-
* 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.
|
|
9966
|
+
* Close an instance or update the closedAt time when it will be closed. 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.
|
|
9761
9967
|
* @summary Close Instance
|
|
9762
9968
|
* @param {string} worldId Must be a valid world ID.
|
|
9763
9969
|
* @param {string} instanceId Must be a valid instance ID.
|
|
9764
9970
|
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
9971
|
+
* @param {string} [closedAt] The time after which users won\'t be allowed to join the instances. If omitted, the instance will be closed immediately.
|
|
9972
|
+
* @param {*} [options] Override http request option.
|
|
9973
|
+
* @throws {RequiredError}
|
|
9974
|
+
*/
|
|
9975
|
+
closeInstance(worldId: string, instanceId: string, hardClose?: boolean, closedAt?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Instance>>;
|
|
9976
|
+
/**
|
|
9977
|
+
* Create an instance
|
|
9978
|
+
* @summary Create Instance
|
|
9979
|
+
* @param {CreateInstanceRequest} createInstanceRequest
|
|
9765
9980
|
* @param {*} [options] Override http request option.
|
|
9766
9981
|
* @throws {RequiredError}
|
|
9767
9982
|
*/
|
|
9768
|
-
|
|
9983
|
+
createInstance(createInstanceRequest: CreateInstanceRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Instance>>;
|
|
9769
9984
|
/**
|
|
9770
9985
|
* 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\"!
|
|
9771
9986
|
* @summary Get Instance
|
|
@@ -9808,15 +10023,24 @@ export declare const InstancesApiFp: (configuration?: Configuration) => {
|
|
|
9808
10023
|
*/
|
|
9809
10024
|
export declare const InstancesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
9810
10025
|
/**
|
|
9811
|
-
* 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.
|
|
10026
|
+
* Close an instance or update the closedAt time when it will be closed. 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.
|
|
9812
10027
|
* @summary Close Instance
|
|
9813
10028
|
* @param {string} worldId Must be a valid world ID.
|
|
9814
10029
|
* @param {string} instanceId Must be a valid instance ID.
|
|
9815
10030
|
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
10031
|
+
* @param {string} [closedAt] The time after which users won\'t be allowed to join the instances. If omitted, the instance will be closed immediately.
|
|
9816
10032
|
* @param {*} [options] Override http request option.
|
|
9817
10033
|
* @throws {RequiredError}
|
|
9818
10034
|
*/
|
|
9819
|
-
closeInstance(worldId: string, instanceId: string, hardClose?: boolean, options?: any): AxiosPromise<Instance>;
|
|
10035
|
+
closeInstance(worldId: string, instanceId: string, hardClose?: boolean, closedAt?: string, options?: any): AxiosPromise<Instance>;
|
|
10036
|
+
/**
|
|
10037
|
+
* Create an instance
|
|
10038
|
+
* @summary Create Instance
|
|
10039
|
+
* @param {CreateInstanceRequest} createInstanceRequest
|
|
10040
|
+
* @param {*} [options] Override http request option.
|
|
10041
|
+
* @throws {RequiredError}
|
|
10042
|
+
*/
|
|
10043
|
+
createInstance(createInstanceRequest: CreateInstanceRequest, options?: any): AxiosPromise<Instance>;
|
|
9820
10044
|
/**
|
|
9821
10045
|
* 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\"!
|
|
9822
10046
|
* @summary Get Instance
|
|
@@ -9861,16 +10085,26 @@ export declare const InstancesApiFactory: (configuration?: Configuration, basePa
|
|
|
9861
10085
|
*/
|
|
9862
10086
|
export declare class InstancesApi extends BaseAPI {
|
|
9863
10087
|
/**
|
|
9864
|
-
* 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.
|
|
10088
|
+
* Close an instance or update the closedAt time when it will be closed. 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.
|
|
9865
10089
|
* @summary Close Instance
|
|
9866
10090
|
* @param {string} worldId Must be a valid world ID.
|
|
9867
10091
|
* @param {string} instanceId Must be a valid instance ID.
|
|
9868
10092
|
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
10093
|
+
* @param {string} [closedAt] The time after which users won\'t be allowed to join the instances. If omitted, the instance will be closed immediately.
|
|
10094
|
+
* @param {*} [options] Override http request option.
|
|
10095
|
+
* @throws {RequiredError}
|
|
10096
|
+
* @memberof InstancesApi
|
|
10097
|
+
*/
|
|
10098
|
+
closeInstance(worldId: string, instanceId: string, hardClose?: boolean, closedAt?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Instance, any>>;
|
|
10099
|
+
/**
|
|
10100
|
+
* Create an instance
|
|
10101
|
+
* @summary Create Instance
|
|
10102
|
+
* @param {CreateInstanceRequest} createInstanceRequest
|
|
9869
10103
|
* @param {*} [options] Override http request option.
|
|
9870
10104
|
* @throws {RequiredError}
|
|
9871
10105
|
* @memberof InstancesApi
|
|
9872
10106
|
*/
|
|
9873
|
-
|
|
10107
|
+
createInstance(createInstanceRequest: CreateInstanceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Instance, any>>;
|
|
9874
10108
|
/**
|
|
9875
10109
|
* 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\"!
|
|
9876
10110
|
* @summary Get Instance
|
|
@@ -11129,7 +11363,7 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
11129
11363
|
* @param {*} [options] Override http request option.
|
|
11130
11364
|
* @throws {RequiredError}
|
|
11131
11365
|
*/
|
|
11132
|
-
getUserGroups(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<
|
|
11366
|
+
getUserGroups(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LimitedGroup>>>;
|
|
11133
11367
|
/**
|
|
11134
11368
|
* Returns the current group that the user is currently representing
|
|
11135
11369
|
* @summary Get user\'s current represented group
|
|
@@ -11196,7 +11430,7 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
|
|
|
11196
11430
|
* @param {*} [options] Override http request option.
|
|
11197
11431
|
* @throws {RequiredError}
|
|
11198
11432
|
*/
|
|
11199
|
-
getUserGroups(userId: string, options?: any): AxiosPromise<Array<
|
|
11433
|
+
getUserGroups(userId: string, options?: any): AxiosPromise<Array<LimitedGroup>>;
|
|
11200
11434
|
/**
|
|
11201
11435
|
* Returns the current group that the user is currently representing
|
|
11202
11436
|
* @summary Get user\'s current represented group
|
|
@@ -11269,7 +11503,7 @@ export declare class UsersApi extends BaseAPI {
|
|
|
11269
11503
|
* @throws {RequiredError}
|
|
11270
11504
|
* @memberof UsersApi
|
|
11271
11505
|
*/
|
|
11272
|
-
getUserGroups(userId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
11506
|
+
getUserGroups(userId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<LimitedGroup[], any>>;
|
|
11273
11507
|
/**
|
|
11274
11508
|
* Returns the current group that the user is currently representing
|
|
11275
11509
|
* @summary Get user\'s current represented group
|
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.17.
|
|
7
|
+
* The version of the OpenAPI document: 1.17.3
|
|
8
8
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -6052,6 +6052,49 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
6052
6052
|
});
|
|
6053
6053
|
});
|
|
6054
6054
|
},
|
|
6055
|
+
/**
|
|
6056
|
+
* Edits a Group post
|
|
6057
|
+
* @summary Edits a Group post
|
|
6058
|
+
* @param {string} groupId Must be a valid group ID.
|
|
6059
|
+
* @param {string} notificationId Must be a valid notification ID.
|
|
6060
|
+
* @param {CreateGroupPostRequest} createGroupPostRequest
|
|
6061
|
+
* @param {*} [options] Override http request option.
|
|
6062
|
+
* @throws {RequiredError}
|
|
6063
|
+
*/
|
|
6064
|
+
updateGroupPost: function (groupId, notificationId, createGroupPostRequest, options) {
|
|
6065
|
+
if (options === void 0) { options = {}; }
|
|
6066
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
6067
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
6068
|
+
return __generator(this, function (_a) {
|
|
6069
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
6070
|
+
(0, common_1.assertParamExists)('updateGroupPost', 'groupId', groupId);
|
|
6071
|
+
// verify required parameter 'notificationId' is not null or undefined
|
|
6072
|
+
(0, common_1.assertParamExists)('updateGroupPost', 'notificationId', notificationId);
|
|
6073
|
+
// verify required parameter 'createGroupPostRequest' is not null or undefined
|
|
6074
|
+
(0, common_1.assertParamExists)('updateGroupPost', 'createGroupPostRequest', createGroupPostRequest);
|
|
6075
|
+
localVarPath = "/groups/{groupId}/posts/{notificationId}"
|
|
6076
|
+
.replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)))
|
|
6077
|
+
.replace("{".concat("notificationId", "}"), encodeURIComponent(String(notificationId)));
|
|
6078
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6079
|
+
if (configuration) {
|
|
6080
|
+
baseOptions = configuration.baseOptions;
|
|
6081
|
+
}
|
|
6082
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
6083
|
+
localVarHeaderParameter = {};
|
|
6084
|
+
localVarQueryParameter = {};
|
|
6085
|
+
// authentication authCookie required
|
|
6086
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
6087
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6088
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6089
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6090
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createGroupPostRequest, localVarRequestOptions, configuration);
|
|
6091
|
+
return [2 /*return*/, {
|
|
6092
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6093
|
+
options: localVarRequestOptions,
|
|
6094
|
+
}];
|
|
6095
|
+
});
|
|
6096
|
+
});
|
|
6097
|
+
},
|
|
6055
6098
|
/**
|
|
6056
6099
|
* Updates a group role by ID.
|
|
6057
6100
|
* @summary Update Group Role
|
|
@@ -6954,6 +6997,28 @@ var GroupsApiFp = function (configuration) {
|
|
|
6954
6997
|
});
|
|
6955
6998
|
});
|
|
6956
6999
|
},
|
|
7000
|
+
/**
|
|
7001
|
+
* Edits a Group post
|
|
7002
|
+
* @summary Edits a Group post
|
|
7003
|
+
* @param {string} groupId Must be a valid group ID.
|
|
7004
|
+
* @param {string} notificationId Must be a valid notification ID.
|
|
7005
|
+
* @param {CreateGroupPostRequest} createGroupPostRequest
|
|
7006
|
+
* @param {*} [options] Override http request option.
|
|
7007
|
+
* @throws {RequiredError}
|
|
7008
|
+
*/
|
|
7009
|
+
updateGroupPost: function (groupId, notificationId, createGroupPostRequest, options) {
|
|
7010
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7011
|
+
var localVarAxiosArgs;
|
|
7012
|
+
return __generator(this, function (_a) {
|
|
7013
|
+
switch (_a.label) {
|
|
7014
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateGroupPost(groupId, notificationId, createGroupPostRequest, options)];
|
|
7015
|
+
case 1:
|
|
7016
|
+
localVarAxiosArgs = _a.sent();
|
|
7017
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
7018
|
+
}
|
|
7019
|
+
});
|
|
7020
|
+
});
|
|
7021
|
+
},
|
|
6957
7022
|
/**
|
|
6958
7023
|
* Updates a group role by ID.
|
|
6959
7024
|
* @summary Update Group Role
|
|
@@ -7437,6 +7502,18 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
|
|
|
7437
7502
|
updateGroupMember: function (groupId, userId, updateGroupMemberRequest, options) {
|
|
7438
7503
|
return localVarFp.updateGroupMember(groupId, userId, updateGroupMemberRequest, options).then(function (request) { return request(axios, basePath); });
|
|
7439
7504
|
},
|
|
7505
|
+
/**
|
|
7506
|
+
* Edits a Group post
|
|
7507
|
+
* @summary Edits a Group post
|
|
7508
|
+
* @param {string} groupId Must be a valid group ID.
|
|
7509
|
+
* @param {string} notificationId Must be a valid notification ID.
|
|
7510
|
+
* @param {CreateGroupPostRequest} createGroupPostRequest
|
|
7511
|
+
* @param {*} [options] Override http request option.
|
|
7512
|
+
* @throws {RequiredError}
|
|
7513
|
+
*/
|
|
7514
|
+
updateGroupPost: function (groupId, notificationId, createGroupPostRequest, options) {
|
|
7515
|
+
return localVarFp.updateGroupPost(groupId, notificationId, createGroupPostRequest, options).then(function (request) { return request(axios, basePath); });
|
|
7516
|
+
},
|
|
7440
7517
|
/**
|
|
7441
7518
|
* Updates a group role by ID.
|
|
7442
7519
|
* @summary Update Group Role
|
|
@@ -7994,6 +8071,20 @@ var GroupsApi = /** @class */ (function (_super) {
|
|
|
7994
8071
|
var _this = this;
|
|
7995
8072
|
return (0, exports.GroupsApiFp)(this.configuration).updateGroupMember(groupId, userId, updateGroupMemberRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7996
8073
|
};
|
|
8074
|
+
/**
|
|
8075
|
+
* Edits a Group post
|
|
8076
|
+
* @summary Edits a Group post
|
|
8077
|
+
* @param {string} groupId Must be a valid group ID.
|
|
8078
|
+
* @param {string} notificationId Must be a valid notification ID.
|
|
8079
|
+
* @param {CreateGroupPostRequest} createGroupPostRequest
|
|
8080
|
+
* @param {*} [options] Override http request option.
|
|
8081
|
+
* @throws {RequiredError}
|
|
8082
|
+
* @memberof GroupsApi
|
|
8083
|
+
*/
|
|
8084
|
+
GroupsApi.prototype.updateGroupPost = function (groupId, notificationId, createGroupPostRequest, options) {
|
|
8085
|
+
var _this = this;
|
|
8086
|
+
return (0, exports.GroupsApiFp)(this.configuration).updateGroupPost(groupId, notificationId, createGroupPostRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8087
|
+
};
|
|
7997
8088
|
/**
|
|
7998
8089
|
* Updates a group role by ID.
|
|
7999
8090
|
* @summary Update Group Role
|
|
@@ -8019,15 +8110,16 @@ var InstancesApiAxiosParamCreator = function (configuration) {
|
|
|
8019
8110
|
var _this = this;
|
|
8020
8111
|
return {
|
|
8021
8112
|
/**
|
|
8022
|
-
* 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.
|
|
8113
|
+
* Close an instance or update the closedAt time when it will be closed. 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.
|
|
8023
8114
|
* @summary Close Instance
|
|
8024
8115
|
* @param {string} worldId Must be a valid world ID.
|
|
8025
8116
|
* @param {string} instanceId Must be a valid instance ID.
|
|
8026
8117
|
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
8118
|
+
* @param {string} [closedAt] The time after which users won\'t be allowed to join the instances. If omitted, the instance will be closed immediately.
|
|
8027
8119
|
* @param {*} [options] Override http request option.
|
|
8028
8120
|
* @throws {RequiredError}
|
|
8029
8121
|
*/
|
|
8030
|
-
closeInstance: function (worldId, instanceId, hardClose, options) {
|
|
8122
|
+
closeInstance: function (worldId, instanceId, hardClose, closedAt, options) {
|
|
8031
8123
|
if (options === void 0) { options = {}; }
|
|
8032
8124
|
return __awaiter(_this, void 0, void 0, function () {
|
|
8033
8125
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -8050,9 +8142,49 @@ var InstancesApiAxiosParamCreator = function (configuration) {
|
|
|
8050
8142
|
if (hardClose !== undefined) {
|
|
8051
8143
|
localVarQueryParameter['hardClose'] = hardClose;
|
|
8052
8144
|
}
|
|
8145
|
+
if (closedAt !== undefined) {
|
|
8146
|
+
localVarQueryParameter['closedAt'] = (closedAt instanceof Date) ?
|
|
8147
|
+
closedAt.toISOString() :
|
|
8148
|
+
closedAt;
|
|
8149
|
+
}
|
|
8150
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8151
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8152
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8153
|
+
return [2 /*return*/, {
|
|
8154
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8155
|
+
options: localVarRequestOptions,
|
|
8156
|
+
}];
|
|
8157
|
+
});
|
|
8158
|
+
});
|
|
8159
|
+
},
|
|
8160
|
+
/**
|
|
8161
|
+
* Create an instance
|
|
8162
|
+
* @summary Create Instance
|
|
8163
|
+
* @param {CreateInstanceRequest} createInstanceRequest
|
|
8164
|
+
* @param {*} [options] Override http request option.
|
|
8165
|
+
* @throws {RequiredError}
|
|
8166
|
+
*/
|
|
8167
|
+
createInstance: function (createInstanceRequest, options) {
|
|
8168
|
+
if (options === void 0) { options = {}; }
|
|
8169
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
8170
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8171
|
+
return __generator(this, function (_a) {
|
|
8172
|
+
// verify required parameter 'createInstanceRequest' is not null or undefined
|
|
8173
|
+
(0, common_1.assertParamExists)('createInstance', 'createInstanceRequest', createInstanceRequest);
|
|
8174
|
+
localVarPath = "/instances";
|
|
8175
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8176
|
+
if (configuration) {
|
|
8177
|
+
baseOptions = configuration.baseOptions;
|
|
8178
|
+
}
|
|
8179
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
8180
|
+
localVarHeaderParameter = {};
|
|
8181
|
+
localVarQueryParameter = {};
|
|
8182
|
+
// authentication authCookie required
|
|
8183
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8053
8184
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8054
8185
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8055
8186
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8187
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createInstanceRequest, localVarRequestOptions, configuration);
|
|
8056
8188
|
return [2 /*return*/, {
|
|
8057
8189
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8058
8190
|
options: localVarRequestOptions,
|
|
@@ -8219,20 +8351,41 @@ var InstancesApiFp = function (configuration) {
|
|
|
8219
8351
|
var localVarAxiosParamCreator = (0, exports.InstancesApiAxiosParamCreator)(configuration);
|
|
8220
8352
|
return {
|
|
8221
8353
|
/**
|
|
8222
|
-
* 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.
|
|
8354
|
+
* Close an instance or update the closedAt time when it will be closed. 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.
|
|
8223
8355
|
* @summary Close Instance
|
|
8224
8356
|
* @param {string} worldId Must be a valid world ID.
|
|
8225
8357
|
* @param {string} instanceId Must be a valid instance ID.
|
|
8226
8358
|
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
8359
|
+
* @param {string} [closedAt] The time after which users won\'t be allowed to join the instances. If omitted, the instance will be closed immediately.
|
|
8360
|
+
* @param {*} [options] Override http request option.
|
|
8361
|
+
* @throws {RequiredError}
|
|
8362
|
+
*/
|
|
8363
|
+
closeInstance: function (worldId, instanceId, hardClose, closedAt, options) {
|
|
8364
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8365
|
+
var localVarAxiosArgs;
|
|
8366
|
+
return __generator(this, function (_a) {
|
|
8367
|
+
switch (_a.label) {
|
|
8368
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.closeInstance(worldId, instanceId, hardClose, closedAt, options)];
|
|
8369
|
+
case 1:
|
|
8370
|
+
localVarAxiosArgs = _a.sent();
|
|
8371
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
8372
|
+
}
|
|
8373
|
+
});
|
|
8374
|
+
});
|
|
8375
|
+
},
|
|
8376
|
+
/**
|
|
8377
|
+
* Create an instance
|
|
8378
|
+
* @summary Create Instance
|
|
8379
|
+
* @param {CreateInstanceRequest} createInstanceRequest
|
|
8227
8380
|
* @param {*} [options] Override http request option.
|
|
8228
8381
|
* @throws {RequiredError}
|
|
8229
8382
|
*/
|
|
8230
|
-
|
|
8383
|
+
createInstance: function (createInstanceRequest, options) {
|
|
8231
8384
|
return __awaiter(this, void 0, void 0, function () {
|
|
8232
8385
|
var localVarAxiosArgs;
|
|
8233
8386
|
return __generator(this, function (_a) {
|
|
8234
8387
|
switch (_a.label) {
|
|
8235
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8388
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createInstance(createInstanceRequest, options)];
|
|
8236
8389
|
case 1:
|
|
8237
8390
|
localVarAxiosArgs = _a.sent();
|
|
8238
8391
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -8334,16 +8487,27 @@ var InstancesApiFactory = function (configuration, basePath, axios) {
|
|
|
8334
8487
|
var localVarFp = (0, exports.InstancesApiFp)(configuration);
|
|
8335
8488
|
return {
|
|
8336
8489
|
/**
|
|
8337
|
-
* 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.
|
|
8490
|
+
* Close an instance or update the closedAt time when it will be closed. 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.
|
|
8338
8491
|
* @summary Close Instance
|
|
8339
8492
|
* @param {string} worldId Must be a valid world ID.
|
|
8340
8493
|
* @param {string} instanceId Must be a valid instance ID.
|
|
8341
8494
|
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
8495
|
+
* @param {string} [closedAt] The time after which users won\'t be allowed to join the instances. If omitted, the instance will be closed immediately.
|
|
8496
|
+
* @param {*} [options] Override http request option.
|
|
8497
|
+
* @throws {RequiredError}
|
|
8498
|
+
*/
|
|
8499
|
+
closeInstance: function (worldId, instanceId, hardClose, closedAt, options) {
|
|
8500
|
+
return localVarFp.closeInstance(worldId, instanceId, hardClose, closedAt, options).then(function (request) { return request(axios, basePath); });
|
|
8501
|
+
},
|
|
8502
|
+
/**
|
|
8503
|
+
* Create an instance
|
|
8504
|
+
* @summary Create Instance
|
|
8505
|
+
* @param {CreateInstanceRequest} createInstanceRequest
|
|
8342
8506
|
* @param {*} [options] Override http request option.
|
|
8343
8507
|
* @throws {RequiredError}
|
|
8344
8508
|
*/
|
|
8345
|
-
|
|
8346
|
-
return localVarFp.
|
|
8509
|
+
createInstance: function (createInstanceRequest, options) {
|
|
8510
|
+
return localVarFp.createInstance(createInstanceRequest, options).then(function (request) { return request(axios, basePath); });
|
|
8347
8511
|
},
|
|
8348
8512
|
/**
|
|
8349
8513
|
* 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\"!
|
|
@@ -8403,18 +8567,31 @@ var InstancesApi = /** @class */ (function (_super) {
|
|
|
8403
8567
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
8404
8568
|
}
|
|
8405
8569
|
/**
|
|
8406
|
-
* 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.
|
|
8570
|
+
* Close an instance or update the closedAt time when it will be closed. 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.
|
|
8407
8571
|
* @summary Close Instance
|
|
8408
8572
|
* @param {string} worldId Must be a valid world ID.
|
|
8409
8573
|
* @param {string} instanceId Must be a valid instance ID.
|
|
8410
8574
|
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
8575
|
+
* @param {string} [closedAt] The time after which users won\'t be allowed to join the instances. If omitted, the instance will be closed immediately.
|
|
8576
|
+
* @param {*} [options] Override http request option.
|
|
8577
|
+
* @throws {RequiredError}
|
|
8578
|
+
* @memberof InstancesApi
|
|
8579
|
+
*/
|
|
8580
|
+
InstancesApi.prototype.closeInstance = function (worldId, instanceId, hardClose, closedAt, options) {
|
|
8581
|
+
var _this = this;
|
|
8582
|
+
return (0, exports.InstancesApiFp)(this.configuration).closeInstance(worldId, instanceId, hardClose, closedAt, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8583
|
+
};
|
|
8584
|
+
/**
|
|
8585
|
+
* Create an instance
|
|
8586
|
+
* @summary Create Instance
|
|
8587
|
+
* @param {CreateInstanceRequest} createInstanceRequest
|
|
8411
8588
|
* @param {*} [options] Override http request option.
|
|
8412
8589
|
* @throws {RequiredError}
|
|
8413
8590
|
* @memberof InstancesApi
|
|
8414
8591
|
*/
|
|
8415
|
-
InstancesApi.prototype.
|
|
8592
|
+
InstancesApi.prototype.createInstance = function (createInstanceRequest, options) {
|
|
8416
8593
|
var _this = this;
|
|
8417
|
-
return (0, exports.InstancesApiFp)(this.configuration).
|
|
8594
|
+
return (0, exports.InstancesApiFp)(this.configuration).createInstance(createInstanceRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8418
8595
|
};
|
|
8419
8596
|
/**
|
|
8420
8597
|
* 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\"!
|
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.17.
|
|
4
|
+
* The version of the OpenAPI document: 1.17.3
|
|
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.17.
|
|
7
|
+
* The version of the OpenAPI document: 1.17.3
|
|
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.17.
|
|
4
|
+
* The version of the OpenAPI document: 1.17.3
|
|
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.17.
|
|
7
|
+
* The version of the OpenAPI document: 1.17.3
|
|
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.17.
|
|
4
|
+
* The version of the OpenAPI document: 1.17.3
|
|
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.17.
|
|
7
|
+
* The version of the OpenAPI document: 1.17.3
|
|
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.17.
|
|
4
|
+
* The version of the OpenAPI document: 1.17.3
|
|
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.17.
|
|
7
|
+
* The version of the OpenAPI document: 1.17.3
|
|
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.17.
|
|
6
|
+
* The version of the OpenAPI document: 1.17.3
|
|
7
7
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|