qanswer-sdk 3.1649.0-main → 3.1651.0-main
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 +223 -0
- package/dist/api.d.ts +124 -0
- package/dist/api.js +209 -0
- package/package.json +1 -1
- package/qanswer-sdk-3.1651.0-main.tgz +0 -0
- package/qanswer-sdk-3.1649.0-main.tgz +0 -0
package/api.ts
CHANGED
|
@@ -10228,6 +10228,12 @@ export interface Llm {
|
|
|
10228
10228
|
* @memberof Llm
|
|
10229
10229
|
*/
|
|
10230
10230
|
'llmConsumptions'?: Array<LlmConsumption>;
|
|
10231
|
+
/**
|
|
10232
|
+
*
|
|
10233
|
+
* @type {boolean}
|
|
10234
|
+
* @memberof Llm
|
|
10235
|
+
*/
|
|
10236
|
+
'free'?: boolean;
|
|
10231
10237
|
}
|
|
10232
10238
|
/**
|
|
10233
10239
|
*
|
|
@@ -19366,6 +19372,12 @@ export interface User {
|
|
|
19366
19372
|
* @memberof User
|
|
19367
19373
|
*/
|
|
19368
19374
|
'dataPackage'?: number;
|
|
19375
|
+
/**
|
|
19376
|
+
*
|
|
19377
|
+
* @type {number}
|
|
19378
|
+
* @memberof User
|
|
19379
|
+
*/
|
|
19380
|
+
'rateLimitBucket'?: number;
|
|
19369
19381
|
/**
|
|
19370
19382
|
*
|
|
19371
19383
|
* @type {string}
|
|
@@ -19576,6 +19588,12 @@ export interface User {
|
|
|
19576
19588
|
* @memberof User
|
|
19577
19589
|
*/
|
|
19578
19590
|
'selectedOrgId'?: number;
|
|
19591
|
+
/**
|
|
19592
|
+
*
|
|
19593
|
+
* @type {number}
|
|
19594
|
+
* @memberof User
|
|
19595
|
+
*/
|
|
19596
|
+
'rateLimitBucketForUser'?: number;
|
|
19579
19597
|
}
|
|
19580
19598
|
|
|
19581
19599
|
export const UserPricingPlanEnum = {
|
|
@@ -20624,6 +20642,12 @@ export interface UserProfileDto {
|
|
|
20624
20642
|
* @memberof UserProfileDto
|
|
20625
20643
|
*/
|
|
20626
20644
|
'quotaDatasetSpaceMbUsed'?: number;
|
|
20645
|
+
/**
|
|
20646
|
+
*
|
|
20647
|
+
* @type {number}
|
|
20648
|
+
* @memberof UserProfileDto
|
|
20649
|
+
*/
|
|
20650
|
+
'rateLimitBucket'?: number;
|
|
20627
20651
|
/**
|
|
20628
20652
|
*
|
|
20629
20653
|
* @type {string}
|
|
@@ -21743,6 +21767,99 @@ export const AdminApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
21743
21767
|
|
|
21744
21768
|
|
|
21745
21769
|
|
|
21770
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21771
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21772
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
21773
|
+
|
|
21774
|
+
return {
|
|
21775
|
+
url: toPathString(localVarUrlObj),
|
|
21776
|
+
options: localVarRequestOptions,
|
|
21777
|
+
};
|
|
21778
|
+
},
|
|
21779
|
+
/**
|
|
21780
|
+
*
|
|
21781
|
+
* @summary Get the rate limit for a user
|
|
21782
|
+
* @param {string} username
|
|
21783
|
+
* @param {*} [options] Override http request option.
|
|
21784
|
+
* @throws {RequiredError}
|
|
21785
|
+
*/
|
|
21786
|
+
getRateLimit: async (username: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21787
|
+
// verify required parameter 'username' is not null or undefined
|
|
21788
|
+
assertParamExists('getRateLimit', 'username', username)
|
|
21789
|
+
const localVarPath = `/api/admin/rate-limit`;
|
|
21790
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21791
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
21792
|
+
let baseOptions;
|
|
21793
|
+
if (configuration) {
|
|
21794
|
+
baseOptions = configuration.baseOptions;
|
|
21795
|
+
}
|
|
21796
|
+
|
|
21797
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
21798
|
+
const localVarHeaderParameter = {} as any;
|
|
21799
|
+
const localVarQueryParameter = {} as any;
|
|
21800
|
+
|
|
21801
|
+
// authentication QAnswer-Api-Key required
|
|
21802
|
+
await setApiKeyToObject(localVarHeaderParameter, "QAnswer-Api-Key", configuration)
|
|
21803
|
+
|
|
21804
|
+
// authentication Bearer required
|
|
21805
|
+
// http bearer authentication required
|
|
21806
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
21807
|
+
|
|
21808
|
+
if (username !== undefined) {
|
|
21809
|
+
localVarQueryParameter['username'] = username;
|
|
21810
|
+
}
|
|
21811
|
+
|
|
21812
|
+
|
|
21813
|
+
|
|
21814
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21815
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21816
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
21817
|
+
|
|
21818
|
+
return {
|
|
21819
|
+
url: toPathString(localVarUrlObj),
|
|
21820
|
+
options: localVarRequestOptions,
|
|
21821
|
+
};
|
|
21822
|
+
},
|
|
21823
|
+
/**
|
|
21824
|
+
*
|
|
21825
|
+
* @summary Get the rate limit for a user
|
|
21826
|
+
* @param {string} username
|
|
21827
|
+
* @param {number} [rateLimit]
|
|
21828
|
+
* @param {*} [options] Override http request option.
|
|
21829
|
+
* @throws {RequiredError}
|
|
21830
|
+
*/
|
|
21831
|
+
getRateLimit1: async (username: string, rateLimit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
21832
|
+
// verify required parameter 'username' is not null or undefined
|
|
21833
|
+
assertParamExists('getRateLimit1', 'username', username)
|
|
21834
|
+
const localVarPath = `/api/admin/rate-limit`;
|
|
21835
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21836
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
21837
|
+
let baseOptions;
|
|
21838
|
+
if (configuration) {
|
|
21839
|
+
baseOptions = configuration.baseOptions;
|
|
21840
|
+
}
|
|
21841
|
+
|
|
21842
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
21843
|
+
const localVarHeaderParameter = {} as any;
|
|
21844
|
+
const localVarQueryParameter = {} as any;
|
|
21845
|
+
|
|
21846
|
+
// authentication QAnswer-Api-Key required
|
|
21847
|
+
await setApiKeyToObject(localVarHeaderParameter, "QAnswer-Api-Key", configuration)
|
|
21848
|
+
|
|
21849
|
+
// authentication Bearer required
|
|
21850
|
+
// http bearer authentication required
|
|
21851
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
21852
|
+
|
|
21853
|
+
if (username !== undefined) {
|
|
21854
|
+
localVarQueryParameter['username'] = username;
|
|
21855
|
+
}
|
|
21856
|
+
|
|
21857
|
+
if (rateLimit !== undefined) {
|
|
21858
|
+
localVarQueryParameter['rateLimit'] = rateLimit;
|
|
21859
|
+
}
|
|
21860
|
+
|
|
21861
|
+
|
|
21862
|
+
|
|
21746
21863
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21747
21864
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21748
21865
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -22345,6 +22462,33 @@ export const AdminApiFp = function(configuration?: Configuration) {
|
|
|
22345
22462
|
const localVarOperationServerBasePath = operationServerMap['AdminApi.getGlobalCredits']?.[localVarOperationServerIndex]?.url;
|
|
22346
22463
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22347
22464
|
},
|
|
22465
|
+
/**
|
|
22466
|
+
*
|
|
22467
|
+
* @summary Get the rate limit for a user
|
|
22468
|
+
* @param {string} username
|
|
22469
|
+
* @param {*} [options] Override http request option.
|
|
22470
|
+
* @throws {RequiredError}
|
|
22471
|
+
*/
|
|
22472
|
+
async getRateLimit(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<number>> {
|
|
22473
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRateLimit(username, options);
|
|
22474
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
22475
|
+
const localVarOperationServerBasePath = operationServerMap['AdminApi.getRateLimit']?.[localVarOperationServerIndex]?.url;
|
|
22476
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22477
|
+
},
|
|
22478
|
+
/**
|
|
22479
|
+
*
|
|
22480
|
+
* @summary Get the rate limit for a user
|
|
22481
|
+
* @param {string} username
|
|
22482
|
+
* @param {number} [rateLimit]
|
|
22483
|
+
* @param {*} [options] Override http request option.
|
|
22484
|
+
* @throws {RequiredError}
|
|
22485
|
+
*/
|
|
22486
|
+
async getRateLimit1(username: string, rateLimit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
22487
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getRateLimit1(username, rateLimit, options);
|
|
22488
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
22489
|
+
const localVarOperationServerBasePath = operationServerMap['AdminApi.getRateLimit1']?.[localVarOperationServerIndex]?.url;
|
|
22490
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22491
|
+
},
|
|
22348
22492
|
/**
|
|
22349
22493
|
*
|
|
22350
22494
|
* @summary Get the conversation statistics of all users/datasets over time
|
|
@@ -22603,6 +22747,26 @@ export const AdminApiFactory = function (configuration?: Configuration, basePath
|
|
|
22603
22747
|
getGlobalCredits(options?: RawAxiosRequestConfig): AxiosPromise<CreditsInfoGlobalDto> {
|
|
22604
22748
|
return localVarFp.getGlobalCredits(options).then((request) => request(axios, basePath));
|
|
22605
22749
|
},
|
|
22750
|
+
/**
|
|
22751
|
+
*
|
|
22752
|
+
* @summary Get the rate limit for a user
|
|
22753
|
+
* @param {AdminApiGetRateLimitRequest} requestParameters Request parameters.
|
|
22754
|
+
* @param {*} [options] Override http request option.
|
|
22755
|
+
* @throws {RequiredError}
|
|
22756
|
+
*/
|
|
22757
|
+
getRateLimit(requestParameters: AdminApiGetRateLimitRequest, options?: RawAxiosRequestConfig): AxiosPromise<number> {
|
|
22758
|
+
return localVarFp.getRateLimit(requestParameters.username, options).then((request) => request(axios, basePath));
|
|
22759
|
+
},
|
|
22760
|
+
/**
|
|
22761
|
+
*
|
|
22762
|
+
* @summary Get the rate limit for a user
|
|
22763
|
+
* @param {AdminApiGetRateLimit1Request} requestParameters Request parameters.
|
|
22764
|
+
* @param {*} [options] Override http request option.
|
|
22765
|
+
* @throws {RequiredError}
|
|
22766
|
+
*/
|
|
22767
|
+
getRateLimit1(requestParameters: AdminApiGetRateLimit1Request, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
22768
|
+
return localVarFp.getRateLimit1(requestParameters.username, requestParameters.rateLimit, options).then((request) => request(axios, basePath));
|
|
22769
|
+
},
|
|
22606
22770
|
/**
|
|
22607
22771
|
*
|
|
22608
22772
|
* @summary Get the conversation statistics of all users/datasets over time
|
|
@@ -22942,6 +23106,41 @@ export interface AdminApiGetAiAssistantRequest {
|
|
|
22942
23106
|
readonly aiAssistantId: number
|
|
22943
23107
|
}
|
|
22944
23108
|
|
|
23109
|
+
/**
|
|
23110
|
+
* Request parameters for getRateLimit operation in AdminApi.
|
|
23111
|
+
* @export
|
|
23112
|
+
* @interface AdminApiGetRateLimitRequest
|
|
23113
|
+
*/
|
|
23114
|
+
export interface AdminApiGetRateLimitRequest {
|
|
23115
|
+
/**
|
|
23116
|
+
*
|
|
23117
|
+
* @type {string}
|
|
23118
|
+
* @memberof AdminApiGetRateLimit
|
|
23119
|
+
*/
|
|
23120
|
+
readonly username: string
|
|
23121
|
+
}
|
|
23122
|
+
|
|
23123
|
+
/**
|
|
23124
|
+
* Request parameters for getRateLimit1 operation in AdminApi.
|
|
23125
|
+
* @export
|
|
23126
|
+
* @interface AdminApiGetRateLimit1Request
|
|
23127
|
+
*/
|
|
23128
|
+
export interface AdminApiGetRateLimit1Request {
|
|
23129
|
+
/**
|
|
23130
|
+
*
|
|
23131
|
+
* @type {string}
|
|
23132
|
+
* @memberof AdminApiGetRateLimit1
|
|
23133
|
+
*/
|
|
23134
|
+
readonly username: string
|
|
23135
|
+
|
|
23136
|
+
/**
|
|
23137
|
+
*
|
|
23138
|
+
* @type {number}
|
|
23139
|
+
* @memberof AdminApiGetRateLimit1
|
|
23140
|
+
*/
|
|
23141
|
+
readonly rateLimit?: number
|
|
23142
|
+
}
|
|
23143
|
+
|
|
22945
23144
|
/**
|
|
22946
23145
|
* Request parameters for getStatisticsOfConversationOverTime operation in AdminApi.
|
|
22947
23146
|
* @export
|
|
@@ -23205,6 +23404,30 @@ export class AdminApi extends BaseAPI {
|
|
|
23205
23404
|
return AdminApiFp(this.configuration).getGlobalCredits(options).then((request) => request(this.axios, this.basePath));
|
|
23206
23405
|
}
|
|
23207
23406
|
|
|
23407
|
+
/**
|
|
23408
|
+
*
|
|
23409
|
+
* @summary Get the rate limit for a user
|
|
23410
|
+
* @param {AdminApiGetRateLimitRequest} requestParameters Request parameters.
|
|
23411
|
+
* @param {*} [options] Override http request option.
|
|
23412
|
+
* @throws {RequiredError}
|
|
23413
|
+
* @memberof AdminApi
|
|
23414
|
+
*/
|
|
23415
|
+
public getRateLimit(requestParameters: AdminApiGetRateLimitRequest, options?: RawAxiosRequestConfig) {
|
|
23416
|
+
return AdminApiFp(this.configuration).getRateLimit(requestParameters.username, options).then((request) => request(this.axios, this.basePath));
|
|
23417
|
+
}
|
|
23418
|
+
|
|
23419
|
+
/**
|
|
23420
|
+
*
|
|
23421
|
+
* @summary Get the rate limit for a user
|
|
23422
|
+
* @param {AdminApiGetRateLimit1Request} requestParameters Request parameters.
|
|
23423
|
+
* @param {*} [options] Override http request option.
|
|
23424
|
+
* @throws {RequiredError}
|
|
23425
|
+
* @memberof AdminApi
|
|
23426
|
+
*/
|
|
23427
|
+
public getRateLimit1(requestParameters: AdminApiGetRateLimit1Request, options?: RawAxiosRequestConfig) {
|
|
23428
|
+
return AdminApiFp(this.configuration).getRateLimit1(requestParameters.username, requestParameters.rateLimit, options).then((request) => request(this.axios, this.basePath));
|
|
23429
|
+
}
|
|
23430
|
+
|
|
23208
23431
|
/**
|
|
23209
23432
|
*
|
|
23210
23433
|
* @summary Get the conversation statistics of all users/datasets over time
|
package/dist/api.d.ts
CHANGED
|
@@ -10094,6 +10094,12 @@ export interface Llm {
|
|
|
10094
10094
|
* @memberof Llm
|
|
10095
10095
|
*/
|
|
10096
10096
|
'llmConsumptions'?: Array<LlmConsumption>;
|
|
10097
|
+
/**
|
|
10098
|
+
*
|
|
10099
|
+
* @type {boolean}
|
|
10100
|
+
* @memberof Llm
|
|
10101
|
+
*/
|
|
10102
|
+
'free'?: boolean;
|
|
10097
10103
|
}
|
|
10098
10104
|
/**
|
|
10099
10105
|
*
|
|
@@ -19134,6 +19140,12 @@ export interface User {
|
|
|
19134
19140
|
* @memberof User
|
|
19135
19141
|
*/
|
|
19136
19142
|
'dataPackage'?: number;
|
|
19143
|
+
/**
|
|
19144
|
+
*
|
|
19145
|
+
* @type {number}
|
|
19146
|
+
* @memberof User
|
|
19147
|
+
*/
|
|
19148
|
+
'rateLimitBucket'?: number;
|
|
19137
19149
|
/**
|
|
19138
19150
|
*
|
|
19139
19151
|
* @type {string}
|
|
@@ -19344,6 +19356,12 @@ export interface User {
|
|
|
19344
19356
|
* @memberof User
|
|
19345
19357
|
*/
|
|
19346
19358
|
'selectedOrgId'?: number;
|
|
19359
|
+
/**
|
|
19360
|
+
*
|
|
19361
|
+
* @type {number}
|
|
19362
|
+
* @memberof User
|
|
19363
|
+
*/
|
|
19364
|
+
'rateLimitBucketForUser'?: number;
|
|
19347
19365
|
}
|
|
19348
19366
|
export declare const UserPricingPlanEnum: {
|
|
19349
19367
|
readonly NotLogged: "NOT_LOGGED";
|
|
@@ -20379,6 +20397,12 @@ export interface UserProfileDto {
|
|
|
20379
20397
|
* @memberof UserProfileDto
|
|
20380
20398
|
*/
|
|
20381
20399
|
'quotaDatasetSpaceMbUsed'?: number;
|
|
20400
|
+
/**
|
|
20401
|
+
*
|
|
20402
|
+
* @type {number}
|
|
20403
|
+
* @memberof UserProfileDto
|
|
20404
|
+
*/
|
|
20405
|
+
'rateLimitBucket'?: number;
|
|
20382
20406
|
/**
|
|
20383
20407
|
*
|
|
20384
20408
|
* @type {string}
|
|
@@ -21017,6 +21041,23 @@ export declare const AdminApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
21017
21041
|
* @throws {RequiredError}
|
|
21018
21042
|
*/
|
|
21019
21043
|
getGlobalCredits: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
21044
|
+
/**
|
|
21045
|
+
*
|
|
21046
|
+
* @summary Get the rate limit for a user
|
|
21047
|
+
* @param {string} username
|
|
21048
|
+
* @param {*} [options] Override http request option.
|
|
21049
|
+
* @throws {RequiredError}
|
|
21050
|
+
*/
|
|
21051
|
+
getRateLimit: (username: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
21052
|
+
/**
|
|
21053
|
+
*
|
|
21054
|
+
* @summary Get the rate limit for a user
|
|
21055
|
+
* @param {string} username
|
|
21056
|
+
* @param {number} [rateLimit]
|
|
21057
|
+
* @param {*} [options] Override http request option.
|
|
21058
|
+
* @throws {RequiredError}
|
|
21059
|
+
*/
|
|
21060
|
+
getRateLimit1: (username: string, rateLimit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
21020
21061
|
/**
|
|
21021
21062
|
*
|
|
21022
21063
|
* @summary Get the conversation statistics of all users/datasets over time
|
|
@@ -21209,6 +21250,23 @@ export declare const AdminApiFp: (configuration?: Configuration) => {
|
|
|
21209
21250
|
* @throws {RequiredError}
|
|
21210
21251
|
*/
|
|
21211
21252
|
getGlobalCredits(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreditsInfoGlobalDto>>;
|
|
21253
|
+
/**
|
|
21254
|
+
*
|
|
21255
|
+
* @summary Get the rate limit for a user
|
|
21256
|
+
* @param {string} username
|
|
21257
|
+
* @param {*} [options] Override http request option.
|
|
21258
|
+
* @throws {RequiredError}
|
|
21259
|
+
*/
|
|
21260
|
+
getRateLimit(username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<number>>;
|
|
21261
|
+
/**
|
|
21262
|
+
*
|
|
21263
|
+
* @summary Get the rate limit for a user
|
|
21264
|
+
* @param {string} username
|
|
21265
|
+
* @param {number} [rateLimit]
|
|
21266
|
+
* @param {*} [options] Override http request option.
|
|
21267
|
+
* @throws {RequiredError}
|
|
21268
|
+
*/
|
|
21269
|
+
getRateLimit1(username: string, rateLimit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
21212
21270
|
/**
|
|
21213
21271
|
*
|
|
21214
21272
|
* @summary Get the conversation statistics of all users/datasets over time
|
|
@@ -21389,6 +21447,22 @@ export declare const AdminApiFactory: (configuration?: Configuration, basePath?:
|
|
|
21389
21447
|
* @throws {RequiredError}
|
|
21390
21448
|
*/
|
|
21391
21449
|
getGlobalCredits(options?: RawAxiosRequestConfig): AxiosPromise<CreditsInfoGlobalDto>;
|
|
21450
|
+
/**
|
|
21451
|
+
*
|
|
21452
|
+
* @summary Get the rate limit for a user
|
|
21453
|
+
* @param {AdminApiGetRateLimitRequest} requestParameters Request parameters.
|
|
21454
|
+
* @param {*} [options] Override http request option.
|
|
21455
|
+
* @throws {RequiredError}
|
|
21456
|
+
*/
|
|
21457
|
+
getRateLimit(requestParameters: AdminApiGetRateLimitRequest, options?: RawAxiosRequestConfig): AxiosPromise<number>;
|
|
21458
|
+
/**
|
|
21459
|
+
*
|
|
21460
|
+
* @summary Get the rate limit for a user
|
|
21461
|
+
* @param {AdminApiGetRateLimit1Request} requestParameters Request parameters.
|
|
21462
|
+
* @param {*} [options] Override http request option.
|
|
21463
|
+
* @throws {RequiredError}
|
|
21464
|
+
*/
|
|
21465
|
+
getRateLimit1(requestParameters: AdminApiGetRateLimit1Request, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
21392
21466
|
/**
|
|
21393
21467
|
*
|
|
21394
21468
|
* @summary Get the conversation statistics of all users/datasets over time
|
|
@@ -21683,6 +21757,38 @@ export interface AdminApiGetAiAssistantRequest {
|
|
|
21683
21757
|
*/
|
|
21684
21758
|
readonly aiAssistantId: number;
|
|
21685
21759
|
}
|
|
21760
|
+
/**
|
|
21761
|
+
* Request parameters for getRateLimit operation in AdminApi.
|
|
21762
|
+
* @export
|
|
21763
|
+
* @interface AdminApiGetRateLimitRequest
|
|
21764
|
+
*/
|
|
21765
|
+
export interface AdminApiGetRateLimitRequest {
|
|
21766
|
+
/**
|
|
21767
|
+
*
|
|
21768
|
+
* @type {string}
|
|
21769
|
+
* @memberof AdminApiGetRateLimit
|
|
21770
|
+
*/
|
|
21771
|
+
readonly username: string;
|
|
21772
|
+
}
|
|
21773
|
+
/**
|
|
21774
|
+
* Request parameters for getRateLimit1 operation in AdminApi.
|
|
21775
|
+
* @export
|
|
21776
|
+
* @interface AdminApiGetRateLimit1Request
|
|
21777
|
+
*/
|
|
21778
|
+
export interface AdminApiGetRateLimit1Request {
|
|
21779
|
+
/**
|
|
21780
|
+
*
|
|
21781
|
+
* @type {string}
|
|
21782
|
+
* @memberof AdminApiGetRateLimit1
|
|
21783
|
+
*/
|
|
21784
|
+
readonly username: string;
|
|
21785
|
+
/**
|
|
21786
|
+
*
|
|
21787
|
+
* @type {number}
|
|
21788
|
+
* @memberof AdminApiGetRateLimit1
|
|
21789
|
+
*/
|
|
21790
|
+
readonly rateLimit?: number;
|
|
21791
|
+
}
|
|
21686
21792
|
/**
|
|
21687
21793
|
* Request parameters for getStatisticsOfConversationOverTime operation in AdminApi.
|
|
21688
21794
|
* @export
|
|
@@ -21902,6 +22008,24 @@ export declare class AdminApi extends BaseAPI {
|
|
|
21902
22008
|
* @memberof AdminApi
|
|
21903
22009
|
*/
|
|
21904
22010
|
getGlobalCredits(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreditsInfoGlobalDto, any, {}>>;
|
|
22011
|
+
/**
|
|
22012
|
+
*
|
|
22013
|
+
* @summary Get the rate limit for a user
|
|
22014
|
+
* @param {AdminApiGetRateLimitRequest} requestParameters Request parameters.
|
|
22015
|
+
* @param {*} [options] Override http request option.
|
|
22016
|
+
* @throws {RequiredError}
|
|
22017
|
+
* @memberof AdminApi
|
|
22018
|
+
*/
|
|
22019
|
+
getRateLimit(requestParameters: AdminApiGetRateLimitRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<number, any, {}>>;
|
|
22020
|
+
/**
|
|
22021
|
+
*
|
|
22022
|
+
* @summary Get the rate limit for a user
|
|
22023
|
+
* @param {AdminApiGetRateLimit1Request} requestParameters Request parameters.
|
|
22024
|
+
* @param {*} [options] Override http request option.
|
|
22025
|
+
* @throws {RequiredError}
|
|
22026
|
+
* @memberof AdminApi
|
|
22027
|
+
*/
|
|
22028
|
+
getRateLimit1(requestParameters: AdminApiGetRateLimit1Request, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
21905
22029
|
/**
|
|
21906
22030
|
*
|
|
21907
22031
|
* @summary Get the conversation statistics of all users/datasets over time
|
package/dist/api.js
CHANGED
|
@@ -1914,6 +1914,124 @@ var AdminApiAxiosParamCreator = function (configuration) {
|
|
|
1914
1914
|
});
|
|
1915
1915
|
});
|
|
1916
1916
|
},
|
|
1917
|
+
/**
|
|
1918
|
+
*
|
|
1919
|
+
* @summary Get the rate limit for a user
|
|
1920
|
+
* @param {string} username
|
|
1921
|
+
* @param {*} [options] Override http request option.
|
|
1922
|
+
* @throws {RequiredError}
|
|
1923
|
+
*/
|
|
1924
|
+
getRateLimit: function (username_1) {
|
|
1925
|
+
var args_1 = [];
|
|
1926
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
1927
|
+
args_1[_i - 1] = arguments[_i];
|
|
1928
|
+
}
|
|
1929
|
+
return __awaiter(_this, __spreadArray([username_1], args_1, true), void 0, function (username, options) {
|
|
1930
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1931
|
+
if (options === void 0) { options = {}; }
|
|
1932
|
+
return __generator(this, function (_a) {
|
|
1933
|
+
switch (_a.label) {
|
|
1934
|
+
case 0:
|
|
1935
|
+
// verify required parameter 'username' is not null or undefined
|
|
1936
|
+
(0, common_1.assertParamExists)('getRateLimit', 'username', username);
|
|
1937
|
+
localVarPath = "/api/admin/rate-limit";
|
|
1938
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1939
|
+
if (configuration) {
|
|
1940
|
+
baseOptions = configuration.baseOptions;
|
|
1941
|
+
}
|
|
1942
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1943
|
+
localVarHeaderParameter = {};
|
|
1944
|
+
localVarQueryParameter = {};
|
|
1945
|
+
// authentication QAnswer-Api-Key required
|
|
1946
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "QAnswer-Api-Key", configuration)
|
|
1947
|
+
// authentication Bearer required
|
|
1948
|
+
// http bearer authentication required
|
|
1949
|
+
];
|
|
1950
|
+
case 1:
|
|
1951
|
+
// authentication QAnswer-Api-Key required
|
|
1952
|
+
_a.sent();
|
|
1953
|
+
// authentication Bearer required
|
|
1954
|
+
// http bearer authentication required
|
|
1955
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
1956
|
+
case 2:
|
|
1957
|
+
// authentication Bearer required
|
|
1958
|
+
// http bearer authentication required
|
|
1959
|
+
_a.sent();
|
|
1960
|
+
if (username !== undefined) {
|
|
1961
|
+
localVarQueryParameter['username'] = username;
|
|
1962
|
+
}
|
|
1963
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1964
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1965
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1966
|
+
return [2 /*return*/, {
|
|
1967
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1968
|
+
options: localVarRequestOptions,
|
|
1969
|
+
}];
|
|
1970
|
+
}
|
|
1971
|
+
});
|
|
1972
|
+
});
|
|
1973
|
+
},
|
|
1974
|
+
/**
|
|
1975
|
+
*
|
|
1976
|
+
* @summary Get the rate limit for a user
|
|
1977
|
+
* @param {string} username
|
|
1978
|
+
* @param {number} [rateLimit]
|
|
1979
|
+
* @param {*} [options] Override http request option.
|
|
1980
|
+
* @throws {RequiredError}
|
|
1981
|
+
*/
|
|
1982
|
+
getRateLimit1: function (username_1, rateLimit_1) {
|
|
1983
|
+
var args_1 = [];
|
|
1984
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1985
|
+
args_1[_i - 2] = arguments[_i];
|
|
1986
|
+
}
|
|
1987
|
+
return __awaiter(_this, __spreadArray([username_1, rateLimit_1], args_1, true), void 0, function (username, rateLimit, options) {
|
|
1988
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1989
|
+
if (options === void 0) { options = {}; }
|
|
1990
|
+
return __generator(this, function (_a) {
|
|
1991
|
+
switch (_a.label) {
|
|
1992
|
+
case 0:
|
|
1993
|
+
// verify required parameter 'username' is not null or undefined
|
|
1994
|
+
(0, common_1.assertParamExists)('getRateLimit1', 'username', username);
|
|
1995
|
+
localVarPath = "/api/admin/rate-limit";
|
|
1996
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1997
|
+
if (configuration) {
|
|
1998
|
+
baseOptions = configuration.baseOptions;
|
|
1999
|
+
}
|
|
2000
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2001
|
+
localVarHeaderParameter = {};
|
|
2002
|
+
localVarQueryParameter = {};
|
|
2003
|
+
// authentication QAnswer-Api-Key required
|
|
2004
|
+
return [4 /*yield*/, (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "QAnswer-Api-Key", configuration)
|
|
2005
|
+
// authentication Bearer required
|
|
2006
|
+
// http bearer authentication required
|
|
2007
|
+
];
|
|
2008
|
+
case 1:
|
|
2009
|
+
// authentication QAnswer-Api-Key required
|
|
2010
|
+
_a.sent();
|
|
2011
|
+
// authentication Bearer required
|
|
2012
|
+
// http bearer authentication required
|
|
2013
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
2014
|
+
case 2:
|
|
2015
|
+
// authentication Bearer required
|
|
2016
|
+
// http bearer authentication required
|
|
2017
|
+
_a.sent();
|
|
2018
|
+
if (username !== undefined) {
|
|
2019
|
+
localVarQueryParameter['username'] = username;
|
|
2020
|
+
}
|
|
2021
|
+
if (rateLimit !== undefined) {
|
|
2022
|
+
localVarQueryParameter['rateLimit'] = rateLimit;
|
|
2023
|
+
}
|
|
2024
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2025
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2026
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2027
|
+
return [2 /*return*/, {
|
|
2028
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2029
|
+
options: localVarRequestOptions,
|
|
2030
|
+
}];
|
|
2031
|
+
}
|
|
2032
|
+
});
|
|
2033
|
+
});
|
|
2034
|
+
},
|
|
1917
2035
|
/**
|
|
1918
2036
|
*
|
|
1919
2037
|
* @summary Get the conversation statistics of all users/datasets over time
|
|
@@ -2759,6 +2877,53 @@ var AdminApiFp = function (configuration) {
|
|
|
2759
2877
|
});
|
|
2760
2878
|
});
|
|
2761
2879
|
},
|
|
2880
|
+
/**
|
|
2881
|
+
*
|
|
2882
|
+
* @summary Get the rate limit for a user
|
|
2883
|
+
* @param {string} username
|
|
2884
|
+
* @param {*} [options] Override http request option.
|
|
2885
|
+
* @throws {RequiredError}
|
|
2886
|
+
*/
|
|
2887
|
+
getRateLimit: function (username, options) {
|
|
2888
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2889
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2890
|
+
var _a, _b, _c;
|
|
2891
|
+
return __generator(this, function (_d) {
|
|
2892
|
+
switch (_d.label) {
|
|
2893
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRateLimit(username, options)];
|
|
2894
|
+
case 1:
|
|
2895
|
+
localVarAxiosArgs = _d.sent();
|
|
2896
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2897
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminApi.getRateLimit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2898
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2899
|
+
}
|
|
2900
|
+
});
|
|
2901
|
+
});
|
|
2902
|
+
},
|
|
2903
|
+
/**
|
|
2904
|
+
*
|
|
2905
|
+
* @summary Get the rate limit for a user
|
|
2906
|
+
* @param {string} username
|
|
2907
|
+
* @param {number} [rateLimit]
|
|
2908
|
+
* @param {*} [options] Override http request option.
|
|
2909
|
+
* @throws {RequiredError}
|
|
2910
|
+
*/
|
|
2911
|
+
getRateLimit1: function (username, rateLimit, options) {
|
|
2912
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2913
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2914
|
+
var _a, _b, _c;
|
|
2915
|
+
return __generator(this, function (_d) {
|
|
2916
|
+
switch (_d.label) {
|
|
2917
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getRateLimit1(username, rateLimit, options)];
|
|
2918
|
+
case 1:
|
|
2919
|
+
localVarAxiosArgs = _d.sent();
|
|
2920
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2921
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AdminApi.getRateLimit1']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2922
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2923
|
+
}
|
|
2924
|
+
});
|
|
2925
|
+
});
|
|
2926
|
+
},
|
|
2762
2927
|
/**
|
|
2763
2928
|
*
|
|
2764
2929
|
* @summary Get the conversation statistics of all users/datasets over time
|
|
@@ -3117,6 +3282,26 @@ var AdminApiFactory = function (configuration, basePath, axios) {
|
|
|
3117
3282
|
getGlobalCredits: function (options) {
|
|
3118
3283
|
return localVarFp.getGlobalCredits(options).then(function (request) { return request(axios, basePath); });
|
|
3119
3284
|
},
|
|
3285
|
+
/**
|
|
3286
|
+
*
|
|
3287
|
+
* @summary Get the rate limit for a user
|
|
3288
|
+
* @param {AdminApiGetRateLimitRequest} requestParameters Request parameters.
|
|
3289
|
+
* @param {*} [options] Override http request option.
|
|
3290
|
+
* @throws {RequiredError}
|
|
3291
|
+
*/
|
|
3292
|
+
getRateLimit: function (requestParameters, options) {
|
|
3293
|
+
return localVarFp.getRateLimit(requestParameters.username, options).then(function (request) { return request(axios, basePath); });
|
|
3294
|
+
},
|
|
3295
|
+
/**
|
|
3296
|
+
*
|
|
3297
|
+
* @summary Get the rate limit for a user
|
|
3298
|
+
* @param {AdminApiGetRateLimit1Request} requestParameters Request parameters.
|
|
3299
|
+
* @param {*} [options] Override http request option.
|
|
3300
|
+
* @throws {RequiredError}
|
|
3301
|
+
*/
|
|
3302
|
+
getRateLimit1: function (requestParameters, options) {
|
|
3303
|
+
return localVarFp.getRateLimit1(requestParameters.username, requestParameters.rateLimit, options).then(function (request) { return request(axios, basePath); });
|
|
3304
|
+
},
|
|
3120
3305
|
/**
|
|
3121
3306
|
*
|
|
3122
3307
|
* @summary Get the conversation statistics of all users/datasets over time
|
|
@@ -3378,6 +3563,30 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
3378
3563
|
var _this = this;
|
|
3379
3564
|
return (0, exports.AdminApiFp)(this.configuration).getGlobalCredits(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3380
3565
|
};
|
|
3566
|
+
/**
|
|
3567
|
+
*
|
|
3568
|
+
* @summary Get the rate limit for a user
|
|
3569
|
+
* @param {AdminApiGetRateLimitRequest} requestParameters Request parameters.
|
|
3570
|
+
* @param {*} [options] Override http request option.
|
|
3571
|
+
* @throws {RequiredError}
|
|
3572
|
+
* @memberof AdminApi
|
|
3573
|
+
*/
|
|
3574
|
+
AdminApi.prototype.getRateLimit = function (requestParameters, options) {
|
|
3575
|
+
var _this = this;
|
|
3576
|
+
return (0, exports.AdminApiFp)(this.configuration).getRateLimit(requestParameters.username, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3577
|
+
};
|
|
3578
|
+
/**
|
|
3579
|
+
*
|
|
3580
|
+
* @summary Get the rate limit for a user
|
|
3581
|
+
* @param {AdminApiGetRateLimit1Request} requestParameters Request parameters.
|
|
3582
|
+
* @param {*} [options] Override http request option.
|
|
3583
|
+
* @throws {RequiredError}
|
|
3584
|
+
* @memberof AdminApi
|
|
3585
|
+
*/
|
|
3586
|
+
AdminApi.prototype.getRateLimit1 = function (requestParameters, options) {
|
|
3587
|
+
var _this = this;
|
|
3588
|
+
return (0, exports.AdminApiFp)(this.configuration).getRateLimit1(requestParameters.username, requestParameters.rateLimit, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3589
|
+
};
|
|
3381
3590
|
/**
|
|
3382
3591
|
*
|
|
3383
3592
|
* @summary Get the conversation statistics of all users/datasets over time
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|