vrchat 1.17.1 → 1.17.2
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/api.ts +384 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +252 -1
- package/dist/api.js +276 -3
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* VRChat API Documentation
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 1.17.
|
|
6
|
+
* The version of the OpenAPI document: 1.17.2
|
|
7
7
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1097,6 +1097,49 @@ export interface CreateGroupInviteRequest {
|
|
|
1097
1097
|
*/
|
|
1098
1098
|
'confirmOverrideBlock'?: boolean;
|
|
1099
1099
|
}
|
|
1100
|
+
/**
|
|
1101
|
+
*
|
|
1102
|
+
* @export
|
|
1103
|
+
* @interface CreateGroupPostRequest
|
|
1104
|
+
*/
|
|
1105
|
+
export interface CreateGroupPostRequest {
|
|
1106
|
+
/**
|
|
1107
|
+
* Post title
|
|
1108
|
+
* @type {string}
|
|
1109
|
+
* @memberof CreateGroupPostRequest
|
|
1110
|
+
*/
|
|
1111
|
+
'title': string;
|
|
1112
|
+
/**
|
|
1113
|
+
* Post text
|
|
1114
|
+
* @type {string}
|
|
1115
|
+
* @memberof CreateGroupPostRequest
|
|
1116
|
+
*/
|
|
1117
|
+
'text': string;
|
|
1118
|
+
/**
|
|
1119
|
+
*
|
|
1120
|
+
* @type {string}
|
|
1121
|
+
* @memberof CreateGroupPostRequest
|
|
1122
|
+
*/
|
|
1123
|
+
'imageId'?: string;
|
|
1124
|
+
/**
|
|
1125
|
+
* Send notification to group members.
|
|
1126
|
+
* @type {boolean}
|
|
1127
|
+
* @memberof CreateGroupPostRequest
|
|
1128
|
+
*/
|
|
1129
|
+
'sendNotification': boolean;
|
|
1130
|
+
/**
|
|
1131
|
+
*
|
|
1132
|
+
* @type {Array<string>}
|
|
1133
|
+
* @memberof CreateGroupPostRequest
|
|
1134
|
+
*/
|
|
1135
|
+
'roleIds'?: Array<string>;
|
|
1136
|
+
/**
|
|
1137
|
+
*
|
|
1138
|
+
* @type {GroupPostVisibility}
|
|
1139
|
+
* @memberof CreateGroupPostRequest
|
|
1140
|
+
*/
|
|
1141
|
+
'visibility': GroupPostVisibility;
|
|
1142
|
+
}
|
|
1100
1143
|
/**
|
|
1101
1144
|
*
|
|
1102
1145
|
* @export
|
|
@@ -3039,6 +3082,99 @@ export interface GroupPermission {
|
|
|
3039
3082
|
*/
|
|
3040
3083
|
'allowedToAdd'?: boolean;
|
|
3041
3084
|
}
|
|
3085
|
+
/**
|
|
3086
|
+
*
|
|
3087
|
+
* @export
|
|
3088
|
+
* @interface GroupPost
|
|
3089
|
+
*/
|
|
3090
|
+
export interface GroupPost {
|
|
3091
|
+
/**
|
|
3092
|
+
*
|
|
3093
|
+
* @type {string}
|
|
3094
|
+
* @memberof GroupPost
|
|
3095
|
+
*/
|
|
3096
|
+
'id'?: string;
|
|
3097
|
+
/**
|
|
3098
|
+
*
|
|
3099
|
+
* @type {string}
|
|
3100
|
+
* @memberof GroupPost
|
|
3101
|
+
*/
|
|
3102
|
+
'groupId'?: string;
|
|
3103
|
+
/**
|
|
3104
|
+
* 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.
|
|
3105
|
+
* @type {string}
|
|
3106
|
+
* @memberof GroupPost
|
|
3107
|
+
*/
|
|
3108
|
+
'authorId'?: string;
|
|
3109
|
+
/**
|
|
3110
|
+
* 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.
|
|
3111
|
+
* @type {string}
|
|
3112
|
+
* @memberof GroupPost
|
|
3113
|
+
*/
|
|
3114
|
+
'editorId'?: string;
|
|
3115
|
+
/**
|
|
3116
|
+
*
|
|
3117
|
+
* @type {GroupPostVisibility}
|
|
3118
|
+
* @memberof GroupPost
|
|
3119
|
+
*/
|
|
3120
|
+
'visibility'?: GroupPostVisibility;
|
|
3121
|
+
/**
|
|
3122
|
+
*
|
|
3123
|
+
* @type {Array<string>}
|
|
3124
|
+
* @memberof GroupPost
|
|
3125
|
+
*/
|
|
3126
|
+
'roleId'?: Array<string>;
|
|
3127
|
+
/**
|
|
3128
|
+
*
|
|
3129
|
+
* @type {string}
|
|
3130
|
+
* @memberof GroupPost
|
|
3131
|
+
*/
|
|
3132
|
+
'title'?: string;
|
|
3133
|
+
/**
|
|
3134
|
+
*
|
|
3135
|
+
* @type {string}
|
|
3136
|
+
* @memberof GroupPost
|
|
3137
|
+
*/
|
|
3138
|
+
'text'?: string;
|
|
3139
|
+
/**
|
|
3140
|
+
*
|
|
3141
|
+
* @type {string}
|
|
3142
|
+
* @memberof GroupPost
|
|
3143
|
+
*/
|
|
3144
|
+
'imageId'?: string;
|
|
3145
|
+
/**
|
|
3146
|
+
*
|
|
3147
|
+
* @type {string}
|
|
3148
|
+
* @memberof GroupPost
|
|
3149
|
+
*/
|
|
3150
|
+
'imageUrl'?: string | null;
|
|
3151
|
+
/**
|
|
3152
|
+
*
|
|
3153
|
+
* @type {string}
|
|
3154
|
+
* @memberof GroupPost
|
|
3155
|
+
*/
|
|
3156
|
+
'createdAt'?: string;
|
|
3157
|
+
/**
|
|
3158
|
+
*
|
|
3159
|
+
* @type {string}
|
|
3160
|
+
* @memberof GroupPost
|
|
3161
|
+
*/
|
|
3162
|
+
'updatedAt'?: string;
|
|
3163
|
+
}
|
|
3164
|
+
/**
|
|
3165
|
+
*
|
|
3166
|
+
* @export
|
|
3167
|
+
* @enum {string}
|
|
3168
|
+
*/
|
|
3169
|
+
|
|
3170
|
+
export const GroupPostVisibility = {
|
|
3171
|
+
Group: 'group',
|
|
3172
|
+
Public: 'public'
|
|
3173
|
+
} as const;
|
|
3174
|
+
|
|
3175
|
+
export type GroupPostVisibility = typeof GroupPostVisibility[keyof typeof GroupPostVisibility];
|
|
3176
|
+
|
|
3177
|
+
|
|
3042
3178
|
/**
|
|
3043
3179
|
*
|
|
3044
3180
|
* @export
|
|
@@ -10099,6 +10235,48 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
10099
10235
|
options: localVarRequestOptions,
|
|
10100
10236
|
};
|
|
10101
10237
|
},
|
|
10238
|
+
/**
|
|
10239
|
+
* Create a post in a Group.
|
|
10240
|
+
* @summary Create a post in a Group
|
|
10241
|
+
* @param {string} groupId Must be a valid group ID.
|
|
10242
|
+
* @param {CreateGroupPostRequest} createGroupPostRequest
|
|
10243
|
+
* @param {*} [options] Override http request option.
|
|
10244
|
+
* @throws {RequiredError}
|
|
10245
|
+
*/
|
|
10246
|
+
addGroupPost: async (groupId: string, createGroupPostRequest: CreateGroupPostRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10247
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
10248
|
+
assertParamExists('addGroupPost', 'groupId', groupId)
|
|
10249
|
+
// verify required parameter 'createGroupPostRequest' is not null or undefined
|
|
10250
|
+
assertParamExists('addGroupPost', 'createGroupPostRequest', createGroupPostRequest)
|
|
10251
|
+
const localVarPath = `/groups/{groupId}/posts`
|
|
10252
|
+
.replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
|
|
10253
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10254
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10255
|
+
let baseOptions;
|
|
10256
|
+
if (configuration) {
|
|
10257
|
+
baseOptions = configuration.baseOptions;
|
|
10258
|
+
}
|
|
10259
|
+
|
|
10260
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
10261
|
+
const localVarHeaderParameter = {} as any;
|
|
10262
|
+
const localVarQueryParameter = {} as any;
|
|
10263
|
+
|
|
10264
|
+
// authentication authCookie required
|
|
10265
|
+
|
|
10266
|
+
|
|
10267
|
+
|
|
10268
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10269
|
+
|
|
10270
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10271
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10272
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10273
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createGroupPostRequest, localVarRequestOptions, configuration)
|
|
10274
|
+
|
|
10275
|
+
return {
|
|
10276
|
+
url: toPathString(localVarUrlObj),
|
|
10277
|
+
options: localVarRequestOptions,
|
|
10278
|
+
};
|
|
10279
|
+
},
|
|
10102
10280
|
/**
|
|
10103
10281
|
* Bans a user from a Group.
|
|
10104
10282
|
* @summary Ban Group Member
|
|
@@ -10570,6 +10748,46 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
10570
10748
|
|
|
10571
10749
|
|
|
10572
10750
|
|
|
10751
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10752
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10753
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
10754
|
+
|
|
10755
|
+
return {
|
|
10756
|
+
url: toPathString(localVarUrlObj),
|
|
10757
|
+
options: localVarRequestOptions,
|
|
10758
|
+
};
|
|
10759
|
+
},
|
|
10760
|
+
/**
|
|
10761
|
+
* Delete a Group post
|
|
10762
|
+
* @summary Delete a Group post
|
|
10763
|
+
* @param {string} groupId Must be a valid group ID.
|
|
10764
|
+
* @param {string} notificationId Must be a valid notification ID.
|
|
10765
|
+
* @param {*} [options] Override http request option.
|
|
10766
|
+
* @throws {RequiredError}
|
|
10767
|
+
*/
|
|
10768
|
+
deleteGroupPost: async (groupId: string, notificationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
10769
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
10770
|
+
assertParamExists('deleteGroupPost', 'groupId', groupId)
|
|
10771
|
+
// verify required parameter 'notificationId' is not null or undefined
|
|
10772
|
+
assertParamExists('deleteGroupPost', 'notificationId', notificationId)
|
|
10773
|
+
const localVarPath = `/groups/{groupId}/posts/{notificationId}`
|
|
10774
|
+
.replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)))
|
|
10775
|
+
.replace(`{${"notificationId"}}`, encodeURIComponent(String(notificationId)));
|
|
10776
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10777
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10778
|
+
let baseOptions;
|
|
10779
|
+
if (configuration) {
|
|
10780
|
+
baseOptions = configuration.baseOptions;
|
|
10781
|
+
}
|
|
10782
|
+
|
|
10783
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
10784
|
+
const localVarHeaderParameter = {} as any;
|
|
10785
|
+
const localVarQueryParameter = {} as any;
|
|
10786
|
+
|
|
10787
|
+
// authentication authCookie required
|
|
10788
|
+
|
|
10789
|
+
|
|
10790
|
+
|
|
10573
10791
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10574
10792
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10575
10793
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -11057,6 +11275,57 @@ export const GroupsApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
11057
11275
|
|
|
11058
11276
|
|
|
11059
11277
|
|
|
11278
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11279
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11280
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
11281
|
+
|
|
11282
|
+
return {
|
|
11283
|
+
url: toPathString(localVarUrlObj),
|
|
11284
|
+
options: localVarRequestOptions,
|
|
11285
|
+
};
|
|
11286
|
+
},
|
|
11287
|
+
/**
|
|
11288
|
+
* Get posts from a Group
|
|
11289
|
+
* @summary Get posts from a Group
|
|
11290
|
+
* @param {string} groupId Must be a valid group ID.
|
|
11291
|
+
* @param {number} [n] The number of objects to return.
|
|
11292
|
+
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
11293
|
+
* @param {boolean} [publicOnly] See public posts only.
|
|
11294
|
+
* @param {*} [options] Override http request option.
|
|
11295
|
+
* @throws {RequiredError}
|
|
11296
|
+
*/
|
|
11297
|
+
getGroupPost: async (groupId: string, n?: number, offset?: number, publicOnly?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
11298
|
+
// verify required parameter 'groupId' is not null or undefined
|
|
11299
|
+
assertParamExists('getGroupPost', 'groupId', groupId)
|
|
11300
|
+
const localVarPath = `/groups/{groupId}/posts`
|
|
11301
|
+
.replace(`{${"groupId"}}`, encodeURIComponent(String(groupId)));
|
|
11302
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11303
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11304
|
+
let baseOptions;
|
|
11305
|
+
if (configuration) {
|
|
11306
|
+
baseOptions = configuration.baseOptions;
|
|
11307
|
+
}
|
|
11308
|
+
|
|
11309
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
11310
|
+
const localVarHeaderParameter = {} as any;
|
|
11311
|
+
const localVarQueryParameter = {} as any;
|
|
11312
|
+
|
|
11313
|
+
// authentication authCookie required
|
|
11314
|
+
|
|
11315
|
+
if (n !== undefined) {
|
|
11316
|
+
localVarQueryParameter['n'] = n;
|
|
11317
|
+
}
|
|
11318
|
+
|
|
11319
|
+
if (offset !== undefined) {
|
|
11320
|
+
localVarQueryParameter['offset'] = offset;
|
|
11321
|
+
}
|
|
11322
|
+
|
|
11323
|
+
if (publicOnly !== undefined) {
|
|
11324
|
+
localVarQueryParameter['publicOnly'] = publicOnly;
|
|
11325
|
+
}
|
|
11326
|
+
|
|
11327
|
+
|
|
11328
|
+
|
|
11060
11329
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11061
11330
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11062
11331
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -11643,6 +11912,18 @@ export const GroupsApiFp = function(configuration?: Configuration) {
|
|
|
11643
11912
|
const localVarAxiosArgs = await localVarAxiosParamCreator.addGroupMemberRole(groupId, userId, groupRoleId, options);
|
|
11644
11913
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11645
11914
|
},
|
|
11915
|
+
/**
|
|
11916
|
+
* Create a post in a Group.
|
|
11917
|
+
* @summary Create a post in a Group
|
|
11918
|
+
* @param {string} groupId Must be a valid group ID.
|
|
11919
|
+
* @param {CreateGroupPostRequest} createGroupPostRequest
|
|
11920
|
+
* @param {*} [options] Override http request option.
|
|
11921
|
+
* @throws {RequiredError}
|
|
11922
|
+
*/
|
|
11923
|
+
async addGroupPost(groupId: string, createGroupPostRequest: CreateGroupPostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupPost>> {
|
|
11924
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addGroupPost(groupId, createGroupPostRequest, options);
|
|
11925
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11926
|
+
},
|
|
11646
11927
|
/**
|
|
11647
11928
|
* Bans a user from a Group.
|
|
11648
11929
|
* @summary Ban Group Member
|
|
@@ -11784,6 +12065,18 @@ export const GroupsApiFp = function(configuration?: Configuration) {
|
|
|
11784
12065
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteGroupInvite(groupId, userId, options);
|
|
11785
12066
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11786
12067
|
},
|
|
12068
|
+
/**
|
|
12069
|
+
* Delete a Group post
|
|
12070
|
+
* @summary Delete a Group post
|
|
12071
|
+
* @param {string} groupId Must be a valid group ID.
|
|
12072
|
+
* @param {string} notificationId Must be a valid notification ID.
|
|
12073
|
+
* @param {*} [options] Override http request option.
|
|
12074
|
+
* @throws {RequiredError}
|
|
12075
|
+
*/
|
|
12076
|
+
async deleteGroupPost(groupId: string, notificationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Success>> {
|
|
12077
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteGroupPost(groupId, notificationId, options);
|
|
12078
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12079
|
+
},
|
|
11787
12080
|
/**
|
|
11788
12081
|
* Deletes a Group Role by ID and returns the remaining roles.
|
|
11789
12082
|
* @summary Delete Group Role
|
|
@@ -11923,6 +12216,20 @@ export const GroupsApiFp = function(configuration?: Configuration) {
|
|
|
11923
12216
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getGroupPermissions(groupId, options);
|
|
11924
12217
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11925
12218
|
},
|
|
12219
|
+
/**
|
|
12220
|
+
* Get posts from a Group
|
|
12221
|
+
* @summary Get posts from a Group
|
|
12222
|
+
* @param {string} groupId Must be a valid group ID.
|
|
12223
|
+
* @param {number} [n] The number of objects to return.
|
|
12224
|
+
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
12225
|
+
* @param {boolean} [publicOnly] See public posts only.
|
|
12226
|
+
* @param {*} [options] Override http request option.
|
|
12227
|
+
* @throws {RequiredError}
|
|
12228
|
+
*/
|
|
12229
|
+
async getGroupPost(groupId: string, n?: number, offset?: number, publicOnly?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupPost>> {
|
|
12230
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getGroupPost(groupId, n, offset, publicOnly, options);
|
|
12231
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
12232
|
+
},
|
|
11926
12233
|
/**
|
|
11927
12234
|
* Returns a list of members that have requested to join the Group.
|
|
11928
12235
|
* @summary Get Group Join Requests
|
|
@@ -12117,6 +12424,17 @@ export const GroupsApiFactory = function (configuration?: Configuration, basePat
|
|
|
12117
12424
|
addGroupMemberRole(groupId: string, userId: string, groupRoleId: string, options?: any): AxiosPromise<Array<string>> {
|
|
12118
12425
|
return localVarFp.addGroupMemberRole(groupId, userId, groupRoleId, options).then((request) => request(axios, basePath));
|
|
12119
12426
|
},
|
|
12427
|
+
/**
|
|
12428
|
+
* Create a post in a Group.
|
|
12429
|
+
* @summary Create a post in a Group
|
|
12430
|
+
* @param {string} groupId Must be a valid group ID.
|
|
12431
|
+
* @param {CreateGroupPostRequest} createGroupPostRequest
|
|
12432
|
+
* @param {*} [options] Override http request option.
|
|
12433
|
+
* @throws {RequiredError}
|
|
12434
|
+
*/
|
|
12435
|
+
addGroupPost(groupId: string, createGroupPostRequest: CreateGroupPostRequest, options?: any): AxiosPromise<GroupPost> {
|
|
12436
|
+
return localVarFp.addGroupPost(groupId, createGroupPostRequest, options).then((request) => request(axios, basePath));
|
|
12437
|
+
},
|
|
12120
12438
|
/**
|
|
12121
12439
|
* Bans a user from a Group.
|
|
12122
12440
|
* @summary Ban Group Member
|
|
@@ -12246,6 +12564,17 @@ export const GroupsApiFactory = function (configuration?: Configuration, basePat
|
|
|
12246
12564
|
deleteGroupInvite(groupId: string, userId: string, options?: any): AxiosPromise<void> {
|
|
12247
12565
|
return localVarFp.deleteGroupInvite(groupId, userId, options).then((request) => request(axios, basePath));
|
|
12248
12566
|
},
|
|
12567
|
+
/**
|
|
12568
|
+
* Delete a Group post
|
|
12569
|
+
* @summary Delete a Group post
|
|
12570
|
+
* @param {string} groupId Must be a valid group ID.
|
|
12571
|
+
* @param {string} notificationId Must be a valid notification ID.
|
|
12572
|
+
* @param {*} [options] Override http request option.
|
|
12573
|
+
* @throws {RequiredError}
|
|
12574
|
+
*/
|
|
12575
|
+
deleteGroupPost(groupId: string, notificationId: string, options?: any): AxiosPromise<Success> {
|
|
12576
|
+
return localVarFp.deleteGroupPost(groupId, notificationId, options).then((request) => request(axios, basePath));
|
|
12577
|
+
},
|
|
12249
12578
|
/**
|
|
12250
12579
|
* Deletes a Group Role by ID and returns the remaining roles.
|
|
12251
12580
|
* @summary Delete Group Role
|
|
@@ -12374,6 +12703,19 @@ export const GroupsApiFactory = function (configuration?: Configuration, basePat
|
|
|
12374
12703
|
getGroupPermissions(groupId: string, options?: any): AxiosPromise<Array<GroupPermission>> {
|
|
12375
12704
|
return localVarFp.getGroupPermissions(groupId, options).then((request) => request(axios, basePath));
|
|
12376
12705
|
},
|
|
12706
|
+
/**
|
|
12707
|
+
* Get posts from a Group
|
|
12708
|
+
* @summary Get posts from a Group
|
|
12709
|
+
* @param {string} groupId Must be a valid group ID.
|
|
12710
|
+
* @param {number} [n] The number of objects to return.
|
|
12711
|
+
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
12712
|
+
* @param {boolean} [publicOnly] See public posts only.
|
|
12713
|
+
* @param {*} [options] Override http request option.
|
|
12714
|
+
* @throws {RequiredError}
|
|
12715
|
+
*/
|
|
12716
|
+
getGroupPost(groupId: string, n?: number, offset?: number, publicOnly?: boolean, options?: any): AxiosPromise<GroupPost> {
|
|
12717
|
+
return localVarFp.getGroupPost(groupId, n, offset, publicOnly, options).then((request) => request(axios, basePath));
|
|
12718
|
+
},
|
|
12377
12719
|
/**
|
|
12378
12720
|
* Returns a list of members that have requested to join the Group.
|
|
12379
12721
|
* @summary Get Group Join Requests
|
|
@@ -12559,6 +12901,19 @@ export class GroupsApi extends BaseAPI {
|
|
|
12559
12901
|
return GroupsApiFp(this.configuration).addGroupMemberRole(groupId, userId, groupRoleId, options).then((request) => request(this.axios, this.basePath));
|
|
12560
12902
|
}
|
|
12561
12903
|
|
|
12904
|
+
/**
|
|
12905
|
+
* Create a post in a Group.
|
|
12906
|
+
* @summary Create a post in a Group
|
|
12907
|
+
* @param {string} groupId Must be a valid group ID.
|
|
12908
|
+
* @param {CreateGroupPostRequest} createGroupPostRequest
|
|
12909
|
+
* @param {*} [options] Override http request option.
|
|
12910
|
+
* @throws {RequiredError}
|
|
12911
|
+
* @memberof GroupsApi
|
|
12912
|
+
*/
|
|
12913
|
+
public addGroupPost(groupId: string, createGroupPostRequest: CreateGroupPostRequest, options?: AxiosRequestConfig) {
|
|
12914
|
+
return GroupsApiFp(this.configuration).addGroupPost(groupId, createGroupPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12915
|
+
}
|
|
12916
|
+
|
|
12562
12917
|
/**
|
|
12563
12918
|
* Bans a user from a Group.
|
|
12564
12919
|
* @summary Ban Group Member
|
|
@@ -12712,6 +13067,19 @@ export class GroupsApi extends BaseAPI {
|
|
|
12712
13067
|
return GroupsApiFp(this.configuration).deleteGroupInvite(groupId, userId, options).then((request) => request(this.axios, this.basePath));
|
|
12713
13068
|
}
|
|
12714
13069
|
|
|
13070
|
+
/**
|
|
13071
|
+
* Delete a Group post
|
|
13072
|
+
* @summary Delete a Group post
|
|
13073
|
+
* @param {string} groupId Must be a valid group ID.
|
|
13074
|
+
* @param {string} notificationId Must be a valid notification ID.
|
|
13075
|
+
* @param {*} [options] Override http request option.
|
|
13076
|
+
* @throws {RequiredError}
|
|
13077
|
+
* @memberof GroupsApi
|
|
13078
|
+
*/
|
|
13079
|
+
public deleteGroupPost(groupId: string, notificationId: string, options?: AxiosRequestConfig) {
|
|
13080
|
+
return GroupsApiFp(this.configuration).deleteGroupPost(groupId, notificationId, options).then((request) => request(this.axios, this.basePath));
|
|
13081
|
+
}
|
|
13082
|
+
|
|
12715
13083
|
/**
|
|
12716
13084
|
* Deletes a Group Role by ID and returns the remaining roles.
|
|
12717
13085
|
* @summary Delete Group Role
|
|
@@ -12862,6 +13230,21 @@ export class GroupsApi extends BaseAPI {
|
|
|
12862
13230
|
return GroupsApiFp(this.configuration).getGroupPermissions(groupId, options).then((request) => request(this.axios, this.basePath));
|
|
12863
13231
|
}
|
|
12864
13232
|
|
|
13233
|
+
/**
|
|
13234
|
+
* Get posts from a Group
|
|
13235
|
+
* @summary Get posts from a Group
|
|
13236
|
+
* @param {string} groupId Must be a valid group ID.
|
|
13237
|
+
* @param {number} [n] The number of objects to return.
|
|
13238
|
+
* @param {number} [offset] A zero-based offset from the default object sorting from where search results start.
|
|
13239
|
+
* @param {boolean} [publicOnly] See public posts only.
|
|
13240
|
+
* @param {*} [options] Override http request option.
|
|
13241
|
+
* @throws {RequiredError}
|
|
13242
|
+
* @memberof GroupsApi
|
|
13243
|
+
*/
|
|
13244
|
+
public getGroupPost(groupId: string, n?: number, offset?: number, publicOnly?: boolean, options?: AxiosRequestConfig) {
|
|
13245
|
+
return GroupsApiFp(this.configuration).getGroupPost(groupId, n, offset, publicOnly, options).then((request) => request(this.axios, this.basePath));
|
|
13246
|
+
}
|
|
13247
|
+
|
|
12865
13248
|
/**
|
|
12866
13249
|
* Returns a list of members that have requested to join the Group.
|
|
12867
13250
|
* @summary Get Group Join Requests
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* VRChat API Documentation
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 1.17.
|
|
6
|
+
* The version of the OpenAPI document: 1.17.2
|
|
7
7
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
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.17.
|
|
6
|
+
* The version of the OpenAPI document: 1.17.2
|
|
7
7
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* VRChat API Documentation
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 1.17.
|
|
6
|
+
* The version of the OpenAPI document: 1.17.2
|
|
7
7
|
* Contact: vrchatapi.lpv0t@aries.fyi
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|