Skip to content

Commit

Permalink
Upgrade Node SDK to spec 1.17.1
Browse files Browse the repository at this point in the history
  • Loading branch information
VRCCat committed Apr 21, 2024
1 parent ea7140d commit d80b831
Show file tree
Hide file tree
Showing 7 changed files with 109 additions and 9 deletions.
104 changes: 102 additions & 2 deletions api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -2843,7 +2874,7 @@ export interface GroupMemberLimitedUser {
* @type {string}
* @memberof GroupMemberLimitedUser
*/
'thumbnailUrl'?: string;
'thumbnailUrl'?: string | null;
/**
*
* @type {string}
Expand Down Expand Up @@ -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<RequestArgs> => {
// 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};
Expand Down Expand Up @@ -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<Array<GroupInstance>>> {
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
Expand Down Expand Up @@ -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<Array<GroupGalleryImage>> {
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<Array<GroupInstance>> {
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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit d80b831

Please sign in to comment.