vrchat 1.18.1 → 1.18.3

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 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
- const currentUser = resp.data;
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.1
6
+ * The version of the OpenAPI document: 1.18.3
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];
@@ -5904,6 +5929,12 @@ export interface UnityPackage {
5904
5929
  * @memberof UnityPackage
5905
5930
  */
5906
5931
  'created_at'?: string;
5932
+ /**
5933
+ *
5934
+ * @type {string}
5935
+ * @memberof UnityPackage
5936
+ */
5937
+ 'impostorizerVersion'?: string;
5907
5938
  /**
5908
5939
  * 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
5940
  * @type {string}
@@ -6502,6 +6533,12 @@ export interface User {
6502
6533
  * @memberof User
6503
6534
  */
6504
6535
  'last_login': string;
6536
+ /**
6537
+ *
6538
+ * @type {string}
6539
+ * @memberof User
6540
+ */
6541
+ 'last_mobile'?: string | null;
6505
6542
  /**
6506
6543
  * 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
6544
  * @type {string}
@@ -6525,7 +6562,7 @@ export interface User {
6525
6562
  * @type {string}
6526
6563
  * @memberof User
6527
6564
  */
6528
- 'platform': string;
6565
+ 'platform'?: string;
6529
6566
  /**
6530
6567
  *
6531
6568
  * @type {string}
@@ -6618,6 +6655,12 @@ export interface UserExists {
6618
6655
  * @memberof UserExists
6619
6656
  */
6620
6657
  'userExists': boolean;
6658
+ /**
6659
+ * Is the username valid?
6660
+ * @type {boolean}
6661
+ * @memberof UserExists
6662
+ */
6663
+ 'nameOk': boolean;
6621
6664
  }
6622
6665
  /**
6623
6666
  * * \"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 +11869,11 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio
11826
11869
  * @param {number} [n] The number of objects to return.
11827
11870
  * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
11828
11871
  * @param {GroupSearchSort} [sort] The sort order of Group Member results
11872
+ * @param {string} [roleId] Only returns members with a specific groupRoleId
11829
11873
  * @param {*} [options] Override http request option.
11830
11874
  * @throws {RequiredError}
11831
11875
  */
11832
- getGroupMembers: async (groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11876
+ getGroupMembers: async (groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, roleId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
11833
11877
  // verify required parameter 'groupId' is not null or undefined
11834
11878
  assertParamExists('getGroupMembers', 'groupId', groupId)
11835
11879
  const localVarPath = `/groups/{groupId}/members`
@@ -11859,6 +11903,10 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio
11859
11903
  localVarQueryParameter['sort'] = sort;
11860
11904
  }
11861
11905
 
11906
+ if (roleId !== undefined) {
11907
+ localVarQueryParameter['roleId'] = roleId;
11908
+ }
11909
+
11862
11910
 
11863
11911
 
11864
11912
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -12871,11 +12919,12 @@ export const GroupsApiFp = function(configuration?: Configuration) {
12871
12919
  * @param {number} [n] The number of objects to return.
12872
12920
  * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
12873
12921
  * @param {GroupSearchSort} [sort] The sort order of Group Member results
12922
+ * @param {string} [roleId] Only returns members with a specific groupRoleId
12874
12923
  * @param {*} [options] Override http request option.
12875
12924
  * @throws {RequiredError}
12876
12925
  */
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);
12926
+ async getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, roleId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GroupMember>>> {
12927
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGroupMembers(groupId, n, offset, sort, roleId, options);
12879
12928
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
12880
12929
  },
12881
12930
  /**
@@ -13374,11 +13423,12 @@ export const GroupsApiFactory = function (configuration?: Configuration, basePat
13374
13423
  * @param {number} [n] The number of objects to return.
13375
13424
  * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
13376
13425
  * @param {GroupSearchSort} [sort] The sort order of Group Member results
13426
+ * @param {string} [roleId] Only returns members with a specific groupRoleId
13377
13427
  * @param {*} [options] Override http request option.
13378
13428
  * @throws {RequiredError}
13379
13429
  */
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));
13430
+ getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, roleId?: string, options?: any): AxiosPromise<Array<GroupMember>> {
13431
+ return localVarFp.getGroupMembers(groupId, n, offset, sort, roleId, options).then((request) => request(axios, basePath));
13382
13432
  },
13383
13433
  /**
13384
13434
  * Returns a List of all possible/available permissions for a Group.
@@ -13910,12 +13960,13 @@ export class GroupsApi extends BaseAPI {
13910
13960
  * @param {number} [n] The number of objects to return.
13911
13961
  * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
13912
13962
  * @param {GroupSearchSort} [sort] The sort order of Group Member results
13963
+ * @param {string} [roleId] Only returns members with a specific groupRoleId
13913
13964
  * @param {*} [options] Override http request option.
13914
13965
  * @throws {RequiredError}
13915
13966
  * @memberof GroupsApi
13916
13967
  */
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));
13968
+ public getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, roleId?: string, options?: AxiosRequestConfig) {
13969
+ return GroupsApiFp(this.configuration).getGroupMembers(groupId, n, offset, sort, roleId, options).then((request) => request(this.axios, this.basePath));
13919
13970
  }
13920
13971
 
13921
13972
  /**
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.1
6
+ * The version of the OpenAPI document: 1.18.3
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.1
6
+ * The version of the OpenAPI document: 1.18.3
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.1
6
+ * The version of the OpenAPI document: 1.18.3
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.1
4
+ * The version of the OpenAPI document: 1.18.3
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
  /**
@@ -5776,6 +5801,12 @@ export interface UnityPackage {
5776
5801
  * @memberof UnityPackage
5777
5802
  */
5778
5803
  'created_at'?: string;
5804
+ /**
5805
+ *
5806
+ * @type {string}
5807
+ * @memberof UnityPackage
5808
+ */
5809
+ 'impostorizerVersion'?: string;
5779
5810
  /**
5780
5811
  * 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
5812
  * @type {string}
@@ -6374,6 +6405,12 @@ export interface User {
6374
6405
  * @memberof User
6375
6406
  */
6376
6407
  'last_login': string;
6408
+ /**
6409
+ *
6410
+ * @type {string}
6411
+ * @memberof User
6412
+ */
6413
+ 'last_mobile'?: string | null;
6377
6414
  /**
6378
6415
  * 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
6416
  * @type {string}
@@ -6397,7 +6434,7 @@ export interface User {
6397
6434
  * @type {string}
6398
6435
  * @memberof User
6399
6436
  */
6400
- 'platform': string;
6437
+ 'platform'?: string;
6401
6438
  /**
6402
6439
  *
6403
6440
  * @type {string}
@@ -6490,6 +6527,12 @@ export interface UserExists {
6490
6527
  * @memberof UserExists
6491
6528
  */
6492
6529
  'userExists': boolean;
6530
+ /**
6531
+ * Is the username valid?
6532
+ * @type {boolean}
6533
+ * @memberof UserExists
6534
+ */
6535
+ 'nameOk': boolean;
6493
6536
  }
6494
6537
  /**
6495
6538
  * * \"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 +9012,11 @@ export declare const GroupsApiAxiosParamCreator: (configuration?: Configuration)
8969
9012
  * @param {number} [n] The number of objects to return.
8970
9013
  * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
8971
9014
  * @param {GroupSearchSort} [sort] The sort order of Group Member results
9015
+ * @param {string} [roleId] Only returns members with a specific groupRoleId
8972
9016
  * @param {*} [options] Override http request option.
8973
9017
  * @throws {RequiredError}
8974
9018
  */
