vrchat 1.7.7 → 1.9.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 +95 -17
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +57 -17
- package/dist/api.js +86 -7
- 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.9.0
|
|
7
7
|
* Contact: me@ariesclark.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1265,11 +1265,12 @@ export interface CurrentUser {
|
|
|
1265
1265
|
*/
|
|
1266
1266
|
'userIcon': string;
|
|
1267
1267
|
/**
|
|
1268
|
-
*
|
|
1268
|
+
* -| **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429).
|
|
1269
1269
|
* @type {string}
|
|
1270
1270
|
* @memberof CurrentUser
|
|
1271
|
+
* @deprecated
|
|
1271
1272
|
*/
|
|
1272
|
-
'username'
|
|
1273
|
+
'username'?: string;
|
|
1273
1274
|
}
|
|
1274
1275
|
/**
|
|
1275
1276
|
* Used to identify which API deployment cluster is currently responding. `blue` and `green` are used by Production. `grape`and `cherry` are used during Development. [Blue Green Deployment by Martin Fowler](https://martinfowler.com/bliki/BlueGreenDeployment.html)
|
|
@@ -2402,11 +2403,12 @@ export interface LimitedUser {
|
|
|
2402
2403
|
*/
|
|
2403
2404
|
'userIcon': string;
|
|
2404
2405
|
/**
|
|
2405
|
-
*
|
|
2406
|
+
* -| **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429).
|
|
2406
2407
|
* @type {string}
|
|
2407
2408
|
* @memberof LimitedUser
|
|
2409
|
+
* @deprecated
|
|
2408
2410
|
*/
|
|
2409
|
-
'username'
|
|
2411
|
+
'username'?: string;
|
|
2410
2412
|
/**
|
|
2411
2413
|
*
|
|
2412
2414
|
* @type {string}
|
|
@@ -2688,11 +2690,12 @@ export interface Notification {
|
|
|
2688
2690
|
*/
|
|
2689
2691
|
'senderUserId': string;
|
|
2690
2692
|
/**
|
|
2691
|
-
*
|
|
2693
|
+
* -| **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429).
|
|
2692
2694
|
* @type {string}
|
|
2693
2695
|
* @memberof Notification
|
|
2696
|
+
* @deprecated
|
|
2694
2697
|
*/
|
|
2695
|
-
'senderUsername'
|
|
2698
|
+
'senderUsername'?: string;
|
|
2696
2699
|
/**
|
|
2697
2700
|
*
|
|
2698
2701
|
* @type {NotificationType}
|
|
@@ -2825,8 +2828,6 @@ export enum PlayerModerationType {
|
|
|
2825
2828
|
Unmute = 'unmute',
|
|
2826
2829
|
Block = 'block',
|
|
2827
2830
|
Unblock = 'unblock',
|
|
2828
|
-
HideAvatar = 'hideAvatar',
|
|
2829
|
-
ShowAvatar = 'showAvatar',
|
|
2830
2831
|
InteractOn = 'interactOn',
|
|
2831
2832
|
InteractOff = 'interactOff'
|
|
2832
2833
|
}
|
|
@@ -2952,11 +2953,12 @@ export interface SentNotification {
|
|
|
2952
2953
|
*/
|
|
2953
2954
|
'senderUserId': string;
|
|
2954
2955
|
/**
|
|
2955
|
-
*
|
|
2956
|
+
* -| **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429).
|
|
2956
2957
|
* @type {string}
|
|
2957
2958
|
* @memberof SentNotification
|
|
2959
|
+
* @deprecated
|
|
2958
2960
|
*/
|
|
2959
|
-
'senderUsername'
|
|
2961
|
+
'senderUsername'?: string;
|
|
2960
2962
|
/**
|
|
2961
2963
|
*
|
|
2962
2964
|
* @type {NotificationType}
|
|
@@ -3779,11 +3781,12 @@ export interface User {
|
|
|
3779
3781
|
*/
|
|
3780
3782
|
'userIcon': string;
|
|
3781
3783
|
/**
|
|
3782
|
-
* A users unique name, used during login. This is different from `displayName` which is what shows up in-game. A users `username` can never be changed.
|
|
3784
|
+
* -| A users unique name, used during login. This is different from `displayName` which is what shows up in-game. A users `username` can never be changed.\' **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429).
|
|
3783
3785
|
* @type {string}
|
|
3784
3786
|
* @memberof User
|
|
3787
|
+
* @deprecated
|
|
3785
3788
|
*/
|
|
3786
|
-
'username'
|
|
3789
|
+
'username'?: string;
|
|
3787
3790
|
/**
|
|
3788
3791
|
* WorldID be \"offline\" on User profiles if you are not friends with that user.
|
|
3789
3792
|
* @type {string}
|
|
@@ -4910,6 +4913,44 @@ export const AvatarsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4910
4913
|
|
|
4911
4914
|
|
|
4912
4915
|
|
|
4916
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4917
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4918
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4919
|
+
|
|
4920
|
+
return {
|
|
4921
|
+
url: toPathString(localVarUrlObj),
|
|
4922
|
+
options: localVarRequestOptions,
|
|
4923
|
+
};
|
|
4924
|
+
},
|
|
4925
|
+
/**
|
|
4926
|
+
* Get the current avatar for the user. This will return an error for any other user than the one logged in.
|
|
4927
|
+
* @summary Get Own Avatar
|
|
4928
|
+
* @param {string} userId
|
|
4929
|
+
* @param {*} [options] Override http request option.
|
|
4930
|
+
* @throws {RequiredError}
|
|
4931
|
+
*/
|
|
4932
|
+
getOwnAvatar: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4933
|
+
// verify required parameter 'userId' is not null or undefined
|
|
4934
|
+
assertParamExists('getOwnAvatar', 'userId', userId)
|
|
4935
|
+
const localVarPath = `/users/{userId}/avatar`
|
|
4936
|
+
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
|
|
4937
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4938
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4939
|
+
let baseOptions;
|
|
4940
|
+
if (configuration) {
|
|
4941
|
+
baseOptions = configuration.baseOptions;
|
|
4942
|
+
}
|
|
4943
|
+
|
|
4944
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4945
|
+
const localVarHeaderParameter = {} as any;
|
|
4946
|
+
const localVarQueryParameter = {} as any;
|
|
4947
|
+
|
|
4948
|
+
// authentication apiKeyCookie required
|
|
4949
|
+
|
|
4950
|
+
// authentication authCookie required
|
|
4951
|
+
|
|
4952
|
+
|
|
4953
|
+
|
|
4913
4954
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4914
4955
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4915
4956
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -5202,6 +5243,17 @@ export const AvatarsApiFp = function(configuration?: Configuration) {
|
|
|
5202
5243
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFavoritedAvatars(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId, options);
|
|
5203
5244
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5204
5245
|
},
|
|
5246
|
+
/**
|
|
5247
|
+
* Get the current avatar for the user. This will return an error for any other user than the one logged in.
|
|
5248
|
+
* @summary Get Own Avatar
|
|
5249
|
+
* @param {string} userId
|
|
5250
|
+
* @param {*} [options] Override http request option.
|
|
5251
|
+
* @throws {RequiredError}
|
|
5252
|
+
*/
|
|
5253
|
+
async getOwnAvatar(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Avatar>> {
|
|
5254
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOwnAvatar(userId, options);
|
|
5255
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5256
|
+
},
|
|
5205
5257
|
/**
|
|
5206
5258
|
* Search and list avatars by query filters. You can only search your own or featured avatars. It is not possible as a normal user to search other peoples avatars.
|
|
5207
5259
|
* @summary Search Avatars
|
|
@@ -5321,6 +5373,16 @@ export const AvatarsApiFactory = function (configuration?: Configuration, basePa
|
|
|
5321
5373
|
getFavoritedAvatars(featured?: boolean, sort?: 'popularity' | 'heat' | 'trust' | 'shuffle' | 'random' | 'favorites' | 'reportScore' | 'reportCount' | 'publicationDate' | 'labsPublicationDate' | 'created' | '_created_at' | 'updated' | '_updated_at' | 'order' | 'relevance' | 'magic' | 'name', n?: number, order?: 'ascending' | 'descending', offset?: number, search?: string, tag?: string, notag?: string, releaseStatus?: 'public' | 'private' | 'hidden' | 'all', maxUnityVersion?: string, minUnityVersion?: string, platform?: string, userId?: string, options?: any): AxiosPromise<Array<Avatar>> {
|
|
5322
5374
|
return localVarFp.getFavoritedAvatars(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId, options).then((request) => request(axios, basePath));
|
|
5323
5375
|
},
|
|
5376
|
+
/**
|
|
5377
|
+
* Get the current avatar for the user. This will return an error for any other user than the one logged in.
|
|
5378
|
+
* @summary Get Own Avatar
|
|
5379
|
+
* @param {string} userId
|
|
5380
|
+
* @param {*} [options] Override http request option.
|
|
5381
|
+
* @throws {RequiredError}
|
|
5382
|
+
*/
|
|
5383
|
+
getOwnAvatar(userId: string, options?: any): AxiosPromise<Avatar> {
|
|
5384
|
+
return localVarFp.getOwnAvatar(userId, options).then((request) => request(axios, basePath));
|
|
5385
|
+
},
|
|
5324
5386
|
/**
|
|
5325
5387
|
* Search and list avatars by query filters. You can only search your own or featured avatars. It is not possible as a normal user to search other peoples avatars.
|
|
5326
5388
|
* @summary Search Avatars
|
|
@@ -5444,6 +5506,18 @@ export class AvatarsApi extends BaseAPI {
|
|
|
5444
5506
|
return AvatarsApiFp(this.configuration).getFavoritedAvatars(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId, options).then((request) => request(this.axios, this.basePath));
|
|
5445
5507
|
}
|
|
5446
5508
|
|
|
5509
|
+
/**
|
|
5510
|
+
* Get the current avatar for the user. This will return an error for any other user than the one logged in.
|
|
5511
|
+
* @summary Get Own Avatar
|
|
5512
|
+
* @param {string} userId
|
|
5513
|
+
* @param {*} [options] Override http request option.
|
|
5514
|
+
* @throws {RequiredError}
|
|
5515
|
+
* @memberof AvatarsApi
|
|
5516
|
+
*/
|
|
5517
|
+
public getOwnAvatar(userId: string, options?: AxiosRequestConfig) {
|
|
5518
|
+
return AvatarsApiFp(this.configuration).getOwnAvatar(userId, options).then((request) => request(this.axios, this.basePath));
|
|
5519
|
+
}
|
|
5520
|
+
|
|
5447
5521
|
/**
|
|
5448
5522
|
* Search and list avatars by query filters. You can only search your own or featured avatars. It is not possible as a normal user to search other peoples avatars.
|
|
5449
5523
|
* @summary Search Avatars
|
|
@@ -10495,10 +10569,11 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
10495
10569
|
};
|
|
10496
10570
|
},
|
|
10497
10571
|
/**
|
|
10498
|
-
* Get public user information about a specific user using their name.
|
|
10572
|
+
* ~~Get public user information about a specific user using their name.~~ **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). This endpoint now require Admin Credentials.
|
|
10499
10573
|
* @summary Get User by Username
|
|
10500
10574
|
* @param {string} username
|
|
10501
10575
|
* @param {*} [options] Override http request option.
|
|
10576
|
+
* @deprecated
|
|
10502
10577
|
* @throws {RequiredError}
|
|
10503
10578
|
*/
|
|
10504
10579
|
getUserByName: async (username: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
@@ -10650,10 +10725,11 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
10650
10725
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10651
10726
|
},
|
|
10652
10727
|
/**
|
|
10653
|
-
* Get public user information about a specific user using their name.
|
|
10728
|
+
* ~~Get public user information about a specific user using their name.~~ **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). This endpoint now require Admin Credentials.
|
|
10654
10729
|
* @summary Get User by Username
|
|
10655
10730
|
* @param {string} username
|
|
10656
10731
|
* @param {*} [options] Override http request option.
|
|
10732
|
+
* @deprecated
|
|
10657
10733
|
* @throws {RequiredError}
|
|
10658
10734
|
*/
|
|
10659
10735
|
async getUserByName(username: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>> {
|
|
@@ -10707,10 +10783,11 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
10707
10783
|
return localVarFp.getUser(userId, options).then((request) => request(axios, basePath));
|
|
10708
10784
|
},
|
|
10709
10785
|
/**
|
|
10710
|
-
* Get public user information about a specific user using their name.
|
|
10786
|
+
* ~~Get public user information about a specific user using their name.~~ **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). This endpoint now require Admin Credentials.
|
|
10711
10787
|
* @summary Get User by Username
|
|
10712
10788
|
* @param {string} username
|
|
10713
10789
|
* @param {*} [options] Override http request option.
|
|
10790
|
+
* @deprecated
|
|
10714
10791
|
* @throws {RequiredError}
|
|
10715
10792
|
*/
|
|
10716
10793
|
getUserByName(username: string, options?: any): AxiosPromise<User> {
|
|
@@ -10763,10 +10840,11 @@ export class UsersApi extends BaseAPI {
|
|
|
10763
10840
|
}
|
|
10764
10841
|
|
|
10765
10842
|
/**
|
|
10766
|
-
* Get public user information about a specific user using their name.
|
|
10843
|
+
* ~~Get public user information about a specific user using their name.~~ **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). This endpoint now require Admin Credentials.
|
|
10767
10844
|
* @summary Get User by Username
|
|
10768
10845
|
* @param {string} username
|
|
10769
10846
|
* @param {*} [options] Override http request option.
|
|
10847
|
+
* @deprecated
|
|
10770
10848
|
* @throws {RequiredError}
|
|
10771
10849
|
* @memberof UsersApi
|
|
10772
10850
|
*/
|
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.9.0
|
|
5
5
|
* Contact: me@ariesclark.com
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1255,11 +1255,12 @@ export interface CurrentUser {
|
|
|
1255
1255
|
*/
|
|
1256
1256
|
'userIcon': string;
|
|
1257
1257
|
/**
|
|
1258
|
-
*
|
|
1258
|
+
* -| **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429).
|
|
1259
1259
|
* @type {string}
|
|
1260
1260
|
* @memberof CurrentUser
|
|
1261
|
+
* @deprecated
|
|
1261
1262
|
*/
|
|
1262
|
-
'username'
|
|
1263
|
+
'username'?: string;
|
|
1263
1264
|
}
|
|
1264
1265
|
/**
|
|
1265
1266
|
* Used to identify which API deployment cluster is currently responding. `blue` and `green` are used by Production. `grape`and `cherry` are used during Development. [Blue Green Deployment by Martin Fowler](https://martinfowler.com/bliki/BlueGreenDeployment.html)
|
|
@@ -2370,11 +2371,12 @@ export interface LimitedUser {
|
|
|
2370
2371
|
*/
|
|
2371
2372
|
'userIcon': string;
|
|
2372
2373
|
/**
|
|
2373
|
-
*
|
|
2374
|
+
* -| **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429).
|
|
2374
2375
|
* @type {string}
|
|
2375
2376
|
* @memberof LimitedUser
|
|
2377
|
+
* @deprecated
|
|
2376
2378
|
*/
|
|
2377
|
-
'username'
|
|
2379
|
+
'username'?: string;
|
|
2378
2380
|
/**
|
|
2379
2381
|
*
|
|
2380
2382
|
* @type {string}
|
|
@@ -2654,11 +2656,12 @@ export interface Notification {
|
|
|
2654
2656
|
*/
|
|
2655
2657
|
'senderUserId': string;
|
|
2656
2658
|
/**
|
|
2657
|
-
*
|
|
2659
|
+
* -| **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429).
|
|
2658
2660
|
* @type {string}
|
|
2659
2661
|
* @memberof Notification
|
|
2662
|
+
* @deprecated
|
|
2660
2663
|
*/
|
|
2661
|
-
'senderUsername'
|
|
2664
|
+
'senderUsername'?: string;
|
|
2662
2665
|
/**
|
|
2663
2666
|
*
|
|
2664
2667
|
* @type {NotificationType}
|
|
@@ -2788,8 +2791,6 @@ export declare enum PlayerModerationType {
|
|
|
2788
2791
|
Unmute = "unmute",
|
|
2789
2792
|
Block = "block",
|
|
2790
2793
|
Unblock = "unblock",
|
|
2791
|
-
HideAvatar = "hideAvatar",
|
|
2792
|
-
ShowAvatar = "showAvatar",
|
|
2793
2794
|
InteractOn = "interactOn",
|
|
2794
2795
|
InteractOff = "interactOff"
|
|
2795
2796
|
}
|
|
@@ -2910,11 +2911,12 @@ export interface SentNotification {
|
|
|
2910
2911
|
*/
|
|
2911
2912
|
'senderUserId': string;
|
|
2912
2913
|
/**
|
|
2913
|
-
*
|
|
2914
|
+
* -| **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429).
|
|
2914
2915
|
* @type {string}
|
|
2915
2916
|
* @memberof SentNotification
|
|
2917
|
+
* @deprecated
|
|
2916
2918
|
*/
|
|
2917
|
-
'senderUsername'
|
|
2919
|
+
'senderUsername'?: string;
|
|
2918
2920
|
/**
|
|
2919
2921
|
*
|
|
2920
2922
|
* @type {NotificationType}
|
|
@@ -3733,11 +3735,12 @@ export interface User {
|
|
|
3733
3735
|
*/
|
|
3734
3736
|
'userIcon': string;
|
|
3735
3737
|
/**
|
|
3736
|
-
* A users unique name, used during login. This is different from `displayName` which is what shows up in-game. A users `username` can never be changed.
|
|
3738
|
+
* -| A users unique name, used during login. This is different from `displayName` which is what shows up in-game. A users `username` can never be changed.\' **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429).
|
|
3737
3739
|
* @type {string}
|
|
3738
3740
|
* @memberof User
|
|
3741
|
+
* @deprecated
|
|
3739
3742
|
*/
|
|
3740
|
-
'username'
|
|
3743
|
+
'username'?: string;
|
|
3741
3744
|
/**
|
|
3742
3745
|
* WorldID be \"offline\" on User profiles if you are not friends with that user.
|
|
3743
3746
|
* @type {string}
|
|
@@ -4422,6 +4425,14 @@ export declare const AvatarsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
4422
4425
|
* @throws {RequiredError}
|
|
4423
4426
|
*/
|
|
4424
4427
|
getFavoritedAvatars: (featured?: boolean, sort?: 'popularity' | 'heat' | 'trust' | 'shuffle' | 'random' | 'favorites' | 'reportScore' | 'reportCount' | 'publicationDate' | 'labsPublicationDate' | 'created' | '_created_at' | 'updated' | '_updated_at' | 'order' | 'relevance' | 'magic' | 'name', n?: number, order?: 'ascending' | 'descending', offset?: number, search?: string, tag?: string, notag?: string, releaseStatus?: 'public' | 'private' | 'hidden' | 'all', maxUnityVersion?: string, minUnityVersion?: string, platform?: string, userId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4428
|
+
/**
|
|
4429
|
+
* Get the current avatar for the user. This will return an error for any other user than the one logged in.
|
|
4430
|
+
* @summary Get Own Avatar
|
|
4431
|
+
* @param {string} userId
|
|
4432
|
+
* @param {*} [options] Override http request option.
|
|
4433
|
+
* @throws {RequiredError}
|
|
4434
|
+
*/
|
|
4435
|
+
getOwnAvatar: (userId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4425
4436
|
/**
|
|
4426
4437
|
* Search and list avatars by query filters. You can only search your own or featured avatars. It is not possible as a normal user to search other peoples avatars.
|
|
4427
4438
|
* @summary Search Avatars
|
|
@@ -4517,6 +4528,14 @@ export declare const AvatarsApiFp: (configuration?: Configuration) => {
|
|
|
4517
4528
|
* @throws {RequiredError}
|
|
4518
4529
|
*/
|
|
4519
4530
|
getFavoritedAvatars(featured?: boolean, sort?: 'popularity' | 'heat' | 'trust' | 'shuffle' | 'random' | 'favorites' | 'reportScore' | 'reportCount' | 'publicationDate' | 'labsPublicationDate' | 'created' | '_created_at' | 'updated' | '_updated_at' | 'order' | 'relevance' | 'magic' | 'name', n?: number, order?: 'ascending' | 'descending', offset?: number, search?: string, tag?: string, notag?: string, releaseStatus?: 'public' | 'private' | 'hidden' | 'all', maxUnityVersion?: string, minUnityVersion?: string, platform?: string, userId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Avatar>>>;
|
|
4531
|
+
/**
|
|
4532
|
+
* Get the current avatar for the user. This will return an error for any other user than the one logged in.
|
|
4533
|
+
* @summary Get Own Avatar
|
|
4534
|
+
* @param {string} userId
|
|
4535
|
+
* @param {*} [options] Override http request option.
|
|
4536
|
+
* @throws {RequiredError}
|
|
4537
|
+
*/
|
|
4538
|
+
getOwnAvatar(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Avatar>>;
|
|
4520
4539
|
/**
|
|
4521
4540
|
* Search and list avatars by query filters. You can only search your own or featured avatars. It is not possible as a normal user to search other peoples avatars.
|
|
4522
4541
|
* @summary Search Avatars
|
|
@@ -4612,6 +4631,14 @@ export declare const AvatarsApiFactory: (configuration?: Configuration, basePath
|
|
|
4612
4631
|
* @throws {RequiredError}
|
|
4613
4632
|
*/
|
|
4614
4633
|
getFavoritedAvatars(featured?: boolean, sort?: 'popularity' | 'heat' | 'trust' | 'shuffle' | 'random' | 'favorites' | 'reportScore' | 'reportCount' | 'publicationDate' | 'labsPublicationDate' | 'created' | '_created_at' | 'updated' | '_updated_at' | 'order' | 'relevance' | 'magic' | 'name', n?: number, order?: 'ascending' | 'descending', offset?: number, search?: string, tag?: string, notag?: string, releaseStatus?: 'public' | 'private' | 'hidden' | 'all', maxUnityVersion?: string, minUnityVersion?: string, platform?: string, userId?: string, options?: any): AxiosPromise<Array<Avatar>>;
|
|
4634
|
+
/**
|
|
4635
|
+
* Get the current avatar for the user. This will return an error for any other user than the one logged in.
|
|
4636
|
+
* @summary Get Own Avatar
|
|
4637
|
+
* @param {string} userId
|
|
4638
|
+
* @param {*} [options] Override http request option.
|
|
4639
|
+
* @throws {RequiredError}
|
|
4640
|
+
*/
|
|
4641
|
+
getOwnAvatar(userId: string, options?: any): AxiosPromise<Avatar>;
|
|
4615
4642
|
/**
|
|
4616
4643
|
* Search and list avatars by query filters. You can only search your own or featured avatars. It is not possible as a normal user to search other peoples avatars.
|
|
4617
4644
|
* @summary Search Avatars
|
|
@@ -4713,6 +4740,15 @@ export declare class AvatarsApi extends BaseAPI {
|
|
|
4713
4740
|
* @memberof AvatarsApi
|
|
4714
4741
|
*/
|
|
4715
4742
|
getFavoritedAvatars(featured?: boolean, sort?: 'popularity' | 'heat' | 'trust' | 'shuffle' | 'random' | 'favorites' | 'reportScore' | 'reportCount' | 'publicationDate' | 'labsPublicationDate' | 'created' | '_created_at' | 'updated' | '_updated_at' | 'order' | 'relevance' | 'magic' | 'name', n?: number, order?: 'ascending' | 'descending', offset?: number, search?: string, tag?: string, notag?: string, releaseStatus?: 'public' | 'private' | 'hidden' | 'all', maxUnityVersion?: string, minUnityVersion?: string, platform?: string, userId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Avatar[]>>;
|
|
4743
|
+
/**
|
|
4744
|
+
* Get the current avatar for the user. This will return an error for any other user than the one logged in.
|
|
4745
|
+
* @summary Get Own Avatar
|
|
4746
|
+
* @param {string} userId
|
|
4747
|
+
* @param {*} [options] Override http request option.
|
|
4748
|
+
* @throws {RequiredError}
|
|
4749
|
+
* @memberof AvatarsApi
|
|
4750
|
+
*/
|
|
4751
|
+
getOwnAvatar(userId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Avatar>>;
|
|
4716
4752
|
/**
|
|
4717
4753
|
* Search and list avatars by query filters. You can only search your own or featured avatars. It is not possible as a normal user to search other peoples avatars.
|
|
4718
4754
|
* @summary Search Avatars
|
|
@@ -7193,10 +7229,11 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
7193
7229
|
*/
|
|
7194
7230
|
getUser: (userId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
7195
7231
|
/**
|
|
7196
|
-
* Get public user information about a specific user using their name.
|
|
7232
|
+
* ~~Get public user information about a specific user using their name.~~ **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). This endpoint now require Admin Credentials.
|
|
7197
7233
|
* @summary Get User by Username
|
|
7198
7234
|
* @param {string} username
|
|
7199
7235
|
* @param {*} [options] Override http request option.
|
|
7236
|
+
* @deprecated
|
|
7200
7237
|
* @throws {RequiredError}
|
|
7201
7238
|
*/
|
|
7202
7239
|
getUserByName: (username: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
@@ -7235,10 +7272,11 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
7235
7272
|
*/
|
|
7236
7273
|
getUser(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>>;
|
|
7237
7274
|
/**
|
|
7238
|
-
* Get public user information about a specific user using their name.
|
|
7275
|
+
* ~~Get public user information about a specific user using their name.~~ **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). This endpoint now require Admin Credentials.
|
|
7239
7276
|
* @summary Get User by Username
|
|
7240
7277
|
* @param {string} username
|
|
7241
7278
|
* @param {*} [options] Override http request option.
|
|
7279
|
+
* @deprecated
|
|
7242
7280
|
* @throws {RequiredError}
|
|
7243
7281
|
*/
|
|
7244
7282
|
getUserByName(username: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>>;
|
|
@@ -7277,10 +7315,11 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
|
|
|
7277
7315
|
*/
|
|
7278
7316
|
getUser(userId: string, options?: any): AxiosPromise<User>;
|
|
7279
7317
|
/**
|
|
7280
|
-
* Get public user information about a specific user using their name.
|
|
7318
|
+
* ~~Get public user information about a specific user using their name.~~ **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). This endpoint now require Admin Credentials.
|
|
7281
7319
|
* @summary Get User by Username
|
|
7282
7320
|
* @param {string} username
|
|
7283
7321
|
* @param {*} [options] Override http request option.
|
|
7322
|
+
* @deprecated
|
|
7284
7323
|
* @throws {RequiredError}
|
|
7285
7324
|
*/
|
|
7286
7325
|
getUserByName(username: string, options?: any): AxiosPromise<User>;
|
|
@@ -7322,10 +7361,11 @@ export declare class UsersApi extends BaseAPI {
|
|
|
7322
7361
|
*/
|
|
7323
7362
|
getUser(userId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<User>>;
|
|
7324
7363
|
/**
|
|
7325
|
-
* Get public user information about a specific user using their name.
|
|
7364
|
+
* ~~Get public user information about a specific user using their name.~~ **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). This endpoint now require Admin Credentials.
|
|
7326
7365
|
* @summary Get User by Username
|
|
7327
7366
|
* @param {string} username
|
|
7328
7367
|
* @param {*} [options] Override http request option.
|
|
7368
|
+
* @deprecated
|
|
7329
7369
|
* @throws {RequiredError}
|
|
7330
7370
|
* @memberof UsersApi
|
|
7331
7371
|
*/
|
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.9.0
|
|
8
8
|
* Contact: me@ariesclark.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -256,8 +256,6 @@ var PlayerModerationType;
|
|
|
256
256
|
PlayerModerationType["Unmute"] = "unmute";
|
|
257
257
|
PlayerModerationType["Block"] = "block";
|
|
258
258
|
PlayerModerationType["Unblock"] = "unblock";
|
|
259
|
-
PlayerModerationType["HideAvatar"] = "hideAvatar";
|
|
260
|
-
PlayerModerationType["ShowAvatar"] = "showAvatar";
|
|
261
259
|
PlayerModerationType["InteractOn"] = "interactOn";
|
|
262
260
|
PlayerModerationType["InteractOff"] = "interactOff";
|
|
263
261
|
})(PlayerModerationType = exports.PlayerModerationType || (exports.PlayerModerationType = {}));
|
|
@@ -1105,6 +1103,41 @@ exports.AvatarsApiAxiosParamCreator = function (configuration) {
|
|
|
1105
1103
|
});
|
|
1106
1104
|
});
|
|
1107
1105
|
},
|
|
1106
|
+
/**
|
|
1107
|
+
* Get the current avatar for the user. This will return an error for any other user than the one logged in.
|
|
1108
|
+
* @summary Get Own Avatar
|
|
1109
|
+
* @param {string} userId
|
|
1110
|
+
* @param {*} [options] Override http request option.
|
|
1111
|
+
* @throws {RequiredError}
|
|
1112
|
+
*/
|
|
1113
|
+
getOwnAvatar: function (userId, options) {
|
|
1114
|
+
if (options === void 0) { options = {}; }
|
|
1115
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1116
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1117
|
+
return __generator(this, function (_a) {
|
|
1118
|
+
// verify required parameter 'userId' is not null or undefined
|
|
1119
|
+
common_1.assertParamExists('getOwnAvatar', 'userId', userId);
|
|
1120
|
+
localVarPath = "/users/{userId}/avatar"
|
|
1121
|
+
.replace("{" + "userId" + "}", encodeURIComponent(String(userId)));
|
|
1122
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1123
|
+
if (configuration) {
|
|
1124
|
+
baseOptions = configuration.baseOptions;
|
|
1125
|
+
}
|
|
1126
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1127
|
+
localVarHeaderParameter = {};
|
|
1128
|
+
localVarQueryParameter = {};
|
|
1129
|
+
// authentication apiKeyCookie required
|
|
1130
|
+
// authentication authCookie required
|
|
1131
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1132
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1133
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1134
|
+
return [2 /*return*/, {
|
|
1135
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
1136
|
+
options: localVarRequestOptions,
|
|
1137
|
+
}];
|
|
1138
|
+
});
|
|
1139
|
+
});
|
|
1140
|
+
},
|
|
1108
1141
|
/**
|
|
1109
1142
|
* Search and list avatars by query filters. You can only search your own or featured avatars. It is not possible as a normal user to search other peoples avatars.
|
|
1110
1143
|
* @summary Search Avatars
|
|
@@ -1397,6 +1430,26 @@ exports.AvatarsApiFp = function (configuration) {
|
|
|
1397
1430
|
});
|
|
1398
1431
|
});
|
|
1399
1432
|
},
|
|
1433
|
+
/**
|
|
1434
|
+
* Get the current avatar for the user. This will return an error for any other user than the one logged in.
|
|
1435
|
+
* @summary Get Own Avatar
|
|
1436
|
+
* @param {string} userId
|
|
1437
|
+
* @param {*} [options] Override http request option.
|
|
1438
|
+
* @throws {RequiredError}
|
|
1439
|
+
*/
|
|
1440
|
+
getOwnAvatar: function (userId, options) {
|
|
1441
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1442
|
+
var localVarAxiosArgs;
|
|
1443
|
+
return __generator(this, function (_a) {
|
|
1444
|
+
switch (_a.label) {
|
|
1445
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOwnAvatar(userId, options)];
|
|
1446
|
+
case 1:
|
|
1447
|
+
localVarAxiosArgs = _a.sent();
|
|
1448
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1449
|
+
}
|
|
1450
|
+
});
|
|
1451
|
+
});
|
|
1452
|
+
},
|
|
1400
1453
|
/**
|
|
1401
1454
|
* Search and list avatars by query filters. You can only search your own or featured avatars. It is not possible as a normal user to search other peoples avatars.
|
|
1402
1455
|
* @summary Search Avatars
|
|
@@ -1551,6 +1604,16 @@ exports.AvatarsApiFactory = function (configuration, basePath, axios) {
|
|
|
1551
1604
|
getFavoritedAvatars: function (featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId, options) {
|
|
1552
1605
|
return localVarFp.getFavoritedAvatars(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId, options).then(function (request) { return request(axios, basePath); });
|
|
1553
1606
|
},
|
|
1607
|
+
/**
|
|
1608
|
+
* Get the current avatar for the user. This will return an error for any other user than the one logged in.
|
|
1609
|
+
* @summary Get Own Avatar
|
|
1610
|
+
* @param {string} userId
|
|
1611
|
+
* @param {*} [options] Override http request option.
|
|
1612
|
+
* @throws {RequiredError}
|
|
1613
|
+
*/
|
|
1614
|
+
getOwnAvatar: function (userId, options) {
|
|
1615
|
+
return localVarFp.getOwnAvatar(userId, options).then(function (request) { return request(axios, basePath); });
|
|
1616
|
+
},
|
|
1554
1617
|
/**
|
|
1555
1618
|
* Search and list avatars by query filters. You can only search your own or featured avatars. It is not possible as a normal user to search other peoples avatars.
|
|
1556
1619
|
* @summary Search Avatars
|
|
@@ -1677,6 +1740,18 @@ var AvatarsApi = /** @class */ (function (_super) {
|
|
|
1677
1740
|
var _this = this;
|
|
1678
1741
|
return exports.AvatarsApiFp(this.configuration).getFavoritedAvatars(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1679
1742
|
};
|
|
1743
|
+
/**
|
|
1744
|
+
* Get the current avatar for the user. This will return an error for any other user than the one logged in.
|
|
1745
|
+
* @summary Get Own Avatar
|
|
1746
|
+
* @param {string} userId
|
|
1747
|
+
* @param {*} [options] Override http request option.
|
|
1748
|
+
* @throws {RequiredError}
|
|
1749
|
+
* @memberof AvatarsApi
|
|
1750
|
+
*/
|
|
1751
|
+
AvatarsApi.prototype.getOwnAvatar = function (userId, options) {
|
|
1752
|
+
var _this = this;
|
|
1753
|
+
return exports.AvatarsApiFp(this.configuration).getOwnAvatar(userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1754
|
+
};
|
|
1680
1755
|
/**
|
|
1681
1756
|
* Search and list avatars by query filters. You can only search your own or featured avatars. It is not possible as a normal user to search other peoples avatars.
|
|
1682
1757
|
* @summary Search Avatars
|
|
@@ -7091,10 +7166,11 @@ exports.UsersApiAxiosParamCreator = function (configuration) {
|
|
|
7091
7166
|
});
|
|
7092
7167
|
},
|
|
7093
7168
|
/**
|
|
7094
|
-
* Get public user information about a specific user using their name.
|
|
7169
|
+
* ~~Get public user information about a specific user using their name.~~ **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). This endpoint now require Admin Credentials.
|
|
7095
7170
|
* @summary Get User by Username
|
|
7096
7171
|
* @param {string} username
|
|
7097
7172
|
* @param {*} [options] Override http request option.
|
|
7173
|
+
* @deprecated
|
|
7098
7174
|
* @throws {RequiredError}
|
|
7099
7175
|
*/
|
|
7100
7176
|
getUserByName: function (username, options) {
|
|
@@ -7240,10 +7316,11 @@ exports.UsersApiFp = function (configuration) {
|
|
|
7240
7316
|
});
|
|
7241
7317
|
},
|
|
7242
7318
|
/**
|
|
7243
|
-
* Get public user information about a specific user using their name.
|
|
7319
|
+
* ~~Get public user information about a specific user using their name.~~ **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). This endpoint now require Admin Credentials.
|
|
7244
7320
|
* @summary Get User by Username
|
|
7245
7321
|
* @param {string} username
|
|
7246
7322
|
* @param {*} [options] Override http request option.
|
|
7323
|
+
* @deprecated
|
|
7247
7324
|
* @throws {RequiredError}
|
|
7248
7325
|
*/
|
|
7249
7326
|
getUserByName: function (username, options) {
|
|
@@ -7323,10 +7400,11 @@ exports.UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
7323
7400
|
return localVarFp.getUser(userId, options).then(function (request) { return request(axios, basePath); });
|
|
7324
7401
|
},
|
|
7325
7402
|
/**
|
|
7326
|
-
* Get public user information about a specific user using their name.
|
|
7403
|
+
* ~~Get public user information about a specific user using their name.~~ **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). This endpoint now require Admin Credentials.
|
|
7327
7404
|
* @summary Get User by Username
|
|
7328
7405
|
* @param {string} username
|
|
7329
7406
|
* @param {*} [options] Override http request option.
|
|
7407
|
+
* @deprecated
|
|
7330
7408
|
* @throws {RequiredError}
|
|
7331
7409
|
*/
|
|
7332
7410
|
getUserByName: function (username, options) {
|
|
@@ -7382,10 +7460,11 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
7382
7460
|
return exports.UsersApiFp(this.configuration).getUser(userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7383
7461
|
};
|
|
7384
7462
|
/**
|
|
7385
|
-
* Get public user information about a specific user using their name.
|
|
7463
|
+
* ~~Get public user information about a specific user using their name.~~ **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). This endpoint now require Admin Credentials.
|
|
7386
7464
|
* @summary Get User by Username
|
|
7387
7465
|
* @param {string} username
|
|
7388
7466
|
* @param {*} [options] Override http request option.
|
|
7467
|
+
* @deprecated
|
|
7389
7468
|
* @throws {RequiredError}
|
|
7390
7469
|
* @memberof UsersApi
|
|
7391
7470
|
*/
|
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