Skip to content

Commit

Permalink
Upgrade Node SDK to spec 1.16.4
Browse files Browse the repository at this point in the history
  • Loading branch information
VRCCat committed Feb 2, 2024
1 parent 76a8727 commit cba1a25
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 15 deletions.
74 changes: 66 additions & 8 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.16.3
* The version of the OpenAPI document: 1.16.4
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -2658,6 +2658,12 @@ export interface GroupMember {
* @memberof GroupMember
*/
'roleIds'?: Array<string>;
/**
*
* @type {Array<string>}
* @memberof GroupMember
*/
'mRoleIds'?: Array<string>;
/**
*
* @type {string}
Expand Down Expand Up @@ -2700,6 +2706,18 @@ export interface GroupMember {
* @memberof GroupMember
*/
'managerNotes'?: string | null;
/**
*
* @type {string}
* @memberof GroupMember
*/
'lastPostReadAt'?: string;
/**
*
* @type {boolean}
* @memberof GroupMember
*/
'hasJoinedFromPurchase'?: boolean;
}
/**
* Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user.
Expand Down Expand Up @@ -2731,6 +2749,24 @@ export interface GroupMemberLimitedUser {
* @memberof GroupMemberLimitedUser
*/
'iconUrl'?: string;
/**
*
* @type {string}
* @memberof GroupMemberLimitedUser
*/
'profilePicOverride'?: string;
/**
*
* @type {string}
* @memberof GroupMemberLimitedUser
*/
'currentAvatarThumbnailImageUrl'?: string;
/**
*
* @type {Array<string>}
* @memberof GroupMemberLimitedUser
*/
'currentAvatarTags'?: Array<string>;
}
/**
*
Expand Down Expand Up @@ -2979,6 +3015,20 @@ export const GroupRoleTemplate = {
export type GroupRoleTemplate = typeof GroupRoleTemplate[keyof typeof GroupRoleTemplate];


/**
*
* @export
* @enum {string}
*/

export const GroupSearchSort = {
Asc: 'joinedAt:asc',
Desc: 'joinedAt:desc'
} as const;

export type GroupSearchSort = typeof GroupSearchSort[keyof typeof GroupSearchSort];


/**
*
* @export
Expand Down Expand Up @@ -10561,10 +10611,11 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio
* @param {string} groupId Must be a valid group ID.
* @param {number} [n] The number of objects to return.
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
* @param {GroupSearchSort} [sort] The sort order of Group Member results
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getGroupMembers: async (groupId: string, n?: number, offset?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
getGroupMembers: async (groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'groupId' is not null or undefined
assertParamExists('getGroupMembers', 'groupId', groupId)
const localVarPath = `/groups/{groupId}/members`
Expand All @@ -10590,6 +10641,10 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio
localVarQueryParameter['offset'] = offset;
}

if (sort !== undefined) {
localVarQueryParameter['sort'] = sort;
}



setSearchParams(localVarUrlObj, localVarQueryParameter);
Expand Down Expand Up @@ -11450,11 +11505,12 @@ export const GroupsApiFp = function(configuration?: Configuration) {
* @param {string} groupId Must be a valid group ID.
* @param {number} [n] The number of objects to return.
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
* @param {GroupSearchSort} [sort] The sort order of Group Member results
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getGroupMembers(groupId: string, n?: number, offset?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GroupMember>>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getGroupMembers(groupId, n, offset, options);
async getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GroupMember>>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.getGroupMembers(groupId, n, offset, sort, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
Expand Down Expand Up @@ -11888,11 +11944,12 @@ export const GroupsApiFactory = function (configuration?: Configuration, basePat
* @param {string} groupId Must be a valid group ID.
* @param {number} [n] The number of objects to return.
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
* @param {GroupSearchSort} [sort] The sort order of Group Member results
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getGroupMembers(groupId: string, n?: number, offset?: number, options?: any): AxiosPromise<Array<GroupMember>> {
return localVarFp.getGroupMembers(groupId, n, offset, options).then((request) => request(axios, basePath));
getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, options?: any): AxiosPromise<Array<GroupMember>> {
return localVarFp.getGroupMembers(groupId, n, offset, sort, options).then((request) => request(axios, basePath));
},
/**
* Returns a List of all possible/available permissions for a Group.
Expand Down Expand Up @@ -12355,12 +12412,13 @@ export class GroupsApi extends BaseAPI {
* @param {string} groupId Must be a valid group ID.
* @param {number} [n] The number of objects to return.
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
* @param {GroupSearchSort} [sort] The sort order of Group Member results
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof GroupsApi
*/
public getGroupMembers(groupId: string, n?: number, offset?: number, options?: AxiosRequestConfig) {
return GroupsApiFp(this.configuration).getGroupMembers(groupId, n, offset, options).then((request) => request(this.axios, this.basePath));
public getGroupMembers(groupId: string, n?: number, offset?: number, sort?: GroupSearchSort, options?: AxiosRequestConfig) {
return GroupsApiFp(this.configuration).getGroupMembers(groupId, n, offset, sort, options).then((request) => request(this.axios, this.basePath));
}

/**
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.16.3
* The version of the OpenAPI document: 1.16.4
* 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.16.3
* The version of the OpenAPI document: 1.16.4
* 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.16.3
* The version of the OpenAPI document: 1.16.4
* 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.16.3
* The version of the OpenAPI document: 1.16.4
* 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.16.3",
"version": "1.16.4",
"description": "🟡🔵 VRChat API Library for JavaScript and TypeScript",
"author": "OpenAPI-Generator Contributors",
"repository": {
Expand Down

0 comments on commit cba1a25

Please sign in to comment.