vrchat 1.19.3 → 1.19.4

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.19.3
7
+ * The version of the OpenAPI document: 1.19.4
8
8
  * Contact: vrchatapi.lpv0t@aries.fyi
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -75,8 +75,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
75
75
  };
76
76
  Object.defineProperty(exports, "__esModule", { value: true });
77
77
  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.ProductType = exports.ProductListingType = exports.PlayerModerationType = exports.PerformanceRatings = 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.GroupPermissions = exports.GroupMemberStatus = exports.GroupJoinState = exports.GroupJoinRequestAction = exports.GroupAccessType = exports.FileStatus = exports.FileDataCategoryEnum = exports.FavoriteType = exports.FavoriteGroupVisibility = exports.DeveloperType = exports.AgeVerificationStatus = void 0;
78
- exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.PrintsApi = exports.PrintsApiFactory = exports.PrintsApiFp = exports.PrintsApiAxiosParamCreator = 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.JamsApi = exports.JamsApiFactory = exports.JamsApiFp = exports.JamsApiAxiosParamCreator = 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 = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.FavoritesApi = exports.FavoritesApiFactory = void 0;
79
- exports.WorldsApi = exports.WorldsApiFactory = exports.WorldsApiFp = exports.WorldsApiAxiosParamCreator = void 0;
78
+ exports.WorldsApi = exports.WorldsApiFactory = exports.WorldsApiFp = exports.WorldsApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.PrintsApi = exports.PrintsApiFactory = exports.PrintsApiFp = exports.PrintsApiAxiosParamCreator = exports.PlayermoderationApi = exports.PlayermoderationApiFactory = exports.PlayermoderationApiFp = exports.PlayermoderationApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MiscellaneousApi = exports.MiscellaneousApiFactory = exports.MiscellaneousApiFp = exports.MiscellaneousApiAxiosParamCreator = exports.JamsApi = exports.JamsApiFactory = exports.JamsApiFp = exports.JamsApiAxiosParamCreator = 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 = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.FavoritesApi = exports.FavoritesApiFactory = void 0;
80
79
  var axios_1 = require("axios");
81
80
  // Some imports not used depending on template conditions
82
81
  // @ts-ignore
