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/base.ts
CHANGED
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.10.0
|
|
7
7
|
* Contact: me@ariesclark.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -82,24 +82,34 @@ export const setOAuthToObject = async function (object: any, name: string, scope
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void {
|
|
86
|
+
if (typeof parameter === "object") {
|
|
87
|
+
if (Array.isArray(parameter)) {
|
|
88
|
+
(parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
Object.keys(parameter).forEach(currentKey =>
|
|
92
|
+
setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
if (urlSearchParams.has(key)) {
|
|
98
|
+
urlSearchParams.append(key, parameter);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
urlSearchParams.set(key, parameter);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
85
106
|
/**
|
|
86
107
|
*
|
|
87
108
|
* @export
|
|
88
109
|
*/
|
|
89
110
|
export const setSearchParams = function (url: URL, ...objects: any[]) {
|
|
90
111
|
const searchParams = new URLSearchParams(url.search);
|
|
91
|
-
|
|
92
|
-
for (const key in object) {
|
|
93
|
-
if (Array.isArray(object[key])) {
|
|
94
|
-
searchParams.delete(key);
|
|
95
|
-
for (const item of object[key]) {
|
|
96
|
-
searchParams.append(key, item);
|
|
97
|
-
}
|
|
98
|
-
} else {
|
|
99
|
-
searchParams.set(key, object[key]);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
112
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
103
113
|
url.search = searchParams.toString();
|
|
104
114
|
}
|
|
105
115
|
|
package/configuration.ts
CHANGED