vrchat 1.16.7 → 1.17.0
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 +356 -134
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +274 -133
- package/dist/api.js +204 -64
- 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.17.0
|
|
8
8
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -74,8 +74,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
77
|
-
exports.
|
|
78
|
-
exports.WorldsApi = exports.WorldsApiFactory = exports.WorldsApiFp = exports.WorldsApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.PlayermoderationApi = exports.PlayermoderationApiFactory = exports.PlayermoderationApiFp = exports.PlayermoderationApiAxiosParamCreator = exports.PermissionsApi = exports.PermissionsApiFactory = exports.PermissionsApiFp = exports.PermissionsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.InviteApi = exports.InviteApiFactory = exports.InviteApiFp = exports.InviteApiAxiosParamCreator = exports.InstancesApi = exports.InstancesApiFactory = exports.InstancesApiFp = exports.InstancesApiAxiosParamCreator = exports.GroupsApi = exports.GroupsApiFactory = exports.GroupsApiFp = exports.GroupsApiAxiosParamCreator = exports.FriendsApi = exports.FriendsApiFactory = void 0;
|
|
77
|
+
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.SortOption = exports.ReleaseStatus = exports.Region = exports.PlayerModerationType = exports.OrderOption = exports.NotificationType = exports.MIMEType = exports.LicenseType = exports.LicenseAction = exports.InviteMessageType = exports.InstanceType = exports.InfoPushDataClickableCommandEnum = exports.GroupUserVisibility = exports.GroupSearchSort = exports.GroupRoleTemplate = exports.GroupPrivacy = exports.GroupMemberStatus = exports.GroupJoinState = exports.GroupJoinRequestAction = exports.GroupAccessType = exports.FileStatus = exports.FileDataCategoryEnum = exports.FavoriteType = exports.FavoriteGroupVisibility = exports.DeveloperType = exports.DeploymentGroup = void 0;
|
|
78
|
+
exports.WorldsApi = exports.WorldsApiFactory = exports.WorldsApiFp = exports.WorldsApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.PlayermoderationApi = exports.PlayermoderationApiFactory = exports.PlayermoderationApiFp = exports.PlayermoderationApiAxiosParamCreator = exports.PermissionsApi = exports.PermissionsApiFactory = exports.PermissionsApiFp = exports.PermissionsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.InviteApi = exports.InviteApiFactory = exports.InviteApiFp = exports.InviteApiAxiosParamCreator = exports.InstancesApi = exports.InstancesApiFactory = exports.InstancesApiFp = exports.InstancesApiAxiosParamCreator = exports.GroupsApi = exports.GroupsApiFactory = exports.GroupsApiFp = exports.GroupsApiAxiosParamCreator = exports.FriendsApi = exports.FriendsApiFactory = exports.FriendsApiFp = exports.FriendsApiAxiosParamCreator = void 0;
|
|
79
79
|
var axios_1 = require("axios");
|
|
80
80
|
// Some imports not used depending on template conditions
|
|
81
81
|
// @ts-ignore
|
|
@@ -145,6 +145,25 @@ exports.FileStatus = {
|
|
|
145
145
|
None: 'none',
|
|
146
146
|
Queued: 'queued'
|
|
147
147
|
};
|
|
148
|
+
/**
|
|
149
|
+
* Group access type when the instance type is \"group\"
|
|
150
|
+
* @export
|
|
151
|
+
* @enum {string}
|
|
152
|
+
*/
|
|
153
|
+
exports.GroupAccessType = {
|
|
154
|
+
Public: 'public',
|
|
155
|
+
Plus: 'plus',
|
|
156
|
+
Member: 'member'
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @export
|
|
161
|
+
* @enum {string}
|
|
162
|
+
*/
|
|
163
|
+
exports.GroupJoinRequestAction = {
|
|
164
|
+
Accept: 'accept',
|
|
165
|
+
Reject: 'reject'
|
|
166
|
+
};
|
|
148
167
|
/**
|
|
149
168
|
*
|
|
150
169
|
* @export
|
|
@@ -165,7 +184,8 @@ exports.GroupMemberStatus = {
|
|
|
165
184
|
Inactive: 'inactive',
|
|
166
185
|
Member: 'member',
|
|
167
186
|
Requested: 'requested',
|
|
168
|
-
Invited: 'invited'
|
|
187
|
+
Invited: 'invited',
|
|
188
|
+
Banned: 'banned'
|
|
169
189
|
};
|
|
170
190
|
/**
|
|
171
191
|
*
|
|
@@ -559,7 +579,7 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
559
579
|
/**
|
|
560
580
|
* Finishes the login sequence with a normal 2FA-generated code for accounts with 2FA-protection enabled.
|
|
561
581
|
* @summary Verify 2FA code
|
|
562
|
-
* @param {TwoFactorAuthCode}
|
|
582
|
+
* @param {TwoFactorAuthCode} twoFactorAuthCode
|
|
563
583
|
* @param {*} [options] Override http request option.
|
|
564
584
|
* @throws {RequiredError}
|
|
565
585
|
*/
|
|
@@ -568,6 +588,8 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
568
588
|
return __awaiter(_this, void 0, void 0, function () {
|
|
569
589
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
570
590
|
return __generator(this, function (_a) {
|
|
591
|
+
// verify required parameter 'twoFactorAuthCode' is not null or undefined
|
|
592
|
+
(0, common_1.assertParamExists)('verify2FA', 'twoFactorAuthCode', twoFactorAuthCode);
|
|
571
593
|
localVarPath = "/auth/twofactorauth/totp/verify";
|
|
572
594
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
573
595
|
if (configuration) {
|
|
@@ -592,7 +614,7 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
592
614
|
/**
|
|
593
615
|
* Finishes the login sequence with an 2FA email code.
|
|
594
616
|
* @summary Verify 2FA email code
|
|
595
|
-
* @param {TwoFactorEmailCode}
|
|
617
|
+
* @param {TwoFactorEmailCode} twoFactorEmailCode
|
|
596
618
|
* @param {*} [options] Override http request option.
|
|
597
619
|
* @throws {RequiredError}
|
|
598
620
|
*/
|
|
@@ -601,6 +623,8 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
601
623
|
return __awaiter(_this, void 0, void 0, function () {
|
|
602
624
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
603
625
|
return __generator(this, function (_a) {
|
|
626
|
+
// verify required parameter 'twoFactorEmailCode' is not null or undefined
|
|
627
|
+
(0, common_1.assertParamExists)('verify2FAEmailCode', 'twoFactorEmailCode', twoFactorEmailCode);
|
|
604
628
|
localVarPath = "/auth/twofactorauth/emailotp/verify";
|
|
605
629
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
606
630
|
if (configuration) {
|
|
@@ -655,7 +679,7 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
655
679
|
/**
|
|
656
680
|
* Finishes the login sequence with an OTP (One Time Password) recovery code for accounts with 2FA-protection enabled.
|
|
657
681
|
* @summary Verify 2FA code with Recovery code
|
|
658
|
-
* @param {TwoFactorAuthCode}
|
|
682
|
+
* @param {TwoFactorAuthCode} twoFactorAuthCode
|
|
659
683
|
* @param {*} [options] Override http request option.
|
|
660
684
|
* @throws {RequiredError}
|
|
661
685
|
*/
|
|
@@ -664,6 +688,8 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
664
688
|
return __awaiter(_this, void 0, void 0, function () {
|
|
665
689
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
666
690
|
return __generator(this, function (_a) {
|
|
691
|
+
// verify required parameter 'twoFactorAuthCode' is not null or undefined
|
|
692
|
+
(0, common_1.assertParamExists)('verifyRecoveryCode', 'twoFactorAuthCode', twoFactorAuthCode);
|
|
667
693
|
localVarPath = "/auth/twofactorauth/otp/verify";
|
|
668
694
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
669
695
|
if (configuration) {
|
|
@@ -779,7 +805,7 @@ var AuthenticationApiFp = function (configuration) {
|
|
|
779
805
|
/**
|
|
780
806
|
* Finishes the login sequence with a normal 2FA-generated code for accounts with 2FA-protection enabled.
|
|
781
807
|
* @summary Verify 2FA code
|
|
782
|
-
* @param {TwoFactorAuthCode}
|
|
808
|
+
* @param {TwoFactorAuthCode} twoFactorAuthCode
|
|
783
809
|
* @param {*} [options] Override http request option.
|
|
784
810
|
* @throws {RequiredError}
|
|
785
811
|
*/
|
|
@@ -799,7 +825,7 @@ var AuthenticationApiFp = function (configuration) {
|
|
|
799
825
|
/**
|
|
800
826
|
* Finishes the login sequence with an 2FA email code.
|
|
801
827
|
* @summary Verify 2FA email code
|
|
802
|
-
* @param {TwoFactorEmailCode}
|
|
828
|
+
* @param {TwoFactorEmailCode} twoFactorEmailCode
|
|
803
829
|
* @param {*} [options] Override http request option.
|
|
804
830
|
* @throws {RequiredError}
|
|
805
831
|
*/
|
|
@@ -838,7 +864,7 @@ var AuthenticationApiFp = function (configuration) {
|
|
|
838
864
|
/**
|
|
839
865
|
* Finishes the login sequence with an OTP (One Time Password) recovery code for accounts with 2FA-protection enabled.
|
|
840
866
|
* @summary Verify 2FA code with Recovery code
|
|
841
|
-
* @param {TwoFactorAuthCode}
|
|
867
|
+
* @param {TwoFactorAuthCode} twoFactorAuthCode
|
|
842
868
|
* @param {*} [options] Override http request option.
|
|
843
869
|
* @throws {RequiredError}
|
|
844
870
|
*/
|
|
@@ -909,7 +935,7 @@ var AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
909
935
|
/**
|
|
910
936
|
* Finishes the login sequence with a normal 2FA-generated code for accounts with 2FA-protection enabled.
|
|
911
937
|
* @summary Verify 2FA code
|
|
912
|
-
* @param {TwoFactorAuthCode}
|
|
938
|
+
* @param {TwoFactorAuthCode} twoFactorAuthCode
|
|
913
939
|
* @param {*} [options] Override http request option.
|
|
914
940
|
* @throws {RequiredError}
|
|
915
941
|
*/
|
|
@@ -919,7 +945,7 @@ var AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
919
945
|
/**
|
|
920
946
|
* Finishes the login sequence with an 2FA email code.
|
|
921
947
|
* @summary Verify 2FA email code
|
|
922
|
-
* @param {TwoFactorEmailCode}
|
|
948
|
+
* @param {TwoFactorEmailCode} twoFactorEmailCode
|
|
923
949
|
* @param {*} [options] Override http request option.
|
|
924
950
|
* @throws {RequiredError}
|
|
925
951
|
*/
|
|
@@ -938,7 +964,7 @@ var AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
938
964
|
/**
|
|
939
965
|
* Finishes the login sequence with an OTP (One Time Password) recovery code for accounts with 2FA-protection enabled.
|
|
940
966
|
* @summary Verify 2FA code with Recovery code
|
|
941
|
-
* @param {TwoFactorAuthCode}
|
|
967
|
+
* @param {TwoFactorAuthCode} twoFactorAuthCode
|
|
942
968
|
* @param {*} [options] Override http request option.
|
|
943
969
|
* @throws {RequiredError}
|
|
944
970
|
*/
|
|
@@ -1011,7 +1037,7 @@ var AuthenticationApi = /** @class */ (function (_super) {
|
|
|
1011
1037
|
/**
|
|
1012
1038
|
* Finishes the login sequence with a normal 2FA-generated code for accounts with 2FA-protection enabled.
|
|
1013
1039
|
* @summary Verify 2FA code
|
|
1014
|
-
* @param {TwoFactorAuthCode}
|
|
1040
|
+
* @param {TwoFactorAuthCode} twoFactorAuthCode
|
|
1015
1041
|
* @param {*} [options] Override http request option.
|
|
1016
1042
|
* @throws {RequiredError}
|
|
1017
1043
|
* @memberof AuthenticationApi
|
|
@@ -1023,7 +1049,7 @@ var AuthenticationApi = /** @class */ (function (_super) {
|
|
|
1023
1049
|
/**
|
|
1024
1050
|
* Finishes the login sequence with an 2FA email code.
|
|
1025
1051
|
* @summary Verify 2FA email code
|
|
1026
|
-
* @param {TwoFactorEmailCode}
|
|
1052
|
+
* @param {TwoFactorEmailCode} twoFactorEmailCode
|
|
1027
1053
|
* @param {*} [options] Override http request option.
|
|
1028
1054
|
* @throws {RequiredError}
|
|
1029
1055
|
* @memberof AuthenticationApi
|
|
@@ -1046,7 +1072,7 @@ var AuthenticationApi = /** @class */ (function (_super) {
|
|
|
1046
1072
|
/**
|
|
1047
1073
|
* Finishes the login sequence with an OTP (One Time Password) recovery code for accounts with 2FA-protection enabled.
|
|
1048
1074
|
* @summary Verify 2FA code with Recovery code
|
|
1049
|
-
* @param {TwoFactorAuthCode}
|
|
1075
|
+
* @param {TwoFactorAuthCode} twoFactorAuthCode
|
|
1050
1076
|
* @param {*} [options] Override http request option.
|
|
1051
1077
|
* @throws {RequiredError}
|
|
1052
1078
|
* @memberof AuthenticationApi
|
|
@@ -4449,7 +4475,7 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
4449
4475
|
* @summary Add Group Gallery Image
|
|
4450
4476
|
* @param {string} groupId Must be a valid group ID.
|
|
4451
4477
|
* @param {string} groupGalleryId Must be a valid group gallery ID.
|
|
4452
|
-
* @param {AddGroupGalleryImageRequest}
|
|
4478
|
+
* @param {AddGroupGalleryImageRequest} addGroupGalleryImageRequest
|
|
4453
4479
|
* @param {*} [options] Override http request option.
|
|
4454
4480
|
* @throws {RequiredError}
|
|
4455
4481
|
*/
|
|
@@ -4462,6 +4488,8 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
4462
4488
|
(0, common_1.assertParamExists)('addGroupGalleryImage', 'groupId', groupId);
|
|
4463
4489
|
// verify required parameter 'groupGalleryId' is not null or undefined
|
|
4464
4490
|
(0, common_1.assertParamExists)('addGroupGalleryImage', 'groupGalleryId', groupGalleryId);
|
|
4491
|
+
// verify required parameter 'addGroupGalleryImageRequest' is not null or undefined
|
|
4492
|
+
(0, common_1.assertParamExists)('addGroupGalleryImage', 'addGroupGalleryImageRequest', addGroupGalleryImageRequest);
|
|
4465
4493
|
localVarPath = "/groups/{groupId}/galleries/{groupGalleryId}/images"
|
|
4466
4494
|
.replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)))
|
|
4467
4495
|
.replace("{".concat("groupGalleryId", "}"), encodeURIComponent(String(groupGalleryId)));
|
|
@@ -4531,7 +4559,7 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
4531
4559
|
* Bans a user from a Group.
|
|
4532
4560
|
* @summary Ban Group Member
|
|
4533
4561
|
* @param {string} groupId Must be a valid group ID.
|
|
4534
|
-
* @param {BanGroupMemberRequest}
|
|
4562
|
+
* @param {BanGroupMemberRequest} banGroupMemberRequest
|
|
4535
4563
|
* @param {*} [options] Override http request option.
|
|
4536
4564
|
* @throws {RequiredError}
|
|
4537
4565
|
*/
|
|
@@ -4542,6 +4570,8 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
4542
4570
|
return __generator(this, function (_a) {
|
|
4543
4571
|
// verify required parameter 'groupId' is not null or undefined
|
|
4544
4572
|
(0, common_1.assertParamExists)('banGroupMember', 'groupId', groupId);
|
|
4573
|
+
// verify required parameter 'banGroupMemberRequest' is not null or undefined
|
|
4574
|
+
(0, common_1.assertParamExists)('banGroupMember', 'banGroupMemberRequest', banGroupMemberRequest);
|
|
4545
4575
|
localVarPath = "/groups/{groupId}/bans"
|
|
4546
4576
|
.replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)));
|
|
4547
4577
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4601,7 +4631,7 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
4601
4631
|
/**
|
|
4602
4632
|
* Creates a Group and returns a Group object. **Requires VRC+ Subscription.**
|
|
4603
4633
|
* @summary Create Group
|
|
4604
|
-
* @param {CreateGroupRequest}
|
|
4634
|
+
* @param {CreateGroupRequest} createGroupRequest
|
|
4605
4635
|
* @param {*} [options] Override http request option.
|
|
4606
4636
|
* @throws {RequiredError}
|
|
4607
4637
|
*/
|
|
@@ -4610,6 +4640,8 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
4610
4640
|
return __awaiter(_this, void 0, void 0, function () {
|
|
4611
4641
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
4612
4642
|
return __generator(this, function (_a) {
|
|
4643
|
+
// verify required parameter 'createGroupRequest' is not null or undefined
|
|
4644
|
+
(0, common_1.assertParamExists)('createGroup', 'createGroupRequest', createGroupRequest);
|
|
4613
4645
|
localVarPath = "/groups";
|
|
4614
4646
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4615
4647
|
if (configuration) {
|
|
@@ -4635,7 +4667,7 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
4635
4667
|
* Creates an Announcement for a Group.
|
|
4636
4668
|
* @summary Create Group Announcement
|
|
4637
4669
|
* @param {string} groupId Must be a valid group ID.
|
|
4638
|
-
* @param {CreateGroupAnnouncementRequest}
|
|
4670
|
+
* @param {CreateGroupAnnouncementRequest} createGroupAnnouncementRequest
|
|
4639
4671
|
* @param {*} [options] Override http request option.
|
|
4640
4672
|
* @throws {RequiredError}
|
|
4641
4673
|
*/
|
|
@@ -4646,6 +4678,8 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
4646
4678
|
return __generator(this, function (_a) {
|
|
4647
4679
|
// verify required parameter 'groupId' is not null or undefined
|
|
4648
4680
|
(0, common_1.assertParamExists)('createGroupAnnouncement', 'groupId', groupId);
|
|
4681
|
+
// verify required parameter 'createGroupAnnouncementRequest' is not null or undefined
|
|
4682
|
+
(0, common_1.assertParamExists)('createGroupAnnouncement', 'createGroupAnnouncementRequest', createGroupAnnouncementRequest);
|
|
4649
4683
|
localVarPath = "/groups/{groupId}/announcement"
|
|
4650
4684
|
.replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)));
|
|
4651
4685
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4672,7 +4706,7 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
4672
4706
|
* Creates a gallery for a Group.
|
|
4673
4707
|
* @summary Create Group Gallery
|
|
4674
4708
|
* @param {string} groupId Must be a valid group ID.
|
|
4675
|
-
* @param {CreateGroupGalleryRequest}
|
|
4709
|
+
* @param {CreateGroupGalleryRequest} createGroupGalleryRequest
|
|
4676
4710
|
* @param {*} [options] Override http request option.
|
|
4677
4711
|
* @throws {RequiredError}
|
|
4678
4712
|
*/
|
|
@@ -4683,6 +4717,8 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
4683
4717
|
return __generator(this, function (_a) {
|
|
4684
4718
|
// verify required parameter 'groupId' is not null or undefined
|
|
4685
4719
|
(0, common_1.assertParamExists)('createGroupGallery', 'groupId', groupId);
|
|
4720
|
+
// verify required parameter 'createGroupGalleryRequest' is not null or undefined
|
|
4721
|
+
(0, common_1.assertParamExists)('createGroupGallery', 'createGroupGalleryRequest', createGroupGalleryRequest);
|
|
4686
4722
|
localVarPath = "/groups/{groupId}/galleries"
|
|
4687
4723
|
.replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)));
|
|
4688
4724
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4709,7 +4745,7 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
4709
4745
|
* Sends an invite to a user to join the group.
|
|
4710
4746
|
* @summary Invite User to Group
|
|
4711
4747
|
* @param {string} groupId Must be a valid group ID.
|
|
4712
|
-
* @param {CreateGroupInviteRequest}
|
|
4748
|
+
* @param {CreateGroupInviteRequest} createGroupInviteRequest
|
|
4713
4749
|
* @param {*} [options] Override http request option.
|
|
4714
4750
|
* @throws {RequiredError}
|
|
4715
4751
|
*/
|
|
@@ -4720,6 +4756,8 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
4720
4756
|
return __generator(this, function (_a) {
|
|
4721
4757
|
// verify required parameter 'groupId' is not null or undefined
|
|
4722
4758
|
(0, common_1.assertParamExists)('createGroupInvite', 'groupId', groupId);
|
|
4759
|
+
// verify required parameter 'createGroupInviteRequest' is not null or undefined
|
|
4760
|
+
(0, common_1.assertParamExists)('createGroupInvite', 'createGroupInviteRequest', createGroupInviteRequest);
|
|
4723
4761
|
localVarPath = "/groups/{groupId}/invites"
|
|
4724
4762
|
.replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)));
|
|
4725
4763
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -4746,7 +4784,7 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
4746
4784
|
* Create a Group role.
|
|
4747
4785
|
* @summary Create GroupRole
|
|
4748
4786
|
* @param {string} groupId Must be a valid group ID.
|
|
4749
|
-
* @param {CreateGroupRoleRequest}
|
|
4787
|
+
* @param {CreateGroupRoleRequest} createGroupRoleRequest
|
|
4750
4788
|
* @param {*} [options] Override http request option.
|
|
4751
4789
|
* @throws {RequiredError}
|
|
4752
4790
|
*/
|
|
@@ -4757,6 +4795,8 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
4757
4795
|
return __generator(this, function (_a) {
|
|
4758
4796
|
// verify required parameter 'groupId' is not null or undefined
|
|
4759
4797
|
(0, common_1.assertParamExists)('createGroupRole', 'groupId', groupId);
|
|
4798
|
+
// verify required parameter 'createGroupRoleRequest' is not null or undefined
|
|
4799
|
+
(0, common_1.assertParamExists)('createGroupRole', 'createGroupRoleRequest', createGroupRoleRequest);
|
|
4760
4800
|
localVarPath = "/groups/{groupId}/roles"
|
|
4761
4801
|
.replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)));
|
|
4762
4802
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5610,7 +5650,7 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
5610
5650
|
* @summary Respond Group Join request
|
|
5611
5651
|
* @param {string} groupId Must be a valid group ID.
|
|
5612
5652
|
* @param {string} userId Must be a valid user ID.
|
|
5613
|
-
* @param {RespondGroupJoinRequest}
|
|
5653
|
+
* @param {RespondGroupJoinRequest} respondGroupJoinRequest
|
|
5614
5654
|
* @param {*} [options] Override http request option.
|
|
5615
5655
|
* @throws {RequiredError}
|
|
5616
5656
|
*/
|
|
@@ -5623,6 +5663,8 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
5623
5663
|
(0, common_1.assertParamExists)('respondGroupJoinRequest', 'groupId', groupId);
|
|
5624
5664
|
// verify required parameter 'userId' is not null or undefined
|
|
5625
5665
|
(0, common_1.assertParamExists)('respondGroupJoinRequest', 'userId', userId);
|
|
5666
|
+
// verify required parameter 'respondGroupJoinRequest' is not null or undefined
|
|
5667
|
+
(0, common_1.assertParamExists)('respondGroupJoinRequest', 'respondGroupJoinRequest', respondGroupJoinRequest);
|
|
5626
5668
|
localVarPath = "/groups/{groupId}/requests/{userId}"
|
|
5627
5669
|
.replace("{".concat("groupId", "}"), encodeURIComponent(String(groupId)))
|
|
5628
5670
|
.replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
|
|
@@ -5900,7 +5942,7 @@ var GroupsApiFp = function (configuration) {
|
|
|
5900
5942
|
* @summary Add Group Gallery Image
|
|
5901
5943
|
* @param {string} groupId Must be a valid group ID.
|
|
5902
5944
|
* @param {string} groupGalleryId Must be a valid group gallery ID.
|
|
5903
|
-
* @param {AddGroupGalleryImageRequest}
|
|
5945
|
+
* @param {AddGroupGalleryImageRequest} addGroupGalleryImageRequest
|
|
5904
5946
|
* @param {*} [options] Override http request option.
|
|
5905
5947
|
* @throws {RequiredError}
|
|
5906
5948
|
*/
|
|
@@ -5943,7 +5985,7 @@ var GroupsApiFp = function (configuration) {
|
|
|
5943
5985
|
* Bans a user from a Group.
|
|
5944
5986
|
* @summary Ban Group Member
|
|
5945
5987
|
* @param {string} groupId Must be a valid group ID.
|
|
5946
|
-
* @param {BanGroupMemberRequest}
|
|
5988
|
+
* @param {BanGroupMemberRequest} banGroupMemberRequest
|
|
5947
5989
|
* @param {*} [options] Override http request option.
|
|
5948
5990
|
* @throws {RequiredError}
|
|
5949
5991
|
*/
|
|
@@ -5983,7 +6025,7 @@ var GroupsApiFp = function (configuration) {
|
|
|
5983
6025
|
/**
|
|
5984
6026
|
* Creates a Group and returns a Group object. **Requires VRC+ Subscription.**
|
|
5985
6027
|
* @summary Create Group
|
|
5986
|
-
* @param {CreateGroupRequest}
|
|
6028
|
+
* @param {CreateGroupRequest} createGroupRequest
|
|
5987
6029
|
* @param {*} [options] Override http request option.
|
|
5988
6030
|
* @throws {RequiredError}
|
|
5989
6031
|
*/
|
|
@@ -6004,7 +6046,7 @@ var GroupsApiFp = function (configuration) {
|
|
|
6004
6046
|
* Creates an Announcement for a Group.
|
|
6005
6047
|
* @summary Create Group Announcement
|
|
6006
6048
|
* @param {string} groupId Must be a valid group ID.
|
|
6007
|
-
* @param {CreateGroupAnnouncementRequest}
|
|
6049
|
+
* @param {CreateGroupAnnouncementRequest} createGroupAnnouncementRequest
|
|
6008
6050
|
* @param {*} [options] Override http request option.
|
|
6009
6051
|
* @throws {RequiredError}
|
|
6010
6052
|
*/
|
|
@@ -6025,7 +6067,7 @@ var GroupsApiFp = function (configuration) {
|
|
|
6025
6067
|
* Creates a gallery for a Group.
|
|
6026
6068
|
* @summary Create Group Gallery
|
|
6027
6069
|
* @param {string} groupId Must be a valid group ID.
|
|
6028
|
-
* @param {CreateGroupGalleryRequest}
|
|
6070
|
+
* @param {CreateGroupGalleryRequest} createGroupGalleryRequest
|
|
6029
6071
|
* @param {*} [options] Override http request option.
|
|
6030
6072
|
* @throws {RequiredError}
|
|
6031
6073
|
*/
|
|
@@ -6046,7 +6088,7 @@ var GroupsApiFp = function (configuration) {
|
|
|
6046
6088
|
* Sends an invite to a user to join the group.
|
|
6047
6089
|
* @summary Invite User to Group
|
|
6048
6090
|
* @param {string} groupId Must be a valid group ID.
|
|
6049
|
-
* @param {CreateGroupInviteRequest}
|
|
6091
|
+
* @param {CreateGroupInviteRequest} createGroupInviteRequest
|
|
6050
6092
|
* @param {*} [options] Override http request option.
|
|
6051
6093
|
* @throws {RequiredError}
|
|
6052
6094
|
*/
|
|
@@ -6067,7 +6109,7 @@ var GroupsApiFp = function (configuration) {
|
|
|
6067
6109
|
* Create a Group role.
|
|
6068
6110
|
* @summary Create GroupRole
|
|
6069
6111
|
* @param {string} groupId Must be a valid group ID.
|
|
6070
|
-
* @param {CreateGroupRoleRequest}
|
|
6112
|
+
* @param {CreateGroupRoleRequest} createGroupRoleRequest
|
|
6071
6113
|
* @param {*} [options] Override http request option.
|
|
6072
6114
|
* @throws {RequiredError}
|
|
6073
6115
|
*/
|
|
@@ -6536,7 +6578,7 @@ var GroupsApiFp = function (configuration) {
|
|
|
6536
6578
|
* @summary Respond Group Join request
|
|
6537
6579
|
* @param {string} groupId Must be a valid group ID.
|
|
6538
6580
|
* @param {string} userId Must be a valid user ID.
|
|
6539
|
-
* @param {RespondGroupJoinRequest}
|
|
6581
|
+
* @param {RespondGroupJoinRequest} respondGroupJoinRequest
|
|
6540
6582
|
* @param {*} [options] Override http request option.
|
|
6541
6583
|
* @throws {RequiredError}
|
|
6542
6584
|
*/
|
|
@@ -6698,7 +6740,7 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
|
|
|
6698
6740
|
* @summary Add Group Gallery Image
|
|
6699
6741
|
* @param {string} groupId Must be a valid group ID.
|
|
6700
6742
|
* @param {string} groupGalleryId Must be a valid group gallery ID.
|
|
6701
|
-
* @param {AddGroupGalleryImageRequest}
|
|
6743
|
+
* @param {AddGroupGalleryImageRequest} addGroupGalleryImageRequest
|
|
6702
6744
|
* @param {*} [options] Override http request option.
|
|
6703
6745
|
* @throws {RequiredError}
|
|
6704
6746
|
*/
|
|
@@ -6721,7 +6763,7 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
|
|
|
6721
6763
|
* Bans a user from a Group.
|
|
6722
6764
|
* @summary Ban Group Member
|
|
6723
6765
|
* @param {string} groupId Must be a valid group ID.
|
|
6724
|
-
* @param {BanGroupMemberRequest}
|
|
6766
|
+
* @param {BanGroupMemberRequest} banGroupMemberRequest
|
|
6725
6767
|
* @param {*} [options] Override http request option.
|
|
6726
6768
|
* @throws {RequiredError}
|
|
6727
6769
|
*/
|
|
@@ -6741,7 +6783,7 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
|
|
|
6741
6783
|
/**
|
|
6742
6784
|
* Creates a Group and returns a Group object. **Requires VRC+ Subscription.**
|
|
6743
6785
|
* @summary Create Group
|
|
6744
|
-
* @param {CreateGroupRequest}
|
|
6786
|
+
* @param {CreateGroupRequest} createGroupRequest
|
|
6745
6787
|
* @param {*} [options] Override http request option.
|
|
6746
6788
|
* @throws {RequiredError}
|
|
6747
6789
|
*/
|
|
@@ -6752,7 +6794,7 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
|
|
|
6752
6794
|
* Creates an Announcement for a Group.
|
|
6753
6795
|
* @summary Create Group Announcement
|
|
6754
6796
|
* @param {string} groupId Must be a valid group ID.
|
|
6755
|
-
* @param {CreateGroupAnnouncementRequest}
|
|
6797
|
+
* @param {CreateGroupAnnouncementRequest} createGroupAnnouncementRequest
|
|
6756
6798
|
* @param {*} [options] Override http request option.
|
|
6757
6799
|
* @throws {RequiredError}
|
|
6758
6800
|
*/
|
|
@@ -6763,7 +6805,7 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
|
|
|
6763
6805
|
* Creates a gallery for a Group.
|
|
6764
6806
|
* @summary Create Group Gallery
|
|
6765
6807
|
* @param {string} groupId Must be a valid group ID.
|
|
6766
|
-
* @param {CreateGroupGalleryRequest}
|
|
6808
|
+
* @param {CreateGroupGalleryRequest} createGroupGalleryRequest
|
|
6767
6809
|
* @param {*} [options] Override http request option.
|
|
6768
6810
|
* @throws {RequiredError}
|
|
6769
6811
|
*/
|
|
@@ -6774,7 +6816,7 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
|
|
|
6774
6816
|
* Sends an invite to a user to join the group.
|
|
6775
6817
|
* @summary Invite User to Group
|
|
6776
6818
|
* @param {string} groupId Must be a valid group ID.
|
|
6777
|
-
* @param {CreateGroupInviteRequest}
|
|
6819
|
+
* @param {CreateGroupInviteRequest} createGroupInviteRequest
|
|
6778
6820
|
* @param {*} [options] Override http request option.
|
|
6779
6821
|
* @throws {RequiredError}
|
|
6780
6822
|
*/
|
|
@@ -6785,7 +6827,7 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
|
|
|
6785
6827
|
* Create a Group role.
|
|
6786
6828
|
* @summary Create GroupRole
|
|
6787
6829
|
* @param {string} groupId Must be a valid group ID.
|
|
6788
|
-
* @param {CreateGroupRoleRequest}
|
|
6830
|
+
* @param {CreateGroupRoleRequest} createGroupRoleRequest
|
|
6789
6831
|
* @param {*} [options] Override http request option.
|
|
6790
6832
|
* @throws {RequiredError}
|
|
6791
6833
|
*/
|
|
@@ -7034,7 +7076,7 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
|
|
|
7034
7076
|
* @summary Respond Group Join request
|
|
7035
7077
|
* @param {string} groupId Must be a valid group ID.
|
|
7036
7078
|
* @param {string} userId Must be a valid user ID.
|
|
7037
|
-
* @param {RespondGroupJoinRequest}
|
|
7079
|
+
* @param {RespondGroupJoinRequest} respondGroupJoinRequest
|
|
7038
7080
|
* @param {*} [options] Override http request option.
|
|
7039
7081
|
* @throws {RequiredError}
|
|
7040
7082
|
*/
|
|
@@ -7130,7 +7172,7 @@ var GroupsApi = /** @class */ (function (_super) {
|
|
|
7130
7172
|
* @summary Add Group Gallery Image
|
|
7131
7173
|
* @param {string} groupId Must be a valid group ID.
|
|
7132
7174
|
* @param {string} groupGalleryId Must be a valid group gallery ID.
|
|
7133
|
-
* @param {AddGroupGalleryImageRequest}
|
|
7175
|
+
* @param {AddGroupGalleryImageRequest} addGroupGalleryImageRequest
|
|
7134
7176
|
* @param {*} [options] Override http request option.
|
|
7135
7177
|
* @throws {RequiredError}
|
|
7136
7178
|
* @memberof GroupsApi
|
|
@@ -7157,7 +7199,7 @@ var GroupsApi = /** @class */ (function (_super) {
|
|
|
7157
7199
|
* Bans a user from a Group.
|
|
7158
7200
|
* @summary Ban Group Member
|
|
7159
7201
|
* @param {string} groupId Must be a valid group ID.
|
|
7160
|
-
* @param {BanGroupMemberRequest}
|
|
7202
|
+
* @param {BanGroupMemberRequest} banGroupMemberRequest
|
|
7161
7203
|
* @param {*} [options] Override http request option.
|
|
7162
7204
|
* @throws {RequiredError}
|
|
7163
7205
|
* @memberof GroupsApi
|
|
@@ -7181,7 +7223,7 @@ var GroupsApi = /** @class */ (function (_super) {
|
|
|
7181
7223
|
/**
|
|
7182
7224
|
* Creates a Group and returns a Group object. **Requires VRC+ Subscription.**
|
|
7183
7225
|
* @summary Create Group
|
|
7184
|
-
* @param {CreateGroupRequest}
|
|
7226
|
+
* @param {CreateGroupRequest} createGroupRequest
|
|
7185
7227
|
* @param {*} [options] Override http request option.
|
|
7186
7228
|
* @throws {RequiredError}
|
|
7187
7229
|
* @memberof GroupsApi
|
|
@@ -7194,7 +7236,7 @@ var GroupsApi = /** @class */ (function (_super) {
|
|
|
7194
7236
|
* Creates an Announcement for a Group.
|
|
7195
7237
|
* @summary Create Group Announcement
|
|
7196
7238
|
* @param {string} groupId Must be a valid group ID.
|
|
7197
|
-
* @param {CreateGroupAnnouncementRequest}
|
|
7239
|
+
* @param {CreateGroupAnnouncementRequest} createGroupAnnouncementRequest
|
|
7198
7240
|
* @param {*} [options] Override http request option.
|
|
7199
7241
|
* @throws {RequiredError}
|
|
7200
7242
|
* @memberof GroupsApi
|
|
@@ -7207,7 +7249,7 @@ var GroupsApi = /** @class */ (function (_super) {
|
|
|
7207
7249
|
* Creates a gallery for a Group.
|
|
7208
7250
|
* @summary Create Group Gallery
|
|
7209
7251
|
* @param {string} groupId Must be a valid group ID.
|
|
7210
|
-
* @param {CreateGroupGalleryRequest}
|
|
7252
|
+
* @param {CreateGroupGalleryRequest} createGroupGalleryRequest
|
|
7211
7253
|
* @param {*} [options] Override http request option.
|
|
7212
7254
|
* @throws {RequiredError}
|
|
7213
7255
|
* @memberof GroupsApi
|
|
@@ -7220,7 +7262,7 @@ var GroupsApi = /** @class */ (function (_super) {
|
|
|
7220
7262
|
* Sends an invite to a user to join the group.
|
|
7221
7263
|
* @summary Invite User to Group
|
|
7222
7264
|
* @param {string} groupId Must be a valid group ID.
|
|
7223
|
-
* @param {CreateGroupInviteRequest}
|
|
7265
|
+
* @param {CreateGroupInviteRequest} createGroupInviteRequest
|
|
7224
7266
|
* @param {*} [options] Override http request option.
|
|
7225
7267
|
* @throws {RequiredError}
|
|
7226
7268
|
* @memberof GroupsApi
|
|
@@ -7233,7 +7275,7 @@ var GroupsApi = /** @class */ (function (_super) {
|
|
|
7233
7275
|
* Create a Group role.
|
|
7234
7276
|
* @summary Create GroupRole
|
|
7235
7277
|
* @param {string} groupId Must be a valid group ID.
|
|
7236
|
-
* @param {CreateGroupRoleRequest}
|
|
7278
|
+
* @param {CreateGroupRoleRequest} createGroupRoleRequest
|
|
7237
7279
|
* @param {*} [options] Override http request option.
|
|
7238
7280
|
* @throws {RequiredError}
|
|
7239
7281
|
* @memberof GroupsApi
|
|
@@ -7526,7 +7568,7 @@ var GroupsApi = /** @class */ (function (_super) {
|
|
|
7526
7568
|
* @summary Respond Group Join request
|
|
7527
7569
|
* @param {string} groupId Must be a valid group ID.
|
|
7528
7570
|
* @param {string} userId Must be a valid user ID.
|
|
7529
|
-
* @param {RespondGroupJoinRequest}
|
|
7571
|
+
* @param {RespondGroupJoinRequest} respondGroupJoinRequest
|
|
7530
7572
|
* @param {*} [options] Override http request option.
|
|
7531
7573
|
* @throws {RequiredError}
|
|
7532
7574
|
* @memberof GroupsApi
|
|
@@ -7627,6 +7669,48 @@ exports.GroupsApi = GroupsApi;
|
|
|
7627
7669
|
var InstancesApiAxiosParamCreator = function (configuration) {
|
|
7628
7670
|
var _this = this;
|
|
7629
7671
|
return {
|
|
7672
|
+
/**
|
|
7673
|
+
* Close an instance. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
|
|
7674
|
+
* @summary Close Instance
|
|
7675
|
+
* @param {string} worldId Must be a valid world ID.
|
|
7676
|
+
* @param {string} instanceId Must be a valid instance ID.
|
|
7677
|
+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
7678
|
+
* @param {*} [options] Override http request option.
|
|
7679
|
+
* @throws {RequiredError}
|
|
7680
|
+
*/
|
|
7681
|
+
closeInstance: function (worldId, instanceId, hardClose, options) {
|
|
7682
|
+
if (options === void 0) { options = {}; }
|
|
7683
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
7684
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
7685
|
+
return __generator(this, function (_a) {
|
|
7686
|
+
// verify required parameter 'worldId' is not null or undefined
|
|
7687
|
+
(0, common_1.assertParamExists)('closeInstance', 'worldId', worldId);
|
|
7688
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
7689
|
+
(0, common_1.assertParamExists)('closeInstance', 'instanceId', instanceId);
|
|
7690
|
+
localVarPath = "/instances/{worldId}:{instanceId}"
|
|
7691
|
+
.replace("{".concat("worldId", "}"), encodeURIComponent(String(worldId)))
|
|
7692
|
+
.replace("{".concat("instanceId", "}"), encodeURIComponent(String(instanceId)));
|
|
7693
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7694
|
+
if (configuration) {
|
|
7695
|
+
baseOptions = configuration.baseOptions;
|
|
7696
|
+
}
|
|
7697
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
7698
|
+
localVarHeaderParameter = {};
|
|
7699
|
+
localVarQueryParameter = {};
|
|
7700
|
+
// authentication authCookie required
|
|
7701
|
+
if (hardClose !== undefined) {
|
|
7702
|
+
localVarQueryParameter['hardClose'] = hardClose;
|
|
7703
|
+
}
|
|
7704
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7705
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7706
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7707
|
+
return [2 /*return*/, {
|
|
7708
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7709
|
+
options: localVarRequestOptions,
|
|
7710
|
+
}];
|
|
7711
|
+
});
|
|
7712
|
+
});
|
|
7713
|
+
},
|
|
7630
7714
|
/**
|
|
7631
7715
|
* 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\"!
|
|
7632
7716
|
* @summary Get Instance
|
|
@@ -7785,6 +7869,28 @@ exports.InstancesApiAxiosParamCreator = InstancesApiAxiosParamCreator;
|
|
|
7785
7869
|
var InstancesApiFp = function (configuration) {
|
|
7786
7870
|
var localVarAxiosParamCreator = (0, exports.InstancesApiAxiosParamCreator)(configuration);
|
|
7787
7871
|
return {
|
|
7872
|
+
/**
|
|
7873
|
+
* Close an instance. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
|
|
7874
|
+
* @summary Close Instance
|
|
7875
|
+
* @param {string} worldId Must be a valid world ID.
|
|
7876
|
+
* @param {string} instanceId Must be a valid instance ID.
|
|
7877
|
+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
7878
|
+
* @param {*} [options] Override http request option.
|
|
7879
|
+
* @throws {RequiredError}
|
|
7880
|
+
*/
|
|
7881
|
+
closeInstance: function (worldId, instanceId, hardClose, options) {
|
|
7882
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7883
|
+
var localVarAxiosArgs;
|
|
7884
|
+
return __generator(this, function (_a) {
|
|
7885
|
+
switch (_a.label) {
|
|
7886
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.closeInstance(worldId, instanceId, hardClose, options)];
|
|
7887
|
+
case 1:
|
|
7888
|
+
localVarAxiosArgs = _a.sent();
|
|
7889
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
7890
|
+
}
|
|
7891
|
+
});
|
|
7892
|
+
});
|
|
7893
|
+
},
|
|
7788
7894
|
/**
|
|
7789
7895
|
* 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\"!
|
|
7790
7896
|
* @summary Get Instance
|
|
@@ -7878,6 +7984,18 @@ exports.InstancesApiFp = InstancesApiFp;
|
|
|
7878
7984
|
var InstancesApiFactory = function (configuration, basePath, axios) {
|
|
7879
7985
|
var localVarFp = (0, exports.InstancesApiFp)(configuration);
|
|
7880
7986
|
return {
|
|
7987
|
+
/**
|
|
7988
|
+
* Close an instance. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
|
|
7989
|
+
* @summary Close Instance
|
|
7990
|
+
* @param {string} worldId Must be a valid world ID.
|
|
7991
|
+
* @param {string} instanceId Must be a valid instance ID.
|
|
7992
|
+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
7993
|
+
* @param {*} [options] Override http request option.
|
|
7994
|
+
* @throws {RequiredError}
|
|
7995
|
+
*/
|
|
7996
|
+
closeInstance: function (worldId, instanceId, hardClose, options) {
|
|
7997
|
+
return localVarFp.closeInstance(worldId, instanceId, hardClose, options).then(function (request) { return request(axios, basePath); });
|
|
7998
|
+
},
|
|
7881
7999
|
/**
|
|
7882
8000
|
* 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\"!
|
|
7883
8001
|
* @summary Get Instance
|
|
@@ -7935,6 +8053,20 @@ var InstancesApi = /** @class */ (function (_super) {
|
|
|
7935
8053
|
function InstancesApi() {
|
|
7936
8054
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
7937
8055
|
}
|
|
8056
|
+
/**
|
|
8057
|
+
* Close an instance. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
|
|
8058
|
+
* @summary Close Instance
|
|
8059
|
+
* @param {string} worldId Must be a valid world ID.
|
|
8060
|
+
* @param {string} instanceId Must be a valid instance ID.
|
|
8061
|
+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
8062
|
+
* @param {*} [options] Override http request option.
|
|
8063
|
+
* @throws {RequiredError}
|
|
8064
|
+
* @memberof InstancesApi
|
|
8065
|
+
*/
|
|
8066
|
+
InstancesApi.prototype.closeInstance = function (worldId, instanceId, hardClose, options) {
|
|
8067
|
+
var _this = this;
|
|
8068
|
+
return (0, exports.InstancesApiFp)(this.configuration).closeInstance(worldId, instanceId, hardClose, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8069
|
+
};
|
|
7938
8070
|
/**
|
|
7939
8071
|
* 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\"!
|
|
7940
8072
|
* @summary Get Instance
|
|
@@ -8118,7 +8250,7 @@ var InviteApiAxiosParamCreator = function (configuration) {
|
|
|
8118
8250
|
* Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
|
8119
8251
|
* @summary Invite User
|
|
8120
8252
|
* @param {string} userId Must be a valid user ID.
|
|
8121
|
-
* @param {InviteRequest}
|
|
8253
|
+
* @param {InviteRequest} inviteRequest Slot number of the Invite Message to use when inviting a user.
|
|
8122
8254
|
* @param {*} [options] Override http request option.
|
|
8123
8255
|
* @throws {RequiredError}
|
|
8124
8256
|
*/
|
|
@@ -8129,6 +8261,8 @@ var InviteApiAxiosParamCreator = function (configuration) {
|
|
|
8129
8261
|
return __generator(this, function (_a) {
|
|
8130
8262
|
// verify required parameter 'userId' is not null or undefined
|
|
8131
8263
|
(0, common_1.assertParamExists)('inviteUser', 'userId', userId);
|
|
8264
|
+
// verify required parameter 'inviteRequest' is not null or undefined
|
|
8265
|
+
(0, common_1.assertParamExists)('inviteUser', 'inviteRequest', inviteRequest);
|
|
8132
8266
|
localVarPath = "/invite/{userId}"
|
|
8133
8267
|
.replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
|
|
8134
8268
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -8234,7 +8368,7 @@ var InviteApiAxiosParamCreator = function (configuration) {
|
|
|
8234
8368
|
* Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
|
|
8235
8369
|
* @summary Respond Invite
|
|
8236
8370
|
* @param {string} notificationId Must be a valid notification ID.
|
|
8237
|
-
* @param {InviteResponse}
|
|
8371
|
+
* @param {InviteResponse} inviteResponse Slot number of the Response Message to use when responding to a user.
|
|
8238
8372
|
* @param {*} [options] Override http request option.
|
|
8239
8373
|
* @throws {RequiredError}
|
|
8240
8374
|
*/
|
|
@@ -8245,6 +8379,8 @@ var InviteApiAxiosParamCreator = function (configuration) {
|
|
|
8245
8379
|
return __generator(this, function (_a) {
|
|
8246
8380
|
// verify required parameter 'notificationId' is not null or undefined
|
|
8247
8381
|
(0, common_1.assertParamExists)('respondInvite', 'notificationId', notificationId);
|
|
8382
|
+
// verify required parameter 'inviteResponse' is not null or undefined
|
|
8383
|
+
(0, common_1.assertParamExists)('respondInvite', 'inviteResponse', inviteResponse);
|
|
8248
8384
|
localVarPath = "/invite/{notificationId}/response"
|
|
8249
8385
|
.replace("{".concat("notificationId", "}"), encodeURIComponent(String(notificationId)));
|
|
8250
8386
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -8390,7 +8526,7 @@ var InviteApiFp = function (configuration) {
|
|
|
8390
8526
|
* Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
|
8391
8527
|
* @summary Invite User
|
|
8392
8528
|
* @param {string} userId Must be a valid user ID.
|
|
8393
|
-
* @param {InviteRequest}
|
|
8529
|
+
* @param {InviteRequest} inviteRequest Slot number of the Invite Message to use when inviting a user.
|
|
8394
8530
|
* @param {*} [options] Override http request option.
|
|
8395
8531
|
* @throws {RequiredError}
|
|
8396
8532
|
*/
|
|
@@ -8454,7 +8590,7 @@ var InviteApiFp = function (configuration) {
|
|
|
8454
8590
|
* Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
|
|
8455
8591
|
* @summary Respond Invite
|
|
8456
8592
|
* @param {string} notificationId Must be a valid notification ID.
|
|
8457
|
-
* @param {InviteResponse}
|
|
8593
|
+
* @param {InviteResponse} inviteResponse Slot number of the Response Message to use when responding to a user.
|
|
8458
8594
|
* @param {*} [options] Override http request option.
|
|
8459
8595
|
* @throws {RequiredError}
|
|
8460
8596
|
*/
|
|
@@ -8542,7 +8678,7 @@ var InviteApiFactory = function (configuration, basePath, axios) {
|
|
|
8542
8678
|
* Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
|
8543
8679
|
* @summary Invite User
|
|
8544
8680
|
* @param {string} userId Must be a valid user ID.
|
|
8545
|
-
* @param {InviteRequest}
|
|
8681
|
+
* @param {InviteRequest} inviteRequest Slot number of the Invite Message to use when inviting a user.
|
|
8546
8682
|
* @param {*} [options] Override http request option.
|
|
8547
8683
|
* @throws {RequiredError}
|
|
8548
8684
|
*/
|
|
@@ -8576,7 +8712,7 @@ var InviteApiFactory = function (configuration, basePath, axios) {
|
|
|
8576
8712
|
* Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
|
|
8577
8713
|
* @summary Respond Invite
|
|
8578
8714
|
* @param {string} notificationId Must be a valid notification ID.
|
|
8579
|
-
* @param {InviteResponse}
|
|
8715
|
+
* @param {InviteResponse} inviteResponse Slot number of the Response Message to use when responding to a user.
|
|
8580
8716
|
* @param {*} [options] Override http request option.
|
|
8581
8717
|
* @throws {RequiredError}
|
|
8582
8718
|
*/
|
|
@@ -8654,7 +8790,7 @@ var InviteApi = /** @class */ (function (_super) {
|
|
|
8654
8790
|
* Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
|
8655
8791
|
* @summary Invite User
|
|
8656
8792
|
* @param {string} userId Must be a valid user ID.
|
|
8657
|
-
* @param {InviteRequest}
|
|
8793
|
+
* @param {InviteRequest} inviteRequest Slot number of the Invite Message to use when inviting a user.
|
|
8658
8794
|
* @param {*} [options] Override http request option.
|
|
8659
8795
|
* @throws {RequiredError}
|
|
8660
8796
|
* @memberof InviteApi
|
|
@@ -8694,7 +8830,7 @@ var InviteApi = /** @class */ (function (_super) {
|
|
|
8694
8830
|
* Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
|
|
8695
8831
|
* @summary Respond Invite
|
|
8696
8832
|
* @param {string} notificationId Must be a valid notification ID.
|
|
8697
|
-
* @param {InviteResponse}
|
|
8833
|
+
* @param {InviteResponse} inviteResponse Slot number of the Response Message to use when responding to a user.
|
|
8698
8834
|
* @param {*} [options] Override http request option.
|
|
8699
8835
|
* @throws {RequiredError}
|
|
8700
8836
|
* @memberof InviteApi
|
|
@@ -9508,7 +9644,7 @@ var PlayermoderationApiAxiosParamCreator = function (configuration) {
|
|
|
9508
9644
|
/**
|
|
9509
9645
|
* 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.
|
|
9510
9646
|
* @summary Moderate User
|
|
9511
|
-
* @param {ModerateUserRequest}
|
|
9647
|
+
* @param {ModerateUserRequest} moderateUserRequest
|
|
9512
9648
|
* @param {*} [options] Override http request option.
|
|
9513
9649
|
* @throws {RequiredError}
|
|
9514
9650
|
*/
|
|
@@ -9517,6 +9653,8 @@ var PlayermoderationApiAxiosParamCreator = function (configuration) {
|
|
|
9517
9653
|
return __awaiter(_this, void 0, void 0, function () {
|
|
9518
9654
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9519
9655
|
return __generator(this, function (_a) {
|
|
9656
|
+
// verify required parameter 'moderateUserRequest' is not null or undefined
|
|
9657
|
+
(0, common_1.assertParamExists)('moderateUser', 'moderateUserRequest', moderateUserRequest);
|
|
9520
9658
|
localVarPath = "/auth/user/playermoderations";
|
|
9521
9659
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9522
9660
|
if (configuration) {
|
|
@@ -9541,7 +9679,7 @@ var PlayermoderationApiAxiosParamCreator = function (configuration) {
|
|
|
9541
9679
|
/**
|
|
9542
9680
|
* 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.
|
|
9543
9681
|
* @summary Unmoderate User
|
|
9544
|
-
* @param {ModerateUserRequest}
|
|
9682
|
+
* @param {ModerateUserRequest} moderateUserRequest
|
|
9545
9683
|
* @param {*} [options] Override http request option.
|
|
9546
9684
|
* @throws {RequiredError}
|
|
9547
9685
|
*/
|
|
@@ -9550,6 +9688,8 @@ var PlayermoderationApiAxiosParamCreator = function (configuration) {
|
|
|
9550
9688
|
return __awaiter(_this, void 0, void 0, function () {
|
|
9551
9689
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
9552
9690
|
return __generator(this, function (_a) {
|
|
9691
|
+
// verify required parameter 'moderateUserRequest' is not null or undefined
|
|
9692
|
+
(0, common_1.assertParamExists)('unmoderateUser', 'moderateUserRequest', moderateUserRequest);
|
|
9553
9693
|
localVarPath = "/auth/user/unplayermoderate";
|
|
9554
9694
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9555
9695
|
if (configuration) {
|
|
@@ -9664,7 +9804,7 @@ var PlayermoderationApiFp = function (configuration) {
|
|
|
9664
9804
|
/**
|
|
9665
9805
|
* 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.
|
|
9666
9806
|
* @summary Moderate User
|
|
9667
|
-
* @param {ModerateUserRequest}
|
|
9807
|
+
* @param {ModerateUserRequest} moderateUserRequest
|
|
9668
9808
|
* @param {*} [options] Override http request option.
|
|
9669
9809
|
* @throws {RequiredError}
|
|
9670
9810
|
*/
|
|
@@ -9684,7 +9824,7 @@ var PlayermoderationApiFp = function (configuration) {
|
|
|
9684
9824
|
/**
|
|
9685
9825
|
* 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.
|
|
9686
9826
|
* @summary Unmoderate User
|
|
9687
|
-
* @param {ModerateUserRequest}
|
|
9827
|
+
* @param {ModerateUserRequest} moderateUserRequest
|
|
9688
9828
|
* @param {*} [options] Override http request option.
|
|
9689
9829
|
* @throws {RequiredError}
|
|
9690
9830
|
*/
|
|
@@ -9754,7 +9894,7 @@ var PlayermoderationApiFactory = function (configuration, basePath, axios) {
|
|
|
9754
9894
|
/**
|
|
9755
9895
|
* 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.
|
|
9756
9896
|
* @summary Moderate User
|
|
9757
|
-
* @param {ModerateUserRequest}
|
|
9897
|
+
* @param {ModerateUserRequest} moderateUserRequest
|
|
9758
9898
|
* @param {*} [options] Override http request option.
|
|
9759
9899
|
* @throws {RequiredError}
|
|
9760
9900
|
*/
|
|
@@ -9764,7 +9904,7 @@ var PlayermoderationApiFactory = function (configuration, basePath, axios) {
|
|
|
9764
9904
|
/**
|
|
9765
9905
|
* 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.
|
|
9766
9906
|
* @summary Unmoderate User
|
|
9767
|
-
* @param {ModerateUserRequest}
|
|
9907
|
+
* @param {ModerateUserRequest} moderateUserRequest
|
|
9768
9908
|
* @param {*} [options] Override http request option.
|
|
9769
9909
|
* @throws {RequiredError}
|
|
9770
9910
|
*/
|
|
@@ -9836,7 +9976,7 @@ var PlayermoderationApi = /** @class */ (function (_super) {
|
|
|
9836
9976
|
/**
|
|
9837
9977
|
* 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.
|
|
9838
9978
|
* @summary Moderate User
|
|
9839
|
-
* @param {ModerateUserRequest}
|
|
9979
|
+
* @param {ModerateUserRequest} moderateUserRequest
|
|
9840
9980
|
* @param {*} [options] Override http request option.
|
|
9841
9981
|
* @throws {RequiredError}
|
|
9842
9982
|
* @memberof PlayermoderationApi
|
|
@@ -9848,7 +9988,7 @@ var PlayermoderationApi = /** @class */ (function (_super) {
|
|
|
9848
9988
|
/**
|
|
9849
9989
|
* 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.
|
|
9850
9990
|
* @summary Unmoderate User
|
|
9851
|
-
* @param {ModerateUserRequest}
|
|
9991
|
+
* @param {ModerateUserRequest} moderateUserRequest
|
|
9852
9992
|
* @param {*} [options] Override http request option.
|
|
9853
9993
|
* @throws {RequiredError}
|
|
9854
9994
|
* @memberof PlayermoderationApi
|