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/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* VRChat API Documentation
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 1.
|
|
6
|
+
* The version of the OpenAPI document: 1.17.0
|
|
7
7
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2319,6 +2319,21 @@ export interface Group {
|
|
|
2319
2319
|
*/
|
|
2320
2320
|
'roles'?: Array<GroupRole> | null;
|
|
2321
2321
|
}
|
|
2322
|
+
/**
|
|
2323
|
+
* Group access type when the instance type is \"group\"
|
|
2324
|
+
* @export
|
|
2325
|
+
* @enum {string}
|
|
2326
|
+
*/
|
|
2327
|
+
|
|
2328
|
+
export const GroupAccessType = {
|
|
2329
|
+
Public: 'public',
|
|
2330
|
+
Plus: 'plus',
|
|
2331
|
+
Member: 'member'
|
|
2332
|
+
} as const;
|
|
2333
|
+
|
|
2334
|
+
export type GroupAccessType = typeof GroupAccessType[keyof typeof GroupAccessType];
|
|
2335
|
+
|
|
2336
|
+
|
|
2322
2337
|
/**
|
|
2323
2338
|
*
|
|
2324
2339
|
* @export
|
|
@@ -2575,6 +2590,20 @@ export interface GroupGalleryImage {
|
|
|
2575
2590
|
*/
|
|
2576
2591
|
'approvedAt'?: string;
|
|
2577
2592
|
}
|
|
2593
|
+
/**
|
|
2594
|
+
*
|
|
2595
|
+
* @export
|
|
2596
|
+
* @enum {string}
|
|
2597
|
+
*/
|
|
2598
|
+
|
|
2599
|
+
export const GroupJoinRequestAction = {
|
|
2600
|
+
Accept: 'accept',
|
|
2601
|
+
Reject: 'reject'
|
|
2602
|
+
} as const;
|
|
2603
|
+
|
|
2604
|
+
export type GroupJoinRequestAction = typeof GroupJoinRequestAction[keyof typeof GroupJoinRequestAction];
|
|
2605
|
+
|
|
2606
|
+
|
|
2578
2607
|
/**
|
|
2579
2608
|
*
|
|
2580
2609
|
* @export
|
|
@@ -2641,10 +2670,10 @@ export interface GroupLimitedMember {
|
|
|
2641
2670
|
'joinedAt'?: string;
|
|
2642
2671
|
/**
|
|
2643
2672
|
*
|
|
2644
|
-
* @type {
|
|
2673
|
+
* @type {GroupMemberStatus}
|
|
2645
2674
|
* @memberof GroupLimitedMember
|
|
2646
2675
|
*/
|
|
2647
|
-
'membershipStatus'?:
|
|
2676
|
+
'membershipStatus'?: GroupMemberStatus;
|
|
2648
2677
|
/**
|
|
2649
2678
|
*
|
|
2650
2679
|
* @type {string}
|
|
@@ -2741,13 +2770,13 @@ export interface GroupMember {
|
|
|
2741
2770
|
* @type {string}
|
|
2742
2771
|
* @memberof GroupMember
|
|
2743
2772
|
*/
|
|
2744
|
-
'joinedAt'?: string;
|
|
2773
|
+
'joinedAt'?: string | null;
|
|
2745
2774
|
/**
|
|
2746
2775
|
*
|
|
2747
|
-
* @type {
|
|
2776
|
+
* @type {GroupMemberStatus}
|
|
2748
2777
|
* @memberof GroupMember
|
|
2749
2778
|
*/
|
|
2750
|
-
'membershipStatus'?:
|
|
2779
|
+
'membershipStatus'?: GroupMemberStatus;
|
|
2751
2780
|
/**
|
|
2752
2781
|
*
|
|
2753
2782
|
* @type {string}
|
|
@@ -2832,7 +2861,7 @@ export interface GroupMemberLimitedUser {
|
|
|
2832
2861
|
* @type {string}
|
|
2833
2862
|
* @memberof GroupMemberLimitedUser
|
|
2834
2863
|
*/
|
|
2835
|
-
'currentAvatarThumbnailImageUrl'?: string;
|
|
2864
|
+
'currentAvatarThumbnailImageUrl'?: string | null;
|
|
2836
2865
|
/**
|
|
2837
2866
|
*
|
|
2838
2867
|
* @type {Array<string>}
|
|
@@ -2850,7 +2879,8 @@ export const GroupMemberStatus = {
|
|
|
2850
2879
|
Inactive: 'inactive',
|
|
2851
2880
|
Member: 'member',
|
|
2852
2881
|
Requested: 'requested',
|
|
2853
|
-
Invited: 'invited'
|
|
2882
|
+
Invited: 'invited',
|
|
2883
|
+
Banned: 'banned'
|
|
2854
2884
|
} as const;
|
|
2855
2885
|
|
|
2856
2886
|
export type GroupMemberStatus = typeof GroupMemberStatus[keyof typeof GroupMemberStatus];
|
|
@@ -3379,11 +3409,11 @@ export interface Instance {
|
|
|
3379
3409
|
*/
|
|
3380
3410
|
'name': string;
|
|
3381
3411
|
/**
|
|
3382
|
-
* A
|
|
3412
|
+
* A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise
|
|
3383
3413
|
* @type {string}
|
|
3384
3414
|
* @memberof Instance
|
|
3385
3415
|
*/
|
|
3386
|
-
'ownerId'?: string;
|
|
3416
|
+
'ownerId'?: string | null;
|
|
3387
3417
|
/**
|
|
3388
3418
|
*
|
|
3389
3419
|
* @type {boolean}
|
|
@@ -3419,7 +3449,7 @@ export interface Instance {
|
|
|
3419
3449
|
* @type {string}
|
|
3420
3450
|
* @memberof Instance
|
|
3421
3451
|
*/
|
|
3422
|
-
'shortName'?: string;
|
|
3452
|
+
'shortName'?: string | null;
|
|
3423
3453
|
/**
|
|
3424
3454
|
* The tags array on Instances usually contain the language tags of the people in the instance.
|
|
3425
3455
|
* @type {Array<string>}
|
|
@@ -3456,6 +3486,84 @@ export interface Instance {
|
|
|
3456
3486
|
* @memberof Instance
|
|
3457
3487
|
*/
|
|
3458
3488
|
'private'?: string;
|
|
3489
|
+
/**
|
|
3490
|
+
*
|
|
3491
|
+
* @type {boolean}
|
|
3492
|
+
* @memberof Instance
|
|
3493
|
+
*/
|
|
3494
|
+
'queueEnabled': boolean;
|
|
3495
|
+
/**
|
|
3496
|
+
*
|
|
3497
|
+
* @type {number}
|
|
3498
|
+
* @memberof Instance
|
|
3499
|
+
*/
|
|
3500
|
+
'queueSize': number;
|
|
3501
|
+
/**
|
|
3502
|
+
*
|
|
3503
|
+
* @type {number}
|
|
3504
|
+
* @memberof Instance
|
|
3505
|
+
*/
|
|
3506
|
+
'recommendedCapacity': number;
|
|
3507
|
+
/**
|
|
3508
|
+
*
|
|
3509
|
+
* @type {boolean}
|
|
3510
|
+
* @memberof Instance
|
|
3511
|
+
*/
|
|
3512
|
+
'roleRestricted'?: boolean;
|
|
3513
|
+
/**
|
|
3514
|
+
*
|
|
3515
|
+
* @type {boolean}
|
|
3516
|
+
* @memberof Instance
|
|
3517
|
+
*/
|
|
3518
|
+
'strict': boolean;
|
|
3519
|
+
/**
|
|
3520
|
+
*
|
|
3521
|
+
* @type {number}
|
|
3522
|
+
* @memberof Instance
|
|
3523
|
+
*/
|
|
3524
|
+
'userCount': number;
|
|
3525
|
+
/**
|
|
3526
|
+
*
|
|
3527
|
+
* @type {World}
|
|
3528
|
+
* @memberof Instance
|
|
3529
|
+
*/
|
|
3530
|
+
'world': World;
|
|
3531
|
+
/**
|
|
3532
|
+
* The users field is present on instances created by the requesting user.
|
|
3533
|
+
* @type {Array<LimitedUser>}
|
|
3534
|
+
* @memberof Instance
|
|
3535
|
+
*/
|
|
3536
|
+
'users'?: Array<LimitedUser>;
|
|
3537
|
+
/**
|
|
3538
|
+
*
|
|
3539
|
+
* @type {GroupAccessType}
|
|
3540
|
+
* @memberof Instance
|
|
3541
|
+
*/
|
|
3542
|
+
'groupAccessType'?: GroupAccessType;
|
|
3543
|
+
/**
|
|
3544
|
+
*
|
|
3545
|
+
* @type {boolean}
|
|
3546
|
+
* @memberof Instance
|
|
3547
|
+
*/
|
|
3548
|
+
'hasCapacityForYou'?: boolean;
|
|
3549
|
+
/**
|
|
3550
|
+
*
|
|
3551
|
+
* @type {string}
|
|
3552
|
+
* @memberof Instance
|
|
3553
|
+
*/
|
|
3554
|
+
'nonce'?: string;
|
|
3555
|
+
/**
|
|
3556
|
+
*
|
|
3557
|
+
* @type {string}
|
|
3558
|
+
* @memberof Instance
|
|
3559
|
+
*/
|
|
3560
|
+
'closedAt'?: string | null;
|
|
3561
|
+
/**
|
|
3562
|
+
*
|
|
3563
|
+
* @type {boolean}
|
|
3564
|
+
* @memberof Instance
|
|
3565
|
+
*/
|
|
3566
|
+
'hardClose'?: boolean | null;
|
|
3459
3567
|
}
|
|
3460
3568
|
/**
|
|
3461
3569
|
*
|
|
@@ -4562,10 +4670,10 @@ export interface RequestInviteRequest {
|
|
|
4562
4670
|
export interface RespondGroupJoinRequest {
|
|
4563
4671
|
/**
|
|
4564
4672
|
*
|
|
4565
|
-
* @type {
|
|
4673
|
+
* @type {GroupJoinRequestAction}
|
|
4566
4674
|
* @memberof RespondGroupJoinRequest
|
|
4567
4675
|
*/
|
|
4568
|
-
'action'
|
|
4676
|
+
'action': GroupJoinRequestAction;
|
|
4569
4677
|
}
|
|
4570
4678
|
/**
|
|
4571
4679
|
*
|
|
@@ -5997,7 +6105,7 @@ export interface World {
|
|
|
5997
6105
|
* @type {string}
|
|
5998
6106
|
* @memberof World
|
|
5999
6107
|
*/
|
|
6000
|
-
'namespace'
|
|
6108
|
+
'namespace'?: string;
|
|
6001
6109
|
/**
|
|
6002
6110
|
* Will always be `0` when unauthenticated.
|
|
6003
6111
|
* @type {number}
|
|
@@ -6287,11 +6395,13 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
6287
6395
|
/**
|
|
6288
6396
|
* Finishes the login sequence with a normal 2FA-generated code for accounts with 2FA-protection enabled.
|
|
6289
6397
|
* @summary Verify 2FA code
|
|
6290
|
-
* @param {TwoFactorAuthCode}
|
|
6398
|
+
* @param {TwoFactorAuthCode} twoFactorAuthCode
|
|
6291
6399
|
* @param {*} [options] Override http request option.
|
|
6292
6400
|
* @throws {RequiredError}
|
|
6293
6401
|
*/
|
|
6294
|
-
verify2FA: async (twoFactorAuthCode
|
|
6402
|
+
verify2FA: async (twoFactorAuthCode: TwoFactorAuthCode, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6403
|
+
// verify required parameter 'twoFactorAuthCode' is not null or undefined
|
|
6404
|
+
assertParamExists('verify2FA', 'twoFactorAuthCode', twoFactorAuthCode)
|
|
6295
6405
|
const localVarPath = `/auth/twofactorauth/totp/verify`;
|
|
6296
6406
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6297
6407
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6323,11 +6433,13 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
6323
6433
|
/**
|
|
6324
6434
|
* Finishes the login sequence with an 2FA email code.
|
|
6325
6435
|
* @summary Verify 2FA email code
|
|
6326
|
-
* @param {TwoFactorEmailCode}
|
|
6436
|
+
* @param {TwoFactorEmailCode} twoFactorEmailCode
|
|
6327
6437
|
* @param {*} [options] Override http request option.
|
|
6328
6438
|
* @throws {RequiredError}
|
|
6329
6439
|
*/
|
|
6330
|
-
verify2FAEmailCode: async (twoFactorEmailCode
|
|
6440
|
+
verify2FAEmailCode: async (twoFactorEmailCode: TwoFactorEmailCode, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6441
|
+
// verify required parameter 'twoFactorEmailCode' is not null or undefined
|
|
6442
|
+
assertParamExists('verify2FAEmailCode', 'twoFactorEmailCode', twoFactorEmailCode)
|
|
6331
6443
|
const localVarPath = `/auth/twofactorauth/emailotp/verify`;
|
|
6332
6444
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6333
6445
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6391,11 +6503,13 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
6391
6503
|
/**
|
|
6392
6504
|
* Finishes the login sequence with an OTP (One Time Password) recovery code for accounts with 2FA-protection enabled.
|
|
6393
6505
|
* @summary Verify 2FA code with Recovery code
|
|
6394
|
-
* @param {TwoFactorAuthCode}
|
|
6506
|
+
* @param {TwoFactorAuthCode} twoFactorAuthCode
|
|
6395
6507
|
* @param {*} [options] Override http request option.
|
|
6396
6508
|
* @throws {RequiredError}
|
|
6397
6509
|
*/
|
|
6398
|
-
verifyRecoveryCode: async (twoFactorAuthCode
|
|
6510
|
+
verifyRecoveryCode: async (twoFactorAuthCode: TwoFactorAuthCode, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6511
|
+
// verify required parameter 'twoFactorAuthCode' is not null or undefined
|
|
6512
|
+
assertParamExists('verifyRecoveryCode', 'twoFactorAuthCode', twoFactorAuthCode)
|
|
6399
6513
|
const localVarPath = `/auth/twofactorauth/otp/verify`;
|
|
6400
6514
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6401
6515
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6482,22 +6596,22 @@ export const AuthenticationApiFp = function(configuration?: Configuration) {
|
|
|
6482
6596
|
/**
|
|
6483
6597
|
* Finishes the login sequence with a normal 2FA-generated code for accounts with 2FA-protection enabled.
|
|
6484
6598
|
* @summary Verify 2FA code
|
|
6485
|
-
* @param {TwoFactorAuthCode}
|
|
6599
|
+
* @param {TwoFactorAuthCode} twoFactorAuthCode
|
|
6486
6600
|
* @param {*} [options] Override http request option.
|
|
6487
6601
|
* @throws {RequiredError}
|
|
6488
6602
|
*/
|
|
6489
|
-
async verify2FA(twoFactorAuthCode
|
|
6603
|
+
async verify2FA(twoFactorAuthCode: TwoFactorAuthCode, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Verify2FAResult>> {
|
|
6490
6604
|
const localVarAxiosArgs = await localVarAxiosParamCreator.verify2FA(twoFactorAuthCode, options);
|
|
6491
6605
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6492
6606
|
},
|
|
6493
6607
|
/**
|
|
6494
6608
|
* Finishes the login sequence with an 2FA email code.
|
|
6495
6609
|
* @summary Verify 2FA email code
|
|
6496
|
-
* @param {TwoFactorEmailCode}
|
|
6610
|
+
* @param {TwoFactorEmailCode} twoFactorEmailCode
|
|
6497
6611
|
* @param {*} [options] Override http request option.
|
|
6498
6612
|
* @throws {RequiredError}
|
|
6499
6613
|
*/
|
|
6500
|
-
async verify2FAEmailCode(twoFactorEmailCode
|
|
6614
|
+
async verify2FAEmailCode(twoFactorEmailCode: TwoFactorEmailCode, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Verify2FAEmailCodeResult>> {
|
|
6501
6615
|
const localVarAxiosArgs = await localVarAxiosParamCreator.verify2FAEmailCode(twoFactorEmailCode, options);
|
|
6502
6616
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6503
6617
|
},
|
|
@@ -6514,11 +6628,11 @@ export const AuthenticationApiFp = function(configuration?: Configuration) {
|
|
|
6514
6628
|
/**
|
|
6515
6629
|
* Finishes the login sequence with an OTP (One Time Password) recovery code for accounts with 2FA-protection enabled.
|
|
6516
6630
|
* @summary Verify 2FA code with Recovery code
|
|
6517
|
-
* @param {TwoFactorAuthCode}
|
|
6631
|
+
* @param {TwoFactorAuthCode} twoFactorAuthCode
|
|
6518
6632
|
* @param {*} [options] Override http request option.
|
|
6519
6633
|
* @throws {RequiredError}
|
|
6520
6634
|
*/
|
|
6521
|
-
async verifyRecoveryCode(twoFactorAuthCode
|
|
6635
|
+
async verifyRecoveryCode(twoFactorAuthCode: TwoFactorAuthCode, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Verify2FAResult>> {
|
|
6522
6636
|
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyRecoveryCode(twoFactorAuthCode, options);
|
|
6523
6637
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6524
6638
|
},
|
|
@@ -6576,21 +6690,21 @@ export const AuthenticationApiFactory = function (configuration?: Configuration,
|
|
|
6576
6690
|
/**
|
|
6577
6691
|
* Finishes the login sequence with a normal 2FA-generated code for accounts with 2FA-protection enabled.
|
|
6578
6692
|
* @summary Verify 2FA code
|
|
6579
|
-
* @param {TwoFactorAuthCode}
|
|
6693
|
+
* @param {TwoFactorAuthCode} twoFactorAuthCode
|
|
6580
6694
|
* @param {*} [options] Override http request option.
|
|
6581
6695
|
* @throws {RequiredError}
|
|
6582
6696
|
*/
|
|
6583
|
-
verify2FA(twoFactorAuthCode
|
|
6697
|
+
verify2FA(twoFactorAuthCode: TwoFactorAuthCode, options?: any): AxiosPromise<Verify2FAResult> {
|
|
6584
6698
|
return localVarFp.verify2FA(twoFactorAuthCode, options).then((request) => request(axios, basePath));
|
|
6585
6699
|
},
|
|
6586
6700
|
/**
|
|
6587
6701
|
* Finishes the login sequence with an 2FA email code.
|
|
6588
6702
|
* @summary Verify 2FA email code
|
|
6589
|
-
* @param {TwoFactorEmailCode}
|
|
6703
|
+
* @param {TwoFactorEmailCode} twoFactorEmailCode
|
|
6590
6704
|
* @param {*} [options] Override http request option.
|
|
6591
6705
|
* @throws {RequiredError}
|
|
6592
6706
|
*/
|
|
6593
|
-
verify2FAEmailCode(twoFactorEmailCode
|
|
6707
|
+
verify2FAEmailCode(twoFactorEmailCode: TwoFactorEmailCode, options?: any): AxiosPromise<Verify2FAEmailCodeResult> {
|
|
6594
6708
|
return localVarFp.verify2FAEmailCode(twoFactorEmailCode, options).then((request) => request(axios, basePath));
|
|
6595
6709
|
},
|
|
6596
6710
|
/**
|
|
@@ -6605,11 +6719,11 @@ export const AuthenticationApiFactory = function (configuration?: Configuration,
|
|
|
6605
6719
|
/**
|
|
6606
6720
|
* Finishes the login sequence with an OTP (One Time Password) recovery code for accounts with 2FA-protection enabled.
|
|
6607
6721
|
* @summary Verify 2FA code with Recovery code
|
|
6608
|
-
* @param {TwoFactorAuthCode}
|
|
6722
|
+
* @param {TwoFactorAuthCode} twoFactorAuthCode
|
|
6609
6723
|
* @param {*} [options] Override http request option.
|
|
6610
6724
|
* @throws {RequiredError}
|
|
6611
6725
|
*/
|
|
6612
|
-
verifyRecoveryCode(twoFactorAuthCode
|
|
6726
|
+
verifyRecoveryCode(twoFactorAuthCode: TwoFactorAuthCode, options?: any): AxiosPromise<Verify2FAResult> {
|
|
6613
6727
|
return localVarFp.verifyRecoveryCode(twoFactorAuthCode, options).then((request) => request(axios, basePath));
|
|
6614
6728
|
},
|
|
6615
6729
|
};
|
|
@@ -6674,24 +6788,24 @@ export class AuthenticationApi extends BaseAPI {
|
|
|
6674
6788
|
/**
|
|
6675
6789
|
* Finishes the login sequence with a normal 2FA-generated code for accounts with 2FA-protection enabled.
|
|
6676
6790
|
* @summary Verify 2FA code
|
|
6677
|
-
* @param {TwoFactorAuthCode}
|
|
6791
|
+
* @param {TwoFactorAuthCode} twoFactorAuthCode
|
|
6678
6792
|
* @param {*} [options] Override http request option.
|
|
6679
6793
|
* @throws {RequiredError}
|
|
6680
6794
|
* @memberof AuthenticationApi
|
|
6681
6795
|
*/
|
|
6682
|
-
public verify2FA(twoFactorAuthCode
|
|
6796
|
+
public verify2FA(twoFactorAuthCode: TwoFactorAuthCode, options?: AxiosRequestConfig) {
|
|
6683
6797
|
return AuthenticationApiFp(this.configuration).verify2FA(twoFactorAuthCode, options).then((request) => request(this.axios, this.basePath));
|
|
6684
6798
|
}
|
|
6685
6799
|
|
|
6686
6800
|
/**
|
|
6687
6801
|
* Finishes the login sequence with an 2FA email code.
|
|
6688
6802
|
* @summary Verify 2FA email code
|
|
6689
|
-
* @param {TwoFactorEmailCode}
|
|
6803
|
+
* @param {TwoFactorEmailCode} twoFactorEmailCode
|
|
6690
6804
|
* @param {*} [options] Override http request option.
|
|
6691
6805
|
* @throws {RequiredError}
|
|
6692
6806
|
* @memberof AuthenticationApi
|
|
6693
6807
|
*/
|
|
6694
|
-
public verify2FAEmailCode(twoFactorEmailCode
|
|
6808
|
+
public verify2FAEmailCode(twoFactorEmailCode: TwoFactorEmailCode, options?: AxiosRequestConfig) {
|
|
6695
6809
|
return AuthenticationApiFp(this.configuration).verify2FAEmailCode(twoFactorEmailCode, options).then((request) => request(this.axios, this.basePath));
|
|
6696
6810
|
}
|
|
6697
6811
|
|
|
@@ -6709,12 +6823,12 @@ export class AuthenticationApi extends BaseAPI {
|
|
|
6709
6823
|
/**
|
|
6710
6824
|
* Finishes the login sequence with an OTP (One Time Password) recovery code for accounts with 2FA-protection enabled.
|
|
6711
6825
|
* @summary Verify 2FA code with Recovery code
|
|
6712
|
-
* @param {TwoFactorAuthCode}
|
|
6826
|
+
* @param {TwoFactorAuthCode} twoFactorAuthCode
|
|
6713
6827
|
* @param {*} [options] Override http request option.
|
|
6714
6828
|
* @throws {RequiredError}
|
|
6715
6829
|
* @memberof AuthenticationApi
|
|
6716
6830
|
*/
|
|
6717
|
-
public verifyRecoveryCode(twoFactorAuthCode
|
|
6831
|
+
public verifyRecoveryCode(twoFactorAuthCode: TwoFactorAuthCode, options?: AxiosRequestConfig) {
|
|
6718
6832
|
return AuthenticationApiFp(this.configuration).verifyRecoveryCode(twoFactorAuthCode, options).then((request) => request(this.axios, this.basePath));
|
|
6719
6833
|
}
|
|
6720
6834
|
}
|
|
@@ -9869,15 +9983,17 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
9869
9983
|
* @summary Add Group Gallery Image
|
|
9870
9984
|
* @param {string} groupId Must be a valid group ID.
|
|
9871
9985
|
* @param {string} groupGalleryId Must be a valid group gallery ID.
|
|
9872
|
-
* @param {AddGroupGalleryImageRequest}
|
|
9986
|
+
* @param {AddGroupGalleryImageRequest} addGroupGalleryImageRequest
|
|
9873
9987
|
* @param {*} [options] Override http request option.
|
|
9874
9988
|
* @throws {RequiredError}
|
|
9875
9989
|
*/
|
|
9876
|
-
addGroupGalleryImage: async (groupId: string, groupGalleryId: string, addGroupGalleryImageRequest
|
|
9990
|
+
addGroupGalleryImage: async (groupId: string, groupGalleryId: string, addGroupGalleryImageRequest: AddGroupGalleryImageRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9877
9991
|
// verify required parameter 'groupId' is not null or undefined
|
|
9878
9992
|
assertParamExists('addGroupGalleryImage', 'groupId', groupId)
|
|
9879
9993
|
// verify required parameter 'groupGalleryId' is not null or undefined
|
|
9880
9994
|
assertParamExists('addGroupGalleryImage', 'groupGalleryId', groupGalleryId)
|
|
9995
|
+
// verify required parameter 'addGroupGalleryImageRequest' is not null or undefined
|
|
9996
|
+
assertParamExists('addGroupGalleryImage', 'addGroupGalleryImageRequest', addGroupGalleryImageRequest)
|
|
9881
9997
|
const localVarPath = `/groups/{groupId}/galleries/{groupGalleryId}/images`
|
|
9882
9998
|
.replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)))
|
|
9883
9999
|
.replace(`{${"groupGalleryId"}}`, encodeURIComponent(String(groupGalleryId)));
|
|
@@ -9956,13 +10072,15 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
9956
10072
|
* Bans a user from a Group.
|
|
9957
10073
|
* @summary Ban Group Member
|
|
9958
10074
|
* @param {string} groupId Must be a valid group ID.
|
|
9959
|
-
* @param {BanGroupMemberRequest}
|
|
10075
|
+
* @param {BanGroupMemberRequest} banGroupMemberRequest
|
|
9960
10076
|
* @param {*} [options] Override http request option.
|
|
9961
10077
|
* @throws {RequiredError}
|
|
9962
10078
|
*/
|
|
9963
|
-
banGroupMember: async (groupId: string, banGroupMemberRequest
|
|
10079
|
+
banGroupMember: async (groupId: string, banGroupMemberRequest: BanGroupMemberRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9964
10080
|
// verify required parameter 'groupId' is not null or undefined
|
|
9965
10081
|
assertParamExists('banGroupMember', 'groupId', groupId)
|
|
10082
|
+
// verify required parameter 'banGroupMemberRequest' is not null or undefined
|
|
10083
|
+
assertParamExists('banGroupMember', 'banGroupMemberRequest', banGroupMemberRequest)
|
|
9966
10084
|
const localVarPath = `/groups/{groupId}/bans`
|
|
9967
10085
|
.replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
|
|
9968
10086
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -10031,11 +10149,13 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
10031
10149
|
/**
|
|
10032
10150
|
* Creates a Group and returns a Group object. **Requires VRC+ Subscription.**
|
|
10033
10151
|
* @summary Create Group
|
|
10034
|
-
* @param {CreateGroupRequest}
|
|
10152
|
+
* @param {CreateGroupRequest} createGroupRequest
|
|
10035
10153
|
* @param {*} [options] Override http request option.
|
|
10036
10154
|
* @throws {RequiredError}
|
|
10037
10155
|
*/
|
|
10038
|
-
createGroup: async (createGroupRequest
|
|
10156
|
+
createGroup: async (createGroupRequest: CreateGroupRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10157
|
+
// verify required parameter 'createGroupRequest' is not null or undefined
|
|
10158
|
+
assertParamExists('createGroup', 'createGroupRequest', createGroupRequest)
|
|
10039
10159
|
const localVarPath = `/groups`;
|
|
10040
10160
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10041
10161
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -10068,13 +10188,15 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
10068
10188
|
* Creates an Announcement for a Group.
|
|
10069
10189
|
* @summary Create Group Announcement
|
|
10070
10190
|
* @param {string} groupId Must be a valid group ID.
|
|
10071
|
-
* @param {CreateGroupAnnouncementRequest}
|
|
10191
|
+
* @param {CreateGroupAnnouncementRequest} createGroupAnnouncementRequest
|
|
10072
10192
|
* @param {*} [options] Override http request option.
|
|
10073
10193
|
* @throws {RequiredError}
|
|
10074
10194
|
*/
|
|
10075
|
-
createGroupAnnouncement: async (groupId: string, createGroupAnnouncementRequest
|
|
10195
|
+
createGroupAnnouncement: async (groupId: string, createGroupAnnouncementRequest: CreateGroupAnnouncementRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10076
10196
|
// verify required parameter 'groupId' is not null or undefined
|
|
10077
10197
|
assertParamExists('createGroupAnnouncement', 'groupId', groupId)
|
|
10198
|
+
// verify required parameter 'createGroupAnnouncementRequest' is not null or undefined
|
|
10199
|
+
assertParamExists('createGroupAnnouncement', 'createGroupAnnouncementRequest', createGroupAnnouncementRequest)
|
|
10078
10200
|
const localVarPath = `/groups/{groupId}/announcement`
|
|
10079
10201
|
.replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
|
|
10080
10202
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -10108,13 +10230,15 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
10108
10230
|
* Creates a gallery for a Group.
|
|
10109
10231
|
* @summary Create Group Gallery
|
|
10110
10232
|
* @param {string} groupId Must be a valid group ID.
|
|
10111
|
-
* @param {CreateGroupGalleryRequest}
|
|
10233
|
+
* @param {CreateGroupGalleryRequest} createGroupGalleryRequest
|
|
10112
10234
|
* @param {*} [options] Override http request option.
|
|
10113
10235
|
* @throws {RequiredError}
|
|
10114
10236
|
*/
|
|
10115
|
-
createGroupGallery: async (groupId: string, createGroupGalleryRequest
|
|
10237
|
+
createGroupGallery: async (groupId: string, createGroupGalleryRequest: CreateGroupGalleryRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10116
10238
|
// verify required parameter 'groupId' is not null or undefined
|
|
10117
10239
|
assertParamExists('createGroupGallery', 'groupId', groupId)
|
|
10240
|
+
// verify required parameter 'createGroupGalleryRequest' is not null or undefined
|
|
10241
|
+
assertParamExists('createGroupGallery', 'createGroupGalleryRequest', createGroupGalleryRequest)
|
|
10118
10242
|
const localVarPath = `/groups/{groupId}/galleries`
|
|
10119
10243
|
.replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
|
|
10120
10244
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -10148,13 +10272,15 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
10148
10272
|
* Sends an invite to a user to join the group.
|
|
10149
10273
|
* @summary Invite User to Group
|
|
10150
10274
|
* @param {string} groupId Must be a valid group ID.
|
|
10151
|
-
* @param {CreateGroupInviteRequest}
|
|
10275
|
+
* @param {CreateGroupInviteRequest} createGroupInviteRequest
|
|
10152
10276
|
* @param {*} [options] Override http request option.
|
|
10153
10277
|
* @throws {RequiredError}
|
|
10154
10278
|
*/
|
|
10155
|
-
createGroupInvite: async (groupId: string, createGroupInviteRequest
|
|
10279
|
+
createGroupInvite: async (groupId: string, createGroupInviteRequest: CreateGroupInviteRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10156
10280
|
// verify required parameter 'groupId' is not null or undefined
|
|
10157
10281
|
assertParamExists('createGroupInvite', 'groupId', groupId)
|
|
10282
|
+
// verify required parameter 'createGroupInviteRequest' is not null or undefined
|
|
10283
|
+
assertParamExists('createGroupInvite', 'createGroupInviteRequest', createGroupInviteRequest)
|
|
10158
10284
|
const localVarPath = `/groups/{groupId}/invites`
|
|
10159
10285
|
.replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
|
|
10160
10286
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -10188,13 +10314,15 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
10188
10314
|
* Create a Group role.
|
|
10189
10315
|
* @summary Create GroupRole
|
|
10190
10316
|
* @param {string} groupId Must be a valid group ID.
|
|
10191
|
-
* @param {CreateGroupRoleRequest}
|
|
10317
|
+
* @param {CreateGroupRoleRequest} createGroupRoleRequest
|
|
10192
10318
|
* @param {*} [options] Override http request option.
|
|
10193
10319
|
* @throws {RequiredError}
|
|
10194
10320
|
*/
|
|
10195
|
-
createGroupRole: async (groupId: string, createGroupRoleRequest
|
|
10321
|
+
createGroupRole: async (groupId: string, createGroupRoleRequest: CreateGroupRoleRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10196
10322
|
// verify required parameter 'groupId' is not null or undefined
|
|
10197
10323
|
assertParamExists('createGroupRole', 'groupId', groupId)
|
|
10324
|
+
// verify required parameter 'createGroupRoleRequest' is not null or undefined
|
|
10325
|
+
assertParamExists('createGroupRole', 'createGroupRoleRequest', createGroupRoleRequest)
|
|
10198
10326
|
const localVarPath = `/groups/{groupId}/roles`
|
|
10199
10327
|
.replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
|
|
10200
10328
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -11114,15 +11242,17 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
11114
11242
|
* @summary Respond Group Join request
|
|
11115
11243
|
* @param {string} groupId Must be a valid group ID.
|
|
11116
11244
|
* @param {string} userId Must be a valid user ID.
|
|
11117
|
-
* @param {RespondGroupJoinRequest}
|
|
11245
|
+
* @param {RespondGroupJoinRequest} respondGroupJoinRequest
|
|
11118
11246
|
* @param {*} [options] Override http request option.
|
|
11119
11247
|
* @throws {RequiredError}
|
|
11120
11248
|
*/
|
|
11121
|
-
respondGroupJoinRequest: async (groupId: string, userId: string, respondGroupJoinRequest
|
|
11249
|
+
respondGroupJoinRequest: async (groupId: string, userId: string, respondGroupJoinRequest: RespondGroupJoinRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11122
11250
|
// verify required parameter 'groupId' is not null or undefined
|
|
11123
11251
|
assertParamExists('respondGroupJoinRequest', 'groupId', groupId)
|
|
11124
11252
|
// verify required parameter 'userId' is not null or undefined
|
|
11125
11253
|
assertParamExists('respondGroupJoinRequest', 'userId', userId)
|
|
11254
|
+
// verify required parameter 'respondGroupJoinRequest' is not null or undefined
|
|
11255
|
+
assertParamExists('respondGroupJoinRequest', 'respondGroupJoinRequest', respondGroupJoinRequest)
|
|
11126
11256
|
const localVarPath = `/groups/{groupId}/requests/{userId}`
|
|
11127
11257
|
.replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)))
|
|
11128
11258
|
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
@@ -11425,11 +11555,11 @@ export const GroupsApiFp = function(configuration?: Configuration) {
|
|
|
11425
11555
|
* @summary Add Group Gallery Image
|
|
11426
11556
|
* @param {string} groupId Must be a valid group ID.
|
|
11427
11557
|
* @param {string} groupGalleryId Must be a valid group gallery ID.
|
|
11428
|
-
* @param {AddGroupGalleryImageRequest}
|
|
11558
|
+
* @param {AddGroupGalleryImageRequest} addGroupGalleryImageRequest
|
|
11429
11559
|
* @param {*} [options] Override http request option.
|
|
11430
11560
|
* @throws {RequiredError}
|
|
11431
11561
|
*/
|
|
11432
|
-
async addGroupGalleryImage(groupId: string, groupGalleryId: string, addGroupGalleryImageRequest
|
|
11562
|
+
async addGroupGalleryImage(groupId: string, groupGalleryId: string, addGroupGalleryImageRequest: AddGroupGalleryImageRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupGalleryImage>> {
|
|
11433
11563
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addGroupGalleryImage(groupId, groupGalleryId, addGroupGalleryImageRequest, options);
|
|
11434
11564
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11435
11565
|
},
|
|
@@ -11450,11 +11580,11 @@ export const GroupsApiFp = function(configuration?: Configuration) {
|
|
|
11450
11580
|
* Bans a user from a Group.
|
|
11451
11581
|
* @summary Ban Group Member
|
|
11452
11582
|
* @param {string} groupId Must be a valid group ID.
|
|
11453
|
-
* @param {BanGroupMemberRequest}
|
|
11583
|
+
* @param {BanGroupMemberRequest} banGroupMemberRequest
|
|
11454
11584
|
* @param {*} [options] Override http request option.
|
|
11455
11585
|
* @throws {RequiredError}
|
|
11456
11586
|
*/
|
|
11457
|
-
async banGroupMember(groupId: string, banGroupMemberRequest
|
|
11587
|
+
async banGroupMember(groupId: string, banGroupMemberRequest: BanGroupMemberRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupMember>> {
|
|
11458
11588
|
const localVarAxiosArgs = await localVarAxiosParamCreator.banGroupMember(groupId, banGroupMemberRequest, options);
|
|
11459
11589
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11460
11590
|
},
|
|
@@ -11472,11 +11602,11 @@ export const GroupsApiFp = function(configuration?: Configuration) {
|
|
|
11472
11602
|
/**
|
|
11473
11603
|
* Creates a Group and returns a Group object. **Requires VRC+ Subscription.**
|
|
11474
11604
|
* @summary Create Group
|
|
11475
|
-
* @param {CreateGroupRequest}
|
|
11605
|
+
* @param {CreateGroupRequest} createGroupRequest
|
|
11476
11606
|
* @param {*} [options] Override http request option.
|
|
11477
11607
|
* @throws {RequiredError}
|
|
11478
11608
|
*/
|
|
11479
|
-
async createGroup(createGroupRequest
|
|
11609
|
+
async createGroup(createGroupRequest: CreateGroupRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Group>> {
|
|
11480
11610
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createGroup(createGroupRequest, options);
|
|
11481
11611
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11482
11612
|
},
|
|
@@ -11484,11 +11614,11 @@ export const GroupsApiFp = function(configuration?: Configuration) {
|
|
|
11484
11614
|
* Creates an Announcement for a Group.
|
|
11485
11615
|
* @summary Create Group Announcement
|
|
11486
11616
|
* @param {string} groupId Must be a valid group ID.
|
|
11487
|
-
* @param {CreateGroupAnnouncementRequest}
|
|
11617
|
+
* @param {CreateGroupAnnouncementRequest} createGroupAnnouncementRequest
|
|
11488
11618
|
* @param {*} [options] Override http request option.
|
|
11489
11619
|
* @throws {RequiredError}
|
|
11490
11620
|
*/
|
|
11491
|
-
async createGroupAnnouncement(groupId: string, createGroupAnnouncementRequest
|
|
11621
|
+
async createGroupAnnouncement(groupId: string, createGroupAnnouncementRequest: CreateGroupAnnouncementRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupAnnouncement>> {
|
|
11492
11622
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createGroupAnnouncement(groupId, createGroupAnnouncementRequest, options);
|
|
11493
11623
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11494
11624
|
},
|
|
@@ -11496,11 +11626,11 @@ export const GroupsApiFp = function(configuration?: Configuration) {
|
|
|
11496
11626
|
* Creates a gallery for a Group.
|
|
11497
11627
|
* @summary Create Group Gallery
|
|
11498
11628
|
* @param {string} groupId Must be a valid group ID.
|
|
11499
|
-
* @param {CreateGroupGalleryRequest}
|
|
11629
|
+
* @param {CreateGroupGalleryRequest} createGroupGalleryRequest
|
|
11500
11630
|
* @param {*} [options] Override http request option.
|
|
11501
11631
|
* @throws {RequiredError}
|
|
11502
11632
|
*/
|
|
11503
|
-
async createGroupGallery(groupId: string, createGroupGalleryRequest
|
|
11633
|
+
async createGroupGallery(groupId: string, createGroupGalleryRequest: CreateGroupGalleryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupGallery>> {
|
|
11504
11634
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createGroupGallery(groupId, createGroupGalleryRequest, options);
|
|
11505
11635
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11506
11636
|
},
|
|
@@ -11508,11 +11638,11 @@ export const GroupsApiFp = function(configuration?: Configuration) {
|
|
|
11508
11638
|
* Sends an invite to a user to join the group.
|
|
11509
11639
|
* @summary Invite User to Group
|
|
11510
11640
|
* @param {string} groupId Must be a valid group ID.
|
|
11511
|
-
* @param {CreateGroupInviteRequest}
|
|
11641
|
+
* @param {CreateGroupInviteRequest} createGroupInviteRequest
|
|
11512
11642
|
* @param {*} [options] Override http request option.
|
|
11513
11643
|
* @throws {RequiredError}
|
|
11514
11644
|
*/
|
|
11515
|
-
async createGroupInvite(groupId: string, createGroupInviteRequest
|
|
11645
|
+
async createGroupInvite(groupId: string, createGroupInviteRequest: CreateGroupInviteRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
11516
11646
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createGroupInvite(groupId, createGroupInviteRequest, options);
|
|
11517
11647
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11518
11648
|
},
|
|
@@ -11520,11 +11650,11 @@ export const GroupsApiFp = function(configuration?: Configuration) {
|
|
|
11520
11650
|
* Create a Group role.
|
|
11521
11651
|
* @summary Create GroupRole
|
|
11522
11652
|
* @param {string} groupId Must be a valid group ID.
|
|
11523
|
-
* @param {CreateGroupRoleRequest}
|
|
11653
|
+
* @param {CreateGroupRoleRequest} createGroupRoleRequest
|
|
11524
11654
|
* @param {*} [options] Override http request option.
|
|
11525
11655
|
* @throws {RequiredError}
|
|
11526
11656
|
*/
|
|
11527
|
-
async createGroupRole(groupId: string, createGroupRoleRequest
|
|
11657
|
+
async createGroupRole(groupId: string, createGroupRoleRequest: CreateGroupRoleRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupRole>> {
|
|
11528
11658
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createGroupRole(groupId, createGroupRoleRequest, options);
|
|
11529
11659
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11530
11660
|
},
|
|
@@ -11791,11 +11921,11 @@ export const GroupsApiFp = function(configuration?: Configuration) {
|
|
|
11791
11921
|
* @summary Respond Group Join request
|
|
11792
11922
|
* @param {string} groupId Must be a valid group ID.
|
|
11793
11923
|
* @param {string} userId Must be a valid user ID.
|
|
11794
|
-
* @param {RespondGroupJoinRequest}
|
|
11924
|
+
* @param {RespondGroupJoinRequest} respondGroupJoinRequest
|
|
11795
11925
|
* @param {*} [options] Override http request option.
|
|
11796
11926
|
* @throws {RequiredError}
|
|
11797
11927
|
*/
|
|
11798
|
-
async respondGroupJoinRequest(groupId: string, userId: string, respondGroupJoinRequest
|
|
11928
|
+
async respondGroupJoinRequest(groupId: string, userId: string, respondGroupJoinRequest: RespondGroupJoinRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
11799
11929
|
const localVarAxiosArgs = await localVarAxiosParamCreator.respondGroupJoinRequest(groupId, userId, respondGroupJoinRequest, options);
|
|
11800
11930
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11801
11931
|
},
|
|
@@ -11890,11 +12020,11 @@ export const GroupsApiFactory = function (configuration?: Configuration, basePat
|
|
|
11890
12020
|
* @summary Add Group Gallery Image
|
|
11891
12021
|
* @param {string} groupId Must be a valid group ID.
|
|
11892
12022
|
* @param {string} groupGalleryId Must be a valid group gallery ID.
|
|
11893
|
-
* @param {AddGroupGalleryImageRequest}
|
|
12023
|
+
* @param {AddGroupGalleryImageRequest} addGroupGalleryImageRequest
|
|
11894
12024
|
* @param {*} [options] Override http request option.
|
|
11895
12025
|
* @throws {RequiredError}
|
|
11896
12026
|
*/
|
|
11897
|
-
addGroupGalleryImage(groupId: string, groupGalleryId: string, addGroupGalleryImageRequest
|
|
12027
|
+
addGroupGalleryImage(groupId: string, groupGalleryId: string, addGroupGalleryImageRequest: AddGroupGalleryImageRequest, options?: any): AxiosPromise<GroupGalleryImage> {
|
|
11898
12028
|
return localVarFp.addGroupGalleryImage(groupId, groupGalleryId, addGroupGalleryImageRequest, options).then((request) => request(axios, basePath));
|
|
11899
12029
|
},
|
|
11900
12030
|
/**
|
|
@@ -11913,11 +12043,11 @@ export const GroupsApiFactory = function (configuration?: Configuration, basePat
|
|
|
11913
12043
|
* Bans a user from a Group.
|
|
11914
12044
|
* @summary Ban Group Member
|
|
11915
12045
|
* @param {string} groupId Must be a valid group ID.
|
|
11916
|
-
* @param {BanGroupMemberRequest}
|
|
12046
|
+
* @param {BanGroupMemberRequest} banGroupMemberRequest
|
|
11917
12047
|
* @param {*} [options] Override http request option.
|
|
11918
12048
|
* @throws {RequiredError}
|
|
11919
12049
|
*/
|
|
11920
|
-
banGroupMember(groupId: string, banGroupMemberRequest
|
|
12050
|
+
banGroupMember(groupId: string, banGroupMemberRequest: BanGroupMemberRequest, options?: any): AxiosPromise<GroupMember> {
|
|
11921
12051
|
return localVarFp.banGroupMember(groupId, banGroupMemberRequest, options).then((request) => request(axios, basePath));
|
|
11922
12052
|
},
|
|
11923
12053
|
/**
|
|
@@ -11933,55 +12063,55 @@ export const GroupsApiFactory = function (configuration?: Configuration, basePat
|
|
|
11933
12063
|
/**
|
|
11934
12064
|
* Creates a Group and returns a Group object. **Requires VRC+ Subscription.**
|
|
11935
12065
|
* @summary Create Group
|
|
11936
|
-
* @param {CreateGroupRequest}
|
|
12066
|
+
* @param {CreateGroupRequest} createGroupRequest
|
|
11937
12067
|
* @param {*} [options] Override http request option.
|
|
11938
12068
|
* @throws {RequiredError}
|
|
11939
12069
|
*/
|
|
11940
|
-
createGroup(createGroupRequest
|
|
12070
|
+
createGroup(createGroupRequest: CreateGroupRequest, options?: any): AxiosPromise<Group> {
|
|
11941
12071
|
return localVarFp.createGroup(createGroupRequest, options).then((request) => request(axios, basePath));
|
|
11942
12072
|
},
|
|
11943
12073
|
/**
|
|
11944
12074
|
* Creates an Announcement for a Group.
|
|
11945
12075
|
* @summary Create Group Announcement
|
|
11946
12076
|
* @param {string} groupId Must be a valid group ID.
|
|
11947
|
-
* @param {CreateGroupAnnouncementRequest}
|
|
12077
|
+
* @param {CreateGroupAnnouncementRequest} createGroupAnnouncementRequest
|
|
11948
12078
|
* @param {*} [options] Override http request option.
|
|
11949
12079
|
* @throws {RequiredError}
|
|
11950
12080
|
*/
|
|
11951
|
-
createGroupAnnouncement(groupId: string, createGroupAnnouncementRequest
|
|
12081
|
+
createGroupAnnouncement(groupId: string, createGroupAnnouncementRequest: CreateGroupAnnouncementRequest, options?: any): AxiosPromise<GroupAnnouncement> {
|
|
11952
12082
|
return localVarFp.createGroupAnnouncement(groupId, createGroupAnnouncementRequest, options).then((request) => request(axios, basePath));
|
|
11953
12083
|
},
|
|
11954
12084
|
/**
|
|
11955
12085
|
* Creates a gallery for a Group.
|
|
11956
12086
|
* @summary Create Group Gallery
|
|
11957
12087
|
* @param {string} groupId Must be a valid group ID.
|
|
11958
|
-
* @param {CreateGroupGalleryRequest}
|
|
12088
|
+
* @param {CreateGroupGalleryRequest} createGroupGalleryRequest
|
|
11959
12089
|
* @param {*} [options] Override http request option.
|
|
11960
12090
|
* @throws {RequiredError}
|
|
11961
12091
|
*/
|
|
11962
|
-
createGroupGallery(groupId: string, createGroupGalleryRequest
|
|
12092
|
+
createGroupGallery(groupId: string, createGroupGalleryRequest: CreateGroupGalleryRequest, options?: any): AxiosPromise<GroupGallery> {
|
|
11963
12093
|
return localVarFp.createGroupGallery(groupId, createGroupGalleryRequest, options).then((request) => request(axios, basePath));
|
|
11964
12094
|
},
|
|
11965
12095
|
/**
|
|
11966
12096
|
* Sends an invite to a user to join the group.
|
|
11967
12097
|
* @summary Invite User to Group
|
|
11968
12098
|
* @param {string} groupId Must be a valid group ID.
|
|
11969
|
-
* @param {CreateGroupInviteRequest}
|
|
12099
|
+
* @param {CreateGroupInviteRequest} createGroupInviteRequest
|
|
11970
12100
|
* @param {*} [options] Override http request option.
|
|
11971
12101
|
* @throws {RequiredError}
|
|
11972
12102
|
*/
|
|
11973
|
-
createGroupInvite(groupId: string, createGroupInviteRequest
|
|
12103
|
+
createGroupInvite(groupId: string, createGroupInviteRequest: CreateGroupInviteRequest, options?: any): AxiosPromise<void> {
|
|
11974
12104
|
return localVarFp.createGroupInvite(groupId, createGroupInviteRequest, options).then((request) => request(axios, basePath));
|
|
11975
12105
|
},
|
|
11976
12106
|
/**
|
|
11977
12107
|
* Create a Group role.
|
|
11978
12108
|
* @summary Create GroupRole
|
|
11979
12109
|
* @param {string} groupId Must be a valid group ID.
|
|
11980
|
-
* @param {CreateGroupRoleRequest}
|
|
12110
|
+
* @param {CreateGroupRoleRequest} createGroupRoleRequest
|
|
11981
12111
|
* @param {*} [options] Override http request option.
|
|
11982
12112
|
* @throws {RequiredError}
|
|
11983
12113
|
*/
|
|
11984
|
-
createGroupRole(groupId: string, createGroupRoleRequest
|
|
12114
|
+
createGroupRole(groupId: string, createGroupRoleRequest: CreateGroupRoleRequest, options?: any): AxiosPromise<GroupRole> {
|
|
11985
12115
|
return localVarFp.createGroupRole(groupId, createGroupRoleRequest, options).then((request) => request(axios, basePath));
|
|
11986
12116
|
},
|
|
11987
12117
|
/**
|
|
@@ -12226,11 +12356,11 @@ export const GroupsApiFactory = function (configuration?: Configuration, basePat
|
|
|
12226
12356
|
* @summary Respond Group Join request
|
|
12227
12357
|
* @param {string} groupId Must be a valid group ID.
|
|
12228
12358
|
* @param {string} userId Must be a valid user ID.
|
|
12229
|
-
* @param {RespondGroupJoinRequest}
|
|
12359
|
+
* @param {RespondGroupJoinRequest} respondGroupJoinRequest
|
|
12230
12360
|
* @param {*} [options] Override http request option.
|
|
12231
12361
|
* @throws {RequiredError}
|
|
12232
12362
|
*/
|
|
12233
|
-
respondGroupJoinRequest(groupId: string, userId: string, respondGroupJoinRequest
|
|
12363
|
+
respondGroupJoinRequest(groupId: string, userId: string, respondGroupJoinRequest: RespondGroupJoinRequest, options?: any): AxiosPromise<void> {
|
|
12234
12364
|
return localVarFp.respondGroupJoinRequest(groupId, userId, respondGroupJoinRequest, options).then((request) => request(axios, basePath));
|
|
12235
12365
|
},
|
|
12236
12366
|
/**
|
|
@@ -12318,12 +12448,12 @@ export class GroupsApi extends BaseAPI {
|
|
|
12318
12448
|
* @summary Add Group Gallery Image
|
|
12319
12449
|
* @param {string} groupId Must be a valid group ID.
|
|
12320
12450
|
* @param {string} groupGalleryId Must be a valid group gallery ID.
|
|
12321
|
-
* @param {AddGroupGalleryImageRequest}
|
|
12451
|
+
* @param {AddGroupGalleryImageRequest} addGroupGalleryImageRequest
|
|
12322
12452
|
* @param {*} [options] Override http request option.
|
|
12323
12453
|
* @throws {RequiredError}
|
|
12324
12454
|
* @memberof GroupsApi
|
|
12325
12455
|
*/
|
|
12326
|
-
public addGroupGalleryImage(groupId: string, groupGalleryId: string, addGroupGalleryImageRequest
|
|
12456
|
+
public addGroupGalleryImage(groupId: string, groupGalleryId: string, addGroupGalleryImageRequest: AddGroupGalleryImageRequest, options?: AxiosRequestConfig) {
|
|
12327
12457
|
return GroupsApiFp(this.configuration).addGroupGalleryImage(groupId, groupGalleryId, addGroupGalleryImageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12328
12458
|
}
|
|
12329
12459
|
|
|
@@ -12345,12 +12475,12 @@ export class GroupsApi extends BaseAPI {
|
|
|
12345
12475
|
* Bans a user from a Group.
|
|
12346
12476
|
* @summary Ban Group Member
|
|
12347
12477
|
* @param {string} groupId Must be a valid group ID.
|
|
12348
|
-
* @param {BanGroupMemberRequest}
|
|
12478
|
+
* @param {BanGroupMemberRequest} banGroupMemberRequest
|
|
12349
12479
|
* @param {*} [options] Override http request option.
|
|
12350
12480
|
* @throws {RequiredError}
|
|
12351
12481
|
* @memberof GroupsApi
|
|
12352
12482
|
*/
|
|
12353
|
-
public banGroupMember(groupId: string, banGroupMemberRequest
|
|
12483
|
+
public banGroupMember(groupId: string, banGroupMemberRequest: BanGroupMemberRequest, options?: AxiosRequestConfig) {
|
|
12354
12484
|
return GroupsApiFp(this.configuration).banGroupMember(groupId, banGroupMemberRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12355
12485
|
}
|
|
12356
12486
|
|
|
@@ -12369,12 +12499,12 @@ export class GroupsApi extends BaseAPI {
|
|
|
12369
12499
|
/**
|
|
12370
12500
|
* Creates a Group and returns a Group object. **Requires VRC+ Subscription.**
|
|
12371
12501
|
* @summary Create Group
|
|
12372
|
-
* @param {CreateGroupRequest}
|
|
12502
|
+
* @param {CreateGroupRequest} createGroupRequest
|
|
12373
12503
|
* @param {*} [options] Override http request option.
|
|
12374
12504
|
* @throws {RequiredError}
|
|
12375
12505
|
* @memberof GroupsApi
|
|
12376
12506
|
*/
|
|
12377
|
-
public createGroup(createGroupRequest
|
|
12507
|
+
public createGroup(createGroupRequest: CreateGroupRequest, options?: AxiosRequestConfig) {
|
|
12378
12508
|
return GroupsApiFp(this.configuration).createGroup(createGroupRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12379
12509
|
}
|
|
12380
12510
|
|
|
@@ -12382,12 +12512,12 @@ export class GroupsApi extends BaseAPI {
|
|
|
12382
12512
|
* Creates an Announcement for a Group.
|
|
12383
12513
|
* @summary Create Group Announcement
|
|
12384
12514
|
* @param {string} groupId Must be a valid group ID.
|
|
12385
|
-
* @param {CreateGroupAnnouncementRequest}
|
|
12515
|
+
* @param {CreateGroupAnnouncementRequest} createGroupAnnouncementRequest
|
|
12386
12516
|
* @param {*} [options] Override http request option.
|
|
12387
12517
|
* @throws {RequiredError}
|
|
12388
12518
|
* @memberof GroupsApi
|
|
12389
12519
|
*/
|
|
12390
|
-
public createGroupAnnouncement(groupId: string, createGroupAnnouncementRequest
|
|
12520
|
+
public createGroupAnnouncement(groupId: string, createGroupAnnouncementRequest: CreateGroupAnnouncementRequest, options?: AxiosRequestConfig) {
|
|
12391
12521
|
return GroupsApiFp(this.configuration).createGroupAnnouncement(groupId, createGroupAnnouncementRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12392
12522
|
}
|
|
12393
12523
|
|
|
@@ -12395,12 +12525,12 @@ export class GroupsApi extends BaseAPI {
|
|
|
12395
12525
|
* Creates a gallery for a Group.
|
|
12396
12526
|
* @summary Create Group Gallery
|
|
12397
12527
|
* @param {string} groupId Must be a valid group ID.
|
|
12398
|
-
* @param {CreateGroupGalleryRequest}
|
|
12528
|
+
* @param {CreateGroupGalleryRequest} createGroupGalleryRequest
|
|
12399
12529
|
* @param {*} [options] Override http request option.
|
|
12400
12530
|
* @throws {RequiredError}
|
|
12401
12531
|
* @memberof GroupsApi
|
|
12402
12532
|
*/
|
|
12403
|
-
public createGroupGallery(groupId: string, createGroupGalleryRequest
|
|
12533
|
+
public createGroupGallery(groupId: string, createGroupGalleryRequest: CreateGroupGalleryRequest, options?: AxiosRequestConfig) {
|
|
12404
12534
|
return GroupsApiFp(this.configuration).createGroupGallery(groupId, createGroupGalleryRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12405
12535
|
}
|
|
12406
12536
|
|
|
@@ -12408,12 +12538,12 @@ export class GroupsApi extends BaseAPI {
|
|
|
12408
12538
|
* Sends an invite to a user to join the group.
|
|
12409
12539
|
* @summary Invite User to Group
|
|
12410
12540
|
* @param {string} groupId Must be a valid group ID.
|
|
12411
|
-
* @param {CreateGroupInviteRequest}
|
|
12541
|
+
* @param {CreateGroupInviteRequest} createGroupInviteRequest
|
|
12412
12542
|
* @param {*} [options] Override http request option.
|
|
12413
12543
|
* @throws {RequiredError}
|
|
12414
12544
|
* @memberof GroupsApi
|
|
12415
12545
|
*/
|
|
12416
|
-
public createGroupInvite(groupId: string, createGroupInviteRequest
|
|
12546
|
+
public createGroupInvite(groupId: string, createGroupInviteRequest: CreateGroupInviteRequest, options?: AxiosRequestConfig) {
|
|
12417
12547
|
return GroupsApiFp(this.configuration).createGroupInvite(groupId, createGroupInviteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12418
12548
|
}
|
|
12419
12549
|
|
|
@@ -12421,12 +12551,12 @@ export class GroupsApi extends BaseAPI {
|
|
|
12421
12551
|
* Create a Group role.
|
|
12422
12552
|
* @summary Create GroupRole
|
|
12423
12553
|
* @param {string} groupId Must be a valid group ID.
|
|
12424
|
-
* @param {CreateGroupRoleRequest}
|
|
12554
|
+
* @param {CreateGroupRoleRequest} createGroupRoleRequest
|
|
12425
12555
|
* @param {*} [options] Override http request option.
|
|
12426
12556
|
* @throws {RequiredError}
|
|
12427
12557
|
* @memberof GroupsApi
|
|
12428
12558
|
*/
|
|
12429
|
-
public createGroupRole(groupId: string, createGroupRoleRequest
|
|
12559
|
+
public createGroupRole(groupId: string, createGroupRoleRequest: CreateGroupRoleRequest, options?: AxiosRequestConfig) {
|
|
12430
12560
|
return GroupsApiFp(this.configuration).createGroupRole(groupId, createGroupRoleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12431
12561
|
}
|
|
12432
12562
|
|
|
@@ -12714,12 +12844,12 @@ export class GroupsApi extends BaseAPI {
|
|
|
12714
12844
|
* @summary Respond Group Join request
|
|
12715
12845
|
* @param {string} groupId Must be a valid group ID.
|
|
12716
12846
|
* @param {string} userId Must be a valid user ID.
|
|
12717
|
-
* @param {RespondGroupJoinRequest}
|
|
12847
|
+
* @param {RespondGroupJoinRequest} respondGroupJoinRequest
|
|
12718
12848
|
* @param {*} [options] Override http request option.
|
|
12719
12849
|
* @throws {RequiredError}
|
|
12720
12850
|
* @memberof GroupsApi
|
|
12721
12851
|
*/
|
|
12722
|
-
public respondGroupJoinRequest(groupId: string, userId: string, respondGroupJoinRequest
|
|
12852
|
+
public respondGroupJoinRequest(groupId: string, userId: string, respondGroupJoinRequest: RespondGroupJoinRequest, options?: AxiosRequestConfig) {
|
|
12723
12853
|
return GroupsApiFp(this.configuration).respondGroupJoinRequest(groupId, userId, respondGroupJoinRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12724
12854
|
}
|
|
12725
12855
|
|
|
@@ -12813,6 +12943,51 @@ export class GroupsApi extends BaseAPI {
|
|
|
12813
12943
|
*/
|
|
12814
12944
|
export const InstancesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
12815
12945
|
return {
|
|
12946
|
+
/**
|
|
12947
|
+
* 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.
|
|
12948
|
+
* @summary Close Instance
|
|
12949
|
+
* @param {string} worldId Must be a valid world ID.
|
|
12950
|
+
* @param {string} instanceId Must be a valid instance ID.
|
|
12951
|
+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
12952
|
+
* @param {*} [options] Override http request option.
|
|
12953
|
+
* @throws {RequiredError}
|
|
12954
|
+
*/
|
|
12955
|
+
closeInstance: async (worldId: string, instanceId: string, hardClose?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
12956
|
+
// verify required parameter 'worldId' is not null or undefined
|
|
12957
|
+
assertParamExists('closeInstance', 'worldId', worldId)
|
|
12958
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
12959
|
+
assertParamExists('closeInstance', 'instanceId', instanceId)
|
|
12960
|
+
const localVarPath = `/instances/{worldId}:{instanceId}`
|
|
12961
|
+
.replace(`{${"worldId"}}`, encodeURIComponent(String(worldId)))
|
|
12962
|
+
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
12963
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12964
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12965
|
+
let baseOptions;
|
|
12966
|
+
if (configuration) {
|
|
12967
|
+
baseOptions = configuration.baseOptions;
|
|
12968
|
+
}
|
|
12969
|
+
|
|
12970
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
12971
|
+
const localVarHeaderParameter = {} as any;
|
|
12972
|
+
const localVarQueryParameter = {} as any;
|
|
12973
|
+
|
|
12974
|
+
// authentication authCookie required
|
|
12975
|
+
|
|
12976
|
+
if (hardClose !== undefined) {
|
|
12977
|
+
localVarQueryParameter['hardClose'] = hardClose;
|
|
12978
|
+
}
|
|
12979
|
+
|
|
12980
|
+
|
|
12981
|
+
|
|
12982
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12983
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12984
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
12985
|
+
|
|
12986
|
+
return {
|
|
12987
|
+
url: toPathString(localVarUrlObj),
|
|
12988
|
+
options: localVarRequestOptions,
|
|
12989
|
+
};
|
|
12990
|
+
},
|
|
12816
12991
|
/**
|
|
12817
12992
|
* 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\"!
|
|
12818
12993
|
* @summary Get Instance
|
|
@@ -12979,6 +13154,19 @@ export const InstancesApiAxiosParamCreator = function (configuration?: Configura
|
|
|
12979
13154
|
export const InstancesApiFp = function(configuration?: Configuration) {
|
|
12980
13155
|
const localVarAxiosParamCreator = InstancesApiAxiosParamCreator(configuration)
|
|
12981
13156
|
return {
|
|
13157
|
+
/**
|
|
13158
|
+
* 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.
|
|
13159
|
+
* @summary Close Instance
|
|
13160
|
+
* @param {string} worldId Must be a valid world ID.
|
|
13161
|
+
* @param {string} instanceId Must be a valid instance ID.
|
|
13162
|
+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
13163
|
+
* @param {*} [options] Override http request option.
|
|
13164
|
+
* @throws {RequiredError}
|
|
13165
|
+
*/
|
|
13166
|
+
async closeInstance(worldId: string, instanceId: string, hardClose?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Instance>> {
|
|
13167
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.closeInstance(worldId, instanceId, hardClose, options);
|
|
13168
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13169
|
+
},
|
|
12982
13170
|
/**
|
|
12983
13171
|
* 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\"!
|
|
12984
13172
|
* @summary Get Instance
|
|
@@ -13036,6 +13224,18 @@ export const InstancesApiFp = function(configuration?: Configuration) {
|
|
|
13036
13224
|
export const InstancesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
13037
13225
|
const localVarFp = InstancesApiFp(configuration)
|
|
13038
13226
|
return {
|
|
13227
|
+
/**
|
|
13228
|
+
* 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.
|
|
13229
|
+
* @summary Close Instance
|
|
13230
|
+
* @param {string} worldId Must be a valid world ID.
|
|
13231
|
+
* @param {string} instanceId Must be a valid instance ID.
|
|
13232
|
+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
13233
|
+
* @param {*} [options] Override http request option.
|
|
13234
|
+
* @throws {RequiredError}
|
|
13235
|
+
*/
|
|
13236
|
+
closeInstance(worldId: string, instanceId: string, hardClose?: boolean, options?: any): AxiosPromise<Instance> {
|
|
13237
|
+
return localVarFp.closeInstance(worldId, instanceId, hardClose, options).then((request) => request(axios, basePath));
|
|
13238
|
+
},
|
|
13039
13239
|
/**
|
|
13040
13240
|
* 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\"!
|
|
13041
13241
|
* @summary Get Instance
|
|
@@ -13089,6 +13289,20 @@ export const InstancesApiFactory = function (configuration?: Configuration, base
|
|
|
13089
13289
|
* @extends {BaseAPI}
|
|
13090
13290
|
*/
|
|
13091
13291
|
export class InstancesApi extends BaseAPI {
|
|
13292
|
+
/**
|
|
13293
|
+
* 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.
|
|
13294
|
+
* @summary Close Instance
|
|
13295
|
+
* @param {string} worldId Must be a valid world ID.
|
|
13296
|
+
* @param {string} instanceId Must be a valid instance ID.
|
|
13297
|
+
* @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
|
|
13298
|
+
* @param {*} [options] Override http request option.
|
|
13299
|
+
* @throws {RequiredError}
|
|
13300
|
+
* @memberof InstancesApi
|
|
13301
|
+
*/
|
|
13302
|
+
public closeInstance(worldId: string, instanceId: string, hardClose?: boolean, options?: AxiosRequestConfig) {
|
|
13303
|
+
return InstancesApiFp(this.configuration).closeInstance(worldId, instanceId, hardClose, options).then((request) => request(this.axios, this.basePath));
|
|
13304
|
+
}
|
|
13305
|
+
|
|
13092
13306
|
/**
|
|
13093
13307
|
* 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\"!
|
|
13094
13308
|
* @summary Get Instance
|
|
@@ -13276,13 +13490,15 @@ export const InviteApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13276
13490
|
* Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
|
13277
13491
|
* @summary Invite User
|
|
13278
13492
|
* @param {string} userId Must be a valid user ID.
|
|
13279
|
-
* @param {InviteRequest}
|
|
13493
|
+
* @param {InviteRequest} inviteRequest Slot number of the Invite Message to use when inviting a user.
|
|
13280
13494
|
* @param {*} [options] Override http request option.
|
|
13281
13495
|
* @throws {RequiredError}
|
|
13282
13496
|
*/
|
|
13283
|
-
inviteUser: async (userId: string, inviteRequest
|
|
13497
|
+
inviteUser: async (userId: string, inviteRequest: InviteRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13284
13498
|
// verify required parameter 'userId' is not null or undefined
|
|
13285
13499
|
assertParamExists('inviteUser', 'userId', userId)
|
|
13500
|
+
// verify required parameter 'inviteRequest' is not null or undefined
|
|
13501
|
+
assertParamExists('inviteUser', 'inviteRequest', inviteRequest)
|
|
13286
13502
|
const localVarPath = `/invite/{userId}`
|
|
13287
13503
|
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
13288
13504
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -13400,13 +13616,15 @@ export const InviteApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13400
13616
|
* Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
|
|
13401
13617
|
* @summary Respond Invite
|
|
13402
13618
|
* @param {string} notificationId Must be a valid notification ID.
|
|
13403
|
-
* @param {InviteResponse}
|
|
13619
|
+
* @param {InviteResponse} inviteResponse Slot number of the Response Message to use when responding to a user.
|
|
13404
13620
|
* @param {*} [options] Override http request option.
|
|
13405
13621
|
* @throws {RequiredError}
|
|
13406
13622
|
*/
|
|
13407
|
-
respondInvite: async (notificationId: string, inviteResponse
|
|
13623
|
+
respondInvite: async (notificationId: string, inviteResponse: InviteResponse, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13408
13624
|
// verify required parameter 'notificationId' is not null or undefined
|
|
13409
13625
|
assertParamExists('respondInvite', 'notificationId', notificationId)
|
|
13626
|
+
// verify required parameter 'inviteResponse' is not null or undefined
|
|
13627
|
+
assertParamExists('respondInvite', 'inviteResponse', inviteResponse)
|
|
13410
13628
|
const localVarPath = `/invite/{notificationId}/response`
|
|
13411
13629
|
.replace(`{${"notificationId"}}`, encodeURIComponent(String(notificationId)));
|
|
13412
13630
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -13535,11 +13753,11 @@ export const InviteApiFp = function(configuration?: Configuration) {
|
|
|
13535
13753
|
* Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
|
13536
13754
|
* @summary Invite User
|
|
13537
13755
|
* @param {string} userId Must be a valid user ID.
|
|
13538
|
-
* @param {InviteRequest}
|
|
13756
|
+
* @param {InviteRequest} inviteRequest Slot number of the Invite Message to use when inviting a user.
|
|
13539
13757
|
* @param {*} [options] Override http request option.
|
|
13540
13758
|
* @throws {RequiredError}
|
|
13541
13759
|
*/
|
|
13542
|
-
async inviteUser(userId: string, inviteRequest
|
|
13760
|
+
async inviteUser(userId: string, inviteRequest: InviteRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SentNotification>> {
|
|
13543
13761
|
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(userId, inviteRequest, options);
|
|
13544
13762
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13545
13763
|
},
|
|
@@ -13572,11 +13790,11 @@ export const InviteApiFp = function(configuration?: Configuration) {
|
|
|
13572
13790
|
* Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
|
|
13573
13791
|
* @summary Respond Invite
|
|
13574
13792
|
* @param {string} notificationId Must be a valid notification ID.
|
|
13575
|
-
* @param {InviteResponse}
|
|
13793
|
+
* @param {InviteResponse} inviteResponse Slot number of the Response Message to use when responding to a user.
|
|
13576
13794
|
* @param {*} [options] Override http request option.
|
|
13577
13795
|
* @throws {RequiredError}
|
|
13578
13796
|
*/
|
|
13579
|
-
async respondInvite(notificationId: string, inviteResponse
|
|
13797
|
+
async respondInvite(notificationId: string, inviteResponse: InviteResponse, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>> {
|
|
13580
13798
|
const localVarAxiosArgs = await localVarAxiosParamCreator.respondInvite(notificationId, inviteResponse, options);
|
|
13581
13799
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
13582
13800
|
},
|
|
@@ -13642,11 +13860,11 @@ export const InviteApiFactory = function (configuration?: Configuration, basePat
|
|
|
13642
13860
|
* Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
|
13643
13861
|
* @summary Invite User
|
|
13644
13862
|
* @param {string} userId Must be a valid user ID.
|
|
13645
|
-
* @param {InviteRequest}
|
|
13863
|
+
* @param {InviteRequest} inviteRequest Slot number of the Invite Message to use when inviting a user.
|
|
13646
13864
|
* @param {*} [options] Override http request option.
|
|
13647
13865
|
* @throws {RequiredError}
|
|
13648
13866
|
*/
|
|
13649
|
-
inviteUser(userId: string, inviteRequest
|
|
13867
|
+
inviteUser(userId: string, inviteRequest: InviteRequest, options?: any): AxiosPromise<SentNotification> {
|
|
13650
13868
|
return localVarFp.inviteUser(userId, inviteRequest, options).then((request) => request(axios, basePath));
|
|
13651
13869
|
},
|
|
13652
13870
|
/**
|
|
@@ -13676,11 +13894,11 @@ export const InviteApiFactory = function (configuration?: Configuration, basePat
|
|
|
13676
13894
|
* Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
|
|
13677
13895
|
* @summary Respond Invite
|
|
13678
13896
|
* @param {string} notificationId Must be a valid notification ID.
|
|
13679
|
-
* @param {InviteResponse}
|
|
13897
|
+
* @param {InviteResponse} inviteResponse Slot number of the Response Message to use when responding to a user.
|
|
13680
13898
|
* @param {*} [options] Override http request option.
|
|
13681
13899
|
* @throws {RequiredError}
|
|
13682
13900
|
*/
|
|
13683
|
-
respondInvite(notificationId: string, inviteResponse
|
|
13901
|
+
respondInvite(notificationId: string, inviteResponse: InviteResponse, options?: any): AxiosPromise<Notification> {
|
|
13684
13902
|
return localVarFp.respondInvite(notificationId, inviteResponse, options).then((request) => request(axios, basePath));
|
|
13685
13903
|
},
|
|
13686
13904
|
/**
|
|
@@ -13750,12 +13968,12 @@ export class InviteApi extends BaseAPI {
|
|
|
13750
13968
|
* Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
|
13751
13969
|
* @summary Invite User
|
|
13752
13970
|
* @param {string} userId Must be a valid user ID.
|
|
13753
|
-
* @param {InviteRequest}
|
|
13971
|
+
* @param {InviteRequest} inviteRequest Slot number of the Invite Message to use when inviting a user.
|
|
13754
13972
|
* @param {*} [options] Override http request option.
|
|
13755
13973
|
* @throws {RequiredError}
|
|
13756
13974
|
* @memberof InviteApi
|
|
13757
13975
|
*/
|
|
13758
|
-
public inviteUser(userId: string, inviteRequest
|
|
13976
|
+
public inviteUser(userId: string, inviteRequest: InviteRequest, options?: AxiosRequestConfig) {
|
|
13759
13977
|
return InviteApiFp(this.configuration).inviteUser(userId, inviteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13760
13978
|
}
|
|
13761
13979
|
|
|
@@ -13790,12 +14008,12 @@ export class InviteApi extends BaseAPI {
|
|
|
13790
14008
|
* Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
|
|
13791
14009
|
* @summary Respond Invite
|
|
13792
14010
|
* @param {string} notificationId Must be a valid notification ID.
|
|
13793
|
-
* @param {InviteResponse}
|
|
14011
|
+
* @param {InviteResponse} inviteResponse Slot number of the Response Message to use when responding to a user.
|
|
13794
14012
|
* @param {*} [options] Override http request option.
|
|
13795
14013
|
* @throws {RequiredError}
|
|
13796
14014
|
* @memberof InviteApi
|
|
13797
14015
|
*/
|
|
13798
|
-
public respondInvite(notificationId: string, inviteResponse
|
|
14016
|
+
public respondInvite(notificationId: string, inviteResponse: InviteResponse, options?: AxiosRequestConfig) {
|
|
13799
14017
|
return InviteApiFp(this.configuration).respondInvite(notificationId, inviteResponse, options).then((request) => request(this.axios, this.basePath));
|
|
13800
14018
|
}
|
|
13801
14019
|
|
|
@@ -14557,11 +14775,13 @@ export const PlayermoderationApiAxiosParamCreator = function (configuration?: Co
|
|
|
14557
14775
|
/**
|
|
14558
14776
|
* 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.
|
|
14559
14777
|
* @summary Moderate User
|
|
14560
|
-
* @param {ModerateUserRequest}
|
|
14778
|
+
* @param {ModerateUserRequest} moderateUserRequest
|
|
14561
14779
|
* @param {*} [options] Override http request option.
|
|
14562
14780
|
* @throws {RequiredError}
|
|
14563
14781
|
*/
|
|
14564
|
-
moderateUser: async (moderateUserRequest
|
|
14782
|
+
moderateUser: async (moderateUserRequest: ModerateUserRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14783
|
+
// verify required parameter 'moderateUserRequest' is not null or undefined
|
|
14784
|
+
assertParamExists('moderateUser', 'moderateUserRequest', moderateUserRequest)
|
|
14565
14785
|
const localVarPath = `/auth/user/playermoderations`;
|
|
14566
14786
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14567
14787
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -14593,11 +14813,13 @@ export const PlayermoderationApiAxiosParamCreator = function (configuration?: Co
|
|
|
14593
14813
|
/**
|
|
14594
14814
|
* 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.
|
|
14595
14815
|
* @summary Unmoderate User
|
|
14596
|
-
* @param {ModerateUserRequest}
|
|
14816
|
+
* @param {ModerateUserRequest} moderateUserRequest
|
|
14597
14817
|
* @param {*} [options] Override http request option.
|
|
14598
14818
|
* @throws {RequiredError}
|
|
14599
14819
|
*/
|
|
14600
|
-
unmoderateUser: async (moderateUserRequest
|
|
14820
|
+
unmoderateUser: async (moderateUserRequest: ModerateUserRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
14821
|
+
// verify required parameter 'moderateUserRequest' is not null or undefined
|
|
14822
|
+
assertParamExists('unmoderateUser', 'moderateUserRequest', moderateUserRequest)
|
|
14601
14823
|
const localVarPath = `/auth/user/unplayermoderate`;
|
|
14602
14824
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14603
14825
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -14683,22 +14905,22 @@ export const PlayermoderationApiFp = function(configuration?: Configuration) {
|
|
|
14683
14905
|
/**
|
|
14684
14906
|
* 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.
|
|
14685
14907
|
* @summary Moderate User
|
|
14686
|
-
* @param {ModerateUserRequest}
|
|
14908
|
+
* @param {ModerateUserRequest} moderateUserRequest
|
|
14687
14909
|
* @param {*} [options] Override http request option.
|
|
14688
14910
|
* @throws {RequiredError}
|
|
14689
14911
|
*/
|
|
14690
|
-
async moderateUser(moderateUserRequest
|
|
14912
|
+
async moderateUser(moderateUserRequest: ModerateUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PlayerModeration>> {
|
|
14691
14913
|
const localVarAxiosArgs = await localVarAxiosParamCreator.moderateUser(moderateUserRequest, options);
|
|
14692
14914
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
14693
14915
|
},
|
|
14694
14916
|
/**
|
|
14695
14917
|
* 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.
|
|
14696
14918
|
* @summary Unmoderate User
|
|
14697
|
-
* @param {ModerateUserRequest}
|
|
14919
|
+
* @param {ModerateUserRequest} moderateUserRequest
|
|
14698
14920
|
* @param {*} [options] Override http request option.
|
|
14699
14921
|
* @throws {RequiredError}
|
|
14700
14922
|
*/
|
|
14701
|
-
async unmoderateUser(moderateUserRequest
|
|
14923
|
+
async unmoderateUser(moderateUserRequest: ModerateUserRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Success>> {
|
|
14702
14924
|
const localVarAxiosArgs = await localVarAxiosParamCreator.unmoderateUser(moderateUserRequest, options);
|
|
14703
14925
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
14704
14926
|
},
|
|
@@ -14755,21 +14977,21 @@ export const PlayermoderationApiFactory = function (configuration?: Configuratio
|
|
|
14755
14977
|
/**
|
|
14756
14978
|
* 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.
|
|
14757
14979
|
* @summary Moderate User
|
|
14758
|
-
* @param {ModerateUserRequest}
|
|
14980
|
+
* @param {ModerateUserRequest} moderateUserRequest
|
|
14759
14981
|
* @param {*} [options] Override http request option.
|
|
14760
14982
|
* @throws {RequiredError}
|
|
14761
14983
|
*/
|
|
14762
|
-
moderateUser(moderateUserRequest
|
|
14984
|
+
moderateUser(moderateUserRequest: ModerateUserRequest, options?: any): AxiosPromise<PlayerModeration> {
|
|
14763
14985
|
return localVarFp.moderateUser(moderateUserRequest, options).then((request) => request(axios, basePath));
|
|
14764
14986
|
},
|
|
14765
14987
|
/**
|
|
14766
14988
|
* 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.
|
|
14767
14989
|
* @summary Unmoderate User
|
|
14768
|
-
* @param {ModerateUserRequest}
|
|
14990
|
+
* @param {ModerateUserRequest} moderateUserRequest
|
|
14769
14991
|
* @param {*} [options] Override http request option.
|
|
14770
14992
|
* @throws {RequiredError}
|
|
14771
14993
|
*/
|
|
14772
|
-
unmoderateUser(moderateUserRequest
|
|
14994
|
+
unmoderateUser(moderateUserRequest: ModerateUserRequest, options?: any): AxiosPromise<Success> {
|
|
14773
14995
|
return localVarFp.unmoderateUser(moderateUserRequest, options).then((request) => request(axios, basePath));
|
|
14774
14996
|
},
|
|
14775
14997
|
};
|
|
@@ -14833,24 +15055,24 @@ export class PlayermoderationApi extends BaseAPI {
|
|
|
14833
15055
|
/**
|
|
14834
15056
|
* 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.
|
|
14835
15057
|
* @summary Moderate User
|
|
14836
|
-
* @param {ModerateUserRequest}
|
|
15058
|
+
* @param {ModerateUserRequest} moderateUserRequest
|
|
14837
15059
|
* @param {*} [options] Override http request option.
|
|
14838
15060
|
* @throws {RequiredError}
|
|
14839
15061
|
* @memberof PlayermoderationApi
|
|
14840
15062
|
*/
|
|
14841
|
-
public moderateUser(moderateUserRequest
|
|
15063
|
+
public moderateUser(moderateUserRequest: ModerateUserRequest, options?: AxiosRequestConfig) {
|
|
14842
15064
|
return PlayermoderationApiFp(this.configuration).moderateUser(moderateUserRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14843
15065
|
}
|
|
14844
15066
|
|
|
14845
15067
|
/**
|
|
14846
15068
|
* 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.
|
|
14847
15069
|
* @summary Unmoderate User
|
|
14848
|
-
* @param {ModerateUserRequest}
|
|
15070
|
+
* @param {ModerateUserRequest} moderateUserRequest
|
|
14849
15071
|
* @param {*} [options] Override http request option.
|
|
14850
15072
|
* @throws {RequiredError}
|
|
14851
15073
|
* @memberof PlayermoderationApi
|
|
14852
15074
|
*/
|
|
14853
|
-
public unmoderateUser(moderateUserRequest
|
|
15075
|
+
public unmoderateUser(moderateUserRequest: ModerateUserRequest, options?: AxiosRequestConfig) {
|
|
14854
15076
|
return PlayermoderationApiFp(this.configuration).unmoderateUser(moderateUserRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14855
15077
|
}
|
|
14856
15078
|
}
|