vrchat 1.17.1 → 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 +719 -14
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +497 -12
- package/dist/api.js +464 -14
- 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/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).
|
|
@@ -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 = exports.FriendsApiAxiosParamCreator = void 0;
|
|
77
|
+
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.GroupPostVisibility = 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 = exports.FilesApi = void 0;
|
|
79
79
|
var axios_1 = require("axios");
|
|
80
80
|
// Some imports not used depending on template conditions
|
|
81
81
|
// @ts-ignore
|
|
@@ -187,6 +187,15 @@ exports.GroupMemberStatus = {
|
|
|
187
187
|
Invited: 'invited',
|
|
188
188
|
Banned: 'banned'
|
|
189
189
|
};
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* @export
|
|
193
|
+
* @enum {string}
|
|
194
|
+
*/
|
|
195
|
+
exports.GroupPostVisibility = {
|
|
196
|
+
Group: 'group',
|
|
197
|
+
Public: 'public'
|
|
198
|
+
};
|
|
190
199
|
/**
|
|
191
200
|
*
|
|
192
201
|
* @export
|
|
@@ -4555,6 +4564,45 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
4555
4564
|
});
|
|
4556
4565
|
});
|
|
4557
4566
|
},
|
|
4567
|
+
/**
|
|
4568
|
+
* Create a post in a Group.
|
|
4569
|
+
* @summary Create a post in a Group
|
|
4570
|
+
* @param {string} groupId Must be a valid group ID.
|
|
4571
|
+
* @param {CreateGroupPostRequest} createGroupPostRequest
|
|
4572
|
+
* @param {*} [options] Override http request option.
|
|
4573
|
+
* @throws {RequiredError}
|
|
4574
|
+
*/
|
|
4575
|
+
addGroupPost: function (groupId, createGroupPostRequest, options) {
|
|
4576
|
+
if (options === void 0) { options = {}; }
|
|
4577
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
4578
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
4579
|
+
return __generator(this, function (_a) {
|
|
4580
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
4581
|
+
(0, common_1.assertParamExists)('addGroupPost', 'groupId', groupId);
|
|
4582
|
+
// verify required parameter 'createGroupPostRequest' is not null or undefined
|
|
4583
|
+
(0, common_1.assertParamExists)('addGroupPost', 'createGroupPostRequest', createGroupPostRequest);
|
|
4584
|
+
localVarPath = "/groups/{groupId}/posts"
|
|
4585
|
+
.replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)));
|
|
4586
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4587
|
+
if (configuration) {
|
|
4588
|
+
baseOptions = configuration.baseOptions;
|
|
4589
|
+
}
|
|
4590
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
4591
|
+
localVarHeaderParameter = {};
|
|
4592
|
+
localVarQueryParameter = {};
|
|
4593
|
+
// authentication authCookie required
|
|
4594
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4595
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4596
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4597
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4598
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createGroupPostRequest, localVarRequestOptions, configuration);
|
|
4599
|
+
return [2 /*return*/, {
|
|
4600
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4601
|
+
options: localVarRequestOptions,
|
|
4602
|
+
}];
|
|
4603
|
+
});
|
|
4604
|
+
});
|
|
4605
|
+
},
|
|
4558
4606
|
/**
|
|
4559
4607
|
* Bans a user from a Group.
|
|
4560
4608
|
* @summary Ban Group Member
|
|
@@ -5005,6 +5053,44 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
5005
5053
|
});
|
|
5006
5054
|
});
|
|
5007
5055
|
},
|
|
5056
|
+
/**
|
|
5057
|
+
* Delete a Group post
|
|
5058
|
+
* @summary Delete a Group post
|
|
5059
|
+
* @param {string} groupId Must be a valid group ID.
|
|
5060
|
+
* @param {string} notificationId Must be a valid notification ID.
|
|
5061
|
+
* @param {*} [options] Override http request option.
|
|
5062
|
+
* @throws {RequiredError}
|
|
5063
|
+
*/
|
|
5064
|
+
deleteGroupPost: function (groupId, notificationId, options) {
|
|
5065
|
+
if (options === void 0) { options = {}; }
|
|
5066
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
5067
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5068
|
+
return __generator(this, function (_a) {
|
|
5069
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
5070
|
+
(0, common_1.assertParamExists)('deleteGroupPost', 'groupId', groupId);
|
|
5071
|
+
// verify required parameter 'notificationId' is not null or undefined
|
|
5072
|
+
(0, common_1.assertParamExists)('deleteGroupPost', 'notificationId', notificationId);
|
|
5073
|
+
localVarPath = "/groups/{groupId}/posts/{notificationId}"
|
|
5074
|
+
.replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)))
|
|
5075
|
+
.replace("{".concat("notificationId", "}"), encodeURIComponent(String(notificationId)));
|
|
5076
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5077
|
+
if (configuration) {
|
|
5078
|
+
baseOptions = configuration.baseOptions;
|
|
5079
|
+
}
|
|
5080
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
5081
|
+
localVarHeaderParameter = {};
|
|
5082
|
+
localVarQueryParameter = {};
|
|
5083
|
+
// authentication authCookie required
|
|
5084
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5085
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5086
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5087
|
+
return [2 /*return*/, {
|
|
5088
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5089
|
+
options: localVarRequestOptions,
|
|
5090
|
+
}];
|
|
5091
|
+
});
|
|
5092
|
+
});
|
|
5093
|
+
},
|
|
5008
5094
|
/**
|
|
5009
5095
|
* Deletes a Group Role by ID and returns the remaining roles.
|
|
5010
5096
|
* @summary Delete Group Role
|
|
@@ -5455,6 +5541,52 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
5455
5541
|
});
|
|
5456
5542
|
});
|
|
5457
5543
|
},
|
|
5544
|
+
/**
|
|
5545
|
+
* Get posts from a Group
|
|
5546
|
+
* @summary Get posts from a Group
|
|
5547
|
+
* @param {string} groupId Must be a valid group ID.
|
|
5548
|
+
* @param {number} [n] The number of objects to return.
|
|
5549
|
+
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
5550
|
+
* @param {boolean} [publicOnly] See public posts only.
|
|
5551
|
+
* @param {*} [options] Override http request option.
|
|
5552
|
+
* @throws {RequiredError}
|
|
5553
|
+
*/
|
|
5554
|
+
getGroupPost: function (groupId, n, offset, publicOnly, options) {
|
|
5555
|
+
if (options === void 0) { options = {}; }
|
|
5556
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
5557
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
5558
|
+
return __generator(this, function (_a) {
|
|
5559
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
5560
|
+
(0, common_1.assertParamExists)('getGroupPost', 'groupId', groupId);
|
|
5561
|
+
localVarPath = "/groups/{groupId}/posts"
|
|
5562
|
+
.replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)));
|
|
5563
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5564
|
+
if (configuration) {
|
|
5565
|
+
baseOptions = configuration.baseOptions;
|
|
5566
|
+
}
|
|
5567
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
5568
|
+
localVarHeaderParameter = {};
|
|
5569
|
+
localVarQueryParameter = {};
|
|
5570
|
+
// authentication authCookie required
|
|
5571
|
+
if (n !== undefined) {
|
|
5572
|
+
localVarQueryParameter['n'] = n;
|
|
5573
|
+
}
|
|
5574
|
+
if (offset !== undefined) {
|
|
5575
|
+
localVarQueryParameter['offset'] = offset;
|
|
5576
|
+
}
|
|
5577
|
+
if (publicOnly !== undefined) {
|
|
5578
|
+
localVarQueryParameter['publicOnly'] = publicOnly;
|
|
5579
|
+
}
|
|
5580
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5581
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5582
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5583
|
+
return [2 /*return*/, {
|
|
5584
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5585
|
+
options: localVarRequestOptions,
|
|
5586
|
+
}];
|
|
5587
|
+
});
|
|
5588
|
+
});
|
|
5589
|
+
},
|
|
5458
5590
|
/**
|
|
5459
5591
|
* Returns a list of members that have requested to join the Group.
|
|
5460
5592
|
* @summary Get Group Join Requests
|
|
@@ -5920,6 +6052,49 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
5920
6052
|
});
|
|
5921
6053
|
});
|
|
5922
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
|
+
},
|
|
5923
6098
|
/**
|
|
5924
6099
|
* Updates a group role by ID.
|
|
5925
6100
|
* @summary Update Group Role
|
|
@@ -6015,6 +6190,27 @@ var GroupsApiFp = function (configuration) {
|
|
|
6015
6190
|
});
|
|
6016
6191
|
});
|
|
6017
6192
|
},
|
|
6193
|
+
/**
|
|
6194
|
+
* Create a post in a Group.
|
|
6195
|
+
* @summary Create a post in a Group
|
|
6196
|
+
* @param {string} groupId Must be a valid group ID.
|
|
6197
|
+
* @param {CreateGroupPostRequest} createGroupPostRequest
|
|
6198
|
+
* @param {*} [options] Override http request option.
|
|
6199
|
+
* @throws {RequiredError}
|
|
6200
|
+
*/
|
|
6201
|
+
addGroupPost: function (groupId, createGroupPostRequest, options) {
|
|
6202
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6203
|
+
var localVarAxiosArgs;
|
|
6204
|
+
return __generator(this, function (_a) {
|
|
6205
|
+
switch (_a.label) {
|
|
6206
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.addGroupPost(groupId, createGroupPostRequest, options)];
|
|
6207
|
+
case 1:
|
|
6208
|
+
localVarAxiosArgs = _a.sent();
|
|
6209
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
6210
|
+
}
|
|
6211
|
+
});
|
|
6212
|
+
});
|
|
6213
|
+
},
|
|
6018
6214
|
/**
|
|
6019
6215
|
* Bans a user from a Group.
|
|
6020
6216
|
* @summary Ban Group Member
|
|
@@ -6264,6 +6460,27 @@ var GroupsApiFp = function (configuration) {
|
|
|
6264
6460
|
});
|
|
6265
6461
|
});
|
|
6266
6462
|
},
|
|
6463
|
+
/**
|
|
6464
|
+
* Delete a Group post
|
|
6465
|
+
* @summary Delete a Group post
|
|
6466
|
+
* @param {string} groupId Must be a valid group ID.
|
|
6467
|
+
* @param {string} notificationId Must be a valid notification ID.
|
|
6468
|
+
* @param {*} [options] Override http request option.
|
|
6469
|
+
* @throws {RequiredError}
|
|
6470
|
+
*/
|
|
6471
|
+
deleteGroupPost: function (groupId, notificationId, options) {
|
|
6472
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6473
|
+
var localVarAxiosArgs;
|
|
6474
|
+
return __generator(this, function (_a) {
|
|
6475
|
+
switch (_a.label) {
|
|
6476
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteGroupPost(groupId, notificationId, options)];
|
|
6477
|
+
case 1:
|
|
6478
|
+
localVarAxiosArgs = _a.sent();
|
|
6479
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
6480
|
+
}
|
|
6481
|
+
});
|
|
6482
|
+
});
|
|
6483
|
+
},
|
|
6267
6484
|
/**
|
|
6268
6485
|
* Deletes a Group Role by ID and returns the remaining roles.
|
|
6269
6486
|
* @summary Delete Group Role
|
|
@@ -6502,6 +6719,29 @@ var GroupsApiFp = function (configuration) {
|
|
|
6502
6719
|
});
|
|
6503
6720
|
});
|
|
6504
6721
|
},
|
|
6722
|
+
/**
|
|
6723
|
+
* Get posts from a Group
|
|
6724
|
+
* @summary Get posts from a Group
|
|
6725
|
+
* @param {string} groupId Must be a valid group ID.
|
|
6726
|
+
* @param {number} [n] The number of objects to return.
|
|
6727
|
+
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
6728
|
+
* @param {boolean} [publicOnly] See public posts only.
|
|
6729
|
+
* @param {*} [options] Override http request option.
|
|
6730
|
+
* @throws {RequiredError}
|
|
6731
|
+
*/
|
|
6732
|
+
getGroupPost: function (groupId, n, offset, publicOnly, options) {
|
|
6733
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6734
|
+
var localVarAxiosArgs;
|
|
6735
|
+
return __generator(this, function (_a) {
|
|
6736
|
+
switch (_a.label) {
|
|
6737
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGroupPost(groupId, n, offset, publicOnly, options)];
|
|
6738
|
+
case 1:
|
|
6739
|
+
localVarAxiosArgs = _a.sent();
|
|
6740
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
6741
|
+
}
|
|
6742
|
+
});
|
|
6743
|
+
});
|
|
6744
|
+
},
|
|
6505
6745
|
/**
|
|
6506
6746
|
* Returns a list of members that have requested to join the Group.
|
|
6507
6747
|
* @summary Get Group Join Requests
|
|
@@ -6757,6 +6997,28 @@ var GroupsApiFp = function (configuration) {
|
|
|
6757
6997
|
});
|
|
6758
6998
|
});
|
|
6759
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
|
+
},
|
|
6760
7022
|
/**
|
|
6761
7023
|
* Updates a group role by ID.
|
|
6762
7024
|
* @summary Update Group Role
|
|
@@ -6813,6 +7075,17 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
|
|
|
6813
7075
|
addGroupMemberRole: function (groupId, userId, groupRoleId, options) {
|
|
6814
7076
|
return localVarFp.addGroupMemberRole(groupId, userId, groupRoleId, options).then(function (request) { return request(axios, basePath); });
|
|
6815
7077
|
},
|
|
7078
|
+
/**
|
|
7079
|
+
* Create a post in a Group.
|
|
7080
|
+
* @summary Create a post in a Group
|
|
7081
|
+
* @param {string} groupId Must be a valid group ID.
|
|
7082
|
+
* @param {CreateGroupPostRequest} createGroupPostRequest
|
|
7083
|
+
* @param {*} [options] Override http request option.
|
|
7084
|
+
* @throws {RequiredError}
|
|
7085
|
+
*/
|
|
7086
|
+
addGroupPost: function (groupId, createGroupPostRequest, options) {
|
|
7087
|
+
return localVarFp.addGroupPost(groupId, createGroupPostRequest, options).then(function (request) { return request(axios, basePath); });
|
|
7088
|
+
},
|
|
6816
7089
|
/**
|
|
6817
7090
|
* Bans a user from a Group.
|
|
6818
7091
|
* @summary Ban Group Member
|
|
@@ -6942,6 +7215,17 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
|
|
|
6942
7215
|
deleteGroupInvite: function (groupId, userId, options) {
|
|
6943
7216
|
return localVarFp.deleteGroupInvite(groupId, userId, options).then(function (request) { return request(axios, basePath); });
|
|
6944
7217
|
},
|
|
7218
|
+
/**
|
|
7219
|
+
* Delete a Group post
|
|
7220
|
+
* @summary Delete a Group post
|
|
7221
|
+
* @param {string} groupId Must be a valid group ID.
|
|
7222
|
+
* @param {string} notificationId Must be a valid notification ID.
|
|
7223
|
+
* @param {*} [options] Override http request option.
|
|
7224
|
+
* @throws {RequiredError}
|
|
7225
|
+
*/
|
|
7226
|
+
deleteGroupPost: function (groupId, notificationId, options) {
|
|
7227
|
+
return localVarFp.deleteGroupPost(groupId, notificationId, options).then(function (request) { return request(axios, basePath); });
|
|
7228
|
+
},
|
|
6945
7229
|
/**
|
|
6946
7230
|
* Deletes a Group Role by ID and returns the remaining roles.
|
|
6947
7231
|
* @summary Delete Group Role
|
|
@@ -7070,6 +7354,19 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
|
|
|
7070
7354
|
getGroupPermissions: function (groupId, options) {
|
|
7071
7355
|
return localVarFp.getGroupPermissions(groupId, options).then(function (request) { return request(axios, basePath); });
|
|
7072
7356
|
},
|
|
7357
|
+
/**
|
|
7358
|
+
* Get posts from a Group
|
|
7359
|
+
* @summary Get posts from a Group
|
|
7360
|
+
* @param {string} groupId Must be a valid group ID.
|
|
7361
|
+
* @param {number} [n] The number of objects to return.
|
|
7362
|
+
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
7363
|
+
* @param {boolean} [publicOnly] See public posts only.
|
|
7364
|
+
* @param {*} [options] Override http request option.
|
|
7365
|
+
* @throws {RequiredError}
|
|
7366
|
+
*/
|
|
7367
|
+
getGroupPost: function (groupId, n, offset, publicOnly, options) {
|
|
7368
|
+
return localVarFp.getGroupPost(groupId, n, offset, publicOnly, options).then(function (request) { return request(axios, basePath); });
|
|
7369
|
+
},
|
|
7073
7370
|
/**
|
|
7074
7371
|
* Returns a list of members that have requested to join the Group.
|
|
7075
7372
|
* @summary Get Group Join Requests
|
|
@@ -7205,6 +7502,18 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
|
|
|
7205
7502
|
updateGroupMember: function (groupId, userId, updateGroupMemberRequest, options) {
|
|
7206
7503
|
return localVarFp.updateGroupMember(groupId, userId, updateGroupMemberRequest, options).then(function (request) { return request(axios, basePath); });
|
|
7207
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
|
+
},
|
|
7208
7517
|
/**
|
|
7209
7518
|
* Updates a group role by ID.
|
|
7210
7519
|
* @summary Update Group Role
|
|
@@ -7259,6 +7568,19 @@ var GroupsApi = /** @class */ (function (_super) {
|
|
|
7259
7568
|
var _this = this;
|
|
7260
7569
|
return (0, exports.GroupsApiFp)(this.configuration).addGroupMemberRole(groupId, userId, groupRoleId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7261
7570
|
};
|
|
7571
|
+
/**
|
|
7572
|
+
* Create a post in a Group.
|
|
7573
|
+
* @summary Create a post in a Group
|
|
7574
|
+
* @param {string} groupId Must be a valid group ID.
|
|
7575
|
+
* @param {CreateGroupPostRequest} createGroupPostRequest
|
|
7576
|
+
* @param {*} [options] Override http request option.
|
|
7577
|
+
* @throws {RequiredError}
|
|
7578
|
+
* @memberof GroupsApi
|
|
7579
|
+
*/
|
|
7580
|
+
GroupsApi.prototype.addGroupPost = function (groupId, createGroupPostRequest, options) {
|
|
7581
|
+
var _this = this;
|
|
7582
|
+
return (0, exports.GroupsApiFp)(this.configuration).addGroupPost(groupId, createGroupPostRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7583
|
+
};
|
|
7262
7584
|
/**
|
|
7263
7585
|
* Bans a user from a Group.
|
|
7264
7586
|
* @summary Ban Group Member
|
|
@@ -7412,6 +7734,19 @@ var GroupsApi = /** @class */ (function (_super) {
|
|
|
7412
7734
|
var _this = this;
|
|
7413
7735
|
return (0, exports.GroupsApiFp)(this.configuration).deleteGroupInvite(groupId, userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7414
7736
|
};
|
|
7737
|
+
/**
|
|
7738
|
+
* Delete a Group post
|
|
7739
|
+
* @summary Delete a Group post
|
|
7740
|
+
* @param {string} groupId Must be a valid group ID.
|
|
7741
|
+
* @param {string} notificationId Must be a valid notification ID.
|
|
7742
|
+
* @param {*} [options] Override http request option.
|
|
7743
|
+
* @throws {RequiredError}
|
|
7744
|
+
* @memberof GroupsApi
|
|
7745
|
+
*/
|
|
7746
|
+
GroupsApi.prototype.deleteGroupPost = function (groupId, notificationId, options) {
|
|
7747
|
+
var _this = this;
|
|
7748
|
+
return (0, exports.GroupsApiFp)(this.configuration).deleteGroupPost(groupId, notificationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7749
|
+
};
|
|
7415
7750
|
/**
|
|
7416
7751
|
* Deletes a Group Role by ID and returns the remaining roles.
|
|
7417
7752
|
* @summary Delete Group Role
|
|
@@ -7562,6 +7897,21 @@ var GroupsApi = /** @class */ (function (_super) {
|
|
|
7562
7897
|
var _this = this;
|
|
7563
7898
|
return (0, exports.GroupsApiFp)(this.configuration).getGroupPermissions(groupId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7564
7899
|
};
|
|
7900
|
+
/**
|
|
7901
|
+
* Get posts from a Group
|
|
7902
|
+
* @summary Get posts from a Group
|
|
7903
|
+
* @param {string} groupId Must be a valid group ID.
|
|
7904
|
+
* @param {number} [n] The number of objects to return.
|
|
7905
|
+
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
7906
|
+
* @param {boolean} [publicOnly] See public posts only.
|
|
7907
|
+
* @param {*} [options] Override http request option.
|
|
7908
|
+
* @throws {RequiredError}
|
|
7909
|
+
* @memberof GroupsApi
|
|
7910
|
+
*/
|
|
7911
|
+
GroupsApi.prototype.getGroupPost = function (groupId, n, offset, publicOnly, options) {
|
|
7912
|
+
var _this = this;
|
|
7913
|
+
return (0, exports.GroupsApiFp)(this.configuration).getGroupPost(groupId, n, offset, publicOnly, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7914
|
+
};
|
|
7565
7915
|
/**
|
|
7566
7916
|
* Returns a list of members that have requested to join the Group.
|
|
7567
7917
|
* @summary Get Group Join Requests
|
|
@@ -7721,6 +8071,20 @@ var GroupsApi = /** @class */ (function (_super) {
|
|
|
7721
8071
|
var _this = this;
|
|
7722
8072
|
return (0, exports.GroupsApiFp)(this.configuration).updateGroupMember(groupId, userId, updateGroupMemberRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7723
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
|
+
};
|
|
7724
8088
|
/**
|
|
7725
8089
|
* Updates a group role by ID.
|
|
7726
8090
|
* @summary Update Group Role
|
|
@@ -7746,15 +8110,16 @@ var InstancesApiAxiosParamCreator = function (configuration) {
|
|
|
7746
8110
|
var _this = this;
|
|
7747
8111
|
return {
|
|
7748
8112
|
/**
|
|
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.
|
|
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.
|
|
7750
8114
|
* @summary Close Instance
|
|
7751
8115
|
* @param {string} worldId Must be a valid world ID.
|
|
7752
8116
|
* @param {string} instanceId Must be a valid instance ID.
|
|
7753
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.
|
|
7754
8119
|
* @param {*} [options] Override http request option.
|
|
7755
8120
|
* @throws {RequiredError}
|
|
7756
8121
|
*/
|
|
7757
|
-
closeInstance: function (worldId, instanceId, hardClose, options) {
|
|
8122
|
+
closeInstance: function (worldId, instanceId, hardClose, closedAt, options) {
|
|
7758
8123
|
if (options === void 0) { options = {}; }
|
|
7759
8124
|
return __awaiter(_this, void 0, void 0, function () {
|
|
7760
8125
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -7777,6 +8142,11 @@ var InstancesApiAxiosParamCreator = function (configuration) {
|
|
|
7777
8142
|
if (hardClose !== undefined) {
|
|
7778
8143
|
localVarQueryParameter['hardClose'] = hardClose;
|
|
7779
8144
|
}
|
|
8145
|
+
if (closedAt !== undefined) {
|
|
8146
|
+
localVarQueryParameter['closedAt'] = (closedAt instanceof Date) ?
|
|
8147
|
+
closedAt.toISOString() :
|
|
8148
|
+
closedAt;
|
|
8149
|
+
}
|
|
7780
8150
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7781
8151
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7782
8152
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7787,6 +8157,41 @@ var InstancesApiAxiosParamCreator = function (configuration) {
|
|
|
7787
8157
|
});
|
|
7788
8158
|
});
|
|
7789
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';
|
|
8184
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8185
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8186
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8187
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createInstanceRequest, localVarRequestOptions, configuration);
|
|
8188
|
+
return [2 /*return*/, {
|
|
8189
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8190
|
+
options: localVarRequestOptions,
|
|
8191
|
+
}];
|
|
8192
|
+
});
|
|
8193
|
+
});
|
|
8194
|
+
},
|
|
7790
8195
|
/**
|
|
7791
8196
|
* 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\"!
|
|
7792
8197
|
* @summary Get Instance
|
|
@@ -7946,20 +8351,41 @@ var InstancesApiFp = function (configuration) {
|
|
|
7946
8351
|
var localVarAxiosParamCreator = (0, exports.InstancesApiAxiosParamCreator)(configuration);
|
|
7947
8352
|
return {
|
|
7948
8353
|
/**
|
|
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.
|
|
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.
|
|
7950
8355
|
* @summary Close Instance
|
|
7951
8356
|
* @param {string} worldId Must be a valid world ID.
|
|
7952
8357
|
* @param {string} instanceId Must be a valid instance ID.
|
|
7953
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
|
|
7954
8380
|
* @param {*} [options] Override http request option.
|
|
7955
8381
|
* @throws {RequiredError}
|
|
7956
8382
|
*/
|
|
7957
|
-
|
|
8383
|
+
createInstance: function (createInstanceRequest, options) {
|
|
7958
8384
|
return __awaiter(this, void 0, void 0, function () {
|
|
7959
8385
|
var localVarAxiosArgs;
|
|
7960
8386
|
return __generator(this, function (_a) {
|
|
7961
8387
|
switch (_a.label) {
|
|
7962
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8388
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createInstance(createInstanceRequest, options)];
|
|
7963
8389
|
case 1:
|
|
7964
8390
|
localVarAxiosArgs = _a.sent();
|
|
7965
8391
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -8061,16 +8487,27 @@ var InstancesApiFactory = function (configuration, basePath, axios) {
|
|
|
8061
8487
|
var localVarFp = (0, exports.InstancesApiFp)(configuration);
|
|
8062
8488
|
return {
|
|
8063
8489
|
/**
|
|
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.
|
|
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.
|
|
8065
8491
|
* @summary Close Instance
|
|
8066
8492
|
* @param {string} worldId Must be a valid world ID.
|
|
8067
8493
|
* @param {string} instanceId Must be a valid instance ID.
|
|
8068
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
|
|
8069
8506
|
* @param {*} [options] Override http request option.
|
|
8070
8507
|
* @throws {RequiredError}
|
|
8071
8508
|
*/
|
|
8072
|
-
|
|
8073
|
-
return localVarFp.
|
|
8509
|
+
createInstance: function (createInstanceRequest, options) {
|
|
8510
|
+
return localVarFp.createInstance(createInstanceRequest, options).then(function (request) { return request(axios, basePath); });
|
|
8074
8511
|
},
|
|
8075
8512
|
/**
|
|
8076
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\"!
|
|
@@ -8130,18 +8567,31 @@ var InstancesApi = /** @class */ (function (_super) {
|
|
|
8130
8567
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
8131
8568
|
}
|
|
8132
8569
|
/**
|
|
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.
|
|
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.
|
|
8134
8571
|
* @summary Close Instance
|
|
8135
8572
|
* @param {string} worldId Must be a valid world ID.
|
|
8136
8573
|
* @param {string} instanceId Must be a valid instance ID.
|
|
8137
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
|
|
8138
8588
|
* @param {*} [options] Override http request option.
|
|
8139
8589
|
* @throws {RequiredError}
|
|
8140
8590
|
* @memberof InstancesApi
|
|
8141
8591
|
*/
|
|
8142
|
-
InstancesApi.prototype.
|
|
8592
|
+
InstancesApi.prototype.createInstance = function (createInstanceRequest, options) {
|
|
8143
8593
|
var _this = this;
|
|
8144
|
-
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); });
|
|
8145
8595
|
};
|
|
8146
8596
|
/**
|
|
8147
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\"!
|