vrchat 1.18.1 → 1.18.4
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/README.md +19 -3
- package/api.ts +67 -15
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +57 -9
- package/dist/api.js +18 -9
- 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/example.js +31 -8
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,20 +26,36 @@ npm install vrchat
|
|
|
26
26
|
Below is an example on how to login to the API and fetch your own user information.
|
|
27
27
|
|
|
28
28
|
```javascript
|
|
29
|
-
// Step 1. We begin with creating a Configuration, which contains the username and password for authentication.
|
|
29
|
+
// Step 1. We begin with creating a Configuration, which contains the username and password for authentication, as well as an options dictionary, which contains the user agent header.
|
|
30
30
|
const vrchat = require("vrchat");
|
|
31
|
+
|
|
31
32
|
const configuration = new vrchat.Configuration({
|
|
32
33
|
username: "username",
|
|
33
34
|
password: "password"
|
|
34
35
|
});
|
|
35
36
|
|
|
37
|
+
const options = { headers: { "User-Agent": "ExampleProgram/0.0.1 my@email.com"}};
|
|
38
|
+
|
|
36
39
|
// Step 2. VRChat consists of several API's (WorldsApi, UsersApi, FilesApi, NotificationsApi, FriendsApi, etc...)
|
|
37
40
|
// Here we instantiate the Authentication API which is required for logging in.
|
|
38
41
|
const AuthenticationApi = new vrchat.AuthenticationApi(configuration);
|
|
39
42
|
|
|
40
43
|
// Step 3. Calling getCurrentUser on Authentication API logs you in if the user isn't already logged in.
|
|
41
|
-
AuthenticationApi.getCurrentUser().then(resp => {
|
|
42
|
-
|
|
44
|
+
AuthenticationApi.getCurrentUser(options).then(async resp => {
|
|
45
|
+
var currentUser = resp.data;
|
|
46
|
+
|
|
47
|
+
// Step 3.5. Calling email verify2fa if the account has 2FA disabled
|
|
48
|
+
if (currentUser["requiresTwoFactorAuth"] && currentUser["requiresTwoFactorAuth"][0] === "emailOtp") {
|
|
49
|
+
await AuthenticationApi.verify2FAEmailCode({ code: "123456" }, options)
|
|
50
|
+
currentUser = (await AuthenticationApi.getCurrentUser(options)).data;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Step 3.5. Calling verify2fa if the account has 2FA enabled
|
|
54
|
+
if (currentUser["requiresTwoFactorAuth"] && currentUser["requiresTwoFactorAuth"][0] === "totp") {
|
|
55
|
+
await AuthenticationApi.verify2FA({ code: "123456" }, options)
|
|
56
|
+
currentUser = (await AuthenticationApi.getCurrentUser(options)).data;
|
|
57
|
+
}
|
|
58
|
+
|
|
43
59
|
console.log(`Logged in as: ${currentUser.displayName}`);
|
|
44
60
|
});
|
|
45
61
|
```
|
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.18.
|
|
6
|
+
* The version of the OpenAPI document: 1.18.4
|
|
7
7
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1785,6 +1785,18 @@ export interface CurrentUser {
|
|
|
1785
1785
|
* @memberof CurrentUser
|
|
1786
1786
|
*/
|
|
1787
1787
|
'pronouns': string;
|
|
1788
|
+
/**
|
|
1789
|
+
*
|
|
1790
|
+
* @type {string}
|
|
1791
|
+
* @memberof CurrentUser
|
|
1792
|
+
*/
|
|
1793
|
+
'queuedInstance'?: string | null;
|
|
1794
|
+
/**
|
|
1795
|
+
*
|
|
1796
|
+
* @type {boolean}
|
|
1797
|
+
* @memberof CurrentUser
|
|
1798
|
+
*/
|
|
1799
|
+
'receiveMobileInvitations'?: boolean;
|
|
1788
1800
|
/**
|
|
1789
1801
|
*
|
|
1790
1802
|
* @type {UserState}
|
|
@@ -1883,6 +1895,12 @@ export interface CurrentUserPresence {
|
|
|
1883
1895
|
* @memberof CurrentUserPresence
|
|
1884
1896
|
*/
|
|
1885
1897
|
'avatarThumbnail'?: string | null;
|
|
1898
|
+
/**
|
|
1899
|
+
*
|
|
1900
|
+
* @type {string}
|
|
1901
|
+
* @memberof CurrentUserPresence
|
|
1902
|
+
*/
|
|
1903
|
+
'currentAvatarTags'?: string;
|
|
1886
1904
|
/**
|
|
1887
1905
|
*
|
|
1888
1906
|
* @type {string}
|
|
@@ -1949,6 +1967,12 @@ export interface CurrentUserPresence {
|
|
|
1949
1967
|
* @memberof CurrentUserPresence
|
|
1950
1968
|
*/
|
|
1951
1969
|
'travelingToWorld'?: string;
|
|
1970
|
+
/**
|
|
1971
|
+
*
|
|
1972
|
+
* @type {string}
|
|
1973
|
+
* @memberof CurrentUserPresence
|
|
1974
|
+
*/
|
|
1975
|
+
'userIcon'?: string | null;
|
|
1952
1976
|
/**
|
|
1953
1977
|
* WorldID be \"offline\" on User profiles if you are not friends with that user.
|
|
1954
1978
|
* @type {string}
|
|
@@ -2505,7 +2529,7 @@ export interface Group {
|
|
|
2505
2529
|
*/
|
|
2506
2530
|
'joinState'?: GroupJoinState;
|
|
2507
2531
|
/**
|
|
2508
|
-
*
|
|
2532
|
+
*
|
|
2509
2533
|
* @type {Array<string>}
|
|
2510
2534
|
* @memberof Group
|
|
2511
2535
|
*/
|
|
@@ -2517,7 +2541,7 @@ export interface Group {
|
|
|
2517
2541
|
*/
|
|
2518
2542
|
'transferTargetId'?: string;
|
|
2519
2543
|
/**
|
|
2520
|
-
*
|
|
2544
|
+
*
|
|
2521
2545
|
* @type {Array<GroupGallery>}
|
|
2522
2546
|
* @memberof Group
|
|
2523
2547
|
*/
|
|
@@ -2539,7 +2563,7 @@ export interface Group {
|
|
|
2539
2563
|
* @type {string}
|
|
2540
2564
|
* @memberof Group
|
|
2541
2565
|
*/
|
|
2542
|
-
'lastPostCreatedAt'?: string;
|
|
2566
|
+
'lastPostCreatedAt'?: string | null;
|
|
2543
2567
|
/**
|
|
2544
2568
|
*
|
|
2545
2569
|
* @type {number}
|
|
@@ -3199,7 +3223,7 @@ export interface GroupMyMember {
|
|
|
3199
3223
|
* @type {string}
|
|
3200
3224
|
* @memberof GroupMyMember
|
|
3201
3225
|
*/
|
|
3202
|
-
'acceptedByDisplayName'?: string;
|
|
3226
|
+
'acceptedByDisplayName'?: string | null;
|
|
3203
3227
|
/**
|
|
3204
3228
|
* 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.
|
|
3205
3229
|
* @type {string}
|
|
@@ -3271,7 +3295,7 @@ export interface GroupMyMember {
|
|
|
3271
3295
|
* @type {string}
|
|
3272
3296
|
* @memberof GroupMyMember
|
|
3273
3297
|
*/
|
|
3274
|
-
'lastPostReadAt'?: string;
|
|
3298
|
+
'lastPostReadAt'?: string | null;
|
|
3275
3299
|
/**
|
|
3276
3300
|
*
|
|
3277
3301
|
* @type {Array<string>}
|
|
@@ -4001,7 +4025,8 @@ export const InstanceRegion = {
|
|
|
4001
4025
|
Us: 'us',
|
|
4002
4026
|
Use: 'use',
|
|
4003
4027
|
Eu: 'eu',
|
|
4004
|
-
Jp: 'jp'
|
|
4028
|
+
Jp: 'jp',
|
|
4029
|
+
Unknown: 'unknown'
|
|
4005
4030
|
} as const;
|
|
4006
4031
|
|
|
4007
4032
|
export type InstanceRegion = typeof InstanceRegion[keyof typeof InstanceRegion];
|
|
@@ -5209,6 +5234,7 @@ export const Region = {
|
|
|
5209
5234
|
Us: 'us',
|
|
5210
5235
|
Use: 'use',
|
|
5211
5236
|
Usw: 'usw',
|
|
5237
|
+
Usx: 'usx',
|
|
5212
5238
|
Eu: 'eu',
|
|
5213
5239
|
Jp: 'jp',
|
|
5214
5240
|
Unknown: 'unknown'
|
|
@@ -5904,6 +5930,12 @@ export interface UnityPackage {
|
|
|
5904
5930
|
* @memberof UnityPackage
|
|
5905
5931
|
*/
|
|
5906
5932
|
'created_at'?: string;
|
|
5933
|
+
/**
|
|
5934
|
+
*
|
|
5935
|
+
* @type {string}
|
|
5936
|
+
* @memberof UnityPackage
|
|
5937
|
+
*/
|
|
5938
|
+
'impostorizerVersion'?: string;
|
|
5907
5939
|
/**
|
|
5908
5940
|
* This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`.
|
|
5909
5941
|
* @type {string}
|
|
@@ -6502,6 +6534,12 @@ export interface User {
|
|
|
6502
6534
|
* @memberof User
|
|
6503
6535
|
*/
|
|
6504
6536
|
'last_login': string;
|
|
6537
|
+
/**
|
|
6538
|
+
*
|
|
6539
|
+
* @type {string}
|
|
6540
|
+
* @memberof User
|
|
6541
|
+
*/
|
|
6542
|
+
'last_mobile'?: string | null;
|
|
6505
6543
|
/**
|
|
6506
6544
|
* This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`.
|
|
6507
6545
|
* @type {string}
|
|
@@ -6525,7 +6563,7 @@ export interface User {
|
|
|
6525
6563
|
* @type {string}
|
|
6526
6564
|
* @memberof User
|
|
6527
6565
|
*/
|
|
6528
|
-
'platform'
|
|
6566
|
+
'platform'?: string;
|
|
6529
6567
|
/**
|
|
6530
6568
|
*
|
|
6531
6569
|
* @type {string}
|
|
@@ -6618,6 +6656,12 @@ export interface UserExists {
|
|
|
6618
6656
|
* @memberof UserExists
|
|
6619
6657
|
*/
|
|
6620
6658
|
'userExists': boolean;
|
|
6659
|
+
/**
|
|
6660
|
+
* Is the username valid?
|
|
6661
|
+
* @type {boolean}
|
|
6662
|
+
* @memberof UserExists
|
|
6663
|
+
*/
|
|
6664
|
+
'nameOk': boolean;
|
|
6621
6665
|
}
|
|
6622
6666
|
/**
|
|
6623
6667
|
* * \"online\" User is online in VRChat * \"active\" User is online, but not in VRChat * \"offline\" User is offline Always offline when returned through `getCurrentUser` (/auth/user).
|
|
@@ -11826,10 +11870,11 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
11826
11870
|
* @param {number} [n] The number of objects to return.
|
|
11827
11871
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
11828
11872
|
* @param {GroupSearchSort} [sort] The sort order of Group Member results
|
|
11873
|
+
* @param {string} [roleId] Only returns members with a specific groupRoleId
|
|
11829
11874
|
* @param {*} [options] Override http request option.
|
|
11830
11875
|
* @throws {RequiredError}
|
|
11831
11876
|
*/
|
|
11832
|
-
getGroupMembers: async (groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11877
|
+
getGroupMembers: async (groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, roleId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11833
11878
|
// verify required parameter 'groupId' is not null or undefined
|
|
11834
11879
|
assertParamExists('getGroupMembers', 'groupId', groupId)
|
|
11835
11880
|
const localVarPath = `/groups/{groupId}/members`
|
|
@@ -11859,6 +11904,10 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
11859
11904
|
localVarQueryParameter['sort'] = sort;
|
|
11860
11905
|
}
|
|
11861
11906
|
|
|
11907
|
+
if (roleId !== undefined) {
|
|
11908
|
+
localVarQueryParameter['roleId'] = roleId;
|
|
11909
|
+
}
|
|
11910
|
+
|
|
11862
11911
|
|
|
11863
11912
|
|
|
11864
11913
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -12871,11 +12920,12 @@ export const GroupsApiFp = function(configuration?: Configuration) {
|
|
|
12871
12920
|
* @param {number} [n] The number of objects to return.
|
|
12872
12921
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
12873
12922
|
* @param {GroupSearchSort} [sort] The sort order of Group Member results
|
|
12923
|
+
* @param {string} [roleId] Only returns members with a specific groupRoleId
|
|
12874
12924
|
* @param {*} [options] Override http request option.
|
|
12875
12925
|
* @throws {RequiredError}
|
|
12876
12926
|
*/
|
|
12877
|
-
async getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GroupMember>>> {
|
|
12878
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getGroupMembers(groupId, n, offset, sort, options);
|
|
12927
|
+
async getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, roleId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GroupMember>>> {
|
|
12928
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGroupMembers(groupId, n, offset, sort, roleId, options);
|
|
12879
12929
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12880
12930
|
},
|
|
12881
12931
|
/**
|
|
@@ -13374,11 +13424,12 @@ export const GroupsApiFactory = function (configuration?: Configuration, basePat
|
|
|
13374
13424
|
* @param {number} [n] The number of objects to return.
|
|
13375
13425
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
13376
13426
|
* @param {GroupSearchSort} [sort] The sort order of Group Member results
|
|
13427
|
+
* @param {string} [roleId] Only returns members with a specific groupRoleId
|
|
13377
13428
|
* @param {*} [options] Override http request option.
|
|
13378
13429
|
* @throws {RequiredError}
|
|
13379
13430
|
*/
|
|
13380
|
-
getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, options?: any): AxiosPromise<Array<GroupMember>> {
|
|
13381
|
-
return localVarFp.getGroupMembers(groupId, n, offset, sort, options).then((request) => request(axios, basePath));
|
|
13431
|
+
getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, roleId?: string, options?: any): AxiosPromise<Array<GroupMember>> {
|
|
13432
|
+
return localVarFp.getGroupMembers(groupId, n, offset, sort, roleId, options).then((request) => request(axios, basePath));
|
|
13382
13433
|
},
|
|
13383
13434
|
/**
|
|
13384
13435
|
* Returns a List of all possible/available permissions for a Group.
|
|
@@ -13910,12 +13961,13 @@ export class GroupsApi extends BaseAPI {
|
|
|
13910
13961
|
* @param {number} [n] The number of objects to return.
|
|
13911
13962
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
13912
13963
|
* @param {GroupSearchSort} [sort] The sort order of Group Member results
|
|
13964
|
+
* @param {string} [roleId] Only returns members with a specific groupRoleId
|
|
13913
13965
|
* @param {*} [options] Override http request option.
|
|
13914
13966
|
* @throws {RequiredError}
|
|
13915
13967
|
* @memberof GroupsApi
|
|
13916
13968
|
*/
|
|
13917
|
-
public getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, options?: AxiosRequestConfig) {
|
|
13918
|
-
return GroupsApiFp(this.configuration).getGroupMembers(groupId, n, offset, sort, options).then((request) => request(this.axios, this.basePath));
|
|
13969
|
+
public getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, roleId?: string, options?: AxiosRequestConfig) {
|
|
13970
|
+
return GroupsApiFp(this.configuration).getGroupMembers(groupId, n, offset, sort, roleId, options).then((request) => request(this.axios, this.basePath));
|
|
13919
13971
|
}
|
|
13920
13972
|
|
|
13921
13973
|
/**
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* VRChat API Documentation
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 1.18.
|
|
6
|
+
* The version of the OpenAPI document: 1.18.4
|
|
7
7
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/common.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* VRChat API Documentation
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 1.18.
|
|
6
|
+
* The version of the OpenAPI document: 1.18.4
|
|
7
7
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* VRChat API Documentation
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 1.18.
|
|
6
|
+
* The version of the OpenAPI document: 1.18.4
|
|
7
7
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
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.18.
|
|
4
|
+
* The version of the OpenAPI document: 1.18.4
|
|
5
5
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1775,6 +1775,18 @@ export interface CurrentUser {
|
|
|
1775
1775
|
* @memberof CurrentUser
|
|
1776
1776
|
*/
|
|
1777
1777
|
'pronouns': string;
|
|
1778
|
+
/**
|
|
1779
|
+
*
|
|
1780
|
+
* @type {string}
|
|
1781
|
+
* @memberof CurrentUser
|
|
1782
|
+
*/
|
|
1783
|
+
'queuedInstance'?: string | null;
|
|
1784
|
+
/**
|
|
1785
|
+
*
|
|
1786
|
+
* @type {boolean}
|
|
1787
|
+
* @memberof CurrentUser
|
|
1788
|
+
*/
|
|
1789
|
+
'receiveMobileInvitations'?: boolean;
|
|
1778
1790
|
/**
|
|
1779
1791
|
*
|
|
1780
1792
|
* @type {UserState}
|
|
@@ -1873,6 +1885,12 @@ export interface CurrentUserPresence {
|
|
|
1873
1885
|
* @memberof CurrentUserPresence
|
|
1874
1886
|
*/
|
|
1875
1887
|
'avatarThumbnail'?: string | null;
|
|
1888
|
+
/**
|
|
1889
|
+
*
|
|
1890
|
+
* @type {string}
|
|
1891
|
+
* @memberof CurrentUserPresence
|
|
1892
|
+
*/
|
|
1893
|
+
'currentAvatarTags'?: string;
|
|
1876
1894
|
/**
|
|
1877
1895
|
*
|
|
1878
1896
|
* @type {string}
|
|
@@ -1939,6 +1957,12 @@ export interface CurrentUserPresence {
|
|
|
1939
1957
|
* @memberof CurrentUserPresence
|
|
1940
1958
|
*/
|
|
1941
1959
|
'travelingToWorld'?: string;
|
|
1960
|
+
/**
|
|
1961
|
+
*
|
|
1962
|
+
* @type {string}
|
|
1963
|
+
* @memberof CurrentUserPresence
|
|
1964
|
+
*/
|
|
1965
|
+
'userIcon'?: string | null;
|
|
1942
1966
|
/**
|
|
1943
1967
|
* WorldID be \"offline\" on User profiles if you are not friends with that user.
|
|
1944
1968
|
* @type {string}
|
|
@@ -2506,7 +2530,7 @@ export interface Group {
|
|
|
2506
2530
|
* @type {string}
|
|
2507
2531
|
* @memberof Group
|
|
2508
2532
|
*/
|
|
2509
|
-
'lastPostCreatedAt'?: string;
|
|
2533
|
+
'lastPostCreatedAt'?: string | null;
|
|
2510
2534
|
/**
|
|
2511
2535
|
*
|
|
2512
2536
|
* @type {number}
|
|
@@ -3150,7 +3174,7 @@ export interface GroupMyMember {
|
|
|
3150
3174
|
* @type {string}
|
|
3151
3175
|
* @memberof GroupMyMember
|
|
3152
3176
|
*/
|
|
3153
|
-
'acceptedByDisplayName'?: string;
|
|
3177
|
+
'acceptedByDisplayName'?: string | null;
|
|
3154
3178
|
/**
|
|
3155
3179
|
* 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.
|
|
3156
3180
|
* @type {string}
|
|
@@ -3222,7 +3246,7 @@ export interface GroupMyMember {
|
|
|
3222
3246
|
* @type {string}
|
|
3223
3247
|
* @memberof GroupMyMember
|
|
3224
3248
|
*/
|
|
3225
|
-
'lastPostReadAt'?: string;
|
|
3249
|
+
'lastPostReadAt'?: string | null;
|
|
3226
3250
|
/**
|
|
3227
3251
|
*
|
|
3228
3252
|
* @type {Array<string>}
|
|
@@ -3929,6 +3953,7 @@ export declare const InstanceRegion: {
|
|
|
3929
3953
|
readonly Use: "use";
|
|
3930
3954
|
readonly Eu: "eu";
|
|
3931
3955
|
readonly Jp: "jp";
|
|
3956
|
+
readonly Unknown: "unknown";
|
|
3932
3957
|
};
|
|
3933
3958
|
export type InstanceRegion = typeof InstanceRegion[keyof typeof InstanceRegion];
|
|
3934
3959
|
/**
|
|
@@ -5100,6 +5125,7 @@ export declare const Region: {
|
|
|
5100
5125
|
readonly Us: "us";
|
|
5101
5126
|
readonly Use: "use";
|
|
5102
5127
|
readonly Usw: "usw";
|
|
5128
|
+
readonly Usx: "usx";
|
|
5103
5129
|
readonly Eu: "eu";
|
|
5104
5130
|
readonly Jp: "jp";
|
|
5105
5131
|
readonly Unknown: "unknown";
|
|
@@ -5776,6 +5802,12 @@ export interface UnityPackage {
|
|
|
5776
5802
|
* @memberof UnityPackage
|
|
5777
5803
|
*/
|
|
5778
5804
|
'created_at'?: string;
|
|
5805
|
+
/**
|
|
5806
|
+
*
|
|
5807
|
+
* @type {string}
|
|
5808
|
+
* @memberof UnityPackage
|
|
5809
|
+
*/
|
|
5810
|
+
'impostorizerVersion'?: string;
|
|
5779
5811
|
/**
|
|
5780
5812
|
* This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`.
|
|
5781
5813
|
* @type {string}
|
|
@@ -6374,6 +6406,12 @@ export interface User {
|
|
|
6374
6406
|
* @memberof User
|
|
6375
6407
|
*/
|
|
6376
6408
|
'last_login': string;
|
|
6409
|
+
/**
|
|
6410
|
+
*
|
|
6411
|
+
* @type {string}
|
|
6412
|
+
* @memberof User
|
|
6413
|
+
*/
|
|
6414
|
+
'last_mobile'?: string | null;
|
|
6377
6415
|
/**
|
|
6378
6416
|
* This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`.
|
|
6379
6417
|
* @type {string}
|
|
@@ -6397,7 +6435,7 @@ export interface User {
|
|
|
6397
6435
|
* @type {string}
|
|
6398
6436
|
* @memberof User
|
|
6399
6437
|
*/
|
|
6400
|
-
'platform'
|
|
6438
|
+
'platform'?: string;
|
|
6401
6439
|
/**
|
|
6402
6440
|
*
|
|
6403
6441
|
* @type {string}
|
|
@@ -6490,6 +6528,12 @@ export interface UserExists {
|
|
|
6490
6528
|
* @memberof UserExists
|
|
6491
6529
|
*/
|
|
6492
6530
|
'userExists': boolean;
|
|
6531
|
+
/**
|
|
6532
|
+
* Is the username valid?
|
|
6533
|
+
* @type {boolean}
|
|
6534
|
+
* @memberof UserExists
|
|
6535
|
+
*/
|
|
6536
|
+
'nameOk': boolean;
|
|
6493
6537
|
}
|
|
6494
6538
|
/**
|
|
6495
6539
|
* * \"online\" User is online in VRChat * \"active\" User is online, but not in VRChat * \"offline\" User is offline Always offline when returned through `getCurrentUser` (/auth/user).
|
|
@@ -8969,10 +9013,11 @@ export declare const GroupsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
8969
9013
|
* @param {number} [n] The number of objects to return.
|
|
8970
9014
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
8971
9015
|
* @param {GroupSearchSort} [sort] The sort order of Group Member results
|
|
9016
|
+
* @param {string} [roleId] Only returns members with a specific groupRoleId
|
|
8972
9017
|
* @param {*} [options] Override http request option.
|
|
8973
9018
|
* @throws {RequiredError}
|
|
8974
9019
|
*/
|
|
8975
|
-
getGroupMembers: (groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
9020
|
+
getGroupMembers: (groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, roleId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
8976
9021
|
/**
|
|
8977
9022
|
* Returns a List of all possible/available permissions for a Group.
|
|
8978
9023
|
* @summary List Group Permissions
|
|
@@ -9367,10 +9412,11 @@ export declare const GroupsApiFp: (configuration?: Configuration) => {
|
|
|
9367
9412
|
* @param {number} [n] The number of objects to return.
|
|
9368
9413
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
9369
9414
|
* @param {GroupSearchSort} [sort] The sort order of Group Member results
|
|
9415
|
+
* @param {string} [roleId] Only returns members with a specific groupRoleId
|
|
9370
9416
|
* @param {*} [options] Override http request option.
|
|
9371
9417
|
* @throws {RequiredError}
|
|
9372
9418
|
*/
|
|
9373
|
-
getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GroupMember>>>;
|
|
9419
|
+
getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, roleId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GroupMember>>>;
|
|
9374
9420
|
/**
|
|
9375
9421
|
* Returns a List of all possible/available permissions for a Group.
|
|
9376
9422
|
* @summary List Group Permissions
|
|
@@ -9765,10 +9811,11 @@ export declare const GroupsApiFactory: (configuration?: Configuration, basePath?
|
|
|
9765
9811
|
* @param {number} [n] The number of objects to return.
|
|
9766
9812
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
9767
9813
|
* @param {GroupSearchSort} [sort] The sort order of Group Member results
|
|
9814
|
+
* @param {string} [roleId] Only returns members with a specific groupRoleId
|
|
9768
9815
|
* @param {*} [options] Override http request option.
|
|
9769
9816
|
* @throws {RequiredError}
|
|
9770
9817
|
*/
|
|
9771
|
-
getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, options?: any): AxiosPromise<Array<GroupMember>>;
|
|
9818
|
+
getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, roleId?: string, options?: any): AxiosPromise<Array<GroupMember>>;
|
|
9772
9819
|
/**
|
|
9773
9820
|
* Returns a List of all possible/available permissions for a Group.
|
|
9774
9821
|
* @summary List Group Permissions
|
|
@@ -10190,11 +10237,12 @@ export declare class GroupsApi extends BaseAPI {
|
|
|
10190
10237
|
* @param {number} [n] The number of objects to return.
|
|
10191
10238
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
10192
10239
|
* @param {GroupSearchSort} [sort] The sort order of Group Member results
|
|
10240
|
+
* @param {string} [roleId] Only returns members with a specific groupRoleId
|
|
10193
10241
|
* @param {*} [options] Override http request option.
|
|
10194
10242
|
* @throws {RequiredError}
|
|
10195
10243
|
* @memberof GroupsApi
|
|
10196
10244
|
*/
|
|
10197
|
-
getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GroupMember[], any>>;
|
|
10245
|
+
getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, roleId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GroupMember[], any>>;
|
|
10198
10246
|
/**
|
|
10199
10247
|
* Returns a List of all possible/available permissions for a Group.
|
|
10200
10248
|
* @summary List Group Permissions
|
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.18.
|
|
7
|
+
* The version of the OpenAPI document: 1.18.4
|
|
8
8
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -251,7 +251,8 @@ exports.InstanceRegion = {
|
|
|
251
251
|
Us: 'us',
|
|
252
252
|
Use: 'use',
|
|
253
253
|
Eu: 'eu',
|
|
254
|
-
Jp: 'jp'
|
|
254
|
+
Jp: 'jp',
|
|
255
|
+
Unknown: 'unknown'
|
|
255
256
|
};
|
|
256
257
|
/**
|
|
257
258
|
*
|
|
@@ -362,6 +363,7 @@ exports.Region = {
|
|
|
362
363
|
Us: 'us',
|
|
363
364
|
Use: 'use',
|
|
364
365
|
Usw: 'usw',
|
|
366
|
+
Usx: 'usx',
|
|
365
367
|
Eu: 'eu',
|
|
366
368
|
Jp: 'jp',
|
|
367
369
|
Unknown: 'unknown'
|
|
@@ -5480,10 +5482,11 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
5480
5482
|
* @param {number} [n] The number of objects to return.
|
|
5481
5483
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
5482
5484
|
* @param {GroupSearchSort} [sort] The sort order of Group Member results
|
|
5485
|
+
* @param {string} [roleId] Only returns members with a specific groupRoleId
|
|
5483
5486
|
* @param {*} [options] Override http request option.
|
|
5484
5487
|
* @throws {RequiredError}
|
|
5485
5488
|
*/
|
|
5486
|
-
getGroupMembers: function (groupId, n, offset, sort, options) {
|
|
5489
|
+
getGroupMembers: function (groupId, n, offset, sort, roleId, options) {
|
|
5487
5490
|
if (options === void 0) { options = {}; }
|
|
5488
5491
|
return __awaiter(_this, void 0, void 0, function () {
|
|
5489
5492
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -5509,6 +5512,9 @@ var GroupsApiAxiosParamCreator = function (configuration) {
|
|
|
5509
5512
|
if (sort !== undefined) {
|
|
5510
5513
|
localVarQueryParameter['sort'] = sort;
|
|
5511
5514
|
}
|
|
5515
|
+
if (roleId !== undefined) {
|
|
5516
|
+
localVarQueryParameter['roleId'] = roleId;
|
|
5517
|
+
}
|
|
5512
5518
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5513
5519
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5514
5520
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6699,15 +6705,16 @@ var GroupsApiFp = function (configuration) {
|
|
|
6699
6705
|
* @param {number} [n] The number of objects to return.
|
|
6700
6706
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
6701
6707
|
* @param {GroupSearchSort} [sort] The sort order of Group Member results
|
|
6708
|
+
* @param {string} [roleId] Only returns members with a specific groupRoleId
|
|
6702
6709
|
* @param {*} [options] Override http request option.
|
|
6703
6710
|
* @throws {RequiredError}
|
|
6704
6711
|
*/
|
|
6705
|
-
getGroupMembers: function (groupId, n, offset, sort, options) {
|
|
6712
|
+
getGroupMembers: function (groupId, n, offset, sort, roleId, options) {
|
|
6706
6713
|
return __awaiter(this, void 0, void 0, function () {
|
|
6707
6714
|
var localVarAxiosArgs;
|
|
6708
6715
|
return __generator(this, function (_a) {
|
|
6709
6716
|
switch (_a.label) {
|
|
6710
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGroupMembers(groupId, n, offset, sort, options)];
|
|
6717
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGroupMembers(groupId, n, offset, sort, roleId, options)];
|
|
6711
6718
|
case 1:
|
|
6712
6719
|
localVarAxiosArgs = _a.sent();
|
|
6713
6720
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -7355,11 +7362,12 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
|
|
|
7355
7362
|
* @param {number} [n] The number of objects to return.
|
|
7356
7363
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
7357
7364
|
* @param {GroupSearchSort} [sort] The sort order of Group Member results
|
|
7365
|
+
* @param {string} [roleId] Only returns members with a specific groupRoleId
|
|
7358
7366
|
* @param {*} [options] Override http request option.
|
|
7359
7367
|
* @throws {RequiredError}
|
|
7360
7368
|
*/
|
|
7361
|
-
getGroupMembers: function (groupId, n, offset, sort, options) {
|
|
7362
|
-
return localVarFp.getGroupMembers(groupId, n, offset, sort, options).then(function (request) { return request(axios, basePath); });
|
|
7369
|
+
getGroupMembers: function (groupId, n, offset, sort, roleId, options) {
|
|
7370
|
+
return localVarFp.getGroupMembers(groupId, n, offset, sort, roleId, options).then(function (request) { return request(axios, basePath); });
|
|
7363
7371
|
},
|
|
7364
7372
|
/**
|
|
7365
7373
|
* Returns a List of all possible/available permissions for a Group.
|
|
@@ -7895,13 +7903,14 @@ var GroupsApi = /** @class */ (function (_super) {
|
|
|
7895
7903
|
* @param {number} [n] The number of objects to return.
|
|
7896
7904
|
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
7897
7905
|
* @param {GroupSearchSort} [sort] The sort order of Group Member results
|
|
7906
|
+
* @param {string} [roleId] Only returns members with a specific groupRoleId
|
|
7898
7907
|
* @param {*} [options] Override http request option.
|
|
7899
7908
|
* @throws {RequiredError}
|
|
7900
7909
|
* @memberof GroupsApi
|
|
7901
7910
|
*/
|
|
7902
|
-
GroupsApi.prototype.getGroupMembers = function (groupId, n, offset, sort, options) {
|
|
7911
|
+
GroupsApi.prototype.getGroupMembers = function (groupId, n, offset, sort, roleId, options) {
|
|
7903
7912
|
var _this = this;
|
|
7904
|
-
return (0, exports.GroupsApiFp)(this.configuration).getGroupMembers(groupId, n, offset, sort, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7913
|
+
return (0, exports.GroupsApiFp)(this.configuration).getGroupMembers(groupId, n, offset, sort, roleId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
7905
7914
|
};
|
|
7906
7915
|
/**
|
|
7907
7916
|
* Returns a List of all possible/available permissions for a Group.
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* VRChat API Documentation
|
|
3
3
|
*
|
|
4
|
-
* The version of the OpenAPI document: 1.18.
|
|
4
|
+
* The version of the OpenAPI document: 1.18.4
|
|
5
5
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* VRChat API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.18.
|
|
7
|
+
* The version of the OpenAPI document: 1.18.4
|
|
8
8
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* VRChat API Documentation
|
|
3
3
|
*
|
|
4
|
-
* The version of the OpenAPI document: 1.18.
|
|
4
|
+
* The version of the OpenAPI document: 1.18.4
|
|
5
5
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* VRChat API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.18.
|
|
7
|
+
* The version of the OpenAPI document: 1.18.4
|
|
8
8
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* VRChat API Documentation
|
|
3
3
|
*
|
|
4
|
-
* The version of the OpenAPI document: 1.18.
|
|
4
|
+
* The version of the OpenAPI document: 1.18.4
|
|
5
5
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* VRChat API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.18.
|
|
7
|
+
* The version of the OpenAPI document: 1.18.4
|
|
8
8
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* VRChat API Documentation
|
|
3
3
|
*
|
|
4
|
-
* The version of the OpenAPI document: 1.18.
|
|
4
|
+
* The version of the OpenAPI document: 1.18.4
|
|
5
5
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* VRChat API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.18.
|
|
7
|
+
* The version of the OpenAPI document: 1.18.4
|
|
8
8
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/example.js
CHANGED
|
@@ -1,22 +1,45 @@
|
|
|
1
1
|
const vrchat = require("vrchat");
|
|
2
|
+
const readline = require("readline")
|
|
3
|
+
|
|
4
|
+
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
|
|
5
|
+
const prompt = (query) => new Promise((resolve) => rl.question(query, resolve));
|
|
6
|
+
|
|
7
|
+
|
|
2
8
|
const configuration = new vrchat.Configuration({
|
|
3
9
|
username: "username",
|
|
4
10
|
password: "password"
|
|
5
11
|
});
|
|
6
12
|
|
|
13
|
+
const options = { headers: { "User-Agent": "ExampleProgram/0.0.1 my@email.com"}};
|
|
7
14
|
const AuthenticationApi = new vrchat.AuthenticationApi(configuration);
|
|
8
15
|
const UsersApi = new vrchat.UsersApi(configuration);
|
|
9
16
|
const SystemApi = new vrchat.SystemApi(configuration);
|
|
10
17
|
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
AuthenticationApi.getCurrentUser(options).then(async resp => {
|
|
19
|
+
var currentUser = resp.data;
|
|
20
|
+
|
|
21
|
+
if (currentUser["requiresTwoFactorAuth"] && currentUser["requiresTwoFactorAuth"][0] === "emailOtp") {
|
|
22
|
+
await AuthenticationApi.verify2FAEmailCode({ code: await prompt("email Code\n") }, options)
|
|
23
|
+
currentUser = (await AuthenticationApi.getCurrentUser(options)).data;
|
|
24
|
+
}
|
|
25
|
+
if (currentUser["requiresTwoFactorAuth"] && currentUser["requiresTwoFactorAuth"][0] === "totp") {
|
|
26
|
+
await AuthenticationApi.verify2FA({ code: await prompt("2fa Code\n") }, options)
|
|
27
|
+
currentUser = (await AuthenticationApi.getCurrentUser(options)).data;
|
|
28
|
+
}
|
|
13
29
|
|
|
14
|
-
|
|
15
|
-
AuthenticationApi.getCurrentUser().then(resp => {
|
|
16
|
-
console.log(`Logged in as: ${resp.data.displayName}`);
|
|
30
|
+
console.log(`Logged in as: ${currentUser.displayName}`);
|
|
17
31
|
|
|
18
|
-
|
|
19
|
-
|
|
32
|
+
SystemApi.getCurrentOnlineUsers(options).then(resp => {
|
|
33
|
+
console.log(`Current Online Users: ${resp.data}`);
|
|
34
|
+
|
|
35
|
+
// Calling getCurrentUser on Authentication API logs you in if the user isn't already logged in.
|
|
36
|
+
AuthenticationApi.getCurrentUser(options).then(resp => {
|
|
37
|
+
console.log(`Logged in as: ${resp.data.displayName}`);
|
|
38
|
+
|
|
39
|
+
UsersApi.getUser("usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469", options).then(resp => {
|
|
40
|
+
console.log(resp.data.displayName); // Should print out "tupper"
|
|
41
|
+
});
|
|
20
42
|
});
|
|
21
43
|
});
|
|
22
|
-
});
|
|
44
|
+
});
|
|
45
|
+
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* VRChat API Documentation
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 1.18.
|
|
6
|
+
* The version of the OpenAPI document: 1.18.4
|
|
7
7
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|