vrchat 1.5.3 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.ts +132 -80
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +122 -77
- package/dist/api.js +48 -17
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* VRChat API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.6.6
|
|
8
8
|
* Contact: me@ruby.js.org
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -72,7 +72,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
74
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
75
|
-
exports.WorldsApi = exports.WorldsApiFactory = exports.WorldsApiFp = exports.WorldsApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.PlayermoderationApi = exports.PlayermoderationApiFactory = exports.PlayermoderationApiFp = exports.PlayermoderationApiAxiosParamCreator = exports.PermissionsApi = exports.PermissionsApiFactory = exports.PermissionsApiFp = exports.PermissionsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.InviteApi = exports.InviteApiFactory = exports.InviteApiFp = exports.InviteApiAxiosParamCreator = exports.InstancesApi = exports.InstancesApiFactory = exports.InstancesApiFp = exports.InstancesApiAxiosParamCreator = exports.FriendsApi = exports.FriendsApiFactory = exports.FriendsApiFp = exports.FriendsApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.FavoritesApi = exports.FavoritesApiFactory = exports.FavoritesApiFp = exports.FavoritesApiAxiosParamCreator = exports.EconomyApi = exports.EconomyApiFactory = exports.EconomyApiFp = exports.EconomyApiAxiosParamCreator = exports.AvatarsApi = exports.AvatarsApiFactory = exports.AvatarsApiFp = exports.AvatarsApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.UserStatus = exports.UserState = exports.TransactionStatus = exports.SubscriptionPeriod = exports.ReleaseStatus = exports.PlayerModerationType = exports.NotificationType = exports.MIMEType = exports.LicenseType = exports.LicenseAction = exports.InviteMessageType = exports.InfoPushDataClickableCommandEnum = exports.FileStatus = exports.FileDataCategoryEnum = exports.FavoriteType = exports.FavoriteGroupVisibility = exports.DeveloperType = exports.DeploymentGroup = void 0;
|
|
75
|
+
exports.WorldsApi = exports.WorldsApiFactory = exports.WorldsApiFp = exports.WorldsApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.PlayermoderationApi = exports.PlayermoderationApiFactory = exports.PlayermoderationApiFp = exports.PlayermoderationApiAxiosParamCreator = exports.PermissionsApi = exports.PermissionsApiFactory = exports.PermissionsApiFp = exports.PermissionsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.InviteApi = exports.InviteApiFactory = exports.InviteApiFp = exports.InviteApiAxiosParamCreator = exports.InstancesApi = exports.InstancesApiFactory = exports.InstancesApiFp = exports.InstancesApiAxiosParamCreator = exports.FriendsApi = exports.FriendsApiFactory = exports.FriendsApiFp = exports.FriendsApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.FavoritesApi = exports.FavoritesApiFactory = exports.FavoritesApiFp = exports.FavoritesApiAxiosParamCreator = exports.EconomyApi = exports.EconomyApiFactory = exports.EconomyApiFp = exports.EconomyApiAxiosParamCreator = exports.AvatarsApi = exports.AvatarsApiFactory = exports.AvatarsApiFp = exports.AvatarsApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.UserStatus = exports.UserState = exports.TransactionStatus = exports.SubscriptionPeriod = exports.ReleaseStatus = exports.Region = exports.PlayerModerationType = exports.NotificationType = exports.MIMEType = exports.LicenseType = exports.LicenseAction = exports.InviteMessageType = exports.InstanceType = exports.InfoPushDataClickableCommandEnum = exports.FileStatus = exports.FileDataCategoryEnum = exports.FavoriteType = exports.FavoriteGroupVisibility = exports.DeveloperType = exports.DeploymentGroup = void 0;
|
|
76
76
|
var axios_1 = require("axios");
|
|
77
77
|
// Some imports not used depending on template conditions
|
|
78
78
|
// @ts-ignore
|
|
@@ -162,6 +162,18 @@ var InfoPushDataClickableCommandEnum;
|
|
|
162
162
|
InfoPushDataClickableCommandEnum["OpenSafetyMenu"] = "OpenSafetyMenu";
|
|
163
163
|
InfoPushDataClickableCommandEnum["CannedWorldSearch"] = "CannedWorldSearch";
|
|
164
164
|
})(InfoPushDataClickableCommandEnum = exports.InfoPushDataClickableCommandEnum || (exports.InfoPushDataClickableCommandEnum = {}));
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @export
|
|
168
|
+
* @enum {string}
|
|
169
|
+
*/
|
|
170
|
+
var InstanceType;
|
|
171
|
+
(function (InstanceType) {
|
|
172
|
+
InstanceType["Public"] = "public";
|
|
173
|
+
InstanceType["Hidden"] = "hidden";
|
|
174
|
+
InstanceType["Friends"] = "friends";
|
|
175
|
+
InstanceType["Private"] = "private";
|
|
176
|
+
})(InstanceType = exports.InstanceType || (exports.InstanceType = {}));
|
|
165
177
|
/**
|
|
166
178
|
*
|
|
167
179
|
* @export
|
|
@@ -246,6 +258,19 @@ var PlayerModerationType;
|
|
|
246
258
|
PlayerModerationType["HideAvatar"] = "hideAvatar";
|
|
247
259
|
PlayerModerationType["ShowAvatar"] = "showAvatar";
|
|
248
260
|
})(PlayerModerationType = exports.PlayerModerationType || (exports.PlayerModerationType = {}));
|
|
261
|
+
/**
|
|
262
|
+
* API/Photon region.
|
|
263
|
+
* @export
|
|
264
|
+
* @enum {string}
|
|
265
|
+
*/
|
|
266
|
+
var Region;
|
|
267
|
+
(function (Region) {
|
|
268
|
+
Region["Us"] = "us";
|
|
269
|
+
Region["Use"] = "use";
|
|
270
|
+
Region["Eu"] = "eu";
|
|
271
|
+
Region["Jp"] = "jp";
|
|
272
|
+
Region["Unknown"] = "unknown";
|
|
273
|
+
})(Region = exports.Region || (exports.Region = {}));
|
|
249
274
|
/**
|
|
250
275
|
*
|
|
251
276
|
* @export
|
|
@@ -4216,7 +4241,7 @@ exports.InstancesApiAxiosParamCreator = function (configuration) {
|
|
|
4216
4241
|
var _this = this;
|
|
4217
4242
|
return {
|
|
4218
4243
|
/**
|
|
4219
|
-
* Returns an instance.
|
|
4244
|
+
* Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances. If an invalid instanceId is provided, this endpoint will simply return \"null\"!
|
|
4220
4245
|
* @summary Get Instance
|
|
4221
4246
|
* @param {string} worldId
|
|
4222
4247
|
* @param {string} instanceId
|
|
@@ -4342,7 +4367,7 @@ exports.InstancesApiFp = function (configuration) {
|
|
|
4342
4367
|
var localVarAxiosParamCreator = exports.InstancesApiAxiosParamCreator(configuration);
|
|
4343
4368
|
return {
|
|
4344
4369
|
/**
|
|
4345
|
-
* Returns an instance.
|
|
4370
|
+
* Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances. If an invalid instanceId is provided, this endpoint will simply return \"null\"!
|
|
4346
4371
|
* @summary Get Instance
|
|
4347
4372
|
* @param {string} worldId
|
|
4348
4373
|
* @param {string} instanceId
|
|
@@ -4414,7 +4439,7 @@ exports.InstancesApiFactory = function (configuration, basePath, axios) {
|
|
|
4414
4439
|
var localVarFp = exports.InstancesApiFp(configuration);
|
|
4415
4440
|
return {
|
|
4416
4441
|
/**
|
|
4417
|
-
* Returns an instance.
|
|
4442
|
+
* Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances. If an invalid instanceId is provided, this endpoint will simply return \"null\"!
|
|
4418
4443
|
* @summary Get Instance
|
|
4419
4444
|
* @param {string} worldId
|
|
4420
4445
|
* @param {string} instanceId
|
|
@@ -4460,7 +4485,7 @@ var InstancesApi = /** @class */ (function (_super) {
|
|
|
4460
4485
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
4461
4486
|
}
|
|
4462
4487
|
/**
|
|
4463
|
-
* Returns an instance.
|
|
4488
|
+
* Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances. If an invalid instanceId is provided, this endpoint will simply return \"null\"!
|
|
4464
4489
|
* @summary Get Instance
|
|
4465
4490
|
* @param {string} worldId
|
|
4466
4491
|
* @param {string} instanceId
|
|
@@ -4632,10 +4657,11 @@ exports.InviteApiAxiosParamCreator = function (configuration) {
|
|
|
4632
4657
|
* Requests an invite from a user. Returns the Notification of type `requestInvite` that was sent.
|
|
4633
4658
|
* @summary Request Invite
|
|
4634
4659
|
* @param {string} userId
|
|
4660
|
+
* @param {RequestInviteRequest} [requestInviteRequest] Slot number of the Request Message to use when request an invite.
|
|
4635
4661
|
* @param {*} [options] Override http request option.
|
|
4636
4662
|
* @throws {RequiredError}
|
|
4637
4663
|
*/
|
|
4638
|
-
requestInvite: function (userId, options) {
|
|
4664
|
+
requestInvite: function (userId, requestInviteRequest, options) {
|
|
4639
4665
|
if (options === void 0) { options = {}; }
|
|
4640
4666
|
return __awaiter(_this, void 0, void 0, function () {
|
|
4641
4667
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -4653,9 +4679,11 @@ exports.InviteApiAxiosParamCreator = function (configuration) {
|
|
|
4653
4679
|
localVarQueryParameter = {};
|
|
4654
4680
|
// authentication apiKeyCookie required
|
|
4655
4681
|
// authentication authCookie required
|
|
4682
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4656
4683
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4657
4684
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4658
4685
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4686
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(requestInviteRequest, localVarRequestOptions, configuration);
|
|
4659
4687
|
return [2 /*return*/, {
|
|
4660
4688
|
url: common_1.toPathString(localVarUrlObj),
|
|
4661
4689
|
options: localVarRequestOptions,
|
|
@@ -4710,7 +4738,7 @@ exports.InviteApiAxiosParamCreator = function (configuration) {
|
|
|
4710
4738
|
* Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
|
|
4711
4739
|
* @summary Respond Invite
|
|
4712
4740
|
* @param {string} notificationId
|
|
4713
|
-
* @param {InviteResponse} [inviteResponse]
|
|
4741
|
+
* @param {InviteResponse} [inviteResponse] Slot number of the Response Message to use when responding to a user.
|
|
4714
4742
|
* @param {*} [options] Override http request option.
|
|
4715
4743
|
* @throws {RequiredError}
|
|
4716
4744
|
*/
|
|
@@ -4867,15 +4895,16 @@ exports.InviteApiFp = function (configuration) {
|
|
|
4867
4895
|
* Requests an invite from a user. Returns the Notification of type `requestInvite` that was sent.
|
|
4868
4896
|
* @summary Request Invite
|
|
4869
4897
|
* @param {string} userId
|
|
4898
|
+
* @param {RequestInviteRequest} [requestInviteRequest] Slot number of the Request Message to use when request an invite.
|
|
4870
4899
|
* @param {*} [options] Override http request option.
|
|
4871
4900
|
* @throws {RequiredError}
|
|
4872
4901
|
*/
|
|
4873
|
-
requestInvite: function (userId, options) {
|
|
4902
|
+
requestInvite: function (userId, requestInviteRequest, options) {
|
|
4874
4903
|
return __awaiter(this, void 0, void 0, function () {
|
|
4875
4904
|
var localVarAxiosArgs;
|
|
4876
4905
|
return __generator(this, function (_a) {
|
|
4877
4906
|
switch (_a.label) {
|
|
4878
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.requestInvite(userId, options)];
|
|
4907
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.requestInvite(userId, requestInviteRequest, options)];
|
|
4879
4908
|
case 1:
|
|
4880
4909
|
localVarAxiosArgs = _a.sent();
|
|
4881
4910
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -4909,7 +4938,7 @@ exports.InviteApiFp = function (configuration) {
|
|
|
4909
4938
|
* Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
|
|
4910
4939
|
* @summary Respond Invite
|
|
4911
4940
|
* @param {string} notificationId
|
|
4912
|
-
* @param {InviteResponse} [inviteResponse]
|
|
4941
|
+
* @param {InviteResponse} [inviteResponse] Slot number of the Response Message to use when responding to a user.
|
|
4913
4942
|
* @param {*} [options] Override http request option.
|
|
4914
4943
|
* @throws {RequiredError}
|
|
4915
4944
|
*/
|
|
@@ -4996,11 +5025,12 @@ exports.InviteApiFactory = function (configuration, basePath, axios) {
|
|
|
4996
5025
|
* Requests an invite from a user. Returns the Notification of type `requestInvite` that was sent.
|
|
4997
5026
|
* @summary Request Invite
|
|
4998
5027
|
* @param {string} userId
|
|
5028
|
+
* @param {RequestInviteRequest} [requestInviteRequest] Slot number of the Request Message to use when request an invite.
|
|
4999
5029
|
* @param {*} [options] Override http request option.
|
|
5000
5030
|
* @throws {RequiredError}
|
|
5001
5031
|
*/
|
|
5002
|
-
requestInvite: function (userId, options) {
|
|
5003
|
-
return localVarFp.requestInvite(userId, options).then(function (request) { return request(axios, basePath); });
|
|
5032
|
+
requestInvite: function (userId, requestInviteRequest, options) {
|
|
5033
|
+
return localVarFp.requestInvite(userId, requestInviteRequest, options).then(function (request) { return request(axios, basePath); });
|
|
5004
5034
|
},
|
|
5005
5035
|
/**
|
|
5006
5036
|
* Resets a single Invite Message back to its original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit, so it is not possible to reset within the 60 minutes countdown. Resetting it does however not set the rate-limit to 60 like when editing it. It is possible to edit it right after resetting it. Trying to edit a message before the cooldown timer expires results in a 429 \"Too Fast Error\". Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite The DELETE endpoint does not have/require any request body.
|
|
@@ -5018,7 +5048,7 @@ exports.InviteApiFactory = function (configuration, basePath, axios) {
|
|
|
5018
5048
|
* Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
|
|
5019
5049
|
* @summary Respond Invite
|
|
5020
5050
|
* @param {string} notificationId
|
|
5021
|
-
* @param {InviteResponse} [inviteResponse]
|
|
5051
|
+
* @param {InviteResponse} [inviteResponse] Slot number of the Response Message to use when responding to a user.
|
|
5022
5052
|
* @param {*} [options] Override http request option.
|
|
5023
5053
|
* @throws {RequiredError}
|
|
5024
5054
|
*/
|
|
@@ -5095,13 +5125,14 @@ var InviteApi = /** @class */ (function (_super) {
|
|
|
5095
5125
|
* Requests an invite from a user. Returns the Notification of type `requestInvite` that was sent.
|
|
5096
5126
|
* @summary Request Invite
|
|
5097
5127
|
* @param {string} userId
|
|
5128
|
+
* @param {RequestInviteRequest} [requestInviteRequest] Slot number of the Request Message to use when request an invite.
|
|
5098
5129
|
* @param {*} [options] Override http request option.
|
|
5099
5130
|
* @throws {RequiredError}
|
|
5100
5131
|
* @memberof InviteApi
|
|
5101
5132
|
*/
|
|
5102
|
-
InviteApi.prototype.requestInvite = function (userId, options) {
|
|
5133
|
+
InviteApi.prototype.requestInvite = function (userId, requestInviteRequest, options) {
|
|
5103
5134
|
var _this = this;
|
|
5104
|
-
return exports.InviteApiFp(this.configuration).requestInvite(userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5135
|
+
return exports.InviteApiFp(this.configuration).requestInvite(userId, requestInviteRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5105
5136
|
};
|
|
5106
5137
|
/**
|
|
5107
5138
|
* Resets a single Invite Message back to its original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit, so it is not possible to reset within the 60 minutes countdown. Resetting it does however not set the rate-limit to 60 like when editing it. It is possible to edit it right after resetting it. Trying to edit a message before the cooldown timer expires results in a 429 \"Too Fast Error\". Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite The DELETE endpoint does not have/require any request body.
|
|
@@ -5121,7 +5152,7 @@ var InviteApi = /** @class */ (function (_super) {
|
|
|
5121
5152
|
* Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
|
|
5122
5153
|
* @summary Respond Invite
|
|
5123
5154
|
* @param {string} notificationId
|
|
5124
|
-
* @param {InviteResponse} [inviteResponse]
|
|
5155
|
+
* @param {InviteResponse} [inviteResponse] Slot number of the Response Message to use when responding to a user.
|
|
5125
5156
|
* @param {*} [options] Override http request option.
|
|
5126
5157
|
* @throws {RequiredError}
|
|
5127
5158
|
* @memberof InviteApi
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/index.ts
CHANGED