vrchat 1.4.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yaml +2 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +1 -1
- package/api.ts +1941 -1601
- package/base.ts +3 -3
- package/common.ts +5 -5
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1788 -1624
- package/dist/api.js +727 -348
- package/dist/base.d.ts +3 -3
- package/dist/base.js +1 -1
- package/dist/common.d.ts +3 -3
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/generate.sh +1 -1
- package/index.ts +1 -1
- package/openapitools.json +1 -1
- package/package.json +2 -2
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* VRChat API Documentation
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 1.
|
|
6
|
+
* The version of the OpenAPI document: 1.5.1
|
|
7
7
|
* Contact: me@ruby.js.org
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
import { Configuration } from "./configuration";
|
|
16
16
|
// Some imports not used depending on template conditions
|
|
17
17
|
// @ts-ignore
|
|
18
|
-
import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
|
|
18
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
19
19
|
|
|
20
20
|
export const BASE_PATH = "https://api.vrchat.cloud/api/1".replace(/\/+$/, "");
|
|
21
21
|
|
|
@@ -37,7 +37,7 @@ export const COLLECTION_FORMATS = {
|
|
|
37
37
|
*/
|
|
38
38
|
export interface RequestArgs {
|
|
39
39
|
url: string;
|
|
40
|
-
options:
|
|
40
|
+
options: AxiosRequestConfig;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/**
|
package/common.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* VRChat API Documentation
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 1.
|
|
6
|
+
* The version of the OpenAPI document: 1.5.1
|
|
7
7
|
* Contact: me@ruby.js.org
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
import { Configuration } from "./configuration";
|
|
16
|
-
import { RequiredError,
|
|
17
|
-
import { AxiosInstance } from 'axios';
|
|
16
|
+
import { RequiredError, RequestArgs } from "./base";
|
|
17
|
+
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
@@ -130,8 +130,8 @@ export const toPathString = function (url: URL) {
|
|
|
130
130
|
* @export
|
|
131
131
|
*/
|
|
132
132
|
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
133
|
-
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
133
|
+
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
134
134
|
const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
|
|
135
|
-
return axios.request(axiosRequestArgs);
|
|
135
|
+
return axios.request<T, R>(axiosRequestArgs);
|
|
136
136
|
};
|
|
137
137
|
}
|
package/configuration.ts
CHANGED