8975
- getGroupMembers: (groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, options?: AxiosRequestConfig) => Promise<RequestArgs>;
9019
+ getGroupMembers: (groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, roleId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
8976
9020
  /**
8977
9021
  * Returns a List of all possible/available permissions for a Group.
8978
9022
  * @summary List Group Permissions
@@ -9367,10 +9411,11 @@ export declare const GroupsApiFp: (configuration?: Configuration) => {
9367
9411
  * @param {number} [n] The number of objects to return.
9368
9412
  * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
9369
9413
  * @param {GroupSearchSort} [sort] The sort order of Group Member results
9414
+ * @param {string} [roleId] Only returns members with a specific groupRoleId
9370
9415
  * @param {*} [options] Override http request option.
9371
9416
  * @throws {RequiredError}
9372
9417
  */
9373
- getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GroupMember>>>;
9418
+ getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, roleId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GroupMember>>>;
9374
9419
  /**
9375
9420
  * Returns a List of all possible/available permissions for a Group.
9376
9421
  * @summary List Group Permissions
@@ -9765,10 +9810,11 @@ export declare const GroupsApiFactory: (configuration?: Configuration, basePath?
9765
9810
  * @param {number} [n] The number of objects to return.
9766
9811
  * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
9767
9812
  * @param {GroupSearchSort} [sort] The sort order of Group Member results
9813
+ * @param {string} [roleId] Only returns members with a specific groupRoleId
9768
9814
  * @param {*} [options] Override http request option.
9769
9815
  * @throws {RequiredError}
9770
9816
  */
9771
- getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, options?: any): AxiosPromise<Array<GroupMember>>;
9817
+ getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, roleId?: string, options?: any): AxiosPromise<Array<GroupMember>>;
9772
9818
  /**
9773
9819
  * Returns a List of all possible/available permissions for a Group.
9774
9820
  * @summary List Group Permissions
@@ -10190,11 +10236,12 @@ export declare class GroupsApi extends BaseAPI {
10190
10236
  * @param {number} [n] The number of objects to return.
10191
10237
  * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
10192
10238
  * @param {GroupSearchSort} [sort] The sort order of Group Member results
10239
+ * @param {string} [roleId] Only returns members with a specific groupRoleId
10193
10240
  * @param {*} [options] Override http request option.
10194
10241
  * @throws {RequiredError}
10195
10242
  * @memberof GroupsApi
10196
10243
  */
10197
- getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GroupMember[], any>>;
10244
+ getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, roleId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GroupMember[], any>>;
10198
10245
  /**
10199
10246
  * Returns a List of all possible/available permissions for a Group.
10200
10247
  * @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.1
7
+ * The version of the OpenAPI document: 1.18.3
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
  *
@@ -5480,10 +5481,11 @@ var GroupsApiAxiosParamCreator = function (configuration) {
5480
5481
  * @param {number} [n] The number of objects to return.
5481
5482
  * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
5482
5483
  * @param {GroupSearchSort} [sort] The sort order of Group Member results
5484
+ * @param {string} [roleId] Only returns members with a specific groupRoleId
5483
5485
  * @param {*} [options] Override http request option.
5484
5486
  * @throws {RequiredError}
5485
5487
  */
