vrchat 1.16.8 → 1.17.0

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 CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * VRChat API Documentation
5
5
  *
6
- * The version of the OpenAPI document: 1.16.8
6
+ * The version of the OpenAPI document: 1.17.0
7
7
  * Contact: vrchatapi.lpv0t@aries.fyi
8
8
  *
9
9
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2319,6 +2319,21 @@ export interface Group {
2319
2319
  */
2320
2320
  'roles'?: Array<GroupRole> | null;
2321
2321
  }
2322
+ /**
2323
+ * Group access type when the instance type is \"group\"
2324
+ * @export
2325
+ * @enum {string}
2326
+ */
2327
+
2328
+ export const GroupAccessType = {
2329
+ Public: 'public',
2330
+ Plus: 'plus',
2331
+ Member: 'member'
2332
+ } as const;
2333
+
2334
+ export type GroupAccessType = typeof GroupAccessType[keyof typeof GroupAccessType];
2335
+
2336
+
2322
2337
  /**
2323
2338
  *
2324
2339
  * @export
@@ -3394,11 +3409,11 @@ export interface Instance {
3394
3409
  */
3395
3410
  'name': string;
3396
3411
  /**
3397
- * 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.
3412
+ * A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise
3398
3413
  * @type {string}
3399
3414
  * @memberof Instance
3400
3415
  */
3401
- 'ownerId'?: string;
3416
+ 'ownerId'?: string | null;
3402
3417
  /**
3403
3418
  *
3404
3419
  * @type {boolean}
@@ -3434,7 +3449,7 @@ export interface Instance {
3434
3449
  * @type {string}
3435
3450
  * @memberof Instance
3436
3451
  */
3437
- 'shortName'?: string;
3452
+ 'shortName'?: string | null;
3438
3453
  /**
3439
3454
  * The tags array on Instances usually contain the language tags of the people in the instance.
3440
3455
  * @type {Array<string>}
@@ -3494,7 +3509,7 @@ export interface Instance {
3494
3509
  * @type {boolean}
3495
3510
  * @memberof Instance
3496
3511
  */
3497
- 'roleRestricted': boolean;
3512
+ 'roleRestricted'?: boolean;
3498
3513
  /**
3499
3514
  *
3500
3515
  * @type {boolean}
@@ -3519,6 +3534,36 @@ export interface Instance {
3519
3534
  * @memberof Instance
3520
3535
  */
3521
3536
  'users'?: Array<LimitedUser>;
3537
+ /**
3538
+ *
3539
+ * @type {GroupAccessType}
3540
+ * @memberof Instance
3541
+ */
3542
+ 'groupAccessType'?: GroupAccessType;
3543
+ /**
3544
+ *
3545
+ * @type {boolean}
3546
+ * @memberof Instance
3547
+ */
3548
+ 'hasCapacityForYou'?: boolean;
3549
+ /**
3550
+ *
3551
+ * @type {string}
3552
+ * @memberof Instance
3553
+ */
3554
+ 'nonce'?: string;
3555
+ /**
3556
+ *
3557
+ * @type {string}
3558
+ * @memberof Instance
3559
+ */
3560
+ 'closedAt'?: string | null;
3561
+ /**
3562
+ *
3563
+ * @type {boolean}
3564
+ * @memberof Instance
3565
+ */
3566
+ 'hardClose'?: boolean | null;
3522
3567
  }
3523
3568
  /**
3524
3569
  *
@@ -12898,6 +12943,51 @@ export class GroupsApi extends BaseAPI {
12898
12943
  */
