vrchat 1.10.1 → 1.11.1
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 +103 -8
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +67 -8
- package/dist/api.js +81 -6
- 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.11.1
|
|
7
7
|
* Contact: me@ariesclark.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4518,6 +4518,19 @@ export interface TwoFactorAuthCode {
|
|
|
4518
4518
|
*/
|
|
4519
4519
|
'code': string;
|
|
4520
4520
|
}
|
|
4521
|
+
/**
|
|
4522
|
+
*
|
|
4523
|
+
* @export
|
|
4524
|
+
* @interface TwoFactorEmailCode
|
|
4525
|
+
*/
|
|
4526
|
+
export interface TwoFactorEmailCode {
|
|
4527
|
+
/**
|
|
4528
|
+
*
|
|
4529
|
+
* @type {string}
|
|
4530
|
+
* @memberof TwoFactorEmailCode
|
|
4531
|
+
*/
|
|
4532
|
+
'code': string;
|
|
4533
|
+
}
|
|
4521
4534
|
/**
|
|
4522
4535
|
*
|
|
4523
4536
|
* @export
|
|
@@ -5332,6 +5345,19 @@ export interface UserSubscription {
|
|
|
5332
5345
|
*/
|
|
5333
5346
|
'isGift': boolean;
|
|
5334
5347
|
}
|
|
5348
|
+
/**
|
|
5349
|
+
*
|
|
5350
|
+
* @export
|
|
5351
|
+
* @interface Verify2FAEmailCodeResult
|
|
5352
|
+
*/
|
|
5353
|
+
export interface Verify2FAEmailCodeResult {
|
|
5354
|
+
/**
|
|
5355
|
+
*
|
|
5356
|
+
* @type {boolean}
|
|
5357
|
+
* @memberof Verify2FAEmailCodeResult
|
|
5358
|
+
*/
|
|
5359
|
+
'verified': boolean;
|
|
5360
|
+
}
|
|
5335
5361
|
/**
|
|
5336
5362
|
*
|
|
5337
5363
|
* @export
|
|
@@ -5640,7 +5666,7 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
5640
5666
|
deleteUser: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5641
5667
|
// verify required parameter 'userId' is not null or undefined
|
|
5642
5668
|
assertParamExists('deleteUser', 'userId', userId)
|
|
5643
|
-
const localVarPath = `/
|
|
5669
|
+
const localVarPath = `/users/{userId}/delete`
|
|
5644
5670
|
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
5645
5671
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5646
5672
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -5774,6 +5800,42 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
5774
5800
|
options: localVarRequestOptions,
|
|
5775
5801
|
};
|
|
5776
5802
|
},
|
|
5803
|
+
/**
|
|
5804
|
+
* Finishes the login sequence with an 2FA email code.
|
|
5805
|
+
* @summary Verify 2FA email code
|
|
5806
|
+
* @param {TwoFactorEmailCode} [twoFactorEmailCode]
|
|
5807
|
+
* @param {*} [options] Override http request option.
|
|
5808
|
+
* @throws {RequiredError}
|
|
5809
|
+
*/
|
|
5810
|
+
verify2FAEmailCode: async (twoFactorEmailCode?: TwoFactorEmailCode, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5811
|
+
const localVarPath = `/auth/twofactorauth/emailotp/verify`;
|
|
5812
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5813
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5814
|
+
let baseOptions;
|
|
5815
|
+
if (configuration) {
|
|
5816
|
+
baseOptions = configuration.baseOptions;
|
|
5817
|
+
}
|
|
5818
|
+
|
|
5819
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5820
|
+
const localVarHeaderParameter = {} as any;
|
|
5821
|
+
const localVarQueryParameter = {} as any;
|
|
5822
|
+
|
|
5823
|
+
// authentication authCookie required
|
|
5824
|
+
|
|
5825
|
+
|
|
5826
|
+
|
|
5827
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5828
|
+
|
|
5829
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5830
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5831
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5832
|
+
localVarRequestOptions.data = serializeDataIfNeeded(twoFactorEmailCode, localVarRequestOptions, configuration)
|
|
5833
|
+
|
|
5834
|
+
return {
|
|
5835
|
+
url: toPathString(localVarUrlObj),
|
|
5836
|
+
options: localVarRequestOptions,
|
|
5837
|
+
};
|
|
5838
|
+
},
|
|
5777
5839
|
/**
|
|
5778
5840
|
* Verify whether the currently provided Auth Token is valid.
|
|
5779
5841
|
* @summary Verify Auth Token
|
|
@@ -5908,6 +5970,17 @@ export const AuthenticationApiFp = function(configuration?: Configuration) {
|
|
|
5908
5970
|
const localVarAxiosArgs = await localVarAxiosParamCreator.verify2FA(twoFactorAuthCode, options);
|
|
5909
5971
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5910
5972
|
},
|
|
5973
|
+
/**
|
|
5974
|
+
* Finishes the login sequence with an 2FA email code.
|
|
5975
|
+
* @summary Verify 2FA email code
|
|
5976
|
+
* @param {TwoFactorEmailCode} [twoFactorEmailCode]
|
|
5977
|
+
* @param {*} [options] Override http request option.
|
|
5978
|
+
* @throws {RequiredError}
|
|
5979
|
+
*/
|
|
5980
|
+
async verify2FAEmailCode(twoFactorEmailCode?: TwoFactorEmailCode, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Verify2FAEmailCodeResult>> {
|
|
5981
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.verify2FAEmailCode(twoFactorEmailCode, options);
|
|
5982
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5983
|
+
},
|
|
5911
5984
|
/**
|
|
5912
5985
|
* Verify whether the currently provided Auth Token is valid.
|
|
5913
5986
|
* @summary Verify Auth Token
|
|
@@ -5990,6 +6063,16 @@ export const AuthenticationApiFactory = function (configuration?: Configuration,
|
|
|
5990
6063
|
verify2FA(twoFactorAuthCode?: TwoFactorAuthCode, options?: any): AxiosPromise<Verify2FAResult> {
|
|
5991
6064
|
return localVarFp.verify2FA(twoFactorAuthCode, options).then((request) => request(axios, basePath));
|
|
5992
6065
|
},
|
|
6066
|
+
/**
|
|
6067
|
+
* Finishes the login sequence with an 2FA email code.
|
|
6068
|
+
* @summary Verify 2FA email code
|
|
6069
|
+
* @param {TwoFactorEmailCode} [twoFactorEmailCode]
|
|
6070
|
+
* @param {*} [options] Override http request option.
|
|
6071
|
+
* @throws {RequiredError}
|
|
6072
|
+
*/
|
|
6073
|
+
verify2FAEmailCode(twoFactorEmailCode?: TwoFactorEmailCode, options?: any): AxiosPromise<Verify2FAEmailCodeResult> {
|
|
6074
|
+
return localVarFp.verify2FAEmailCode(twoFactorEmailCode, options).then((request) => request(axios, basePath));
|
|
6075
|
+
},
|
|
5993
6076
|
/**
|
|
5994
6077
|
* Verify whether the currently provided Auth Token is valid.
|
|
5995
6078
|
* @summary Verify Auth Token
|
|
@@ -6080,6 +6163,18 @@ export class AuthenticationApi extends BaseAPI {
|
|
|
6080
6163
|
return AuthenticationApiFp(this.configuration).verify2FA(twoFactorAuthCode, options).then((request) => request(this.axios, this.basePath));
|
|
6081
6164
|
}
|
|
6082
6165
|
|
|
6166
|
+
/**
|
|
6167
|
+
* Finishes the login sequence with an 2FA email code.
|
|
6168
|
+
* @summary Verify 2FA email code
|
|
6169
|
+
* @param {TwoFactorEmailCode} [twoFactorEmailCode]
|
|
6170
|
+
* @param {*} [options] Override http request option.
|
|
6171
|
+
* @throws {RequiredError}
|
|
6172
|
+
* @memberof AuthenticationApi
|
|
6173
|
+
*/
|
|
6174
|
+
public verify2FAEmailCode(twoFactorEmailCode?: TwoFactorEmailCode, options?: AxiosRequestConfig) {
|
|
6175
|
+
return AuthenticationApiFp(this.configuration).verify2FAEmailCode(twoFactorEmailCode, options).then((request) => request(this.axios, this.basePath));
|
|
6176
|
+
}
|
|
6177
|
+
|
|
6083
6178
|
/**
|
|
6084
6179
|
* Verify whether the currently provided Auth Token is valid.
|
|
6085
6180
|
* @summary Verify Auth Token
|
|
@@ -10440,7 +10535,7 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
10440
10535
|
};
|
|
10441
10536
|
},
|
|
10442
10537
|
/**
|
|
10443
|
-
* Join a Group by ID and returns the
|
|
10538
|
+
* Join a Group by ID and returns the member object.
|
|
10444
10539
|
* @summary Join Group
|
|
10445
10540
|
* @param {string} groupId Must be a valid group ID.
|
|
10446
10541
|
* @param {*} [options] Override http request option.
|
|
@@ -11196,13 +11291,13 @@ export const GroupsApiFp = function(configuration?: Configuration) {
|
|
|
11196
11291
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11197
11292
|
},
|
|
11198
11293
|
/**
|
|
11199
|
-
* Join a Group by ID and returns the
|
|
11294
|
+
* Join a Group by ID and returns the member object.
|
|
11200
11295
|
* @summary Join Group
|
|
11201
11296
|
* @param {string} groupId Must be a valid group ID.
|
|
11202
11297
|
* @param {*} [options] Override http request option.
|
|
11203
11298
|
* @throws {RequiredError}
|
|
11204
11299
|
*/
|
|
11205
|
-
async joinGroup(groupId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
11300
|
+
async joinGroup(groupId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupMember>> {
|
|
11206
11301
|
const localVarAxiosArgs = await localVarAxiosParamCreator.joinGroup(groupId, options);
|
|
11207
11302
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11208
11303
|
},
|
|
@@ -11617,13 +11712,13 @@ export const GroupsApiFactory = function (configuration?: Configuration, basePat
|
|
|
11617
11712
|
return localVarFp.getGroupRoles(groupId, options).then((request) => request(axios, basePath));
|
|
11618
11713
|
},
|
|
11619
11714
|
/**
|
|
11620
|
-
* Join a Group by ID and returns the
|
|
11715
|
+
* Join a Group by ID and returns the member object.
|
|
11621
11716
|
* @summary Join Group
|
|
11622
11717
|
* @param {string} groupId Must be a valid group ID.
|
|
11623
11718
|
* @param {*} [options] Override http request option.
|
|
11624
11719
|
* @throws {RequiredError}
|
|
11625
11720
|
*/
|
|
11626
|
-
joinGroup(groupId: string, options?: any): AxiosPromise<
|
|
11721
|
+
joinGroup(groupId: string, options?: any): AxiosPromise<GroupMember> {
|
|
11627
11722
|
return localVarFp.joinGroup(groupId, options).then((request) => request(axios, basePath));
|
|
11628
11723
|
},
|
|
11629
11724
|
/**
|
|
@@ -12080,7 +12175,7 @@ export class GroupsApi extends BaseAPI {
|
|
|
12080
12175
|
}
|
|
12081
12176
|
|
|
12082
12177
|
/**
|
|
12083
|
-
* Join a Group by ID and returns the
|
|
12178
|
+
* Join a Group by ID and returns the member object.
|
|
12084
12179
|
* @summary Join Group
|
|
12085
12180
|
* @param {string} groupId Must be a valid group ID.
|
|
12086
12181
|
* @param {*} [options] Override http request option.
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* VRChat API Documentation
|
|
3
3
|
*
|
|
4
|
-
* The version of the OpenAPI document: 1.
|
|
4
|
+
* The version of the OpenAPI document: 1.11.1
|
|
5
5
|
* Contact: me@ariesclark.com
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4410,6 +4410,19 @@ export interface TwoFactorAuthCode {
|
|
|
4410
4410
|
*/
|
|
4411
4411
|
'code': string;
|
|
4412
4412
|
}
|
|
4413
|
+
/**
|
|
4414
|
+
*
|
|
4415
|
+
* @export
|
|
4416
|
+
* @interface TwoFactorEmailCode
|
|
4417
|
+
*/
|
|
4418
|
+
export interface TwoFactorEmailCode {
|
|
4419
|
+
/**
|
|
4420
|
+
*
|
|
4421
|
+
* @type {string}
|
|
4422
|
+
* @memberof TwoFactorEmailCode
|
|
4423
|
+
*/
|
|
4424
|
+
'code': string;
|
|
4425
|
+
}
|
|
4413
4426
|
/**
|
|
4414
4427
|
*
|
|
4415
4428
|
* @export
|
|
@@ -5216,6 +5229,19 @@ export interface UserSubscription {
|
|
|
5216
5229
|
*/
|
|
5217
5230
|
'isGift': boolean;
|
|
5218
5231
|
}
|
|
5232
|
+
/**
|
|
5233
|
+
*
|
|
5234
|
+
* @export
|
|
5235
|
+
* @interface Verify2FAEmailCodeResult
|
|
5236
|
+
*/
|
|
5237
|
+
export interface Verify2FAEmailCodeResult {
|
|
5238
|
+
/**
|
|
5239
|
+
*
|
|
5240
|
+
* @type {boolean}
|
|
5241
|
+
* @memberof Verify2FAEmailCodeResult
|
|
5242
|
+
*/
|
|
5243
|
+
'verified': boolean;
|
|
5244
|
+
}
|
|
5219
5245
|
/**
|
|
5220
5246
|
*
|
|
5221
5247
|
* @export
|
|
@@ -5501,6 +5527,14 @@ export declare const AuthenticationApiAxiosParamCreator: (configuration?: Config
|
|
|
5501
5527
|
* @throws {RequiredError}
|
|
5502
5528
|
*/
|
|
5503
5529
|
verify2FA: (twoFactorAuthCode?: TwoFactorAuthCode, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5530
|
+
/**
|
|
5531
|
+
* Finishes the login sequence with an 2FA email code.
|
|
5532
|
+
* @summary Verify 2FA email code
|
|
5533
|
+
* @param {TwoFactorEmailCode} [twoFactorEmailCode]
|
|
5534
|
+
* @param {*} [options] Override http request option.
|
|
5535
|
+
* @throws {RequiredError}
|
|
5536
|
+
*/
|
|
5537
|
+
verify2FAEmailCode: (twoFactorEmailCode?: TwoFactorEmailCode, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5504
5538
|
/**
|
|
5505
5539
|
* Verify whether the currently provided Auth Token is valid.
|
|
5506
5540
|
* @summary Verify Auth Token
|
|
@@ -5563,6 +5597,14 @@ export declare const AuthenticationApiFp: (configuration?: Configuration) => {
|
|
|
5563
5597
|
* @throws {RequiredError}
|
|
5564
5598
|
*/
|
|
5565
5599
|
verify2FA(twoFactorAuthCode?: TwoFactorAuthCode, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Verify2FAResult>>;
|
|
5600
|
+
/**
|
|
5601
|
+
* Finishes the login sequence with an 2FA email code.
|
|
5602
|
+
* @summary Verify 2FA email code
|
|
5603
|
+
* @param {TwoFactorEmailCode} [twoFactorEmailCode]
|
|
5604
|
+
* @param {*} [options] Override http request option.
|
|
5605
|
+
* @throws {RequiredError}
|
|
5606
|
+
*/
|
|
5607
|
+
verify2FAEmailCode(twoFactorEmailCode?: TwoFactorEmailCode, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Verify2FAEmailCodeResult>>;
|
|
5566
5608
|
/**
|
|
5567
5609
|
* Verify whether the currently provided Auth Token is valid.
|
|
5568
5610
|
* @summary Verify Auth Token
|
|
@@ -5625,6 +5667,14 @@ export declare const AuthenticationApiFactory: (configuration?: Configuration, b
|
|
|
5625
5667
|
* @throws {RequiredError}
|
|
5626
5668
|
*/
|
|
5627
5669
|
verify2FA(twoFactorAuthCode?: TwoFactorAuthCode, options?: any): AxiosPromise<Verify2FAResult>;
|
|
5670
|
+
/**
|
|
5671
|
+
* Finishes the login sequence with an 2FA email code.
|
|
5672
|
+
* @summary Verify 2FA email code
|
|
5673
|
+
* @param {TwoFactorEmailCode} [twoFactorEmailCode]
|
|
5674
|
+
* @param {*} [options] Override http request option.
|
|
5675
|
+
* @throws {RequiredError}
|
|
5676
|
+
*/
|
|
5677
|
+
verify2FAEmailCode(twoFactorEmailCode?: TwoFactorEmailCode, options?: any): AxiosPromise<Verify2FAEmailCodeResult>;
|
|
5628
5678
|
/**
|
|
5629
5679
|
* Verify whether the currently provided Auth Token is valid.
|
|
5630
5680
|
* @summary Verify Auth Token
|
|
@@ -5694,6 +5744,15 @@ export declare class AuthenticationApi extends BaseAPI {
|
|
|
5694
5744
|
* @memberof AuthenticationApi
|
|
5695
5745
|
*/
|
|
5696
5746
|
verify2FA(twoFactorAuthCode?: TwoFactorAuthCode, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Verify2FAResult, any>>;
|
|
5747
|
+
/**
|
|
5748
|
+
* Finishes the login sequence with an 2FA email code.
|
|
5749
|
+
* @summary Verify 2FA email code
|
|
5750
|
+
* @param {TwoFactorEmailCode} [twoFactorEmailCode]
|
|
5751
|
+
* @param {*} [options] Override http request option.
|
|
5752
|
+
* @throws {RequiredError}
|
|
5753
|
+
* @memberof AuthenticationApi
|
|
5754
|
+
*/
|
|
5755
|
+
verify2FAEmailCode(twoFactorEmailCode?: TwoFactorEmailCode, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Verify2FAEmailCodeResult, any>>;
|
|
5697
5756
|
/**
|
|
5698
5757
|
* Verify whether the currently provided Auth Token is valid.
|
|
5699
5758
|
* @summary Verify Auth Token
|
|
@@ -7509,7 +7568,7 @@ export declare const GroupsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
7509
7568
|
*/
|
|
7510
7569
|
getGroupRoles: (groupId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
7511
7570
|
/**
|
|
7512
|
-
* Join a Group by ID and returns the
|
|
7571
|
+
* Join a Group by ID and returns the member object.
|
|
7513
7572
|
* @summary Join Group
|
|
7514
7573
|
* @param {string} groupId Must be a valid group ID.
|
|
7515
7574
|
* @param {*} [options] Override http request option.
|
|
@@ -7844,13 +7903,13 @@ export declare const GroupsApiFp: (configuration?: Configuration) => {
|
|
|
7844
7903
|
*/
|
|
7845
7904
|
getGroupRoles(groupId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GroupRole>>>;
|
|
7846
7905
|
/**
|
|
7847
|
-
* Join a Group by ID and returns the
|
|
7906
|
+
* Join a Group by ID and returns the member object.
|
|
7848
7907
|
* @summary Join Group
|
|
7849
7908
|
* @param {string} groupId Must be a valid group ID.
|
|
7850
7909
|
* @param {*} [options] Override http request option.
|
|
7851
7910
|
* @throws {RequiredError}
|
|
7852
7911
|
*/
|
|
7853
|
-
joinGroup(groupId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
7912
|
+
joinGroup(groupId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupMember>>;
|
|
7854
7913
|
/**
|
|
7855
7914
|
* Kicks a Group Member from the Group. The current user must have the \"Remove Group Members\" permission.
|
|
7856
7915
|
* @summary Kick Group Member
|
|
@@ -8179,13 +8238,13 @@ export declare const GroupsApiFactory: (configuration?: Configuration, basePath?
|
|
|
8179
8238
|
*/
|
|
8180
8239
|
getGroupRoles(groupId: string, options?: any): AxiosPromise<Array<GroupRole>>;
|
|
8181
8240
|
/**
|
|
8182
|
-
* Join a Group by ID and returns the
|
|
8241
|
+
* Join a Group by ID and returns the member object.
|
|
8183
8242
|
* @summary Join Group
|
|
8184
8243
|
* @param {string} groupId Must be a valid group ID.
|
|
8185
8244
|
* @param {*} [options] Override http request option.
|
|
8186
8245
|
* @throws {RequiredError}
|
|
8187
8246
|
*/
|
|
8188
|
-
joinGroup(groupId: string, options?: any): AxiosPromise<
|
|
8247
|
+
joinGroup(groupId: string, options?: any): AxiosPromise<GroupMember>;
|
|
8189
8248
|
/**
|
|
8190
8249
|
* Kicks a Group Member from the Group. The current user must have the \"Remove Group Members\" permission.
|
|
8191
8250
|
* @summary Kick Group Member
|
|
@@ -8542,14 +8601,14 @@ export declare class GroupsApi extends BaseAPI {
|
|
|
8542
8601
|
*/
|
|
8543
8602
|
getGroupRoles(groupId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GroupRole[], any>>;
|
|
8544
8603
|
/**
|
|
8545
|
-
* Join a Group by ID and returns the
|
|
8604
|
+
* Join a Group by ID and returns the member object.
|
|
8546
8605
|
* @summary Join Group
|
|
8547
8606
|
* @param {string} groupId Must be a valid group ID.
|
|
8548
8607
|
* @param {*} [options] Override http request option.
|
|
8549
8608
|
* @throws {RequiredError}
|
|
8550
8609
|
* @memberof GroupsApi
|
|
8551
8610
|
*/
|
|
8552
|
-
joinGroup(groupId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
8611
|
+
joinGroup(groupId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GroupMember, any>>;
|
|
8553
8612
|
/**
|
|
8554
8613
|
* Kicks a Group Member from the Group. The current user must have the \"Remove Group Members\" permission.
|
|
8555
8614
|
* @summary Kick Group Member
|
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.11.1
|
|
8
8
|
* Contact: me@ariesclark.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -461,7 +461,7 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
461
461
|
return __generator(this, function (_a) {
|
|
462
462
|
// verify required parameter 'userId' is not null or undefined
|
|
463
463
|
(0, common_1.assertParamExists)('deleteUser', 'userId', userId);
|
|
464
|
-
localVarPath = "/
|
|
464
|
+
localVarPath = "/users/{userId}/delete"
|
|
465
465
|
.replace("{".concat("userId", "}"), encodeURIComponent(String(userId)));
|
|
466
466
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
467
467
|
if (configuration) {
|
|
@@ -579,6 +579,39 @@ var AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
579
579
|
});
|
|
580
580
|
});
|
|
581
581
|
},
|
|
582
|
+
/**
|
|
583
|
+
* Finishes the login sequence with an 2FA email code.
|
|
584
|
+
* @summary Verify 2FA email code
|
|
585
|
+
* @param {TwoFactorEmailCode} [twoFactorEmailCode]
|
|
586
|
+
* @param {*} [options] Override http request option.
|
|
587
|
+
* @throws {RequiredError}
|
|
588
|
+
*/
|
|
589
|
+
verify2FAEmailCode: function (twoFactorEmailCode, options) {
|
|
590
|
+
if (options === void 0) { options = {}; }
|
|
591
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
592
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
593
|
+
return __generator(this, function (_a) {
|
|
594
|
+
localVarPath = "/auth/twofactorauth/emailotp/verify";
|
|
595
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
596
|
+
if (configuration) {
|
|
597
|
+
baseOptions = configuration.baseOptions;
|
|
598
|
+
}
|
|
599
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
600
|
+
localVarHeaderParameter = {};
|
|
601
|
+
localVarQueryParameter = {};
|
|
602
|
+
// authentication authCookie required
|
|
603
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
604
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
605
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
606
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
607
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(twoFactorEmailCode, localVarRequestOptions, configuration);
|
|
608
|
+
return [2 /*return*/, {
|
|
609
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
610
|
+
options: localVarRequestOptions,
|
|
611
|
+
}];
|
|
612
|
+
});
|
|
613
|
+
});
|
|
614
|
+
},
|
|
582
615
|
/**
|
|
583
616
|
* Verify whether the currently provided Auth Token is valid.
|
|
584
617
|
* @summary Verify Auth Token
|
|
@@ -753,6 +786,26 @@ var AuthenticationApiFp = function (configuration) {
|
|
|
753
786
|
});
|
|
754
787
|
});
|
|
755
788
|
},
|
|
789
|
+
/**
|
|
790
|
+
* Finishes the login sequence with an 2FA email code.
|
|
791
|
+
* @summary Verify 2FA email code
|
|
792
|
+
* @param {TwoFactorEmailCode} [twoFactorEmailCode]
|
|
793
|
+
* @param {*} [options] Override http request option.
|
|
794
|
+
* @throws {RequiredError}
|
|
795
|
+
*/
|
|
796
|
+
verify2FAEmailCode: function (twoFactorEmailCode, options) {
|
|
797
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
798
|
+
var localVarAxiosArgs;
|
|
799
|
+
return __generator(this, function (_a) {
|
|
800
|
+
switch (_a.label) {
|
|
801
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.verify2FAEmailCode(twoFactorEmailCode, options)];
|
|
802
|
+
case 1:
|
|
803
|
+
localVarAxiosArgs = _a.sent();
|
|
804
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
805
|
+
}
|
|
806
|
+
});
|
|
807
|
+
});
|
|
808
|
+
},
|
|
756
809
|
/**
|
|
757
810
|
* Verify whether the currently provided Auth Token is valid.
|
|
758
811
|
* @summary Verify Auth Token
|
|
@@ -853,6 +906,16 @@ var AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
853
906
|
verify2FA: function (twoFactorAuthCode, options) {
|
|
854
907
|
return localVarFp.verify2FA(twoFactorAuthCode, options).then(function (request) { return request(axios, basePath); });
|
|
855
908
|
},
|
|
909
|
+
/**
|
|
910
|
+
* Finishes the login sequence with an 2FA email code.
|
|
911
|
+
* @summary Verify 2FA email code
|
|
912
|
+
* @param {TwoFactorEmailCode} [twoFactorEmailCode]
|
|
913
|
+
* @param {*} [options] Override http request option.
|
|
914
|
+
* @throws {RequiredError}
|
|
915
|
+
*/
|
|
916
|
+
verify2FAEmailCode: function (twoFactorEmailCode, options) {
|
|
917
|
+
return localVarFp.verify2FAEmailCode(twoFactorEmailCode, options).then(function (request) { return request(axios, basePath); });
|
|
918
|
+
},
|
|
856
919
|
/**
|
|
857
920
|
* Verify whether the currently provided Auth Token is valid.
|
|
858
921
|
* @summary Verify Auth Token
|
|
@@ -947,6 +1010,18 @@ var AuthenticationApi = /** @class */ (function (_super) {
|
|
|
947
1010
|
var _this = this;
|
|
948
1011
|
return (0, exports.AuthenticationApiFp)(this.configuration).verify2FA(twoFactorAuthCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
949
1012
|
};
|
|
1013
|
+
/**
|
|
1014
|
+
* Finishes the login sequence with an 2FA email code.
|
|
1015
|
+
* @summary Verify 2FA email code
|
|
1016
|
+
* @param {TwoFactorEmailCode} [twoFactorEmailCode]
|
|
1017
|
+
* @param {*} [options] Override http request option.
|
|
1018
|
+
* @throws {RequiredError}
|
|
1019
|
+
* @memberof AuthenticationApi
|
|
1020
|
+
*/
|
|
1021
|
+
AuthenticationApi.prototype.verify2FAEmailCode = function (twoFactorEmailCode, options) {
|
|
1022
|
+
var _this = this;
|
|
1023
|
+
return (0, exports.AuthenticationApiFp)(this.configuration).verify2FAEmailCode(twoFactorEmailCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1024
|
+
};
|
|
950
1025
|
/**
|
|
951
1026
|
* Verify whether the currently provided Auth Token is valid.
|
|
952
1027
|
* @summary Verify Auth Token
|
|
@@ -5416,7 +5491,7 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
5416
5491
|
});
|
|
5417
5492
|
},
|
|
5418
5493
|
/**
|
|
5419
|
-
* Join a Group by ID and returns the
|
|
5494
|
+
* Join a Group by ID and returns the member object.
|
|
5420
5495
|
* @summary Join Group
|
|
5421
5496
|
* @param {string} groupId Must be a valid group ID.
|
|
5422
5497
|
* @param {*} [options] Override http request option.
|
|
@@ -6371,7 +6446,7 @@ var GroupsApiFp = function (configuration) {
|
|
|
6371
6446
|
});
|
|
6372
6447
|
},
|
|
6373
6448
|
/**
|
|
6374
|
-
* Join a Group by ID and returns the
|
|
6449
|
+
* Join a Group by ID and returns the member object.
|
|
6375
6450
|
* @summary Join Group
|
|
6376
6451
|
* @param {string} groupId Must be a valid group ID.
|
|
6377
6452
|
* @param {*} [options] Override http request option.
|
|
@@ -6882,7 +6957,7 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
|
|
|
6882
6957
|
return localVarFp.getGroupRoles(groupId, options).then(function (request) { return request(axios, basePath); });
|
|
6883
6958
|
},
|
|
6884
6959
|
/**
|
|
6885
|
-
* Join a Group by ID and returns the
|
|
6960
|
+
* Join a Group by ID and returns the member object.
|
|
6886
6961
|
* @summary Join Group
|
|
6887
6962
|
* @param {string} groupId Must be a valid group ID.
|
|
6888
6963
|
* @param {*} [options] Override http request option.
|
|
@@ -7349,7 +7424,7 @@ var GroupsApi = /** @class */ (function (_super) {
|
|
|
7349
7424
|
return (0, exports.GroupsApiFp)(this.configuration).getGroupRoles(groupId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7350
7425
|
};
|
|
7351
7426
|
/**
|
|
7352
|
-
* Join a Group by ID and returns the
|
|
7427
|
+
* Join a Group by ID and returns the member object.
|
|
7353
7428
|
* @summary Join Group
|
|
7354
7429
|
* @param {string} groupId Must be a valid group ID.
|
|
7355
7430
|
* @param {*} [options] Override http request option.
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/index.ts
CHANGED