@@ -2322,6 +2321,7 @@ var AvatarsApiAxiosParamCreator = function (configuration) {
2322
2321
  * @summary Select Fallback Avatar
2323
2322
  * @param {string} avatarId Must be a valid avatar ID.
2324
2323
  * @param {*} [options] Override http request option.
2324
+ * @deprecated
2325
2325
  * @throws {RequiredError}
2326
2326
  */
2327
2327
  selectFallbackAvatar: function (avatarId, options) {
@@ -2647,6 +2647,7 @@ var AvatarsApiFp = function (configuration) {
2647
2647
  * @summary Select Fallback Avatar
2648
2648
  * @param {string} avatarId Must be a valid avatar ID.
2649
2649
  * @param {*} [options] Override http request option.
2650
+ * @deprecated
2650
2651
  * @throws {RequiredError}
2651
2652
  */
2652
2653
  selectFallbackAvatar: function (avatarId, options) {
@@ -2832,6 +2833,7 @@ var AvatarsApiFactory = function (configuration, basePath, axios) {
2832
2833
  * @summary Select Fallback Avatar
2833
2834
  * @param {string} avatarId Must be a valid avatar ID.
2834
2835
  * @param {*} [options] Override http request option.
2836
+ * @deprecated
2835
2837
  * @throws {RequiredError}
2836
2838
  */
2837
2839
  selectFallbackAvatar: function (avatarId, options) {
@@ -3023,6 +3025,7 @@ var AvatarsApi = /** @class */ (function (_super) {
3023
3025
  * @summary Select Fallback Avatar
3024
3026
  * @param {string} avatarId Must be a valid avatar ID.
3025
3027
  * @param {*} [options] Override http request option.
3028
+ * @deprecated
3026
3029
  * @throws {RequiredError}
3027
3030
  * @memberof AvatarsApi
3028
3031
  */
@@ -8210,6 +8213,45 @@ var GroupsApiAxiosParamCreator = function (configuration) {
8210
8213
  });
8211
8214
  });
8212
8215
  },
8216
+ /**
8217
+ * Updates whether the user is representing the group. When `isRepresenting` is set to `true`, this flag will be set to `false` for all other groups
8218
+ * @summary Update Group Representation
8219
+ * @param {string} groupId Must be a valid group ID.
8220
+ * @param {UpdateGroupRepresentationRequest} updateGroupRepresentationRequest
8221
+ * @param {*} [options] Override http request option.
8222
+ * @throws {RequiredError}
8223
+ */
8224
+ updateGroupRepresentation: function (groupId, updateGroupRepresentationRequest, options) {
8225
+ if (options === void 0) { options = {}; }
8226
+ return __awaiter(_this, void 0, void 0, function () {
8227
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
8228
+ return __generator(this, function (_a) {
8229
+ // verify required parameter 'groupId' is not null or undefined
8230
+ (0, common_1.assertParamExists)('updateGroupRepresentation', 'groupId', groupId);
8231
+ // verify required parameter 'updateGroupRepresentationRequest' is not null or undefined
8232
+ (0, common_1.assertParamExists)('updateGroupRepresentation', 'updateGroupRepresentationRequest', updateGroupRepresentationRequest);
8233
+ localVarPath = "/groups/{groupId}/representation"
8234
+ .replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)));
8235
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8236
+ if (configuration) {
8237
+ baseOptions = configuration.baseOptions;
8238
+ }
8239
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
8240
+ localVarHeaderParameter = {};
8241
+ localVarQueryParameter = {};
8242
+ // authentication authCookie required
8243
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8244
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8245
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8246
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8247
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateGroupRepresentationRequest, localVarRequestOptions, configuration);
8248
+ return [2 /*return*/, {
8249
+ url: (0, common_1.toPathString)(localVarUrlObj),
8250
+ options: localVarRequestOptions,
8251
+ }];
8252
+ });
8253
+ });
8254
+ },
8213
8255
  /**
8214
8256
  * Updates a group role by ID.
8215
8257
  * @summary Update Group Role
@@ -9158,6 +9200,27 @@ var GroupsApiFp = function (configuration) {
9158
9200
  });
9159
9201
  });
9160
9202
  },
9203
+ /**
9204
+ * Updates whether the user is representing the group. When `isRepresenting` is set to `true`, this flag will be set to `false` for all other groups
9205
+ * @summary Update Group Representation
9206
+ * @param {string} groupId Must be a valid group ID.
9207
+ * @param {UpdateGroupRepresentationRequest} updateGroupRepresentationRequest
9208
+ * @param {*} [options] Override http request option.
9209
+ * @throws {RequiredError}
9210
+ */
9211
+ updateGroupRepresentation: function (groupId, updateGroupRepresentationRequest, options) {
9212
+ return __awaiter(this, void 0, void 0, function () {
9213
+ var localVarAxiosArgs;
9214
+ return __generator(this, function (_a) {
9215
+ switch (_a.label) {
9216
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateGroupRepresentation(groupId, updateGroupRepresentationRequest, options)];
9217
+ case 1:
9218
+ localVarAxiosArgs = _a.sent();
9219
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
9220
+ }
9221
+ });
9222
+ });
9223
+ },
9161
9224
  /**
9162
9225
  * Updates a group role by ID.
9163
9226
  * @summary Update Group Role
@@ -9667,6 +9730,17 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
9667
9730
  updateGroupPost: function (groupId, notificationId, createGroupPostRequest, options) {
9668
9731
  return localVarFp.updateGroupPost(groupId, notificationId, createGroupPostRequest, options).then(function (request) { return request(axios, basePath); });
9669
9732
  },
9733
+ /**
9734
+ * Updates whether the user is representing the group. When `isRepresenting` is set to `true`, this flag will be set to `false` for all other groups
9735
+ * @summary Update Group Representation
9736
+ * @param {string} groupId Must be a valid group ID.
9737
+ * @param {UpdateGroupRepresentationRequest} updateGroupRepresentationRequest
9738
+ * @param {*} [options] Override http request option.
9739
+ * @throws {RequiredError}
9740
+ */
9741
+ updateGroupRepresentation: function (groupId, updateGroupRepresentationRequest, options) {
9742
+ return localVarFp.updateGroupRepresentation(groupId, updateGroupRepresentationRequest, options).then(function (request) { return request(axios, basePath); });
9743
+ },
9670
9744
  /**
9671
9745
  * Updates a group role by ID.
9672
9746
  * @summary Update Group Role
@@ -10254,6 +10328,19 @@ var GroupsApi = /** @class */ (function (_super) {
10254
10328
  var _this = this;
10255
10329
  return (0, exports.GroupsApiFp)(this.configuration).updateGroupPost(groupId, notificationId, createGroupPostRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
10256
10330
  };
10331
+ /**
10332
+ * Updates whether the user is representing the group. When `isRepresenting` is set to `true`, this flag will be set to `false` for all other groups
10333
+ * @summary Update Group Representation
10334
+ * @param {string} groupId Must be a valid group ID.
10335
+ * @param {UpdateGroupRepresentationRequest} updateGroupRepresentationRequest
10336
+ * @param {*} [options] Override http request option.
10337
+ * @throws {RequiredError}
10338
+ * @memberof GroupsApi
10339
+ */
10340
+ GroupsApi.prototype.updateGroupRepresentation = function (groupId, updateGroupRepresentationRequest, options) {
10341
+ var _this = this;
10342
+ return (0, exports.GroupsApiFp)(this.configuration).updateGroupRepresentation(groupId, updateGroupRepresentationRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
10343
+ };
10257
10344
  /**
10258
10345
  * Updates a group role by ID.
10259
10346
  * @summary Update Group Role
@@ -12033,33 +12120,29 @@ var JamsApi = /** @class */ (function (_super) {
12033
12120
  }(base_1.BaseAPI));
12034
12121
  exports.JamsApi = JamsApi;
12035
12122
  /**
12036
- * NotificationsApi - axios parameter creator
12123
+ * MiscellaneousApi - axios parameter creator
12037
12124
  * @export
12038
12125
  */
12039
- var NotificationsApiAxiosParamCreator = function (configuration) {
12126
+ var MiscellaneousApiAxiosParamCreator = function (configuration) {
12040
12127
  var _this = this;
12041
12128
  return {
12042
12129
  /**
12043
- * Accept a friend request by notification `frq_` ID. Friend requests can be found using the NotificationsAPI `getNotifications` by filtering of type `friendRequest`.
12044
- * @summary Accept Friend Request
12045
- * @param {string} notificationId Must be a valid notification ID.
12130
+ * Returns a list of all permissions currently granted by the user. Permissions are assigned e.g. by subscribing to VRC+.
12131
+ * @summary Get Assigned Permissions
12046
12132
  * @param {*} [options] Override http request option.
12047
12133
  * @throws {RequiredError}
12048
12134
  */
12049
- acceptFriendRequest: function (notificationId, options) {
12135
+ getAssignedPermissions: function (options) {
12050
12136
  if (options === void 0) { options = {}; }
12051
12137
  return __awaiter(_this, void 0, void 0, function () {
12052
12138
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12053
12139
  return __generator(this, function (_a) {
12054
- // verify required parameter 'notificationId' is not null or undefined
12055
- (0, common_1.assertParamExists)('acceptFriendRequest', 'notificationId', notificationId);
12056
- localVarPath = "/auth/user/notifications/{notificationId}/accept"
12057
- .replace("{".concat("notificationId", "}"), encodeURIComponent(String(notificationId)));
12140
+ localVarPath = "/auth/permissions";
12058
12141
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12059
12142
  if (configuration) {
12060
12143
  baseOptions = configuration.baseOptions;
12061
12144
  }
12062
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
12145
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
12063
12146
  localVarHeaderParameter = {};
12064
12147
  localVarQueryParameter = {};
12065
12148
  // authentication authCookie required
@@ -12074,25 +12157,32 @@ var NotificationsApiAxiosParamCreator = function (configuration) {
12074
12157
  });
12075
12158
  },
12076
12159
  /**
12077
- * Clear **all** notifications.
12078
- * @summary Clear All Notifications
12160
+ * Fetches the CSS code to the frontend React website.
12161
+ * @summary Download CSS
12162
+ * @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
12163
+ * @param {string} [branch] Specifies which git branch the site should load frontend source code from.
12079
12164
  * @param {*} [options] Override http request option.
12080
12165
  * @throws {RequiredError}
12081
12166
  */
12082
- clearNotifications: function (options) {
12167
+ getCSS: function (variant, branch, options) {
12083
12168
  if (options === void 0) { options = {}; }
12084
12169
  return __awaiter(_this, void 0, void 0, function () {
12085
12170
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12086
12171
  return __generator(this, function (_a) {
12087
- localVarPath = "/auth/user/notifications/clear";
12172
+ localVarPath = "/css/app.css";
12088
12173
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12089
12174
  if (configuration) {
12090
12175
  baseOptions = configuration.baseOptions;
12091
12176
  }
12092
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
12177
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
12093
12178
  localVarHeaderParameter = {};
12094
12179
  localVarQueryParameter = {};
12095
- // authentication authCookie required
12180
+ if (variant !== undefined) {
12181
+ localVarQueryParameter['variant'] = variant;
12182
+ }
12183
+ if (branch !== undefined) {
12184
+ localVarQueryParameter['branch'] = branch;
12185
+ }
12096
12186
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12097
12187
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12098
12188
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -12104,29 +12194,24 @@ var NotificationsApiAxiosParamCreator = function (configuration) {
12104
12194
  });
12105
12195
  },
12106
12196
  /**
12107
- * Delete a notification.
12108
- * @summary Delete Notification
12109
- * @param {string} notificationId Must be a valid notification ID.
12197
+ * API config contains configuration that the clients needs to work properly. Currently the most important value here is `clientApiKey` which is used for all other API endpoints.
12198
+ * @summary Fetch API Config
12110
12199
  * @param {*} [options] Override http request option.
12111
12200
  * @throws {RequiredError}
12112
12201
  */
12113
- deleteNotification: function (notificationId, options) {
12202
+ getConfig: function (options) {
12114
12203
  if (options === void 0) { options = {}; }
12115
12204
  return __awaiter(_this, void 0, void 0, function () {
12116
12205
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12117
12206
  return __generator(this, function (_a) {
12118
- // verify required parameter 'notificationId' is not null or undefined
12119
- (0, common_1.assertParamExists)('deleteNotification', 'notificationId', notificationId);
12120
- localVarPath = "/auth/user/notifications/{notificationId}/hide"
12121
- .replace("{".concat("notificationId", "}"), encodeURIComponent(String(notificationId)));
12207
+ localVarPath = "/config";
12122
12208
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12123
12209
  if (configuration) {
12124
12210
  baseOptions = configuration.baseOptions;
12125
12211
  }
12126
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
12212
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
12127
12213
  localVarHeaderParameter = {};
12128
12214
  localVarQueryParameter = {};
12129
- // authentication authCookie required
12130
12215
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12131
12216
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12132
12217
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -12138,21 +12223,17 @@ var NotificationsApiAxiosParamCreator = function (configuration) {
12138
12223
  });
12139
12224
  },
12140
12225
  /**
12141
- * Get a notification by notification `not_` ID.
12142
- * @summary Show notification
12143
- * @param {string} notificationId Must be a valid notification ID.
12226
+ * Returns the current number of online users. **NOTE:** The response type is not a JSON object, but a simple JSON integer.
12227
+ * @summary Current Online Users
12144
12228
  * @param {*} [options] Override http request option.
12145
12229
  * @throws {RequiredError}
12146
12230
  */
12147
- getNotification: function (notificationId, options) {
12231
+ getCurrentOnlineUsers: function (options) {
12148
12232
  if (options === void 0) { options = {}; }
12149
12233
  return __awaiter(_this, void 0, void 0, function () {
12150
12234
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12151
12235
  return __generator(this, function (_a) {
12152
- // verify required parameter 'notificationId' is not null or undefined
12153
- (0, common_1.assertParamExists)('getNotification', 'notificationId', notificationId);
12154
- localVarPath = "/auth/user/notifications/{notificationId}"
12155
- .replace("{".concat("notificationId", "}"), encodeURIComponent(String(notificationId)));
12236
+ localVarPath = "/visits";
12156
12237
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12157
12238
  if (configuration) {
12158
12239
  baseOptions = configuration.baseOptions;
@@ -12160,7 +12241,6 @@ var NotificationsApiAxiosParamCreator = function (configuration) {
12160
12241
  localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
12161
12242
  localVarHeaderParameter = {};
12162
12243
  localVarQueryParameter = {};
12163
- // authentication authCookie required
12164
12244
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12165
12245
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12166
12246
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -12172,23 +12252,18 @@ var NotificationsApiAxiosParamCreator = function (configuration) {
12172
12252
  });
12173
12253
  },
12174
12254
  /**
12175
- * Retrieve all of the current user\'s notifications.
12176
- * @summary List Notifications
12177
- * @param {string} [type] Only send notifications of this type (can use `all` for all). This parameter no longer does anything, and is deprecated.
12178
- * @param {boolean} [sent] Return notifications sent by the user. Must be false or omitted.
12179
- * @param {boolean} [hidden] Whether to return hidden or non-hidden notifications. True only allowed on type `friendRequest`.
12180
- * @param {string} [after] Only return notifications sent after this Date. Ignored if type is `friendRequest`.
12181
- * @param {number} [n] The number of objects to return.
12182
- * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
12255
+ * ~~Gets the overall health status, the server name, and the current build version tag of the API.~~ **DEPRECATED:** VRChat has suddenly restricted this endpoint for unknown reasons, and now always return 401 Unauthorized.
12256
+ * @summary Check API Health
12183
12257
  * @param {*} [options] Override http request option.
12258
+ * @deprecated
12184
12259
  * @throws {RequiredError}
12185
12260
  */
12186
- getNotifications: function (type, sent, hidden, after, n, offset, options) {
12261
+ getHealth: function (options) {
12187
12262
  if (options === void 0) { options = {}; }
12188
12263
  return __awaiter(_this, void 0, void 0, function () {
12189
12264
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12190
12265
  return __generator(this, function (_a) {
12191
- localVarPath = "/auth/user/notifications";
12266
+ localVarPath = "/health";
12192
12267
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12193
12268
  if (configuration) {
12194
12269
  baseOptions = configuration.baseOptions;
@@ -12196,25 +12271,6 @@ var NotificationsApiAxiosParamCreator = function (configuration) {
12196
12271
  localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
12197
12272
  localVarHeaderParameter = {};
12198
12273
  localVarQueryParameter = {};
12199
- // authentication authCookie required
12200
- if (type !== undefined) {
12201
- localVarQueryParameter['type'] = type;
12202
- }
12203
- if (sent !== undefined) {
12204
- localVarQueryParameter['sent'] = sent;
12205
- }
12206
- if (hidden !== undefined) {
12207
- localVarQueryParameter['hidden'] = hidden;
12208
- }
12209
- if (after !== undefined) {
12210
- localVarQueryParameter['after'] = after;
12211
- }
12212
- if (n !== undefined) {
12213
- localVarQueryParameter['n'] = n;
12214
- }
12215
- if (offset !== undefined) {
12216
- localVarQueryParameter['offset'] = offset;
12217
- }
12218
12274
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12219
12275
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12220
12276
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -12226,29 +12282,32 @@ var NotificationsApiAxiosParamCreator = function (configuration) {
12226
12282
  });
12227
12283
  },
12228
12284
  /**
12229
- * Mark a notification as seen.
12230
- * @summary Mark Notification As Read
12231
- * @param {string} notificationId Must be a valid notification ID.
12285
+ * IPS (Info Push System) is a system for VRChat to push out dynamic information to the client. This is primarily used by the Quick-Menu info banners, but can also be used to e.g. alert you to update your game to the latest version. `include` is used to query what Information Pushes should be included in the response. If include is missing or empty, then no notices will normally be returned. This is an \"any of\" search. `require` is used to limit what Information Pushes should be included in the response. This is usually used in combination with `include`, and is an \"all of\" search.
12286
+ * @summary Show Information Notices
12287
+ * @param {string} [require] Tags to include (comma-separated). All of the tags needs to be present.
12288
+ * @param {string} [include] Tags to include (comma-separated). Any of the tags needs to be present.
12232
12289
  * @param {*} [options] Override http request option.
12233
12290
  * @throws {RequiredError}
12234
12291
  */
12235
- markNotificationAsRead: function (notificationId, options) {
12292
+ getInfoPush: function (require, include, options) {
12236
12293
  if (options === void 0) { options = {}; }
12237
12294
  return __awaiter(_this, void 0, void 0, function () {
12238
12295
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12239
12296
  return __generator(this, function (_a) {
12240
- // verify required parameter 'notificationId' is not null or undefined
12241
- (0, common_1.assertParamExists)('markNotificationAsRead', 'notificationId', notificationId);
12242
- localVarPath = "/auth/user/notifications/{notificationId}/see"
12243
- .replace("{".concat("notificationId", "}"), encodeURIComponent(String(notificationId)));
12297
+ localVarPath = "/infoPush";
12244
12298
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12245
12299
  if (configuration) {
12246
12300
  baseOptions = configuration.baseOptions;
12247
12301
  }
12248
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
12302
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
12249
12303
  localVarHeaderParameter = {};
12250
12304
  localVarQueryParameter = {};
12251
- // authentication authCookie required
12305
+ if (require !== undefined) {
12306
+ localVarQueryParameter['require'] = require;
12307
+ }
12308
+ if (include !== undefined) {
12309
+ localVarQueryParameter['include'] = include;
12310
+ }
12252
12311
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12253
12312
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12254
12313
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -12259,68 +12318,128 @@ var NotificationsApiAxiosParamCreator = function (configuration) {
12259
12318
  });
12260
12319
  });
12261
12320
  },
12262
- };
12263
- };
12264
- exports.NotificationsApiAxiosParamCreator = NotificationsApiAxiosParamCreator;
12265
- /**
12266
- * NotificationsApi - functional programming interface
12267
- * @export
12268
- */
12269
- var NotificationsApiFp = function (configuration) {
12270
- var localVarAxiosParamCreator = (0, exports.NotificationsApiAxiosParamCreator)(configuration);
12271
- return {
12272
12321
  /**
12273
- * Accept a friend request by notification `frq_` ID. Friend requests can be found using the NotificationsAPI `getNotifications` by filtering of type `friendRequest`.
12274
- * @summary Accept Friend Request
12275
- * @param {string} notificationId Must be a valid notification ID.
12322
+ * Fetches the JavaScript code to the frontend React website.
12323
+ * @summary Download JavaScript
12324
+ * @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
12325
+ * @param {string} [branch] Specifies which git branch the site should load frontend source code from.
12276
12326
  * @param {*} [options] Override http request option.
12277
12327
  * @throws {RequiredError}
12278
12328
  */
12279
- acceptFriendRequest: function (notificationId, options) {
12280
- return __awaiter(this, void 0, void 0, function () {
12281
- var localVarAxiosArgs;
12329
+ getJavaScript: function (variant, branch, options) {
12330
+ if (options === void 0) { options = {}; }
12331
+ return __awaiter(_this, void 0, void 0, function () {
12332
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12282
12333
  return __generator(this, function (_a) {
12283
- switch (_a.label) {
12284
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.acceptFriendRequest(notificationId, options)];
12285
- case 1:
12286
- localVarAxiosArgs = _a.sent();
12287
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
12334
+ localVarPath = "/js/app.js";
12335
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12336
+ if (configuration) {
12337
+ baseOptions = configuration.baseOptions;
12288
12338
  }
12289
- });
12290
- });
12291
- },
12292
- /**
12293
- * Clear **all** notifications.
12294
- * @summary Clear All Notifications
12295
- * @param {*} [options] Override http request option.
12296
- * @throws {RequiredError}
12297
- */
12298
- clearNotifications: function (options) {
12299
- return __awaiter(this, void 0, void 0, function () {
12300
- var localVarAxiosArgs;
12301
- return __generator(this, function (_a) {
12302
- switch (_a.label) {
12303
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.clearNotifications(options)];
12304
- case 1:
12305
- localVarAxiosArgs = _a.sent();
12306
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
12339
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
12340
+ localVarHeaderParameter = {};
12341
+ localVarQueryParameter = {};
12342
+ if (variant !== undefined) {
12343
+ localVarQueryParameter['variant'] = variant;
12307
12344
  }
12345
+ if (branch !== undefined) {
12346
+ localVarQueryParameter['branch'] = branch;
12347
+ }
12348
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12349
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12350
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12351
+ return [2 /*return*/, {
12352
+ url: (0, common_1.toPathString)(localVarUrlObj),
12353
+ options: localVarRequestOptions,
12354
+ }];
12308
12355
  });
12309
12356
  });
12310
12357
  },
12311
12358
  /**
12312
- * Delete a notification.
12313
- * @summary Delete Notification
12314
- * @param {string} notificationId Must be a valid notification ID.
12359
+ * Returns a single permission. This endpoint is pretty useless, as it returns the exact same information as `/auth/permissions`.
12360
+ * @summary Get Permission
12361
+ * @param {string} permissionId Must be a valid permission ID.
12315
12362
  * @param {*} [options] Override http request option.
12316
12363
  * @throws {RequiredError}
12317
12364
  */
12318
- deleteNotification: function (notificationId, options) {
12365
+ getPermission: function (permissionId, options) {
12366
+ if (options === void 0) { options = {}; }
12367
+ return __awaiter(_this, void 0, void 0, function () {
12368
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12369
+ return __generator(this, function (_a) {
12370
+ // verify required parameter 'permissionId' is not null or undefined
12371
+ (0, common_1.assertParamExists)('getPermission', 'permissionId', permissionId);
12372
+ localVarPath = "/permissions/{permissionId}"
12373
+ .replace("{".concat("permissionId", "}"), encodeURIComponent(String(permissionId)));
12374
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12375
+ if (configuration) {
12376
+ baseOptions = configuration.baseOptions;
12377
+ }
12378
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
12379
+ localVarHeaderParameter = {};
12380
+ localVarQueryParameter = {};
12381
+ // authentication authCookie required
12382
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12383
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12384
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12385
+ return [2 /*return*/, {
12386
+ url: (0, common_1.toPathString)(localVarUrlObj),
12387
+ options: localVarRequestOptions,
12388
+ }];
12389
+ });
12390
+ });
12391
+ },
12392
+ /**
12393
+ * Returns the current time of the API server. **NOTE:** The response type is not a JSON object, but a simple JSON string.
12394
+ * @summary Current System Time
12395
+ * @param {*} [options] Override http request option.
12396
+ * @throws {RequiredError}
12397
+ */
12398
+ getSystemTime: function (options) {
12399
+ if (options === void 0) { options = {}; }
12400
+ return __awaiter(_this, void 0, void 0, function () {
12401
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12402
+ return __generator(this, function (_a) {
12403
+ localVarPath = "/time";
12404
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12405
+ if (configuration) {
12406
+ baseOptions = configuration.baseOptions;
12407
+ }
12408
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
12409
+ localVarHeaderParameter = {};
12410
+ localVarQueryParameter = {};
12411
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12412
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12413
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12414
+ return [2 /*return*/, {
12415
+ url: (0, common_1.toPathString)(localVarUrlObj),
12416
+ options: localVarRequestOptions,
12417
+ }];
12418
+ });
12419
+ });
12420
+ },
12421
+ };
12422
+ };
12423
+ exports.MiscellaneousApiAxiosParamCreator = MiscellaneousApiAxiosParamCreator;
12424
+ /**
12425
+ * MiscellaneousApi - functional programming interface
12426
+ * @export
12427
+ */
12428
+ var MiscellaneousApiFp = function (configuration) {
12429
+ var localVarAxiosParamCreator = (0, exports.MiscellaneousApiAxiosParamCreator)(configuration);
12430
+ return {
12431
+ /**
12432
+ * Returns a list of all permissions currently granted by the user. Permissions are assigned e.g. by subscribing to VRC+.
12433
+ * @summary Get Assigned Permissions
12434
+ * @param {*} [options] Override http request option.
12435
+ * @throws {RequiredError}
12436
+ */
12437
+ getAssignedPermissions: function (options) {
12319
12438
  return __awaiter(this, void 0, void 0, function () {
12320
12439
  var localVarAxiosArgs;
12321
12440
  return __generator(this, function (_a) {
12322
12441
  switch (_a.label) {
12323
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteNotification(notificationId, options)];
12442
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAssignedPermissions(options)];
12324
12443
  case 1:
12325
12444
  localVarAxiosArgs = _a.sent();
12326
12445
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -12329,18 +12448,19 @@ var NotificationsApiFp = function (configuration) {
12329
12448
  });
12330
12449
  },
12331
12450
  /**
12332
- * Get a notification by notification `not_` ID.
12333
- * @summary Show notification
12334
- * @param {string} notificationId Must be a valid notification ID.
12451
+ * Fetches the CSS code to the frontend React website.
12452
+ * @summary Download CSS
12453
+ * @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
12454
+ * @param {string} [branch] Specifies which git branch the site should load frontend source code from.
12335
12455
  * @param {*} [options] Override http request option.
12336
12456
  * @throws {RequiredError}
12337
12457
  */
12338
- getNotification: function (notificationId, options) {
12458
+ getCSS: function (variant, branch, options) {
12339
12459
  return __awaiter(this, void 0, void 0, function () {
12340
12460
  var localVarAxiosArgs;
12341
12461
  return __generator(this, function (_a) {
12342
12462
  switch (_a.label) {
12343
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getNotification(notificationId, options)];
12463
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCSS(variant, branch, options)];
12344
12464
  case 1:
12345
12465
  localVarAxiosArgs = _a.sent();
12346
12466
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -12349,23 +12469,17 @@ var NotificationsApiFp = function (configuration) {
12349
12469
  });
12350
12470
  },
12351
12471
  /**
12352
- * Retrieve all of the current user\'s notifications.
12353
- * @summary List Notifications
12354
- * @param {string} [type] Only send notifications of this type (can use `all` for all). This parameter no longer does anything, and is deprecated.
12355
- * @param {boolean} [sent] Return notifications sent by the user. Must be false or omitted.
12356
- * @param {boolean} [hidden] Whether to return hidden or non-hidden notifications. True only allowed on type `friendRequest`.
12357
- * @param {string} [after] Only return notifications sent after this Date. Ignored if type is `friendRequest`.
12358
- * @param {number} [n] The number of objects to return.
12359
- * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
12472
+ * API config contains configuration that the clients needs to work properly. Currently the most important value here is `clientApiKey` which is used for all other API endpoints.
12473
+ * @summary Fetch API Config
12360
12474
  * @param {*} [options] Override http request option.
12361
12475
  * @throws {RequiredError}
12362
12476
  */
12363
- getNotifications: function (type, sent, hidden, after, n, offset, options) {
12477
+ getConfig: function (options) {
12364
12478
  return __awaiter(this, void 0, void 0, function () {
12365
12479
  var localVarAxiosArgs;
12366
12480
  return __generator(this, function (_a) {
12367
12481
  switch (_a.label) {
12368
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getNotifications(type, sent, hidden, after, n, offset, options)];
12482
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getConfig(options)];
12369
12483
  case 1:
12370
12484
  localVarAxiosArgs = _a.sent();
12371
12485
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -12374,18 +12488,17 @@ var NotificationsApiFp = function (configuration) {
12374
12488
  });
12375
12489
  },
12376
12490
  /**
12377
- * Mark a notification as seen.
12378
- * @summary Mark Notification As Read
12379
- * @param {string} notificationId Must be a valid notification ID.
12491
+ * Returns the current number of online users. **NOTE:** The response type is not a JSON object, but a simple JSON integer.
12492
+ * @summary Current Online Users
12380
12493
  * @param {*} [options] Override http request option.
12381
12494
  * @throws {RequiredError}
12382
12495
  */
12383
- markNotificationAsRead: function (notificationId, options) {
12496
+ getCurrentOnlineUsers: function (options) {
12384
12497
  return __awaiter(this, void 0, void 0, function () {
12385
12498
  var localVarAxiosArgs;
12386
12499
  return __generator(this, function (_a) {
12387
12500
  switch (_a.label) {
12388
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.markNotificationAsRead(notificationId, options)];
12501
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCurrentOnlineUsers(options)];
12389
12502
  case 1:
12390
12503
  localVarAxiosArgs = _a.sent();
12391
12504
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -12393,266 +12506,61 @@ var NotificationsApiFp = function (configuration) {
12393
12506
  });
12394
12507
  });
12395
12508
  },
12396
- };
12397
- };
12398
- exports.NotificationsApiFp = NotificationsApiFp;
12399
- /**
12400
- * NotificationsApi - factory interface
12401
- * @export
12402
- */
12403
- var NotificationsApiFactory = function (configuration, basePath, axios) {
12404
- var localVarFp = (0, exports.NotificationsApiFp)(configuration);
12405
- return {
12406
- /**
12407
- * Accept a friend request by notification `frq_` ID. Friend requests can be found using the NotificationsAPI `getNotifications` by filtering of type `friendRequest`.
12408
- * @summary Accept Friend Request
12409
- * @param {string} notificationId Must be a valid notification ID.
12410
- * @param {*} [options] Override http request option.
12411
- * @throws {RequiredError}
12412
- */
12413
- acceptFriendRequest: function (notificationId, options) {
12414
- return localVarFp.acceptFriendRequest(notificationId, options).then(function (request) { return request(axios, basePath); });
12415
- },
12416
- /**
12417
- * Clear **all** notifications.
12418
- * @summary Clear All Notifications
12419
- * @param {*} [options] Override http request option.
12420
- * @throws {RequiredError}
12421
- */
12422
- clearNotifications: function (options) {
12423
- return localVarFp.clearNotifications(options).then(function (request) { return request(axios, basePath); });
12424
- },
12425
- /**
12426
- * Delete a notification.
12427
- * @summary Delete Notification
12428
- * @param {string} notificationId Must be a valid notification ID.
12429
- * @param {*} [options] Override http request option.
12430
- * @throws {RequiredError}
12431
- */
12432
- deleteNotification: function (notificationId, options) {
12433
- return localVarFp.deleteNotification(notificationId, options).then(function (request) { return request(axios, basePath); });
12434
- },
12435
- /**
12436
- * Get a notification by notification `not_` ID.
12437
- * @summary Show notification
12438
- * @param {string} notificationId Must be a valid notification ID.
12439
- * @param {*} [options] Override http request option.
12440
- * @throws {RequiredError}
12441
- */
12442
- getNotification: function (notificationId, options) {
12443
- return localVarFp.getNotification(notificationId, options).then(function (request) { return request(axios, basePath); });
12444
- },
12445
- /**
12446
- * Retrieve all of the current user\'s notifications.
12447
- * @summary List Notifications
12448
- * @param {string} [type] Only send notifications of this type (can use `all` for all). This parameter no longer does anything, and is deprecated.
12449
- * @param {boolean} [sent] Return notifications sent by the user. Must be false or omitted.
12450
- * @param {boolean} [hidden] Whether to return hidden or non-hidden notifications. True only allowed on type `friendRequest`.
12451
- * @param {string} [after] Only return notifications sent after this Date. Ignored if type is `friendRequest`.
12452
- * @param {number} [n] The number of objects to return.
12453
- * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
12454
- * @param {*} [options] Override http request option.
12455
- * @throws {RequiredError}
12456
- */
12457
- getNotifications: function (type, sent, hidden, after, n, offset, options) {
12458
- return localVarFp.getNotifications(type, sent, hidden, after, n, offset, options).then(function (request) { return request(axios, basePath); });
12459
- },
12460
- /**
12461
- * Mark a notification as seen.
12462
- * @summary Mark Notification As Read
12463
- * @param {string} notificationId Must be a valid notification ID.
12464
- * @param {*} [options] Override http request option.
12465
- * @throws {RequiredError}
12466
- */
12467
- markNotificationAsRead: function (notificationId, options) {
12468
- return localVarFp.markNotificationAsRead(notificationId, options).then(function (request) { return request(axios, basePath); });
12469
- },
12470
- };
12471
- };
12472
- exports.NotificationsApiFactory = NotificationsApiFactory;
12473
- /**
12474
- * NotificationsApi - object-oriented interface
12475
- * @export
12476
- * @class NotificationsApi
12477
- * @extends {BaseAPI}
12478
- */
12479
- var NotificationsApi = /** @class */ (function (_super) {
12480
- __extends(NotificationsApi, _super);
12481
- function NotificationsApi() {
12482
- return _super !== null && _super.apply(this, arguments) || this;
12483
- }
12484
- /**
12485
- * Accept a friend request by notification `frq_` ID. Friend requests can be found using the NotificationsAPI `getNotifications` by filtering of type `friendRequest`.
12486
- * @summary Accept Friend Request
12487
- * @param {string} notificationId Must be a valid notification ID.
12488
- * @param {*} [options] Override http request option.
12489
- * @throws {RequiredError}
12490
- * @memberof NotificationsApi
12491
- */
12492
- NotificationsApi.prototype.acceptFriendRequest = function (notificationId, options) {
12493
- var _this = this;
12494
- return (0, exports.NotificationsApiFp)(this.configuration).acceptFriendRequest(notificationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
12495
- };
12496
- /**
12497
- * Clear **all** notifications.
12498
- * @summary Clear All Notifications
12499
- * @param {*} [options] Override http request option.
12500
- * @throws {RequiredError}
12501
- * @memberof NotificationsApi
12502
- */
12503
- NotificationsApi.prototype.clearNotifications = function (options) {
12504
- var _this = this;
12505
- return (0, exports.NotificationsApiFp)(this.configuration).clearNotifications(options).then(function (request) { return request(_this.axios, _this.basePath); });
12506
- };
12507
- /**
12508
- * Delete a notification.
12509
- * @summary Delete Notification
12510
- * @param {string} notificationId Must be a valid notification ID.
12511
- * @param {*} [options] Override http request option.
12512
- * @throws {RequiredError}
12513
- * @memberof NotificationsApi
12514
- */
12515
- NotificationsApi.prototype.deleteNotification = function (notificationId, options) {
12516
- var _this = this;
12517
- return (0, exports.NotificationsApiFp)(this.configuration).deleteNotification(notificationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
12518
- };
12519
- /**
12520
- * Get a notification by notification `not_` ID.
12521
- * @summary Show notification
12522
- * @param {string} notificationId Must be a valid notification ID.
12523
- * @param {*} [options] Override http request option.
12524
- * @throws {RequiredError}
12525
- * @memberof NotificationsApi
12526
- */
12527
- NotificationsApi.prototype.getNotification = function (notificationId, options) {
12528
- var _this = this;
12529
- return (0, exports.NotificationsApiFp)(this.configuration).getNotification(notificationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
12530
- };
12531
- /**
12532
- * Retrieve all of the current user\'s notifications.
12533
- * @summary List Notifications
12534
- * @param {string} [type] Only send notifications of this type (can use `all` for all). This parameter no longer does anything, and is deprecated.
12535
- * @param {boolean} [sent] Return notifications sent by the user. Must be false or omitted.
12536
- * @param {boolean} [hidden] Whether to return hidden or non-hidden notifications. True only allowed on type `friendRequest`.
12537
- * @param {string} [after] Only return notifications sent after this Date. Ignored if type is `friendRequest`.
12538
- * @param {number} [n] The number of objects to return.
12539
- * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
12540
- * @param {*} [options] Override http request option.
12541
- * @throws {RequiredError}
12542
- * @memberof NotificationsApi
12543
- */
12544
- NotificationsApi.prototype.getNotifications = function (type, sent, hidden, after, n, offset, options) {
12545
- var _this = this;
12546
- return (0, exports.NotificationsApiFp)(this.configuration).getNotifications(type, sent, hidden, after, n, offset, options).then(function (request) { return request(_this.axios, _this.basePath); });
12547
- };
12548
- /**
12549
- * Mark a notification as seen.
12550
- * @summary Mark Notification As Read
12551
- * @param {string} notificationId Must be a valid notification ID.
12552
- * @param {*} [options] Override http request option.
12553
- * @throws {RequiredError}
12554
- * @memberof NotificationsApi
12555
- */
12556
- NotificationsApi.prototype.markNotificationAsRead = function (notificationId, options) {
12557
- var _this = this;
12558
- return (0, exports.NotificationsApiFp)(this.configuration).markNotificationAsRead(notificationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
12559
- };
12560
- return NotificationsApi;
12561
- }(base_1.BaseAPI));
12562
- exports.NotificationsApi = NotificationsApi;
12563
- /**
12564
- * PermissionsApi - axios parameter creator
12565
- * @export
12566
- */
12567
- var PermissionsApiAxiosParamCreator = function (configuration) {
12568
- var _this = this;
12569
- return {
12570
12509
  /**
12571
- * Returns a list of all permissions currently granted by the user. Permissions are assigned e.g. by subscribing to VRC+.
12572
- * @summary Get Assigned Permissions
12510
+ * ~~Gets the overall health status, the server name, and the current build version tag of the API.~~ **DEPRECATED:** VRChat has suddenly restricted this endpoint for unknown reasons, and now always return 401 Unauthorized.
12511
+ * @summary Check API Health
12573
12512
  * @param {*} [options] Override http request option.
12513
+ * @deprecated
12574
12514
  * @throws {RequiredError}
12575
12515
  */
12576
- getAssignedPermissions: function (options) {
12577
- if (options === void 0) { options = {}; }
12578
- return __awaiter(_this, void 0, void 0, function () {
12579
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12516
+ getHealth: function (options) {
12517
+ return __awaiter(this, void 0, void 0, function () {
12518
+ var localVarAxiosArgs;
12580
12519
  return __generator(this, function (_a) {
12581
- localVarPath = "/auth/permissions";
12582
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12583
- if (configuration) {
12584
- baseOptions = configuration.baseOptions;
12520
+ switch (_a.label) {
12521
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getHealth(options)];
12522
+ case 1:
12523
+ localVarAxiosArgs = _a.sent();
12524
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
12585
12525
  }
12586
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
12587
- localVarHeaderParameter = {};
12588
- localVarQueryParameter = {};
12589
- // authentication authCookie required
12590
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12591
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12592
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12593
- return [2 /*return*/, {
12594
- url: (0, common_1.toPathString)(localVarUrlObj),
12595
- options: localVarRequestOptions,
12596
- }];
12597
12526
  });
12598
12527
  });
12599
12528
  },
12600
12529
  /**
12601
- * Returns a single permission. This endpoint is pretty useless, as it returns the exact same information as `/auth/permissions`.
12602
- * @summary Get Permission
12603
- * @param {string} permissionId Must be a valid permission ID.
12530
+ * IPS (Info Push System) is a system for VRChat to push out dynamic information to the client. This is primarily used by the Quick-Menu info banners, but can also be used to e.g. alert you to update your game to the latest version. `include` is used to query what Information Pushes should be included in the response. If include is missing or empty, then no notices will normally be returned. This is an \"any of\" search. `require` is used to limit what Information Pushes should be included in the response. This is usually used in combination with `include`, and is an \"all of\" search.
12531
+ * @summary Show Information Notices
12532
+ * @param {string} [require] Tags to include (comma-separated). All of the tags needs to be present.
12533
+ * @param {string} [include] Tags to include (comma-separated). Any of the tags needs to be present.
12604
12534
  * @param {*} [options] Override http request option.
12605
12535
  * @throws {RequiredError}
12606
12536
  */
12607
- getPermission: function (permissionId, options) {
12608
- if (options === void 0) { options = {}; }
12609
- return __awaiter(_this, void 0, void 0, function () {
12610
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12537
+ getInfoPush: function (require, include, options) {
12538
+ return __awaiter(this, void 0, void 0, function () {
12539
+ var localVarAxiosArgs;
12611
12540
  return __generator(this, function (_a) {
12612
- // verify required parameter 'permissionId' is not null or undefined
12613
- (0, common_1.assertParamExists)('getPermission', 'permissionId', permissionId);
12614
- localVarPath = "/permissions/{permissionId}"
12615
- .replace("{".concat("permissionId", "}"), encodeURIComponent(String(permissionId)));
12616
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12617
- if (configuration) {
12618
- baseOptions = configuration.baseOptions;
12541
+ switch (_a.label) {
12542
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInfoPush(require, include, options)];
12543
+ case 1:
12544
+ localVarAxiosArgs = _a.sent();
12545
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
12619
12546
  }
12620
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
12621
- localVarHeaderParameter = {};
12622
- localVarQueryParameter = {};
12623
- // authentication authCookie required
12624
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12625
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12626
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12627
- return [2 /*return*/, {
12628
- url: (0, common_1.toPathString)(localVarUrlObj),
12629
- options: localVarRequestOptions,
12630
- }];
12631
12547
  });
12632
12548
  });
12633
12549
  },
12634
- };
12635
- };
12636
- exports.PermissionsApiAxiosParamCreator = PermissionsApiAxiosParamCreator;
12637
- /**
12638
- * PermissionsApi - functional programming interface
12639
- * @export
12640
- */
12641
- var PermissionsApiFp = function (configuration) {
12642
- var localVarAxiosParamCreator = (0, exports.PermissionsApiAxiosParamCreator)(configuration);
12643
- return {
12644
12550
  /**
12645
- * Returns a list of all permissions currently granted by the user. Permissions are assigned e.g. by subscribing to VRC+.
12646
- * @summary Get Assigned Permissions
12551
+ * Fetches the JavaScript code to the frontend React website.
12552
+ * @summary Download JavaScript
12553
+ * @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
12554
+ * @param {string} [branch] Specifies which git branch the site should load frontend source code from.
12647
12555
  * @param {*} [options] Override http request option.
12648
12556
  * @throws {RequiredError}
12649
12557
  */
12650
- getAssignedPermissions: function (options) {
12558
+ getJavaScript: function (variant, branch, options) {
12651
12559
  return __awaiter(this, void 0, void 0, function () {
12652
12560
  var localVarAxiosArgs;
12653
12561
  return __generator(this, function (_a) {
12654
12562
  switch (_a.label) {
12655
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAssignedPermissions(options)];
12563
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getJavaScript(variant, branch, options)];
12656
12564
  case 1:
12657
12565
  localVarAxiosArgs = _a.sent();
12658
12566
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -12680,15 +12588,34 @@ var PermissionsApiFp = function (configuration) {
12680
12588
  });
12681
12589
  });
12682
12590
  },
12591
+ /**
12592
+ * Returns the current time of the API server. **NOTE:** The response type is not a JSON object, but a simple JSON string.
12593
+ * @summary Current System Time
12594
+ * @param {*} [options] Override http request option.
12595
+ * @throws {RequiredError}
12596
+ */
12597
+ getSystemTime: function (options) {
12598
+ return __awaiter(this, void 0, void 0, function () {
12599
+ var localVarAxiosArgs;
12600
+ return __generator(this, function (_a) {
12601
+ switch (_a.label) {
12602
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSystemTime(options)];
12603
+ case 1:
12604
+ localVarAxiosArgs = _a.sent();
12605
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
12606
+ }
12607
+ });
12608
+ });
12609
+ },
12683
12610
  };
12684
12611
  };
12685
- exports.PermissionsApiFp = PermissionsApiFp;
12612
+ exports.MiscellaneousApiFp = MiscellaneousApiFp;
12686
12613
  /**
12687
- * PermissionsApi - factory interface
12614
+ * MiscellaneousApi - factory interface
12688
12615
  * @export
12689
12616
  */
12690
- var PermissionsApiFactory = function (configuration, basePath, axios) {
12691
- var localVarFp = (0, exports.PermissionsApiFp)(configuration);
12617
+ var MiscellaneousApiFactory = function (configuration, basePath, axios) {
12618
+ var localVarFp = (0, exports.MiscellaneousApiFp)(configuration);
12692
12619
  return {
12693
12620
  /**
12694
12621
  * Returns a list of all permissions currently granted by the user. Permissions are assigned e.g. by subscribing to VRC+.
@@ -12699,6 +12626,67 @@ var PermissionsApiFactory = function (configuration, basePath, axios) {
12699
12626
  getAssignedPermissions: function (options) {
12700
12627
  return localVarFp.getAssignedPermissions(options).then(function (request) { return request(axios, basePath); });
12701
12628
  },
12629
+ /**
12630
+ * Fetches the CSS code to the frontend React website.
12631
+ * @summary Download CSS
12632
+ * @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
12633
+ * @param {string} [branch] Specifies which git branch the site should load frontend source code from.
12634
+ * @param {*} [options] Override http request option.
12635
+ * @throws {RequiredError}
12636
+ */
12637
+ getCSS: function (variant, branch, options) {
12638
+ return localVarFp.getCSS(variant, branch, options).then(function (request) { return request(axios, basePath); });
12639
+ },
12640
+ /**
12641
+ * API config contains configuration that the clients needs to work properly. Currently the most important value here is `clientApiKey` which is used for all other API endpoints.
12642
+ * @summary Fetch API Config
12643
+ * @param {*} [options] Override http request option.
12644
+ * @throws {RequiredError}
12645
+ */
12646
+ getConfig: function (options) {
12647
+ return localVarFp.getConfig(options).then(function (request) { return request(axios, basePath); });
12648
+ },
12649
+ /**
12650
+ * Returns the current number of online users. **NOTE:** The response type is not a JSON object, but a simple JSON integer.
12651
+ * @summary Current Online Users
12652
+ * @param {*} [options] Override http request option.
12653
+ * @throws {RequiredError}
12654
+ */
12655
+ getCurrentOnlineUsers: function (options) {
12656
+ return localVarFp.getCurrentOnlineUsers(options).then(function (request) { return request(axios, basePath); });
12657
+ },
12658
+ /**
12659
+ * ~~Gets the overall health status, the server name, and the current build version tag of the API.~~ **DEPRECATED:** VRChat has suddenly restricted this endpoint for unknown reasons, and now always return 401 Unauthorized.
12660
+ * @summary Check API Health
12661
+ * @param {*} [options] Override http request option.
12662
+ * @deprecated
12663
+ * @throws {RequiredError}
12664
+ */
12665
+ getHealth: function (options) {
12666
+ return localVarFp.getHealth(options).then(function (request) { return request(axios, basePath); });
12667
+ },
12668
+ /**
12669
+ * IPS (Info Push System) is a system for VRChat to push out dynamic information to the client. This is primarily used by the Quick-Menu info banners, but can also be used to e.g. alert you to update your game to the latest version. `include` is used to query what Information Pushes should be included in the response. If include is missing or empty, then no notices will normally be returned. This is an \"any of\" search. `require` is used to limit what Information Pushes should be included in the response. This is usually used in combination with `include`, and is an \"all of\" search.
12670
+ * @summary Show Information Notices
12671
+ * @param {string} [require] Tags to include (comma-separated). All of the tags needs to be present.
12672
+ * @param {string} [include] Tags to include (comma-separated). Any of the tags needs to be present.
12673
+ * @param {*} [options] Override http request option.
12674
+ * @throws {RequiredError}
12675
+ */
12676
+ getInfoPush: function (require, include, options) {
12677
+ return localVarFp.getInfoPush(require, include, options).then(function (request) { return request(axios, basePath); });
12678
+ },
12679
+ /**
12680
+ * Fetches the JavaScript code to the frontend React website.
12681
+ * @summary Download JavaScript
12682
+ * @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
12683
+ * @param {string} [branch] Specifies which git branch the site should load frontend source code from.
12684
+ * @param {*} [options] Override http request option.
12685
+ * @throws {RequiredError}
12686
+ */
12687
+ getJavaScript: function (variant, branch, options) {
12688
+ return localVarFp.getJavaScript(variant, branch, options).then(function (request) { return request(axios, basePath); });
12689
+ },
12702
12690
  /**
12703
12691
  * Returns a single permission. This endpoint is pretty useless, as it returns the exact same information as `/auth/permissions`.
12704
12692
  * @summary Get Permission
@@ -12709,30 +12697,112 @@ var PermissionsApiFactory = function (configuration, basePath, axios) {
12709
12697
  getPermission: function (permissionId, options) {
12710
12698
  return localVarFp.getPermission(permissionId, options).then(function (request) { return request(axios, basePath); });
12711
12699
  },
12700
+ /**
12701
+ * Returns the current time of the API server. **NOTE:** The response type is not a JSON object, but a simple JSON string.
12702
+ * @summary Current System Time
12703
+ * @param {*} [options] Override http request option.
12704
+ * @throws {RequiredError}
12705
+ */
12706
+ getSystemTime: function (options) {
12707
+ return localVarFp.getSystemTime(options).then(function (request) { return request(axios, basePath); });
12708
+ },
12709
+ };
12710
+ };
12711
+ exports.MiscellaneousApiFactory = MiscellaneousApiFactory;
12712
+ /**
12713
+ * MiscellaneousApi - object-oriented interface
12714
+ * @export
12715
+ * @class MiscellaneousApi
12716
+ * @extends {BaseAPI}
12717
+ */
12718
+ var MiscellaneousApi = /** @class */ (function (_super) {
12719
+ __extends(MiscellaneousApi, _super);
12720
+ function MiscellaneousApi() {
12721
+ return _super !== null && _super.apply(this, arguments) || this;
12722
+ }
12723
+ /**
12724
+ * Returns a list of all permissions currently granted by the user. Permissions are assigned e.g. by subscribing to VRC+.
12725
+ * @summary Get Assigned Permissions
12726
+ * @param {*} [options] Override http request option.
12727
+ * @throws {RequiredError}
12728
+ * @memberof MiscellaneousApi
12729
+ */
12730
+ MiscellaneousApi.prototype.getAssignedPermissions = function (options) {
12731
+ var _this = this;
12732
+ return (0, exports.MiscellaneousApiFp)(this.configuration).getAssignedPermissions(options).then(function (request) { return request(_this.axios, _this.basePath); });
12733
+ };
12734
+ /**
12735
+ * Fetches the CSS code to the frontend React website.
12736
+ * @summary Download CSS
12737
+ * @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
12738
+ * @param {string} [branch] Specifies which git branch the site should load frontend source code from.
12739
+ * @param {*} [options] Override http request option.
12740
+ * @throws {RequiredError}
12741
+ * @memberof MiscellaneousApi
12742
+ */
12743
+ MiscellaneousApi.prototype.getCSS = function (variant, branch, options) {
12744
+ var _this = this;
12745
+ return (0, exports.MiscellaneousApiFp)(this.configuration).getCSS(variant, branch, options).then(function (request) { return request(_this.axios, _this.basePath); });
12746
+ };
12747
+ /**
12748
+ * API config contains configuration that the clients needs to work properly. Currently the most important value here is `clientApiKey` which is used for all other API endpoints.
12749
+ * @summary Fetch API Config
12750
+ * @param {*} [options] Override http request option.
12751
+ * @throws {RequiredError}
12752
+ * @memberof MiscellaneousApi
12753
+ */
12754
+ MiscellaneousApi.prototype.getConfig = function (options) {
12755
+ var _this = this;
12756
+ return (0, exports.MiscellaneousApiFp)(this.configuration).getConfig(options).then(function (request) { return request(_this.axios, _this.basePath); });
12757
+ };
12758
+ /**
12759
+ * Returns the current number of online users. **NOTE:** The response type is not a JSON object, but a simple JSON integer.
12760
+ * @summary Current Online Users
12761
+ * @param {*} [options] Override http request option.
12762
+ * @throws {RequiredError}
12763
+ * @memberof MiscellaneousApi
12764
+ */
12765
+ MiscellaneousApi.prototype.getCurrentOnlineUsers = function (options) {
12766
+ var _this = this;
12767
+ return (0, exports.MiscellaneousApiFp)(this.configuration).getCurrentOnlineUsers(options).then(function (request) { return request(_this.axios, _this.basePath); });
12768
+ };
12769
+ /**
12770
+ * ~~Gets the overall health status, the server name, and the current build version tag of the API.~~ **DEPRECATED:** VRChat has suddenly restricted this endpoint for unknown reasons, and now always return 401 Unauthorized.
12771
+ * @summary Check API Health
12772
+ * @param {*} [options] Override http request option.
12773
+ * @deprecated
12774
+ * @throws {RequiredError}
12775
+ * @memberof MiscellaneousApi
12776
+ */
12777
+ MiscellaneousApi.prototype.getHealth = function (options) {
12778
+ var _this = this;
12779
+ return (0, exports.MiscellaneousApiFp)(this.configuration).getHealth(options).then(function (request) { return request(_this.axios, _this.basePath); });
12712
12780
  };
12713
- };
12714
- exports.PermissionsApiFactory = PermissionsApiFactory;
12715
- /**
12716
- * PermissionsApi - object-oriented interface
12717
- * @export
12718
- * @class PermissionsApi
12719
- * @extends {BaseAPI}
12720
- */
12721
- var PermissionsApi = /** @class */ (function (_super) {
12722
- __extends(PermissionsApi, _super);
12723
- function PermissionsApi() {
12724
- return _super !== null && _super.apply(this, arguments) || this;
12725
- }
12726
12781
  /**
12727
- * Returns a list of all permissions currently granted by the user. Permissions are assigned e.g. by subscribing to VRC+.
12728
- * @summary Get Assigned Permissions
12782
+ * IPS (Info Push System) is a system for VRChat to push out dynamic information to the client. This is primarily used by the Quick-Menu info banners, but can also be used to e.g. alert you to update your game to the latest version. `include` is used to query what Information Pushes should be included in the response. If include is missing or empty, then no notices will normally be returned. This is an \"any of\" search. `require` is used to limit what Information Pushes should be included in the response. This is usually used in combination with `include`, and is an \"all of\" search.
12783
+ * @summary Show Information Notices
12784
+ * @param {string} [require] Tags to include (comma-separated). All of the tags needs to be present.
12785
+ * @param {string} [include] Tags to include (comma-separated). Any of the tags needs to be present.
12786
+ * @param {*} [options] Override http request option.
12787
+ * @throws {RequiredError}
12788
+ * @memberof MiscellaneousApi
12789
+ */
12790
+ MiscellaneousApi.prototype.getInfoPush = function (require, include, options) {
12791
+ var _this = this;
12792
+ return (0, exports.MiscellaneousApiFp)(this.configuration).getInfoPush(require, include, options).then(function (request) { return request(_this.axios, _this.basePath); });
12793
+ };
12794
+ /**
12795
+ * Fetches the JavaScript code to the frontend React website.
12796
+ * @summary Download JavaScript
12797
+ * @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
12798
+ * @param {string} [branch] Specifies which git branch the site should load frontend source code from.
12729
12799
  * @param {*} [options] Override http request option.
12730
12800
  * @throws {RequiredError}
12731
- * @memberof PermissionsApi
12801
+ * @memberof MiscellaneousApi
12732
12802
  */
12733
- PermissionsApi.prototype.getAssignedPermissions = function (options) {
12803
+ MiscellaneousApi.prototype.getJavaScript = function (variant, branch, options) {
12734
12804
  var _this = this;
12735
- return (0, exports.PermissionsApiFp)(this.configuration).getAssignedPermissions(options).then(function (request) { return request(_this.axios, _this.basePath); });
12805
+ return (0, exports.MiscellaneousApiFp)(this.configuration).getJavaScript(variant, branch, options).then(function (request) { return request(_this.axios, _this.basePath); });
12736
12806
  };
12737
12807
  /**
12738
12808
  * Returns a single permission. This endpoint is pretty useless, as it returns the exact same information as `/auth/permissions`.
@@ -12740,39 +12810,54 @@ var PermissionsApi = /** @class */ (function (_super) {
12740
12810
  * @param {string} permissionId Must be a valid permission ID.
12741
12811
  * @param {*} [options] Override http request option.
12742
12812
  * @throws {RequiredError}
12743
- * @memberof PermissionsApi
12813
+ * @memberof MiscellaneousApi
12814
+ */
12815
+ MiscellaneousApi.prototype.getPermission = function (permissionId, options) {
12816
+ var _this = this;
12817
+ return (0, exports.MiscellaneousApiFp)(this.configuration).getPermission(permissionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
12818
+ };
12819
+ /**
12820
+ * Returns the current time of the API server. **NOTE:** The response type is not a JSON object, but a simple JSON string.
12821
+ * @summary Current System Time
12822
+ * @param {*} [options] Override http request option.
12823
+ * @throws {RequiredError}
12824
+ * @memberof MiscellaneousApi
12744
12825
  */
12745
- PermissionsApi.prototype.getPermission = function (permissionId, options) {
12826
+ MiscellaneousApi.prototype.getSystemTime = function (options) {
12746
12827
  var _this = this;
12747
- return (0, exports.PermissionsApiFp)(this.configuration).getPermission(permissionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
12828
+ return (0, exports.MiscellaneousApiFp)(this.configuration).getSystemTime(options).then(function (request) { return request(_this.axios, _this.basePath); });
12748
12829
  };
12749
- return PermissionsApi;
12830
+ return MiscellaneousApi;
12750
12831
  }(base_1.BaseAPI));
12751
- exports.PermissionsApi = PermissionsApi;
12832
+ exports.MiscellaneousApi = MiscellaneousApi;
12752
12833
  /**
12753
- * PlayermoderationApi - axios parameter creator
12834
+ * NotificationsApi - axios parameter creator
12754
12835
  * @export
12755
12836
  */
12756
- var PlayermoderationApiAxiosParamCreator = function (configuration) {
12837
+ var NotificationsApiAxiosParamCreator = function (configuration) {
12757
12838
  var _this = this;
12758
12839
  return {
12759
12840
  /**
12760
- * ⚠️ **This will delete every single player moderation you\'ve ever made.**
12761
- * @summary Clear All Player Moderations
12841
+ * Accept a friend request by notification `frq_` ID. Friend requests can be found using the NotificationsAPI `getNotifications` by filtering of type `friendRequest`.
12842
+ * @summary Accept Friend Request
12843
+ * @param {string} notificationId Must be a valid notification ID.
12762
12844
  * @param {*} [options] Override http request option.
12763
12845
  * @throws {RequiredError}
12764
12846
  */
12765
- clearAllPlayerModerations: function (options) {
12847
+ acceptFriendRequest: function (notificationId, options) {
12766
12848
  if (options === void 0) { options = {}; }
12767
12849
  return __awaiter(_this, void 0, void 0, function () {
12768
12850
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12769
12851
  return __generator(this, function (_a) {
12770
- localVarPath = "/auth/user/playermoderations";
12852
+ // verify required parameter 'notificationId' is not null or undefined
12853
+ (0, common_1.assertParamExists)('acceptFriendRequest', 'notificationId', notificationId);
12854
+ localVarPath = "/auth/user/notifications/{notificationId}/accept"
12855
+ .replace("{".concat("notificationId", "}"), encodeURIComponent(String(notificationId)));
12771
12856
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12772
12857
  if (configuration) {
12773
12858
  baseOptions = configuration.baseOptions;
12774
12859
  }
12775
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
12860
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
12776
12861
  localVarHeaderParameter = {};
12777
12862
  localVarQueryParameter = {};
12778
12863
  // authentication authCookie required
@@ -12787,33 +12872,93 @@ var PlayermoderationApiAxiosParamCreator = function (configuration) {
12787
12872
  });
12788
12873
  },
12789
12874
  /**
12790
- * Returns a list of all player moderations made by **you**. This endpoint does not have pagination, and will return *all* results. Use query parameters to limit your query if needed.
12791
- * @summary Search Player Moderations
12792
- * @param {string} [type] Must be one of PlayerModerationType, except unblock. Unblocking simply removes a block.
12793
- * @param {string} [targetUserId] Must be valid UserID.
12875
+ * Clear **all** notifications.
12876
+ * @summary Clear All Notifications
12794
12877
  * @param {*} [options] Override http request option.
12795
12878
  * @throws {RequiredError}
12796
12879
  */
12797
- getPlayerModerations: function (type, targetUserId, options) {
12880
+ clearNotifications: function (options) {
12798
12881
  if (options === void 0) { options = {}; }
12799
12882
  return __awaiter(_this, void 0, void 0, function () {
12800
12883
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12801
12884
  return __generator(this, function (_a) {
12802
- localVarPath = "/auth/user/playermoderations";
12885
+ localVarPath = "/auth/user/notifications/clear";
12803
12886
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12804
12887
  if (configuration) {
12805
12888
  baseOptions = configuration.baseOptions;
12806
12889
  }
12807
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
12890
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
12808
12891
  localVarHeaderParameter = {};
12809
12892
  localVarQueryParameter = {};
12810
12893
  // authentication authCookie required
12811
- if (type !== undefined) {
12812
- localVarQueryParameter['type'] = type;
12894
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12895
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12896
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12897
+ return [2 /*return*/, {
12898
+ url: (0, common_1.toPathString)(localVarUrlObj),
12899
+ options: localVarRequestOptions,
12900
+ }];
12901
+ });
12902
+ });
12903
+ },
12904
+ /**
12905
+ * Delete a notification.
12906
+ * @summary Delete Notification
12907
+ * @param {string} notificationId Must be a valid notification ID.
12908
+ * @param {*} [options] Override http request option.
12909
+ * @throws {RequiredError}
12910
+ */
12911
+ deleteNotification: function (notificationId, options) {
12912
+ if (options === void 0) { options = {}; }
12913
+ return __awaiter(_this, void 0, void 0, function () {
12914
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12915
+ return __generator(this, function (_a) {
12916
+ // verify required parameter 'notificationId' is not null or undefined
12917
+ (0, common_1.assertParamExists)('deleteNotification', 'notificationId', notificationId);
12918
+ localVarPath = "/auth/user/notifications/{notificationId}/hide"
12919
+ .replace("{".concat("notificationId", "}"), encodeURIComponent(String(notificationId)));
12920
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12921
+ if (configuration) {
12922
+ baseOptions = configuration.baseOptions;
12813
12923
  }
12814
- if (targetUserId !== undefined) {
12815
- localVarQueryParameter['targetUserId'] = targetUserId;
12924
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
12925
+ localVarHeaderParameter = {};
12926
+ localVarQueryParameter = {};
12927
+ // authentication authCookie required
12928
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12929
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12930
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12931
+ return [2 /*return*/, {
12932
+ url: (0, common_1.toPathString)(localVarUrlObj),
12933
+ options: localVarRequestOptions,
12934
+ }];
12935
+ });
12936
+ });
12937
+ },
12938
+ /**
12939
+ * Get a notification by notification `not_` ID.
12940
+ * @summary Show notification
12941
+ * @param {string} notificationId Must be a valid notification ID.
12942
+ * @param {*} [options] Override http request option.
12943
+ * @throws {RequiredError}
12944
+ */
12945
+ getNotification: function (notificationId, options) {
12946
+ if (options === void 0) { options = {}; }
12947
+ return __awaiter(_this, void 0, void 0, function () {
12948
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12949
+ return __generator(this, function (_a) {
12950
+ // verify required parameter 'notificationId' is not null or undefined
12951
+ (0, common_1.assertParamExists)('getNotification', 'notificationId', notificationId);
12952
+ localVarPath = "/auth/user/notifications/{notificationId}"
12953
+ .replace("{".concat("notificationId", "}"), encodeURIComponent(String(notificationId)));
12954
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12955
+ if (configuration) {
12956
+ baseOptions = configuration.baseOptions;
12816
12957
  }
12958
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
12959
+ localVarHeaderParameter = {};
12960
+ localVarQueryParameter = {};
12961
+ // authentication authCookie required
12817
12962
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12818
12963
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12819
12964
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -12825,33 +12970,52 @@ var PlayermoderationApiAxiosParamCreator = function (configuration) {
12825
12970
  });
12826
12971
  },
12827
12972
  /**
12828
- * Moderate a user, e.g. unmute them or show their avatar. Please see the [Player Moderation docs](https://vrchatapi.github.io/docs/api/#tag--playermoderation) on what playerModerations are, and how they differ from staff moderations.
12829
- * @summary Moderate User
12830
- * @param {ModerateUserRequest} moderateUserRequest
12973
+ * Retrieve all of the current user\'s notifications.
12974
+ * @summary List Notifications
12975
+ * @param {string} [type] Only send notifications of this type (can use `all` for all). This parameter no longer does anything, and is deprecated.
12976
+ * @param {boolean} [sent] Return notifications sent by the user. Must be false or omitted.
12977
+ * @param {boolean} [hidden] Whether to return hidden or non-hidden notifications. True only allowed on type `friendRequest`.
12978
+ * @param {string} [after] Only return notifications sent after this Date. Ignored if type is `friendRequest`.
12979
+ * @param {number} [n] The number of objects to return.
12980
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
12831
12981
  * @param {*} [options] Override http request option.
12832
12982
  * @throws {RequiredError}
12833
12983
  */
12834
- moderateUser: function (moderateUserRequest, options) {
12984
+ getNotifications: function (type, sent, hidden, after, n, offset, options) {
12835
12985
  if (options === void 0) { options = {}; }
12836
12986
  return __awaiter(_this, void 0, void 0, function () {
12837
12987
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12838
12988
  return __generator(this, function (_a) {
12839
- // verify required parameter 'moderateUserRequest' is not null or undefined
12840
- (0, common_1.assertParamExists)('moderateUser', 'moderateUserRequest', moderateUserRequest);
12841
- localVarPath = "/auth/user/playermoderations";
12989
+ localVarPath = "/auth/user/notifications";
12842
12990
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12843
12991
  if (configuration) {
12844
12992
  baseOptions = configuration.baseOptions;
12845
12993
  }
12846
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
12994
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
12847
12995
  localVarHeaderParameter = {};
12848
12996
  localVarQueryParameter = {};
12849
12997
  // authentication authCookie required
12850
- localVarHeaderParameter['Content-Type'] = 'application/json';
12998
+ if (type !== undefined) {
12999
+ localVarQueryParameter['type'] = type;
13000
+ }
13001
+ if (sent !== undefined) {
13002
+ localVarQueryParameter['sent'] = sent;
13003
+ }
13004
+ if (hidden !== undefined) {
13005
+ localVarQueryParameter['hidden'] = hidden;
13006
+ }
13007
+ if (after !== undefined) {
13008
+ localVarQueryParameter['after'] = after;
13009
+ }
13010
+ if (n !== undefined) {
13011
+ localVarQueryParameter['n'] = n;
13012
+ }
13013
+ if (offset !== undefined) {
13014
+ localVarQueryParameter['offset'] = offset;
13015
+ }
12851
13016
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12852
13017
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12853
13018
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12854
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(moderateUserRequest, localVarRequestOptions, configuration);
12855
13019
  return [2 /*return*/, {
12856
13020
  url: (0, common_1.toPathString)(localVarUrlObj),
12857
13021
  options: localVarRequestOptions,
@@ -12860,20 +13024,21 @@ var PlayermoderationApiAxiosParamCreator = function (configuration) {
12860
13024
  });
12861
13025
  },
12862
13026
  /**
12863
- * Removes a player moderation previously added through `moderateUser`. E.g if you previously have shown their avatar, but now want to reset it to default.
12864
- * @summary Unmoderate User
12865
- * @param {ModerateUserRequest} moderateUserRequest
13027
+ * Mark a notification as seen.
13028
+ * @summary Mark Notification As Read
13029
+ * @param {string} notificationId Must be a valid notification ID.
12866
13030
  * @param {*} [options] Override http request option.
12867
13031
  * @throws {RequiredError}
12868
13032
  */
12869
- unmoderateUser: function (moderateUserRequest, options) {
13033
+ markNotificationAsRead: function (notificationId, options) {
12870
13034
  if (options === void 0) { options = {}; }
12871
13035
  return __awaiter(_this, void 0, void 0, function () {
12872
13036
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12873
13037
  return __generator(this, function (_a) {
12874
- // verify required parameter 'moderateUserRequest' is not null or undefined
12875
- (0, common_1.assertParamExists)('unmoderateUser', 'moderateUserRequest', moderateUserRequest);
12876
- localVarPath = "/auth/user/unplayermoderate";
13038
+ // verify required parameter 'notificationId' is not null or undefined
13039
+ (0, common_1.assertParamExists)('markNotificationAsRead', 'notificationId', notificationId);
13040
+ localVarPath = "/auth/user/notifications/{notificationId}/see"
13041
+ .replace("{".concat("notificationId", "}"), encodeURIComponent(String(notificationId)));
12877
13042
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12878
13043
  if (configuration) {
12879
13044
  baseOptions = configuration.baseOptions;
@@ -12882,11 +13047,9 @@ var PlayermoderationApiAxiosParamCreator = function (configuration) {
12882
13047
  localVarHeaderParameter = {};
12883
13048
  localVarQueryParameter = {};
12884
13049
  // authentication authCookie required
12885
- localVarHeaderParameter['Content-Type'] = 'application/json';
12886
13050
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12887
13051
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12888
13052
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12889
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(moderateUserRequest, localVarRequestOptions, configuration);
12890
13053
  return [2 /*return*/, {
12891
13054
  url: (0, common_1.toPathString)(localVarUrlObj),
12892
13055
  options: localVarRequestOptions,
@@ -12896,26 +13059,27 @@ var PlayermoderationApiAxiosParamCreator = function (configuration) {
12896
13059
  },
12897
13060
  };
12898
13061
  };
12899
- exports.PlayermoderationApiAxiosParamCreator = PlayermoderationApiAxiosParamCreator;
13062
+ exports.NotificationsApiAxiosParamCreator = NotificationsApiAxiosParamCreator;
12900
13063
  /**
12901
- * PlayermoderationApi - functional programming interface
13064
+ * NotificationsApi - functional programming interface
12902
13065
  * @export
12903
13066
  */
12904
- var PlayermoderationApiFp = function (configuration) {
12905
- var localVarAxiosParamCreator = (0, exports.PlayermoderationApiAxiosParamCreator)(configuration);
13067
+ var NotificationsApiFp = function (configuration) {
13068
+ var localVarAxiosParamCreator = (0, exports.NotificationsApiAxiosParamCreator)(configuration);
12906
13069
  return {
12907
13070
  /**
12908
- * ⚠️ **This will delete every single player moderation you\'ve ever made.**
12909
- * @summary Clear All Player Moderations
13071
+ * Accept a friend request by notification `frq_` ID. Friend requests can be found using the NotificationsAPI `getNotifications` by filtering of type `friendRequest`.
13072
+ * @summary Accept Friend Request
13073
+ * @param {string} notificationId Must be a valid notification ID.
12910
13074
  * @param {*} [options] Override http request option.
12911
13075
  * @throws {RequiredError}
12912
13076
  */
12913
- clearAllPlayerModerations: function (options) {
13077
+ acceptFriendRequest: function (notificationId, options) {
12914
13078
  return __awaiter(this, void 0, void 0, function () {
12915
13079
  var localVarAxiosArgs;
12916
13080
  return __generator(this, function (_a) {
12917
13081
  switch (_a.label) {
12918
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.clearAllPlayerModerations(options)];
13082
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.acceptFriendRequest(notificationId, options)];
12919
13083
  case 1:
12920
13084
  localVarAxiosArgs = _a.sent();
12921
13085
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -12924,19 +13088,17 @@ var PlayermoderationApiFp = function (configuration) {
12924
13088
  });
12925
13089
  },
12926
13090
  /**
12927
- * Returns a list of all player moderations made by **you**. This endpoint does not have pagination, and will return *all* results. Use query parameters to limit your query if needed.
12928
- * @summary Search Player Moderations
12929
- * @param {string} [type] Must be one of PlayerModerationType, except unblock. Unblocking simply removes a block.
12930
- * @param {string} [targetUserId] Must be valid UserID.
13091
+ * Clear **all** notifications.
13092
+ * @summary Clear All Notifications
12931
13093
  * @param {*} [options] Override http request option.
12932
13094
  * @throws {RequiredError}
12933
13095
  */
12934
- getPlayerModerations: function (type, targetUserId, options) {
13096
+ clearNotifications: function (options) {
12935
13097
  return __awaiter(this, void 0, void 0, function () {
12936
13098
  var localVarAxiosArgs;
12937
13099
  return __generator(this, function (_a) {
12938
13100
  switch (_a.label) {
12939
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPlayerModerations(type, targetUserId, options)];
13101
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.clearNotifications(options)];
12940
13102
  case 1:
12941
13103
  localVarAxiosArgs = _a.sent();
12942
13104
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -12945,18 +13107,63 @@ var PlayermoderationApiFp = function (configuration) {
12945
13107
  });
12946
13108
  },
12947
13109
  /**
12948
- * Moderate a user, e.g. unmute them or show their avatar. Please see the [Player Moderation docs](https://vrchatapi.github.io/docs/api/#tag--playermoderation) on what playerModerations are, and how they differ from staff moderations.
12949
- * @summary Moderate User
12950
- * @param {ModerateUserRequest} moderateUserRequest
13110
+ * Delete a notification.
13111
+ * @summary Delete Notification
13112
+ * @param {string} notificationId Must be a valid notification ID.
13113
+ * @param {*} [options] Override http request option.
13114
+ * @throws {RequiredError}
13115
+ */
13116
+ deleteNotification: function (notificationId, options) {
13117
+ return __awaiter(this, void 0, void 0, function () {
13118
+ var localVarAxiosArgs;
13119
+ return __generator(this, function (_a) {
13120
+ switch (_a.label) {
13121
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteNotification(notificationId, options)];
13122
+ case 1:
13123
+ localVarAxiosArgs = _a.sent();
13124
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
13125
+ }
13126
+ });
13127
+ });
13128
+ },
13129
+ /**
13130
+ * Get a notification by notification `not_` ID.
13131
+ * @summary Show notification
13132
+ * @param {string} notificationId Must be a valid notification ID.
13133
+ * @param {*} [options] Override http request option.
13134
+ * @throws {RequiredError}
13135
+ */
13136
+ getNotification: function (notificationId, options) {
13137
+ return __awaiter(this, void 0, void 0, function () {
13138
+ var localVarAxiosArgs;
13139
+ return __generator(this, function (_a) {
13140
+ switch (_a.label) {
13141
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getNotification(notificationId, options)];
13142
+ case 1:
13143
+ localVarAxiosArgs = _a.sent();
13144
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
13145
+ }
13146
+ });
13147
+ });
13148
+ },
13149
+ /**
13150
+ * Retrieve all of the current user\'s notifications.
13151
+ * @summary List Notifications
13152
+ * @param {string} [type] Only send notifications of this type (can use `all` for all). This parameter no longer does anything, and is deprecated.
13153
+ * @param {boolean} [sent] Return notifications sent by the user. Must be false or omitted.
13154
+ * @param {boolean} [hidden] Whether to return hidden or non-hidden notifications. True only allowed on type `friendRequest`.
13155
+ * @param {string} [after] Only return notifications sent after this Date. Ignored if type is `friendRequest`.
13156
+ * @param {number} [n] The number of objects to return.
13157
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
12951
13158
  * @param {*} [options] Override http request option.
12952
13159
  * @throws {RequiredError}
12953
13160
  */
12954
- moderateUser: function (moderateUserRequest, options) {
13161
+ getNotifications: function (type, sent, hidden, after, n, offset, options) {
12955
13162
  return __awaiter(this, void 0, void 0, function () {
12956
13163
  var localVarAxiosArgs;
12957
13164
  return __generator(this, function (_a) {
12958
13165
  switch (_a.label) {
12959
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.moderateUser(moderateUserRequest, options)];
13166
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getNotifications(type, sent, hidden, after, n, offset, options)];
12960
13167
  case 1:
12961
13168
  localVarAxiosArgs = _a.sent();
12962
13169
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -12965,18 +13172,18 @@ var PlayermoderationApiFp = function (configuration) {
12965
13172
  });
12966
13173
  },
12967
13174
  /**
12968
- * Removes a player moderation previously added through `moderateUser`. E.g if you previously have shown their avatar, but now want to reset it to default.
12969
- * @summary Unmoderate User
12970
- * @param {ModerateUserRequest} moderateUserRequest
13175
+ * Mark a notification as seen.
13176
+ * @summary Mark Notification As Read
13177
+ * @param {string} notificationId Must be a valid notification ID.
12971
13178
  * @param {*} [options] Override http request option.
12972
13179
  * @throws {RequiredError}
12973
13180
  */
12974
- unmoderateUser: function (moderateUserRequest, options) {
13181
+ markNotificationAsRead: function (notificationId, options) {
12975
13182
  return __awaiter(this, void 0, void 0, function () {
12976
13183
  var localVarAxiosArgs;
12977
13184
  return __generator(this, function (_a) {
12978
13185
  switch (_a.label) {
12979
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.unmoderateUser(moderateUserRequest, options)];
13186
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.markNotificationAsRead(notificationId, options)];
12980
13187
  case 1:
12981
13188
  localVarAxiosArgs = _a.sent();
12982
13189
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -12986,142 +13193,190 @@ var PlayermoderationApiFp = function (configuration) {
12986
13193
  },
12987
13194
  };
12988
13195
  };
12989
- exports.PlayermoderationApiFp = PlayermoderationApiFp;
13196
+ exports.NotificationsApiFp = NotificationsApiFp;
12990
13197
  /**
12991
- * PlayermoderationApi - factory interface
13198
+ * NotificationsApi - factory interface
12992
13199
  * @export
12993
13200
  */
12994
- var PlayermoderationApiFactory = function (configuration, basePath, axios) {
12995
- var localVarFp = (0, exports.PlayermoderationApiFp)(configuration);
13201
+ var NotificationsApiFactory = function (configuration, basePath, axios) {
13202
+ var localVarFp = (0, exports.NotificationsApiFp)(configuration);
12996
13203
  return {
12997
13204
  /**
12998
- * ⚠️ **This will delete every single player moderation you\'ve ever made.**
12999
- * @summary Clear All Player Moderations
13205
+ * Accept a friend request by notification `frq_` ID. Friend requests can be found using the NotificationsAPI `getNotifications` by filtering of type `friendRequest`.
13206
+ * @summary Accept Friend Request
13207
+ * @param {string} notificationId Must be a valid notification ID.
13000
13208
  * @param {*} [options] Override http request option.
13001
13209
  * @throws {RequiredError}
13002
13210
  */
13003
- clearAllPlayerModerations: function (options) {
13004
- return localVarFp.clearAllPlayerModerations(options).then(function (request) { return request(axios, basePath); });
13211
+ acceptFriendRequest: function (notificationId, options) {
13212
+ return localVarFp.acceptFriendRequest(notificationId, options).then(function (request) { return request(axios, basePath); });
13005
13213
  },
13006
13214
  /**
13007
- * Returns a list of all player moderations made by **you**. This endpoint does not have pagination, and will return *all* results. Use query parameters to limit your query if needed.
13008
- * @summary Search Player Moderations
13009
- * @param {string} [type] Must be one of PlayerModerationType, except unblock. Unblocking simply removes a block.
13010
- * @param {string} [targetUserId] Must be valid UserID.
13215
+ * Clear **all** notifications.
13216
+ * @summary Clear All Notifications
13011
13217
  * @param {*} [options] Override http request option.
13012
13218
  * @throws {RequiredError}
13013
13219
  */
13014
- getPlayerModerations: function (type, targetUserId, options) {
13015
- return localVarFp.getPlayerModerations(type, targetUserId, options).then(function (request) { return request(axios, basePath); });
13220
+ clearNotifications: function (options) {
13221
+ return localVarFp.clearNotifications(options).then(function (request) { return request(axios, basePath); });
13016
13222
  },
13017
13223
  /**
13018
- * Moderate a user, e.g. unmute them or show their avatar. Please see the [Player Moderation docs](https://vrchatapi.github.io/docs/api/#tag--playermoderation) on what playerModerations are, and how they differ from staff moderations.
13019
- * @summary Moderate User
13020
- * @param {ModerateUserRequest} moderateUserRequest
13224
+ * Delete a notification.
13225
+ * @summary Delete Notification
13226
+ * @param {string} notificationId Must be a valid notification ID.
13021
13227
  * @param {*} [options] Override http request option.
13022
13228
  * @throws {RequiredError}
13023
13229
  */
13024
- moderateUser: function (moderateUserRequest, options) {
13025
- return localVarFp.moderateUser(moderateUserRequest, options).then(function (request) { return request(axios, basePath); });
13230
+ deleteNotification: function (notificationId, options) {
13231
+ return localVarFp.deleteNotification(notificationId, options).then(function (request) { return request(axios, basePath); });
13026
13232
  },
13027
13233
  /**
13028
- * Removes a player moderation previously added through `moderateUser`. E.g if you previously have shown their avatar, but now want to reset it to default.
13029
- * @summary Unmoderate User
13030
- * @param {ModerateUserRequest} moderateUserRequest
13234
+ * Get a notification by notification `not_` ID.
13235
+ * @summary Show notification
13236
+ * @param {string} notificationId Must be a valid notification ID.
13031
13237
  * @param {*} [options] Override http request option.
13032
13238
  * @throws {RequiredError}
13033
13239
  */
13034
- unmoderateUser: function (moderateUserRequest, options) {
13035
- return localVarFp.unmoderateUser(moderateUserRequest, options).then(function (request) { return request(axios, basePath); });
13240
+ getNotification: function (notificationId, options) {
13241
+ return localVarFp.getNotification(notificationId, options).then(function (request) { return request(axios, basePath); });
13242
+ },
13243
+ /**
13244
+ * Retrieve all of the current user\'s notifications.
13245
+ * @summary List Notifications
13246
+ * @param {string} [type] Only send notifications of this type (can use `all` for all). This parameter no longer does anything, and is deprecated.
13247
+ * @param {boolean} [sent] Return notifications sent by the user. Must be false or omitted.
13248
+ * @param {boolean} [hidden] Whether to return hidden or non-hidden notifications. True only allowed on type `friendRequest`.
13249
+ * @param {string} [after] Only return notifications sent after this Date. Ignored if type is `friendRequest`.
13250
+ * @param {number} [n] The number of objects to return.
13251
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
13252
+ * @param {*} [options] Override http request option.
13253
+ * @throws {RequiredError}
13254
+ */
13255
+ getNotifications: function (type, sent, hidden, after, n, offset, options) {
13256
+ return localVarFp.getNotifications(type, sent, hidden, after, n, offset, options).then(function (request) { return request(axios, basePath); });
13257
+ },
13258
+ /**
13259
+ * Mark a notification as seen.
13260
+ * @summary Mark Notification As Read
13261
+ * @param {string} notificationId Must be a valid notification ID.
13262
+ * @param {*} [options] Override http request option.
13263
+ * @throws {RequiredError}
13264
+ */
13265
+ markNotificationAsRead: function (notificationId, options) {
13266
+ return localVarFp.markNotificationAsRead(notificationId, options).then(function (request) { return request(axios, basePath); });
13036
13267
  },
13037
13268
  };
13038
13269
  };
13039
- exports.PlayermoderationApiFactory = PlayermoderationApiFactory;
13270
+ exports.NotificationsApiFactory = NotificationsApiFactory;
13040
13271
  /**
13041
- * PlayermoderationApi - object-oriented interface
13272
+ * NotificationsApi - object-oriented interface
13042
13273
  * @export
13043
- * @class PlayermoderationApi
13274
+ * @class NotificationsApi
13044
13275
  * @extends {BaseAPI}
13045
13276
  */
13046
- var PlayermoderationApi = /** @class */ (function (_super) {
13047
- __extends(PlayermoderationApi, _super);
13048
- function PlayermoderationApi() {
13277
+ var NotificationsApi = /** @class */ (function (_super) {
13278
+ __extends(NotificationsApi, _super);
13279
+ function NotificationsApi() {
13049
13280
  return _super !== null && _super.apply(this, arguments) || this;
13050
13281
  }
13051
13282
  /**
13052
- * ⚠️ **This will delete every single player moderation you\'ve ever made.**
13053
- * @summary Clear All Player Moderations
13283
+ * Accept a friend request by notification `frq_` ID. Friend requests can be found using the NotificationsAPI `getNotifications` by filtering of type `friendRequest`.
13284
+ * @summary Accept Friend Request
13285
+ * @param {string} notificationId Must be a valid notification ID.
13054
13286
  * @param {*} [options] Override http request option.
13055
13287
  * @throws {RequiredError}
13056
- * @memberof PlayermoderationApi
13288
+ * @memberof NotificationsApi
13057
13289
  */
13058
- PlayermoderationApi.prototype.clearAllPlayerModerations = function (options) {
13290
+ NotificationsApi.prototype.acceptFriendRequest = function (notificationId, options) {
13059
13291
  var _this = this;
13060
- return (0, exports.PlayermoderationApiFp)(this.configuration).clearAllPlayerModerations(options).then(function (request) { return request(_this.axios, _this.basePath); });
13292
+ return (0, exports.NotificationsApiFp)(this.configuration).acceptFriendRequest(notificationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
13061
13293
  };
13062
13294
  /**
13063
- * Returns a list of all player moderations made by **you**. This endpoint does not have pagination, and will return *all* results. Use query parameters to limit your query if needed.
13064
- * @summary Search Player Moderations
13065
- * @param {string} [type] Must be one of PlayerModerationType, except unblock. Unblocking simply removes a block.
13066
- * @param {string} [targetUserId] Must be valid UserID.
13295
+ * Clear **all** notifications.
13296
+ * @summary Clear All Notifications
13067
13297
  * @param {*} [options] Override http request option.
13068
13298
  * @throws {RequiredError}
13069
- * @memberof PlayermoderationApi
13299
+ * @memberof NotificationsApi
13070
13300
  */
13071
- PlayermoderationApi.prototype.getPlayerModerations = function (type, targetUserId, options) {
13301
+ NotificationsApi.prototype.clearNotifications = function (options) {
13072
13302
  var _this = this;
13073
- return (0, exports.PlayermoderationApiFp)(this.configuration).getPlayerModerations(type, targetUserId, options).then(function (request) { return request(_this.axios, _this.basePath); });
13303
+ return (0, exports.NotificationsApiFp)(this.configuration).clearNotifications(options).then(function (request) { return request(_this.axios, _this.basePath); });
13074
13304
  };
13075
13305
  /**
13076
- * Moderate a user, e.g. unmute them or show their avatar. Please see the [Player Moderation docs](https://vrchatapi.github.io/docs/api/#tag--playermoderation) on what playerModerations are, and how they differ from staff moderations.
13077
- * @summary Moderate User
13078
- * @param {ModerateUserRequest} moderateUserRequest
13306
+ * Delete a notification.
13307
+ * @summary Delete Notification
13308
+ * @param {string} notificationId Must be a valid notification ID.
13079
13309
  * @param {*} [options] Override http request option.
13080
13310
  * @throws {RequiredError}
13081
- * @memberof PlayermoderationApi
13311
+ * @memberof NotificationsApi
13082
13312
  */
13083
- PlayermoderationApi.prototype.moderateUser = function (moderateUserRequest, options) {
13313
+ NotificationsApi.prototype.deleteNotification = function (notificationId, options) {
13084
13314
  var _this = this;
13085
- return (0, exports.PlayermoderationApiFp)(this.configuration).moderateUser(moderateUserRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
13315
+ return (0, exports.NotificationsApiFp)(this.configuration).deleteNotification(notificationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
13086
13316
  };
13087
13317
  /**
13088
- * Removes a player moderation previously added through `moderateUser`. E.g if you previously have shown their avatar, but now want to reset it to default.
13089
- * @summary Unmoderate User
13090
- * @param {ModerateUserRequest} moderateUserRequest
13318
+ * Get a notification by notification `not_` ID.
13319
+ * @summary Show notification
13320
+ * @param {string} notificationId Must be a valid notification ID.
13091
13321
  * @param {*} [options] Override http request option.
13092
13322
  * @throws {RequiredError}
13093
- * @memberof PlayermoderationApi
13323
+ * @memberof NotificationsApi
13094
13324
  */
13095
- PlayermoderationApi.prototype.unmoderateUser = function (moderateUserRequest, options) {
13325
+ NotificationsApi.prototype.getNotification = function (notificationId, options) {
13096
13326
  var _this = this;
13097
- return (0, exports.PlayermoderationApiFp)(this.configuration).unmoderateUser(moderateUserRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
13327
+ return (0, exports.NotificationsApiFp)(this.configuration).getNotification(notificationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
13098
13328
  };
13099
- return PlayermoderationApi;
13329
+ /**
13330
+ * Retrieve all of the current user\'s notifications.
13331
+ * @summary List Notifications
13332
+ * @param {string} [type] Only send notifications of this type (can use `all` for all). This parameter no longer does anything, and is deprecated.
13333
+ * @param {boolean} [sent] Return notifications sent by the user. Must be false or omitted.
13334
+ * @param {boolean} [hidden] Whether to return hidden or non-hidden notifications. True only allowed on type `friendRequest`.
13335
+ * @param {string} [after] Only return notifications sent after this Date. Ignored if type is `friendRequest`.
13336
+ * @param {number} [n] The number of objects to return.
13337
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
13338
+ * @param {*} [options] Override http request option.
13339
+ * @throws {RequiredError}
13340
+ * @memberof NotificationsApi
13341
+ */
13342
+ NotificationsApi.prototype.getNotifications = function (type, sent, hidden, after, n, offset, options) {
13343
+ var _this = this;
13344
+ return (0, exports.NotificationsApiFp)(this.configuration).getNotifications(type, sent, hidden, after, n, offset, options).then(function (request) { return request(_this.axios, _this.basePath); });
13345
+ };
13346
+ /**
13347
+ * Mark a notification as seen.
13348
+ * @summary Mark Notification As Read
13349
+ * @param {string} notificationId Must be a valid notification ID.
13350
+ * @param {*} [options] Override http request option.
13351
+ * @throws {RequiredError}
13352
+ * @memberof NotificationsApi
13353
+ */
13354
+ NotificationsApi.prototype.markNotificationAsRead = function (notificationId, options) {
13355
+ var _this = this;
13356
+ return (0, exports.NotificationsApiFp)(this.configuration).markNotificationAsRead(notificationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
13357
+ };
13358
+ return NotificationsApi;
13100
13359
  }(base_1.BaseAPI));
13101
- exports.PlayermoderationApi = PlayermoderationApi;
13360
+ exports.NotificationsApi = NotificationsApi;
13102
13361
  /**
13103
- * PrintsApi - axios parameter creator
13362
+ * PlayermoderationApi - axios parameter creator
13104
13363
  * @export
13105
13364
  */
13106
- var PrintsApiAxiosParamCreator = function (configuration) {
13365
+ var PlayermoderationApiAxiosParamCreator = function (configuration) {
13107
13366
  var _this = this;
13108
13367
  return {
13109
13368
  /**
13110
- * Returns a print.
13111
- * @summary Delete Print
13112
- * @param {string} printId Print ID.
13369
+ * ⚠️ **This will delete every single player moderation you\'ve ever made.**
13370
+ * @summary Clear All Player Moderations
13113
13371
  * @param {*} [options] Override http request option.
13114
13372
  * @throws {RequiredError}
13115
13373
  */
13116
- deletePrint: function (printId, options) {
13374
+ clearAllPlayerModerations: function (options) {
13117
13375
  if (options === void 0) { options = {}; }
13118
13376
  return __awaiter(_this, void 0, void 0, function () {
13119
13377
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13120
13378
  return __generator(this, function (_a) {
13121
- // verify required parameter 'printId' is not null or undefined
13122
- (0, common_1.assertParamExists)('deletePrint', 'printId', printId);
13123
- localVarPath = "/prints/{printId}"
13124
- .replace("{".concat("printId", "}"), encodeURIComponent(String(printId)));
13379
+ localVarPath = "/auth/user/playermoderations";
13125
13380
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13126
13381
  if (configuration) {
13127
13382
  baseOptions = configuration.baseOptions;
@@ -13141,68 +13396,19 @@ var PrintsApiAxiosParamCreator = function (configuration) {
13141
13396
  });
13142
13397
  },
13143
13398
  /**
13144
- * Edits a print.
13145
- * @summary Edit Print
13146
- * @param {string} printId Print ID.
13147
- * @param {File} image The binary blob of the png file.
13148
- * @param {string} [note] The caption for the image.
13149
- * @param {*} [options] Override http request option.
13150
- * @throws {RequiredError}
13151
- */
13152
- editPrint: function (printId, image, note, options) {
13153
- if (options === void 0) { options = {}; }
13154
- return __awaiter(_this, void 0, void 0, function () {
13155
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
13156
- return __generator(this, function (_a) {
13157
- // verify required parameter 'printId' is not null or undefined
13158
- (0, common_1.assertParamExists)('editPrint', 'printId', printId);
13159
- // verify required parameter 'image' is not null or undefined
13160
- (0, common_1.assertParamExists)('editPrint', 'image', image);
13161
- localVarPath = "/prints/{printId}"
13162
- .replace("{".concat("printId", "}"), encodeURIComponent(String(printId)));
13163
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13164
- if (configuration) {
13165
- baseOptions = configuration.baseOptions;
13166
- }
13167
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
13168
- localVarHeaderParameter = {};
13169
- localVarQueryParameter = {};
13170
- localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
13171
- // authentication authCookie required
13172
- if (image !== undefined) {
13173
- localVarFormParams.append('image', image);
13174
- }
13175
- if (note !== undefined) {
13176
- localVarFormParams.append('note', note);
13177
- }
13178
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
13179
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13180
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13181
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13182
- localVarRequestOptions.data = localVarFormParams;
13183
- return [2 /*return*/, {
13184
- url: (0, common_1.toPathString)(localVarUrlObj),
13185
- options: localVarRequestOptions,
13186
- }];
13187
- });
13188
- });
13189
- },
13190
- /**
13191
- * Returns a print.
13192
- * @summary Get Print
13193
- * @param {string} printId Print ID.
13399
+ * Returns a list of all player moderations made by **you**. This endpoint does not have pagination, and will return *all* results. Use query parameters to limit your query if needed.
13400
+ * @summary Search Player Moderations
13401
+ * @param {string} [type] Must be one of PlayerModerationType, except unblock. Unblocking simply removes a block.
13402
+ * @param {string} [targetUserId] Must be valid UserID.
13194
13403
  * @param {*} [options] Override http request option.
13195
13404
  * @throws {RequiredError}
13196
13405
  */
13197
- getPrint: function (printId, options) {
13406
+ getPlayerModerations: function (type, targetUserId, options) {
13198
13407
  if (options === void 0) { options = {}; }
13199
13408
  return __awaiter(_this, void 0, void 0, function () {
13200
13409
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13201
13410
  return __generator(this, function (_a) {
13202
- // verify required parameter 'printId' is not null or undefined
13203
- (0, common_1.assertParamExists)('getPrint', 'printId', printId);
13204
- localVarPath = "/prints/{printId}"
13205
- .replace("{".concat("printId", "}"), encodeURIComponent(String(printId)));
13411
+ localVarPath = "/auth/user/playermoderations";
13206
13412
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13207
13413
  if (configuration) {
13208
13414
  baseOptions = configuration.baseOptions;
@@ -13211,6 +13417,12 @@ var PrintsApiAxiosParamCreator = function (configuration) {
13211
13417
  localVarHeaderParameter = {};
13212
13418
  localVarQueryParameter = {};
13213
13419
  // authentication authCookie required
13420
+ if (type !== undefined) {
13421
+ localVarQueryParameter['type'] = type;
13422
+ }
13423
+ if (targetUserId !== undefined) {
13424
+ localVarQueryParameter['targetUserId'] = targetUserId;
13425
+ }
13214
13426
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13215
13427
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13216
13428
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -13222,32 +13434,33 @@ var PrintsApiAxiosParamCreator = function (configuration) {
13222
13434
  });
13223
13435
  },
13224
13436
  /**
13225
- * Returns a list of all prints of the user. User id has to be your own userId, as you can\'t request other user\'s prints.
13226
- * @summary Get Own Prints
13227
- * @param {string} userId Must be a valid user ID.
13437
+ * Moderate a user, e.g. unmute them or show their avatar. Please see the [Player Moderation docs](https://vrchatapi.github.io/docs/api/#tag--playermoderation) on what playerModerations are, and how they differ from staff moderations.
13438
+ * @summary Moderate User
13439
+ * @param {ModerateUserRequest} moderateUserRequest
13228
13440
  * @param {*} [options] Override http request option.
13229
13441
  * @throws {RequiredError}
13230
13442
  */
13231
- getUserPrints: function (userId, options) {
13443
+ moderateUser: function (moderateUserRequest, options) {
13232
13444
  if (options === void 0) { options = {}; }
13233
13445
  return __awaiter(_this, void 0, void 0, function () {
13234
13446
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13235
13447
  return __generator(this, function (_a) {
13236
- // verify required parameter 'userId' is not null or undefined
13237
- (0, common_1.assertParamExists)('getUserPrints', 'userId', userId);
13238
- localVarPath = "/prints/user/{userId}"
13239
- .replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
13448
+ // verify required parameter 'moderateUserRequest' is not null or undefined
13449
+ (0, common_1.assertParamExists)('moderateUser', 'moderateUserRequest', moderateUserRequest);
13450
+ localVarPath = "/auth/user/playermoderations";
13240
13451
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13241
13452
  if (configuration) {
13242
13453
  baseOptions = configuration.baseOptions;
13243
13454
  }
13244
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
13455
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
13245
13456
  localVarHeaderParameter = {};
13246
13457
  localVarQueryParameter = {};
13247
13458
  // authentication authCookie required
13459
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13248
13460
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13249
13461
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13250
13462
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13463
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(moderateUserRequest, localVarRequestOptions, configuration);
13251
13464
  return [2 /*return*/, {
13252
13465
  url: (0, common_1.toPathString)(localVarUrlObj),
13253
13466
  options: localVarRequestOptions,
@@ -13256,55 +13469,33 @@ var PrintsApiAxiosParamCreator = function (configuration) {
13256
13469
  });
13257
13470
  },
13258
13471
  /**
13259
- * Uploads and creates a print.
13260
- * @summary Upload Print
13261
- * @param {File} image The binary blob of the png file.
13262
- * @param {string} timestamp The time the image was captured.
13263
- * @param {string} [note] The caption for the image.
13264
- * @param {string} [worldId] The id of the world in which the image was captured.
13265
- * @param {string} [worldName] The name of the world in which the image was captured.
13472
+ * Removes a player moderation previously added through `moderateUser`. E.g if you previously have shown their avatar, but now want to reset it to default.
13473
+ * @summary Unmoderate User
13474
+ * @param {ModerateUserRequest} moderateUserRequest
13266
13475
  * @param {*} [options] Override http request option.
13267
13476
  * @throws {RequiredError}
13268
13477
  */
13269
- uploadPrint: function (image, timestamp, note, worldId, worldName, options) {
13478
+ unmoderateUser: function (moderateUserRequest, options) {
13270
13479
  if (options === void 0) { options = {}; }
13271
13480
  return __awaiter(_this, void 0, void 0, function () {
13272
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
13481
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13273
13482
  return __generator(this, function (_a) {
13274
- // verify required parameter 'image' is not null or undefined
13275
- (0, common_1.assertParamExists)('uploadPrint', 'image', image);
13276
- // verify required parameter 'timestamp' is not null or undefined
13277
- (0, common_1.assertParamExists)('uploadPrint', 'timestamp', timestamp);
13278
- localVarPath = "/prints";
13483
+ // verify required parameter 'moderateUserRequest' is not null or undefined
13484
+ (0, common_1.assertParamExists)('unmoderateUser', 'moderateUserRequest', moderateUserRequest);
13485
+ localVarPath = "/auth/user/unplayermoderate";
13279
13486
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13280
13487
  if (configuration) {
13281
13488
  baseOptions = configuration.baseOptions;
13282
13489
  }
13283
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
13490
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
13284
13491
  localVarHeaderParameter = {};
13285
13492
  localVarQueryParameter = {};
13286
- localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
13287
13493
  // authentication authCookie required
13288
- if (image !== undefined) {
13289
- localVarFormParams.append('image', image);
13290
- }
13291
- if (timestamp !== undefined) {
13292
- localVarFormParams.append('timestamp', timestamp);
13293
- }
13294
- if (note !== undefined) {
13295
- localVarFormParams.append('note', note);
13296
- }
13297
- if (worldId !== undefined) {
13298
- localVarFormParams.append('worldId', worldId);
13299
- }
13300
- if (worldName !== undefined) {
13301
- localVarFormParams.append('worldName', worldName);
13302
- }
13303
- localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
13494
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13304
13495
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13305
13496
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13306
13497
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13307
- localVarRequestOptions.data = localVarFormParams;
13498
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(moderateUserRequest, localVarRequestOptions, configuration);
13308
13499
  return [2 /*return*/, {
13309
13500
  url: (0, common_1.toPathString)(localVarUrlObj),
13310
13501
  options: localVarRequestOptions,
@@ -13314,49 +13505,26 @@ var PrintsApiAxiosParamCreator = function (configuration) {
13314
13505
  },
13315
13506
  };
13316
13507
  };
13317
- exports.PrintsApiAxiosParamCreator = PrintsApiAxiosParamCreator;
13508
+ exports.PlayermoderationApiAxiosParamCreator = PlayermoderationApiAxiosParamCreator;
13318
13509
  /**
13319
- * PrintsApi - functional programming interface
13510
+ * PlayermoderationApi - functional programming interface
13320
13511
  * @export
13321
13512
  */
13322
- var PrintsApiFp = function (configuration) {
13323
- var localVarAxiosParamCreator = (0, exports.PrintsApiAxiosParamCreator)(configuration);
13513
+ var PlayermoderationApiFp = function (configuration) {
13514
+ var localVarAxiosParamCreator = (0, exports.PlayermoderationApiAxiosParamCreator)(configuration);
13324
13515
  return {
13325
13516
  /**
13326
- * Returns a print.
13327
- * @summary Delete Print
13328
- * @param {string} printId Print ID.
13329
- * @param {*} [options] Override http request option.
13330
- * @throws {RequiredError}
13331
- */
13332
- deletePrint: function (printId, options) {
13333
- return __awaiter(this, void 0, void 0, function () {
13334
- var localVarAxiosArgs;
13335
- return __generator(this, function (_a) {
13336
- switch (_a.label) {
13337
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePrint(printId, options)];
13338
- case 1:
13339
- localVarAxiosArgs = _a.sent();
13340
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
13341
- }
13342
- });
13343
- });
13344
- },
13345
- /**
13346
- * Edits a print.
13347
- * @summary Edit Print
13348
- * @param {string} printId Print ID.
13349
- * @param {File} image The binary blob of the png file.
13350
- * @param {string} [note] The caption for the image.
13517
+ * ⚠️ **This will delete every single player moderation you\'ve ever made.**
13518
+ * @summary Clear All Player Moderations
13351
13519
  * @param {*} [options] Override http request option.
13352
13520
  * @throws {RequiredError}
13353
13521
  */
13354
- editPrint: function (printId, image, note, options) {
13522
+ clearAllPlayerModerations: function (options) {
13355
13523
  return __awaiter(this, void 0, void 0, function () {
13356
13524
  var localVarAxiosArgs;
13357
13525
  return __generator(this, function (_a) {
13358
13526
  switch (_a.label) {
13359
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.editPrint(printId, image, note, options)];
13527
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.clearAllPlayerModerations(options)];
13360
13528
  case 1:
13361
13529
  localVarAxiosArgs = _a.sent();
13362
13530
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -13365,18 +13533,19 @@ var PrintsApiFp = function (configuration) {
13365
13533
  });
13366
13534
  },
13367
13535
  /**
13368
- * Returns a print.
13369
- * @summary Get Print
13370
- * @param {string} printId Print ID.
13536
+ * Returns a list of all player moderations made by **you**. This endpoint does not have pagination, and will return *all* results. Use query parameters to limit your query if needed.
13537
+ * @summary Search Player Moderations
13538
+ * @param {string} [type] Must be one of PlayerModerationType, except unblock. Unblocking simply removes a block.
13539
+ * @param {string} [targetUserId] Must be valid UserID.
13371
13540
  * @param {*} [options] Override http request option.
13372
13541
  * @throws {RequiredError}
13373
13542
  */
13374
- getPrint: function (printId, options) {
13543
+ getPlayerModerations: function (type, targetUserId, options) {
13375
13544
  return __awaiter(this, void 0, void 0, function () {
13376
13545
  var localVarAxiosArgs;
13377
13546
  return __generator(this, function (_a) {
13378
13547
  switch (_a.label) {
13379
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPrint(printId, options)];
13548
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPlayerModerations(type, targetUserId, options)];
13380
13549
  case 1:
13381
13550
  localVarAxiosArgs = _a.sent();
13382
13551
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -13385,18 +13554,18 @@ var PrintsApiFp = function (configuration) {
13385
13554
  });
13386
13555
  },
13387
13556
  /**
13388
- * Returns a list of all prints of the user. User id has to be your own userId, as you can\'t request other user\'s prints.
13389
- * @summary Get Own Prints
13390
- * @param {string} userId Must be a valid user ID.
13557
+ * Moderate a user, e.g. unmute them or show their avatar. Please see the [Player Moderation docs](https://vrchatapi.github.io/docs/api/#tag--playermoderation) on what playerModerations are, and how they differ from staff moderations.
13558
+ * @summary Moderate User
13559
+ * @param {ModerateUserRequest} moderateUserRequest
13391
13560
  * @param {*} [options] Override http request option.
13392
13561
  * @throws {RequiredError}
13393
13562
  */
13394
- getUserPrints: function (userId, options) {
13563
+ moderateUser: function (moderateUserRequest, options) {
13395
13564
  return __awaiter(this, void 0, void 0, function () {
13396
13565
  var localVarAxiosArgs;
13397
13566
  return __generator(this, function (_a) {
13398
13567
  switch (_a.label) {
13399
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUserPrints(userId, options)];
13568
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.moderateUser(moderateUserRequest, options)];
13400
13569
  case 1:
13401
13570
  localVarAxiosArgs = _a.sent();
13402
13571
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -13405,22 +13574,18 @@ var PrintsApiFp = function (configuration) {
13405
13574
  });
13406
13575
  },
13407
13576
  /**
13408
- * Uploads and creates a print.
13409
- * @summary Upload Print
13410
- * @param {File} image The binary blob of the png file.
13411
- * @param {string} timestamp The time the image was captured.
13412
- * @param {string} [note] The caption for the image.
13413
- * @param {string} [worldId] The id of the world in which the image was captured.
13414
- * @param {string} [worldName] The name of the world in which the image was captured.
13577
+ * Removes a player moderation previously added through `moderateUser`. E.g if you previously have shown their avatar, but now want to reset it to default.
13578
+ * @summary Unmoderate User
13579
+ * @param {ModerateUserRequest} moderateUserRequest
13415
13580
  * @param {*} [options] Override http request option.
13416
13581
  * @throws {RequiredError}
13417
13582
  */
13418
- uploadPrint: function (image, timestamp, note, worldId, worldName, options) {
13583
+ unmoderateUser: function (moderateUserRequest, options) {
13419
13584
  return __awaiter(this, void 0, void 0, function () {
13420
13585
  var localVarAxiosArgs;
13421
13586
  return __generator(this, function (_a) {
13422
13587
  switch (_a.label) {
13423
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.uploadPrint(image, timestamp, note, worldId, worldName, options)];
13588
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.unmoderateUser(moderateUserRequest, options)];
13424
13589
  case 1:
13425
13590
  localVarAxiosArgs = _a.sent();
13426
13591
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -13430,187 +13595,150 @@ var PrintsApiFp = function (configuration) {
13430
13595
  },
13431
13596
  };
13432
13597
  };
13433
- exports.PrintsApiFp = PrintsApiFp;
13598
+ exports.PlayermoderationApiFp = PlayermoderationApiFp;
13434
13599
  /**
13435
- * PrintsApi - factory interface
13600
+ * PlayermoderationApi - factory interface
13436
13601
  * @export
13437
13602
  */
13438
- var PrintsApiFactory = function (configuration, basePath, axios) {
13439
- var localVarFp = (0, exports.PrintsApiFp)(configuration);
13603
+ var PlayermoderationApiFactory = function (configuration, basePath, axios) {
13604
+ var localVarFp = (0, exports.PlayermoderationApiFp)(configuration);
13440
13605
  return {
13441
13606
  /**
13442
- * Returns a print.
13443
- * @summary Delete Print
13444
- * @param {string} printId Print ID.
13445
- * @param {*} [options] Override http request option.
13446
- * @throws {RequiredError}
13447
- */
13448
- deletePrint: function (printId, options) {
13449
- return localVarFp.deletePrint(printId, options).then(function (request) { return request(axios, basePath); });
13450
- },
13451
- /**
13452
- * Edits a print.
13453
- * @summary Edit Print
13454
- * @param {string} printId Print ID.
13455
- * @param {File} image The binary blob of the png file.
13456
- * @param {string} [note] The caption for the image.
13607
+ * ⚠️ **This will delete every single player moderation you\'ve ever made.**
13608
+ * @summary Clear All Player Moderations
13457
13609
  * @param {*} [options] Override http request option.
13458
13610
  * @throws {RequiredError}
13459
13611
  */
13460
- editPrint: function (printId, image, note, options) {
13461
- return localVarFp.editPrint(printId, image, note, options).then(function (request) { return request(axios, basePath); });
13612
+ clearAllPlayerModerations: function (options) {
13613
+ return localVarFp.clearAllPlayerModerations(options).then(function (request) { return request(axios, basePath); });
13462
13614
  },
13463
13615
  /**
13464
- * Returns a print.
13465
- * @summary Get Print
13466
- * @param {string} printId Print ID.
13616
+ * Returns a list of all player moderations made by **you**. This endpoint does not have pagination, and will return *all* results. Use query parameters to limit your query if needed.
13617
+ * @summary Search Player Moderations
13618
+ * @param {string} [type] Must be one of PlayerModerationType, except unblock. Unblocking simply removes a block.
13619
+ * @param {string} [targetUserId] Must be valid UserID.
13467
13620
  * @param {*} [options] Override http request option.
13468
13621
  * @throws {RequiredError}
13469
13622
  */
13470
- getPrint: function (printId, options) {
13471
- return localVarFp.getPrint(printId, options).then(function (request) { return request(axios, basePath); });
13623
+ getPlayerModerations: function (type, targetUserId, options) {
13624
+ return localVarFp.getPlayerModerations(type, targetUserId, options).then(function (request) { return request(axios, basePath); });
13472
13625
  },
13473
13626
  /**
13474
- * Returns a list of all prints of the user. User id has to be your own userId, as you can\'t request other user\'s prints.
13475
- * @summary Get Own Prints
13476
- * @param {string} userId Must be a valid user ID.
13627
+ * Moderate a user, e.g. unmute them or show their avatar. Please see the [Player Moderation docs](https://vrchatapi.github.io/docs/api/#tag--playermoderation) on what playerModerations are, and how they differ from staff moderations.
13628
+ * @summary Moderate User
13629
+ * @param {ModerateUserRequest} moderateUserRequest
13477
13630
  * @param {*} [options] Override http request option.
13478
13631
  * @throws {RequiredError}
13479
13632
  */
13480
- getUserPrints: function (userId, options) {
13481
- return localVarFp.getUserPrints(userId, options).then(function (request) { return request(axios, basePath); });
13633
+ moderateUser: function (moderateUserRequest, options) {
13634
+ return localVarFp.moderateUser(moderateUserRequest, options).then(function (request) { return request(axios, basePath); });
13482
13635
  },
13483
13636
  /**
13484
- * Uploads and creates a print.
13485
- * @summary Upload Print
13486
- * @param {File} image The binary blob of the png file.
13487
- * @param {string} timestamp The time the image was captured.
13488
- * @param {string} [note] The caption for the image.
13489
- * @param {string} [worldId] The id of the world in which the image was captured.
13490
- * @param {string} [worldName] The name of the world in which the image was captured.
13637
+ * Removes a player moderation previously added through `moderateUser`. E.g if you previously have shown their avatar, but now want to reset it to default.
13638
+ * @summary Unmoderate User
13639
+ * @param {ModerateUserRequest} moderateUserRequest
13491
13640
  * @param {*} [options] Override http request option.
13492
13641
  * @throws {RequiredError}
13493
13642
  */
13494
- uploadPrint: function (image, timestamp, note, worldId, worldName, options) {
13495
- return localVarFp.uploadPrint(image, timestamp, note, worldId, worldName, options).then(function (request) { return request(axios, basePath); });
13643
+ unmoderateUser: function (moderateUserRequest, options) {
13644
+ return localVarFp.unmoderateUser(moderateUserRequest, options).then(function (request) { return request(axios, basePath); });
13496
13645
  },
13497
13646
  };
13498
13647
  };
13499
- exports.PrintsApiFactory = PrintsApiFactory;
13648
+ exports.PlayermoderationApiFactory = PlayermoderationApiFactory;
13500
13649
  /**
13501
- * PrintsApi - object-oriented interface
13650
+ * PlayermoderationApi - object-oriented interface
13502
13651
  * @export
13503
- * @class PrintsApi
13652
+ * @class PlayermoderationApi
13504
13653
  * @extends {BaseAPI}
13505
13654
  */
13506
- var PrintsApi = /** @class */ (function (_super) {
13507
- __extends(PrintsApi, _super);
13508
- function PrintsApi() {
13655
+ var PlayermoderationApi = /** @class */ (function (_super) {
13656
+ __extends(PlayermoderationApi, _super);
13657
+ function PlayermoderationApi() {
13509
13658
  return _super !== null && _super.apply(this, arguments) || this;
13510
13659
  }
13511
13660
  /**
13512
- * Returns a print.
13513
- * @summary Delete Print
13514
- * @param {string} printId Print ID.
13515
- * @param {*} [options] Override http request option.
13516
- * @throws {RequiredError}
13517
- * @memberof PrintsApi
13518
- */
13519
- PrintsApi.prototype.deletePrint = function (printId, options) {
13520
- var _this = this;
13521
- return (0, exports.PrintsApiFp)(this.configuration).deletePrint(printId, options).then(function (request) { return request(_this.axios, _this.basePath); });
13522
- };
13523
- /**
13524
- * Edits a print.
13525
- * @summary Edit Print
13526
- * @param {string} printId Print ID.
13527
- * @param {File} image The binary blob of the png file.
13528
- * @param {string} [note] The caption for the image.
13661
+ * ⚠️ **This will delete every single player moderation you\'ve ever made.**
13662
+ * @summary Clear All Player Moderations
13529
13663
  * @param {*} [options] Override http request option.
13530
13664
  * @throws {RequiredError}
13531
- * @memberof PrintsApi
13665
+ * @memberof PlayermoderationApi
13532
13666
  */
13533
- PrintsApi.prototype.editPrint = function (printId, image, note, options) {
13667
+ PlayermoderationApi.prototype.clearAllPlayerModerations = function (options) {
13534
13668
  var _this = this;
13535
- return (0, exports.PrintsApiFp)(this.configuration).editPrint(printId, image, note, options).then(function (request) { return request(_this.axios, _this.basePath); });
13669
+ return (0, exports.PlayermoderationApiFp)(this.configuration).clearAllPlayerModerations(options).then(function (request) { return request(_this.axios, _this.basePath); });
13536
13670
  };
13537
- /**
13538
- * Returns a print.
13539
- * @summary Get Print
13540
- * @param {string} printId Print ID.
13671
+ /**
13672
+ * Returns a list of all player moderations made by **you**. This endpoint does not have pagination, and will return *all* results. Use query parameters to limit your query if needed.
13673
+ * @summary Search Player Moderations
13674
+ * @param {string} [type] Must be one of PlayerModerationType, except unblock. Unblocking simply removes a block.
13675
+ * @param {string} [targetUserId] Must be valid UserID.
13541
13676
  * @param {*} [options] Override http request option.
13542
13677
  * @throws {RequiredError}
13543
- * @memberof PrintsApi
13678
+ * @memberof PlayermoderationApi
13544
13679
  */
13545
- PrintsApi.prototype.getPrint = function (printId, options) {
13680
+ PlayermoderationApi.prototype.getPlayerModerations = function (type, targetUserId, options) {
13546
13681
  var _this = this;
13547
- return (0, exports.PrintsApiFp)(this.configuration).getPrint(printId, options).then(function (request) { return request(_this.axios, _this.basePath); });
13682
+ return (0, exports.PlayermoderationApiFp)(this.configuration).getPlayerModerations(type, targetUserId, options).then(function (request) { return request(_this.axios, _this.basePath); });
13548
13683
  };
13549
13684
  /**
13550
- * Returns a list of all prints of the user. User id has to be your own userId, as you can\'t request other user\'s prints.
13551
- * @summary Get Own Prints
13552
- * @param {string} userId Must be a valid user ID.
13685
+ * Moderate a user, e.g. unmute them or show their avatar. Please see the [Player Moderation docs](https://vrchatapi.github.io/docs/api/#tag--playermoderation) on what playerModerations are, and how they differ from staff moderations.
13686
+ * @summary Moderate User
13687
+ * @param {ModerateUserRequest} moderateUserRequest
13553
13688
  * @param {*} [options] Override http request option.
13554
13689
  * @throws {RequiredError}
13555
- * @memberof PrintsApi
13690
+ * @memberof PlayermoderationApi
13556
13691
  */
13557
- PrintsApi.prototype.getUserPrints = function (userId, options) {
13692
+ PlayermoderationApi.prototype.moderateUser = function (moderateUserRequest, options) {
13558
13693
  var _this = this;
13559
- return (0, exports.PrintsApiFp)(this.configuration).getUserPrints(userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
13694
+ return (0, exports.PlayermoderationApiFp)(this.configuration).moderateUser(moderateUserRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
13560
13695
  };
13561
13696
  /**
13562
- * Uploads and creates a print.
13563
- * @summary Upload Print
13564
- * @param {File} image The binary blob of the png file.
13565
- * @param {string} timestamp The time the image was captured.
13566
- * @param {string} [note] The caption for the image.
13567
- * @param {string} [worldId] The id of the world in which the image was captured.
13568
- * @param {string} [worldName] The name of the world in which the image was captured.
13697
+ * Removes a player moderation previously added through `moderateUser`. E.g if you previously have shown their avatar, but now want to reset it to default.
13698
+ * @summary Unmoderate User
13699
+ * @param {ModerateUserRequest} moderateUserRequest
13569
13700
  * @param {*} [options] Override http request option.
13570
13701
  * @throws {RequiredError}
13571
- * @memberof PrintsApi
13702
+ * @memberof PlayermoderationApi
13572
13703
  */
13573
- PrintsApi.prototype.uploadPrint = function (image, timestamp, note, worldId, worldName, options) {
13704
+ PlayermoderationApi.prototype.unmoderateUser = function (moderateUserRequest, options) {
13574
13705
  var _this = this;
13575
- return (0, exports.PrintsApiFp)(this.configuration).uploadPrint(image, timestamp, note, worldId, worldName, options).then(function (request) { return request(_this.axios, _this.basePath); });
13706
+ return (0, exports.PlayermoderationApiFp)(this.configuration).unmoderateUser(moderateUserRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
13576
13707
  };
13577
- return PrintsApi;
13708
+ return PlayermoderationApi;
13578
13709
  }(base_1.BaseAPI));
13579
- exports.PrintsApi = PrintsApi;
13710
+ exports.PlayermoderationApi = PlayermoderationApi;
13580
13711
  /**
13581
- * SystemApi - axios parameter creator
13712
+ * PrintsApi - axios parameter creator
13582
13713
  * @export
13583
13714
  */
13584
- var SystemApiAxiosParamCreator = function (configuration) {
13715
+ var PrintsApiAxiosParamCreator = function (configuration) {
13585
13716
  var _this = this;
13586
13717
  return {
13587
13718
  /**
13588
- * Fetches the CSS code to the frontend React website.
13589
- * @summary Download CSS
13590
- * @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
13591
- * @param {string} [branch] Specifies which git branch the site should load frontend source code from.
13719
+ * Returns a print.
13720
+ * @summary Delete Print
13721
+ * @param {string} printId Print ID.
13592
13722
  * @param {*} [options] Override http request option.
13593
13723
  * @throws {RequiredError}
13594
13724
  */
13595
- getCSS: function (variant, branch, options) {
13725
+ deletePrint: function (printId, options) {
13596
13726
  if (options === void 0) { options = {}; }
13597
13727
  return __awaiter(_this, void 0, void 0, function () {
13598
13728
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13599
13729
  return __generator(this, function (_a) {
13600
- localVarPath = "/css/app.css";
13730
+ // verify required parameter 'printId' is not null or undefined
13731
+ (0, common_1.assertParamExists)('deletePrint', 'printId', printId);
13732
+ localVarPath = "/prints/{printId}"
13733
+ .replace("{".concat("printId", "}"), encodeURIComponent(String(printId)));
13601
13734
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13602
13735
  if (configuration) {
13603
13736
  baseOptions = configuration.baseOptions;
13604
13737
  }
13605
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
13738
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
13606
13739
  localVarHeaderParameter = {};
13607
13740
  localVarQueryParameter = {};
13608
- if (variant !== undefined) {
13609
- localVarQueryParameter['variant'] = variant;
13610
- }
13611
- if (branch !== undefined) {
13612
- localVarQueryParameter['branch'] = branch;
13613
- }
13741
+ // authentication authCookie required
13614
13742
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13615
13743
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13616
13744
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -13622,56 +13750,45 @@ var SystemApiAxiosParamCreator = function (configuration) {
13622
13750
  });
13623
13751
  },
13624
13752
  /**
13625
- * API config contains configuration that the clients needs to work properly. Currently the most important value here is `clientApiKey` which is used for all other API endpoints.
13626
- * @summary Fetch API Config
13753
+ * Edits a print.
13754
+ * @summary Edit Print
13755
+ * @param {string} printId Print ID.
13756
+ * @param {File} image The binary blob of the png file.
13757
+ * @param {string} [note] The caption for the image.
13627
13758
  * @param {*} [options] Override http request option.
13628
13759
  * @throws {RequiredError}
13629
13760
  */
13630
- getConfig: function (options) {
13761
+ editPrint: function (printId, image, note, options) {
13631
13762
  if (options === void 0) { options = {}; }
13632
13763
  return __awaiter(_this, void 0, void 0, function () {
13633
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13764
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
13634
13765
  return __generator(this, function (_a) {
13635
- localVarPath = "/config";
13766
+ // verify required parameter 'printId' is not null or undefined
13767
+ (0, common_1.assertParamExists)('editPrint', 'printId', printId);
13768
+ // verify required parameter 'image' is not null or undefined
13769
+ (0, common_1.assertParamExists)('editPrint', 'image', image);
13770
+ localVarPath = "/prints/{printId}"
13771
+ .replace("{".concat("printId", "}"), encodeURIComponent(String(printId)));
13636
13772
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13637
13773
  if (configuration) {
13638
13774
  baseOptions = configuration.baseOptions;
13639
13775
  }
13640
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
13776
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
13641
13777
  localVarHeaderParameter = {};
13642
13778
  localVarQueryParameter = {};
13643
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13644
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13645
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13646
- return [2 /*return*/, {
13647
- url: (0, common_1.toPathString)(localVarUrlObj),
13648
- options: localVarRequestOptions,
13649
- }];
13650
- });
13651
- });
13652
- },
13653
- /**
13654
- * Returns the current number of online users. **NOTE:** The response type is not a JSON object, but a simple JSON integer.
13655
- * @summary Current Online Users
13656
- * @param {*} [options] Override http request option.
13657
- * @throws {RequiredError}
13658
- */
13659
- getCurrentOnlineUsers: function (options) {
13660
- if (options === void 0) { options = {}; }
13661
- return __awaiter(_this, void 0, void 0, function () {
13662
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13663
- return __generator(this, function (_a) {
13664
- localVarPath = "/visits";
13665
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13666
- if (configuration) {
13667
- baseOptions = configuration.baseOptions;
13779
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
13780
+ // authentication authCookie required
13781
+ if (image !== undefined) {
13782
+ localVarFormParams.append('image', image);
13668
13783
  }
13669
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
13670
- localVarHeaderParameter = {};
13671
- localVarQueryParameter = {};
13784
+ if (note !== undefined) {
13785
+ localVarFormParams.append('note', note);
13786
+ }
13787
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
13672
13788
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13673
13789
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13674
13790
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13791
+ localVarRequestOptions.data = localVarFormParams;
13675
13792
  return [2 /*return*/, {
13676
13793
  url: (0, common_1.toPathString)(localVarUrlObj),
13677
13794
  options: localVarRequestOptions,
@@ -13680,18 +13797,21 @@ var SystemApiAxiosParamCreator = function (configuration) {
13680
13797
  });
13681
13798
  },
13682
13799
  /**
13683
- * ~~Gets the overall health status, the server name, and the current build version tag of the API.~~ **DEPRECATED:** VRChat has suddenly restricted this endpoint for unknown reasons, and now always return 401 Unauthorized.
13684
- * @summary Check API Health
13800
+ * Returns a print.
13801
+ * @summary Get Print
13802
+ * @param {string} printId Print ID.
13685
13803
  * @param {*} [options] Override http request option.
13686
- * @deprecated
13687
13804
  * @throws {RequiredError}
13688
13805
  */
13689
- getHealth: function (options) {
13806
+ getPrint: function (printId, options) {
13690
13807
  if (options === void 0) { options = {}; }
13691
13808
  return __awaiter(_this, void 0, void 0, function () {
13692
13809
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13693
13810
  return __generator(this, function (_a) {
13694
- localVarPath = "/health";
13811
+ // verify required parameter 'printId' is not null or undefined
13812
+ (0, common_1.assertParamExists)('getPrint', 'printId', printId);
13813
+ localVarPath = "/prints/{printId}"
13814
+ .replace("{".concat("printId", "}"), encodeURIComponent(String(printId)));
13695
13815
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13696
13816
  if (configuration) {
13697
13817
  baseOptions = configuration.baseOptions;
@@ -13699,6 +13819,7 @@ var SystemApiAxiosParamCreator = function (configuration) {
13699
13819
  localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
13700
13820
  localVarHeaderParameter = {};
13701
13821
  localVarQueryParameter = {};
13822
+ // authentication authCookie required
13702
13823
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13703
13824
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13704
13825
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -13710,19 +13831,21 @@ var SystemApiAxiosParamCreator = function (configuration) {
13710
13831
  });
13711
13832
  },
13712
13833
  /**
13713
- * IPS (Info Push System) is a system for VRChat to push out dynamic information to the client. This is primarily used by the Quick-Menu info banners, but can also be used to e.g. alert you to update your game to the latest version. `include` is used to query what Information Pushes should be included in the response. If include is missing or empty, then no notices will normally be returned. This is an \"any of\" search. `require` is used to limit what Information Pushes should be included in the response. This is usually used in combination with `include`, and is an \"all of\" search.
13714
- * @summary Show Information Notices
13715
- * @param {string} [require] Tags to include (comma-separated). All of the tags needs to be present.
13716
- * @param {string} [include] Tags to include (comma-separated). Any of the tags needs to be present.
13834
+ * Returns a list of all prints of the user. User id has to be your own userId, as you can\'t request other user\'s prints.
13835
+ * @summary Get Own Prints
13836
+ * @param {string} userId Must be a valid user ID.
13717
13837
  * @param {*} [options] Override http request option.
13718
13838
  * @throws {RequiredError}
13719
13839
  */
13720
- getInfoPush: function (require, include, options) {
13840
+ getUserPrints: function (userId, options) {
13721
13841
  if (options === void 0) { options = {}; }
13722
13842
  return __awaiter(_this, void 0, void 0, function () {
13723
13843
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13724
13844
  return __generator(this, function (_a) {
13725
- localVarPath = "/infoPush";
13845
+ // verify required parameter 'userId' is not null or undefined
13846
+ (0, common_1.assertParamExists)('getUserPrints', 'userId', userId);
13847
+ localVarPath = "/prints/user/{userId}"
13848
+ .replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
13726
13849
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13727
13850
  if (configuration) {
13728
13851
  baseOptions = configuration.baseOptions;
@@ -13730,12 +13853,7 @@ var SystemApiAxiosParamCreator = function (configuration) {
13730
13853
  localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
13731
13854
  localVarHeaderParameter = {};
13732
13855
  localVarQueryParameter = {};
13733
- if (require !== undefined) {
13734
- localVarQueryParameter['require'] = require;
13735
- }
13736
- if (include !== undefined) {
13737
- localVarQueryParameter['include'] = include;
13738
- }
13856
+ // authentication authCookie required
13739
13857
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13740
13858
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13741
13859
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -13747,133 +13865,85 @@ var SystemApiAxiosParamCreator = function (configuration) {
13747
13865
  });
13748
13866
  },
13749
13867
  /**
13750
- * Fetches the JavaScript code to the frontend React website.
13751
- * @summary Download JavaScript
13752
- * @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
13753
- * @param {string} [branch] Specifies which git branch the site should load frontend source code from.
13868
+ * Uploads and creates a print.
13869
+ * @summary Upload Print
13870
+ * @param {File} image The binary blob of the png file.
13871
+ * @param {string} timestamp The time the image was captured.
13872
+ * @param {string} [note] The caption for the image.
13873
+ * @param {string} [worldId] The id of the world in which the image was captured.
13874
+ * @param {string} [worldName] The name of the world in which the image was captured.
13754
13875
  * @param {*} [options] Override http request option.
13755
13876
  * @throws {RequiredError}
13756
13877
  */
13757
- getJavaScript: function (variant, branch, options) {
13878
+ uploadPrint: function (image, timestamp, note, worldId, worldName, options) {
13758
13879
  if (options === void 0) { options = {}; }
13759
13880
  return __awaiter(_this, void 0, void 0, function () {
13760
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13881
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
13761
13882
  return __generator(this, function (_a) {
13762
- localVarPath = "/js/app.js";
13883
+ // verify required parameter 'image' is not null or undefined
13884
+ (0, common_1.assertParamExists)('uploadPrint', 'image', image);
13885
+ // verify required parameter 'timestamp' is not null or undefined
13886
+ (0, common_1.assertParamExists)('uploadPrint', 'timestamp', timestamp);
13887
+ localVarPath = "/prints";
13763
13888
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13764
13889
  if (configuration) {
13765
13890
  baseOptions = configuration.baseOptions;
13766
13891
  }
13767
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
13892
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
13768
13893
  localVarHeaderParameter = {};
13769
13894
  localVarQueryParameter = {};
13770
- if (variant !== undefined) {
13771
- localVarQueryParameter['variant'] = variant;
13772
- }
13773
- if (branch !== undefined) {
13774
- localVarQueryParameter['branch'] = branch;
13895
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
13896
+ // authentication authCookie required
13897
+ if (image !== undefined) {
13898
+ localVarFormParams.append('image', image);
13775
13899
  }
13776
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13777
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13778
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13779
- return [2 /*return*/, {
13780
- url: (0, common_1.toPathString)(localVarUrlObj),
13781
- options: localVarRequestOptions,
13782
- }];
13783
- });
13784
- });
13785
- },
13786
- /**
13787
- * Returns the current time of the API server. **NOTE:** The response type is not a JSON object, but a simple JSON string.
13788
- * @summary Current System Time
13789
- * @param {*} [options] Override http request option.
13790
- * @throws {RequiredError}
13791
- */
13792
- getSystemTime: function (options) {
13793
- if (options === void 0) { options = {}; }
13794
- return __awaiter(_this, void 0, void 0, function () {
13795
- var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13796
- return __generator(this, function (_a) {
13797
- localVarPath = "/time";
13798
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13799
- if (configuration) {
13800
- baseOptions = configuration.baseOptions;
13900
+ if (timestamp !== undefined) {
13901
+ localVarFormParams.append('timestamp', timestamp);
13801
13902
  }
13802
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
13803
- localVarHeaderParameter = {};
13804
- localVarQueryParameter = {};
13805
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13806
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13807
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13808
- return [2 /*return*/, {
13809
- url: (0, common_1.toPathString)(localVarUrlObj),
13810
- options: localVarRequestOptions,
13811
- }];
13812
- });
13813
- });
13814
- },
13815
- };
13816
- };
13817
- exports.SystemApiAxiosParamCreator = SystemApiAxiosParamCreator;
13818
- /**
13819
- * SystemApi - functional programming interface
13820
- * @export
13821
- */
13822
- var SystemApiFp = function (configuration) {
13823
- var localVarAxiosParamCreator = (0, exports.SystemApiAxiosParamCreator)(configuration);
13824
- return {
13825
- /**
13826
- * Fetches the CSS code to the frontend React website.
13827
- * @summary Download CSS
13828
- * @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
13829
- * @param {string} [branch] Specifies which git branch the site should load frontend source code from.
13830
- * @param {*} [options] Override http request option.
13831
- * @throws {RequiredError}
13832
- */
13833
- getCSS: function (variant, branch, options) {
13834
- return __awaiter(this, void 0, void 0, function () {
13835
- var localVarAxiosArgs;
13836
- return __generator(this, function (_a) {
13837
- switch (_a.label) {
13838
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCSS(variant, branch, options)];
13839
- case 1:
13840
- localVarAxiosArgs = _a.sent();
13841
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
13903
+ if (note !== undefined) {
13904
+ localVarFormParams.append('note', note);
13842
13905
  }
13843
- });
13844
- });
13845
- },
13846
- /**
13847
- * API config contains configuration that the clients needs to work properly. Currently the most important value here is `clientApiKey` which is used for all other API endpoints.
13848
- * @summary Fetch API Config
13849
- * @param {*} [options] Override http request option.
13850
- * @throws {RequiredError}
13851
- */
13852
- getConfig: function (options) {
13853
- return __awaiter(this, void 0, void 0, function () {
13854
- var localVarAxiosArgs;
13855
- return __generator(this, function (_a) {
13856
- switch (_a.label) {
13857
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getConfig(options)];
13858
- case 1:
13859
- localVarAxiosArgs = _a.sent();
13860
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
13906
+ if (worldId !== undefined) {
13907
+ localVarFormParams.append('worldId', worldId);
13908
+ }
13909
+ if (worldName !== undefined) {
13910
+ localVarFormParams.append('worldName', worldName);
13861
13911
  }
13912
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
13913
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13914
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13915
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13916
+ localVarRequestOptions.data = localVarFormParams;
13917
+ return [2 /*return*/, {
13918
+ url: (0, common_1.toPathString)(localVarUrlObj),
13919
+ options: localVarRequestOptions,
13920
+ }];
13862
13921
  });
13863
13922
  });
13864
13923
  },
13924
+ };
13925
+ };
13926
+ exports.PrintsApiAxiosParamCreator = PrintsApiAxiosParamCreator;
13927
+ /**
13928
+ * PrintsApi - functional programming interface
13929
+ * @export
13930
+ */
13931
+ var PrintsApiFp = function (configuration) {
13932
+ var localVarAxiosParamCreator = (0, exports.PrintsApiAxiosParamCreator)(configuration);
13933
+ return {
13865
13934
  /**
13866
- * Returns the current number of online users. **NOTE:** The response type is not a JSON object, but a simple JSON integer.
13867
- * @summary Current Online Users
13935
+ * Returns a print.
13936
+ * @summary Delete Print
13937
+ * @param {string} printId Print ID.
13868
13938
  * @param {*} [options] Override http request option.
13869
13939
  * @throws {RequiredError}
13870
13940
  */
13871
- getCurrentOnlineUsers: function (options) {
13941
+ deletePrint: function (printId, options) {
13872
13942
  return __awaiter(this, void 0, void 0, function () {
13873
13943
  var localVarAxiosArgs;
13874
13944
  return __generator(this, function (_a) {
13875
13945
  switch (_a.label) {
13876
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCurrentOnlineUsers(options)];
13946
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePrint(printId, options)];
13877
13947
  case 1:
13878
13948
  localVarAxiosArgs = _a.sent();
13879
13949
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -13882,18 +13952,20 @@ var SystemApiFp = function (configuration) {
13882
13952
  });
13883
13953
  },
13884
13954
  /**
13885
- * ~~Gets the overall health status, the server name, and the current build version tag of the API.~~ **DEPRECATED:** VRChat has suddenly restricted this endpoint for unknown reasons, and now always return 401 Unauthorized.
13886
- * @summary Check API Health
13955
+ * Edits a print.
13956
+ * @summary Edit Print
13957
+ * @param {string} printId Print ID.
13958
+ * @param {File} image The binary blob of the png file.
13959
+ * @param {string} [note] The caption for the image.
13887
13960
  * @param {*} [options] Override http request option.
13888
- * @deprecated
13889
13961
  * @throws {RequiredError}
13890
13962
  */
13891
- getHealth: function (options) {
13963
+ editPrint: function (printId, image, note, options) {
13892
13964
  return __awaiter(this, void 0, void 0, function () {
13893
13965
  var localVarAxiosArgs;
13894
13966
  return __generator(this, function (_a) {
13895
13967
  switch (_a.label) {
13896
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getHealth(options)];
13968
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.editPrint(printId, image, note, options)];
13897
13969
  case 1:
13898
13970
  localVarAxiosArgs = _a.sent();
13899
13971
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -13902,19 +13974,18 @@ var SystemApiFp = function (configuration) {
13902
13974
  });
13903
13975
  },
13904
13976
  /**
13905
- * IPS (Info Push System) is a system for VRChat to push out dynamic information to the client. This is primarily used by the Quick-Menu info banners, but can also be used to e.g. alert you to update your game to the latest version. `include` is used to query what Information Pushes should be included in the response. If include is missing or empty, then no notices will normally be returned. This is an \"any of\" search. `require` is used to limit what Information Pushes should be included in the response. This is usually used in combination with `include`, and is an \"all of\" search.
13906
- * @summary Show Information Notices
13907
- * @param {string} [require] Tags to include (comma-separated). All of the tags needs to be present.
13908
- * @param {string} [include] Tags to include (comma-separated). Any of the tags needs to be present.
13977
+ * Returns a print.
13978
+ * @summary Get Print
13979
+ * @param {string} printId Print ID.
13909
13980
  * @param {*} [options] Override http request option.
13910
13981
  * @throws {RequiredError}
13911
13982
  */
13912
- getInfoPush: function (require, include, options) {
13983
+ getPrint: function (printId, options) {
13913
13984
  return __awaiter(this, void 0, void 0, function () {
13914
13985
  var localVarAxiosArgs;
13915
13986
  return __generator(this, function (_a) {
13916
13987
  switch (_a.label) {
13917
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInfoPush(require, include, options)];
13988
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPrint(printId, options)];
13918
13989
  case 1:
13919
13990
  localVarAxiosArgs = _a.sent();
13920
13991
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -13923,19 +13994,18 @@ var SystemApiFp = function (configuration) {
13923
13994
  });
13924
13995
  },
13925
13996
  /**
13926
- * Fetches the JavaScript code to the frontend React website.
13927
- * @summary Download JavaScript
13928
- * @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
13929
- * @param {string} [branch] Specifies which git branch the site should load frontend source code from.
13997
+ * Returns a list of all prints of the user. User id has to be your own userId, as you can\'t request other user\'s prints.
13998
+ * @summary Get Own Prints
13999
+ * @param {string} userId Must be a valid user ID.
13930
14000
  * @param {*} [options] Override http request option.
13931
14001
  * @throws {RequiredError}
13932
14002
  */
13933
- getJavaScript: function (variant, branch, options) {
14003
+ getUserPrints: function (userId, options) {
13934
14004
  return __awaiter(this, void 0, void 0, function () {
13935
14005
  var localVarAxiosArgs;
13936
14006
  return __generator(this, function (_a) {
13937
14007
  switch (_a.label) {
13938
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getJavaScript(variant, branch, options)];
14008
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUserPrints(userId, options)];
13939
14009
  case 1:
13940
14010
  localVarAxiosArgs = _a.sent();
13941
14011
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -13944,17 +14014,22 @@ var SystemApiFp = function (configuration) {
13944
14014
  });
13945
14015
  },
13946
14016
  /**
13947
- * Returns the current time of the API server. **NOTE:** The response type is not a JSON object, but a simple JSON string.
13948
- * @summary Current System Time
14017
+ * Uploads and creates a print.
14018
+ * @summary Upload Print
14019
+ * @param {File} image The binary blob of the png file.
14020
+ * @param {string} timestamp The time the image was captured.
14021
+ * @param {string} [note] The caption for the image.
14022
+ * @param {string} [worldId] The id of the world in which the image was captured.
14023
+ * @param {string} [worldName] The name of the world in which the image was captured.
13949
14024
  * @param {*} [options] Override http request option.
13950
14025
  * @throws {RequiredError}
13951
14026
  */
13952
- getSystemTime: function (options) {
14027
+ uploadPrint: function (image, timestamp, note, worldId, worldName, options) {
13953
14028
  return __awaiter(this, void 0, void 0, function () {
13954
14029
  var localVarAxiosArgs;
13955
14030
  return __generator(this, function (_a) {
13956
14031
  switch (_a.label) {
13957
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSystemTime(options)];
14032
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.uploadPrint(image, timestamp, note, worldId, worldName, options)];
13958
14033
  case 1:
13959
14034
  localVarAxiosArgs = _a.sent();
13960
14035
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -13964,185 +14039,153 @@ var SystemApiFp = function (configuration) {
13964
14039
  },
13965
14040
  };
13966
14041
  };
13967
- exports.SystemApiFp = SystemApiFp;
14042
+ exports.PrintsApiFp = PrintsApiFp;
13968
14043
  /**
13969
- * SystemApi - factory interface
14044
+ * PrintsApi - factory interface
13970
14045
  * @export
13971
14046
  */
13972
- var SystemApiFactory = function (configuration, basePath, axios) {
13973
- var localVarFp = (0, exports.SystemApiFp)(configuration);
14047
+ var PrintsApiFactory = function (configuration, basePath, axios) {
14048
+ var localVarFp = (0, exports.PrintsApiFp)(configuration);
13974
14049
  return {
13975
14050
  /**
13976
- * Fetches the CSS code to the frontend React website.
13977
- * @summary Download CSS
13978
- * @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
13979
- * @param {string} [branch] Specifies which git branch the site should load frontend source code from.
13980
- * @param {*} [options] Override http request option.
13981
- * @throws {RequiredError}
13982
- */
13983
- getCSS: function (variant, branch, options) {
13984
- return localVarFp.getCSS(variant, branch, options).then(function (request) { return request(axios, basePath); });
13985
- },
13986
- /**
13987
- * API config contains configuration that the clients needs to work properly. Currently the most important value here is `clientApiKey` which is used for all other API endpoints.
13988
- * @summary Fetch API Config
13989
- * @param {*} [options] Override http request option.
13990
- * @throws {RequiredError}
13991
- */
13992
- getConfig: function (options) {
13993
- return localVarFp.getConfig(options).then(function (request) { return request(axios, basePath); });
13994
- },
13995
- /**
13996
- * Returns the current number of online users. **NOTE:** The response type is not a JSON object, but a simple JSON integer.
13997
- * @summary Current Online Users
14051
+ * Returns a print.
14052
+ * @summary Delete Print
14053
+ * @param {string} printId Print ID.
13998
14054
  * @param {*} [options] Override http request option.
13999
14055
  * @throws {RequiredError}
14000
14056
  */
14001
- getCurrentOnlineUsers: function (options) {
14002
- return localVarFp.getCurrentOnlineUsers(options).then(function (request) { return request(axios, basePath); });
14057
+ deletePrint: function (printId, options) {
14058
+ return localVarFp.deletePrint(printId, options).then(function (request) { return request(axios, basePath); });
14003
14059
  },
14004
14060
  /**
14005
- * ~~Gets the overall health status, the server name, and the current build version tag of the API.~~ **DEPRECATED:** VRChat has suddenly restricted this endpoint for unknown reasons, and now always return 401 Unauthorized.
14006
- * @summary Check API Health
14061
+ * Edits a print.
14062
+ * @summary Edit Print
14063
+ * @param {string} printId Print ID.
14064
+ * @param {File} image The binary blob of the png file.
14065
+ * @param {string} [note] The caption for the image.
14007
14066
  * @param {*} [options] Override http request option.
14008
- * @deprecated
14009
14067
  * @throws {RequiredError}
14010
14068
  */
14011
- getHealth: function (options) {
14012
- return localVarFp.getHealth(options).then(function (request) { return request(axios, basePath); });
14069
+ editPrint: function (printId, image, note, options) {
14070
+ return localVarFp.editPrint(printId, image, note, options).then(function (request) { return request(axios, basePath); });
14013
14071
  },
14014
14072
  /**
14015
- * IPS (Info Push System) is a system for VRChat to push out dynamic information to the client. This is primarily used by the Quick-Menu info banners, but can also be used to e.g. alert you to update your game to the latest version. `include` is used to query what Information Pushes should be included in the response. If include is missing or empty, then no notices will normally be returned. This is an \"any of\" search. `require` is used to limit what Information Pushes should be included in the response. This is usually used in combination with `include`, and is an \"all of\" search.
14016
- * @summary Show Information Notices
14017
- * @param {string} [require] Tags to include (comma-separated). All of the tags needs to be present.
14018
- * @param {string} [include] Tags to include (comma-separated). Any of the tags needs to be present.
14073
+ * Returns a print.
14074
+ * @summary Get Print
14075
+ * @param {string} printId Print ID.
14019
14076
  * @param {*} [options] Override http request option.
14020
14077
  * @throws {RequiredError}
14021
14078
  */
14022
- getInfoPush: function (require, include, options) {
14023
- return localVarFp.getInfoPush(require, include, options).then(function (request) { return request(axios, basePath); });
14079
+ getPrint: function (printId, options) {
14080
+ return localVarFp.getPrint(printId, options).then(function (request) { return request(axios, basePath); });
14024
14081
  },
14025
14082
  /**
14026
- * Fetches the JavaScript code to the frontend React website.
14027
- * @summary Download JavaScript
14028
- * @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
14029
- * @param {string} [branch] Specifies which git branch the site should load frontend source code from.
14083
+ * Returns a list of all prints of the user. User id has to be your own userId, as you can\'t request other user\'s prints.
14084
+ * @summary Get Own Prints
14085
+ * @param {string} userId Must be a valid user ID.
14030
14086
  * @param {*} [options] Override http request option.
14031
14087
  * @throws {RequiredError}
14032
14088
  */
14033
- getJavaScript: function (variant, branch, options) {
14034
- return localVarFp.getJavaScript(variant, branch, options).then(function (request) { return request(axios, basePath); });
14089
+ getUserPrints: function (userId, options) {
14090
+ return localVarFp.getUserPrints(userId, options).then(function (request) { return request(axios, basePath); });
14035
14091
  },
14036
14092
  /**
14037
- * Returns the current time of the API server. **NOTE:** The response type is not a JSON object, but a simple JSON string.
14038
- * @summary Current System Time
14093
+ * Uploads and creates a print.
14094
+ * @summary Upload Print
14095
+ * @param {File} image The binary blob of the png file.
14096
+ * @param {string} timestamp The time the image was captured.
14097
+ * @param {string} [note] The caption for the image.
14098
+ * @param {string} [worldId] The id of the world in which the image was captured.
14099
+ * @param {string} [worldName] The name of the world in which the image was captured.
14039
14100
  * @param {*} [options] Override http request option.
14040
14101
  * @throws {RequiredError}
14041
14102
  */
14042
- getSystemTime: function (options) {
14043
- return localVarFp.getSystemTime(options).then(function (request) { return request(axios, basePath); });
14103
+ uploadPrint: function (image, timestamp, note, worldId, worldName, options) {
14104
+ return localVarFp.uploadPrint(image, timestamp, note, worldId, worldName, options).then(function (request) { return request(axios, basePath); });
14044
14105
  },
14045
14106
  };
14046
14107
  };
14047
- exports.SystemApiFactory = SystemApiFactory;
14108
+ exports.PrintsApiFactory = PrintsApiFactory;
14048
14109
  /**
14049
- * SystemApi - object-oriented interface
14110
+ * PrintsApi - object-oriented interface
14050
14111
  * @export
14051
- * @class SystemApi
14112
+ * @class PrintsApi
14052
14113
  * @extends {BaseAPI}
14053
14114
  */
14054
- var SystemApi = /** @class */ (function (_super) {
14055
- __extends(SystemApi, _super);
14056
- function SystemApi() {
14115
+ var PrintsApi = /** @class */ (function (_super) {
14116
+ __extends(PrintsApi, _super);
14117
+ function PrintsApi() {
14057
14118
  return _super !== null && _super.apply(this, arguments) || this;
14058
14119
  }
14059
14120
  /**
14060
- * Fetches the CSS code to the frontend React website.
14061
- * @summary Download CSS
14062
- * @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
14063
- * @param {string} [branch] Specifies which git branch the site should load frontend source code from.
14064
- * @param {*} [options] Override http request option.
14065
- * @throws {RequiredError}
14066
- * @memberof SystemApi
14067
- */
14068
- SystemApi.prototype.getCSS = function (variant, branch, options) {
14069
- var _this = this;
14070
- return (0, exports.SystemApiFp)(this.configuration).getCSS(variant, branch, options).then(function (request) { return request(_this.axios, _this.basePath); });
14071
- };
14072
- /**
14073
- * API config contains configuration that the clients needs to work properly. Currently the most important value here is `clientApiKey` which is used for all other API endpoints.
14074
- * @summary Fetch API Config
14075
- * @param {*} [options] Override http request option.
14076
- * @throws {RequiredError}
14077
- * @memberof SystemApi
14078
- */
14079
- SystemApi.prototype.getConfig = function (options) {
14080
- var _this = this;
14081
- return (0, exports.SystemApiFp)(this.configuration).getConfig(options).then(function (request) { return request(_this.axios, _this.basePath); });
14082
- };
14083
- /**
14084
- * Returns the current number of online users. **NOTE:** The response type is not a JSON object, but a simple JSON integer.
14085
- * @summary Current Online Users
14121
+ * Returns a print.
14122
+ * @summary Delete Print
14123
+ * @param {string} printId Print ID.
14086
14124
  * @param {*} [options] Override http request option.
14087
14125
  * @throws {RequiredError}
14088
- * @memberof SystemApi
14126
+ * @memberof PrintsApi
14089
14127
  */
14090
- SystemApi.prototype.getCurrentOnlineUsers = function (options) {
14128
+ PrintsApi.prototype.deletePrint = function (printId, options) {
14091
14129
  var _this = this;
14092
- return (0, exports.SystemApiFp)(this.configuration).getCurrentOnlineUsers(options).then(function (request) { return request(_this.axios, _this.basePath); });
14130
+ return (0, exports.PrintsApiFp)(this.configuration).deletePrint(printId, options).then(function (request) { return request(_this.axios, _this.basePath); });
14093
14131
  };
14094
14132
  /**
14095
- * ~~Gets the overall health status, the server name, and the current build version tag of the API.~~ **DEPRECATED:** VRChat has suddenly restricted this endpoint for unknown reasons, and now always return 401 Unauthorized.
14096
- * @summary Check API Health
14133
+ * Edits a print.
14134
+ * @summary Edit Print
14135
+ * @param {string} printId Print ID.
14136
+ * @param {File} image The binary blob of the png file.
14137
+ * @param {string} [note] The caption for the image.
14097
14138
  * @param {*} [options] Override http request option.
14098
- * @deprecated
14099
14139
  * @throws {RequiredError}
14100
- * @memberof SystemApi
14140
+ * @memberof PrintsApi
14101
14141
  */
14102
- SystemApi.prototype.getHealth = function (options) {
14142
+ PrintsApi.prototype.editPrint = function (printId, image, note, options) {
14103
14143
  var _this = this;
14104
- return (0, exports.SystemApiFp)(this.configuration).getHealth(options).then(function (request) { return request(_this.axios, _this.basePath); });
14144
+ return (0, exports.PrintsApiFp)(this.configuration).editPrint(printId, image, note, options).then(function (request) { return request(_this.axios, _this.basePath); });
14105
14145
  };
14106
14146
  /**
14107
- * IPS (Info Push System) is a system for VRChat to push out dynamic information to the client. This is primarily used by the Quick-Menu info banners, but can also be used to e.g. alert you to update your game to the latest version. `include` is used to query what Information Pushes should be included in the response. If include is missing or empty, then no notices will normally be returned. This is an \"any of\" search. `require` is used to limit what Information Pushes should be included in the response. This is usually used in combination with `include`, and is an \"all of\" search.
14108
- * @summary Show Information Notices
14109
- * @param {string} [require] Tags to include (comma-separated). All of the tags needs to be present.
14110
- * @param {string} [include] Tags to include (comma-separated). Any of the tags needs to be present.
14147
+ * Returns a print.
14148
+ * @summary Get Print
14149
+ * @param {string} printId Print ID.
14111
14150
  * @param {*} [options] Override http request option.
14112
14151
  * @throws {RequiredError}
14113
- * @memberof SystemApi
14152
+ * @memberof PrintsApi
14114
14153
  */
14115
- SystemApi.prototype.getInfoPush = function (require, include, options) {
14154
+ PrintsApi.prototype.getPrint = function (printId, options) {
14116
14155
  var _this = this;
14117
- return (0, exports.SystemApiFp)(this.configuration).getInfoPush(require, include, options).then(function (request) { return request(_this.axios, _this.basePath); });
14156
+ return (0, exports.PrintsApiFp)(this.configuration).getPrint(printId, options).then(function (request) { return request(_this.axios, _this.basePath); });
14118
14157
  };
14119
14158
  /**
14120
- * Fetches the JavaScript code to the frontend React website.
14121
- * @summary Download JavaScript
14122
- * @param {'public' | 'internal'} [variant] Specifies which `variant` of the site. Public is the end-user site, while `internal` is the staff-only site with special pages for moderation and management.
14123
- * @param {string} [branch] Specifies which git branch the site should load frontend source code from.
14159
+ * Returns a list of all prints of the user. User id has to be your own userId, as you can\'t request other user\'s prints.
14160
+ * @summary Get Own Prints
14161
+ * @param {string} userId Must be a valid user ID.
14124
14162
  * @param {*} [options] Override http request option.
14125
14163
  * @throws {RequiredError}
14126
- * @memberof SystemApi
14164
+ * @memberof PrintsApi
14127
14165
  */
14128
- SystemApi.prototype.getJavaScript = function (variant, branch, options) {
14166
+ PrintsApi.prototype.getUserPrints = function (userId, options) {
14129
14167
  var _this = this;
14130
- return (0, exports.SystemApiFp)(this.configuration).getJavaScript(variant, branch, options).then(function (request) { return request(_this.axios, _this.basePath); });
14168
+ return (0, exports.PrintsApiFp)(this.configuration).getUserPrints(userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
14131
14169
  };
14132
14170
  /**
14133
- * Returns the current time of the API server. **NOTE:** The response type is not a JSON object, but a simple JSON string.
14134
- * @summary Current System Time
14171
+ * Uploads and creates a print.
14172
+ * @summary Upload Print
14173
+ * @param {File} image The binary blob of the png file.
14174
+ * @param {string} timestamp The time the image was captured.
14175
+ * @param {string} [note] The caption for the image.
14176
+ * @param {string} [worldId] The id of the world in which the image was captured.
14177
+ * @param {string} [worldName] The name of the world in which the image was captured.
14135
14178
  * @param {*} [options] Override http request option.
14136
14179
  * @throws {RequiredError}
14137
- * @memberof SystemApi
14180
+ * @memberof PrintsApi
14138
14181
  */
14139
- SystemApi.prototype.getSystemTime = function (options) {
14182
+ PrintsApi.prototype.uploadPrint = function (image, timestamp, note, worldId, worldName, options) {
14140
14183
  var _this = this;
14141
- return (0, exports.SystemApiFp)(this.configuration).getSystemTime(options).then(function (request) { return request(_this.axios, _this.basePath); });
14184
+ return (0, exports.PrintsApiFp)(this.configuration).uploadPrint(image, timestamp, note, worldId, worldName, options).then(function (request) { return request(_this.axios, _this.basePath); });
14142
14185
  };
14143
- return SystemApi;
14186
+ return PrintsApi;
14144
14187
  }(base_1.BaseAPI));
14145
- exports.SystemApi = SystemApi;
14188
+ exports.PrintsApi = PrintsApi;
14146
14189
  /**
14147
14190
  * UsersApi - axios parameter creator
14148
14191
  * @export