|
3 | 3 | /** |
4 | 4 | * VRChat API Documentation |
5 | 5 | * |
6 | | - * The version of the OpenAPI document: 1.16.5 |
| 6 | + * The version of the OpenAPI document: 1.16.6 |
7 | 7 | * Contact: vrchatapi.lpv0t@aries.fyi |
8 | 8 | * |
9 | 9 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). |
@@ -929,6 +929,12 @@ export interface CreateAvatarRequest { |
929 | 929 | * @memberof CreateAvatarRequest |
930 | 930 | */ |
931 | 931 | 'unityPackageUrl'?: string; |
| 932 | + /** |
| 933 | + * |
| 934 | + * @type {string} |
| 935 | + * @memberof CreateAvatarRequest |
| 936 | + */ |
| 937 | + 'unityVersion'?: string; |
932 | 938 | } |
933 | 939 | /** |
934 | 940 | * |
@@ -2409,7 +2415,7 @@ export interface GroupAuditLogEntry { |
2409 | 2415 | * @type {string} |
2410 | 2416 | * @memberof GroupAuditLogEntry |
2411 | 2417 | */ |
2412 | | - 'actorDisplayname'?: string; |
| 2418 | + 'actorDisplayName'?: string; |
2413 | 2419 | /** |
2414 | 2420 | * Typically GroupID or GroupRoleID, but could be other types of IDs. |
2415 | 2421 | * @type {string} |
@@ -4444,6 +4450,97 @@ export const ReleaseStatus = { |
4444 | 4450 | export type ReleaseStatus = typeof ReleaseStatus[keyof typeof ReleaseStatus]; |
4445 | 4451 |
|
4446 | 4452 |
|
| 4453 | +/** |
| 4454 | + * |
| 4455 | + * @export |
| 4456 | + * @interface RepresentedGroup |
| 4457 | + */ |
| 4458 | +export interface RepresentedGroup { |
| 4459 | + /** |
| 4460 | + * |
| 4461 | + * @type {string} |
| 4462 | + * @memberof RepresentedGroup |
| 4463 | + */ |
| 4464 | + 'name'?: string; |
| 4465 | + /** |
| 4466 | + * |
| 4467 | + * @type {string} |
| 4468 | + * @memberof RepresentedGroup |
| 4469 | + */ |
| 4470 | + 'shortCode'?: string; |
| 4471 | + /** |
| 4472 | + * |
| 4473 | + * @type {string} |
| 4474 | + * @memberof RepresentedGroup |
| 4475 | + */ |
| 4476 | + 'discriminator'?: string; |
| 4477 | + /** |
| 4478 | + * |
| 4479 | + * @type {string} |
| 4480 | + * @memberof RepresentedGroup |
| 4481 | + */ |
| 4482 | + 'description'?: string; |
| 4483 | + /** |
| 4484 | + * |
| 4485 | + * @type {string} |
| 4486 | + * @memberof RepresentedGroup |
| 4487 | + */ |
| 4488 | + 'iconId'?: string | null; |
| 4489 | + /** |
| 4490 | + * |
| 4491 | + * @type {string} |
| 4492 | + * @memberof RepresentedGroup |
| 4493 | + */ |
| 4494 | + 'iconUrl'?: string | null; |
| 4495 | + /** |
| 4496 | + * |
| 4497 | + * @type {string} |
| 4498 | + * @memberof RepresentedGroup |
| 4499 | + */ |
| 4500 | + 'bannerId'?: string | null; |
| 4501 | + /** |
| 4502 | + * |
| 4503 | + * @type {string} |
| 4504 | + * @memberof RepresentedGroup |
| 4505 | + */ |
| 4506 | + 'bannerUrl'?: string | null; |
| 4507 | + /** |
| 4508 | + * |
| 4509 | + * @type {GroupPrivacy} |
| 4510 | + * @memberof RepresentedGroup |
| 4511 | + */ |
| 4512 | + 'privacy'?: GroupPrivacy; |
| 4513 | + /** |
| 4514 | + * A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. |
| 4515 | + * @type {string} |
| 4516 | + * @memberof RepresentedGroup |
| 4517 | + */ |
| 4518 | + 'ownerId'?: string; |
| 4519 | + /** |
| 4520 | + * |
| 4521 | + * @type {number} |
| 4522 | + * @memberof RepresentedGroup |
| 4523 | + */ |
| 4524 | + 'memberCount'?: number; |
| 4525 | + /** |
| 4526 | + * |
| 4527 | + * @type {string} |
| 4528 | + * @memberof RepresentedGroup |
| 4529 | + */ |
| 4530 | + 'groupId'?: string; |
| 4531 | + /** |
| 4532 | + * |
| 4533 | + * @type {GroupUserVisibility} |
| 4534 | + * @memberof RepresentedGroup |
| 4535 | + */ |
| 4536 | + 'memberVisibility'?: GroupUserVisibility; |
| 4537 | + /** |
| 4538 | + * |
| 4539 | + * @type {boolean} |
| 4540 | + * @memberof RepresentedGroup |
| 4541 | + */ |
| 4542 | + 'isRepresenting'?: boolean; |
| 4543 | +} |
4447 | 4544 | /** |
4448 | 4545 | * |
4449 | 4546 | * @export |
@@ -5067,6 +5164,12 @@ export interface UpdateAvatarRequest { |
5067 | 5164 | * @memberof UpdateAvatarRequest |
5068 | 5165 | */ |
5069 | 5166 | 'unityPackageUrl'?: string; |
| 5167 | + /** |
| 5168 | + * |
| 5169 | + * @type {string} |
| 5170 | + * @memberof UpdateAvatarRequest |
| 5171 | + */ |
| 5172 | + 'unityVersion'?: string; |
5070 | 5173 | } |
5071 | 5174 | /** |
5072 | 5175 | * |
@@ -15373,6 +15476,42 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration |
15373 | 15476 |
|
15374 | 15477 |
|
15375 | 15478 |
|
| 15479 | + setSearchParams(localVarUrlObj, localVarQueryParameter); |
| 15480 | + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
| 15481 | + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
| 15482 | + |
| 15483 | + return { |
| 15484 | + url: toPathString(localVarUrlObj), |
| 15485 | + options: localVarRequestOptions, |
| 15486 | + }; |
| 15487 | + }, |
| 15488 | + /** |
| 15489 | + * Returns the current group that the user is currently representing |
| 15490 | + * @summary Get user\'s current represented group |
| 15491 | + * @param {string} userId Must be a valid user ID. |
| 15492 | + * @param {*} [options] Override http request option. |
| 15493 | + * @throws {RequiredError} |
| 15494 | + */ |
| 15495 | + getUserRepresentedGroup: async (userId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => { |
| 15496 | + // verify required parameter 'userId' is not null or undefined |
| 15497 | + assertParamExists('getUserRepresentedGroup', 'userId', userId) |
| 15498 | + const localVarPath = `/users/{userId}/groups/represented` |
| 15499 | + .replace(`{${"userId"}}`, encodeURIComponent(String(userId))); |
| 15500 | + // use dummy base URL string because the URL constructor only accepts absolute URLs. |
| 15501 | + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); |
| 15502 | + let baseOptions; |
| 15503 | + if (configuration) { |
| 15504 | + baseOptions = configuration.baseOptions; |
| 15505 | + } |
| 15506 | + |
| 15507 | + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; |
| 15508 | + const localVarHeaderParameter = {} as any; |
| 15509 | + const localVarQueryParameter = {} as any; |
| 15510 | + |
| 15511 | + // authentication authCookie required |
| 15512 | + |
| 15513 | + |
| 15514 | + |
15376 | 15515 | setSearchParams(localVarUrlObj, localVarQueryParameter); |
15377 | 15516 | let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; |
15378 | 15517 | localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; |
@@ -15529,6 +15668,17 @@ export const UsersApiFp = function(configuration?: Configuration) { |
15529 | 15668 | const localVarAxiosArgs = await localVarAxiosParamCreator.getUserGroups(userId, options); |
15530 | 15669 | return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
15531 | 15670 | }, |
| 15671 | + /** |
| 15672 | + * Returns the current group that the user is currently representing |
| 15673 | + * @summary Get user\'s current represented group |
| 15674 | + * @param {string} userId Must be a valid user ID. |
| 15675 | + * @param {*} [options] Override http request option. |
| 15676 | + * @throws {RequiredError} |
| 15677 | + */ |
| 15678 | + async getUserRepresentedGroup(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RepresentedGroup>> { |
| 15679 | + const localVarAxiosArgs = await localVarAxiosParamCreator.getUserRepresentedGroup(userId, options); |
| 15680 | + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); |
| 15681 | + }, |
15532 | 15682 | /** |
15533 | 15683 | * Search and list any users by text query |
15534 | 15684 | * @summary Search All Users |
@@ -15606,6 +15756,16 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath |
15606 | 15756 | getUserGroups(userId: string, options?: any): AxiosPromise<Array<Group>> { |
15607 | 15757 | return localVarFp.getUserGroups(userId, options).then((request) => request(axios, basePath)); |
15608 | 15758 | }, |
| 15759 | + /** |
| 15760 | + * Returns the current group that the user is currently representing |
| 15761 | + * @summary Get user\'s current represented group |
| 15762 | + * @param {string} userId Must be a valid user ID. |
| 15763 | + * @param {*} [options] Override http request option. |
| 15764 | + * @throws {RequiredError} |
| 15765 | + */ |
| 15766 | + getUserRepresentedGroup(userId: string, options?: any): AxiosPromise<RepresentedGroup> { |
| 15767 | + return localVarFp.getUserRepresentedGroup(userId, options).then((request) => request(axios, basePath)); |
| 15768 | + }, |
15609 | 15769 | /** |
15610 | 15770 | * Search and list any users by text query |
15611 | 15771 | * @summary Search All Users |
@@ -15689,6 +15849,18 @@ export class UsersApi extends BaseAPI { |
15689 | 15849 | return UsersApiFp(this.configuration).getUserGroups(userId, options).then((request) => request(this.axios, this.basePath)); |
15690 | 15850 | } |
15691 | 15851 |
|
| 15852 | + /** |
| 15853 | + * Returns the current group that the user is currently representing |
| 15854 | + * @summary Get user\'s current represented group |
| 15855 | + * @param {string} userId Must be a valid user ID. |
| 15856 | + * @param {*} [options] Override http request option. |
| 15857 | + * @throws {RequiredError} |
| 15858 | + * @memberof UsersApi |
| 15859 | + */ |
| 15860 | + public getUserRepresentedGroup(userId: string, options?: AxiosRequestConfig) { |
| 15861 | + return UsersApiFp(this.configuration).getUserRepresentedGroup(userId, options).then((request) => request(this.axios, this.basePath)); |
| 15862 | + } |
| 15863 | + |
15692 | 15864 | /** |
15693 | 15865 | * Search and list any users by text query |
15694 | 15866 | * @summary Search All Users |
|
0 commit comments