12899
12944
  export const InstancesApiAxiosParamCreator = function (configuration?: Configuration) {
12900
12945
  return {
12946
+ /**
12947
+ * Close an instance. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
12948
+ * @summary Close Instance
12949
+ * @param {string} worldId Must be a valid world ID.
12950
+ * @param {string} instanceId Must be a valid instance ID.
12951
+ * @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
12952
+ * @param {*} [options] Override http request option.
12953
+ * @throws {RequiredError}
12954
+ */
12955
+ closeInstance: async (worldId: string, instanceId: string, hardClose?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
12956
+ // verify required parameter 'worldId' is not null or undefined
12957
+ assertParamExists('closeInstance', 'worldId', worldId)
12958
+ // verify required parameter 'instanceId' is not null or undefined
12959
+ assertParamExists('closeInstance', 'instanceId', instanceId)
12960
+ const localVarPath = `/instances/{worldId}:{instanceId}`
12961
+ .replace(`{${"worldId"}}`, encodeURIComponent(String(worldId)))
12962
+ .replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
12963
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12964
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12965
+ let baseOptions;
12966
+ if (configuration) {
12967
+ baseOptions = configuration.baseOptions;
12968
+ }
12969
+
12970
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
12971
+ const localVarHeaderParameter = {} as any;
12972
+ const localVarQueryParameter = {} as any;
12973
+
12974
+ // authentication authCookie required
12975
+
12976
+ if (hardClose !== undefined) {
12977
+ localVarQueryParameter['hardClose'] = hardClose;
12978
+ }
12979
+
12980
+
12981
+
12982
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12983
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12984
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12985
+
12986
+ return {
12987
+ url: toPathString(localVarUrlObj),
12988
+ options: localVarRequestOptions,
12989
+ };
12990
+ },
12901
12991
  /**
12902
12992
  * Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances. If an invalid instanceId is provided, this endpoint will simply return \"null\"!
12903
12993
  * @summary Get Instance
@@ -13064,6 +13154,19 @@ export const InstancesApiAxiosParamCreator = function (configuration?: Configura
13064
13154
  export const InstancesApiFp = function(configuration?: Configuration) {
13065
13155
  const localVarAxiosParamCreator = InstancesApiAxiosParamCreator(configuration)
13066
13156
  return {
13157
+ /**
13158
+ * Close an instance. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
13159
+ * @summary Close Instance
13160
+ * @param {string} worldId Must be a valid world ID.
13161
+ * @param {string} instanceId Must be a valid instance ID.
13162
+ * @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
13163
+ * @param {*} [options] Override http request option.
13164
+ * @throws {RequiredError}
13165
+ */
13166
+ async closeInstance(worldId: string, instanceId: string, hardClose?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Instance>> {
13167
+ const localVarAxiosArgs = await localVarAxiosParamCreator.closeInstance(worldId, instanceId, hardClose, options);
13168
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
13169
+ },
13067
13170
  /**
13068
13171
  * Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances. If an invalid instanceId is provided, this endpoint will simply return \"null\"!
13069
13172
  * @summary Get Instance
@@ -13121,6 +13224,18 @@ export const InstancesApiFp = function(configuration?: Configuration) {
13121
13224
  export const InstancesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
13122
13225
  const localVarFp = InstancesApiFp(configuration)
13123
13226
  return {
13227
+ /**
13228
+ * Close an instance. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
13229
+ * @summary Close Instance
13230
+ * @param {string} worldId Must be a valid world ID.
13231
+ * @param {string} instanceId Must be a valid instance ID.
13232
+ * @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
13233
+ * @param {*} [options] Override http request option.
13234
+ * @throws {RequiredError}
13235
+ */
13236
+ closeInstance(worldId: string, instanceId: string, hardClose?: boolean, options?: any): AxiosPromise<Instance> {
13237
+ return localVarFp.closeInstance(worldId, instanceId, hardClose, options).then((request) => request(axios, basePath));
13238
+ },
13124
13239
  /**
13125
13240
  * Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances. If an invalid instanceId is provided, this endpoint will simply return \"null\"!
13126
13241
  * @summary Get Instance
@@ -13174,6 +13289,20 @@ export const InstancesApiFactory = function (configuration?: Configuration, base
13174
13289
  * @extends {BaseAPI}
13175
13290
  */
13176
13291
  export class InstancesApi extends BaseAPI {
13292
+ /**
13293
+ * Close an instance. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
13294
+ * @summary Close Instance
13295
+ * @param {string} worldId Must be a valid world ID.
13296
+ * @param {string} instanceId Must be a valid instance ID.
13297
+ * @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
13298
+ * @param {*} [options] Override http request option.
13299
+ * @throws {RequiredError}
13300
+ * @memberof InstancesApi
13301
+ */
13302
+ public closeInstance(worldId: string, instanceId: string, hardClose?: boolean, options?: AxiosRequestConfig) {
13303
+ return InstancesApiFp(this.configuration).closeInstance(worldId, instanceId, hardClose, options).then((request) => request(this.axios, this.basePath));
13304
+ }
13305
+
13177
13306
  /**
13178
13307
  * Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances. If an invalid instanceId is provided, this endpoint will simply return \"null\"!
13179
13308
  * @summary Get Instance
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.16.8
6
+ * The version of the OpenAPI document: 1.17.0
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.16.8
6
+ * The version of the OpenAPI document: 1.17.0
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.16.8
6
+ * The version of the OpenAPI document: 1.17.0
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/dist/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * VRChat API Documentation
3
3
  *
4
- * The version of the OpenAPI document: 1.16.8
4
+ * The version of the OpenAPI document: 1.17.0
5
5
  * Contact: vrchatapi.lpv0t@aries.fyi
6
6
  *
7
7
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2286,6 +2286,17 @@ export interface Group {
2286
2286
  */
2287
2287
  'roles'?: Array<GroupRole> | null;
2288
2288
  }
2289
+ /**
2290
+ * Group access type when the instance type is \"group\"
2291
+ * @export
2292
+ * @enum {string}
2293
+ */
2294
+ export declare const GroupAccessType: {
2295
+ readonly Public: "public";
2296
+ readonly Plus: "plus";
2297
+ readonly Member: "member";
2298
+ };
2299
+ export type GroupAccessType = typeof GroupAccessType[keyof typeof GroupAccessType];
2289
2300
  /**
2290
2301
  *
2291
2302
  * @export
@@ -3330,11 +3341,11 @@ export interface Instance {
3330
3341
  */
3331
3342
  'name': string;
3332
3343
  /**
3333
- * 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.
3344
+ * A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise
3334
3345
  * @type {string}
3335
3346
  * @memberof Instance
3336
3347
  */
3337
- 'ownerId'?: string;
3348
+ 'ownerId'?: string | null;
3338
3349
  /**
3339
3350
  *
3340
3351
  * @type {boolean}
@@ -3370,7 +3381,7 @@ export interface Instance {
3370
3381
  * @type {string}
3371
3382
  * @memberof Instance
3372
3383
  */
3373
- 'shortName'?: string;
3384
+ 'shortName'?: string | null;
3374
3385
  /**
3375
3386
  * The tags array on Instances usually contain the language tags of the people in the instance.
3376
3387
  * @type {Array<string>}
@@ -3430,7 +3441,7 @@ export interface Instance {
3430
3441
  * @type {boolean}
3431
3442
  * @memberof Instance
3432
3443
  */
3433
- 'roleRestricted': boolean;
3444
+ 'roleRestricted'?: boolean;
3434
3445
  /**
3435
3446
  *
3436
3447
  * @type {boolean}
@@ -3455,6 +3466,36 @@ export interface Instance {
3455
3466
  * @memberof Instance
3456
3467
  */
3457
3468
  'users'?: Array<LimitedUser>;
3469
+ /**
3470
+ *
3471
+ * @type {GroupAccessType}
3472
+ * @memberof Instance
3473
+ */
3474
+ 'groupAccessType'?: GroupAccessType;
3475
+ /**
3476
+ *
3477
+ * @type {boolean}
3478
+ * @memberof Instance
3479
+ */
3480
+ 'hasCapacityForYou'?: boolean;
3481
+ /**
3482
+ *
3483
+ * @type {string}
3484
+ * @memberof Instance
3485
+ */
3486
+ 'nonce'?: string;
3487
+ /**
3488
+ *
3489
+ * @type {string}
3490
+ * @memberof Instance
3491
+ */
3492
+ 'closedAt'?: string | null;
3493
+ /**
3494
+ *
3495
+ * @type {boolean}
3496
+ * @memberof Instance
3497
+ */
3498
+ 'hardClose'?: boolean | null;
3458
3499
  }
3459
3500
  /**
3460
3501
  *
@@ -9349,6 +9390,16 @@ export declare class GroupsApi extends BaseAPI {
9349
9390
  * @export
9350
9391
  */
9351
9392
  export declare const InstancesApiAxiosParamCreator: (configuration?: Configuration) => {
9393
+ /**
9394
+ * Close an instance. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
9395
+ * @summary Close Instance
9396
+ * @param {string} worldId Must be a valid world ID.
9397
+ * @param {string} instanceId Must be a valid instance ID.
9398
+ * @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
9399
+ * @param {*} [options] Override http request option.
9400
+ * @throws {RequiredError}
9401
+ */
9402
+ closeInstance: (worldId: string, instanceId: string, hardClose?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
9352
9403
  /**
9353
9404
  * Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances. If an invalid instanceId is provided, this endpoint will simply return \"null\"!
9354
9405
  * @summary Get Instance
@@ -9390,6 +9441,16 @@ export declare const InstancesApiAxiosParamCreator: (configuration?: Configurati
9390
9441
  * @export
9391
9442
  */
9392
9443
  export declare const InstancesApiFp: (configuration?: Configuration) => {
9444
+ /**
9445
+ * Close an instance. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
9446
+ * @summary Close Instance
9447
+ * @param {string} worldId Must be a valid world ID.
9448
+ * @param {string} instanceId Must be a valid instance ID.
9449
+ * @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
9450
+ * @param {*} [options] Override http request option.
9451
+ * @throws {RequiredError}
9452
+ */
9453
+ closeInstance(worldId: string, instanceId: string, hardClose?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Instance>>;
9393
9454
  /**
9394
9455
  * Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances. If an invalid instanceId is provided, this endpoint will simply return \"null\"!
9395
9456
  * @summary Get Instance
@@ -9431,6 +9492,16 @@ export declare const InstancesApiFp: (configuration?: Configuration) => {
9431
9492
  * @export
9432
9493
  */
9433
9494
  export declare const InstancesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
9495
+ /**
9496
+ * Close an instance. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
9497
+ * @summary Close Instance
9498
+ * @param {string} worldId Must be a valid world ID.
9499
+ * @param {string} instanceId Must be a valid instance ID.
9500
+ * @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
9501
+ * @param {*} [options] Override http request option.
9502
+ * @throws {RequiredError}
9503
+ */
9504
+ closeInstance(worldId: string, instanceId: string, hardClose?: boolean, options?: any): AxiosPromise<Instance>;
9434
9505
  /**
9435
9506
  * Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances. If an invalid instanceId is provided, this endpoint will simply return \"null\"!
9436
9507
  * @summary Get Instance
@@ -9474,6 +9545,17 @@ export declare const InstancesApiFactory: (configuration?: Configuration, basePa
9474
9545
  * @extends {BaseAPI}
9475
9546
  */
9476
9547
  export declare class InstancesApi extends BaseAPI {
9548
+ /**
9549
+ * Close an instance. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
9550
+ * @summary Close Instance
9551
+ * @param {string} worldId Must be a valid world ID.
9552
+ * @param {string} instanceId Must be a valid instance ID.
9553
+ * @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
9554
+ * @param {*} [options] Override http request option.
9555
+ * @throws {RequiredError}
9556
+ * @memberof InstancesApi
9557
+ */
9558
+ closeInstance(worldId: string, instanceId: string, hardClose?: boolean, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Instance, any>>;
9477
9559
  /**
9478
9560
  * Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances. If an invalid instanceId is provided, this endpoint will simply return \"null\"!
9479
9561
  * @summary Get Instance
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * VRChat API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.16.8
7
+ * The version of the OpenAPI document: 1.17.0
8
8
  * Contact: vrchatapi.lpv0t@aries.fyi
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -74,8 +74,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  }
75
75
  };
76
76
  Object.defineProperty(exports, "__esModule", { value: true });
77
- exports.FriendsApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.FavoritesApi = exports.FavoritesApiFactory = exports.FavoritesApiFp = exports.FavoritesApiAxiosParamCreator = exports.EconomyApi = exports.EconomyApiFactory = exports.EconomyApiFp = exports.EconomyApiAxiosParamCreator = exports.AvatarsApi = exports.AvatarsApiFactory = exports.AvatarsApiFp = exports.AvatarsApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.UserStatus = exports.UserState = exports.TransactionStatus = exports.SubscriptionPeriod = exports.SortOption = exports.ReleaseStatus = exports.Region = exports.PlayerModerationType = exports.OrderOption = exports.NotificationType = exports.MIMEType = exports.LicenseType = exports.LicenseAction = exports.InviteMessageType = exports.InstanceType = exports.InfoPushDataClickableCommandEnum = exports.GroupUserVisibility = exports.GroupSearchSort = exports.GroupRoleTemplate = exports.GroupPrivacy = exports.GroupMemberStatus = exports.GroupJoinState = exports.GroupJoinRequestAction = exports.FileStatus = exports.FileDataCategoryEnum = exports.FavoriteType = exports.FavoriteGroupVisibility = exports.DeveloperType = exports.DeploymentGroup = void 0;
78
- exports.WorldsApi = exports.WorldsApiFactory = exports.WorldsApiFp = exports.WorldsApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.PlayermoderationApi = exports.PlayermoderationApiFactory = exports.PlayermoderationApiFp = exports.PlayermoderationApiAxiosParamCreator = exports.PermissionsApi = exports.PermissionsApiFactory = exports.PermissionsApiFp = exports.PermissionsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.InviteApi = exports.InviteApiFactory = exports.InviteApiFp = exports.InviteApiAxiosParamCreator = exports.InstancesApi = exports.InstancesApiFactory = exports.InstancesApiFp = exports.InstancesApiAxiosParamCreator = exports.GroupsApi = exports.GroupsApiFactory = exports.GroupsApiFp = exports.GroupsApiAxiosParamCreator = exports.FriendsApi = exports.FriendsApiFactory = exports.FriendsApiFp = void 0;
77
+ exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.FavoritesApi = exports.FavoritesApiFactory = exports.FavoritesApiFp = exports.FavoritesApiAxiosParamCreator = exports.EconomyApi = exports.EconomyApiFactory = exports.EconomyApiFp = exports.EconomyApiAxiosParamCreator = exports.AvatarsApi = exports.AvatarsApiFactory = exports.AvatarsApiFp = exports.AvatarsApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.UserStatus = exports.UserState = exports.TransactionStatus = exports.SubscriptionPeriod = exports.SortOption = exports.ReleaseStatus = exports.Region = exports.PlayerModerationType = exports.OrderOption = exports.NotificationType = exports.MIMEType = exports.LicenseType = exports.LicenseAction = exports.InviteMessageType = exports.InstanceType = exports.InfoPushDataClickableCommandEnum = exports.GroupUserVisibility = exports.GroupSearchSort = exports.GroupRoleTemplate = exports.GroupPrivacy = exports.GroupMemberStatus = exports.GroupJoinState = exports.GroupJoinRequestAction = exports.GroupAccessType = exports.FileStatus = exports.FileDataCategoryEnum = exports.FavoriteType = exports.FavoriteGroupVisibility = exports.DeveloperType = exports.DeploymentGroup = void 0;
78
+ exports.WorldsApi = exports.WorldsApiFactory = exports.WorldsApiFp = exports.WorldsApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.PlayermoderationApi = exports.PlayermoderationApiFactory = exports.PlayermoderationApiFp = exports.PlayermoderationApiAxiosParamCreator = exports.PermissionsApi = exports.PermissionsApiFactory = exports.PermissionsApiFp = exports.PermissionsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.InviteApi = exports.InviteApiFactory = exports.InviteApiFp = exports.InviteApiAxiosParamCreator = exports.InstancesApi = exports.InstancesApiFactory = exports.InstancesApiFp = exports.InstancesApiAxiosParamCreator = exports.GroupsApi = exports.GroupsApiFactory = exports.GroupsApiFp = exports.GroupsApiAxiosParamCreator = exports.FriendsApi = exports.FriendsApiFactory = exports.FriendsApiFp = exports.FriendsApiAxiosParamCreator = void 0;
79
79
  var axios_1 = require("axios");
80
80
  // Some imports not used depending on template conditions
81
81
  // @ts-ignore
@@ -145,6 +145,16 @@ exports.FileStatus = {
145
145
  None: 'none',
146
146
  Queued: 'queued'
147
147
  };
148
+ /**
149
+ * Group access type when the instance type is \"group\"
150
+ * @export
151
+ * @enum {string}
152
+ */
153
+ exports.GroupAccessType = {
154
+ Public: 'public',
155
+ Plus: 'plus',
156
+ Member: 'member'
157
+ };
148
158
  /**
149
159
  *
150
160
  * @export
@@ -7659,6 +7669,48 @@ exports.GroupsApi = GroupsApi;
7659
7669
  var InstancesApiAxiosParamCreator = function (configuration) {
7660
7670
  var _this = this;
7661
7671
  return {
7672
+ /**
7673
+ * Close an instance. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
7674
+ * @summary Close Instance
7675
+ * @param {string} worldId Must be a valid world ID.
7676
+ * @param {string} instanceId Must be a valid instance ID.
7677
+ * @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
7678
+ * @param {*} [options] Override http request option.
7679
+ * @throws {RequiredError}
7680
+ */
7681
+ closeInstance: function (worldId, instanceId, hardClose, options) {
7682
+ if (options === void 0) { options = {}; }
7683
+ return __awaiter(_this, void 0, void 0, function () {
7684
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
7685
+ return __generator(this, function (_a) {
7686
+ // verify required parameter 'worldId' is not null or undefined
7687
+ (0, common_1.assertParamExists)('closeInstance', 'worldId', worldId);
7688
+ // verify required parameter 'instanceId' is not null or undefined
7689
+ (0, common_1.assertParamExists)('closeInstance', 'instanceId', instanceId);
7690
+ localVarPath = "/instances/{worldId}:{instanceId}"
7691
+ .replace("{".concat("worldId", "}"), encodeURIComponent(String(worldId)))
7692
+ .replace("{".concat("instanceId", "}"), encodeURIComponent(String(instanceId)));
7693
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7694
+ if (configuration) {
7695
+ baseOptions = configuration.baseOptions;
7696
+ }
7697
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
7698
+ localVarHeaderParameter = {};
7699
+ localVarQueryParameter = {};
7700
+ // authentication authCookie required
7701
+ if (hardClose !== undefined) {
7702
+ localVarQueryParameter['hardClose'] = hardClose;
7703
+ }
7704
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7705
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7706
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7707
+ return [2 /*return*/, {
7708
+ url: (0, common_1.toPathString)(localVarUrlObj),
7709
+ options: localVarRequestOptions,
7710
+ }];
7711
+ });
7712
+ });
7713
+ },
7662
7714
  /**
7663
7715
  * Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances. If an invalid instanceId is provided, this endpoint will simply return \"null\"!
7664
7716
  * @summary Get Instance
@@ -7817,6 +7869,28 @@ exports.InstancesApiAxiosParamCreator = InstancesApiAxiosParamCreator;
7817
7869
  var InstancesApiFp = function (configuration) {
7818
7870
  var localVarAxiosParamCreator = (0, exports.InstancesApiAxiosParamCreator)(configuration);
7819
7871
  return {
7872
+ /**
7873
+ * Close an instance. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
7874
+ * @summary Close Instance
7875
+ * @param {string} worldId Must be a valid world ID.
7876
+ * @param {string} instanceId Must be a valid instance ID.
7877
+ * @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
7878
+ * @param {*} [options] Override http request option.
7879
+ * @throws {RequiredError}
7880
+ */
7881
+ closeInstance: function (worldId, instanceId, hardClose, options) {
7882
+ return __awaiter(this, void 0, void 0, function () {
7883
+ var localVarAxiosArgs;
7884
+ return __generator(this, function (_a) {
7885
+ switch (_a.label) {
7886
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.closeInstance(worldId, instanceId, hardClose, options)];
7887
+ case 1:
7888
+ localVarAxiosArgs = _a.sent();
7889
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
7890
+ }
7891
+ });
7892
+ });
7893
+ },
7820
7894
  /**
7821
7895
  * Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances. If an invalid instanceId is provided, this endpoint will simply return \"null\"!
7822
7896
  * @summary Get Instance
@@ -7910,6 +7984,18 @@ exports.InstancesApiFp = InstancesApiFp;
7910
7984
  var InstancesApiFactory = function (configuration, basePath, axios) {
7911
7985
  var localVarFp = (0, exports.InstancesApiFp)(configuration);
7912
7986
  return {
7987
+ /**
7988
+ * Close an instance. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
7989
+ * @summary Close Instance
7990
+ * @param {string} worldId Must be a valid world ID.
7991
+ * @param {string} instanceId Must be a valid instance ID.
7992
+ * @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
7993
+ * @param {*} [options] Override http request option.
7994
+ * @throws {RequiredError}
7995
+ */
7996
+ closeInstance: function (worldId, instanceId, hardClose, options) {
7997
+ return localVarFp.closeInstance(worldId, instanceId, hardClose, options).then(function (request) { return request(axios, basePath); });
7998
+ },
7913
7999
  /**
7914
8000
  * Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances. If an invalid instanceId is provided, this endpoint will simply return \"null\"!
7915
8001
  * @summary Get Instance
@@ -7967,6 +8053,20 @@ var InstancesApi = /** @class */ (function (_super) {
7967
8053
  function InstancesApi() {
7968
8054
  return _super !== null && _super.apply(this, arguments) || this;
7969
8055
  }
8056
+ /**
8057
+ * Close an instance. You can only close an instance if the ownerId is yourself or if the instance owner is a group and you have the `group-instance-moderate` permission.
8058
+ * @summary Close Instance
8059
+ * @param {string} worldId Must be a valid world ID.
8060
+ * @param {string} instanceId Must be a valid instance ID.
8061
+ * @param {boolean} [hardClose] Whether to hard close the instance. Defaults to false.
8062
+ * @param {*} [options] Override http request option.
8063
+ * @throws {RequiredError}
8064
+ * @memberof InstancesApi
8065
+ */
8066
+ InstancesApi.prototype.closeInstance = function (worldId, instanceId, hardClose, options) {
8067
+ var _this = this;
8068
+ return (0, exports.InstancesApiFp)(this.configuration).closeInstance(worldId, instanceId, hardClose, options).then(function (request) { return request(_this.axios, _this.basePath); });
8069
+ };
7970
8070
  /**
7971
8071
  * Returns an instance. Please read [Instances Tutorial](https://vrchatapi.github.io/tutorials/instances/) for more information on Instances. If an invalid instanceId is provided, this endpoint will simply return \"null\"!
7972
8072
  * @summary Get Instance
package/dist/base.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * VRChat API Documentation
3
3
  *
4
- * The version of the OpenAPI document: 1.16.8
4
+ * The version of the OpenAPI document: 1.17.0
5
5
  * Contact: vrchatapi.lpv0t@aries.fyi
6
6
  *
7
7
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * VRChat API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.16.8
7
+ * The version of the OpenAPI document: 1.17.0
8
8
  * Contact: vrchatapi.lpv0t@aries.fyi
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * VRChat API Documentation
3
3
  *
4
- * The version of the OpenAPI document: 1.16.8
4
+ * The version of the OpenAPI document: 1.17.0
5
5
  * Contact: vrchatapi.lpv0t@aries.fyi
6
6
  *
7
7
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * VRChat API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.16.8
7
+ * The version of the OpenAPI document: 1.17.0
8
8
  * Contact: vrchatapi.lpv0t@aries.fyi
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * VRChat API Documentation
3
3
  *
4
- * The version of the OpenAPI document: 1.16.8
4
+ * The version of the OpenAPI document: 1.17.0
5
5
  * Contact: vrchatapi.lpv0t@aries.fyi
6
6
  *
7
7
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * VRChat API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.16.8
7
+ * The version of the OpenAPI document: 1.17.0
8
8
  * Contact: vrchatapi.lpv0t@aries.fyi
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * VRChat API Documentation
3
3
  *
4
- * The version of the OpenAPI document: 1.16.8
4
+ * The version of the OpenAPI document: 1.17.0
5
5
  * Contact: vrchatapi.lpv0t@aries.fyi
6
6
  *
7
7
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * VRChat API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.16.8
7
+ * The version of the OpenAPI document: 1.17.0
8
8
  * Contact: vrchatapi.lpv0t@aries.fyi
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * VRChat API Documentation
5
5
  *
6
- * The version of the OpenAPI document: 1.16.8
6
+ * The version of the OpenAPI document: 1.17.0
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vrchat",
3
- "version": "1.16.8",
3
+ "version": "1.17.0",
4
4
  "description": "🟡🔵 VRChat API Library for JavaScript and TypeScript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {