vrchat 1.3.0 → 1.3.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.
@@ -0,0 +1,18 @@
1
+ on: push
2
+
3
+ name: Upload to NPM
4
+
5
+ jobs:
6
+ publish:
7
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
8
+ runs-on: ubuntu-latest
9
+ name: Upload to NPM
10
+ steps:
11
+ - uses: actions/checkout@v2
12
+ - uses: actions/setup-node@v2
13
+ with:
14
+ node-version: '14'
15
+ - run: npm install
16
+ - uses: JS-DevTools/npm-publish@v1
17
+ with:
18
+ token: ${{ secrets.NPM_TOKEN }}
@@ -1,8 +1,8 @@
1
- .npmignore
2
- api.ts
3
- base.ts
4
- common.ts
5
- configuration.ts
6
- index.ts
7
- package.json
8
- tsconfig.json
1
+ .npmignore
2
+ api.ts
3
+ base.ts
4
+ common.ts
5
+ configuration.ts
6
+ index.ts
7
+ package.json
8
+ tsconfig.json
@@ -1,29 +1,29 @@
1
- # OpenAPI Generator Ignore
2
- # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
-
4
- # Use this file to prevent files from being overwritten by the generator.
5
- # The patterns follow closely to .gitignore or .dockerignore.
6
-
7
- # As an example, the C# client generator defines ApiClient.cs.
8
- # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
- #ApiClient.cs
10
-
11
- # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
- #foo/*/qux
13
- # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
-
15
- # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
- #foo/**/qux
17
- # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
-
19
- # You can also negate patterns with an exclamation (!).
20
- # For example, you can ignore all files in a docs folder with the file extension .md:
21
- #docs/*.md
22
- # Then explicitly reverse the ignore rule for a single file:
23
- #!docs/README.md
24
-
25
-
26
- # VRChatAPI: Do not modify .gitignore to avoid comitting "dist"
27
- .gitignore
28
- README.md
1
+ # OpenAPI Generator Ignore
2
+ # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
+
4
+ # Use this file to prevent files from being overwritten by the generator.
5
+ # The patterns follow closely to .gitignore or .dockerignore.
6
+
7
+ # As an example, the C# client generator defines ApiClient.cs.
8
+ # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
+ #ApiClient.cs
10
+
11
+ # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
+ #foo/*/qux
13
+ # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
+
15
+ # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
+ #foo/**/qux
17
+ # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
+
19
+ # You can also negate patterns with an exclamation (!).
20
+ # For example, you can ignore all files in a docs folder with the file extension .md:
21
+ #docs/*.md
22
+ # Then explicitly reverse the ignore rule for a single file:
23
+ #!docs/README.md
24
+
25
+
26
+ # VRChatAPI: Do not modify .gitignore to avoid comitting "dist"
27
+ .gitignore
28
+ README.md
29
29
  git_push.sh
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2021 Owners of GitHub organisation "vrchatapi" and individual contributors.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Owners of GitHub organisation "vrchatapi" and individual contributors.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -1,53 +1,53 @@
1
- ![](https://github.com/vrchatapi/vrchatapi.github.io/blob/master/assets/img/lang/lang_javascript_banner_1500x300.png?raw=true)
2
-
3
- # VRChat API Library for JavaScript/TypeScript
4
-
5
- A JavaScript/TypeScript/NodeJS client to interact with the unofficial VRChat API. Supports all REST calls specified in the [API specification](https://github.com/vrchatapi/specification).
6
-
7
- ## Disclaimer
8
-
9
- This is the official response of the VRChat Team (from Tupper more specifically) on the usage of the VRChat API.
10
-
11
- > Use of the API using applications other than the approved methods (website, VRChat application) are not officially supported. You may use the API for your own application, but keep these guidelines in mind:
12
- > * We do not provide documentation or support for the API.
13
- > * Do not make queries to the API more than once per 60 seconds.
14
- > * Abuse of the API may result in account termination.
15
- > * Access to API endpoints may break at any given time, with no warning.
16
-
17
- As stated, this documentation was not created with the help of the official VRChat team. Therefore this documentation is not an official documentation of the VRChat API and may not be always up to date with the latest versions. If you find that a page or endpoint is not longer valid please create an issue and tell us so we can fix it.
18
-
19
- ## Getting Started
20
-
21
- First add the package to to your project:
22
- ```bash
23
- npm install vrchat
24
- ```
25
-
26
- Below is an example on how to login to the API and fetch your own user information.
27
-
28
- ```javascript
29
- // Step 1. We begin with creating a Configuration, which contains the username and password for authentication.
30
- const vrchat = require("vrchat");
31
- const configuration = new vrchat.Configuration({
32
- username: "username",
33
- password: "password"
34
- });
35
-
36
- // Step 2. VRChat consists of several API's (WorldsApi, UsersApi, FilesApi, NotificationsApi, FriendsApi, etc...)
37
- // Here we instantiate the Authentication API which is required for logging in.
38
- const AuthenticationApi = new vrchat.AuthenticationApi(configuration);
39
-
40
- // 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;
43
- console.log(`Logged in as: ${currentUser.displayName}`);
44
- });
45
- ```
46
-
47
- See [example.js](https://github.com/vrchatapi/vrchatapi-javascript/blob/master/example.js) for more example usage on getting started.
48
-
49
- ## Contributing
50
-
51
- Contributions are welcome, but do not add features that should be handled by the OpenAPI specification.
52
-
53
- Join the [Discord server](https://discord.gg/Ge2APMhPfD) to get in touch with us.
1
+ ![](https://github.com/vrchatapi/vrchatapi.github.io/blob/master/assets/img/lang/lang_javascript_banner_1500x300.png?raw=true)
2
+
3
+ # VRChat API Library for JavaScript/TypeScript
4
+
5
+ A JavaScript/TypeScript/NodeJS client to interact with the unofficial VRChat API. Supports all REST calls specified in the [API specification](https://github.com/vrchatapi/specification).
6
+
7
+ ## Disclaimer
8
+
9
+ This is the official response of the VRChat Team (from Tupper more specifically) on the usage of the VRChat API.
10
+
11
+ > Use of the API using applications other than the approved methods (website, VRChat application) are not officially supported. You may use the API for your own application, but keep these guidelines in mind:
12
+ > * We do not provide documentation or support for the API.
13
+ > * Do not make queries to the API more than once per 60 seconds.
14
+ > * Abuse of the API may result in account termination.
15
+ > * Access to API endpoints may break at any given time, with no warning.
16
+
17
+ As stated, this documentation was not created with the help of the official VRChat team. Therefore this documentation is not an official documentation of the VRChat API and may not be always up to date with the latest versions. If you find that a page or endpoint is not longer valid please create an issue and tell us so we can fix it.
18
+
19
+ ## Getting Started
20
+
21
+ First add the package to to your project:
22
+ ```bash
23
+ npm install vrchat
24
+ ```
25
+
26
+ Below is an example on how to login to the API and fetch your own user information.
27
+
28
+ ```javascript
29
+ // Step 1. We begin with creating a Configuration, which contains the username and password for authentication.
30
+ const vrchat = require("vrchat");
31
+ const configuration = new vrchat.Configuration({
32
+ username: "username",
33
+ password: "password"
34
+ });
35
+
36
+ // Step 2. VRChat consists of several API's (WorldsApi, UsersApi, FilesApi, NotificationsApi, FriendsApi, etc...)
37
+ // Here we instantiate the Authentication API which is required for logging in.
38
+ const AuthenticationApi = new vrchat.AuthenticationApi(configuration);
39
+
40
+ // 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;
43
+ console.log(`Logged in as: ${currentUser.displayName}`);
44
+ });
45
+ ```
46
+
47
+ See [example.js](https://github.com/vrchatapi/vrchatapi-javascript/blob/master/example.js) for more example usage on getting started.
48
+
49
+ ## Contributing
50
+
51
+ Contributions are welcome, but do not add features that should be handled by the OpenAPI specification.
52
+
53
+ Join the [Discord server](https://discord.gg/Ge2APMhPfD) to get in touch with us.
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.3.0
6
+ * The version of the OpenAPI document: 1.3.1
7
7
  * Contact: me@ruby.js.org
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -925,7 +925,7 @@ export interface CurrentUser {
925
925
  * @type {string}
926
926
  * @memberof CurrentUser
927
927
  */
928
- fallbackAvatar: string;
928
+ fallbackAvatar?: string;
929
929
  /**
930
930
  *
931
931
  * @type {string}
@@ -2292,6 +2292,32 @@ export enum InviteMessageType {
2292
2292
  Message = 'message'
2293
2293
  }
2294
2294
 
2295
+ /**
2296
+ *
2297
+ * @export
2298
+ * @interface InviteRequest
2299
+ */
2300
+ export interface InviteRequest {
2301
+ /**
2302
+ *
2303
+ * @type {string}
2304
+ * @memberof InviteRequest
2305
+ */
2306
+ instanceId: string;
2307
+ }
2308
+ /**
2309
+ *
2310
+ * @export
2311
+ * @interface InviteResponse
2312
+ */
2313
+ export interface InviteResponse {
2314
+ /**
2315
+ *
2316
+ * @type {number}
2317
+ * @memberof InviteResponse
2318
+ */
2319
+ responseSlot: number;
2320
+ }
2295
2321
  /**
2296
2322
  *
2297
2323
  * @export
@@ -3331,7 +3357,7 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
3331
3357
  };
3332
3358
  },
3333
3359
  /**
3334
- * Login and/or Get user data from your VRChat account. If `Authorization` header is present then a new login session will be generated, and a new `auth` cookie is returned. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie whenever you can, and avoid sending the Authorization header unless strictly neccesary. While the exact number of simultaneous open sessions is secret, expect to **very fast** run into the rate-limit and be temporarily blocked from making new sessions until the old ones expire.
3360
+ * This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
3335
3361
  * @summary Login and/or Get Current User Info
3336
3362
  * @param {*} [options] Override http request option.
3337
3363
  * @throws {RequiredError}
@@ -3526,7 +3552,7 @@ export const AuthenticationApiFp = function(configuration?: Configuration) {
3526
3552
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3527
3553
  },
3528
3554
  /**
3529
- * Login and/or Get user data from your VRChat account. If `Authorization` header is present then a new login session will be generated, and a new `auth` cookie is returned. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie whenever you can, and avoid sending the Authorization header unless strictly neccesary. While the exact number of simultaneous open sessions is secret, expect to **very fast** run into the rate-limit and be temporarily blocked from making new sessions until the old ones expire.
3555
+ * This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
3530
3556
  * @summary Login and/or Get Current User Info
3531
3557
  * @param {*} [options] Override http request option.
3532
3558
  * @throws {RequiredError}
@@ -3598,7 +3624,7 @@ export const AuthenticationApiFactory = function (configuration?: Configuration,
3598
3624
  return localVarFp.deleteUser(userId, options).then((request) => request(axios, basePath));
3599
3625
  },
3600
3626
  /**
3601
- * Login and/or Get user data from your VRChat account. If `Authorization` header is present then a new login session will be generated, and a new `auth` cookie is returned. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie whenever you can, and avoid sending the Authorization header unless strictly neccesary. While the exact number of simultaneous open sessions is secret, expect to **very fast** run into the rate-limit and be temporarily blocked from making new sessions until the old ones expire.
3627
+ * This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
3602
3628
  * @summary Login and/or Get Current User Info
3603
3629
  * @param {*} [options] Override http request option.
3604
3630
  * @throws {RequiredError}
@@ -3667,7 +3693,7 @@ export class AuthenticationApi extends BaseAPI {
3667
3693
  }
3668
3694
 
3669
3695
  /**
3670
- * Login and/or Get user data from your VRChat account. If `Authorization` header is present then a new login session will be generated, and a new `auth` cookie is returned. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie whenever you can, and avoid sending the Authorization header unless strictly neccesary. While the exact number of simultaneous open sessions is secret, expect to **very fast** run into the rate-limit and be temporarily blocked from making new sessions until the old ones expire.
3696
+ * This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
3671
3697
  * @summary Login and/or Get Current User Info
3672
3698
  * @param {*} [options] Override http request option.
3673
3699
  * @throws {RequiredError}
@@ -6511,10 +6537,11 @@ export const InviteApiAxiosParamCreator = function (configuration?: Configuratio
6511
6537
  * Sends an invite to a user. Returns the Notification of type `invite` that was sent.
6512
6538
  * @summary Invite User
6513
6539
  * @param {string} userId
6540
+ * @param {InviteRequest} [inviteRequest] Instance ID when inviting a user.
6514
6541
  * @param {*} [options] Override http request option.
6515
6542
  * @throws {RequiredError}
6516
6543
  */
6517
- inviteUser: async (userId: string, options: any = {}): Promise<RequestArgs> => {
6544
+ inviteUser: async (userId: string, inviteRequest?: InviteRequest, options: any = {}): Promise<RequestArgs> => {
6518
6545
  // verify required parameter 'userId' is not null or undefined
6519
6546
  assertParamExists('inviteUser', 'userId', userId)
6520
6547
  const localVarPath = `/invite/{userId}`
@@ -6536,9 +6563,12 @@ export const InviteApiAxiosParamCreator = function (configuration?: Configuratio
6536
6563
 
6537
6564
 
6538
6565
 
6566
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6567
+
6539
6568
  setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
6540
6569
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6541
6570
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6571
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteRequest, localVarRequestOptions, configuration)
6542
6572
 
6543
6573
  return {
6544
6574
  url: toPathString(localVarUrlObj),
@@ -6629,10 +6659,11 @@ export const InviteApiAxiosParamCreator = function (configuration?: Configuratio
6629
6659
  * Sends a world invite to a user.
6630
6660
  * @summary Respond Invite
6631
6661
  * @param {string} notificationId
6662
+ * @param {InviteResponse} [inviteResponse] Instance ID when inviting a user.
6632
6663
  * @param {*} [options] Override http request option.
6633
6664
  * @throws {RequiredError}
6634
6665
  */
6635
- respondInvite: async (notificationId: string, options: any = {}): Promise<RequestArgs> => {
6666
+ respondInvite: async (notificationId: string, inviteResponse?: InviteResponse, options: any = {}): Promise<RequestArgs> => {
6636
6667
  // verify required parameter 'notificationId' is not null or undefined
6637
6668
  assertParamExists('respondInvite', 'notificationId', notificationId)
6638
6669
  const localVarPath = `/invite/{notificationId}/response`
@@ -6654,9 +6685,12 @@ export const InviteApiAxiosParamCreator = function (configuration?: Configuratio
6654
6685
 
6655
6686
 
6656
6687
 
6688
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6689
+
6657
6690
  setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
6658
6691
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6659
6692
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6693
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteResponse, localVarRequestOptions, configuration)
6660
6694
 
6661
6695
  return {
6662
6696
  url: toPathString(localVarUrlObj),
@@ -6742,11 +6776,12 @@ export const InviteApiFp = function(configuration?: Configuration) {
6742
6776
  * Sends an invite to a user. Returns the Notification of type `invite` that was sent.
6743
6777
  * @summary Invite User
6744
6778
  * @param {string} userId
6779
+ * @param {InviteRequest} [inviteRequest] Instance ID when inviting a user.
6745
6780
  * @param {*} [options] Override http request option.
6746
6781
  * @throws {RequiredError}
6747
6782
  */
6748
- async inviteUser(userId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>> {
6749
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(userId, options);
6783
+ async inviteUser(userId: string, inviteRequest?: InviteRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>> {
6784
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(userId, inviteRequest, options);
6750
6785
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6751
6786
  },
6752
6787
  /**
@@ -6776,11 +6811,12 @@ export const InviteApiFp = function(configuration?: Configuration) {
6776
6811
  * Sends a world invite to a user.
6777
6812
  * @summary Respond Invite
6778
6813
  * @param {string} notificationId
6814
+ * @param {InviteResponse} [inviteResponse] Instance ID when inviting a user.
6779
6815
  * @param {*} [options] Override http request option.
6780
6816
  * @throws {RequiredError}
6781
6817
  */
6782
- async respondInvite(notificationId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>> {
6783
- const localVarAxiosArgs = await localVarAxiosParamCreator.respondInvite(notificationId, options);
6818
+ async respondInvite(notificationId: string, inviteResponse?: InviteResponse, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>> {
6819
+ const localVarAxiosArgs = await localVarAxiosParamCreator.respondInvite(notificationId, inviteResponse, options);
6784
6820
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6785
6821
  },
6786
6822
  /**
@@ -6830,11 +6866,12 @@ export const InviteApiFactory = function (configuration?: Configuration, basePat
6830
6866
  * Sends an invite to a user. Returns the Notification of type `invite` that was sent.
6831
6867
  * @summary Invite User
6832
6868
  * @param {string} userId
6869
+ * @param {InviteRequest} [inviteRequest] Instance ID when inviting a user.
6833
6870
  * @param {*} [options] Override http request option.
6834
6871
  * @throws {RequiredError}
6835
6872
  */
6836
- inviteUser(userId: string, options?: any): AxiosPromise<Notification> {
6837
- return localVarFp.inviteUser(userId, options).then((request) => request(axios, basePath));
6873
+ inviteUser(userId: string, inviteRequest?: InviteRequest, options?: any): AxiosPromise<Notification> {
6874
+ return localVarFp.inviteUser(userId, inviteRequest, options).then((request) => request(axios, basePath));
6838
6875
  },
6839
6876
  /**
6840
6877
  * Requests an invite from a user. Returns the Notification of type `requestInvite` that was sent.
@@ -6861,11 +6898,12 @@ export const InviteApiFactory = function (configuration?: Configuration, basePat
6861
6898
  * Sends a world invite to a user.
6862
6899
  * @summary Respond Invite
6863
6900
  * @param {string} notificationId
6901
+ * @param {InviteResponse} [inviteResponse] Instance ID when inviting a user.
6864
6902
  * @param {*} [options] Override http request option.
6865
6903
  * @throws {RequiredError}
6866
6904
  */
6867
- respondInvite(notificationId: string, options?: any): AxiosPromise<Notification> {
6868
- return localVarFp.respondInvite(notificationId, options).then((request) => request(axios, basePath));
6905
+ respondInvite(notificationId: string, inviteResponse?: InviteResponse, options?: any): AxiosPromise<Notification> {
6906
+ return localVarFp.respondInvite(notificationId, inviteResponse, options).then((request) => request(axios, basePath));
6869
6907
  },
6870
6908
  /**
6871
6909
  * Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error.
@@ -6917,12 +6955,13 @@ export class InviteApi extends BaseAPI {
6917
6955
  * Sends an invite to a user. Returns the Notification of type `invite` that was sent.
6918
6956
  * @summary Invite User
6919
6957
  * @param {string} userId
6958
+ * @param {InviteRequest} [inviteRequest] Instance ID when inviting a user.
6920
6959
  * @param {*} [options] Override http request option.
6921
6960
  * @throws {RequiredError}
6922
6961
  * @memberof InviteApi
6923
6962
  */
6924
- public inviteUser(userId: string, options?: any) {
6925
- return InviteApiFp(this.configuration).inviteUser(userId, options).then((request) => request(this.axios, this.basePath));
6963
+ public inviteUser(userId: string, inviteRequest?: InviteRequest, options?: any) {
6964
+ return InviteApiFp(this.configuration).inviteUser(userId, inviteRequest, options).then((request) => request(this.axios, this.basePath));
6926
6965
  }
6927
6966
 
6928
6967
  /**
@@ -6954,12 +6993,13 @@ export class InviteApi extends BaseAPI {
6954
6993
  * Sends a world invite to a user.
6955
6994
  * @summary Respond Invite
6956
6995
  * @param {string} notificationId
6996
+ * @param {InviteResponse} [inviteResponse] Instance ID when inviting a user.
6957
6997
  * @param {*} [options] Override http request option.
6958
6998
  * @throws {RequiredError}
6959
6999
  * @memberof InviteApi
6960
7000
  */
6961
- public respondInvite(notificationId: string, options?: any) {
6962
- return InviteApiFp(this.configuration).respondInvite(notificationId, options).then((request) => request(this.axios, this.basePath));
7001
+ public respondInvite(notificationId: string, inviteResponse?: InviteResponse, options?: any) {
7002
+ return InviteApiFp(this.configuration).respondInvite(notificationId, inviteResponse, options).then((request) => request(this.axios, this.basePath));
6963
7003
  }
6964
7004
 
6965
7005
  /**