vrchat 1.18.0 → 1.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -3
- package/api.ts +290 -138
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +269 -125
- package/dist/api.js +44 -29
- 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/example.js +31 -8
- 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.18.
|
|
7
|
+
* The version of the OpenAPI document: 1.18.3
|
|
8
8
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -251,7 +251,8 @@ exports.InstanceRegion = {
|
|
|
251
251
|
Us: 'us',
|
|
252
252
|
Use: 'use',
|
|
253
253
|
Eu: 'eu',
|
|
254
|
-
Jp: 'jp'
|
|
254
|
+
Jp: 'jp',
|
|
255
|
+
Unknown: 'unknown'
|
|
255
256
|
};
|
|
256
257
|
/**
|
|
257
258
|
*
|
|
@@ -459,12 +460,12 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
459
460
|
* @summary Check User Exists
|
|
460
461
|
* @param {string} [email] Filter by email.
|
|
461
462
|
* @param {string} [displayName] Filter by displayName.
|
|
462
|
-
* @param {string} [
|
|
463
|
+
* @param {string} [username] Filter by Username.
|
|
463
464
|
* @param {string} [excludeUserId] Exclude by UserID.
|
|
464
465
|
* @param {*} [options] Override http request option.
|
|
465
466
|
* @throws {RequiredError}
|
|
466
467
|
*/
|
|
467
|
-
checkUserExists: function (email, displayName,
|
|
468
|
+
checkUserExists: function (email, displayName, username, excludeUserId, options) {
|
|
468
469
|
if (options === void 0) { options = {}; }
|
|
469
470
|
return __awaiter(_this, void 0, void 0, function () {
|
|
470
471
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -483,8 +484,8 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
483
484
|
if (displayName !== undefined) {
|
|
484
485
|
localVarQueryParameter['displayName'] = displayName;
|
|
485
486
|
}
|
|
486
|
-
if (
|
|
487
|
-
localVarQueryParameter['
|
|
487
|
+
if (username !== undefined) {
|
|
488
|
+
localVarQueryParameter['username'] = username;
|
|
488
489
|
}
|
|
489
490
|
if (excludeUserId !== undefined) {
|
|
490
491
|
localVarQueryParameter['excludeUserId'] = excludeUserId;
|
|
@@ -747,17 +748,17 @@ var AuthenticationApiFp = function (configuration) {
|
|
|
747
748
|
* @summary Check User Exists
|
|
748
749
|
* @param {string} [email] Filter by email.
|
|
749
750
|
* @param {string} [displayName] Filter by displayName.
|
|
750
|
-
* @param {string} [
|
|
751
|
+
* @param {string} [username] Filter by Username.
|
|
751
752
|
* @param {string} [excludeUserId] Exclude by UserID.
|
|
752
753
|
* @param {*} [options] Override http request option.
|
|
753
754
|
* @throws {RequiredError}
|
|
754
755
|
*/
|
|
755
|
-
checkUserExists: function (email, displayName,
|
|
756
|
+
checkUserExists: function (email, displayName, username, excludeUserId, options) {
|
|
756
757
|
return __awaiter(this, void 0, void 0, function () {
|
|
757
758
|
var localVarAxiosArgs;
|
|
758
759
|
return __generator(this, function (_a) {
|
|
759
760
|
switch (_a.label) {
|
|
760
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.checkUserExists(email, displayName,
|
|
761
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.checkUserExists(email, displayName, username, excludeUserId, options)];
|
|
761
762
|
case 1:
|
|
762
763
|
localVarAxiosArgs = _a.sent();
|
|
763
764
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -917,13 +918,13 @@ var AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
917
918
|
* @summary Check User Exists
|
|
918
919
|
* @param {string} [email] Filter by email.
|
|
919
920
|
* @param {string} [displayName] Filter by displayName.
|
|
920
|
-
* @param {string} [
|
|
921
|
+
* @param {string} [username] Filter by Username.
|
|
921
922
|
* @param {string} [excludeUserId] Exclude by UserID.
|
|
922
923
|
* @param {*} [options] Override http request option.
|
|
923
924
|
* @throws {RequiredError}
|
|
924
925
|
*/
|
|
925
|
-
checkUserExists: function (email, displayName,
|
|
926
|
-
return localVarFp.checkUserExists(email, displayName,
|
|
926
|
+
checkUserExists: function (email, displayName, username, excludeUserId, options) {
|
|
927
|
+
return localVarFp.checkUserExists(email, displayName, username, excludeUserId, options).then(function (request) { return request(axios, basePath); });
|
|
927
928
|
},
|
|
928
929
|
/**
|
|
929
930
|
* Deletes the account with given ID. Normal users only have permission to delete their own account. Account deletion is 14 days from this request, and will be cancelled if you do an authenticated request with the account afterwards. **VRC+ NOTE:** Despite the 14-days cooldown, any VRC+ subscription will be cancelled **immediately**. **METHOD NOTE:** Despite this being a Delete action, the method type required is PUT.
|
|
@@ -1011,15 +1012,15 @@ var AuthenticationApi = /** @class */ (function (_super) {
|
|
|
1011
1012
|
* @summary Check User Exists
|
|
1012
1013
|
* @param {string} [email] Filter by email.
|
|
1013
1014
|
* @param {string} [displayName] Filter by displayName.
|
|
1014
|
-
* @param {string} [
|
|
1015
|
+
* @param {string} [username] Filter by Username.
|
|
1015
1016
|
* @param {string} [excludeUserId] Exclude by UserID.
|
|
1016
1017
|
* @param {*} [options] Override http request option.
|
|
1017
1018
|
* @throws {RequiredError}
|
|
1018
1019
|
* @memberof AuthenticationApi
|
|
1019
1020
|
*/
|
|
1020
|
-
AuthenticationApi.prototype.checkUserExists = function (email, displayName,
|
|
1021
|
+
AuthenticationApi.prototype.checkUserExists = function (email, displayName, username, excludeUserId, options) {
|
|
1021
1022
|
var _this = this;
|
|
1022
|
-
return (0, exports.AuthenticationApiFp)(this.configuration).checkUserExists(email, displayName,
|
|
1023
|
+
return (0, exports.AuthenticationApiFp)(this.configuration).checkUserExists(email, displayName, username, excludeUserId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1023
1024
|
};
|
|
1024
1025
|
/**
|
|
1025
1026
|
* Deletes the account with given ID. Normal users only have permission to delete their own account. Account deletion is 14 days from this request, and will be cancelled if you do an authenticated request with the account afterwards. **VRC+ NOTE:** Despite the 14-days cooldown, any VRC+ subscription will be cancelled **immediately**. **METHOD NOTE:** Despite this being a Delete action, the method type required is PUT.
|
|
@@ -5480,10 +5481,11 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
5480
5481
|
* @param {number} [n] The number of objects to return.
|
|
5481
5482
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
5482
5483
|
* @param {GroupSearchSort} [sort] The sort order of Group Member results
|
|
5484
|
+
* @param {string} [roleId] Only returns members with a specific groupRoleId
|
|
5483
5485
|
* @param {*} [options] Override http request option.
|
|
5484
5486
|
* @throws {RequiredError}
|
|
5485
5487
|
*/
|
|
5486
|
-
getGroupMembers: function (groupId, n, offset, sort, options) {
|
|
5488
|
+
getGroupMembers: function (groupId, n, offset, sort, roleId, options) {
|
|
5487
5489
|
if (options === void 0) { options = {}; }
|
|
5488
5490
|
return __awaiter(_this, void 0, void 0, function () {
|
|
5489
5491
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -5509,6 +5511,9 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
5509
5511
|
if (sort !== undefined) {
|
|
5510
5512
|
localVarQueryParameter['sort'] = sort;
|
|
5511
5513
|
}
|
|
5514
|
+
if (roleId !== undefined) {
|
|
5515
|
+
localVarQueryParameter['roleId'] = roleId;
|
|
5516
|
+
}
|
|
5512
5517
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5513
5518
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5514
5519
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6699,15 +6704,16 @@ var GroupsApiFp = function (configuration) {
|
|
|
6699
6704
|
* @param {number} [n] The number of objects to return.
|
|
6700
6705
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
6701
6706
|
* @param {GroupSearchSort} [sort] The sort order of Group Member results
|
|
6707
|
+
* @param {string} [roleId] Only returns members with a specific groupRoleId
|
|
6702
6708
|
* @param {*} [options] Override http request option.
|
|
6703
6709
|
* @throws {RequiredError}
|
|
6704
6710
|
*/
|
|
6705
|
-
getGroupMembers: function (groupId, n, offset, sort, options) {
|
|
6711
|
+
getGroupMembers: function (groupId, n, offset, sort, roleId, options) {
|
|
6706
6712
|
return __awaiter(this, void 0, void 0, function () {
|
|
6707
6713
|
var localVarAxiosArgs;
|
|
6708
6714
|
return __generator(this, function (_a) {
|
|
6709
6715
|
switch (_a.label) {
|
|
6710
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGroupMembers(groupId, n, offset, sort, options)];
|
|
6716
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGroupMembers(groupId, n, offset, sort, roleId, options)];
|
|
6711
6717
|
case 1:
|
|
6712
6718
|
localVarAxiosArgs = _a.sent();
|
|
6713
6719
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -7355,11 +7361,12 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
|
|
|
7355
7361
|
* @param {number} [n] The number of objects to return.
|
|
7356
7362
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
7357
7363
|
* @param {GroupSearchSort} [sort] The sort order of Group Member results
|
|
7364
|
+
* @param {string} [roleId] Only returns members with a specific groupRoleId
|
|
7358
7365
|
* @param {*} [options] Override http request option.
|
|
7359
7366
|
* @throws {RequiredError}
|
|
7360
7367
|
*/
|
|
7361
|
-
getGroupMembers: function (groupId, n, offset, sort, options) {
|
|
7362
|
-
return localVarFp.getGroupMembers(groupId, n, offset, sort, options).then(function (request) { return request(axios, basePath); });
|
|
7368
|
+
getGroupMembers: function (groupId, n, offset, sort, roleId, options) {
|
|
7369
|
+
return localVarFp.getGroupMembers(groupId, n, offset, sort, roleId, options).then(function (request) { return request(axios, basePath); });
|
|
7363
7370
|
},
|
|
7364
7371
|
/**
|
|
7365
7372
|
* Returns a List of all possible/available permissions for a Group.
|
|
@@ -7895,13 +7902,14 @@ var GroupsApi = /** @class */ (function (_super) {
|
|
|
7895
7902
|
* @param {number} [n] The number of objects to return.
|
|
7896
7903
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
7897
7904
|
* @param {GroupSearchSort} [sort] The sort order of Group Member results
|
|
7905
|
+
* @param {string} [roleId] Only returns members with a specific groupRoleId
|
|
7898
7906
|
* @param {*} [options] Override http request option.
|
|
7899
7907
|
* @throws {RequiredError}
|
|
7900
7908
|
* @memberof GroupsApi
|
|
7901
7909
|
*/
|
|
7902
|
-
GroupsApi.prototype.getGroupMembers = function (groupId, n, offset, sort, options) {
|
|
7910
|
+
GroupsApi.prototype.getGroupMembers = function (groupId, n, offset, sort, roleId, options) {
|
|
7903
7911
|
var _this = this;
|
|
7904
|
-
return (0, exports.GroupsApiFp)(this.configuration).getGroupMembers(groupId, n, offset, sort, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7912
|
+
return (0, exports.GroupsApiFp)(this.configuration).getGroupMembers(groupId, n, offset, sort, roleId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7905
7913
|
};
|
|
7906
7914
|
/**
|
|
7907
7915
|
* Returns a List of all possible/available permissions for a Group.
|
|
@@ -12224,10 +12232,11 @@ var WorldsApiAxiosParamCreator = function (configuration) {
|
|
|
12224
12232
|
* @param {string} [maxUnityVersion] The maximum Unity version supported by the asset.
|
|
12225
12233
|
* @param {string} [minUnityVersion] The minimum Unity version supported by the asset.
|
|
12226
12234
|
* @param {string} [platform] The platform the asset supports.
|
|
12235
|
+
* @param {boolean} [fuzzy]
|
|
12227
12236
|
* @param {*} [options] Override http request option.
|
|
12228
12237
|
* @throws {RequiredError}
|
|
12229
12238
|
*/
|
|
12230
|
-
searchWorlds: function (featured, sort, user, userId, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, options) {
|
|
12239
|
+
searchWorlds: function (featured, sort, user, userId, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, fuzzy, options) {
|
|
12231
12240
|
if (options === void 0) { options = {}; }
|
|
12232
12241
|
return __awaiter(_this, void 0, void 0, function () {
|
|
12233
12242
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -12283,6 +12292,9 @@ var WorldsApiAxiosParamCreator = function (configuration) {
|
|
|
12283
12292
|
if (platform !== undefined) {
|
|
12284
12293
|
localVarQueryParameter['platform'] = platform;
|
|
12285
12294
|
}
|
|
12295
|
+
if (fuzzy !== undefined) {
|
|
12296
|
+
localVarQueryParameter['fuzzy'] = fuzzy;
|
|
12297
|
+
}
|
|
12286
12298
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12287
12299
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12288
12300
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -12628,15 +12640,16 @@ var WorldsApiFp = function (configuration) {
|
|
|
12628
12640
|
* @param {string} [maxUnityVersion] The maximum Unity version supported by the asset.
|
|
12629
12641
|
* @param {string} [minUnityVersion] The minimum Unity version supported by the asset.
|
|
12630
12642
|
* @param {string} [platform] The platform the asset supports.
|
|
12643
|
+
* @param {boolean} [fuzzy]
|
|
12631
12644
|
* @param {*} [options] Override http request option.
|
|
12632
12645
|
* @throws {RequiredError}
|
|
12633
12646
|
*/
|
|
12634
|
-
searchWorlds: function (featured, sort, user, userId, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, options) {
|
|
12647
|
+
searchWorlds: function (featured, sort, user, userId, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, fuzzy, options) {
|
|
12635
12648
|
return __awaiter(this, void 0, void 0, function () {
|
|
12636
12649
|
var localVarAxiosArgs;
|
|
12637
12650
|
return __generator(this, function (_a) {
|
|
12638
12651
|
switch (_a.label) {
|
|
12639
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.searchWorlds(featured, sort, user, userId, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, options)];
|
|
12652
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.searchWorlds(featured, sort, user, userId, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, fuzzy, options)];
|
|
12640
12653
|
case 1:
|
|
12641
12654
|
localVarAxiosArgs = _a.sent();
|
|
12642
12655
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -12849,11 +12862,12 @@ var WorldsApiFactory = function (configuration, basePath, axios) {
|
|
|
12849
12862
|
* @param {string} [maxUnityVersion] The maximum Unity version supported by the asset.
|
|
12850
12863
|
* @param {string} [minUnityVersion] The minimum Unity version supported by the asset.
|
|
12851
12864
|
* @param {string} [platform] The platform the asset supports.
|
|
12865
|
+
* @param {boolean} [fuzzy]
|
|
12852
12866
|
* @param {*} [options] Override http request option.
|
|
12853
12867
|
* @throws {RequiredError}
|
|
12854
12868
|
*/
|
|
12855
|
-
searchWorlds: function (featured, sort, user, userId, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, options) {
|
|
12856
|
-
return localVarFp.searchWorlds(featured, sort, user, userId, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, options).then(function (request) { return request(axios, basePath); });
|
|
12869
|
+
searchWorlds: function (featured, sort, user, userId, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, fuzzy, options) {
|
|
12870
|
+
return localVarFp.searchWorlds(featured, sort, user, userId, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, fuzzy, options).then(function (request) { return request(axios, basePath); });
|
|
12857
12871
|
},
|
|
12858
12872
|
/**
|
|
12859
12873
|
* Unpublish a world.
|
|
@@ -13064,13 +13078,14 @@ var WorldsApi = /** @class */ (function (_super) {
|
|
|
13064
13078
|
* @param {string} [maxUnityVersion] The maximum Unity version supported by the asset.
|
|
13065
13079
|
* @param {string} [minUnityVersion] The minimum Unity version supported by the asset.
|
|
13066
13080
|
* @param {string} [platform] The platform the asset supports.
|
|
13081
|
+
* @param {boolean} [fuzzy]
|
|
13067
13082
|
* @param {*} [options] Override http request option.
|
|
13068
13083
|
* @throws {RequiredError}
|
|
13069
13084
|
* @memberof WorldsApi
|
|
13070
13085
|
*/
|
|
13071
|
-
WorldsApi.prototype.searchWorlds = function (featured, sort, user, userId, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, options) {
|
|
13086
|
+
WorldsApi.prototype.searchWorlds = function (featured, sort, user, userId, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, fuzzy, options) {
|
|
13072
13087
|
var _this = this;
|
|
13073
|
-
return (0, exports.WorldsApiFp)(this.configuration).searchWorlds(featured, sort, user, userId, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13088
|
+
return (0, exports.WorldsApiFp)(this.configuration).searchWorlds(featured, sort, user, userId, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, fuzzy, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13074
13089
|
};
|
|
13075
13090
|
/**
|
|
13076
13091
|
* Unpublish a world.
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* VRChat API Documentation
|
|
3
3
|
*
|
|
4
|
-
* The version of the OpenAPI document: 1.18.
|
|
4
|
+
* The version of the OpenAPI document: 1.18.3
|
|
5
5
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* VRChat API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.18.
|
|
7
|
+
* The version of the OpenAPI document: 1.18.3
|
|
8
8
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* VRChat API Documentation
|
|
3
3
|
*
|
|
4
|
-
* The version of the OpenAPI document: 1.18.
|
|
4
|
+
* The version of the OpenAPI document: 1.18.3
|
|
5
5
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* VRChat API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.18.
|
|
7
|
+
* The version of the OpenAPI document: 1.18.3
|
|
8
8
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* VRChat API Documentation
|
|
3
3
|
*
|
|
4
|
-
* The version of the OpenAPI document: 1.18.
|
|
4
|
+
* The version of the OpenAPI document: 1.18.3
|
|
5
5
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* VRChat API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.18.
|
|
7
|
+
* The version of the OpenAPI document: 1.18.3
|
|
8
8
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* VRChat API Documentation
|
|
3
3
|
*
|
|
4
|
-
* The version of the OpenAPI document: 1.18.
|
|
4
|
+
* The version of the OpenAPI document: 1.18.3
|
|
5
5
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* VRChat API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.18.
|
|
7
|
+
* The version of the OpenAPI document: 1.18.3
|
|
8
8
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/example.js
CHANGED
|
@@ -1,22 +1,45 @@
|
|
|
1
1
|
const vrchat = require("vrchat");
|
|
2
|
+
const readline = require("readline")
|
|
3
|
+
|
|
4
|
+
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
|
|
5
|
+
const prompt = (query) => new Promise((resolve) => rl.question(query, resolve));
|
|
6
|
+
|
|
7
|
+
|
|
2
8
|
const configuration = new vrchat.Configuration({
|
|
3
9
|
username: "username",
|
|
4
10
|
password: "password"
|
|
5
11
|
});
|
|
6
12
|
|
|
13
|
+
const options = { headers: { "User-Agent": "ExampleProgram/0.0.1 my@email.com"}};
|
|
7
14
|
const AuthenticationApi = new vrchat.AuthenticationApi(configuration);
|
|
8
15
|
const UsersApi = new vrchat.UsersApi(configuration);
|
|
9
16
|
const SystemApi = new vrchat.SystemApi(configuration);
|
|
10
17
|
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
AuthenticationApi.getCurrentUser(options).then(async resp => {
|
|
19
|
+
var currentUser = resp.data;
|
|
20
|
+
|
|
21
|
+
if (currentUser["requiresTwoFactorAuth"] && currentUser["requiresTwoFactorAuth"][0] === "emailOtp") {
|
|
22
|
+
await AuthenticationApi.verify2FAEmailCode({ code: await prompt("email Code\n") }, options)
|
|
23
|
+
currentUser = (await AuthenticationApi.getCurrentUser(options)).data;
|
|
24
|
+
}
|
|
25
|
+
if (currentUser["requiresTwoFactorAuth"] && currentUser["requiresTwoFactorAuth"][0] === "totp") {
|
|
26
|
+
await AuthenticationApi.verify2FA({ code: await prompt("2fa Code\n") }, options)
|
|
27
|
+
currentUser = (await AuthenticationApi.getCurrentUser(options)).data;
|
|
28
|
+
}
|
|
13
29
|
|
|
14
|
-
|
|
15
|
-
AuthenticationApi.getCurrentUser().then(resp => {
|
|
16
|
-
console.log(`Logged in as: ${resp.data.displayName}`);
|
|
30
|
+
console.log(`Logged in as: ${currentUser.displayName}`);
|
|
17
31
|
|
|
18
|
-
|
|
19
|
-
|
|
32
|
+
SystemApi.getCurrentOnlineUsers(options).then(resp => {
|
|
33
|
+
console.log(`Current Online Users: ${resp.data}`);
|
|
34
|
+
|
|
35
|
+
// Calling getCurrentUser on Authentication API logs you in if the user isn't already logged in.
|
|
36
|
+
AuthenticationApi.getCurrentUser(options).then(resp => {
|
|
37
|
+
console.log(`Logged in as: ${resp.data.displayName}`);
|
|
38
|
+
|
|
39
|
+
UsersApi.getUser("usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469", options).then(resp => {
|
|
40
|
+
console.log(resp.data.displayName); // Should print out "tupper"
|
|
41
|
+
});
|
|
20
42
|
});
|
|
21
43
|
});
|
|
22
|
-
});
|
|
44
|
+
});
|
|
45
|
+
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* VRChat API Documentation
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 1.18.
|
|
6
|
+
* The version of the OpenAPI document: 1.18.3
|
|
7
7
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|