vrchat 1.8.0 → 1.9.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 +73 -4
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +35 -4
- package/dist/api.js +78 -3
- 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.1
|
|
7
7
|
* Contact: me@ariesclark.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2828,8 +2828,6 @@ export enum PlayerModerationType {
|
|
|
2828
2828
|
Unmute = 'unmute',
|
|
2829
2829
|
Block = 'block',
|
|
2830
2830
|
Unblock = 'unblock',
|
|
2831
|
-
HideAvatar = 'hideAvatar',
|
|
2832
|
-
ShowAvatar = 'showAvatar',
|
|
2833
2831
|
InteractOn = 'interactOn',
|
|
2834
2832
|
InteractOff = 'interactOff'
|
|
2835
2833
|
}
|
|
@@ -3679,7 +3677,7 @@ export interface User {
|
|
|
3679
3677
|
* @type {string}
|
|
3680
3678
|
* @memberof User
|
|
3681
3679
|
*/
|
|
3682
|
-
'friendRequestStatus'
|
|
3680
|
+
'friendRequestStatus'?: string;
|
|
3683
3681
|
/**
|
|
3684
3682
|
* A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.
|
|
3685
3683
|
* @type {string}
|
|
@@ -4915,6 +4913,44 @@ export const AvatarsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4915
4913
|
|
|
4916
4914
|
|
|
4917
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
|
+
|
|
4918
4954
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4919
4955
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4920
4956
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -5207,6 +5243,17 @@ export const AvatarsApiFp = function(configuration?: Configuration) {
|
|
|
5207
5243
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getFavoritedAvatars(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId, options);
|
|
5208
5244
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
5209
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
|
+
},
|
|
5210
5257
|
/**
|
|
5211
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.
|
|
5212
5259
|
* @summary Search Avatars
|
|
@@ -5326,6 +5373,16 @@ export const AvatarsApiFactory = function (configuration?: Configuration, basePa
|
|
|
5326
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>> {
|
|
5327
5374
|
return localVarFp.getFavoritedAvatars(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId, options).then((request) => request(axios, basePath));
|
|
5328
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
|
+
},
|
|
5329
5386
|
/**
|
|
5330
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.
|
|
5331
5388
|
* @summary Search Avatars
|
|
@@ -5449,6 +5506,18 @@ export class AvatarsApi extends BaseAPI {
|
|
|
5449
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));
|
|
5450
5507
|
}
|
|
5451
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
|
+
|
|
5452
5521
|
/**
|
|
5453
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.
|
|
5454
5523
|
* @summary Search Avatars
|
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.1
|
|
5
5
|
* Contact: me@ariesclark.com
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2791,8 +2791,6 @@ export declare enum PlayerModerationType {
|
|
|
2791
2791
|
Unmute = "unmute",
|
|
2792
2792
|
Block = "block",
|
|
2793
2793
|
Unblock = "unblock",
|
|
2794
|
-
HideAvatar = "hideAvatar",
|
|
2795
|
-
ShowAvatar = "showAvatar",
|
|
2796
2794
|
InteractOn = "interactOn",
|
|
2797
2795
|
InteractOff = "interactOff"
|
|
2798
2796
|
}
|
|
@@ -3633,7 +3631,7 @@ export interface User {
|
|
|
3633
3631
|
* @type {string}
|
|
3634
3632
|
* @memberof User
|
|
3635
3633
|
*/
|
|
3636
|
-
'friendRequestStatus'
|
|
3634
|
+
'friendRequestStatus'?: string;
|
|
3637
3635
|
/**
|
|
3638
3636
|
* A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.
|
|
3639
3637
|
* @type {string}
|
|
@@ -4427,6 +4425,14 @@ export declare const AvatarsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
4427
4425
|
* @throws {RequiredError}
|
|
4428
4426
|
*/
|
|
4429
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>;
|
|
4430
4436
|
/**
|
|
4431
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.
|
|
4432
4438
|
* @summary Search Avatars
|
|
@@ -4522,6 +4528,14 @@ export declare const AvatarsApiFp: (configuration?: Configuration) => {
|
|
|
4522
4528
|
* @throws {RequiredError}
|
|
4523
4529
|
*/
|
|
4524
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>>;
|
|
4525
4539
|
/**
|
|
4526
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.
|
|
4527
4541
|
* @summary Search Avatars
|
|
@@ -4617,6 +4631,14 @@ export declare const AvatarsApiFactory: (configuration?: Configuration, basePath
|
|
|
4617
4631
|
* @throws {RequiredError}
|
|
4618
4632
|
*/
|
|
4619
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>;
|
|
4620
4642
|
/**
|
|
4621
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.
|
|
4622
4644
|
* @summary Search Avatars
|
|
@@ -4718,6 +4740,15 @@ export declare class AvatarsApi extends BaseAPI {
|
|
|
4718
4740
|
* @memberof AvatarsApi
|
|
4719
4741
|
*/
|
|
4720
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>>;
|
|
4721
4752
|
/**
|
|
4722
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.
|
|
4723
4754
|
* @summary Search Avatars
|
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.1
|
|
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
|
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