vrchat 1.5.0 → 1.5.1
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 +374 -69
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +215 -48
- package/dist/api.js +367 -68
- 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/generate.sh +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.5.
|
|
6
|
+
* The version of the OpenAPI document: 1.5.1
|
|
7
7
|
* Contact: me@ruby.js.org
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1705,6 +1705,19 @@ export interface FriendStatus {
|
|
|
1705
1705
|
*/
|
|
1706
1706
|
'outgoingRequest': boolean;
|
|
1707
1707
|
}
|
|
1708
|
+
/**
|
|
1709
|
+
*
|
|
1710
|
+
* @export
|
|
1711
|
+
* @interface InlineResponse404
|
|
1712
|
+
*/
|
|
1713
|
+
export interface InlineResponse404 {
|
|
1714
|
+
/**
|
|
1715
|
+
*
|
|
1716
|
+
* @type {Error}
|
|
1717
|
+
* @memberof InlineResponse404
|
|
1718
|
+
*/
|
|
1719
|
+
'error': Error;
|
|
1720
|
+
}
|
|
1708
1721
|
/**
|
|
1709
1722
|
*
|
|
1710
1723
|
* @export
|
|
@@ -2719,6 +2732,19 @@ export interface UpdateFavoriteGroupRequest {
|
|
|
2719
2732
|
*/
|
|
2720
2733
|
'tags'?: Array<string>;
|
|
2721
2734
|
}
|
|
2735
|
+
/**
|
|
2736
|
+
*
|
|
2737
|
+
* @export
|
|
2738
|
+
* @interface UpdateInviteMessageRequest
|
|
2739
|
+
*/
|
|
2740
|
+
export interface UpdateInviteMessageRequest {
|
|
2741
|
+
/**
|
|
2742
|
+
*
|
|
2743
|
+
* @type {string}
|
|
2744
|
+
* @memberof UpdateInviteMessageRequest
|
|
2745
|
+
*/
|
|
2746
|
+
'message': string;
|
|
2747
|
+
}
|
|
2722
2748
|
/**
|
|
2723
2749
|
*
|
|
2724
2750
|
* @export
|
|
@@ -6613,6 +6639,278 @@ export class FriendsApi extends BaseAPI {
|
|
|
6613
6639
|
}
|
|
6614
6640
|
|
|
6615
6641
|
|
|
6642
|
+
/**
|
|
6643
|
+
* InstancesApi - axios parameter creator
|
|
6644
|
+
* @export
|
|
6645
|
+
*/
|
|
6646
|
+
export const InstancesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
6647
|
+
return {
|
|
6648
|
+
/**
|
|
6649
|
+
* Returns an instance.
|
|
6650
|
+
* @summary Get Instance
|
|
6651
|
+
* @param {string} worldId
|
|
6652
|
+
* @param {string} instanceId
|
|
6653
|
+
* @param {*} [options] Override http request option.
|
|
6654
|
+
* @throws {RequiredError}
|
|
6655
|
+
*/
|
|
6656
|
+
getInstance: async (worldId: string, instanceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6657
|
+
// verify required parameter 'worldId' is not null or undefined
|
|
6658
|
+
assertParamExists('getInstance', 'worldId', worldId)
|
|
6659
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
6660
|
+
assertParamExists('getInstance', 'instanceId', instanceId)
|
|
6661
|
+
const localVarPath = `/instances/{worldId}:{instanceId}`
|
|
6662
|
+
.replace(`{${"worldId"}}`, encodeURIComponent(String(worldId)))
|
|
6663
|
+
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
6664
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6665
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6666
|
+
let baseOptions;
|
|
6667
|
+
if (configuration) {
|
|
6668
|
+
baseOptions = configuration.baseOptions;
|
|
6669
|
+
}
|
|
6670
|
+
|
|
6671
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
6672
|
+
const localVarHeaderParameter = {} as any;
|
|
6673
|
+
const localVarQueryParameter = {} as any;
|
|
6674
|
+
|
|
6675
|
+
// authentication apiKeyCookie required
|
|
6676
|
+
|
|
6677
|
+
// authentication authCookie required
|
|
6678
|
+
|
|
6679
|
+
|
|
6680
|
+
|
|
6681
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6682
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6683
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6684
|
+
|
|
6685
|
+
return {
|
|
6686
|
+
url: toPathString(localVarUrlObj),
|
|
6687
|
+
options: localVarRequestOptions,
|
|
6688
|
+
};
|
|
6689
|
+
},
|
|
6690
|
+
/**
|
|
6691
|
+
* Returns an instance short name.
|
|
6692
|
+
* @summary Get Instance Short Name
|
|
6693
|
+
* @param {string} worldId
|
|
6694
|
+
* @param {string} instanceId
|
|
6695
|
+
* @param {*} [options] Override http request option.
|
|
6696
|
+
* @throws {RequiredError}
|
|
6697
|
+
*/
|
|
6698
|
+
getShortName: async (worldId: string, instanceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6699
|
+
// verify required parameter 'worldId' is not null or undefined
|
|
6700
|
+
assertParamExists('getShortName', 'worldId', worldId)
|
|
6701
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
6702
|
+
assertParamExists('getShortName', 'instanceId', instanceId)
|
|
6703
|
+
const localVarPath = `/instances/{worldId}:{instanceId}/shortName`
|
|
6704
|
+
.replace(`{${"worldId"}}`, encodeURIComponent(String(worldId)))
|
|
6705
|
+
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
6706
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6707
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6708
|
+
let baseOptions;
|
|
6709
|
+
if (configuration) {
|
|
6710
|
+
baseOptions = configuration.baseOptions;
|
|
6711
|
+
}
|
|
6712
|
+
|
|
6713
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
6714
|
+
const localVarHeaderParameter = {} as any;
|
|
6715
|
+
const localVarQueryParameter = {} as any;
|
|
6716
|
+
|
|
6717
|
+
// authentication apiKeyCookie required
|
|
6718
|
+
|
|
6719
|
+
// authentication authCookie required
|
|
6720
|
+
|
|
6721
|
+
|
|
6722
|
+
|
|
6723
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6724
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6725
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6726
|
+
|
|
6727
|
+
return {
|
|
6728
|
+
url: toPathString(localVarUrlObj),
|
|
6729
|
+
options: localVarRequestOptions,
|
|
6730
|
+
};
|
|
6731
|
+
},
|
|
6732
|
+
/**
|
|
6733
|
+
* Sends an invite to the instance to yourself.
|
|
6734
|
+
* @summary Send Self Invite
|
|
6735
|
+
* @param {string} worldId
|
|
6736
|
+
* @param {string} instanceId
|
|
6737
|
+
* @param {*} [options] Override http request option.
|
|
6738
|
+
* @throws {RequiredError}
|
|
6739
|
+
*/
|
|
6740
|
+
sendSelfInvite: async (worldId: string, instanceId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6741
|
+
// verify required parameter 'worldId' is not null or undefined
|
|
6742
|
+
assertParamExists('sendSelfInvite', 'worldId', worldId)
|
|
6743
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
6744
|
+
assertParamExists('sendSelfInvite', 'instanceId', instanceId)
|
|
6745
|
+
const localVarPath = `/instances/{worldId}:{instanceId}/invite`
|
|
6746
|
+
.replace(`{${"worldId"}}`, encodeURIComponent(String(worldId)))
|
|
6747
|
+
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
6748
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6749
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6750
|
+
let baseOptions;
|
|
6751
|
+
if (configuration) {
|
|
6752
|
+
baseOptions = configuration.baseOptions;
|
|
6753
|
+
}
|
|
6754
|
+
|
|
6755
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
6756
|
+
const localVarHeaderParameter = {} as any;
|
|
6757
|
+
const localVarQueryParameter = {} as any;
|
|
6758
|
+
|
|
6759
|
+
// authentication apiKeyCookie required
|
|
6760
|
+
|
|
6761
|
+
// authentication authCookie required
|
|
6762
|
+
|
|
6763
|
+
|
|
6764
|
+
|
|
6765
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6766
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6767
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
6768
|
+
|
|
6769
|
+
return {
|
|
6770
|
+
url: toPathString(localVarUrlObj),
|
|
6771
|
+
options: localVarRequestOptions,
|
|
6772
|
+
};
|
|
6773
|
+
},
|
|
6774
|
+
}
|
|
6775
|
+
};
|
|
6776
|
+
|
|
6777
|
+
/**
|
|
6778
|
+
* InstancesApi - functional programming interface
|
|
6779
|
+
* @export
|
|
6780
|
+
*/
|
|
6781
|
+
export const InstancesApiFp = function(configuration?: Configuration) {
|
|
6782
|
+
const localVarAxiosParamCreator = InstancesApiAxiosParamCreator(configuration)
|
|
6783
|
+
return {
|
|
6784
|
+
/**
|
|
6785
|
+
* Returns an instance.
|
|
6786
|
+
* @summary Get Instance
|
|
6787
|
+
* @param {string} worldId
|
|
6788
|
+
* @param {string} instanceId
|
|
6789
|
+
* @param {*} [options] Override http request option.
|
|
6790
|
+
* @throws {RequiredError}
|
|
6791
|
+
*/
|
|
6792
|
+
async getInstance(worldId: string, instanceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Instance>> {
|
|
6793
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInstance(worldId, instanceId, options);
|
|
6794
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6795
|
+
},
|
|
6796
|
+
/**
|
|
6797
|
+
* Returns an instance short name.
|
|
6798
|
+
* @summary Get Instance Short Name
|
|
6799
|
+
* @param {string} worldId
|
|
6800
|
+
* @param {string} instanceId
|
|
6801
|
+
* @param {*} [options] Override http request option.
|
|
6802
|
+
* @throws {RequiredError}
|
|
6803
|
+
*/
|
|
6804
|
+
async getShortName(worldId: string, instanceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
6805
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getShortName(worldId, instanceId, options);
|
|
6806
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6807
|
+
},
|
|
6808
|
+
/**
|
|
6809
|
+
* Sends an invite to the instance to yourself.
|
|
6810
|
+
* @summary Send Self Invite
|
|
6811
|
+
* @param {string} worldId
|
|
6812
|
+
* @param {string} instanceId
|
|
6813
|
+
* @param {*} [options] Override http request option.
|
|
6814
|
+
* @throws {RequiredError}
|
|
6815
|
+
*/
|
|
6816
|
+
async sendSelfInvite(worldId: string, instanceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Success>> {
|
|
6817
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendSelfInvite(worldId, instanceId, options);
|
|
6818
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6819
|
+
},
|
|
6820
|
+
}
|
|
6821
|
+
};
|
|
6822
|
+
|
|
6823
|
+
/**
|
|
6824
|
+
* InstancesApi - factory interface
|
|
6825
|
+
* @export
|
|
6826
|
+
*/
|
|
6827
|
+
export const InstancesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
6828
|
+
const localVarFp = InstancesApiFp(configuration)
|
|
6829
|
+
return {
|
|
6830
|
+
/**
|
|
6831
|
+
* Returns an instance.
|
|
6832
|
+
* @summary Get Instance
|
|
6833
|
+
* @param {string} worldId
|
|
6834
|
+
* @param {string} instanceId
|
|
6835
|
+
* @param {*} [options] Override http request option.
|
|
6836
|
+
* @throws {RequiredError}
|
|
6837
|
+
*/
|
|
6838
|
+
getInstance(worldId: string, instanceId: string, options?: any): AxiosPromise<Instance> {
|
|
6839
|
+
return localVarFp.getInstance(worldId, instanceId, options).then((request) => request(axios, basePath));
|
|
6840
|
+
},
|
|
6841
|
+
/**
|
|
6842
|
+
* Returns an instance short name.
|
|
6843
|
+
* @summary Get Instance Short Name
|
|
6844
|
+
* @param {string} worldId
|
|
6845
|
+
* @param {string} instanceId
|
|
6846
|
+
* @param {*} [options] Override http request option.
|
|
6847
|
+
* @throws {RequiredError}
|
|
6848
|
+
*/
|
|
6849
|
+
getShortName(worldId: string, instanceId: string, options?: any): AxiosPromise<string> {
|
|
6850
|
+
return localVarFp.getShortName(worldId, instanceId, options).then((request) => request(axios, basePath));
|
|
6851
|
+
},
|
|
6852
|
+
/**
|
|
6853
|
+
* Sends an invite to the instance to yourself.
|
|
6854
|
+
* @summary Send Self Invite
|
|
6855
|
+
* @param {string} worldId
|
|
6856
|
+
* @param {string} instanceId
|
|
6857
|
+
* @param {*} [options] Override http request option.
|
|
6858
|
+
* @throws {RequiredError}
|
|
6859
|
+
*/
|
|
6860
|
+
sendSelfInvite(worldId: string, instanceId: string, options?: any): AxiosPromise<Success> {
|
|
6861
|
+
return localVarFp.sendSelfInvite(worldId, instanceId, options).then((request) => request(axios, basePath));
|
|
6862
|
+
},
|
|
6863
|
+
};
|
|
6864
|
+
};
|
|
6865
|
+
|
|
6866
|
+
/**
|
|
6867
|
+
* InstancesApi - object-oriented interface
|
|
6868
|
+
* @export
|
|
6869
|
+
* @class InstancesApi
|
|
6870
|
+
* @extends {BaseAPI}
|
|
6871
|
+
*/
|
|
6872
|
+
export class InstancesApi extends BaseAPI {
|
|
6873
|
+
/**
|
|
6874
|
+
* Returns an instance.
|
|
6875
|
+
* @summary Get Instance
|
|
6876
|
+
* @param {string} worldId
|
|
6877
|
+
* @param {string} instanceId
|
|
6878
|
+
* @param {*} [options] Override http request option.
|
|
6879
|
+
* @throws {RequiredError}
|
|
6880
|
+
* @memberof InstancesApi
|
|
6881
|
+
*/
|
|
6882
|
+
public getInstance(worldId: string, instanceId: string, options?: AxiosRequestConfig) {
|
|
6883
|
+
return InstancesApiFp(this.configuration).getInstance(worldId, instanceId, options).then((request) => request(this.axios, this.basePath));
|
|
6884
|
+
}
|
|
6885
|
+
|
|
6886
|
+
/**
|
|
6887
|
+
* Returns an instance short name.
|
|
6888
|
+
* @summary Get Instance Short Name
|
|
6889
|
+
* @param {string} worldId
|
|
6890
|
+
* @param {string} instanceId
|
|
6891
|
+
* @param {*} [options] Override http request option.
|
|
6892
|
+
* @throws {RequiredError}
|
|
6893
|
+
* @memberof InstancesApi
|
|
6894
|
+
*/
|
|
6895
|
+
public getShortName(worldId: string, instanceId: string, options?: AxiosRequestConfig) {
|
|
6896
|
+
return InstancesApiFp(this.configuration).getShortName(worldId, instanceId, options).then((request) => request(this.axios, this.basePath));
|
|
6897
|
+
}
|
|
6898
|
+
|
|
6899
|
+
/**
|
|
6900
|
+
* Sends an invite to the instance to yourself.
|
|
6901
|
+
* @summary Send Self Invite
|
|
6902
|
+
* @param {string} worldId
|
|
6903
|
+
* @param {string} instanceId
|
|
6904
|
+
* @param {*} [options] Override http request option.
|
|
6905
|
+
* @throws {RequiredError}
|
|
6906
|
+
* @memberof InstancesApi
|
|
6907
|
+
*/
|
|
6908
|
+
public sendSelfInvite(worldId: string, instanceId: string, options?: AxiosRequestConfig) {
|
|
6909
|
+
return InstancesApiFp(this.configuration).sendSelfInvite(worldId, instanceId, options).then((request) => request(this.axios, this.basePath));
|
|
6910
|
+
}
|
|
6911
|
+
}
|
|
6912
|
+
|
|
6913
|
+
|
|
6616
6914
|
/**
|
|
6617
6915
|
* InviteApi - axios parameter creator
|
|
6618
6916
|
* @export
|
|
@@ -6621,24 +6919,24 @@ export const InviteApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
6621
6919
|
return {
|
|
6622
6920
|
/**
|
|
6623
6921
|
* Returns a single Invite Message. This returns the exact same information but less than `getInviteMessages`. Admin Credentials are required to view messages of other users! Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
6624
|
-
* @summary Get Invite
|
|
6922
|
+
* @summary Get Invite Message
|
|
6625
6923
|
* @param {string} userId
|
|
6626
6924
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
6627
|
-
* @param {number}
|
|
6925
|
+
* @param {number} slot
|
|
6628
6926
|
* @param {*} [options] Override http request option.
|
|
6629
6927
|
* @throws {RequiredError}
|
|
6630
6928
|
*/
|
|
6631
|
-
getInviteMessage: async (userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse',
|
|
6929
|
+
getInviteMessage: async (userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse', slot: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6632
6930
|
// verify required parameter 'userId' is not null or undefined
|
|
6633
6931
|
assertParamExists('getInviteMessage', 'userId', userId)
|
|
6634
6932
|
// verify required parameter 'messageType' is not null or undefined
|
|
6635
6933
|
assertParamExists('getInviteMessage', 'messageType', messageType)
|
|
6636
|
-
// verify required parameter '
|
|
6637
|
-
assertParamExists('getInviteMessage', '
|
|
6638
|
-
const localVarPath = `/message/{userId}/{messageType}/{
|
|
6934
|
+
// verify required parameter 'slot' is not null or undefined
|
|
6935
|
+
assertParamExists('getInviteMessage', 'slot', slot)
|
|
6936
|
+
const localVarPath = `/message/{userId}/{messageType}/{slot}`
|
|
6639
6937
|
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
6640
6938
|
.replace(`{${"messageType"}}`, encodeURIComponent(String(messageType)))
|
|
6641
|
-
.replace(`{${"
|
|
6939
|
+
.replace(`{${"slot"}}`, encodeURIComponent(String(slot)));
|
|
6642
6940
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6643
6941
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6644
6942
|
let baseOptions;
|
|
@@ -6788,25 +7086,25 @@ export const InviteApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
6788
7086
|
};
|
|
6789
7087
|
},
|
|
6790
7088
|
/**
|
|
6791
|
-
* Resets a single Invite Message back to it\'s original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit,
|
|
7089
|
+
* Resets a single Invite Message back to it\'s original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit, so it is not possible to reset within the 60 minutes countdown. Resetting it does however not set the rate-limit to 60 like when editing it. It is possible to edit it right after resetting it. Trying to edit a message before the cooldown timer expires results in a 429 \"Too Fast Error\". Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite The DELETE endpoint does not have/require any request body.
|
|
6792
7090
|
* @summary Reset Invite Message
|
|
6793
7091
|
* @param {string} userId
|
|
6794
7092
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
6795
|
-
* @param {number}
|
|
7093
|
+
* @param {number} slot
|
|
6796
7094
|
* @param {*} [options] Override http request option.
|
|
6797
7095
|
* @throws {RequiredError}
|
|
6798
7096
|
*/
|
|
6799
|
-
resetInviteMessage: async (userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse',
|
|
7097
|
+
resetInviteMessage: async (userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse', slot: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6800
7098
|
// verify required parameter 'userId' is not null or undefined
|
|
6801
7099
|
assertParamExists('resetInviteMessage', 'userId', userId)
|
|
6802
7100
|
// verify required parameter 'messageType' is not null or undefined
|
|
6803
7101
|
assertParamExists('resetInviteMessage', 'messageType', messageType)
|
|
6804
|
-
// verify required parameter '
|
|
6805
|
-
assertParamExists('resetInviteMessage', '
|
|
6806
|
-
const localVarPath = `/message/{userId}/{messageType}/{
|
|
7102
|
+
// verify required parameter 'slot' is not null or undefined
|
|
7103
|
+
assertParamExists('resetInviteMessage', 'slot', slot)
|
|
7104
|
+
const localVarPath = `/message/{userId}/{messageType}/{slot}`
|
|
6807
7105
|
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
6808
7106
|
.replace(`{${"messageType"}}`, encodeURIComponent(String(messageType)))
|
|
6809
|
-
.replace(`{${"
|
|
7107
|
+
.replace(`{${"slot"}}`, encodeURIComponent(String(slot)));
|
|
6810
7108
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6811
7109
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6812
7110
|
let baseOptions;
|
|
@@ -6876,25 +7174,26 @@ export const InviteApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
6876
7174
|
};
|
|
6877
7175
|
},
|
|
6878
7176
|
/**
|
|
6879
|
-
* Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error. Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
7177
|
+
* Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 \"Too Fast Error\". Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
6880
7178
|
* @summary Update Invite Message
|
|
6881
7179
|
* @param {string} userId
|
|
6882
7180
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
6883
|
-
* @param {number}
|
|
7181
|
+
* @param {number} slot
|
|
7182
|
+
* @param {UpdateInviteMessageRequest} [updateInviteMessageRequest] Message of what to set the invite message to.
|
|
6884
7183
|
* @param {*} [options] Override http request option.
|
|
6885
7184
|
* @throws {RequiredError}
|
|
6886
7185
|
*/
|
|
6887
|
-
updateInviteMessage: async (userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse',
|
|
7186
|
+
updateInviteMessage: async (userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse', slot: number, updateInviteMessageRequest?: UpdateInviteMessageRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
6888
7187
|
// verify required parameter 'userId' is not null or undefined
|
|
6889
7188
|
assertParamExists('updateInviteMessage', 'userId', userId)
|
|
6890
7189
|
// verify required parameter 'messageType' is not null or undefined
|
|
6891
7190
|
assertParamExists('updateInviteMessage', 'messageType', messageType)
|
|
6892
|
-
// verify required parameter '
|
|
6893
|
-
assertParamExists('updateInviteMessage', '
|
|
6894
|
-
const localVarPath = `/message/{userId}/{messageType}/{
|
|
7191
|
+
// verify required parameter 'slot' is not null or undefined
|
|
7192
|
+
assertParamExists('updateInviteMessage', 'slot', slot)
|
|
7193
|
+
const localVarPath = `/message/{userId}/{messageType}/{slot}`
|
|
6895
7194
|
.replace(`{${"userId"}}`, encodeURIComponent(String(userId)))
|
|
6896
7195
|
.replace(`{${"messageType"}}`, encodeURIComponent(String(messageType)))
|
|
6897
|
-
.replace(`{${"
|
|
7196
|
+
.replace(`{${"slot"}}`, encodeURIComponent(String(slot)));
|
|
6898
7197
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6899
7198
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6900
7199
|
let baseOptions;
|
|
@@ -6912,9 +7211,12 @@ export const InviteApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
6912
7211
|
|
|
6913
7212
|
|
|
6914
7213
|
|
|
7214
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7215
|
+
|
|
6915
7216
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6916
7217
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6917
7218
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7219
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateInviteMessageRequest, localVarRequestOptions, configuration)
|
|
6918
7220
|
|
|
6919
7221
|
return {
|
|
6920
7222
|
url: toPathString(localVarUrlObj),
|
|
@@ -6933,15 +7235,15 @@ export const InviteApiFp = function(configuration?: Configuration) {
|
|
|
6933
7235
|
return {
|
|
6934
7236
|
/**
|
|
6935
7237
|
* Returns a single Invite Message. This returns the exact same information but less than `getInviteMessages`. Admin Credentials are required to view messages of other users! Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
6936
|
-
* @summary Get Invite
|
|
7238
|
+
* @summary Get Invite Message
|
|
6937
7239
|
* @param {string} userId
|
|
6938
7240
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
6939
|
-
* @param {number}
|
|
7241
|
+
* @param {number} slot
|
|
6940
7242
|
* @param {*} [options] Override http request option.
|
|
6941
7243
|
* @throws {RequiredError}
|
|
6942
7244
|
*/
|
|
6943
|
-
async getInviteMessage(userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse',
|
|
6944
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getInviteMessage(userId, messageType,
|
|
7245
|
+
async getInviteMessage(userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse', slot: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteMessage>> {
|
|
7246
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInviteMessage(userId, messageType, slot, options);
|
|
6945
7247
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6946
7248
|
},
|
|
6947
7249
|
/**
|
|
@@ -6980,16 +7282,16 @@ export const InviteApiFp = function(configuration?: Configuration) {
|
|
|
6980
7282
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6981
7283
|
},
|
|
6982
7284
|
/**
|
|
6983
|
-
* Resets a single Invite Message back to it\'s original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit,
|
|
7285
|
+
* Resets a single Invite Message back to it\'s original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit, so it is not possible to reset within the 60 minutes countdown. Resetting it does however not set the rate-limit to 60 like when editing it. It is possible to edit it right after resetting it. Trying to edit a message before the cooldown timer expires results in a 429 \"Too Fast Error\". Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite The DELETE endpoint does not have/require any request body.
|
|
6984
7286
|
* @summary Reset Invite Message
|
|
6985
7287
|
* @param {string} userId
|
|
6986
7288
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
6987
|
-
* @param {number}
|
|
7289
|
+
* @param {number} slot
|
|
6988
7290
|
* @param {*} [options] Override http request option.
|
|
6989
7291
|
* @throws {RequiredError}
|
|
6990
7292
|
*/
|
|
6991
|
-
async resetInviteMessage(userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse',
|
|
6992
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.resetInviteMessage(userId, messageType,
|
|
7293
|
+
async resetInviteMessage(userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse', slot: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InviteMessage>>> {
|
|
7294
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resetInviteMessage(userId, messageType, slot, options);
|
|
6993
7295
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6994
7296
|
},
|
|
6995
7297
|
/**
|
|
@@ -7005,16 +7307,17 @@ export const InviteApiFp = function(configuration?: Configuration) {
|
|
|
7005
7307
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7006
7308
|
},
|
|
7007
7309
|
/**
|
|
7008
|
-
* Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error. Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
7310
|
+
* Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 \"Too Fast Error\". Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
7009
7311
|
* @summary Update Invite Message
|
|
7010
7312
|
* @param {string} userId
|
|
7011
7313
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
7012
|
-
* @param {number}
|
|
7314
|
+
* @param {number} slot
|
|
7315
|
+
* @param {UpdateInviteMessageRequest} [updateInviteMessageRequest] Message of what to set the invite message to.
|
|
7013
7316
|
* @param {*} [options] Override http request option.
|
|
7014
7317
|
* @throws {RequiredError}
|
|
7015
7318
|
*/
|
|
7016
|
-
async updateInviteMessage(userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse',
|
|
7017
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateInviteMessage(userId, messageType,
|
|
7319
|
+
async updateInviteMessage(userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse', slot: number, updateInviteMessageRequest?: UpdateInviteMessageRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InviteMessage>>> {
|
|
7320
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateInviteMessage(userId, messageType, slot, updateInviteMessageRequest, options);
|
|
7018
7321
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7019
7322
|
},
|
|
7020
7323
|
}
|
|
@@ -7029,15 +7332,15 @@ export const InviteApiFactory = function (configuration?: Configuration, basePat
|
|
|
7029
7332
|
return {
|
|
7030
7333
|
/**
|
|
7031
7334
|
* Returns a single Invite Message. This returns the exact same information but less than `getInviteMessages`. Admin Credentials are required to view messages of other users! Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
7032
|
-
* @summary Get Invite
|
|
7335
|
+
* @summary Get Invite Message
|
|
7033
7336
|
* @param {string} userId
|
|
7034
7337
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
7035
|
-
* @param {number}
|
|
7338
|
+
* @param {number} slot
|
|
7036
7339
|
* @param {*} [options] Override http request option.
|
|
7037
7340
|
* @throws {RequiredError}
|
|
7038
7341
|
*/
|
|
7039
|
-
getInviteMessage(userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse',
|
|
7040
|
-
return localVarFp.getInviteMessage(userId, messageType,
|
|
7342
|
+
getInviteMessage(userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse', slot: number, options?: any): AxiosPromise<InviteMessage> {
|
|
7343
|
+
return localVarFp.getInviteMessage(userId, messageType, slot, options).then((request) => request(axios, basePath));
|
|
7041
7344
|
},
|
|
7042
7345
|
/**
|
|
7043
7346
|
* Returns a list of all the users Invite Messages. Admin Credentials are required to view messages of other users! Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
@@ -7072,16 +7375,16 @@ export const InviteApiFactory = function (configuration?: Configuration, basePat
|
|
|
7072
7375
|
return localVarFp.requestInvite(userId, options).then((request) => request(axios, basePath));
|
|
7073
7376
|
},
|
|
7074
7377
|
/**
|
|
7075
|
-
* Resets a single Invite Message back to it\'s original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit,
|
|
7378
|
+
* Resets a single Invite Message back to it\'s original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit, so it is not possible to reset within the 60 minutes countdown. Resetting it does however not set the rate-limit to 60 like when editing it. It is possible to edit it right after resetting it. Trying to edit a message before the cooldown timer expires results in a 429 \"Too Fast Error\". Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite The DELETE endpoint does not have/require any request body.
|
|
7076
7379
|
* @summary Reset Invite Message
|
|
7077
7380
|
* @param {string} userId
|
|
7078
7381
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
7079
|
-
* @param {number}
|
|
7382
|
+
* @param {number} slot
|
|
7080
7383
|
* @param {*} [options] Override http request option.
|
|
7081
7384
|
* @throws {RequiredError}
|
|
7082
7385
|
*/
|
|
7083
|
-
resetInviteMessage(userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse',
|
|
7084
|
-
return localVarFp.resetInviteMessage(userId, messageType,
|
|
7386
|
+
resetInviteMessage(userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse', slot: number, options?: any): AxiosPromise<Array<InviteMessage>> {
|
|
7387
|
+
return localVarFp.resetInviteMessage(userId, messageType, slot, options).then((request) => request(axios, basePath));
|
|
7085
7388
|
},
|
|
7086
7389
|
/**
|
|
7087
7390
|
* Respond to an invite request by sending a world invite to the requesting user. `:notificationId` is the ID of the requesting notification.
|
|
@@ -7095,16 +7398,17 @@ export const InviteApiFactory = function (configuration?: Configuration, basePat
|
|
|
7095
7398
|
return localVarFp.respondInvite(notificationId, inviteResponse, options).then((request) => request(axios, basePath));
|
|
7096
7399
|
},
|
|
7097
7400
|
/**
|
|
7098
|
-
* Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error. Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
7401
|
+
* Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 \"Too Fast Error\". Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
7099
7402
|
* @summary Update Invite Message
|
|
7100
7403
|
* @param {string} userId
|
|
7101
7404
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
7102
|
-
* @param {number}
|
|
7405
|
+
* @param {number} slot
|
|
7406
|
+
* @param {UpdateInviteMessageRequest} [updateInviteMessageRequest] Message of what to set the invite message to.
|
|
7103
7407
|
* @param {*} [options] Override http request option.
|
|
7104
7408
|
* @throws {RequiredError}
|
|
7105
7409
|
*/
|
|
7106
|
-
updateInviteMessage(userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse',
|
|
7107
|
-
return localVarFp.updateInviteMessage(userId, messageType,
|
|
7410
|
+
updateInviteMessage(userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse', slot: number, updateInviteMessageRequest?: UpdateInviteMessageRequest, options?: any): AxiosPromise<Array<InviteMessage>> {
|
|
7411
|
+
return localVarFp.updateInviteMessage(userId, messageType, slot, updateInviteMessageRequest, options).then((request) => request(axios, basePath));
|
|
7108
7412
|
},
|
|
7109
7413
|
};
|
|
7110
7414
|
};
|
|
@@ -7118,16 +7422,16 @@ export const InviteApiFactory = function (configuration?: Configuration, basePat
|
|
|
7118
7422
|
export class InviteApi extends BaseAPI {
|
|
7119
7423
|
/**
|
|
7120
7424
|
* Returns a single Invite Message. This returns the exact same information but less than `getInviteMessages`. Admin Credentials are required to view messages of other users! Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
7121
|
-
* @summary Get Invite
|
|
7425
|
+
* @summary Get Invite Message
|
|
7122
7426
|
* @param {string} userId
|
|
7123
7427
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
7124
|
-
* @param {number}
|
|
7428
|
+
* @param {number} slot
|
|
7125
7429
|
* @param {*} [options] Override http request option.
|
|
7126
7430
|
* @throws {RequiredError}
|
|
7127
7431
|
* @memberof InviteApi
|
|
7128
7432
|
*/
|
|
7129
|
-
public getInviteMessage(userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse',
|
|
7130
|
-
return InviteApiFp(this.configuration).getInviteMessage(userId, messageType,
|
|
7433
|
+
public getInviteMessage(userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse', slot: number, options?: AxiosRequestConfig) {
|
|
7434
|
+
return InviteApiFp(this.configuration).getInviteMessage(userId, messageType, slot, options).then((request) => request(this.axios, this.basePath));
|
|
7131
7435
|
}
|
|
7132
7436
|
|
|
7133
7437
|
/**
|
|
@@ -7169,17 +7473,17 @@ export class InviteApi extends BaseAPI {
|
|
|
7169
7473
|
}
|
|
7170
7474
|
|
|
7171
7475
|
/**
|
|
7172
|
-
* Resets a single Invite Message back to it\'s original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit,
|
|
7476
|
+
* Resets a single Invite Message back to it\'s original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit, so it is not possible to reset within the 60 minutes countdown. Resetting it does however not set the rate-limit to 60 like when editing it. It is possible to edit it right after resetting it. Trying to edit a message before the cooldown timer expires results in a 429 \"Too Fast Error\". Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite The DELETE endpoint does not have/require any request body.
|
|
7173
7477
|
* @summary Reset Invite Message
|
|
7174
7478
|
* @param {string} userId
|
|
7175
7479
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
7176
|
-
* @param {number}
|
|
7480
|
+
* @param {number} slot
|
|
7177
7481
|
* @param {*} [options] Override http request option.
|
|
7178
7482
|
* @throws {RequiredError}
|
|
7179
7483
|
* @memberof InviteApi
|
|
7180
7484
|
*/
|
|
7181
|
-
public resetInviteMessage(userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse',
|
|
7182
|
-
return InviteApiFp(this.configuration).resetInviteMessage(userId, messageType,
|
|
7485
|
+
public resetInviteMessage(userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse', slot: number, options?: AxiosRequestConfig) {
|
|
7486
|
+
return InviteApiFp(this.configuration).resetInviteMessage(userId, messageType, slot, options).then((request) => request(this.axios, this.basePath));
|
|
7183
7487
|
}
|
|
7184
7488
|
|
|
7185
7489
|
/**
|
|
@@ -7196,17 +7500,18 @@ export class InviteApi extends BaseAPI {
|
|
|
7196
7500
|
}
|
|
7197
7501
|
|
|
7198
7502
|
/**
|
|
7199
|
-
* Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error. Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
7503
|
+
* Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 \"Too Fast Error\". Message type refers to a different collection of messages, used during different types of responses. * `message` = Message during a normal invite * `response` = Message when replying to a message * `request` = Message when requesting an invite * `requestResponse` = Message when replying to a request for invite
|
|
7200
7504
|
* @summary Update Invite Message
|
|
7201
7505
|
* @param {string} userId
|
|
7202
7506
|
* @param {'message' | 'response' | 'request' | 'requestResponse'} messageType
|
|
7203
|
-
* @param {number}
|
|
7507
|
+
* @param {number} slot
|
|
7508
|
+
* @param {UpdateInviteMessageRequest} [updateInviteMessageRequest] Message of what to set the invite message to.
|
|
7204
7509
|
* @param {*} [options] Override http request option.
|
|
7205
7510
|
* @throws {RequiredError}
|
|
7206
7511
|
* @memberof InviteApi
|
|
7207
7512
|
*/
|
|
7208
|
-
public updateInviteMessage(userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse',
|
|
7209
|
-
return InviteApiFp(this.configuration).updateInviteMessage(userId, messageType,
|
|
7513
|
+
public updateInviteMessage(userId: string, messageType: 'message' | 'response' | 'request' | 'requestResponse', slot: number, updateInviteMessageRequest?: UpdateInviteMessageRequest, options?: AxiosRequestConfig) {
|
|
7514
|
+
return InviteApiFp(this.configuration).updateInviteMessage(userId, messageType, slot, updateInviteMessageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
7210
7515
|
}
|
|
7211
7516
|
}
|
|
7212
7517
|
|
|
@@ -8063,7 +8368,7 @@ export const PlayermoderationApiFp = function(configuration?: Configuration) {
|
|
|
8063
8368
|
* @param {*} [options] Override http request option.
|
|
8064
8369
|
* @throws {RequiredError}
|
|
8065
8370
|
*/
|
|
8066
|
-
async clearAllPlayerModerations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
8371
|
+
async clearAllPlayerModerations(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Success>> {
|
|
8067
8372
|
const localVarAxiosArgs = await localVarAxiosParamCreator.clearAllPlayerModerations(options);
|
|
8068
8373
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
8069
8374
|
},
|
|
@@ -8139,7 +8444,7 @@ export const PlayermoderationApiFactory = function (configuration?: Configuratio
|
|
|
8139
8444
|
* @param {*} [options] Override http request option.
|
|
8140
8445
|
* @throws {RequiredError}
|
|
8141
8446
|
*/
|
|
8142
|
-
clearAllPlayerModerations(options?: any): AxiosPromise<
|
|
8447
|
+
clearAllPlayerModerations(options?: any): AxiosPromise<Success> {
|
|
8143
8448
|
return localVarFp.clearAllPlayerModerations(options).then((request) => request(axios, basePath));
|
|
8144
8449
|
},
|
|
8145
8450
|
/**
|
|
@@ -8292,7 +8597,7 @@ export const SystemApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
8292
8597
|
* @throws {RequiredError}
|
|
8293
8598
|
*/
|
|
8294
8599
|
getCSS: async (variant?: 'public' | 'internal', branch?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8295
|
-
const localVarPath = `/css/app.
|
|
8600
|
+
const localVarPath = `/css/app.css`;
|
|
8296
8601
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8297
8602
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8298
8603
|
let baseOptions;
|
|
@@ -8354,7 +8659,7 @@ export const SystemApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
8354
8659
|
};
|
|
8355
8660
|
},
|
|
8356
8661
|
/**
|
|
8357
|
-
* Returns
|
|
8662
|
+
* Returns the current number of online users. **NOTE:** The response type is not a JSON object, but a simple JSON integer.
|
|
8358
8663
|
* @summary Current Online Users
|
|
8359
8664
|
* @param {*} [options] Override http request option.
|
|
8360
8665
|
* @throws {RequiredError}
|
|
@@ -8455,7 +8760,7 @@ export const SystemApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
8455
8760
|
};
|
|
8456
8761
|
},
|
|
8457
8762
|
/**
|
|
8458
|
-
* Returns
|
|
8763
|
+
* Returns the current time of the API server. **NOTE:** The response type is not a JSON object, but a simple JSON string.
|
|
8459
8764
|
* @summary Current System Time
|
|
8460
8765
|
* @param {*} [options] Override http request option.
|
|
8461
8766
|
* @throws {RequiredError}
|
|
@@ -8517,7 +8822,7 @@ export const SystemApiFp = function(configuration?: Configuration) {
|
|
|
8517
8822
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
8518
8823
|
},
|
|
8519
8824
|
/**
|
|
8520
|
-
* Returns
|
|
8825
|
+
* Returns the current number of online users. **NOTE:** The response type is not a JSON object, but a simple JSON integer.
|
|
8521
8826
|
* @summary Current Online Users
|
|
8522
8827
|
* @param {*} [options] Override http request option.
|
|
8523
8828
|
* @throws {RequiredError}
|
|
@@ -8550,7 +8855,7 @@ export const SystemApiFp = function(configuration?: Configuration) {
|
|
|
8550
8855
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
8551
8856
|
},
|
|
8552
8857
|
/**
|
|
8553
|
-
* Returns
|
|
8858
|
+
* Returns the current time of the API server. **NOTE:** The response type is not a JSON object, but a simple JSON string.
|
|
8554
8859
|
* @summary Current System Time
|
|
8555
8860
|
* @param {*} [options] Override http request option.
|
|
8556
8861
|
* @throws {RequiredError}
|
|
@@ -8590,7 +8895,7 @@ export const SystemApiFactory = function (configuration?: Configuration, basePat
|
|
|
8590
8895
|
return localVarFp.getConfig(options).then((request) => request(axios, basePath));
|
|
8591
8896
|
},
|
|
8592
8897
|
/**
|
|
8593
|
-
* Returns
|
|
8898
|
+
* Returns the current number of online users. **NOTE:** The response type is not a JSON object, but a simple JSON integer.
|
|
8594
8899
|
* @summary Current Online Users
|
|
8595
8900
|
* @param {*} [options] Override http request option.
|
|
8596
8901
|
* @throws {RequiredError}
|
|
@@ -8620,7 +8925,7 @@ export const SystemApiFactory = function (configuration?: Configuration, basePat
|
|
|
8620
8925
|
return localVarFp.getJavaScript(variant, branch, options).then((request) => request(axios, basePath));
|
|
8621
8926
|
},
|
|
8622
8927
|
/**
|
|
8623
|
-
* Returns
|
|
8928
|
+
* Returns the current time of the API server. **NOTE:** The response type is not a JSON object, but a simple JSON string.
|
|
8624
8929
|
* @summary Current System Time
|
|
8625
8930
|
* @param {*} [options] Override http request option.
|
|
8626
8931
|
* @throws {RequiredError}
|
|
@@ -8663,7 +8968,7 @@ export class SystemApi extends BaseAPI {
|
|
|
8663
8968
|
}
|
|
8664
8969
|
|
|
8665
8970
|
/**
|
|
8666
|
-
* Returns
|
|
8971
|
+
* Returns the current number of online users. **NOTE:** The response type is not a JSON object, but a simple JSON integer.
|
|
8667
8972
|
* @summary Current Online Users
|
|
8668
8973
|
* @param {*} [options] Override http request option.
|
|
8669
8974
|
* @throws {RequiredError}
|
|
@@ -8699,7 +9004,7 @@ export class SystemApi extends BaseAPI {
|
|
|
8699
9004
|
}
|
|
8700
9005
|
|
|
8701
9006
|
/**
|
|
8702
|
-
* Returns
|
|
9007
|
+
* Returns the current time of the API server. **NOTE:** The response type is not a JSON object, but a simple JSON string.
|
|
8703
9008
|
* @summary Current System Time
|
|
8704
9009
|
* @param {*} [options] Override http request option.
|
|
8705
9010
|
* @throws {RequiredError}
|