vrchat 1.0.2 → 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,9 +1,8 @@
1
- .npmignore
2
- api.ts
3
- base.ts
4
- common.ts
5
- configuration.ts
6
- git_push.sh
7
- index.ts
8
- package.json
9
- 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,28 +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
+ 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
@@ -2,9 +2,8 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * VRChat API Documentation
5
- * ![VRChat API Banner](https://vrchatapi.github.io/assets/img/api_banner_1500x400.png) # Welcome to the VRChat API Before we begin, we would like to state this is a **COMMUNITY DRIVEN PROJECT**. This means that everything you read on here was written by the community itself and is **not** officially supported by VRChat. The documentation is provided \"AS IS\", and any action you take towards VRChat is completely your own responsibility. The documentation and additional libraries SHALL ONLY be used for applications interacting with VRChat\'s API in accordance with their [Terms of Service](https://github.com/VRChatAPI), and MUST NOT be used for modifying the client, \"avatar ripping\", or other illegal activities. Malicious usage or spamming the API may result in account termination. Certain parts of the API are also more sensitive than others, for example moderation, so please read tread extra carefully and read the warnings when present. ![Tupper Policy on API](https://i.imgur.com/yLlW7Ok.png) Finally, use of the API using applications other than the approved methods (website, VRChat application, Unity SDK) is not officially supported. VRChat provides no guarantee or support for external applications using the API. Access to API endpoints may break **at any time, without notice**. Therefore, please **do not ping** VRChat Staff in the VRChat Discord if you are having API problems, as they do not provide API support. We will make a best effort in keeping this documentation and associated language libraries up to date, but things might be outdated or missing. If you find that something is no longer valid, please contact us on Discord or [create an issue](https://github.com/vrchatapi/specification/issues) and tell us so we can fix it. # Getting Started The VRChat API can be used to programmatically retrieve or update information regarding your profile, friends, avatars, worlds and more. The API consists of two parts, \"Photon\" which is only used in-game, and the \"Web API\" which is used by both the game and the website. This documentation focuses only on the Web API. The API is designed around the REST ideology, providing semi-simple and usually predictable URIs to access and modify objects. Requests support standard HTTP methods like GET, PUT, POST, and DELETE and standard status codes. Response bodies are always UTF-8 encoded JSON objects, unless explicitly documented otherwise. <div class=\"callout callout-error\"> <strong>🛑 Warning! Do not touch Photon!</strong><br> Photon is only used by the in-game client and should <b>not</b> be touched. Doing so may result in permanent account termination. </div> <div class=\"callout callout-info\"> <strong>ℹ️ API Key and Authentication</strong><br> The API Key has always been the same and is currently <code>JlE5Jldo5Jibnk5O5hTx6XVqsJu4WJ26</code>. Read <a href=\"#tag--authentication\">Authentication</a> for how to log in. </div> # Using the API For simply exploring what the API can do it is strongly recommended to download [Insomnia](https://insomnia.rest/download), a free and open-source API client that\'s great for sending requests to the API in an orderly fashion. Insomnia allows you to send data in the format that\'s required for VRChat\'s API. It is also possible to try out the API in your browser, by first logging in at [vrchat.com/home](https://vrchat.com/home/) and then going to [vrchat.com/api/1/auth/user](https://vrchat.com/api/1/auth/user), but the information will be much harder to work with. For more permanent operation such as software development it is instead recommended to use one of the existing language SDKs. This community project maintains API libraries in several languages, which allows you to interact with the API with simple function calls rather than having to implement the HTTP protocol yourself. Most of these libraries are automatically generated from the API specification, sometimes with additional helpful wrapper code to make usage easier. This allows them to be almost automatically updated and expanded upon as soon as a new feature is introduced in the specification itself. The libraries can be found on [GitHub](https://github.com/vrchatapi) or following: * [NodeJS (JavaScript)](https://www.npmjs.com/package/vrchat) * [Dart](https://pub.dev/packages/vrchat_dart) * [Rust](https://crates.io/crates/vrchatapi) * [C#](github.com/vrchatapi/vrchatapi-csharp) * [Python](https://github.com/vrchatapi/VRChatPython) # Pagination Most endpoints enforce pagination, meaning they will only return 10 entries by default, and never more than 100.<br> Using both the limit and offset parameters allows you to easily paginate through a large number of objects. | Query Parameter | Type | Description | | ----------|--|------- | | `limit` | integer | The number of objects to return. This value often defaults to 10. Highest limit is always 100.| | `offset` | integer | A zero-based offset from the default object sorting.| If a request returns fewer objects than the `limit` parameter, there are no more items available to return. # Contribution Do you want to get involved in the documentation effort? Do you want to help improve one of the language API libraries? This project is an [OPEN Open Source Project](https://openopensource.org)! This means that individuals making significant and valuable contributions are given commit-access to the project. It also means we are very open and welcoming of new people making contributions, unlike some more guarded open-source projects. [![Discord](https://img.shields.io/static/v1?label=vrchatapi&message=discord&color=blueviolet&style=for-the-badge)](https://discord.gg/qjZE9C9fkB)
6
5
  *
7
- * The version of the OpenAPI document: 1.0.2
6
+ * The version of the OpenAPI document: 1.3.1
8
7
  * Contact: me@ruby.js.org
9
8
  *
10
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -838,10 +837,10 @@ export interface CurrentUser {
838
837
  statusDescription: string;
839
838
  /**
840
839
  *
841
- * @type {Array<string>}
840
+ * @type {Array<PastDisplayName>}
842
841
  * @memberof CurrentUser
843
842
  */
844
- pastDisplayNames: Array<string>;
843
+ pastDisplayNames: Array<PastDisplayName>;
845
844
  /**
846
845
  *
847
846
  * @type {boolean}
@@ -926,7 +925,7 @@ export interface CurrentUser {
926
925
  * @type {string}
927
926
  * @memberof CurrentUser
928
927
  */
929
- fallbackAvatar: string;
928
+ fallbackAvatar?: string;
930
929
  /**
931
930
  *
932
931
  * @type {string}
@@ -1012,11 +1011,11 @@ export interface CurrentUser {
1012
1011
  */
1013
1012
  last_login: string;
1014
1013
  /**
1015
- *
1016
- * @type {Platform}
1014
+ * 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`.
1015
+ * @type {string}
1017
1016
  * @memberof CurrentUser
1018
1017
  */
1019
- last_platform: Platform;
1018
+ last_platform: string;
1020
1019
  /**
1021
1020
  *
1022
1021
  * @type {boolean}
@@ -1323,6 +1322,31 @@ export interface FileVersion {
1323
1322
  */
1324
1323
  deleted?: boolean;
1325
1324
  }
1325
+ /**
1326
+ *
1327
+ * @export
1328
+ * @interface FriendStatus
1329
+ */
1330
+ export interface FriendStatus {
1331
+ /**
1332
+ *
1333
+ * @type {boolean}
1334
+ * @memberof FriendStatus
1335
+ */
1336
+ isFriend: boolean;
1337
+ /**
1338
+ *
1339
+ * @type {boolean}
1340
+ * @memberof FriendStatus
1341
+ */
1342
+ outgoingRequest: boolean;
1343
+ /**
1344
+ *
1345
+ * @type {boolean}
1346
+ * @memberof FriendStatus
1347
+ */
1348
+ incomingRequest: boolean;
1349
+ }
1326
1350
  /**
1327
1351
  *
1328
1352
  * @export
@@ -1720,11 +1744,11 @@ export interface InlineObject6 {
1720
1744
  */
1721
1745
  name: string;
1722
1746
  /**
1723
- *
1724
- * @type {Platform}
1747
+ * 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`.
1748
+ * @type {string}
1725
1749
  * @memberof InlineObject6
1726
1750
  */
1727
- platform?: Platform;
1751
+ platform?: string;
1728
1752
  /**
1729
1753
  *
1730
1754
  * @type {ReleaseStatus}
@@ -1811,11 +1835,11 @@ export interface InlineObject7 {
1811
1835
  */
1812
1836
  name?: string;
1813
1837
  /**
1814
- *
1815
- * @type {Platform}
1838
+ * 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`.
1839
+ * @type {string}
1816
1840
  * @memberof InlineObject7
1817
1841
  */
1818
- platform?: Platform;
1842
+ platform?: string;
1819
1843
  /**
1820
1844
  *
1821
1845
  * @type {ReleaseStatus}
@@ -1954,123 +1978,98 @@ export interface InlineResponse2002 {
1954
1978
  * @interface InlineResponse2003
1955
1979
  */
1956
1980
  export interface InlineResponse2003 {
1957
- /**
1958
- *
1959
- * @type {boolean}
1960
- * @memberof InlineResponse2003
1961
- */
1962
- isFriend: boolean;
1963
- /**
1964
- *
1965
- * @type {boolean}
1966
- * @memberof InlineResponse2003
1967
- */
1968
- outgoingRequest: boolean;
1969
- /**
1970
- *
1971
- * @type {boolean}
1972
- * @memberof InlineResponse2003
1973
- */
1974
- incomingRequest: boolean;
1975
- }
1976
- /**
1977
- *
1978
- * @export
1979
- * @interface InlineResponse2004
1980
- */
1981
- export interface InlineResponse2004 {
1982
1981
  /**
1983
1982
  *
1984
1983
  * @type {string}
1985
- * @memberof InlineResponse2004
1984
+ * @memberof InlineResponse2003
1986
1985
  */
1987
1986
  uploadId: string;
1988
1987
  /**
1989
1988
  *
1990
1989
  * @type {string}
1991
- * @memberof InlineResponse2004
1990
+ * @memberof InlineResponse2003
1992
1991
  */
1993
1992
  fileName: string;
1994
1993
  /**
1995
1994
  *
1996
1995
  * @type {number}
1997
- * @memberof InlineResponse2004
1996
+ * @memberof InlineResponse2003
1998
1997
  */
1999
1998
  nextPartNumber: number;
2000
1999
  /**
2001
2000
  *
2002
2001
  * @type {number}
2003
- * @memberof InlineResponse2004
2002
+ * @memberof InlineResponse2003
2004
2003
  */
2005
2004
  maxParts: number;
2006
2005
  /**
2007
2006
  *
2008
2007
  * @type {Array<object>}
2009
- * @memberof InlineResponse2004
2008
+ * @memberof InlineResponse2003
2010
2009
  */
2011
2010
  parts: Array<object>;
2012
2011
  /**
2013
2012
  * Unknown
2014
2013
  * @type {Array<object>}
2015
- * @memberof InlineResponse2004
2014
+ * @memberof InlineResponse2003
2016
2015
  */
2017
2016
  etags: Array<object>;
2018
2017
  }
2019
2018
  /**
2020
2019
  *
2021
2020
  * @export
2022
- * @interface InlineResponse2005
2021
+ * @interface InlineResponse2004
2023
2022
  */
2024
- export interface InlineResponse2005 {
2023
+ export interface InlineResponse2004 {
2025
2024
  /**
2026
2025
  *
2027
2026
  * @type {string}
2028
- * @memberof InlineResponse2005
2027
+ * @memberof InlineResponse2004
2029
2028
  */
2030
2029
  url: string;
2031
2030
  }
2032
2031
  /**
2033
2032
  *
2034
2033
  * @export
2035
- * @interface InlineResponse2006
2034
+ * @interface InlineResponse2005
2036
2035
  */
2037
- export interface InlineResponse2006 {
2036
+ export interface InlineResponse2005 {
2038
2037
  /**
2039
2038
  *
2040
2039
  * @type {string}
2041
- * @memberof InlineResponse2006
2040
+ * @memberof InlineResponse2005
2042
2041
  */
2043
2042
  id: string;
2044
2043
  /**
2045
2044
  *
2046
2045
  * @type {object}
2047
- * @memberof InlineResponse2006
2046
+ * @memberof InlineResponse2005
2048
2047
  */
2049
2048
  metadata: object;
2050
2049
  }
2051
2050
  /**
2052
2051
  *
2053
2052
  * @export
2054
- * @interface InlineResponse2007
2053
+ * @interface InlineResponse2006
2055
2054
  */
2056
- export interface InlineResponse2007 {
2055
+ export interface InlineResponse2006 {
2057
2056
  /**
2058
2057
  *
2059
2058
  * @type {boolean}
2060
- * @memberof InlineResponse2007
2059
+ * @memberof InlineResponse2006
2061
2060
  */
2062
2061
  canPubilsh: boolean;
2063
2062
  }
2064
2063
  /**
2065
2064
  *
2066
2065
  * @export
2067
- * @interface InlineResponse401
2066
+ * @interface InlineResponse400
2068
2067
  */
2069
- export interface InlineResponse401 {
2068
+ export interface InlineResponse400 {
2070
2069
  /**
2071
2070
  *
2072
2071
  * @type {Error}
2073
- * @memberof InlineResponse401
2072
+ * @memberof InlineResponse400
2074
2073
  */
2075
2074
  error: Error;
2076
2075
  }
@@ -2234,6 +2233,91 @@ export interface InstancePlatforms {
2234
2233
  */
2235
2234
  standalonewindows: number;
2236
2235
  }
2236
+ /**
2237
+ *
2238
+ * @export
2239
+ * @interface InviteMessage
2240
+ */
2241
+ export interface InviteMessage {
2242
+ /**
2243
+ *
2244
+ * @type {string}
2245
+ * @memberof InviteMessage
2246
+ */
2247
+ id: string;
2248
+ /**
2249
+ *
2250
+ * @type {number}
2251
+ * @memberof InviteMessage
2252
+ */
2253
+ slot: number;
2254
+ /**
2255
+ *
2256
+ * @type {string}
2257
+ * @memberof InviteMessage
2258
+ */
2259
+ message: string;
2260
+ /**
2261
+ *
2262
+ * @type {InviteMessageType}
2263
+ * @memberof InviteMessage
2264
+ */
2265
+ messageType: InviteMessageType;
2266
+ /**
2267
+ *
2268
+ * @type {string}
2269
+ * @memberof InviteMessage
2270
+ */
2271
+ updatedAt: string;
2272
+ /**
2273
+ * Changes to 60 when updated, although probably server-side configurable.
2274
+ * @type {number}
2275
+ * @memberof InviteMessage
2276
+ */
2277
+ remainingCooldownMinutes: number;
2278
+ /**
2279
+ *
2280
+ * @type {boolean}
2281
+ * @memberof InviteMessage
2282
+ */
2283
+ canBeUpdated: boolean;
2284
+ }
2285
+ /**
2286
+ *
2287
+ * @export
2288
+ * @enum {string}
2289
+ */
2290
+
2291
+ export enum InviteMessageType {
2292
+ Message = 'message'
2293
+ }
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
+ }
2237
2321
  /**
2238
2322
  *
2239
2323
  * @export
@@ -2241,11 +2325,11 @@ export interface InstancePlatforms {
2241
2325
  */
2242
2326
  export interface LimitedUnityPackage {
2243
2327
  /**
2244
- *
2245
- * @type {Platform}
2328
+ * 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`.
2329
+ * @type {string}
2246
2330
  * @memberof LimitedUnityPackage
2247
2331
  */
2248
- platform: Platform;
2332
+ platform: string;
2249
2333
  /**
2250
2334
  *
2251
2335
  * @type {string}
@@ -2326,11 +2410,11 @@ export interface LimitedUser {
2326
2410
  */
2327
2411
  developerType: DeveloperType;
2328
2412
  /**
2329
- *
2330
- * @type {Platform}
2413
+ * 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`.
2414
+ * @type {string}
2331
2415
  * @memberof LimitedUser
2332
2416
  */
2333
- last_platform: Platform;
2417
+ last_platform: string;
2334
2418
  /**
2335
2419
  *
2336
2420
  * @type {UserStatus}
@@ -2343,12 +2427,6 @@ export interface LimitedUser {
2343
2427
  * @memberof LimitedUser
2344
2428
  */
2345
2429
  isFriend: boolean;
2346
- /**
2347
- *
2348
- * @type {string}
2349
- * @memberof LimitedUser
2350
- */
2351
- location: string;
2352
2430
  /**
2353
2431
  * <- Always empty.
2354
2432
  * @type {Array<string>}
@@ -2624,26 +2702,64 @@ export interface Notification {
2624
2702
  */
2625
2703
 
2626
2704
  export enum NotificationType {
2627
- All = 'all',
2628
- Broadcast = 'broadcast',
2629
2705
  FriendRequest = 'friendRequest',
2630
2706
  Invite = 'invite',
2631
- Message = 'message',
2632
- RequestInvite = 'RequestInvite',
2707
+ InviteResponse = 'inviteResponse',
2708
+ RequestInvite = 'requestInvite',
2709
+ RequestInviteResponse = 'requestInviteResponse',
2633
2710
  Votetokick = 'votetokick'
2634
2711
  }
2635
2712
 
2636
2713
  /**
2637
2714
  *
2638
2715
  * @export
2639
- * @enum {string}
2716
+ * @interface PastDisplayName
2640
2717
  */
2641
-
2642
- export enum Platform {
2643
- Standalonewindows = 'standalonewindows',
2644
- Android = 'android'
2718
+ export interface PastDisplayName {
2719
+ /**
2720
+ *
2721
+ * @type {string}
2722
+ * @memberof PastDisplayName
2723
+ */
2724
+ displayName: string;
2725
+ /**
2726
+ *
2727
+ * @type {string}
2728
+ * @memberof PastDisplayName
2729
+ */
2730
+ updated_at: string;
2731
+ }
2732
+ /**
2733
+ *
2734
+ * @export
2735
+ * @interface Permission
2736
+ */
2737
+ export interface Permission {
2738
+ /**
2739
+ *
2740
+ * @type {string}
2741
+ * @memberof Permission
2742
+ */
2743
+ id: string;
2744
+ /**
2745
+ *
2746
+ * @type {string}
2747
+ * @memberof Permission
2748
+ */
2749
+ ownerId: string;
2750
+ /**
2751
+ *
2752
+ * @type {string}
2753
+ * @memberof Permission
2754
+ */
2755
+ name: string;
2756
+ /**
2757
+ *
2758
+ * @type {object}
2759
+ * @memberof Permission
2760
+ */
2761
+ data?: object;
2645
2762
  }
2646
-
2647
2763
  /**
2648
2764
  *
2649
2765
  * @export
@@ -2731,7 +2847,7 @@ export interface Response {
2731
2847
  * @type {string}
2732
2848
  * @memberof Response
2733
2849
  */
2734
- message: string;
2850
+ message?: string;
2735
2851
  /**
2736
2852
  *
2737
2853
  * @type {number}
@@ -2807,11 +2923,11 @@ export interface UnityPackage {
2807
2923
  */
2808
2924
  assetVersion: number;
2809
2925
  /**
2810
- *
2811
- * @type {Platform}
2926
+ * 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`.
2927
+ * @type {string}
2812
2928
  * @memberof UnityPackage
2813
2929
  */
2814
- platform: Platform;
2930
+ platform: string;
2815
2931
  /**
2816
2932
  *
2817
2933
  * @type {string}
@@ -2916,11 +3032,11 @@ export interface User {
2916
3032
  */
2917
3033
  last_login: string;
2918
3034
  /**
2919
- *
2920
- * @type {Platform}
3035
+ * 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`.
3036
+ * @type {string}
2921
3037
  * @memberof User
2922
3038
  */
2923
- last_platform: Platform;
3039
+ last_platform: string;
2924
3040
  /**
2925
3041
  *
2926
3042
  * @type {boolean}
@@ -3241,7 +3357,7 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
3241
3357
  };
3242
3358
  },
3243
3359
  /**
3244
- * 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.
3245
3361
  * @summary Login and/or Get Current User Info
3246
3362
  * @param {*} [options] Override http request option.
3247
3363
  * @throws {RequiredError}
@@ -3279,7 +3395,7 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
3279
3395
  };
3280
3396
  },
3281
3397
  /**
3282
- * Invalidates the auth cookie.
3398
+ * Invalidates the login session.
3283
3399
  * @summary Logout
3284
3400
  * @param {*} [options] Override http request option.
3285
3401
  * @throws {RequiredError}
@@ -3297,8 +3413,6 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
3297
3413
  const localVarHeaderParameter = {} as any;
3298
3414
  const localVarQueryParameter = {} as any;
3299
3415
 
3300
- // authentication apiKeyCookie required
3301
-
3302
3416
  // authentication authCookie required
3303
3417
 
3304
3418
 
@@ -3367,8 +3481,6 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
3367
3481
  const localVarHeaderParameter = {} as any;
3368
3482
  const localVarQueryParameter = {} as any;
3369
3483
 
3370
- // authentication apiKeyCookie required
3371
-
3372
3484
  // authentication authCookie required
3373
3485
 
3374
3486
 
@@ -3440,7 +3552,7 @@ export const AuthenticationApiFp = function(configuration?: Configuration) {
3440
3552
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3441
3553
  },
3442
3554
  /**
3443
- * 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.
3444
3556
  * @summary Login and/or Get Current User Info
3445
3557
  * @param {*} [options] Override http request option.
3446
3558
  * @throws {RequiredError}
@@ -3450,7 +3562,7 @@ export const AuthenticationApiFp = function(configuration?: Configuration) {
3450
3562
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3451
3563
  },
3452
3564
  /**
3453
- * Invalidates the auth cookie.
3565
+ * Invalidates the login session.
3454
3566
  * @summary Logout
3455
3567
  * @param {*} [options] Override http request option.
3456
3568
  * @throws {RequiredError}
@@ -3512,7 +3624,7 @@ export const AuthenticationApiFactory = function (configuration?: Configuration,
3512
3624
  return localVarFp.deleteUser(userId, options).then((request) => request(axios, basePath));
3513
3625
  },
3514
3626
  /**
3515
- * 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.
3516
3628
  * @summary Login and/or Get Current User Info
3517
3629
  * @param {*} [options] Override http request option.
3518
3630
  * @throws {RequiredError}
@@ -3521,7 +3633,7 @@ export const AuthenticationApiFactory = function (configuration?: Configuration,
3521
3633
  return localVarFp.getCurrentUser(options).then((request) => request(axios, basePath));
3522
3634
  },
3523
3635
  /**
3524
- * Invalidates the auth cookie.
3636
+ * Invalidates the login session.
3525
3637
  * @summary Logout
3526
3638
  * @param {*} [options] Override http request option.
3527
3639
  * @throws {RequiredError}
@@ -3581,7 +3693,7 @@ export class AuthenticationApi extends BaseAPI {
3581
3693
  }
3582
3694
 
3583
3695
  /**
3584
- * 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.
3585
3697
  * @summary Login and/or Get Current User Info
3586
3698
  * @param {*} [options] Override http request option.
3587
3699
  * @throws {RequiredError}
@@ -3592,7 +3704,7 @@ export class AuthenticationApi extends BaseAPI {
3592
3704
  }
3593
3705
 
3594
3706
  /**
3595
- * Invalidates the auth cookie.
3707
+ * Invalidates the login session.
3596
3708
  * @summary Logout
3597
3709
  * @param {*} [options] Override http request option.
3598
3710
  * @throws {RequiredError}
@@ -4099,7 +4211,7 @@ export const AvatarsApiFp = function(configuration?: Configuration) {
4099
4211
  * @param {*} [options] Override http request option.
4100
4212
  * @throws {RequiredError}
4101
4213
  */
4102
- async getFavoritedAvatars(featured?: string, sort?: 'popularity' | 'heat' | 'trust' | 'shuffle' | 'random' | 'favorites' | 'reportScore' | 'reportCount' | 'publicationDate' | 'labsPublicationDate' | 'created' | '_created_at' | 'updated' | '_updated_at' | 'order' | 'relevance' | 'magic' | 'name', n?: number, order?: 'ascending' | 'descending', offset?: number, search?: string, tag?: string, notag?: string, releaseStatus?: 'public' | 'private' | 'hidden', maxUnityVersion?: string, minUnityVersion?: string, platform?: string, userId?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
4214
+ async getFavoritedAvatars(featured?: string, sort?: 'popularity' | 'heat' | 'trust' | 'shuffle' | 'random' | 'favorites' | 'reportScore' | 'reportCount' | 'publicationDate' | 'labsPublicationDate' | 'created' | '_created_at' | 'updated' | '_updated_at' | 'order' | 'relevance' | 'magic' | 'name', n?: number, order?: 'ascending' | 'descending', offset?: number, search?: string, tag?: string, notag?: string, releaseStatus?: 'public' | 'private' | 'hidden', maxUnityVersion?: string, minUnityVersion?: string, platform?: string, userId?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Avatar>>> {
4103
4215
  const localVarAxiosArgs = await localVarAxiosParamCreator.getFavoritedAvatars(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId, options);
4104
4216
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4105
4217
  },
@@ -4208,7 +4320,7 @@ export const AvatarsApiFactory = function (configuration?: Configuration, basePa
4208
4320
  * @param {*} [options] Override http request option.
4209
4321
  * @throws {RequiredError}
4210
4322
  */
4211
- getFavoritedAvatars(featured?: string, sort?: 'popularity' | 'heat' | 'trust' | 'shuffle' | 'random' | 'favorites' | 'reportScore' | 'reportCount' | 'publicationDate' | 'labsPublicationDate' | 'created' | '_created_at' | 'updated' | '_updated_at' | 'order' | 'relevance' | 'magic' | 'name', n?: number, order?: 'ascending' | 'descending', offset?: number, search?: string, tag?: string, notag?: string, releaseStatus?: 'public' | 'private' | 'hidden', maxUnityVersion?: string, minUnityVersion?: string, platform?: string, userId?: string, options?: any): AxiosPromise<void> {
4323
+ getFavoritedAvatars(featured?: string, sort?: 'popularity' | 'heat' | 'trust' | 'shuffle' | 'random' | 'favorites' | 'reportScore' | 'reportCount' | 'publicationDate' | 'labsPublicationDate' | 'created' | '_created_at' | 'updated' | '_updated_at' | 'order' | 'relevance' | 'magic' | 'name', n?: number, order?: 'ascending' | 'descending', offset?: number, search?: string, tag?: string, notag?: string, releaseStatus?: 'public' | 'private' | 'hidden', maxUnityVersion?: string, minUnityVersion?: string, platform?: string, userId?: string, options?: any): AxiosPromise<Array<Avatar>> {
4212
4324
  return localVarFp.getFavoritedAvatars(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId, options).then((request) => request(axios, basePath));
4213
4325
  },
4214
4326
  /**
@@ -4770,7 +4882,7 @@ export const FavoritesApiFp = function(configuration?: Configuration) {
4770
4882
  * @param {*} [options] Override http request option.
4771
4883
  * @throws {RequiredError}
4772
4884
  */
4773
- async clearFavoriteGroup(favoriteGroupType: 'world' | 'friend' | 'avatar', favoriteGroupName: string, userId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Error>> {
4885
+ async clearFavoriteGroup(favoriteGroupType: 'world' | 'friend' | 'avatar', favoriteGroupName: string, userId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Success>> {
4774
4886
  const localVarAxiosArgs = await localVarAxiosParamCreator.clearFavoriteGroup(favoriteGroupType, favoriteGroupName, userId, options);
4775
4887
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4776
4888
  },
@@ -4832,7 +4944,7 @@ export const FavoritesApiFp = function(configuration?: Configuration) {
4832
4944
  * @param {*} [options] Override http request option.
4833
4945
  * @throws {RequiredError}
4834
4946
  */
4835
- async removeFavorite(favoriteId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Error>> {
4947
+ async removeFavorite(favoriteId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Success>> {
4836
4948
  const localVarAxiosArgs = await localVarAxiosParamCreator.removeFavorite(favoriteId, options);
4837
4949
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4838
4950
  },
@@ -4879,7 +4991,7 @@ export const FavoritesApiFactory = function (configuration?: Configuration, base
4879
4991
  * @param {*} [options] Override http request option.
4880
4992
  * @throws {RequiredError}
4881
4993
  */
4882
- clearFavoriteGroup(favoriteGroupType: 'world' | 'friend' | 'avatar', favoriteGroupName: string, userId: string, options?: any): AxiosPromise<Error> {
4994
+ clearFavoriteGroup(favoriteGroupType: 'world' | 'friend' | 'avatar', favoriteGroupName: string, userId: string, options?: any): AxiosPromise<Success> {
4883
4995
  return localVarFp.clearFavoriteGroup(favoriteGroupType, favoriteGroupName, userId, options).then((request) => request(axios, basePath));
4884
4996
  },
4885
4997
  /**
@@ -4936,7 +5048,7 @@ export const FavoritesApiFactory = function (configuration?: Configuration, base
4936
5048
  * @param {*} [options] Override http request option.
4937
5049
  * @throws {RequiredError}
4938
5050
  */
4939
- removeFavorite(favoriteId: string, options?: any): AxiosPromise<Error> {
5051
+ removeFavorite(favoriteId: string, options?: any): AxiosPromise<Success> {
4940
5052
  return localVarFp.removeFavorite(favoriteId, options).then((request) => request(axios, basePath));
4941
5053
  },
4942
5054
  /**
@@ -5623,7 +5735,7 @@ export const FilesApiFp = function(configuration?: Configuration) {
5623
5735
  * @param {*} [options] Override http request option.
5624
5736
  * @throws {RequiredError}
5625
5737
  */
5626
- async getFileDataUploadStatus(fileId: string, versionId: number, fileType: 'file' | 'signature' | 'delta', options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2004>> {
5738
+ async getFileDataUploadStatus(fileId: string, versionId: number, fileType: 'file' | 'signature' | 'delta', options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2003>> {
5627
5739
  const localVarAxiosArgs = await localVarAxiosParamCreator.getFileDataUploadStatus(fileId, versionId, fileType, options);
5628
5740
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5629
5741
  },
@@ -5651,7 +5763,7 @@ export const FilesApiFp = function(configuration?: Configuration) {
5651
5763
  * @param {*} [options] Override http request option.
5652
5764
  * @throws {RequiredError}
5653
5765
  */
5654
- async startFileDataUpload(fileId: string, versionId: number, fileType: 'file' | 'signature' | 'delta', partNumber: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2005>> {
5766
+ async startFileDataUpload(fileId: string, versionId: number, fileType: 'file' | 'signature' | 'delta', partNumber: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2004>> {
5655
5767
  const localVarAxiosArgs = await localVarAxiosParamCreator.startFileDataUpload(fileId, versionId, fileType, partNumber, options);
5656
5768
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
5657
5769
  },
@@ -5750,7 +5862,7 @@ export const FilesApiFactory = function (configuration?: Configuration, basePath
5750
5862
  * @param {*} [options] Override http request option.
5751
5863
  * @throws {RequiredError}
5752
5864
  */
5753
- getFileDataUploadStatus(fileId: string, versionId: number, fileType: 'file' | 'signature' | 'delta', options?: any): AxiosPromise<InlineResponse2004> {
5865
+ getFileDataUploadStatus(fileId: string, versionId: number, fileType: 'file' | 'signature' | 'delta', options?: any): AxiosPromise<InlineResponse2003> {
5754
5866
  return localVarFp.getFileDataUploadStatus(fileId, versionId, fileType, options).then((request) => request(axios, basePath));
5755
5867
  },
5756
5868
  /**
@@ -5776,7 +5888,7 @@ export const FilesApiFactory = function (configuration?: Configuration, basePath
5776
5888
  * @param {*} [options] Override http request option.
5777
5889
  * @throws {RequiredError}
5778
5890
  */
5779
- startFileDataUpload(fileId: string, versionId: number, fileType: 'file' | 'signature' | 'delta', partNumber: number, options?: any): AxiosPromise<InlineResponse2005> {
5891
+ startFileDataUpload(fileId: string, versionId: number, fileType: 'file' | 'signature' | 'delta', partNumber: number, options?: any): AxiosPromise<InlineResponse2004> {
5780
5892
  return localVarFp.startFileDataUpload(fileId, versionId, fileType, partNumber, options).then((request) => request(axios, basePath));
5781
5893
  },
5782
5894
  };
@@ -6171,7 +6283,7 @@ export const FriendsApiFp = function(configuration?: Configuration) {
6171
6283
  * @param {*} [options] Override http request option.
6172
6284
  * @throws {RequiredError}
6173
6285
  */
6174
- async getFriendStatus(userId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2003>> {
6286
+ async getFriendStatus(userId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FriendStatus>> {
6175
6287
  const localVarAxiosArgs = await localVarAxiosParamCreator.getFriendStatus(userId, options);
6176
6288
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6177
6289
  },
@@ -6236,7 +6348,7 @@ export const FriendsApiFactory = function (configuration?: Configuration, basePa
6236
6348
  * @param {*} [options] Override http request option.
6237
6349
  * @throws {RequiredError}
6238
6350
  */
6239
- getFriendStatus(userId: string, options?: any): AxiosPromise<InlineResponse2003> {
6351
+ getFriendStatus(userId: string, options?: any): AxiosPromise<FriendStatus> {
6240
6352
  return localVarFp.getFriendStatus(userId, options).then((request) => request(axios, basePath));
6241
6353
  },
6242
6354
  /**
@@ -6336,23 +6448,27 @@ export class FriendsApi extends BaseAPI {
6336
6448
 
6337
6449
 
6338
6450
  /**
6339
- * NotificationsApi - axios parameter creator
6451
+ * InviteApi - axios parameter creator
6340
6452
  * @export
6341
6453
  */
6342
- export const NotificationsApiAxiosParamCreator = function (configuration?: Configuration) {
6454
+ export const InviteApiAxiosParamCreator = function (configuration?: Configuration) {
6343
6455
  return {
6344
6456
  /**
6345
- * Accept a friend request by notification `frq_` ID. Friend requests can be found using the NotificationsAPI `getNotifications` by filtering of type `friendRequest`.
6346
- * @summary Accept Friend Request
6347
- * @param {string} notificationId
6457
+ * Returns a single Invite Message. This returns the exact same information but less than `getInviteMessages`. Admin Credentials are required to view messages of other users!
6458
+ * @summary Get Invite Messages
6459
+ * @param {string} userId
6460
+ * @param {number} messageId
6348
6461
  * @param {*} [options] Override http request option.
6349
6462
  * @throws {RequiredError}
6350
6463
  */
6351
- acceptFriendRequest: async (notificationId: string, options: any = {}): Promise<RequestArgs> => {
6352
- // verify required parameter 'notificationId' is not null or undefined
6353
- assertParamExists('acceptFriendRequest', 'notificationId', notificationId)
6354
- const localVarPath = `/auth/user/notifications/{notificationId}/accept`
6355
- .replace(`{${"notificationId"}}`, encodeURIComponent(String(notificationId)));
6464
+ getInviteMessage: async (userId: string, messageId: number, options: any = {}): Promise<RequestArgs> => {
6465
+ // verify required parameter 'userId' is not null or undefined
6466
+ assertParamExists('getInviteMessage', 'userId', userId)
6467
+ // verify required parameter 'messageId' is not null or undefined
6468
+ assertParamExists('getInviteMessage', 'messageId', messageId)
6469
+ const localVarPath = `/message/{userId}/message/{messageId}`
6470
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
6471
+ .replace(`{${"messageId"}}`, encodeURIComponent(String(messageId)));
6356
6472
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6357
6473
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6358
6474
  let baseOptions;
@@ -6360,7 +6476,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
6360
6476
  baseOptions = configuration.baseOptions;
6361
6477
  }
6362
6478
 
6363
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
6479
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6364
6480
  const localVarHeaderParameter = {} as any;
6365
6481
  const localVarQueryParameter = {} as any;
6366
6482
 
@@ -6380,13 +6496,17 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
6380
6496
  };
6381
6497
  },
6382
6498
  /**
6383
- * Clear **all** notifications.
6384
- * @summary Clear All Notifications
6499
+ * Returns a list of all that users Invite Messages. Admin Credentials are required to view messages of other users!
6500
+ * @summary List Invite Messages
6501
+ * @param {string} userId
6385
6502
  * @param {*} [options] Override http request option.
6386
6503
  * @throws {RequiredError}
6387
6504
  */
6388
- clearNotifications: async (options: any = {}): Promise<RequestArgs> => {
6389
- const localVarPath = `/auth/user/notifications/clear`;
6505
+ getInviteMessages: async (userId: string, options: any = {}): Promise<RequestArgs> => {
6506
+ // verify required parameter 'userId' is not null or undefined
6507
+ assertParamExists('getInviteMessages', 'userId', userId)
6508
+ const localVarPath = `/message/{userId}/message`
6509
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
6390
6510
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6391
6511
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6392
6512
  let baseOptions;
@@ -6394,7 +6514,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
6394
6514
  baseOptions = configuration.baseOptions;
6395
6515
  }
6396
6516
 
6397
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
6517
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6398
6518
  const localVarHeaderParameter = {} as any;
6399
6519
  const localVarQueryParameter = {} as any;
6400
6520
 
@@ -6414,17 +6534,18 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
6414
6534
  };
6415
6535
  },
6416
6536
  /**
6417
- * Delete a notification.
6418
- * @summary Delete Notification
6419
- * @param {string} notificationId
6537
+ * Sends an invite to a user. Returns the Notification of type `invite` that was sent.
6538
+ * @summary Invite User
6539
+ * @param {string} userId
6540
+ * @param {InviteRequest} [inviteRequest] Instance ID when inviting a user.
6420
6541
  * @param {*} [options] Override http request option.
6421
6542
  * @throws {RequiredError}
6422
6543
  */
6423
- deleteNotification: async (notificationId: string, options: any = {}): Promise<RequestArgs> => {
6424
- // verify required parameter 'notificationId' is not null or undefined
6425
- assertParamExists('deleteNotification', 'notificationId', notificationId)
6426
- const localVarPath = `/auth/user/notifications/{notificationId}/hide`
6427
- .replace(`{${"notificationId"}}`, encodeURIComponent(String(notificationId)));
6544
+ inviteUser: async (userId: string, inviteRequest?: InviteRequest, options: any = {}): Promise<RequestArgs> => {
6545
+ // verify required parameter 'userId' is not null or undefined
6546
+ assertParamExists('inviteUser', 'userId', userId)
6547
+ const localVarPath = `/invite/{userId}`
6548
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
6428
6549
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6429
6550
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6430
6551
  let baseOptions;
@@ -6432,7 +6553,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
6432
6553
  baseOptions = configuration.baseOptions;
6433
6554
  }
6434
6555
 
6435
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
6556
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
6436
6557
  const localVarHeaderParameter = {} as any;
6437
6558
  const localVarQueryParameter = {} as any;
6438
6559
 
@@ -6442,9 +6563,12 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
6442
6563
 
6443
6564
 
6444
6565
 
6566
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6567
+
6445
6568
  setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
6446
6569
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6447
6570
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6571
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteRequest, localVarRequestOptions, configuration)
6448
6572
 
6449
6573
  return {
6450
6574
  url: toPathString(localVarUrlObj),
@@ -6452,19 +6576,17 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
6452
6576
  };
6453
6577
  },
6454
6578
  /**
6455
- * Retrieve all of the current user\'s notifications.
6456
- * @summary List Notifications
6457
- * @param {string} [type] Only send notifications of this type (can use &#x60;all&#x60; for all).
6458
- * @param {boolean} [sent] Return notifications sent by the user. Must be false or omitted.
6459
- * @param {boolean} [hidden] Whether to return hidden or non-hidden notifications. True only allowed on type &#x60;friendRequest&#x60;.
6460
- * @param {string} [after] Only return notifications sent after this Date. Ignored if type is &#x60;friendRequest&#x60;.
6461
- * @param {number} [n] The number of objects to return.
6462
- * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
6579
+ * Requests an invite from a user. Returns the Notification of type `requestInvite` that was sent.
6580
+ * @summary Request Invite
6581
+ * @param {string} userId
6463
6582
  * @param {*} [options] Override http request option.
6464
6583
  * @throws {RequiredError}
6465
6584
  */
6466
- getNotifications: async (type?: string, sent?: boolean, hidden?: boolean, after?: string, n?: number, offset?: number, options: any = {}): Promise<RequestArgs> => {
6467
- const localVarPath = `/auth/user/notifications`;
6585
+ requestInvite: async (userId: string, options: any = {}): Promise<RequestArgs> => {
6586
+ // verify required parameter 'userId' is not null or undefined
6587
+ assertParamExists('requestInvite', 'userId', userId)
6588
+ const localVarPath = `/requestInvite/{userId}`
6589
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
6468
6590
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6469
6591
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6470
6592
  let baseOptions;
@@ -6472,7 +6594,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
6472
6594
  baseOptions = configuration.baseOptions;
6473
6595
  }
6474
6596
 
6475
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6597
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
6476
6598
  const localVarHeaderParameter = {} as any;
6477
6599
  const localVarQueryParameter = {} as any;
6478
6600
 
@@ -6480,9 +6602,569 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
6480
6602
 
6481
6603
  // authentication authCookie required
6482
6604
 
6483
- if (type !== undefined) {
6484
- localVarQueryParameter['type'] = type;
6485
- }
6605
+
6606
+
6607
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
6608
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6609
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6610
+
6611
+ return {
6612
+ url: toPathString(localVarUrlObj),
6613
+ options: localVarRequestOptions,
6614
+ };
6615
+ },
6616
+ /**
6617
+ * Resets a single Invite Message back to it\'s original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit, but resetting it does not set the rate-limit to 60 like when editing it. It is possible to edit it right after resetting it. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error.
6618
+ * @summary Reset Invite Message
6619
+ * @param {string} userId
6620
+ * @param {number} messageId
6621
+ * @param {*} [options] Override http request option.
6622
+ * @throws {RequiredError}
6623
+ */
6624
+ resetInviteMessage: async (userId: string, messageId: number, options: any = {}): Promise<RequestArgs> => {
6625
+ // verify required parameter 'userId' is not null or undefined
6626
+ assertParamExists('resetInviteMessage', 'userId', userId)
6627
+ // verify required parameter 'messageId' is not null or undefined
6628
+ assertParamExists('resetInviteMessage', 'messageId', messageId)
6629
+ const localVarPath = `/message/{userId}/message/{messageId}`
6630
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
6631
+ .replace(`{${"messageId"}}`, encodeURIComponent(String(messageId)));
6632
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6633
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6634
+ let baseOptions;
6635
+ if (configuration) {
6636
+ baseOptions = configuration.baseOptions;
6637
+ }
6638
+
6639
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
6640
+ const localVarHeaderParameter = {} as any;
6641
+ const localVarQueryParameter = {} as any;
6642
+
6643
+ // authentication apiKeyCookie required
6644
+
6645
+ // authentication authCookie required
6646
+
6647
+
6648
+
6649
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
6650
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6651
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6652
+
6653
+ return {
6654
+ url: toPathString(localVarUrlObj),
6655
+ options: localVarRequestOptions,
6656
+ };
6657
+ },
6658
+ /**
6659
+ * Sends a world invite to a user.
6660
+ * @summary Respond Invite
6661
+ * @param {string} notificationId
6662
+ * @param {InviteResponse} [inviteResponse] Instance ID when inviting a user.
6663
+ * @param {*} [options] Override http request option.
6664
+ * @throws {RequiredError}
6665
+ */
6666
+ respondInvite: async (notificationId: string, inviteResponse?: InviteResponse, options: any = {}): Promise<RequestArgs> => {
6667
+ // verify required parameter 'notificationId' is not null or undefined
6668
+ assertParamExists('respondInvite', 'notificationId', notificationId)
6669
+ const localVarPath = `/invite/{notificationId}/response`
6670
+ .replace(`{${"notificationId"}}`, encodeURIComponent(String(notificationId)));
6671
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6672
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6673
+ let baseOptions;
6674
+ if (configuration) {
6675
+ baseOptions = configuration.baseOptions;
6676
+ }
6677
+
6678
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
6679
+ const localVarHeaderParameter = {} as any;
6680
+ const localVarQueryParameter = {} as any;
6681
+
6682
+ // authentication apiKeyCookie required
6683
+
6684
+ // authentication authCookie required
6685
+
6686
+
6687
+
6688
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6689
+
6690
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
6691
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6692
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6693
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteResponse, localVarRequestOptions, configuration)
6694
+
6695
+ return {
6696
+ url: toPathString(localVarUrlObj),
6697
+ options: localVarRequestOptions,
6698
+ };
6699
+ },
6700
+ /**
6701
+ * 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.
6702
+ * @summary Update Invite Message
6703
+ * @param {string} userId
6704
+ * @param {number} messageId
6705
+ * @param {*} [options] Override http request option.
6706
+ * @throws {RequiredError}
6707
+ */
6708
+ updateInviteMessage: async (userId: string, messageId: number, options: any = {}): Promise<RequestArgs> => {
6709
+ // verify required parameter 'userId' is not null or undefined
6710
+ assertParamExists('updateInviteMessage', 'userId', userId)
6711
+ // verify required parameter 'messageId' is not null or undefined
6712
+ assertParamExists('updateInviteMessage', 'messageId', messageId)
6713
+ const localVarPath = `/message/{userId}/message/{messageId}`
6714
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
6715
+ .replace(`{${"messageId"}}`, encodeURIComponent(String(messageId)));
6716
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6717
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6718
+ let baseOptions;
6719
+ if (configuration) {
6720
+ baseOptions = configuration.baseOptions;
6721
+ }
6722
+
6723
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
6724
+ const localVarHeaderParameter = {} as any;
6725
+ const localVarQueryParameter = {} as any;
6726
+
6727
+ // authentication apiKeyCookie required
6728
+
6729
+ // authentication authCookie required
6730
+
6731
+
6732
+
6733
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
6734
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6735
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6736
+
6737
+ return {
6738
+ url: toPathString(localVarUrlObj),
6739
+ options: localVarRequestOptions,
6740
+ };
6741
+ },
6742
+ }
6743
+ };
6744
+
6745
+ /**
6746
+ * InviteApi - functional programming interface
6747
+ * @export
6748
+ */
6749
+ export const InviteApiFp = function(configuration?: Configuration) {
6750
+ const localVarAxiosParamCreator = InviteApiAxiosParamCreator(configuration)
6751
+ return {
6752
+ /**
6753
+ * Returns a single Invite Message. This returns the exact same information but less than `getInviteMessages`. Admin Credentials are required to view messages of other users!
6754
+ * @summary Get Invite Messages
6755
+ * @param {string} userId
6756
+ * @param {number} messageId
6757
+ * @param {*} [options] Override http request option.
6758
+ * @throws {RequiredError}
6759
+ */
6760
+ async getInviteMessage(userId: string, messageId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteMessage>> {
6761
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getInviteMessage(userId, messageId, options);
6762
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6763
+ },
6764
+ /**
6765
+ * Returns a list of all that users Invite Messages. Admin Credentials are required to view messages of other users!
6766
+ * @summary List Invite Messages
6767
+ * @param {string} userId
6768
+ * @param {*} [options] Override http request option.
6769
+ * @throws {RequiredError}
6770
+ */
6771
+ async getInviteMessages(userId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InviteMessage>>> {
6772
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getInviteMessages(userId, options);
6773
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6774
+ },
6775
+ /**
6776
+ * Sends an invite to a user. Returns the Notification of type `invite` that was sent.
6777
+ * @summary Invite User
6778
+ * @param {string} userId
6779
+ * @param {InviteRequest} [inviteRequest] Instance ID when inviting a user.
6780
+ * @param {*} [options] Override http request option.
6781
+ * @throws {RequiredError}
6782
+ */
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);
6785
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6786
+ },
6787
+ /**
6788
+ * Requests an invite from a user. Returns the Notification of type `requestInvite` that was sent.
6789
+ * @summary Request Invite
6790
+ * @param {string} userId
6791
+ * @param {*} [options] Override http request option.
6792
+ * @throws {RequiredError}
6793
+ */
6794
+ async requestInvite(userId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Notification>> {
6795
+ const localVarAxiosArgs = await localVarAxiosParamCreator.requestInvite(userId, options);
6796
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6797
+ },
6798
+ /**
6799
+ * Resets a single Invite Message back to it\'s original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit, but resetting it does not set the rate-limit to 60 like when editing it. It is possible to edit it right after resetting it. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error.
6800
+ * @summary Reset Invite Message
6801
+ * @param {string} userId
6802
+ * @param {number} messageId
6803
+ * @param {*} [options] Override http request option.
6804
+ * @throws {RequiredError}
6805
+ */
6806
+ async resetInviteMessage(userId: string, messageId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InviteMessage>>> {
6807
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resetInviteMessage(userId, messageId, options);
6808
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6809
+ },
6810
+ /**
6811
+ * Sends a world invite to a user.
6812
+ * @summary Respond Invite
6813
+ * @param {string} notificationId
6814
+ * @param {InviteResponse} [inviteResponse] Instance ID when inviting a user.
6815
+ * @param {*} [options] Override http request option.
6816
+ * @throws {RequiredError}
6817
+ */
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);
6820
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6821
+ },
6822
+ /**
6823
+ * 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.
6824
+ * @summary Update Invite Message
6825
+ * @param {string} userId
6826
+ * @param {number} messageId
6827
+ * @param {*} [options] Override http request option.
6828
+ * @throws {RequiredError}
6829
+ */
6830
+ async updateInviteMessage(userId: string, messageId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InviteMessage>>> {
6831
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateInviteMessage(userId, messageId, options);
6832
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6833
+ },
6834
+ }
6835
+ };
6836
+
6837
+ /**
6838
+ * InviteApi - factory interface
6839
+ * @export
6840
+ */
6841
+ export const InviteApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
6842
+ const localVarFp = InviteApiFp(configuration)
6843
+ return {
6844
+ /**
6845
+ * Returns a single Invite Message. This returns the exact same information but less than `getInviteMessages`. Admin Credentials are required to view messages of other users!
6846
+ * @summary Get Invite Messages
6847
+ * @param {string} userId
6848
+ * @param {number} messageId
6849
+ * @param {*} [options] Override http request option.
6850
+ * @throws {RequiredError}
6851
+ */
6852
+ getInviteMessage(userId: string, messageId: number, options?: any): AxiosPromise<InviteMessage> {
6853
+ return localVarFp.getInviteMessage(userId, messageId, options).then((request) => request(axios, basePath));
6854
+ },
6855
+ /**
6856
+ * Returns a list of all that users Invite Messages. Admin Credentials are required to view messages of other users!
6857
+ * @summary List Invite Messages
6858
+ * @param {string} userId
6859
+ * @param {*} [options] Override http request option.
6860
+ * @throws {RequiredError}
6861
+ */
6862
+ getInviteMessages(userId: string, options?: any): AxiosPromise<Array<InviteMessage>> {
6863
+ return localVarFp.getInviteMessages(userId, options).then((request) => request(axios, basePath));
6864
+ },
6865
+ /**
6866
+ * Sends an invite to a user. Returns the Notification of type `invite` that was sent.
6867
+ * @summary Invite User
6868
+ * @param {string} userId
6869
+ * @param {InviteRequest} [inviteRequest] Instance ID when inviting a user.
6870
+ * @param {*} [options] Override http request option.
6871
+ * @throws {RequiredError}
6872
+ */
6873
+ inviteUser(userId: string, inviteRequest?: InviteRequest, options?: any): AxiosPromise<Notification> {
6874
+ return localVarFp.inviteUser(userId, inviteRequest, options).then((request) => request(axios, basePath));
6875
+ },
6876
+ /**
6877
+ * Requests an invite from a user. Returns the Notification of type `requestInvite` that was sent.
6878
+ * @summary Request Invite
6879
+ * @param {string} userId
6880
+ * @param {*} [options] Override http request option.
6881
+ * @throws {RequiredError}
6882
+ */
6883
+ requestInvite(userId: string, options?: any): AxiosPromise<Notification> {
6884
+ return localVarFp.requestInvite(userId, options).then((request) => request(axios, basePath));
6885
+ },
6886
+ /**
6887
+ * Resets a single Invite Message back to it\'s original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit, but resetting it does not set the rate-limit to 60 like when editing it. It is possible to edit it right after resetting it. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error.
6888
+ * @summary Reset Invite Message
6889
+ * @param {string} userId
6890
+ * @param {number} messageId
6891
+ * @param {*} [options] Override http request option.
6892
+ * @throws {RequiredError}
6893
+ */
6894
+ resetInviteMessage(userId: string, messageId: number, options?: any): AxiosPromise<Array<InviteMessage>> {
6895
+ return localVarFp.resetInviteMessage(userId, messageId, options).then((request) => request(axios, basePath));
6896
+ },
6897
+ /**
6898
+ * Sends a world invite to a user.
6899
+ * @summary Respond Invite
6900
+ * @param {string} notificationId
6901
+ * @param {InviteResponse} [inviteResponse] Instance ID when inviting a user.
6902
+ * @param {*} [options] Override http request option.
6903
+ * @throws {RequiredError}
6904
+ */
6905
+ respondInvite(notificationId: string, inviteResponse?: InviteResponse, options?: any): AxiosPromise<Notification> {
6906
+ return localVarFp.respondInvite(notificationId, inviteResponse, options).then((request) => request(axios, basePath));
6907
+ },
6908
+ /**
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.
6910
+ * @summary Update Invite Message
6911
+ * @param {string} userId
6912
+ * @param {number} messageId
6913
+ * @param {*} [options] Override http request option.
6914
+ * @throws {RequiredError}
6915
+ */
6916
+ updateInviteMessage(userId: string, messageId: number, options?: any): AxiosPromise<Array<InviteMessage>> {
6917
+ return localVarFp.updateInviteMessage(userId, messageId, options).then((request) => request(axios, basePath));
6918
+ },
6919
+ };
6920
+ };
6921
+
6922
+ /**
6923
+ * InviteApi - object-oriented interface
6924
+ * @export
6925
+ * @class InviteApi
6926
+ * @extends {BaseAPI}
6927
+ */
6928
+ export class InviteApi extends BaseAPI {
6929
+ /**
6930
+ * Returns a single Invite Message. This returns the exact same information but less than `getInviteMessages`. Admin Credentials are required to view messages of other users!
6931
+ * @summary Get Invite Messages
6932
+ * @param {string} userId
6933
+ * @param {number} messageId
6934
+ * @param {*} [options] Override http request option.
6935
+ * @throws {RequiredError}
6936
+ * @memberof InviteApi
6937
+ */
6938
+ public getInviteMessage(userId: string, messageId: number, options?: any) {
6939
+ return InviteApiFp(this.configuration).getInviteMessage(userId, messageId, options).then((request) => request(this.axios, this.basePath));
6940
+ }
6941
+
6942
+ /**
6943
+ * Returns a list of all that users Invite Messages. Admin Credentials are required to view messages of other users!
6944
+ * @summary List Invite Messages
6945
+ * @param {string} userId
6946
+ * @param {*} [options] Override http request option.
6947
+ * @throws {RequiredError}
6948
+ * @memberof InviteApi
6949
+ */
6950
+ public getInviteMessages(userId: string, options?: any) {
6951
+ return InviteApiFp(this.configuration).getInviteMessages(userId, options).then((request) => request(this.axios, this.basePath));
6952
+ }
6953
+
6954
+ /**
6955
+ * Sends an invite to a user. Returns the Notification of type `invite` that was sent.
6956
+ * @summary Invite User
6957
+ * @param {string} userId
6958
+ * @param {InviteRequest} [inviteRequest] Instance ID when inviting a user.
6959
+ * @param {*} [options] Override http request option.
6960
+ * @throws {RequiredError}
6961
+ * @memberof InviteApi
6962
+ */
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));
6965
+ }
6966
+
6967
+ /**
6968
+ * Requests an invite from a user. Returns the Notification of type `requestInvite` that was sent.
6969
+ * @summary Request Invite
6970
+ * @param {string} userId
6971
+ * @param {*} [options] Override http request option.
6972
+ * @throws {RequiredError}
6973
+ * @memberof InviteApi
6974
+ */
6975
+ public requestInvite(userId: string, options?: any) {
6976
+ return InviteApiFp(this.configuration).requestInvite(userId, options).then((request) => request(this.axios, this.basePath));
6977
+ }
6978
+
6979
+ /**
6980
+ * Resets a single Invite Message back to it\'s original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit, but resetting it does not set the rate-limit to 60 like when editing it. It is possible to edit it right after resetting it. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error.
6981
+ * @summary Reset Invite Message
6982
+ * @param {string} userId
6983
+ * @param {number} messageId
6984
+ * @param {*} [options] Override http request option.
6985
+ * @throws {RequiredError}
6986
+ * @memberof InviteApi
6987
+ */
6988
+ public resetInviteMessage(userId: string, messageId: number, options?: any) {
6989
+ return InviteApiFp(this.configuration).resetInviteMessage(userId, messageId, options).then((request) => request(this.axios, this.basePath));
6990
+ }
6991
+
6992
+ /**
6993
+ * Sends a world invite to a user.
6994
+ * @summary Respond Invite
6995
+ * @param {string} notificationId
6996
+ * @param {InviteResponse} [inviteResponse] Instance ID when inviting a user.
6997
+ * @param {*} [options] Override http request option.
6998
+ * @throws {RequiredError}
6999
+ * @memberof InviteApi
7000
+ */
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));
7003
+ }
7004
+
7005
+ /**
7006
+ * 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.
7007
+ * @summary Update Invite Message
7008
+ * @param {string} userId
7009
+ * @param {number} messageId
7010
+ * @param {*} [options] Override http request option.
7011
+ * @throws {RequiredError}
7012
+ * @memberof InviteApi
7013
+ */
7014
+ public updateInviteMessage(userId: string, messageId: number, options?: any) {
7015
+ return InviteApiFp(this.configuration).updateInviteMessage(userId, messageId, options).then((request) => request(this.axios, this.basePath));
7016
+ }
7017
+ }
7018
+
7019
+
7020
+ /**
7021
+ * NotificationsApi - axios parameter creator
7022
+ * @export
7023
+ */
7024
+ export const NotificationsApiAxiosParamCreator = function (configuration?: Configuration) {
7025
+ return {
7026
+ /**
7027
+ * Accept a friend request by notification `frq_` ID. Friend requests can be found using the NotificationsAPI `getNotifications` by filtering of type `friendRequest`.
7028
+ * @summary Accept Friend Request
7029
+ * @param {string} notificationId
7030
+ * @param {*} [options] Override http request option.
7031
+ * @throws {RequiredError}
7032
+ */
7033
+ acceptFriendRequest: async (notificationId: string, options: any = {}): Promise<RequestArgs> => {
7034
+ // verify required parameter 'notificationId' is not null or undefined
7035
+ assertParamExists('acceptFriendRequest', 'notificationId', notificationId)
7036
+ const localVarPath = `/auth/user/notifications/{notificationId}/accept`
7037
+ .replace(`{${"notificationId"}}`, encodeURIComponent(String(notificationId)));
7038
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7039
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7040
+ let baseOptions;
7041
+ if (configuration) {
7042
+ baseOptions = configuration.baseOptions;
7043
+ }
7044
+
7045
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
7046
+ const localVarHeaderParameter = {} as any;
7047
+ const localVarQueryParameter = {} as any;
7048
+
7049
+ // authentication apiKeyCookie required
7050
+
7051
+ // authentication authCookie required
7052
+
7053
+
7054
+
7055
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
7056
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7057
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7058
+
7059
+ return {
7060
+ url: toPathString(localVarUrlObj),
7061
+ options: localVarRequestOptions,
7062
+ };
7063
+ },
7064
+ /**
7065
+ * Clear **all** notifications.
7066
+ * @summary Clear All Notifications
7067
+ * @param {*} [options] Override http request option.
7068
+ * @throws {RequiredError}
7069
+ */
7070
+ clearNotifications: async (options: any = {}): Promise<RequestArgs> => {
7071
+ const localVarPath = `/auth/user/notifications/clear`;
7072
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7073
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7074
+ let baseOptions;
7075
+ if (configuration) {
7076
+ baseOptions = configuration.baseOptions;
7077
+ }
7078
+
7079
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
7080
+ const localVarHeaderParameter = {} as any;
7081
+ const localVarQueryParameter = {} as any;
7082
+
7083
+ // authentication apiKeyCookie required
7084
+
7085
+ // authentication authCookie required
7086
+
7087
+
7088
+
7089
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
7090
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7091
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7092
+
7093
+ return {
7094
+ url: toPathString(localVarUrlObj),
7095
+ options: localVarRequestOptions,
7096
+ };
7097
+ },
7098
+ /**
7099
+ * Delete a notification.
7100
+ * @summary Delete Notification
7101
+ * @param {string} notificationId
7102
+ * @param {*} [options] Override http request option.
7103
+ * @throws {RequiredError}
7104
+ */
7105
+ deleteNotification: async (notificationId: string, options: any = {}): Promise<RequestArgs> => {
7106
+ // verify required parameter 'notificationId' is not null or undefined
7107
+ assertParamExists('deleteNotification', 'notificationId', notificationId)
7108
+ const localVarPath = `/auth/user/notifications/{notificationId}/hide`
7109
+ .replace(`{${"notificationId"}}`, encodeURIComponent(String(notificationId)));
7110
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7111
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7112
+ let baseOptions;
7113
+ if (configuration) {
7114
+ baseOptions = configuration.baseOptions;
7115
+ }
7116
+
7117
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
7118
+ const localVarHeaderParameter = {} as any;
7119
+ const localVarQueryParameter = {} as any;
7120
+
7121
+ // authentication apiKeyCookie required
7122
+
7123
+ // authentication authCookie required
7124
+
7125
+
7126
+
7127
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
7128
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7129
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7130
+
7131
+ return {
7132
+ url: toPathString(localVarUrlObj),
7133
+ options: localVarRequestOptions,
7134
+ };
7135
+ },
7136
+ /**
7137
+ * Retrieve all of the current user\'s notifications.
7138
+ * @summary List Notifications
7139
+ * @param {string} [type] Only send notifications of this type (can use &#x60;all&#x60; for all).
7140
+ * @param {boolean} [sent] Return notifications sent by the user. Must be false or omitted.
7141
+ * @param {boolean} [hidden] Whether to return hidden or non-hidden notifications. True only allowed on type &#x60;friendRequest&#x60;.
7142
+ * @param {string} [after] Only return notifications sent after this Date. Ignored if type is &#x60;friendRequest&#x60;.
7143
+ * @param {number} [n] The number of objects to return.
7144
+ * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
7145
+ * @param {*} [options] Override http request option.
7146
+ * @throws {RequiredError}
7147
+ */
7148
+ getNotifications: async (type?: string, sent?: boolean, hidden?: boolean, after?: string, n?: number, offset?: number, options: any = {}): Promise<RequestArgs> => {
7149
+ const localVarPath = `/auth/user/notifications`;
7150
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7151
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7152
+ let baseOptions;
7153
+ if (configuration) {
7154
+ baseOptions = configuration.baseOptions;
7155
+ }
7156
+
7157
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7158
+ const localVarHeaderParameter = {} as any;
7159
+ const localVarQueryParameter = {} as any;
7160
+
7161
+ // authentication apiKeyCookie required
7162
+
7163
+ // authentication authCookie required
7164
+
7165
+ if (type !== undefined) {
7166
+ localVarQueryParameter['type'] = type;
7167
+ }
6486
7168
 
6487
7169
  if (sent !== undefined) {
6488
7170
  localVarQueryParameter['sent'] = sent;
@@ -6762,6 +7444,179 @@ export class NotificationsApi extends BaseAPI {
6762
7444
  }
6763
7445
 
6764
7446
 
7447
+ /**
7448
+ * PermissionsApi - axios parameter creator
7449
+ * @export
7450
+ */
7451
+ export const PermissionsApiAxiosParamCreator = function (configuration?: Configuration) {
7452
+ return {
7453
+ /**
7454
+ * Returns a list of all permissions currently granted by the user. Permissions are assigned e.g. by subscribing to VRC+.
7455
+ * @summary Get Assigned Permission
7456
+ * @param {*} [options] Override http request option.
7457
+ * @throws {RequiredError}
7458
+ */
7459
+ getAssignedPermissions: async (options: any = {}): Promise<RequestArgs> => {
7460
+ const localVarPath = `/auth/permissions`;
7461
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7462
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7463
+ let baseOptions;
7464
+ if (configuration) {
7465
+ baseOptions = configuration.baseOptions;
7466
+ }
7467
+
7468
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7469
+ const localVarHeaderParameter = {} as any;
7470
+ const localVarQueryParameter = {} as any;
7471
+
7472
+ // authentication apiKeyCookie required
7473
+
7474
+ // authentication authCookie required
7475
+
7476
+
7477
+
7478
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
7479
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7480
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7481
+
7482
+ return {
7483
+ url: toPathString(localVarUrlObj),
7484
+ options: localVarRequestOptions,
7485
+ };
7486
+ },
7487
+ /**
7488
+ * Returns a single permission. This endpoint is pretty useless, as it returns the exact same information as `/auth/permissions`.
7489
+ * @summary Get Permission
7490
+ * @param {string} permissionId
7491
+ * @param {*} [options] Override http request option.
7492
+ * @throws {RequiredError}
7493
+ */
7494
+ getPermission: async (permissionId: string, options: any = {}): Promise<RequestArgs> => {
7495
+ // verify required parameter 'permissionId' is not null or undefined
7496
+ assertParamExists('getPermission', 'permissionId', permissionId)
7497
+ const localVarPath = `/permissions/{permissionId}`
7498
+ .replace(`{${"permissionId"}}`, encodeURIComponent(String(permissionId)));
7499
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7500
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7501
+ let baseOptions;
7502
+ if (configuration) {
7503
+ baseOptions = configuration.baseOptions;
7504
+ }
7505
+
7506
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7507
+ const localVarHeaderParameter = {} as any;
7508
+ const localVarQueryParameter = {} as any;
7509
+
7510
+ // authentication apiKeyCookie required
7511
+
7512
+ // authentication authCookie required
7513
+
7514
+
7515
+
7516
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
7517
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7518
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7519
+
7520
+ return {
7521
+ url: toPathString(localVarUrlObj),
7522
+ options: localVarRequestOptions,
7523
+ };
7524
+ },
7525
+ }
7526
+ };
7527
+
7528
+ /**
7529
+ * PermissionsApi - functional programming interface
7530
+ * @export
7531
+ */
7532
+ export const PermissionsApiFp = function(configuration?: Configuration) {
7533
+ const localVarAxiosParamCreator = PermissionsApiAxiosParamCreator(configuration)
7534
+ return {
7535
+ /**
7536
+ * Returns a list of all permissions currently granted by the user. Permissions are assigned e.g. by subscribing to VRC+.
7537
+ * @summary Get Assigned Permission
7538
+ * @param {*} [options] Override http request option.
7539
+ * @throws {RequiredError}
7540
+ */
7541
+ async getAssignedPermissions(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Permission>>> {
7542
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAssignedPermissions(options);
7543
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7544
+ },
7545
+ /**
7546
+ * Returns a single permission. This endpoint is pretty useless, as it returns the exact same information as `/auth/permissions`.
7547
+ * @summary Get Permission
7548
+ * @param {string} permissionId
7549
+ * @param {*} [options] Override http request option.
7550
+ * @throws {RequiredError}
7551
+ */
7552
+ async getPermission(permissionId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Permission>> {
7553
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPermission(permissionId, options);
7554
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7555
+ },
7556
+ }
7557
+ };
7558
+
7559
+ /**
7560
+ * PermissionsApi - factory interface
7561
+ * @export
7562
+ */
7563
+ export const PermissionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
7564
+ const localVarFp = PermissionsApiFp(configuration)
7565
+ return {
7566
+ /**
7567
+ * Returns a list of all permissions currently granted by the user. Permissions are assigned e.g. by subscribing to VRC+.
7568
+ * @summary Get Assigned Permission
7569
+ * @param {*} [options] Override http request option.
7570
+ * @throws {RequiredError}
7571
+ */
7572
+ getAssignedPermissions(options?: any): AxiosPromise<Array<Permission>> {
7573
+ return localVarFp.getAssignedPermissions(options).then((request) => request(axios, basePath));
7574
+ },
7575
+ /**
7576
+ * Returns a single permission. This endpoint is pretty useless, as it returns the exact same information as `/auth/permissions`.
7577
+ * @summary Get Permission
7578
+ * @param {string} permissionId
7579
+ * @param {*} [options] Override http request option.
7580
+ * @throws {RequiredError}
7581
+ */
7582
+ getPermission(permissionId: string, options?: any): AxiosPromise<Permission> {
7583
+ return localVarFp.getPermission(permissionId, options).then((request) => request(axios, basePath));
7584
+ },
7585
+ };
7586
+ };
7587
+
7588
+ /**
7589
+ * PermissionsApi - object-oriented interface
7590
+ * @export
7591
+ * @class PermissionsApi
7592
+ * @extends {BaseAPI}
7593
+ */
7594
+ export class PermissionsApi extends BaseAPI {
7595
+ /**
7596
+ * Returns a list of all permissions currently granted by the user. Permissions are assigned e.g. by subscribing to VRC+.
7597
+ * @summary Get Assigned Permission
7598
+ * @param {*} [options] Override http request option.
7599
+ * @throws {RequiredError}
7600
+ * @memberof PermissionsApi
7601
+ */
7602
+ public getAssignedPermissions(options?: any) {
7603
+ return PermissionsApiFp(this.configuration).getAssignedPermissions(options).then((request) => request(this.axios, this.basePath));
7604
+ }
7605
+
7606
+ /**
7607
+ * Returns a single permission. This endpoint is pretty useless, as it returns the exact same information as `/auth/permissions`.
7608
+ * @summary Get Permission
7609
+ * @param {string} permissionId
7610
+ * @param {*} [options] Override http request option.
7611
+ * @throws {RequiredError}
7612
+ * @memberof PermissionsApi
7613
+ */
7614
+ public getPermission(permissionId: string, options?: any) {
7615
+ return PermissionsApiFp(this.configuration).getPermission(permissionId, options).then((request) => request(this.axios, this.basePath));
7616
+ }
7617
+ }
7618
+
7619
+
6765
7620
  /**
6766
7621
  * PlayermoderationApi - axios parameter creator
6767
7622
  * @export
@@ -7025,7 +7880,7 @@ export const PlayermoderationApiFp = function(configuration?: Configuration) {
7025
7880
  * @param {*} [options] Override http request option.
7026
7881
  * @throws {RequiredError}
7027
7882
  */
7028
- async deletePlayerModeration(playerModerationId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Error>> {
7883
+ async deletePlayerModeration(playerModerationId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Success>> {
7029
7884
  const localVarAxiosArgs = await localVarAxiosParamCreator.deletePlayerModeration(playerModerationId, options);
7030
7885
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7031
7886
  },
@@ -7070,7 +7925,7 @@ export const PlayermoderationApiFp = function(configuration?: Configuration) {
7070
7925
  * @param {*} [options] Override http request option.
7071
7926
  * @throws {RequiredError}
7072
7927
  */
7073
- async unmoderateUser(inlineObject13?: InlineObject13, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Error>> {
7928
+ async unmoderateUser(inlineObject13?: InlineObject13, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Success>> {
7074
7929
  const localVarAxiosArgs = await localVarAxiosParamCreator.unmoderateUser(inlineObject13, options);
7075
7930
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7076
7931
  },
@@ -7100,7 +7955,7 @@ export const PlayermoderationApiFactory = function (configuration?: Configuratio
7100
7955
  * @param {*} [options] Override http request option.
7101
7956
  * @throws {RequiredError}
7102
7957
  */
7103
- deletePlayerModeration(playerModerationId: string, options?: any): AxiosPromise<Error> {
7958
+ deletePlayerModeration(playerModerationId: string, options?: any): AxiosPromise<Success> {
7104
7959
  return localVarFp.deletePlayerModeration(playerModerationId, options).then((request) => request(axios, basePath));
7105
7960
  },
7106
7961
  /**
@@ -7141,7 +7996,7 @@ export const PlayermoderationApiFactory = function (configuration?: Configuratio
7141
7996
  * @param {*} [options] Override http request option.
7142
7997
  * @throws {RequiredError}
7143
7998
  */
7144
- unmoderateUser(inlineObject13?: InlineObject13, options?: any): AxiosPromise<Error> {
7999
+ unmoderateUser(inlineObject13?: InlineObject13, options?: any): AxiosPromise<Success> {
7145
8000
  return localVarFp.unmoderateUser(inlineObject13, options).then((request) => request(axios, basePath));
7146
8001
  },
7147
8002
  };
@@ -7579,63 +8434,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
7579
8434
 
7580
8435
 
7581
8436
 
7582
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
7583
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7584
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7585
-
7586
- return {
7587
- url: toPathString(localVarUrlObj),
7588
- options: localVarRequestOptions,
7589
- };
7590
- },
7591
- /**
7592
- * Search and list any Active users by text query. **Has been locked down and now always respond with \"Invalid Admin Credentials\".**
7593
- * @summary Search Active Users
7594
- * @param {string} search Username to search for
7595
- * @param {string} [developerType] Active user by developer type, none for normal users and internal for moderators
7596
- * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
7597
- * @param {number} [n] The number of objects to return.
7598
- * @param {*} [options] Override http request option.
7599
- * @deprecated
7600
- * @throws {RequiredError}
7601
- */
7602
- searchActiveUsers: async (search: string, developerType?: string, offset?: number, n?: number, options: any = {}): Promise<RequestArgs> => {
7603
- // verify required parameter 'search' is not null or undefined
7604
- assertParamExists('searchActiveUsers', 'search', search)
7605
- const localVarPath = `/users/active`;
7606
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7607
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7608
- let baseOptions;
7609
- if (configuration) {
7610
- baseOptions = configuration.baseOptions;
7611
- }
7612
-
7613
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
7614
- const localVarHeaderParameter = {} as any;
7615
- const localVarQueryParameter = {} as any;
7616
-
7617
- // authentication apiKeyCookie required
7618
-
7619
- // authentication authCookie required
7620
-
7621
- if (search !== undefined) {
7622
- localVarQueryParameter['search'] = search;
7623
- }
7624
-
7625
- if (developerType !== undefined) {
7626
- localVarQueryParameter['developerType'] = developerType;
7627
- }
7628
-
7629
- if (offset !== undefined) {
7630
- localVarQueryParameter['offset'] = offset;
7631
- }
7632
-
7633
- if (n !== undefined) {
7634
- localVarQueryParameter['n'] = n;
7635
- }
7636
-
7637
-
7638
-
7639
8437
  setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
7640
8438
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7641
8439
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -7773,21 +8571,6 @@ export const UsersApiFp = function(configuration?: Configuration) {
7773
8571
  const localVarAxiosArgs = await localVarAxiosParamCreator.getUserByName(username, options);
7774
8572
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7775
8573
  },
7776
- /**
7777
- * Search and list any Active users by text query. **Has been locked down and now always respond with \"Invalid Admin Credentials\".**
7778
- * @summary Search Active Users
7779
- * @param {string} search Username to search for
7780
- * @param {string} [developerType] Active user by developer type, none for normal users and internal for moderators
7781
- * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
7782
- * @param {number} [n] The number of objects to return.
7783
- * @param {*} [options] Override http request option.
7784
- * @deprecated
7785
- * @throws {RequiredError}
7786
- */
7787
- async searchActiveUsers(search: string, developerType?: string, offset?: number, n?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<LimitedUser>>> {
7788
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchActiveUsers(search, developerType, offset, n, options);
7789
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7790
- },
7791
8574
  /**
7792
8575
  * Search and list any users by text query
7793
8576
  * @summary Search All Users
@@ -7844,20 +8627,6 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
7844
8627
  getUserByName(username: string, options?: any): AxiosPromise<User> {
7845
8628
  return localVarFp.getUserByName(username, options).then((request) => request(axios, basePath));
7846
8629
  },
7847
- /**
7848
- * Search and list any Active users by text query. **Has been locked down and now always respond with \"Invalid Admin Credentials\".**
7849
- * @summary Search Active Users
7850
- * @param {string} search Username to search for
7851
- * @param {string} [developerType] Active user by developer type, none for normal users and internal for moderators
7852
- * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
7853
- * @param {number} [n] The number of objects to return.
7854
- * @param {*} [options] Override http request option.
7855
- * @deprecated
7856
- * @throws {RequiredError}
7857
- */
7858
- searchActiveUsers(search: string, developerType?: string, offset?: number, n?: number, options?: any): AxiosPromise<Array<LimitedUser>> {
7859
- return localVarFp.searchActiveUsers(search, developerType, offset, n, options).then((request) => request(axios, basePath));
7860
- },
7861
8630
  /**
7862
8631
  * Search and list any users by text query
7863
8632
  * @summary Search All Users
@@ -7916,22 +8685,6 @@ export class UsersApi extends BaseAPI {
7916
8685
  return UsersApiFp(this.configuration).getUserByName(username, options).then((request) => request(this.axios, this.basePath));
7917
8686
  }
7918
8687
 
7919
- /**
7920
- * Search and list any Active users by text query. **Has been locked down and now always respond with \"Invalid Admin Credentials\".**
7921
- * @summary Search Active Users
7922
- * @param {string} search Username to search for
7923
- * @param {string} [developerType] Active user by developer type, none for normal users and internal for moderators
7924
- * @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
7925
- * @param {number} [n] The number of objects to return.
7926
- * @param {*} [options] Override http request option.
7927
- * @deprecated
7928
- * @throws {RequiredError}
7929
- * @memberof UsersApi
7930
- */
7931
- public searchActiveUsers(search: string, developerType?: string, offset?: number, n?: number, options?: any) {
7932
- return UsersApiFp(this.configuration).searchActiveUsers(search, developerType, offset, n, options).then((request) => request(this.axios, this.basePath));
7933
- }
7934
-
7935
8688
  /**
7936
8689
  * Search and list any users by text query
7937
8690
  * @summary Search All Users
@@ -8838,7 +9591,7 @@ export const WorldsApiFp = function(configuration?: Configuration) {
8838
9591
  * @deprecated
8839
9592
  * @throws {RequiredError}
8840
9593
  */
8841
- async getWorldMetadata(worldId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2006>> {
9594
+ async getWorldMetadata(worldId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2005>> {
8842
9595
  const localVarAxiosArgs = await localVarAxiosParamCreator.getWorldMetadata(worldId, options);
8843
9596
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8844
9597
  },
@@ -8849,7 +9602,7 @@ export const WorldsApiFp = function(configuration?: Configuration) {
8849
9602
  * @param {*} [options] Override http request option.
8850
9603
  * @throws {RequiredError}
8851
9604
  */
8852
- async getWorldPublishStatus(worldId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2007>> {
9605
+ async getWorldPublishStatus(worldId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2006>> {
8853
9606
  const localVarAxiosArgs = await localVarAxiosParamCreator.getWorldPublishStatus(worldId, options);
8854
9607
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8855
9608
  },
@@ -9035,7 +9788,7 @@ export const WorldsApiFactory = function (configuration?: Configuration, basePat
9035
9788
  * @deprecated
9036
9789
  * @throws {RequiredError}
9037
9790
  */
9038
- getWorldMetadata(worldId: string, options?: any): AxiosPromise<InlineResponse2006> {
9791
+ getWorldMetadata(worldId: string, options?: any): AxiosPromise<InlineResponse2005> {
9039
9792
  return localVarFp.getWorldMetadata(worldId, options).then((request) => request(axios, basePath));
9040
9793
  },
9041
9794
  /**
@@ -9045,7 +9798,7 @@ export const WorldsApiFactory = function (configuration?: Configuration, basePat
9045
9798
  * @param {*} [options] Override http request option.
9046
9799
  * @throws {RequiredError}
9047
9800
  */
9048
- getWorldPublishStatus(worldId: string, options?: any): AxiosPromise<InlineResponse2007> {
9801
+ getWorldPublishStatus(worldId: string, options?: any): AxiosPromise<InlineResponse2006> {
9049
9802
  return localVarFp.getWorldPublishStatus(worldId, options).then((request) => request(axios, basePath));
9050
9803
  },
9051
9804
  /**