vrchat 1.7.3 → 1.7.5
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 +42 -43
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +40 -38
- package/dist/api.js +12 -18
- 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.7.
|
|
6
|
+
* The version of the OpenAPI document: 1.7.5
|
|
7
7
|
* Contact: me@ariesclark.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2017,7 +2017,13 @@ export interface Instance {
|
|
|
2017
2017
|
* @type {string}
|
|
2018
2018
|
* @memberof Instance
|
|
2019
2019
|
*/
|
|
2020
|
-
'
|
|
2020
|
+
'secureName': string;
|
|
2021
|
+
/**
|
|
2022
|
+
*
|
|
2023
|
+
* @type {string}
|
|
2024
|
+
* @memberof Instance
|
|
2025
|
+
*/
|
|
2026
|
+
'shortName'?: string;
|
|
2021
2027
|
/**
|
|
2022
2028
|
* The tags array on Instances usually contain the language tags of the people in the instance.
|
|
2023
2029
|
* @type {Array<string>}
|
|
@@ -2074,6 +2080,25 @@ export interface InstancePlatforms {
|
|
|
2074
2080
|
*/
|
|
2075
2081
|
'standalonewindows': number;
|
|
2076
2082
|
}
|
|
2083
|
+
/**
|
|
2084
|
+
*
|
|
2085
|
+
* @export
|
|
2086
|
+
* @interface InstanceShortNameResponse
|
|
2087
|
+
*/
|
|
2088
|
+
export interface InstanceShortNameResponse {
|
|
2089
|
+
/**
|
|
2090
|
+
*
|
|
2091
|
+
* @type {string}
|
|
2092
|
+
* @memberof InstanceShortNameResponse
|
|
2093
|
+
*/
|
|
2094
|
+
'secureName': string;
|
|
2095
|
+
/**
|
|
2096
|
+
*
|
|
2097
|
+
* @type {string}
|
|
2098
|
+
* @memberof InstanceShortNameResponse
|
|
2099
|
+
*/
|
|
2100
|
+
'shortName'?: string;
|
|
2101
|
+
}
|
|
2077
2102
|
/**
|
|
2078
2103
|
*
|
|
2079
2104
|
* @export
|
|
@@ -2149,19 +2174,6 @@ export enum InviteMessageType {
|
|
|
2149
2174
|
RequestResponse = 'requestResponse'
|
|
2150
2175
|
}
|
|
2151
2176
|
|
|
2152
|
-
/**
|
|
2153
|
-
*
|
|
2154
|
-
* @export
|
|
2155
|
-
* @interface InviteMyselfToRequest
|
|
2156
|
-
*/
|
|
2157
|
-
export interface InviteMyselfToRequest {
|
|
2158
|
-
/**
|
|
2159
|
-
* Short Name of the Instance; can be retrieved from the Get Instance Short Name endpoint.
|
|
2160
|
-
* @type {string}
|
|
2161
|
-
* @memberof InviteMyselfToRequest
|
|
2162
|
-
*/
|
|
2163
|
-
'shortName': string;
|
|
2164
|
-
}
|
|
2165
2177
|
/**
|
|
2166
2178
|
*
|
|
2167
2179
|
* @export
|
|
@@ -3953,12 +3965,6 @@ export interface VerifyAuthTokenResult {
|
|
|
3953
3965
|
* @interface World
|
|
3954
3966
|
*/
|
|
3955
3967
|
export interface World {
|
|
3956
|
-
/**
|
|
3957
|
-
* Empty if unauthenticated.
|
|
3958
|
-
* @type {string}
|
|
3959
|
-
* @memberof World
|
|
3960
|
-
*/
|
|
3961
|
-
'assetUrl': string;
|
|
3962
3968
|
/**
|
|
3963
3969
|
* 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.
|
|
3964
3970
|
* @type {string}
|
|
@@ -4021,10 +4027,10 @@ export interface World {
|
|
|
4021
4027
|
'imageUrl': string;
|
|
4022
4028
|
/**
|
|
4023
4029
|
*
|
|
4024
|
-
* @type {Array<Array<
|
|
4030
|
+
* @type {Array<Array<object>>}
|
|
4025
4031
|
* @memberof World
|
|
4026
4032
|
*/
|
|
4027
|
-
'instances'?: Array<Array<
|
|
4033
|
+
'instances'?: Array<Array<object>>;
|
|
4028
4034
|
/**
|
|
4029
4035
|
*
|
|
4030
4036
|
* @type {string}
|
|
@@ -4258,7 +4264,7 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf
|
|
|
4258
4264
|
};
|
|
4259
4265
|
},
|
|
4260
4266
|
/**
|
|
4261
|
-
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
4267
|
+
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. The auth string after `Authorization: Basic {string}` is a base64-encoded string of the username and password, both individually url-encoded, and then joined with a colon. > base64(urlencode(username):urlencode(password)) **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
4262
4268
|
* @summary Login and/or Get Current User Info
|
|
4263
4269
|
* @param {*} [options] Override http request option.
|
|
4264
4270
|
* @throws {RequiredError}
|
|
@@ -4467,7 +4473,7 @@ export const AuthenticationApiFp = function(configuration?: Configuration) {
|
|
|
4467
4473
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4468
4474
|
},
|
|
4469
4475
|
/**
|
|
4470
|
-
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
4476
|
+
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. The auth string after `Authorization: Basic {string}` is a base64-encoded string of the username and password, both individually url-encoded, and then joined with a colon. > base64(urlencode(username):urlencode(password)) **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
4471
4477
|
* @summary Login and/or Get Current User Info
|
|
4472
4478
|
* @param {*} [options] Override http request option.
|
|
4473
4479
|
* @throws {RequiredError}
|
|
@@ -4552,7 +4558,7 @@ export const AuthenticationApiFactory = function (configuration?: Configuration,
|
|
|
4552
4558
|
return localVarFp.deleteUser(userId, options).then((request) => request(axios, basePath));
|
|
4553
4559
|
},
|
|
4554
4560
|
/**
|
|
4555
|
-
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
4561
|
+
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. The auth string after `Authorization: Basic {string}` is a base64-encoded string of the username and password, both individually url-encoded, and then joined with a colon. > base64(urlencode(username):urlencode(password)) **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
4556
4562
|
* @summary Login and/or Get Current User Info
|
|
4557
4563
|
* @param {*} [options] Override http request option.
|
|
4558
4564
|
* @throws {RequiredError}
|
|
@@ -4636,7 +4642,7 @@ export class AuthenticationApi extends BaseAPI {
|
|
|
4636
4642
|
}
|
|
4637
4643
|
|
|
4638
4644
|
/**
|
|
4639
|
-
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
4645
|
+
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. The auth string after `Authorization: Basic {string}` is a base64-encoded string of the username and password, both individually url-encoded, and then joined with a colon. > base64(urlencode(username):urlencode(password)) **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
4640
4646
|
* @summary Login and/or Get Current User Info
|
|
4641
4647
|
* @param {*} [options] Override http request option.
|
|
4642
4648
|
* @throws {RequiredError}
|
|
@@ -8046,7 +8052,7 @@ export const InstancesApiFp = function(configuration?: Configuration) {
|
|
|
8046
8052
|
* @param {*} [options] Override http request option.
|
|
8047
8053
|
* @throws {RequiredError}
|
|
8048
8054
|
*/
|
|
8049
|
-
async getShortName(worldId: string, instanceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
8055
|
+
async getShortName(worldId: string, instanceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InstanceShortNameResponse>> {
|
|
8050
8056
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getShortName(worldId, instanceId, options);
|
|
8051
8057
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
8052
8058
|
},
|
|
@@ -8101,7 +8107,7 @@ export const InstancesApiFactory = function (configuration?: Configuration, base
|
|
|
8101
8107
|
* @param {*} [options] Override http request option.
|
|
8102
8108
|
* @throws {RequiredError}
|
|
8103
8109
|
*/
|
|
8104
|
-
getShortName(worldId: string, instanceId: string, options?: any): AxiosPromise<
|
|
8110
|
+
getShortName(worldId: string, instanceId: string, options?: any): AxiosPromise<InstanceShortNameResponse> {
|
|
8105
8111
|
return localVarFp.getShortName(worldId, instanceId, options).then((request) => request(axios, basePath));
|
|
8106
8112
|
},
|
|
8107
8113
|
/**
|
|
@@ -8277,11 +8283,10 @@ export const InviteApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
8277
8283
|
* @summary Invite Myself To Instance
|
|
8278
8284
|
* @param {string} worldId
|
|
8279
8285
|
* @param {string} instanceId
|
|
8280
|
-
* @param {InviteMyselfToRequest} [inviteMyselfToRequest]
|
|
8281
8286
|
* @param {*} [options] Override http request option.
|
|
8282
8287
|
* @throws {RequiredError}
|
|
8283
8288
|
*/
|
|
8284
|
-
inviteMyselfTo: async (worldId: string, instanceId: string,
|
|
8289
|
+
inviteMyselfTo: async (worldId: string, instanceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8285
8290
|
// verify required parameter 'worldId' is not null or undefined
|
|
8286
8291
|
assertParamExists('inviteMyselfTo', 'worldId', worldId)
|
|
8287
8292
|
// verify required parameter 'instanceId' is not null or undefined
|
|
@@ -8306,12 +8311,9 @@ export const InviteApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
8306
8311
|
|
|
8307
8312
|
|
|
8308
8313
|
|
|
8309
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8310
|
-
|
|
8311
8314
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8312
8315
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8313
8316
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8314
|
-
localVarRequestOptions.data = serializeDataIfNeeded(inviteMyselfToRequest, localVarRequestOptions, configuration)
|
|
8315
8317
|
|
|
8316
8318
|
return {
|
|
8317
8319
|
url: toPathString(localVarUrlObj),
|
|
@@ -8580,12 +8582,11 @@ export const InviteApiFp = function(configuration?: Configuration) {
|
|
|
8580
8582
|
* @summary Invite Myself To Instance
|
|
8581
8583
|
* @param {string} worldId
|
|
8582
8584
|
* @param {string} instanceId
|
|
8583
|
-
* @param {InviteMyselfToRequest} [inviteMyselfToRequest]
|
|
8584
8585
|
* @param {*} [options] Override http request option.
|
|
8585
8586
|
* @throws {RequiredError}
|
|
8586
8587
|
*/
|
|
8587
|
-
async inviteMyselfTo(worldId: string, instanceId: string,
|
|
8588
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteMyselfTo(worldId, instanceId,
|
|
8588
|
+
async inviteMyselfTo(worldId: string, instanceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SentNotification>> {
|
|
8589
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteMyselfTo(worldId, instanceId, options);
|
|
8589
8590
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
8590
8591
|
},
|
|
8591
8592
|
/**
|
|
@@ -8689,12 +8690,11 @@ export const InviteApiFactory = function (configuration?: Configuration, basePat
|
|
|
8689
8690
|
* @summary Invite Myself To Instance
|
|
8690
8691
|
* @param {string} worldId
|
|
8691
8692
|
* @param {string} instanceId
|
|
8692
|
-
* @param {InviteMyselfToRequest} [inviteMyselfToRequest]
|
|
8693
8693
|
* @param {*} [options] Override http request option.
|
|
8694
8694
|
* @throws {RequiredError}
|
|
8695
8695
|
*/
|
|
8696
|
-
inviteMyselfTo(worldId: string, instanceId: string,
|
|
8697
|
-
return localVarFp.inviteMyselfTo(worldId, instanceId,
|
|
8696
|
+
inviteMyselfTo(worldId: string, instanceId: string, options?: any): AxiosPromise<SentNotification> {
|
|
8697
|
+
return localVarFp.inviteMyselfTo(worldId, instanceId, options).then((request) => request(axios, basePath));
|
|
8698
8698
|
},
|
|
8699
8699
|
/**
|
|
8700
8700
|
* Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
|
@@ -8796,13 +8796,12 @@ export class InviteApi extends BaseAPI {
|
|
|
8796
8796
|
* @summary Invite Myself To Instance
|
|
8797
8797
|
* @param {string} worldId
|
|
8798
8798
|
* @param {string} instanceId
|
|
8799
|
-
* @param {InviteMyselfToRequest} [inviteMyselfToRequest]
|
|
8800
8799
|
* @param {*} [options] Override http request option.
|
|
8801
8800
|
* @throws {RequiredError}
|
|
8802
8801
|
* @memberof InviteApi
|
|
8803
8802
|
*/
|
|
8804
|
-
public inviteMyselfTo(worldId: string, instanceId: string,
|
|
8805
|
-
return InviteApiFp(this.configuration).inviteMyselfTo(worldId, instanceId,
|
|
8803
|
+
public inviteMyselfTo(worldId: string, instanceId: string, options?: AxiosRequestConfig) {
|
|
8804
|
+
return InviteApiFp(this.configuration).inviteMyselfTo(worldId, instanceId, options).then((request) => request(this.axios, this.basePath));
|
|
8806
8805
|
}
|
|
8807
8806
|
|
|
8808
8807
|
/**
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
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.7.
|
|
4
|
+
* The version of the OpenAPI document: 1.7.5
|
|
5
5
|
* Contact: me@ariesclark.com
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1993,7 +1993,13 @@ export interface Instance {
|
|
|
1993
1993
|
* @type {string}
|
|
1994
1994
|
* @memberof Instance
|
|
1995
1995
|
*/
|
|
1996
|
-
'
|
|
1996
|
+
'secureName': string;
|
|
1997
|
+
/**
|
|
1998
|
+
*
|
|
1999
|
+
* @type {string}
|
|
2000
|
+
* @memberof Instance
|
|
2001
|
+
*/
|
|
2002
|
+
'shortName'?: string;
|
|
1997
2003
|
/**
|
|
1998
2004
|
* The tags array on Instances usually contain the language tags of the people in the instance.
|
|
1999
2005
|
* @type {Array<string>}
|
|
@@ -2050,6 +2056,25 @@ export interface InstancePlatforms {
|
|
|
2050
2056
|
*/
|
|
2051
2057
|
'standalonewindows': number;
|
|
2052
2058
|
}
|
|
2059
|
+
/**
|
|
2060
|
+
*
|
|
2061
|
+
* @export
|
|
2062
|
+
* @interface InstanceShortNameResponse
|
|
2063
|
+
*/
|
|
2064
|
+
export interface InstanceShortNameResponse {
|
|
2065
|
+
/**
|
|
2066
|
+
*
|
|
2067
|
+
* @type {string}
|
|
2068
|
+
* @memberof InstanceShortNameResponse
|
|
2069
|
+
*/
|
|
2070
|
+
'secureName': string;
|
|
2071
|
+
/**
|
|
2072
|
+
*
|
|
2073
|
+
* @type {string}
|
|
2074
|
+
* @memberof InstanceShortNameResponse
|
|
2075
|
+
*/
|
|
2076
|
+
'shortName'?: string;
|
|
2077
|
+
}
|
|
2053
2078
|
/**
|
|
2054
2079
|
*
|
|
2055
2080
|
* @export
|
|
@@ -2121,19 +2146,6 @@ export declare enum InviteMessageType {
|
|
|
2121
2146
|
Request = "request",
|
|
2122
2147
|
RequestResponse = "requestResponse"
|
|
2123
2148
|
}
|
|
2124
|
-
/**
|
|
2125
|
-
*
|
|
2126
|
-
* @export
|
|
2127
|
-
* @interface InviteMyselfToRequest
|
|
2128
|
-
*/
|
|
2129
|
-
export interface InviteMyselfToRequest {
|
|
2130
|
-
/**
|
|
2131
|
-
* Short Name of the Instance; can be retrieved from the Get Instance Short Name endpoint.
|
|
2132
|
-
* @type {string}
|
|
2133
|
-
* @memberof InviteMyselfToRequest
|
|
2134
|
-
*/
|
|
2135
|
-
'shortName': string;
|
|
2136
|
-
}
|
|
2137
2149
|
/**
|
|
2138
2150
|
*
|
|
2139
2151
|
* @export
|
|
@@ -3903,12 +3915,6 @@ export interface VerifyAuthTokenResult {
|
|
|
3903
3915
|
* @interface World
|
|
3904
3916
|
*/
|
|
3905
3917
|
export interface World {
|
|
3906
|
-
/**
|
|
3907
|
-
* Empty if unauthenticated.
|
|
3908
|
-
* @type {string}
|
|
3909
|
-
* @memberof World
|
|
3910
|
-
*/
|
|
3911
|
-
'assetUrl': string;
|
|
3912
3918
|
/**
|
|
3913
3919
|
* 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.
|
|
3914
3920
|
* @type {string}
|
|
@@ -3971,10 +3977,10 @@ export interface World {
|
|
|
3971
3977
|
'imageUrl': string;
|
|
3972
3978
|
/**
|
|
3973
3979
|
*
|
|
3974
|
-
* @type {Array<Array<
|
|
3980
|
+
* @type {Array<Array<object>>}
|
|
3975
3981
|
* @memberof World
|
|
3976
3982
|
*/
|
|
3977
|
-
'instances'?: Array<Array<
|
|
3983
|
+
'instances'?: Array<Array<object>>;
|
|
3978
3984
|
/**
|
|
3979
3985
|
*
|
|
3980
3986
|
* @type {string}
|
|
@@ -4135,7 +4141,7 @@ export declare const AuthenticationApiAxiosParamCreator: (configuration?: Config
|
|
|
4135
4141
|
*/
|
|
4136
4142
|
deleteUser: (userId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4137
4143
|
/**
|
|
4138
|
-
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
4144
|
+
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. The auth string after `Authorization: Basic {string}` is a base64-encoded string of the username and password, both individually url-encoded, and then joined with a colon. > base64(urlencode(username):urlencode(password)) **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
4139
4145
|
* @summary Login and/or Get Current User Info
|
|
4140
4146
|
* @param {*} [options] Override http request option.
|
|
4141
4147
|
* @throws {RequiredError}
|
|
@@ -4197,7 +4203,7 @@ export declare const AuthenticationApiFp: (configuration?: Configuration) => {
|
|
|
4197
4203
|
*/
|
|
4198
4204
|
deleteUser(userId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CurrentUser>>;
|
|
4199
4205
|
/**
|
|
4200
|
-
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
4206
|
+
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. The auth string after `Authorization: Basic {string}` is a base64-encoded string of the username and password, both individually url-encoded, and then joined with a colon. > base64(urlencode(username):urlencode(password)) **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
4201
4207
|
* @summary Login and/or Get Current User Info
|
|
4202
4208
|
* @param {*} [options] Override http request option.
|
|
4203
4209
|
* @throws {RequiredError}
|
|
@@ -4259,7 +4265,7 @@ export declare const AuthenticationApiFactory: (configuration?: Configuration, b
|
|
|
4259
4265
|
*/
|
|
4260
4266
|
deleteUser(userId: string, options?: any): AxiosPromise<CurrentUser>;
|
|
4261
4267
|
/**
|
|
4262
|
-
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
4268
|
+
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. The auth string after `Authorization: Basic {string}` is a base64-encoded string of the username and password, both individually url-encoded, and then joined with a colon. > base64(urlencode(username):urlencode(password)) **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
4263
4269
|
* @summary Login and/or Get Current User Info
|
|
4264
4270
|
* @param {*} [options] Override http request option.
|
|
4265
4271
|
* @throws {RequiredError}
|
|
@@ -4325,7 +4331,7 @@ export declare class AuthenticationApi extends BaseAPI {
|
|
|
4325
4331
|
*/
|
|
4326
4332
|
deleteUser(userId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CurrentUser>>;
|
|
4327
4333
|
/**
|
|
4328
|
-
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
4334
|
+
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. The auth string after `Authorization: Basic {string}` is a base64-encoded string of the username and password, both individually url-encoded, and then joined with a colon. > base64(urlencode(username):urlencode(password)) **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
4329
4335
|
* @summary Login and/or Get Current User Info
|
|
4330
4336
|
* @param {*} [options] Override http request option.
|
|
4331
4337
|
* @throws {RequiredError}
|
|
@@ -5960,7 +5966,7 @@ export declare const InstancesApiFp: (configuration?: Configuration) => {
|
|
|
5960
5966
|
* @param {*} [options] Override http request option.
|
|
5961
5967
|
* @throws {RequiredError}
|
|
5962
5968
|
*/
|
|
5963
|
-
getShortName(worldId: string, instanceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
5969
|
+
getShortName(worldId: string, instanceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InstanceShortNameResponse>>;
|
|
5964
5970
|
/**
|
|
5965
5971
|
* Sends an invite to the instance to yourself.
|
|
5966
5972
|
* @summary Send Self Invite
|
|
@@ -6001,7 +6007,7 @@ export declare const InstancesApiFactory: (configuration?: Configuration, basePa
|
|
|
6001
6007
|
* @param {*} [options] Override http request option.
|
|
6002
6008
|
* @throws {RequiredError}
|
|
6003
6009
|
*/
|
|
6004
|
-
getShortName(worldId: string, instanceId: string, options?: any): AxiosPromise<
|
|
6010
|
+
getShortName(worldId: string, instanceId: string, options?: any): AxiosPromise<InstanceShortNameResponse>;
|
|
6005
6011
|
/**
|
|
6006
6012
|
* Sends an invite to the instance to yourself.
|
|
6007
6013
|
* @summary Send Self Invite
|
|
@@ -6047,7 +6053,7 @@ export declare class InstancesApi extends BaseAPI {
|
|
|
6047
6053
|
* @throws {RequiredError}
|
|
6048
6054
|
* @memberof InstancesApi
|
|
6049
6055
|
*/
|
|
6050
|
-
getShortName(worldId: string, instanceId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
6056
|
+
getShortName(worldId: string, instanceId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InstanceShortNameResponse>>;
|
|
6051
6057
|
/**
|
|
6052
6058
|
* Sends an invite to the instance to yourself.
|
|
6053
6059
|
* @summary Send Self Invite
|
|
@@ -6088,11 +6094,10 @@ export declare const InviteApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
6088
6094
|
* @summary Invite Myself To Instance
|
|
6089
6095
|
* @param {string} worldId
|
|
6090
6096
|
* @param {string} instanceId
|
|
6091
|
-
* @param {InviteMyselfToRequest} [inviteMyselfToRequest]
|
|
6092
6097
|
* @param {*} [options] Override http request option.
|
|
6093
6098
|
* @throws {RequiredError}
|
|
6094
6099
|
*/
|
|
6095
|
-
inviteMyselfTo: (worldId: string, instanceId: string,
|
|
6100
|
+
inviteMyselfTo: (worldId: string, instanceId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
6096
6101
|
/**
|
|
6097
6102
|
* Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
|
6098
6103
|
* @summary Invite User
|
|
@@ -6171,11 +6176,10 @@ export declare const InviteApiFp: (configuration?: Configuration) => {
|
|
|
6171
6176
|
* @summary Invite Myself To Instance
|
|
6172
6177
|
* @param {string} worldId
|
|
6173
6178
|
* @param {string} instanceId
|
|
6174
|
-
* @param {InviteMyselfToRequest} [inviteMyselfToRequest]
|
|
6175
6179
|
* @param {*} [options] Override http request option.
|
|
6176
6180
|
* @throws {RequiredError}
|
|
6177
6181
|
*/
|
|
6178
|
-
inviteMyselfTo(worldId: string, instanceId: string,
|
|
6182
|
+
inviteMyselfTo(worldId: string, instanceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SentNotification>>;
|
|
6179
6183
|
/**
|
|
6180
6184
|
* Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
|
6181
6185
|
* @summary Invite User
|
|
@@ -6254,11 +6258,10 @@ export declare const InviteApiFactory: (configuration?: Configuration, basePath?
|
|
|
6254
6258
|
* @summary Invite Myself To Instance
|
|
6255
6259
|
* @param {string} worldId
|
|
6256
6260
|
* @param {string} instanceId
|
|
6257
|
-
* @param {InviteMyselfToRequest} [inviteMyselfToRequest]
|
|
6258
6261
|
* @param {*} [options] Override http request option.
|
|
6259
6262
|
* @throws {RequiredError}
|
|
6260
6263
|
*/
|
|
6261
|
-
inviteMyselfTo(worldId: string, instanceId: string,
|
|
6264
|
+
inviteMyselfTo(worldId: string, instanceId: string, options?: any): AxiosPromise<SentNotification>;
|
|
6262
6265
|
/**
|
|
6263
6266
|
* Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
|
6264
6267
|
* @summary Invite User
|
|
@@ -6341,12 +6344,11 @@ export declare class InviteApi extends BaseAPI {
|
|
|
6341
6344
|
* @summary Invite Myself To Instance
|
|
6342
6345
|
* @param {string} worldId
|
|
6343
6346
|
* @param {string} instanceId
|
|
6344
|
-
* @param {InviteMyselfToRequest} [inviteMyselfToRequest]
|
|
6345
6347
|
* @param {*} [options] Override http request option.
|
|
6346
6348
|
* @throws {RequiredError}
|
|
6347
6349
|
* @memberof InviteApi
|
|
6348
6350
|
*/
|
|
6349
|
-
inviteMyselfTo(worldId: string, instanceId: string,
|
|
6351
|
+
inviteMyselfTo(worldId: string, instanceId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SentNotification>>;
|
|
6350
6352
|
/**
|
|
6351
6353
|
* Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
|
6352
6354
|
* @summary Invite User
|
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.7.
|
|
7
|
+
* The version of the OpenAPI document: 1.7.5
|
|
8
8
|
* Contact: me@ariesclark.com
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -424,7 +424,7 @@ exports.AuthenticationApiAxiosParamCreator = function (configuration) {
|
|
|
424
424
|
});
|
|
425
425
|
},
|
|
426
426
|
/**
|
|
427
|
-
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
427
|
+
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. The auth string after `Authorization: Basic {string}` is a base64-encoded string of the username and password, both individually url-encoded, and then joined with a colon. > base64(urlencode(username):urlencode(password)) **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
428
428
|
* @summary Login and/or Get Current User Info
|
|
429
429
|
* @param {*} [options] Override http request option.
|
|
430
430
|
* @throws {RequiredError}
|
|
@@ -636,7 +636,7 @@ exports.AuthenticationApiFp = function (configuration) {
|
|
|
636
636
|
});
|
|
637
637
|
},
|
|
638
638
|
/**
|
|
639
|
-
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
639
|
+
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. The auth string after `Authorization: Basic {string}` is a base64-encoded string of the username and password, both individually url-encoded, and then joined with a colon. > base64(urlencode(username):urlencode(password)) **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
640
640
|
* @summary Login and/or Get Current User Info
|
|
641
641
|
* @param {*} [options] Override http request option.
|
|
642
642
|
* @throws {RequiredError}
|
|
@@ -765,7 +765,7 @@ exports.AuthenticationApiFactory = function (configuration, basePath, axios) {
|
|
|
765
765
|
return localVarFp.deleteUser(userId, options).then(function (request) { return request(axios, basePath); });
|
|
766
766
|
},
|
|
767
767
|
/**
|
|
768
|
-
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
768
|
+
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. The auth string after `Authorization: Basic {string}` is a base64-encoded string of the username and password, both individually url-encoded, and then joined with a colon. > base64(urlencode(username):urlencode(password)) **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
769
769
|
* @summary Login and/or Get Current User Info
|
|
770
770
|
* @param {*} [options] Override http request option.
|
|
771
771
|
* @throws {RequiredError}
|
|
@@ -852,7 +852,7 @@ var AuthenticationApi = /** @class */ (function (_super) {
|
|
|
852
852
|
return exports.AuthenticationApiFp(this.configuration).deleteUser(userId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
853
853
|
};
|
|
854
854
|
/**
|
|
855
|
-
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
855
|
+
* This endpoint does the following two operations: 1) Checks if you are already logged in by looking for a valid `auth` cookie. If you are have a valid auth cookie then no additional auth-related actions are taken. If you are **not** logged in then it will log you in with the `Authorization` header and set the `auth` cookie. The `auth` cookie will only be sent once. 2) If logged in, this function will also return the CurrentUser object containing detailed information about the currently logged in user. The auth string after `Authorization: Basic {string}` is a base64-encoded string of the username and password, both individually url-encoded, and then joined with a colon. > base64(urlencode(username):urlencode(password)) **WARNING: Session Limit:** Each authentication with login credentials counts as a separate session, out of which you have a limited amount. Make sure to save and reuse the `auth` cookie if you are often restarting the program. The provided API libraries automatically save cookies during runtime, but does not persist during restart. While it can be fine to use username/password during development, expect in production to very fast run into the rate-limit and be temporarily blocked from making new sessions until older ones expire. The exact number of simultaneous sessions is unknown/undisclosed.
|
|
856
856
|
* @summary Login and/or Get Current User Info
|
|
857
857
|
* @param {*} [options] Override http request option.
|
|
858
858
|
* @throws {RequiredError}
|
|
@@ -4699,11 +4699,10 @@ exports.InviteApiAxiosParamCreator = function (configuration) {
|
|
|
4699
4699
|
* @summary Invite Myself To Instance
|
|
4700
4700
|
* @param {string} worldId
|
|
4701
4701
|
* @param {string} instanceId
|
|
4702
|
-
* @param {InviteMyselfToRequest} [inviteMyselfToRequest]
|
|
4703
4702
|
* @param {*} [options] Override http request option.
|
|
4704
4703
|
* @throws {RequiredError}
|
|
4705
4704
|
*/
|
|
4706
|
-
inviteMyselfTo: function (worldId, instanceId,
|
|
4705
|
+
inviteMyselfTo: function (worldId, instanceId, options) {
|
|
4707
4706
|
if (options === void 0) { options = {}; }
|
|
4708
4707
|
return __awaiter(_this, void 0, void 0, function () {
|
|
4709
4708
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -4724,11 +4723,9 @@ exports.InviteApiAxiosParamCreator = function (configuration) {
|
|
|
4724
4723
|
localVarQueryParameter = {};
|
|
4725
4724
|
// authentication apiKeyCookie required
|
|
4726
4725
|
// authentication authCookie required
|
|
4727
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4728
4726
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4729
4727
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4730
4728
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4731
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(inviteMyselfToRequest, localVarRequestOptions, configuration);
|
|
4732
4729
|
return [2 /*return*/, {
|
|
4733
4730
|
url: common_1.toPathString(localVarUrlObj),
|
|
4734
4731
|
options: localVarRequestOptions,
|
|
@@ -4996,16 +4993,15 @@ exports.InviteApiFp = function (configuration) {
|
|
|
4996
4993
|
* @summary Invite Myself To Instance
|
|
4997
4994
|
* @param {string} worldId
|
|
4998
4995
|
* @param {string} instanceId
|
|
4999
|
-
* @param {InviteMyselfToRequest} [inviteMyselfToRequest]
|
|
5000
4996
|
* @param {*} [options] Override http request option.
|
|
5001
4997
|
* @throws {RequiredError}
|
|
5002
4998
|
*/
|
|
5003
|
-
inviteMyselfTo: function (worldId, instanceId,
|
|
4999
|
+
inviteMyselfTo: function (worldId, instanceId, options) {
|
|
5004
5000
|
return __awaiter(this, void 0, void 0, function () {
|
|
5005
5001
|
var localVarAxiosArgs;
|
|
5006
5002
|
return __generator(this, function (_a) {
|
|
5007
5003
|
switch (_a.label) {
|
|
5008
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteMyselfTo(worldId, instanceId,
|
|
5004
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteMyselfTo(worldId, instanceId, options)];
|
|
5009
5005
|
case 1:
|
|
5010
5006
|
localVarAxiosArgs = _a.sent();
|
|
5011
5007
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -5158,12 +5154,11 @@ exports.InviteApiFactory = function (configuration, basePath, axios) {
|
|
|
5158
5154
|
* @summary Invite Myself To Instance
|
|
5159
5155
|
* @param {string} worldId
|
|
5160
5156
|
* @param {string} instanceId
|
|
5161
|
-
* @param {InviteMyselfToRequest} [inviteMyselfToRequest]
|
|
5162
5157
|
* @param {*} [options] Override http request option.
|
|
5163
5158
|
* @throws {RequiredError}
|
|
5164
5159
|
*/
|
|
5165
|
-
inviteMyselfTo: function (worldId, instanceId,
|
|
5166
|
-
return localVarFp.inviteMyselfTo(worldId, instanceId,
|
|
5160
|
+
inviteMyselfTo: function (worldId, instanceId, options) {
|
|
5161
|
+
return localVarFp.inviteMyselfTo(worldId, instanceId, options).then(function (request) { return request(axios, basePath); });
|
|
5167
5162
|
},
|
|
5168
5163
|
/**
|
|
5169
5164
|
* Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
|
@@ -5268,14 +5263,13 @@ var InviteApi = /** @class */ (function (_super) {
|
|
|
5268
5263
|
* @summary Invite Myself To Instance
|
|
5269
5264
|
* @param {string} worldId
|
|
5270
5265
|
* @param {string} instanceId
|
|
5271
|
-
* @param {InviteMyselfToRequest} [inviteMyselfToRequest]
|
|
5272
5266
|
* @param {*} [options] Override http request option.
|
|
5273
5267
|
* @throws {RequiredError}
|
|
5274
5268
|
* @memberof InviteApi
|
|
5275
5269
|
*/
|
|
5276
|
-
InviteApi.prototype.inviteMyselfTo = function (worldId, instanceId,
|
|
5270
|
+
InviteApi.prototype.inviteMyselfTo = function (worldId, instanceId, options) {
|
|
5277
5271
|
var _this = this;
|
|
5278
|
-
return exports.InviteApiFp(this.configuration).inviteMyselfTo(worldId, instanceId,
|
|
5272
|
+
return exports.InviteApiFp(this.configuration).inviteMyselfTo(worldId, instanceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5279
5273
|
};
|
|
5280
5274
|
/**
|
|
5281
5275
|
* Sends an invite to a user. Returns the Notification of type `invite` that was sent.
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/index.ts
CHANGED