vrchat 1.9.1 → 1.10.0
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 +1 -1
- package/.openapi-generator/VERSION +1 -1
- package/api.ts +8354 -3944
- package/base.ts +1 -1
- package/common.ts +23 -13
- package/configuration.ts +1 -1
- package/dist/api.d.ts +5551 -2802
- package/dist/api.js +4625 -1273
- package/dist/base.d.ts +1 -1
- package/dist/base.js +4 -2
- package/dist/common.d.ts +2 -2
- package/dist/common.js +43 -27
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -3
- package/generate.sh +0 -0
- package/index.ts +1 -1
- package/openapitools.json +1 -1
- package/package.json +9 -5
- package/tsconfig.json +1 -1
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* VRChat API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.10.0
|
|
8
8
|
* Contact: me@ariesclark.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -15,10 +15,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
var extendStatics = function (d, b) {
|
|
16
16
|
extendStatics = Object.setPrototypeOf ||
|
|
17
17
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
18
|
-
function (d, b) { for (var p in b) if (
|
|
18
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
19
19
|
return extendStatics(d, b);
|
|
20
20
|
};
|
|
21
21
|
return function (d, b) {
|
|
22
|
+
if (typeof b !== "function" && b !== null)
|
|
23
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
22
24
|
extendStatics(d, b);
|
|
23
25
|
function __() { this.constructor = d; }
|
|
24
26
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
package/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* VRChat API Documentation
|
|
3
3
|
*
|
|
4
|
-
* The version of the OpenAPI document: 1.
|
|
4
|
+
* The version of the OpenAPI document: 1.10.0
|
|
5
5
|
* Contact: me@ariesclark.com
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -61,4 +61,4 @@ export declare const toPathString: (url: URL) => string;
|
|
|
61
61
|
*
|
|
62
62
|
* @export
|
|
63
63
|
*/
|
|
64
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
64
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
package/dist/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* VRChat API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.10.0
|
|
8
8
|
* Contact: me@ariesclark.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
38
38
|
function step(op) {
|
|
39
39
|
if (f) throw new TypeError("Generator is already executing.");
|
|
40
|
-
while (_) try {
|
|
40
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
41
41
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
42
42
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
43
43
|
switch (op[0]) {
|
|
@@ -71,16 +71,17 @@ exports.DUMMY_BASE_URL = 'https://example.com';
|
|
|
71
71
|
* @throws {RequiredError}
|
|
72
72
|
* @export
|
|
73
73
|
*/
|
|
74
|
-
|
|
74
|
+
var assertParamExists = function (functionName, paramName, paramValue) {
|
|
75
75
|
if (paramValue === null || paramValue === undefined) {
|
|
76
|
-
throw new base_1.RequiredError(paramName, "Required parameter "
|
|
76
|
+
throw new base_1.RequiredError(paramName, "Required parameter ".concat(paramName, " was null or undefined when calling ").concat(functionName, "."));
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
|
+
exports.assertParamExists = assertParamExists;
|
|
79
80
|
/**
|
|
80
81
|
*
|
|
81
82
|
* @export
|
|
82
83
|
*/
|
|
83
|
-
|
|
84
|
+
var setApiKeyToObject = function (object, keyParamName, configuration) {
|
|
84
85
|
return __awaiter(this, void 0, void 0, function () {
|
|
85
86
|
var localVarApiKeyValue, _a;
|
|
86
87
|
return __generator(this, function (_b) {
|
|
@@ -105,20 +106,22 @@ exports.setApiKeyToObject = function (object, keyParamName, configuration) {
|
|
|
105
106
|
});
|
|
106
107
|
});
|
|
107
108
|
};
|
|
109
|
+
exports.setApiKeyToObject = setApiKeyToObject;
|
|
108
110
|
/**
|
|
109
111
|
*
|
|
110
112
|
* @export
|
|
111
113
|
*/
|
|
112
|
-
|
|
114
|
+
var setBasicAuthToObject = function (object, configuration) {
|
|
113
115
|
if (configuration && (configuration.username || configuration.password)) {
|
|
114
116
|
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
115
117
|
}
|
|
116
118
|
};
|
|
119
|
+
exports.setBasicAuthToObject = setBasicAuthToObject;
|
|
117
120
|
/**
|
|
118
121
|
*
|
|
119
122
|
* @export
|
|
120
123
|
*/
|
|
121
|
-
|
|
124
|
+
var setBearerAuthToObject = function (object, configuration) {
|
|
122
125
|
return __awaiter(this, void 0, void 0, function () {
|
|
123
126
|
var accessToken, _a;
|
|
124
127
|
return __generator(this, function (_b) {
|
|
@@ -143,11 +146,12 @@ exports.setBearerAuthToObject = function (object, configuration) {
|
|
|
143
146
|
});
|
|
144
147
|
});
|
|
145
148
|
};
|
|
149
|
+
exports.setBearerAuthToObject = setBearerAuthToObject;
|
|
146
150
|
/**
|
|
147
151
|
*
|
|
148
152
|
* @export
|
|
149
153
|
*/
|
|
150
|
-
|
|
154
|
+
var setOAuthToObject = function (object, name, scopes, configuration) {
|
|
151
155
|
return __awaiter(this, void 0, void 0, function () {
|
|
152
156
|
var localVarAccessTokenValue, _a;
|
|
153
157
|
return __generator(this, function (_b) {
|
|
@@ -172,38 +176,47 @@ exports.setOAuthToObject = function (object, name, scopes, configuration) {
|
|
|
172
176
|
});
|
|
173
177
|
});
|
|
174
178
|
};
|
|
179
|
+
exports.setOAuthToObject = setOAuthToObject;
|
|
180
|
+
function setFlattenedQueryParams(urlSearchParams, parameter, key) {
|
|
181
|
+
if (key === void 0) { key = ""; }
|
|
182
|
+
if (typeof parameter === "object") {
|
|
183
|
+
if (Array.isArray(parameter)) {
|
|
184
|
+
parameter.forEach(function (item) { return setFlattenedQueryParams(urlSearchParams, item, key); });
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
Object.keys(parameter).forEach(function (currentKey) {
|
|
188
|
+
return setFlattenedQueryParams(urlSearchParams, parameter[currentKey], "".concat(key).concat(key !== '' ? '.' : '').concat(currentKey));
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
else {
|
|
193
|
+
if (urlSearchParams.has(key)) {
|
|
194
|
+
urlSearchParams.append(key, parameter);
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
urlSearchParams.set(key, parameter);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
175
201
|
/**
|
|
176
202
|
*
|
|
177
203
|
* @export
|
|
178
204
|
*/
|
|
179
|
-
|
|
205
|
+
var setSearchParams = function (url) {
|
|
180
206
|
var objects = [];
|
|
181
207
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
182
208
|
objects[_i - 1] = arguments[_i];
|
|
183
209
|
}
|
|
184
210
|
var searchParams = new URLSearchParams(url.search);
|
|
185
|
-
|
|
186
|
-
var object = objects_1[_a];
|
|
187
|
-
for (var key in object) {
|
|
188
|
-
if (Array.isArray(object[key])) {
|
|
189
|
-
searchParams.delete(key);
|
|
190
|
-
for (var _b = 0, _c = object[key]; _b < _c.length; _b++) {
|
|
191
|
-
var item = _c[_b];
|
|
192
|
-
searchParams.append(key, item);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
searchParams.set(key, object[key]);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
211
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
200
212
|
url.search = searchParams.toString();
|
|
201
213
|
};
|
|
214
|
+
exports.setSearchParams = setSearchParams;
|
|
202
215
|
/**
|
|
203
216
|
*
|
|
204
217
|
* @export
|
|
205
218
|
*/
|
|
206
|
-
|
|
219
|
+
var serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
207
220
|
var nonString = typeof value !== 'string';
|
|
208
221
|
var needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
209
222
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
@@ -212,18 +225,20 @@ exports.serializeDataIfNeeded = function (value, requestOptions, configuration)
|
|
|
212
225
|
? JSON.stringify(value !== undefined ? value : {})
|
|
213
226
|
: (value || "");
|
|
214
227
|
};
|
|
228
|
+
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
|
215
229
|
/**
|
|
216
230
|
*
|
|
217
231
|
* @export
|
|
218
232
|
*/
|
|
219
|
-
|
|
233
|
+
var toPathString = function (url) {
|
|
220
234
|
return url.pathname + url.search + url.hash;
|
|
221
235
|
};
|
|
236
|
+
exports.toPathString = toPathString;
|
|
222
237
|
/**
|
|
223
238
|
*
|
|
224
239
|
* @export
|
|
225
240
|
*/
|
|
226
|
-
|
|
241
|
+
var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
227
242
|
return function (axios, basePath) {
|
|
228
243
|
if (axios === void 0) { axios = globalAxios; }
|
|
229
244
|
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
@@ -231,3 +246,4 @@ exports.createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, con
|
|
|
231
246
|
return axios.request(axiosRequestArgs);
|
|
232
247
|
};
|
|
233
248
|
};
|
|
249
|
+
exports.createRequestFunction = createRequestFunction;
|
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* VRChat API Documentation
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.10.0
|
|
8
8
|
* Contact: me@ariesclark.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -13,13 +13,17 @@
|
|
|
13
13
|
*/
|
|
14
14
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
15
|
if (k2 === undefined) k2 = k;
|
|
16
|
-
Object.
|
|
16
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
17
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
18
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
19
|
+
}
|
|
20
|
+
Object.defineProperty(o, k2, desc);
|
|
17
21
|
}) : (function(o, m, k, k2) {
|
|
18
22
|
if (k2 === undefined) k2 = k;
|
|
19
23
|
o[k2] = m[k];
|
|
20
24
|
}));
|
|
21
25
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
22
|
-
for (var p in m) if (p !== "default" && !
|
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23
27
|
};
|
|
24
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
29
|
__exportStar(require("./api"), exports);
|
package/generate.sh
CHANGED
|
File without changes
|
package/index.ts
CHANGED
package/openapitools.json
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vrchat",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "🟡🔵 VRChat API Library for JavaScript and TypeScript",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/vrchatapi/vrchatapi-javascript.git"
|
|
9
|
+
},
|
|
6
10
|
"keywords": [
|
|
7
11
|
"axios",
|
|
8
12
|
"typescript",
|
|
@@ -14,17 +18,17 @@
|
|
|
14
18
|
"main": "./dist/index.js",
|
|
15
19
|
"typings": "./dist/index.d.ts",
|
|
16
20
|
"scripts": {
|
|
17
|
-
"build": "tsc
|
|
18
|
-
"
|
|
21
|
+
"build": "tsc ",
|
|
22
|
+
"prepare": "npm run build"
|
|
19
23
|
},
|
|
20
24
|
"dependencies": {
|
|
21
25
|
"tough-cookie": "^4.0.0",
|
|
22
26
|
"axios-cookiejar-support": "^1.0.1",
|
|
23
27
|
"@types/tough-cookie": "^4.0.1",
|
|
24
|
-
"axios": "^0.
|
|
28
|
+
"axios": "^0.26.1"
|
|
25
29
|
},
|
|
26
30
|
"devDependencies": {
|
|
27
31
|
"@types/node": "^12.11.5",
|
|
28
|
-
"typescript": "^
|
|
32
|
+
"typescript": "^4.0"
|
|
29
33
|
}
|
|
30
34
|
}
|