From d80b8314b387cb617d6e18748d7e4e070b2f9a15 Mon Sep 17 00:00:00 2001 From: VRCCat Date: Sun, 21 Apr 2024 03:24:42 +0000 Subject: [PATCH] Upgrade Node SDK to spec 1.17.1 --- api.ts | 104 +++++++++++++++++++++++++++++++++++++++++++++- base.ts | 2 +- common.ts | 2 +- configuration.ts | 2 +- index.ts | 2 +- package-lock.json | 4 +- package.json | 2 +- 7 files changed, 109 insertions(+), 9 deletions(-) diff --git a/api.ts b/api.ts index 2c33b25..69299a8 100644 --- a/api.ts +++ b/api.ts @@ -3,7 +3,7 @@ /** * VRChat API Documentation * - * The version of the OpenAPI document: 1.17.0 + * The version of the OpenAPI document: 1.17.1 * Contact: vrchatapi.lpv0t@aries.fyi * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -2590,6 +2590,37 @@ export interface GroupGalleryImage { */ 'approvedAt'?: string; } +/** + * + * @export + * @interface GroupInstance + */ +export interface GroupInstance { + /** + * + * @type {string} + * @memberof GroupInstance + */ + 'instanceId': string; + /** + * InstanceID can be \"offline\" on User profiles if you are not friends with that user and \"private\" if you are friends and user is in private instance. + * @type {string} + * @memberof GroupInstance + */ + 'location': string; + /** + * + * @type {World} + * @memberof GroupInstance + */ + 'world': World; + /** + * + * @type {number} + * @memberof GroupInstance + */ + 'memberCount': number; +} /** * * @export @@ -2843,7 +2874,7 @@ export interface GroupMemberLimitedUser { * @type {string} * @memberof GroupMemberLimitedUser */ - 'thumbnailUrl'?: string; + 'thumbnailUrl'?: string | null; /** * * @type {string} @@ -10817,6 +10848,42 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns a list of group instances + * @summary Get Group Instances + * @param {string} groupId Must be a valid group ID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGroupInstances: async (groupId: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'groupId' is not null or undefined + assertParamExists('getGroupInstances', 'groupId', groupId) + const localVarPath = `/groups/{groupId}/instances` + .replace(`{${"groupId"}}`, encodeURIComponent(String(groupId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication authCookie required + + + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -11795,6 +11862,17 @@ export const GroupsApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.getGroupGalleryImages(groupId, groupGalleryId, n, offset, approved, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, + /** + * Returns a list of group instances + * @summary Get Group Instances + * @param {string} groupId Must be a valid group ID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getGroupInstances(groupId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getGroupInstances(groupId, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, /** * Returns a list of members that have been invited to the Group. * @summary Get Group Invites Sent @@ -12240,6 +12318,16 @@ export const GroupsApiFactory = function (configuration?: Configuration, basePat getGroupGalleryImages(groupId: string, groupGalleryId: string, n?: number, offset?: number, approved?: boolean, options?: any): AxiosPromise> { return localVarFp.getGroupGalleryImages(groupId, groupGalleryId, n, offset, approved, options).then((request) => request(axios, basePath)); }, + /** + * Returns a list of group instances + * @summary Get Group Instances + * @param {string} groupId Must be a valid group ID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getGroupInstances(groupId: string, options?: any): AxiosPromise> { + return localVarFp.getGroupInstances(groupId, options).then((request) => request(axios, basePath)); + }, /** * Returns a list of members that have been invited to the Group. * @summary Get Group Invites Sent @@ -12708,6 +12796,18 @@ export class GroupsApi extends BaseAPI { return GroupsApiFp(this.configuration).getGroupGalleryImages(groupId, groupGalleryId, n, offset, approved, options).then((request) => request(this.axios, this.basePath)); } + /** + * Returns a list of group instances + * @summary Get Group Instances + * @param {string} groupId Must be a valid group ID. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GroupsApi + */ + public getGroupInstances(groupId: string, options?: AxiosRequestConfig) { + return GroupsApiFp(this.configuration).getGroupInstances(groupId, options).then((request) => request(this.axios, this.basePath)); + } + /** * Returns a list of members that have been invited to the Group. * @summary Get Group Invites Sent diff --git a/base.ts b/base.ts index 926a71e..19466d5 100644 --- a/base.ts +++ b/base.ts @@ -3,7 +3,7 @@ /** * VRChat API Documentation * - * The version of the OpenAPI document: 1.17.0 + * The version of the OpenAPI document: 1.17.1 * Contact: vrchatapi.lpv0t@aries.fyi * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/common.ts b/common.ts index b76eb35..430fc47 100644 --- a/common.ts +++ b/common.ts @@ -3,7 +3,7 @@ /** * VRChat API Documentation * - * The version of the OpenAPI document: 1.17.0 + * The version of the OpenAPI document: 1.17.1 * Contact: vrchatapi.lpv0t@aries.fyi * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/configuration.ts b/configuration.ts index fd8c4a1..9f20db4 100644 --- a/configuration.ts +++ b/configuration.ts @@ -3,7 +3,7 @@ /** * VRChat API Documentation * - * The version of the OpenAPI document: 1.17.0 + * The version of the OpenAPI document: 1.17.1 * Contact: vrchatapi.lpv0t@aries.fyi * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/index.ts b/index.ts index ef5cf03..bb4ab49 100644 --- a/index.ts +++ b/index.ts @@ -3,7 +3,7 @@ /** * VRChat API Documentation * - * The version of the OpenAPI document: 1.17.0 + * The version of the OpenAPI document: 1.17.1 * Contact: vrchatapi.lpv0t@aries.fyi * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/package-lock.json b/package-lock.json index ce2036f..b44c4d3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "vrchat", - "version": "1.17.0", + "version": "1.17.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "vrchat", - "version": "1.17.0", + "version": "1.17.1", "license": "MIT", "dependencies": { "@types/tough-cookie": "^4.0.1", diff --git a/package.json b/package.json index 6a2f0c6..4b7a6f7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vrchat", - "version": "1.17.0", + "version": "1.17.1", "description": "🟡🔵 VRChat API Library for JavaScript and TypeScript", "author": "OpenAPI-Generator Contributors", "repository": {