5486
- getGroupMembers: function (groupId, n, offset, sort, options) {
5488
+ getGroupMembers: function (groupId, n, offset, sort, roleId, options) {
5487
5489
  if (options === void 0) { options = {}; }
5488
5490
  return __awaiter(_this, void 0, void 0, function () {
5489
5491
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -5509,6 +5511,9 @@ var GroupsApiAxiosParamCreator = function (configuration) {
5509
5511
  if (sort !== undefined) {
5510
5512
  localVarQueryParameter['sort'] = sort;
5511
5513
  }
5514
+ if (roleId !== undefined) {
5515
+ localVarQueryParameter['roleId'] = roleId;
5516
+ }
5512
5517
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5513
5518
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5514
5519
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -6699,15 +6704,16 @@ var GroupsApiFp = function (configuration) {
6699
6704
  * @param {number} [n] The number of objects to return.
6700
6705
  * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
6701
6706
  * @param {GroupSearchSort} [sort] The sort order of Group Member results
6707
+ * @param {string} [roleId] Only returns members with a specific groupRoleId
6702
6708
  * @param {*} [options] Override http request option.
6703
6709
  * @throws {RequiredError}
6704
6710
  */
6705
- getGroupMembers: function (groupId, n, offset, sort, options) {
6711
+ getGroupMembers: function (groupId, n, offset, sort, roleId, options) {
6706
6712
  return __awaiter(this, void 0, void 0, function () {
6707
6713
  var localVarAxiosArgs;
6708
6714
  return __generator(this, function (_a) {
6709
6715
  switch (_a.label) {
6710
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGroupMembers(groupId, n, offset, sort, options)];
6716
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGroupMembers(groupId, n, offset, sort, roleId, options)];
6711
6717
  case 1:
6712
6718
  localVarAxiosArgs = _a.sent();
6713
6719
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -7355,11 +7361,12 @@ var GroupsApiFactory = function (configuration, basePath, axios) {
7355
7361
  * @param {number} [n] The number of objects to return.
7356
7362
  * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
7357
7363
  * @param {GroupSearchSort} [sort] The sort order of Group Member results
7364
+ * @param {string} [roleId] Only returns members with a specific groupRoleId
7358
7365
  * @param {*} [options] Override http request option.
7359
7366
  * @throws {RequiredError}
7360
7367
  */
7361
- getGroupMembers: function (groupId, n, offset, sort, options) {
7362
- return localVarFp.getGroupMembers(groupId, n, offset, sort, options).then(function (request) { return request(axios, basePath); });
7368
+ getGroupMembers: function (groupId, n, offset, sort, roleId, options) {
7369
+ return localVarFp.getGroupMembers(groupId, n, offset, sort, roleId, options).then(function (request) { return request(axios, basePath); });
7363
7370
  },
7364
7371
  /**
7365
7372
  * Returns a List of all possible/available permissions for a Group.
@@ -7895,13 +7902,14 @@ var GroupsApi = /** @class */ (function (_super) {
7895
7902
  * @param {number} [n] The number of objects to return.
7896
7903
  * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
7897
7904
  * @param {GroupSearchSort} [sort] The sort order of Group Member results
7905
+ * @param {string} [roleId] Only returns members with a specific groupRoleId
7898
7906
  * @param {*} [options] Override http request option.
7899
7907
  * @throws {RequiredError}
7900
7908
  * @memberof GroupsApi
7901
7909
  */
7902
- GroupsApi.prototype.getGroupMembers = function (groupId, n, offset, sort, options) {
7910
+ GroupsApi.prototype.getGroupMembers = function (groupId, n, offset, sort, roleId, options) {
7903
7911
  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); });
7912
+ return (0, exports.GroupsApiFp)(this.configuration).getGroupMembers(groupId, n, offset, sort, roleId, options).then(function (request) { return request(_this.axios, _this.basePath); });
7905
7913
  };
7906
7914
  /**
7907
7915
  * 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.1
4
+ * The version of the OpenAPI document: 1.18.3
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.1
7
+ * The version of the OpenAPI document: 1.18.3
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.1
4
+ * The version of the OpenAPI document: 1.18.3
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.1
7
+ * The version of the OpenAPI document: 1.18.3
8
8
  * Contact: vrchatapi.lpv0t@aries.fyi
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * VRChat API Documentation
3
3
  *
4
- * The version of the OpenAPI document: 1.18.1
4
+ * The version of the OpenAPI document: 1.18.3
5
5
  * Contact: vrchatapi.lpv0t@aries.fyi
6
6
  *
7
7
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * VRChat API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.18.1
7
+ * The version of the OpenAPI document: 1.18.3
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.1
4
+ * The version of the OpenAPI document: 1.18.3
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.1
7
+ * The version of the OpenAPI document: 1.18.3
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
- SystemApi.getCurrentOnlineUsers().then(resp => {
12
- console.log(`Current Online Users: ${resp.data}`);
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
- // Calling getCurrentUser on Authentication API logs you in if the user isn't already logged in.
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
- UsersApi.getUser("usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469").then(resp => {
19
- console.log(resp.data.displayName); // Should print out "tupper"
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.1
6
+ * The version of the OpenAPI document: 1.18.3
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vrchat",
3
- "version": "1.18.1",
3
+ "version": "1.18.3",
4
4
  "description": "🟡🔵 VRChat API Library for JavaScript and TypeScript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {