vrchat 1.17.2 → 1.17.5

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/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.2
7
+ * The version of the OpenAPI document: 1.17.5
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.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;
77
+ 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.InstanceRegion = 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 = exports.FilesApiFactory = void 0;
79
79
  var axios_1 = require("axios");
80
80
  // Some imports not used depending on template conditions
81
81
  // @ts-ignore
@@ -153,7 +153,7 @@ exports.FileStatus = {
153
153
  exports.GroupAccessType = {
154
154
  Public: 'public',
155
155
  Plus: 'plus',
156
- Member: 'member'
156
+ Members: 'members'
157
157
  };
158
158
  /**
159
159
  *
@@ -241,6 +241,17 @@ exports.InfoPushDataClickableCommandEnum = {
241
241
  OpenSafetyMenu: 'OpenSafetyMenu',
242
242
  CannedWorldSearch: 'CannedWorldSearch'
243
243
  };
244
+ /**
245
+ * Instance region
246
+ * @export
247
+ * @enum {string}
248
+ */
249
+ exports.InstanceRegion = {
250
+ Us: 'us',
251
+ Use: 'use',
252
+ Eu: 'eu',
253
+ Jp: 'jp'
254
+ };
244
255
  /**
245
256
  *
246
257
  * @export
@@ -5593,10 +5604,11 @@ var GroupsApiAxiosParamCreator = function (configuration) {
5593
5604
  * @param {string} groupId Must be a valid group ID.
5594
5605
  * @param {number} [n] The number of objects to return.
5595
5606
  * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
5607
+ * @param {boolean} [blocked] See blocked join requests
5596
5608
  * @param {*} [options] Override http request option.
5597
5609
  * @throws {RequiredError}
5598
5610
  */
5599
- getGroupRequests: function (groupId, n, offset, options) {
5611
+ getGroupRequests: function (groupId, n, offset, blocked, options) {
5600
5612
  if (options === void 0) { options = {}; }
5601
5613
  return __awaiter(_this, void 0, void 0, function () {
5602
5614
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -5619,6 +5631,9 @@ var GroupsApiAxiosParamCreator = function (configuration) {
5619
5631
  if (offset !== undefined) {
5620
5632
  localVarQueryParameter['offset'] = offset;
5621
5633
  }
5634
+ if (blocked !== undefined) {
5635
+ localVarQueryParameter['blocked'] = blocked;
5636
+ }
5622
5637
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5623
5638
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5624
5639
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -6052,6 +6067,49 @@ var GroupsApiAxiosParamCreator = function (configuration) {
6052
6067
  });
6053
6068
  });
6054
6069
  },
6070
+ /**
6071
+ * Edits a Group post
6072
+ * @summary Edits a Group post
6073
+ * @param {string} groupId Must be a valid group ID.
6074
+ * @param {string} notificationId Must be a valid notification ID.
6075
+ * @param {CreateGroupPostRequest} createGroupPostRequest
6076
+ * @param {*} [options] Override http request option.
6077
+ * @throws {RequiredError}
6078
+ */
6079
+ updateGroupPost: function (groupId, notificationId, createGroupPostRequest, options) {
6080
+ if (options === void 0) { options = {}; }
6081
+ return __awaiter(_this, void 0, void 0, function () {
6082
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
6083
+ return __generator(this, function (_a) {
6084
+ // verify required parameter 'groupId' is not null or undefined
6085
+ (0, common_1.assertParamExists)('updateGroupPost', 'groupId', groupId);
6086
+ // verify required parameter 'notificationId' is not null or undefined
6087
+ (0, common_1.assertParamExists)('updateGroupPost', 'notificationId', notificationId);
6088
+ // verify required parameter 'createGroupPostRequest' is not null or undefined
6089
+ (0, common_1.assertParamExists)('updateGroupPost', 'createGroupPostRequest', createGroupPostRequest);
6090
+ localVarPath = "/groups/{groupId}/posts/{notificationId}"
6091
+ .replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)))
6092
+ .replace("{".concat("notificationId", "}"), encodeURIComponent(String(notificationId)));
6093
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6094
+ if (configuration) {
6095
+ baseOptions = configuration.baseOptions;
6096
+ }
6097
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
6098
+ localVarHeaderParameter = {};
6099
+ localVarQueryParameter = {};
6100
+ // authentication authCookie required
6101
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6102
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6103
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6104
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6105
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createGroupPostRequest, localVarRequestOptions, configuration);
6106
+ return [2 /*return*/, {
6107
+ url: (0, common_1.toPathString)(localVarUrlObj),
6108
+ options: localVarRequestOptions,
6109
+ }];
6110
+ });
6111
+ });
6112
+ },
6055
6113
  /**
6056
6114
  * Updates a group role by ID.
6057
6115
  * @summary Update Group Role
@@ -6705,15 +6763,16 @@ var GroupsApiFp = function (configuration) {
6705
6763
  * @param {string} groupId Must be a valid group ID.
6706
6764
  * @param {number} [n] The number of objects to return.
6707
6765
  * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
6766
+ * @param {boolean} [blocked] See blocked join requests
6708
6767
  * @param {*} [options] Override http request option.
6709
6768
  * @throws {RequiredError}
6710
6769
  */
6711
- getGroupRequests: function (groupId, n, offset, options) {
6770
+ getGroupRequests: function (groupId, n, offset, blocked, options) {
6712
6771
  return __awaiter(this, void 0, void 0, function () {
6713
6772
  var localVarAxiosArgs;
6714
6773
  return __generator(this, function (_a) {
6715
6774
  switch (_a.label) {
6716
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGroupRequests(groupId, n, offset, options)];
6775
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGroupRequests(groupId, n, offset, blocked, options)];
6717
6776
  case 1:
6718
6777
  localVarAxiosArgs = _a.sent();
6719
6778
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -6954,6 +7013,28 @@ var GroupsApiFp = function (configuration) {
6954
7013
  });
6955
7014
  });
6956
7015
  },
7016
+ /**
7017
+ * Edits a Group post
7018
+ * @summary Edits a Group post
7019
+ * @param {string} groupId Must be a valid group ID.
7020
+ * @param {string} notificationId Must be a valid notification ID.
7021
+ * @param {CreateGroupPostRequest} createGroupPostRequest
7022
+ * @param {*} [options] Override http request option.
7023
+ * @throws {RequiredError}
7024
+ */
7025
+ updateGroupPost: function (groupId, notificationId, createGroupPostRequest, options) {
7026
+ return __awaiter(this, void 0, void 0, function () {
7027
+ var localVarAxiosArgs;
7028
+ return __generator(this, function (_a) {
7029
+ switch (_a.label) {
7030
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateGroupPost(groupId, notificationId, createGroupPostRequest, options)];
7031
+ case 1:
7032
+ localVarAxiosArgs = _a.sent();
7033
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
7034
+ }
7035
+ });
7036
+ });
7037
+ },
6957
7038
  /**
6958
7039
  * Updates a group role by ID.
6959
7040
  * @summary Update Group Role
@@ -7308,11 +7389,12 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
7308
7389
  * @param {string} groupId Must be a valid group ID.
7309
7390
  * @param {number} [n] The number of objects to return.
7310
7391
  * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
7392
+ * @param {boolean} [blocked] See blocked join requests
7311
7393
  * @param {*} [options] Override http request option.
7312
7394
  * @throws {RequiredError}
7313
7395
  */
7314
- getGroupRequests: function (groupId, n, offset, options) {
7315
- return localVarFp.getGroupRequests(groupId, n, offset, options).then(function (request) { return request(axios, basePath); });
7396
+ getGroupRequests: function (groupId, n, offset, blocked, options) {
7397
+ return localVarFp.getGroupRequests(groupId, n, offset, blocked, options).then(function (request) { return request(axios, basePath); });
7316
7398
  },
7317
7399
  /**
7318
7400
  * Returns a Group Role by ID.
@@ -7437,6 +7519,18 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
7437
7519
  updateGroupMember: function (groupId, userId, updateGroupMemberRequest, options) {
7438
7520
  return localVarFp.updateGroupMember(groupId, userId, updateGroupMemberRequest, options).then(function (request) { return request(axios, basePath); });
7439
7521
  },
7522
+ /**
7523
+ * Edits a Group post
7524
+ * @summary Edits a Group post
7525
+ * @param {string} groupId Must be a valid group ID.
7526
+ * @param {string} notificationId Must be a valid notification ID.
7527
+ * @param {CreateGroupPostRequest} createGroupPostRequest
7528
+ * @param {*} [options] Override http request option.
7529
+ * @throws {RequiredError}
7530
+ */
7531
+ updateGroupPost: function (groupId, notificationId, createGroupPostRequest, options) {
7532
+ return localVarFp.updateGroupPost(groupId, notificationId, createGroupPostRequest, options).then(function (request) { return request(axios, basePath); });
7533
+ },
7440
7534
  /**
7441
7535
  * Updates a group role by ID.
7442
7536
  * @summary Update Group Role
@@ -7841,13 +7935,14 @@ var GroupsApi = /** @class */ (function (_super) {
7841
7935
  * @param {string} groupId Must be a valid group ID.
7842
7936
  * @param {number} [n] The number of objects to return.
7843
7937
  * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
7938
+ * @param {boolean} [blocked] See blocked join requests
7844
7939
  * @param {*} [options] Override http request option.
7845
7940
  * @throws {RequiredError}
7846
7941
  * @memberof GroupsApi
7847
7942
  */
7848
- GroupsApi.prototype.getGroupRequests = function (groupId, n, offset, options) {
7943
+ GroupsApi.prototype.getGroupRequests = function (groupId, n, offset, blocked, options) {
7849
7944
  var _this = this;
7850
- return (0, exports.GroupsApiFp)(this.configuration).getGroupRequests(groupId, n, offset, options).then(function (request) { return request(_this.axios, _this.basePath); });
7945
+ return (0, exports.GroupsApiFp)(this.configuration).getGroupRequests(groupId, n, offset, blocked, options).then(function (request) { return request(_this.axios, _this.basePath); });
7851
7946
  };
7852
7947
  /**
7853
7948
  * Returns a Group Role by ID.
@@ -7994,6 +8089,20 @@ var GroupsApi = /** @class */ (function (_super) {
7994
8089
  var _this = this;
7995
8090
  return (0, exports.GroupsApiFp)(this.configuration).updateGroupMember(groupId, userId, updateGroupMemberRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
7996
8091
  };
8092
+ /**
8093
+ * Edits a Group post
8094
+ * @summary Edits a Group post
8095
+ * @param {string} groupId Must be a valid group ID.
8096
+ * @param {string} notificationId Must be a valid notification ID.
8097
+ * @param {CreateGroupPostRequest} createGroupPostRequest
8098
+ * @param {*} [options] Override http request option.
8099
+ * @throws {RequiredError}
8100
+ * @memberof GroupsApi
8101
+ */
8102
+ GroupsApi.prototype.updateGroupPost = function (groupId, notificationId, createGroupPostRequest, options) {
8103
+ var _this = this;
8104
+ return (0, exports.GroupsApiFp)(this.configuration).updateGroupPost(groupId, notificationId, createGroupPostRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
8105
+ };
7997
8106
  /**
7998
8107
  * Updates a group role by ID.
7999
8108
  * @summary Update Group Role
@@ -8019,15 +8128,16 @@ var InstancesApiAxiosParamCreator = function (configuration) {
8019
8128
  var _this = this;
8020
8129
  return {
8021
8130
  /**
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.
8131
+ * 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
8132
  * @summary Close Instance
8024
8133
  * @param {string} worldId Must be a valid world ID.
8025
8134
  * @param {string} instanceId Must be a valid instance ID.
8026
8135
  * @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
8136
+ * @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
8137
  * @param {*} [options] Override http request option.
8028
8138
  * @throws {RequiredError}
8029
8139
  */
8030
- closeInstance: function (worldId, instanceId, hardClose, options) {
8140
+ closeInstance: function (worldId, instanceId, hardClose, closedAt, options) {
8031
8141
  if (options === void 0) { options = {}; }
8032
8142
  return __awaiter(_this, void 0, void 0, function () {
8033
8143
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -8050,9 +8160,49 @@ var InstancesApiAxiosParamCreator = function (configuration) {
8050
8160
  if (hardClose !== undefined) {
8051
8161
  localVarQueryParameter['hardClose'] = hardClose;
8052
8162
  }
8163
+ if (closedAt !== undefined) {
8164
+ localVarQueryParameter['closedAt'] = (closedAt instanceof Date) ?
8165
+ closedAt.toISOString() :
8166
+ closedAt;
8167
+ }
8168
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8169
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8170
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8171
+ return [2 /*return*/, {
8172
+ url: (0, common_1.toPathString)(localVarUrlObj),
8173
+ options: localVarRequestOptions,
8174
+ }];
8175
+ });
8176
+ });
8177
+ },
8178
+ /**
8179
+ * Create an instance
8180
+ * @summary Create Instance
8181
+ * @param {CreateInstanceRequest} createInstanceRequest
8182
+ * @param {*} [options] Override http request option.
8183
+ * @throws {RequiredError}
8184
+ */
8185
+ createInstance: function (createInstanceRequest, options) {
8186
+ if (options === void 0) { options = {}; }
8187
+ return __awaiter(_this, void 0, void 0, function () {
8188
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8189
+ return __generator(this, function (_a) {
8190
+ // verify required parameter 'createInstanceRequest' is not null or undefined
8191
+ (0, common_1.assertParamExists)('createInstance', 'createInstanceRequest', createInstanceRequest);
8192
+ localVarPath = "/instances";
8193
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8194
+ if (configuration) {
8195
+ baseOptions = configuration.baseOptions;
8196
+ }
8197
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
8198
+ localVarHeaderParameter = {};
8199
+ localVarQueryParameter = {};
8200
+ // authentication authCookie required
8201
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8053
8202
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8054
8203
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8055
8204
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8205
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createInstanceRequest, localVarRequestOptions, configuration);
8056
8206
  return [2 /*return*/, {
8057
8207
  url: (0, common_1.toPathString)(localVarUrlObj),
8058
8208
  options: localVarRequestOptions,
@@ -8219,20 +8369,41 @@ var InstancesApiFp = function (configuration) {
8219
8369
  var localVarAxiosParamCreator = (0, exports.InstancesApiAxiosParamCreator)(configuration);
8220
8370
  return {
8221
8371
  /**
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.
8372
+ * 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
8373
  * @summary Close Instance
8224
8374
  * @param {string} worldId Must be a valid world ID.
8225
8375
  * @param {string} instanceId Must be a valid instance ID.
8226
8376
  * @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
8377
+ * @param {string} [closedAt] The time after which users won\'t be allowed to join the instances. If omitted, the instance will be closed immediately.
8378
+ * @param {*} [options] Override http request option.
8379
+ * @throws {RequiredError}
8380
+ */
8381
+ closeInstance: function (worldId, instanceId, hardClose, closedAt, options) {
8382
+ return __awaiter(this, void 0, void 0, function () {
8383
+ var localVarAxiosArgs;
8384
+ return __generator(this, function (_a) {
8385
+ switch (_a.label) {
8386
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.closeInstance(worldId, instanceId, hardClose, closedAt, options)];
8387
+ case 1:
8388
+ localVarAxiosArgs = _a.sent();
8389
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
8390
+ }
8391
+ });
8392
+ });
8393
+ },
8394
+ /**
8395
+ * Create an instance
8396
+ * @summary Create Instance
8397
+ * @param {CreateInstanceRequest} createInstanceRequest
8227
8398
  * @param {*} [options] Override http request option.
8228
8399
  * @throws {RequiredError}
8229
8400
  */
8230
- closeInstance: function (worldId, instanceId, hardClose, options) {
8401
+ createInstance: function (createInstanceRequest, options) {
8231
8402
  return __awaiter(this, void 0, void 0, function () {
8232
8403
  var localVarAxiosArgs;
8233
8404
  return __generator(this, function (_a) {
8234
8405
  switch (_a.label) {
8235
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.closeInstance(worldId, instanceId, hardClose, options)];
8406
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createInstance(createInstanceRequest, options)];
8236
8407
  case 1:
8237
8408
  localVarAxiosArgs = _a.sent();
8238
8409
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -8334,16 +8505,27 @@ var InstancesApiFactory = function (configuration, basePath, axios) {
8334
8505
  var localVarFp = (0, exports.InstancesApiFp)(configuration);
8335
8506
  return {
8336
8507
  /**
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.
8508
+ * 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
8509
  * @summary Close Instance
8339
8510
  * @param {string} worldId Must be a valid world ID.
8340
8511
  * @param {string} instanceId Must be a valid instance ID.
8341
8512
  * @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
8513
+ * @param {string} [closedAt] The time after which users won\'t be allowed to join the instances. If omitted, the instance will be closed immediately.
8342
8514
  * @param {*} [options] Override http request option.
8343
8515
  * @throws {RequiredError}
8344
8516
  */
8345
- closeInstance: function (worldId, instanceId, hardClose, options) {
8346
- return localVarFp.closeInstance(worldId, instanceId, hardClose, options).then(function (request) { return request(axios, basePath); });
8517
+ closeInstance: function (worldId, instanceId, hardClose, closedAt, options) {
8518
+ return localVarFp.closeInstance(worldId, instanceId, hardClose, closedAt, options).then(function (request) { return request(axios, basePath); });
8519
+ },
8520
+ /**
8521
+ * Create an instance
8522
+ * @summary Create Instance
8523
+ * @param {CreateInstanceRequest} createInstanceRequest
8524
+ * @param {*} [options] Override http request option.
8525
+ * @throws {RequiredError}
8526
+ */
8527
+ createInstance: function (createInstanceRequest, options) {
8528
+ return localVarFp.createInstance(createInstanceRequest, options).then(function (request) { return request(axios, basePath); });
8347
8529
  },
8348
8530
  /**
8349
8531
  * 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 +8585,31 @@ var InstancesApi = /** @class */ (function (_super) {
8403
8585
  return _super !== null && _super.apply(this, arguments) || this;
8404
8586
  }
8405
8587
  /**
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.
8588
+ * 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
8589
  * @summary Close Instance
8408
8590
  * @param {string} worldId Must be a valid world ID.
8409
8591
  * @param {string} instanceId Must be a valid instance ID.
8410
8592
  * @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
8593
+ * @param {string} [closedAt] The time after which users won\'t be allowed to join the instances. If omitted, the instance will be closed immediately.
8594
+ * @param {*} [options] Override http request option.
8595
+ * @throws {RequiredError}
8596
+ * @memberof InstancesApi
8597
+ */
8598
+ InstancesApi.prototype.closeInstance = function (worldId, instanceId, hardClose, closedAt, options) {
8599
+ var _this = this;
8600
+ return (0, exports.InstancesApiFp)(this.configuration).closeInstance(worldId, instanceId, hardClose, closedAt, options).then(function (request) { return request(_this.axios, _this.basePath); });
8601
+ };
8602
+ /**
8603
+ * Create an instance
8604
+ * @summary Create Instance
8605
+ * @param {CreateInstanceRequest} createInstanceRequest
8411
8606
  * @param {*} [options] Override http request option.
8412
8607
  * @throws {RequiredError}
8413
8608
  * @memberof InstancesApi
8414
8609
  */
8415
- InstancesApi.prototype.closeInstance = function (worldId, instanceId, hardClose, options) {
8610
+ InstancesApi.prototype.createInstance = function (createInstanceRequest, options) {
8416
8611
  var _this = this;
8417
- return (0, exports.InstancesApiFp)(this.configuration).closeInstance(worldId, instanceId, hardClose, options).then(function (request) { return request(_this.axios, _this.basePath); });
8612
+ return (0, exports.InstancesApiFp)(this.configuration).createInstance(createInstanceRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
8418
8613
  };
8419
8614
  /**
8420
8615
  * 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.2
4
+ * The version of the OpenAPI document: 1.17.5
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.2
7
+ * The version of the OpenAPI document: 1.17.5
8
8
  * Contact: vrchatapi.lpv0t@aries.fyi
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -31,7 +31,7 @@ exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.B
31
31
  // Some imports not used depending on template conditions
32
32
  // @ts-ignore
33
33
  var axios_1 = require("axios");
34
- exports.BASE_PATH = "https://api.vrchat.cloud/api/1".replace(/\/+$/, "");
34
+ exports.BASE_PATH = "https://vrchat.com/api/1".replace(/\/+$/, "");
35
35
  /**
36
36
  *
37
37
  * @export
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.2
4
+ * The version of the OpenAPI document: 1.17.5
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.2
7
+ * The version of the OpenAPI document: 1.17.5
8
8
  * Contact: vrchatapi.lpv0t@aries.fyi
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * VRChat API Documentation
3
3
  *
4
- * The version of the OpenAPI document: 1.17.2
4
+ * The version of the OpenAPI document: 1.17.5
5
5
  * Contact: vrchatapi.lpv0t@aries.fyi
6
6
  *
7
7
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * VRChat API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.17.2
7
+ * The version of the OpenAPI document: 1.17.5
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.2
4
+ * The version of the OpenAPI document: 1.17.5
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.2
7
+ * The version of the OpenAPI document: 1.17.5
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.2
6
+ * The version of the OpenAPI document: 1.17.5
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vrchat",
3
- "version": "1.17.2",
3
+ "version": "1.17.5",
4
4
  "description": "🟡🔵 VRChat API Library for JavaScript and TypeScript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {