qanswer-sdk 3.1245.0-main → 3.1248.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 +574 -46
- package/dist/api.d.ts +324 -36
- package/dist/api.js +427 -24
- package/package.json +1 -1
- package/qanswer-sdk-3.1248.0-main.tgz +0 -0
- package/qanswer-sdk-3.1245.0-main.tgz +0 -0
package/api.ts
CHANGED
|
@@ -9412,6 +9412,12 @@ export interface RAGPayload {
|
|
|
9412
9412
|
* @memberof RAGPayload
|
|
9413
9413
|
*/
|
|
9414
9414
|
'filters'?: Array<Array<SearchMetadataFilter>>;
|
|
9415
|
+
/**
|
|
9416
|
+
*
|
|
9417
|
+
* @type {Array<Array<SearchMetadataFilter>>}
|
|
9418
|
+
* @memberof RAGPayload
|
|
9419
|
+
*/
|
|
9420
|
+
'exclude_filters'?: Array<Array<SearchMetadataFilter>>;
|
|
9415
9421
|
/**
|
|
9416
9422
|
* The hashes of the indexes to be used for the response.
|
|
9417
9423
|
* @type {Array<object>}
|
|
@@ -10323,108 +10329,108 @@ export type ReportCopilotSlotTaskSettingsBotAnswerLengthEnum = typeof ReportCopi
|
|
|
10323
10329
|
/**
|
|
10324
10330
|
*
|
|
10325
10331
|
* @export
|
|
10326
|
-
* @interface
|
|
10332
|
+
* @interface ReportCopilotSlotTaskSettingsUpdate
|
|
10327
10333
|
*/
|
|
10328
|
-
export interface
|
|
10334
|
+
export interface ReportCopilotSlotTaskSettingsUpdate {
|
|
10329
10335
|
/**
|
|
10330
10336
|
*
|
|
10331
10337
|
* @type {string}
|
|
10332
|
-
* @memberof
|
|
10338
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10333
10339
|
*/
|
|
10334
10340
|
'prompt'?: string;
|
|
10335
10341
|
/**
|
|
10336
10342
|
* The LLM choice. If not provided, the system default will be used.
|
|
10337
10343
|
* @type {string}
|
|
10338
|
-
* @memberof
|
|
10344
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10339
10345
|
*/
|
|
10340
10346
|
'llm_choice'?: string;
|
|
10341
10347
|
/**
|
|
10342
10348
|
*
|
|
10343
10349
|
* @type {number}
|
|
10344
|
-
* @memberof
|
|
10350
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10345
10351
|
*/
|
|
10346
10352
|
'bot_seed'?: number;
|
|
10347
10353
|
/**
|
|
10348
10354
|
*
|
|
10349
10355
|
* @type {number}
|
|
10350
|
-
* @memberof
|
|
10356
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10351
10357
|
*/
|
|
10352
10358
|
'bot_temperature'?: number;
|
|
10353
10359
|
/**
|
|
10354
10360
|
*
|
|
10355
10361
|
* @type {string}
|
|
10356
|
-
* @memberof
|
|
10362
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10357
10363
|
*/
|
|
10358
|
-
'bot_answer_length'?:
|
|
10364
|
+
'bot_answer_length'?: ReportCopilotSlotTaskSettingsUpdateBotAnswerLengthEnum;
|
|
10359
10365
|
/**
|
|
10360
10366
|
*
|
|
10361
10367
|
* @type {number}
|
|
10362
|
-
* @memberof
|
|
10368
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10363
10369
|
*/
|
|
10364
10370
|
'number_of_references'?: number;
|
|
10365
10371
|
/**
|
|
10366
10372
|
*
|
|
10367
10373
|
* @type {number}
|
|
10368
|
-
* @memberof
|
|
10374
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10369
10375
|
*/
|
|
10370
10376
|
'stream_speed'?: number;
|
|
10371
10377
|
/**
|
|
10372
10378
|
*
|
|
10373
10379
|
* @type {number}
|
|
10374
|
-
* @memberof
|
|
10380
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10375
10381
|
*/
|
|
10376
10382
|
'context_window'?: number;
|
|
10377
10383
|
/**
|
|
10378
10384
|
*
|
|
10379
10385
|
* @type {number}
|
|
10380
|
-
* @memberof
|
|
10386
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10381
10387
|
*/
|
|
10382
10388
|
'max_tokens'?: number;
|
|
10383
10389
|
/**
|
|
10384
10390
|
*
|
|
10385
10391
|
* @type {{ [key: string]: string; }}
|
|
10386
|
-
* @memberof
|
|
10392
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10387
10393
|
*/
|
|
10388
10394
|
'slots_values'?: { [key: string]: string; };
|
|
10389
10395
|
/**
|
|
10390
10396
|
*
|
|
10391
10397
|
* @type {string}
|
|
10392
|
-
* @memberof
|
|
10398
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10393
10399
|
*/
|
|
10394
10400
|
'bot_name'?: string;
|
|
10395
10401
|
/**
|
|
10396
10402
|
*
|
|
10397
10403
|
* @type {string}
|
|
10398
|
-
* @memberof
|
|
10404
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10399
10405
|
*/
|
|
10400
10406
|
'bot_description'?: string;
|
|
10401
10407
|
/**
|
|
10402
10408
|
* The LLM ID. This field is populated based on the llm_choice.
|
|
10403
10409
|
* @type {number}
|
|
10404
|
-
* @memberof
|
|
10410
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10405
10411
|
*/
|
|
10406
10412
|
'llm_id'?: number;
|
|
10407
10413
|
/**
|
|
10408
10414
|
*
|
|
10409
10415
|
* @type {LLMEndpointReadInput}
|
|
10410
|
-
* @memberof
|
|
10416
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10411
10417
|
*/
|
|
10412
10418
|
'llm_endpoint'?: LLMEndpointReadInput;
|
|
10413
10419
|
/**
|
|
10414
10420
|
*
|
|
10415
10421
|
* @type {number}
|
|
10416
|
-
* @memberof
|
|
10422
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10417
10423
|
*/
|
|
10418
10424
|
'id'?: number;
|
|
10419
10425
|
}
|
|
10420
10426
|
|
|
10421
|
-
export const
|
|
10427
|
+
export const ReportCopilotSlotTaskSettingsUpdateBotAnswerLengthEnum = {
|
|
10422
10428
|
Short: 'short',
|
|
10423
10429
|
Brief: 'brief',
|
|
10424
10430
|
Long: 'long'
|
|
10425
10431
|
} as const;
|
|
10426
10432
|
|
|
10427
|
-
export type
|
|
10433
|
+
export type ReportCopilotSlotTaskSettingsUpdateBotAnswerLengthEnum = typeof ReportCopilotSlotTaskSettingsUpdateBotAnswerLengthEnum[keyof typeof ReportCopilotSlotTaskSettingsUpdateBotAnswerLengthEnum];
|
|
10428
10434
|
|
|
10429
10435
|
/**
|
|
10430
10436
|
*
|
|
@@ -11207,6 +11213,12 @@ export interface SearchPayload {
|
|
|
11207
11213
|
* @memberof SearchPayload
|
|
11208
11214
|
*/
|
|
11209
11215
|
'filters'?: Array<Array<SearchMetadataFilter>>;
|
|
11216
|
+
/**
|
|
11217
|
+
*
|
|
11218
|
+
* @type {Array<Array<SearchMetadataFilter>>}
|
|
11219
|
+
* @memberof SearchPayload
|
|
11220
|
+
*/
|
|
11221
|
+
'exclude_filters'?: Array<Array<SearchMetadataFilter>>;
|
|
11210
11222
|
/**
|
|
11211
11223
|
* The hashes of the indexes to be used for the response.
|
|
11212
11224
|
* @type {Array<object>}
|
|
@@ -11920,19 +11932,19 @@ export interface SlotUpdate {
|
|
|
11920
11932
|
* @type {string}
|
|
11921
11933
|
* @memberof SlotUpdate
|
|
11922
11934
|
*/
|
|
11923
|
-
'prompt'
|
|
11935
|
+
'prompt'?: string;
|
|
11924
11936
|
/**
|
|
11925
11937
|
*
|
|
11926
11938
|
* @type {string}
|
|
11927
11939
|
* @memberof SlotUpdate
|
|
11928
11940
|
*/
|
|
11929
|
-
'completion'
|
|
11941
|
+
'completion'?: string;
|
|
11930
11942
|
/**
|
|
11931
11943
|
*
|
|
11932
11944
|
* @type {Array<Source>}
|
|
11933
11945
|
* @memberof SlotUpdate
|
|
11934
11946
|
*/
|
|
11935
|
-
'sources'
|
|
11947
|
+
'sources'?: Array<Source>;
|
|
11936
11948
|
/**
|
|
11937
11949
|
*
|
|
11938
11950
|
* @type {string}
|
|
@@ -11965,10 +11977,10 @@ export interface SlotUpdate {
|
|
|
11965
11977
|
'is_input_data_cropped'?: boolean;
|
|
11966
11978
|
/**
|
|
11967
11979
|
*
|
|
11968
|
-
* @type {
|
|
11980
|
+
* @type {ReportCopilotSlotTaskSettingsUpdate}
|
|
11969
11981
|
* @memberof SlotUpdate
|
|
11970
11982
|
*/
|
|
11971
|
-
'task_settings'?:
|
|
11983
|
+
'task_settings'?: ReportCopilotSlotTaskSettingsUpdate;
|
|
11972
11984
|
}
|
|
11973
11985
|
|
|
11974
11986
|
export const SlotUpdateModeEnum = {
|
|
@@ -13688,6 +13700,12 @@ export interface Text2SparqlPayload {
|
|
|
13688
13700
|
* @memberof Text2SparqlPayload
|
|
13689
13701
|
*/
|
|
13690
13702
|
'filters'?: Array<Array<SearchMetadataFilter>>;
|
|
13703
|
+
/**
|
|
13704
|
+
*
|
|
13705
|
+
* @type {Array<Array<SearchMetadataFilter>>}
|
|
13706
|
+
* @memberof Text2SparqlPayload
|
|
13707
|
+
*/
|
|
13708
|
+
'exclude_filters'?: Array<Array<SearchMetadataFilter>>;
|
|
13691
13709
|
/**
|
|
13692
13710
|
* The hashes of the indexes to be used for the response.
|
|
13693
13711
|
* @type {Array<object>}
|
|
@@ -16875,11 +16893,12 @@ export const AiAssistantApiAxiosParamCreator = function (configuration?: Configu
|
|
|
16875
16893
|
* @summary How much quota is still available for a dataset
|
|
16876
16894
|
* @param {string} username
|
|
16877
16895
|
* @param {string} dataset
|
|
16896
|
+
* @param {string} [conversationId]
|
|
16878
16897
|
* @param {string} [qAnswerApiKey]
|
|
16879
16898
|
* @param {*} [options] Override http request option.
|
|
16880
16899
|
* @throws {RequiredError}
|
|
16881
16900
|
*/
|
|
16882
|
-
availableQuotaForDataset: async (username: string, dataset: string, qAnswerApiKey?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16901
|
+
availableQuotaForDataset: async (username: string, dataset: string, conversationId?: string, qAnswerApiKey?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16883
16902
|
// verify required parameter 'username' is not null or undefined
|
|
16884
16903
|
assertParamExists('availableQuotaForDataset', 'username', username)
|
|
16885
16904
|
// verify required parameter 'dataset' is not null or undefined
|
|
@@ -16911,6 +16930,10 @@ export const AiAssistantApiAxiosParamCreator = function (configuration?: Configu
|
|
|
16911
16930
|
localVarQueryParameter['dataset'] = dataset;
|
|
16912
16931
|
}
|
|
16913
16932
|
|
|
16933
|
+
if (conversationId !== undefined) {
|
|
16934
|
+
localVarQueryParameter['conversation_id'] = conversationId;
|
|
16935
|
+
}
|
|
16936
|
+
|
|
16914
16937
|
if (qAnswerApiKey != null) {
|
|
16915
16938
|
localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
|
|
16916
16939
|
}
|
|
@@ -17782,12 +17805,13 @@ export const AiAssistantApiFp = function(configuration?: Configuration) {
|
|
|
17782
17805
|
* @summary How much quota is still available for a dataset
|
|
17783
17806
|
* @param {string} username
|
|
17784
17807
|
* @param {string} dataset
|
|
17808
|
+
* @param {string} [conversationId]
|
|
17785
17809
|
* @param {string} [qAnswerApiKey]
|
|
17786
17810
|
* @param {*} [options] Override http request option.
|
|
17787
17811
|
* @throws {RequiredError}
|
|
17788
17812
|
*/
|
|
17789
|
-
async availableQuotaForDataset(username: string, dataset: string, qAnswerApiKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AvailableSpaceQuotaForDataset>> {
|
|
17790
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.availableQuotaForDataset(username, dataset, qAnswerApiKey, options);
|
|
17813
|
+
async availableQuotaForDataset(username: string, dataset: string, conversationId?: string, qAnswerApiKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AvailableSpaceQuotaForDataset>> {
|
|
17814
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.availableQuotaForDataset(username, dataset, conversationId, qAnswerApiKey, options);
|
|
17791
17815
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17792
17816
|
const localVarOperationServerBasePath = operationServerMap['AiAssistantApi.availableQuotaForDataset']?.[localVarOperationServerIndex]?.url;
|
|
17793
17817
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -18042,7 +18066,7 @@ export const AiAssistantApiFactory = function (configuration?: Configuration, ba
|
|
|
18042
18066
|
* @throws {RequiredError}
|
|
18043
18067
|
*/
|
|
18044
18068
|
availableQuotaForDataset(requestParameters: AiAssistantApiAvailableQuotaForDatasetRequest, options?: RawAxiosRequestConfig): AxiosPromise<AvailableSpaceQuotaForDataset> {
|
|
18045
|
-
return localVarFp.availableQuotaForDataset(requestParameters.username, requestParameters.dataset, requestParameters.qAnswerApiKey, options).then((request) => request(axios, basePath));
|
|
18069
|
+
return localVarFp.availableQuotaForDataset(requestParameters.username, requestParameters.dataset, requestParameters.conversationId, requestParameters.qAnswerApiKey, options).then((request) => request(axios, basePath));
|
|
18046
18070
|
},
|
|
18047
18071
|
/**
|
|
18048
18072
|
*
|
|
@@ -18225,6 +18249,13 @@ export interface AiAssistantApiAvailableQuotaForDatasetRequest {
|
|
|
18225
18249
|
*/
|
|
18226
18250
|
readonly dataset: string
|
|
18227
18251
|
|
|
18252
|
+
/**
|
|
18253
|
+
*
|
|
18254
|
+
* @type {string}
|
|
18255
|
+
* @memberof AiAssistantApiAvailableQuotaForDataset
|
|
18256
|
+
*/
|
|
18257
|
+
readonly conversationId?: string
|
|
18258
|
+
|
|
18228
18259
|
/**
|
|
18229
18260
|
*
|
|
18230
18261
|
* @type {string}
|
|
@@ -18621,7 +18652,7 @@ export class AiAssistantApi extends BaseAPI {
|
|
|
18621
18652
|
* @memberof AiAssistantApi
|
|
18622
18653
|
*/
|
|
18623
18654
|
public availableQuotaForDataset(requestParameters: AiAssistantApiAvailableQuotaForDatasetRequest, options?: RawAxiosRequestConfig) {
|
|
18624
|
-
return AiAssistantApiFp(this.configuration).availableQuotaForDataset(requestParameters.username, requestParameters.dataset, requestParameters.qAnswerApiKey, options).then((request) => request(this.axios, this.basePath));
|
|
18655
|
+
return AiAssistantApiFp(this.configuration).availableQuotaForDataset(requestParameters.username, requestParameters.dataset, requestParameters.conversationId, requestParameters.qAnswerApiKey, options).then((request) => request(this.axios, this.basePath));
|
|
18625
18656
|
}
|
|
18626
18657
|
|
|
18627
18658
|
/**
|
|
@@ -23999,6 +24030,91 @@ export const ConnectorDocumentApiAxiosParamCreator = function (configuration?: C
|
|
|
23999
24030
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
24000
24031
|
localVarRequestOptions.data = serializeDataIfNeeded(createConnectorRequest, localVarRequestOptions, configuration)
|
|
24001
24032
|
|
|
24033
|
+
return {
|
|
24034
|
+
url: toPathString(localVarUrlObj),
|
|
24035
|
+
options: localVarRequestOptions,
|
|
24036
|
+
};
|
|
24037
|
+
},
|
|
24038
|
+
/**
|
|
24039
|
+
*
|
|
24040
|
+
* @param {string} username
|
|
24041
|
+
* @param {string} dataset
|
|
24042
|
+
* @param {string} fileId
|
|
24043
|
+
* @param {Array<File>} file
|
|
24044
|
+
* @param {number} [connectorId]
|
|
24045
|
+
* @param {string} [qAnswerApiKey]
|
|
24046
|
+
* @param {DocumentMetadataListWrapper} [metadata]
|
|
24047
|
+
* @param {*} [options] Override http request option.
|
|
24048
|
+
* @throws {RequiredError}
|
|
24049
|
+
*/
|
|
24050
|
+
overrideDocumentConnectorFileByFileId: async (username: string, dataset: string, fileId: string, file: Array<File>, connectorId?: number, qAnswerApiKey?: string, metadata?: DocumentMetadataListWrapper, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24051
|
+
// verify required parameter 'username' is not null or undefined
|
|
24052
|
+
assertParamExists('overrideDocumentConnectorFileByFileId', 'username', username)
|
|
24053
|
+
// verify required parameter 'dataset' is not null or undefined
|
|
24054
|
+
assertParamExists('overrideDocumentConnectorFileByFileId', 'dataset', dataset)
|
|
24055
|
+
// verify required parameter 'fileId' is not null or undefined
|
|
24056
|
+
assertParamExists('overrideDocumentConnectorFileByFileId', 'fileId', fileId)
|
|
24057
|
+
// verify required parameter 'file' is not null or undefined
|
|
24058
|
+
assertParamExists('overrideDocumentConnectorFileByFileId', 'file', file)
|
|
24059
|
+
const localVarPath = `/api/connectors/document/override`;
|
|
24060
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24061
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24062
|
+
let baseOptions;
|
|
24063
|
+
if (configuration) {
|
|
24064
|
+
baseOptions = configuration.baseOptions;
|
|
24065
|
+
}
|
|
24066
|
+
|
|
24067
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
24068
|
+
const localVarHeaderParameter = {} as any;
|
|
24069
|
+
const localVarQueryParameter = {} as any;
|
|
24070
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
24071
|
+
|
|
24072
|
+
// authentication QAnswer-Api-Key required
|
|
24073
|
+
await setApiKeyToObject(localVarHeaderParameter, "QAnswer-Api-Key", configuration)
|
|
24074
|
+
|
|
24075
|
+
// authentication Bearer required
|
|
24076
|
+
// http bearer authentication required
|
|
24077
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
24078
|
+
|
|
24079
|
+
if (username !== undefined) {
|
|
24080
|
+
localVarQueryParameter['username'] = username;
|
|
24081
|
+
}
|
|
24082
|
+
|
|
24083
|
+
if (dataset !== undefined) {
|
|
24084
|
+
localVarQueryParameter['dataset'] = dataset;
|
|
24085
|
+
}
|
|
24086
|
+
|
|
24087
|
+
if (connectorId !== undefined) {
|
|
24088
|
+
localVarQueryParameter['connector_id'] = connectorId;
|
|
24089
|
+
}
|
|
24090
|
+
|
|
24091
|
+
if (fileId !== undefined) {
|
|
24092
|
+
localVarQueryParameter['file_id'] = fileId;
|
|
24093
|
+
}
|
|
24094
|
+
|
|
24095
|
+
if (qAnswerApiKey != null) {
|
|
24096
|
+
localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
|
|
24097
|
+
}
|
|
24098
|
+
|
|
24099
|
+
if (file) {
|
|
24100
|
+
file.forEach((element) => {
|
|
24101
|
+
localVarFormParams.append('file', element as any);
|
|
24102
|
+
})
|
|
24103
|
+
}
|
|
24104
|
+
|
|
24105
|
+
|
|
24106
|
+
if (metadata !== undefined) {
|
|
24107
|
+
localVarFormParams.append('metadata', new Blob([JSON.stringify(metadata)], { type: "application/json", }));
|
|
24108
|
+
}
|
|
24109
|
+
|
|
24110
|
+
|
|
24111
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
24112
|
+
|
|
24113
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24114
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24115
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
24116
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
24117
|
+
|
|
24002
24118
|
return {
|
|
24003
24119
|
url: toPathString(localVarUrlObj),
|
|
24004
24120
|
options: localVarRequestOptions,
|
|
@@ -24081,6 +24197,24 @@ export const ConnectorDocumentApiFp = function(configuration?: Configuration) {
|
|
|
24081
24197
|
const localVarOperationServerBasePath = operationServerMap['ConnectorDocumentApi.documentConnectorCreateConnector']?.[localVarOperationServerIndex]?.url;
|
|
24082
24198
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24083
24199
|
},
|
|
24200
|
+
/**
|
|
24201
|
+
*
|
|
24202
|
+
* @param {string} username
|
|
24203
|
+
* @param {string} dataset
|
|
24204
|
+
* @param {string} fileId
|
|
24205
|
+
* @param {Array<File>} file
|
|
24206
|
+
* @param {number} [connectorId]
|
|
24207
|
+
* @param {string} [qAnswerApiKey]
|
|
24208
|
+
* @param {DocumentMetadataListWrapper} [metadata]
|
|
24209
|
+
* @param {*} [options] Override http request option.
|
|
24210
|
+
* @throws {RequiredError}
|
|
24211
|
+
*/
|
|
24212
|
+
async overrideDocumentConnectorFileByFileId(username: string, dataset: string, fileId: string, file: Array<File>, connectorId?: number, qAnswerApiKey?: string, metadata?: DocumentMetadataListWrapper, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StatusResponse>> {
|
|
24213
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.overrideDocumentConnectorFileByFileId(username, dataset, fileId, file, connectorId, qAnswerApiKey, metadata, options);
|
|
24214
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
24215
|
+
const localVarOperationServerBasePath = operationServerMap['ConnectorDocumentApi.overrideDocumentConnectorFileByFileId']?.[localVarOperationServerIndex]?.url;
|
|
24216
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24217
|
+
},
|
|
24084
24218
|
}
|
|
24085
24219
|
};
|
|
24086
24220
|
|
|
@@ -24129,6 +24263,15 @@ export const ConnectorDocumentApiFactory = function (configuration?: Configurati
|
|
|
24129
24263
|
documentConnectorCreateConnector(requestParameters: ConnectorDocumentApiDocumentConnectorCreateConnectorRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateConnectorResponse> {
|
|
24130
24264
|
return localVarFp.documentConnectorCreateConnector(requestParameters.createConnectorRequest, requestParameters.qAnswerApiKey, options).then((request) => request(axios, basePath));
|
|
24131
24265
|
},
|
|
24266
|
+
/**
|
|
24267
|
+
*
|
|
24268
|
+
* @param {ConnectorDocumentApiOverrideDocumentConnectorFileByFileIdRequest} requestParameters Request parameters.
|
|
24269
|
+
* @param {*} [options] Override http request option.
|
|
24270
|
+
* @throws {RequiredError}
|
|
24271
|
+
*/
|
|
24272
|
+
overrideDocumentConnectorFileByFileId(requestParameters: ConnectorDocumentApiOverrideDocumentConnectorFileByFileIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<StatusResponse> {
|
|
24273
|
+
return localVarFp.overrideDocumentConnectorFileByFileId(requestParameters.username, requestParameters.dataset, requestParameters.fileId, requestParameters.file, requestParameters.connectorId, requestParameters.qAnswerApiKey, requestParameters.metadata, options).then((request) => request(axios, basePath));
|
|
24274
|
+
},
|
|
24132
24275
|
};
|
|
24133
24276
|
};
|
|
24134
24277
|
|
|
@@ -24307,6 +24450,62 @@ export interface ConnectorDocumentApiDocumentConnectorCreateConnectorRequest {
|
|
|
24307
24450
|
readonly qAnswerApiKey?: string
|
|
24308
24451
|
}
|
|
24309
24452
|
|
|
24453
|
+
/**
|
|
24454
|
+
* Request parameters for overrideDocumentConnectorFileByFileId operation in ConnectorDocumentApi.
|
|
24455
|
+
* @export
|
|
24456
|
+
* @interface ConnectorDocumentApiOverrideDocumentConnectorFileByFileIdRequest
|
|
24457
|
+
*/
|
|
24458
|
+
export interface ConnectorDocumentApiOverrideDocumentConnectorFileByFileIdRequest {
|
|
24459
|
+
/**
|
|
24460
|
+
*
|
|
24461
|
+
* @type {string}
|
|
24462
|
+
* @memberof ConnectorDocumentApiOverrideDocumentConnectorFileByFileId
|
|
24463
|
+
*/
|
|
24464
|
+
readonly username: string
|
|
24465
|
+
|
|
24466
|
+
/**
|
|
24467
|
+
*
|
|
24468
|
+
* @type {string}
|
|
24469
|
+
* @memberof ConnectorDocumentApiOverrideDocumentConnectorFileByFileId
|
|
24470
|
+
*/
|
|
24471
|
+
readonly dataset: string
|
|
24472
|
+
|
|
24473
|
+
/**
|
|
24474
|
+
*
|
|
24475
|
+
* @type {string}
|
|
24476
|
+
* @memberof ConnectorDocumentApiOverrideDocumentConnectorFileByFileId
|
|
24477
|
+
*/
|
|
24478
|
+
readonly fileId: string
|
|
24479
|
+
|
|
24480
|
+
/**
|
|
24481
|
+
*
|
|
24482
|
+
* @type {Array<File>}
|
|
24483
|
+
* @memberof ConnectorDocumentApiOverrideDocumentConnectorFileByFileId
|
|
24484
|
+
*/
|
|
24485
|
+
readonly file: Array<File>
|
|
24486
|
+
|
|
24487
|
+
/**
|
|
24488
|
+
*
|
|
24489
|
+
* @type {number}
|
|
24490
|
+
* @memberof ConnectorDocumentApiOverrideDocumentConnectorFileByFileId
|
|
24491
|
+
*/
|
|
24492
|
+
readonly connectorId?: number
|
|
24493
|
+
|
|
24494
|
+
/**
|
|
24495
|
+
*
|
|
24496
|
+
* @type {string}
|
|
24497
|
+
* @memberof ConnectorDocumentApiOverrideDocumentConnectorFileByFileId
|
|
24498
|
+
*/
|
|
24499
|
+
readonly qAnswerApiKey?: string
|
|
24500
|
+
|
|
24501
|
+
/**
|
|
24502
|
+
*
|
|
24503
|
+
* @type {DocumentMetadataListWrapper}
|
|
24504
|
+
* @memberof ConnectorDocumentApiOverrideDocumentConnectorFileByFileId
|
|
24505
|
+
*/
|
|
24506
|
+
readonly metadata?: DocumentMetadataListWrapper
|
|
24507
|
+
}
|
|
24508
|
+
|
|
24310
24509
|
/**
|
|
24311
24510
|
* ConnectorDocumentApi - object-oriented interface
|
|
24312
24511
|
* TypeScript/Axios client for the QAnswer API
|
|
@@ -24359,6 +24558,17 @@ export class ConnectorDocumentApi extends BaseAPI {
|
|
|
24359
24558
|
public documentConnectorCreateConnector(requestParameters: ConnectorDocumentApiDocumentConnectorCreateConnectorRequest, options?: RawAxiosRequestConfig) {
|
|
24360
24559
|
return ConnectorDocumentApiFp(this.configuration).documentConnectorCreateConnector(requestParameters.createConnectorRequest, requestParameters.qAnswerApiKey, options).then((request) => request(this.axios, this.basePath));
|
|
24361
24560
|
}
|
|
24561
|
+
|
|
24562
|
+
/**
|
|
24563
|
+
*
|
|
24564
|
+
* @param {ConnectorDocumentApiOverrideDocumentConnectorFileByFileIdRequest} requestParameters Request parameters.
|
|
24565
|
+
* @param {*} [options] Override http request option.
|
|
24566
|
+
* @throws {RequiredError}
|
|
24567
|
+
* @memberof ConnectorDocumentApi
|
|
24568
|
+
*/
|
|
24569
|
+
public overrideDocumentConnectorFileByFileId(requestParameters: ConnectorDocumentApiOverrideDocumentConnectorFileByFileIdRequest, options?: RawAxiosRequestConfig) {
|
|
24570
|
+
return ConnectorDocumentApiFp(this.configuration).overrideDocumentConnectorFileByFileId(requestParameters.username, requestParameters.dataset, requestParameters.fileId, requestParameters.file, requestParameters.connectorId, requestParameters.qAnswerApiKey, requestParameters.metadata, options).then((request) => request(this.axios, this.basePath));
|
|
24571
|
+
}
|
|
24362
24572
|
}
|
|
24363
24573
|
|
|
24364
24574
|
|
|
@@ -48327,22 +48537,20 @@ export const TaskReportCopilotApiAxiosParamCreator = function (configuration?: C
|
|
|
48327
48537
|
/**
|
|
48328
48538
|
*
|
|
48329
48539
|
* @summary Get the default prompt with slots of a report template
|
|
48330
|
-
* @param {number} templateId
|
|
48331
48540
|
* @param {string} username
|
|
48332
48541
|
* @param {string} dataset
|
|
48542
|
+
* @param {number} [templateId]
|
|
48543
|
+
* @param {number} [slotId]
|
|
48333
48544
|
* @param {string} [qAnswerApiKey]
|
|
48334
48545
|
* @param {*} [options] Override http request option.
|
|
48335
48546
|
* @throws {RequiredError}
|
|
48336
48547
|
*/
|
|
48337
|
-
getDefaultPrompt: async (
|
|
48338
|
-
// verify required parameter 'templateId' is not null or undefined
|
|
48339
|
-
assertParamExists('getDefaultPrompt', 'templateId', templateId)
|
|
48548
|
+
getDefaultPrompt: async (username: string, dataset: string, templateId?: number, slotId?: number, qAnswerApiKey?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48340
48549
|
// verify required parameter 'username' is not null or undefined
|
|
48341
48550
|
assertParamExists('getDefaultPrompt', 'username', username)
|
|
48342
48551
|
// verify required parameter 'dataset' is not null or undefined
|
|
48343
48552
|
assertParamExists('getDefaultPrompt', 'dataset', dataset)
|
|
48344
|
-
const localVarPath = `/api/tasks/report-copilot/templates/
|
|
48345
|
-
.replace(`{${"templateId"}}`, encodeURIComponent(String(templateId)));
|
|
48553
|
+
const localVarPath = `/api/tasks/report-copilot/templates/default-prompt`;
|
|
48346
48554
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48347
48555
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48348
48556
|
let baseOptions;
|
|
@@ -48369,6 +48577,14 @@ export const TaskReportCopilotApiAxiosParamCreator = function (configuration?: C
|
|
|
48369
48577
|
localVarQueryParameter['dataset'] = dataset;
|
|
48370
48578
|
}
|
|
48371
48579
|
|
|
48580
|
+
if (templateId !== undefined) {
|
|
48581
|
+
localVarQueryParameter['templateId'] = templateId;
|
|
48582
|
+
}
|
|
48583
|
+
|
|
48584
|
+
if (slotId !== undefined) {
|
|
48585
|
+
localVarQueryParameter['slotId'] = slotId;
|
|
48586
|
+
}
|
|
48587
|
+
|
|
48372
48588
|
if (qAnswerApiKey != null) {
|
|
48373
48589
|
localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
|
|
48374
48590
|
}
|
|
@@ -48435,6 +48651,70 @@ export const TaskReportCopilotApiAxiosParamCreator = function (configuration?: C
|
|
|
48435
48651
|
|
|
48436
48652
|
|
|
48437
48653
|
|
|
48654
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
48655
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
48656
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
48657
|
+
|
|
48658
|
+
return {
|
|
48659
|
+
url: toPathString(localVarUrlObj),
|
|
48660
|
+
options: localVarRequestOptions,
|
|
48661
|
+
};
|
|
48662
|
+
},
|
|
48663
|
+
/**
|
|
48664
|
+
*
|
|
48665
|
+
* @summary Get a specific slot of a report template
|
|
48666
|
+
* @param {string} username
|
|
48667
|
+
* @param {string} dataset
|
|
48668
|
+
* @param {number} templateId
|
|
48669
|
+
* @param {number} slotId
|
|
48670
|
+
* @param {string} [qAnswerApiKey]
|
|
48671
|
+
* @param {*} [options] Override http request option.
|
|
48672
|
+
* @throws {RequiredError}
|
|
48673
|
+
*/
|
|
48674
|
+
getSlotOfTemplate: async (username: string, dataset: string, templateId: number, slotId: number, qAnswerApiKey?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48675
|
+
// verify required parameter 'username' is not null or undefined
|
|
48676
|
+
assertParamExists('getSlotOfTemplate', 'username', username)
|
|
48677
|
+
// verify required parameter 'dataset' is not null or undefined
|
|
48678
|
+
assertParamExists('getSlotOfTemplate', 'dataset', dataset)
|
|
48679
|
+
// verify required parameter 'templateId' is not null or undefined
|
|
48680
|
+
assertParamExists('getSlotOfTemplate', 'templateId', templateId)
|
|
48681
|
+
// verify required parameter 'slotId' is not null or undefined
|
|
48682
|
+
assertParamExists('getSlotOfTemplate', 'slotId', slotId)
|
|
48683
|
+
const localVarPath = `/api/tasks/report-copilot/templates/{templateId}/slots/{slotId}`
|
|
48684
|
+
.replace(`{${"templateId"}}`, encodeURIComponent(String(templateId)))
|
|
48685
|
+
.replace(`{${"slotId"}}`, encodeURIComponent(String(slotId)));
|
|
48686
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48687
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48688
|
+
let baseOptions;
|
|
48689
|
+
if (configuration) {
|
|
48690
|
+
baseOptions = configuration.baseOptions;
|
|
48691
|
+
}
|
|
48692
|
+
|
|
48693
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
48694
|
+
const localVarHeaderParameter = {} as any;
|
|
48695
|
+
const localVarQueryParameter = {} as any;
|
|
48696
|
+
|
|
48697
|
+
// authentication QAnswer-Api-Key required
|
|
48698
|
+
await setApiKeyToObject(localVarHeaderParameter, "QAnswer-Api-Key", configuration)
|
|
48699
|
+
|
|
48700
|
+
// authentication Bearer required
|
|
48701
|
+
// http bearer authentication required
|
|
48702
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
48703
|
+
|
|
48704
|
+
if (username !== undefined) {
|
|
48705
|
+
localVarQueryParameter['username'] = username;
|
|
48706
|
+
}
|
|
48707
|
+
|
|
48708
|
+
if (dataset !== undefined) {
|
|
48709
|
+
localVarQueryParameter['dataset'] = dataset;
|
|
48710
|
+
}
|
|
48711
|
+
|
|
48712
|
+
if (qAnswerApiKey != null) {
|
|
48713
|
+
localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
|
|
48714
|
+
}
|
|
48715
|
+
|
|
48716
|
+
|
|
48717
|
+
|
|
48438
48718
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
48439
48719
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
48440
48720
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -48707,6 +48987,76 @@ export const TaskReportCopilotApiAxiosParamCreator = function (configuration?: C
|
|
|
48707
48987
|
options: localVarRequestOptions,
|
|
48708
48988
|
};
|
|
48709
48989
|
},
|
|
48990
|
+
/**
|
|
48991
|
+
*
|
|
48992
|
+
* @summary Update a specific slot of a report template
|
|
48993
|
+
* @param {string} username
|
|
48994
|
+
* @param {string} dataset
|
|
48995
|
+
* @param {number} templateId
|
|
48996
|
+
* @param {number} slotId
|
|
48997
|
+
* @param {SlotUpdate} slotUpdate
|
|
48998
|
+
* @param {string} [qAnswerApiKey]
|
|
48999
|
+
* @param {*} [options] Override http request option.
|
|
49000
|
+
* @throws {RequiredError}
|
|
49001
|
+
*/
|
|
49002
|
+
updateSlotOfTemplate: async (username: string, dataset: string, templateId: number, slotId: number, slotUpdate: SlotUpdate, qAnswerApiKey?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49003
|
+
// verify required parameter 'username' is not null or undefined
|
|
49004
|
+
assertParamExists('updateSlotOfTemplate', 'username', username)
|
|
49005
|
+
// verify required parameter 'dataset' is not null or undefined
|
|
49006
|
+
assertParamExists('updateSlotOfTemplate', 'dataset', dataset)
|
|
49007
|
+
// verify required parameter 'templateId' is not null or undefined
|
|
49008
|
+
assertParamExists('updateSlotOfTemplate', 'templateId', templateId)
|
|
49009
|
+
// verify required parameter 'slotId' is not null or undefined
|
|
49010
|
+
assertParamExists('updateSlotOfTemplate', 'slotId', slotId)
|
|
49011
|
+
// verify required parameter 'slotUpdate' is not null or undefined
|
|
49012
|
+
assertParamExists('updateSlotOfTemplate', 'slotUpdate', slotUpdate)
|
|
49013
|
+
const localVarPath = `/api/tasks/report-copilot/templates/{templateId}/slots/{slotId}`
|
|
49014
|
+
.replace(`{${"templateId"}}`, encodeURIComponent(String(templateId)))
|
|
49015
|
+
.replace(`{${"slotId"}}`, encodeURIComponent(String(slotId)));
|
|
49016
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49017
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
49018
|
+
let baseOptions;
|
|
49019
|
+
if (configuration) {
|
|
49020
|
+
baseOptions = configuration.baseOptions;
|
|
49021
|
+
}
|
|
49022
|
+
|
|
49023
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
49024
|
+
const localVarHeaderParameter = {} as any;
|
|
49025
|
+
const localVarQueryParameter = {} as any;
|
|
49026
|
+
|
|
49027
|
+
// authentication QAnswer-Api-Key required
|
|
49028
|
+
await setApiKeyToObject(localVarHeaderParameter, "QAnswer-Api-Key", configuration)
|
|
49029
|
+
|
|
49030
|
+
// authentication Bearer required
|
|
49031
|
+
// http bearer authentication required
|
|
49032
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
49033
|
+
|
|
49034
|
+
if (username !== undefined) {
|
|
49035
|
+
localVarQueryParameter['username'] = username;
|
|
49036
|
+
}
|
|
49037
|
+
|
|
49038
|
+
if (dataset !== undefined) {
|
|
49039
|
+
localVarQueryParameter['dataset'] = dataset;
|
|
49040
|
+
}
|
|
49041
|
+
|
|
49042
|
+
if (qAnswerApiKey != null) {
|
|
49043
|
+
localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
|
|
49044
|
+
}
|
|
49045
|
+
|
|
49046
|
+
|
|
49047
|
+
|
|
49048
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
49049
|
+
|
|
49050
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
49051
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
49052
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
49053
|
+
localVarRequestOptions.data = serializeDataIfNeeded(slotUpdate, localVarRequestOptions, configuration)
|
|
49054
|
+
|
|
49055
|
+
return {
|
|
49056
|
+
url: toPathString(localVarUrlObj),
|
|
49057
|
+
options: localVarRequestOptions,
|
|
49058
|
+
};
|
|
49059
|
+
},
|
|
48710
49060
|
/**
|
|
48711
49061
|
*
|
|
48712
49062
|
* @summary This updates the settings of the report-copilot task
|
|
@@ -48827,15 +49177,16 @@ export const TaskReportCopilotApiFp = function(configuration?: Configuration) {
|
|
|
48827
49177
|
/**
|
|
48828
49178
|
*
|
|
48829
49179
|
* @summary Get the default prompt with slots of a report template
|
|
48830
|
-
* @param {number} templateId
|
|
48831
49180
|
* @param {string} username
|
|
48832
49181
|
* @param {string} dataset
|
|
49182
|
+
* @param {number} [templateId]
|
|
49183
|
+
* @param {number} [slotId]
|
|
48833
49184
|
* @param {string} [qAnswerApiKey]
|
|
48834
49185
|
* @param {*} [options] Override http request option.
|
|
48835
49186
|
* @throws {RequiredError}
|
|
48836
49187
|
*/
|
|
48837
|
-
async getDefaultPrompt(
|
|
48838
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaultPrompt(
|
|
49188
|
+
async getDefaultPrompt(username: string, dataset: string, templateId?: number, slotId?: number, qAnswerApiKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DefaultPrompt>> {
|
|
49189
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaultPrompt(username, dataset, templateId, slotId, qAnswerApiKey, options);
|
|
48839
49190
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
48840
49191
|
const localVarOperationServerBasePath = operationServerMap['TaskReportCopilotApi.getDefaultPrompt']?.[localVarOperationServerIndex]?.url;
|
|
48841
49192
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -48856,6 +49207,23 @@ export const TaskReportCopilotApiFp = function(configuration?: Configuration) {
|
|
|
48856
49207
|
const localVarOperationServerBasePath = operationServerMap['TaskReportCopilotApi.getReportTemplate']?.[localVarOperationServerIndex]?.url;
|
|
48857
49208
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
48858
49209
|
},
|
|
49210
|
+
/**
|
|
49211
|
+
*
|
|
49212
|
+
* @summary Get a specific slot of a report template
|
|
49213
|
+
* @param {string} username
|
|
49214
|
+
* @param {string} dataset
|
|
49215
|
+
* @param {number} templateId
|
|
49216
|
+
* @param {number} slotId
|
|
49217
|
+
* @param {string} [qAnswerApiKey]
|
|
49218
|
+
* @param {*} [options] Override http request option.
|
|
49219
|
+
* @throws {RequiredError}
|
|
49220
|
+
*/
|
|
49221
|
+
async getSlotOfTemplate(username: string, dataset: string, templateId: number, slotId: number, qAnswerApiKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Slot>> {
|
|
49222
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSlotOfTemplate(username, dataset, templateId, slotId, qAnswerApiKey, options);
|
|
49223
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
49224
|
+
const localVarOperationServerBasePath = operationServerMap['TaskReportCopilotApi.getSlotOfTemplate']?.[localVarOperationServerIndex]?.url;
|
|
49225
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
49226
|
+
},
|
|
48859
49227
|
/**
|
|
48860
49228
|
*
|
|
48861
49229
|
* @summary This gets the settings of the report-copilot task
|
|
@@ -48928,6 +49296,24 @@ export const TaskReportCopilotApiFp = function(configuration?: Configuration) {
|
|
|
48928
49296
|
const localVarOperationServerBasePath = operationServerMap['TaskReportCopilotApi.updateReportTemplate']?.[localVarOperationServerIndex]?.url;
|
|
48929
49297
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
48930
49298
|
},
|
|
49299
|
+
/**
|
|
49300
|
+
*
|
|
49301
|
+
* @summary Update a specific slot of a report template
|
|
49302
|
+
* @param {string} username
|
|
49303
|
+
* @param {string} dataset
|
|
49304
|
+
* @param {number} templateId
|
|
49305
|
+
* @param {number} slotId
|
|
49306
|
+
* @param {SlotUpdate} slotUpdate
|
|
49307
|
+
* @param {string} [qAnswerApiKey]
|
|
49308
|
+
* @param {*} [options] Override http request option.
|
|
49309
|
+
* @throws {RequiredError}
|
|
49310
|
+
*/
|
|
49311
|
+
async updateSlotOfTemplate(username: string, dataset: string, templateId: number, slotId: number, slotUpdate: SlotUpdate, qAnswerApiKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Slot>> {
|
|
49312
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSlotOfTemplate(username, dataset, templateId, slotId, slotUpdate, qAnswerApiKey, options);
|
|
49313
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
49314
|
+
const localVarOperationServerBasePath = operationServerMap['TaskReportCopilotApi.updateSlotOfTemplate']?.[localVarOperationServerIndex]?.url;
|
|
49315
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
49316
|
+
},
|
|
48931
49317
|
/**
|
|
48932
49318
|
*
|
|
48933
49319
|
* @summary This updates the settings of the report-copilot task
|
|
@@ -49001,7 +49387,7 @@ export const TaskReportCopilotApiFactory = function (configuration?: Configurati
|
|
|
49001
49387
|
* @throws {RequiredError}
|
|
49002
49388
|
*/
|
|
49003
49389
|
getDefaultPrompt(requestParameters: TaskReportCopilotApiGetDefaultPromptRequest, options?: RawAxiosRequestConfig): AxiosPromise<DefaultPrompt> {
|
|
49004
|
-
return localVarFp.getDefaultPrompt(requestParameters.
|
|
49390
|
+
return localVarFp.getDefaultPrompt(requestParameters.username, requestParameters.dataset, requestParameters.templateId, requestParameters.slotId, requestParameters.qAnswerApiKey, options).then((request) => request(axios, basePath));
|
|
49005
49391
|
},
|
|
49006
49392
|
/**
|
|
49007
49393
|
*
|
|
@@ -49013,6 +49399,16 @@ export const TaskReportCopilotApiFactory = function (configuration?: Configurati
|
|
|
49013
49399
|
getReportTemplate(requestParameters: TaskReportCopilotApiGetReportTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReportTemplate> {
|
|
49014
49400
|
return localVarFp.getReportTemplate(requestParameters.username, requestParameters.dataset, requestParameters.templateId, requestParameters.qAnswerApiKey, options).then((request) => request(axios, basePath));
|
|
49015
49401
|
},
|
|
49402
|
+
/**
|
|
49403
|
+
*
|
|
49404
|
+
* @summary Get a specific slot of a report template
|
|
49405
|
+
* @param {TaskReportCopilotApiGetSlotOfTemplateRequest} requestParameters Request parameters.
|
|
49406
|
+
* @param {*} [options] Override http request option.
|
|
49407
|
+
* @throws {RequiredError}
|
|
49408
|
+
*/
|
|
49409
|
+
getSlotOfTemplate(requestParameters: TaskReportCopilotApiGetSlotOfTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<Slot> {
|
|
49410
|
+
return localVarFp.getSlotOfTemplate(requestParameters.username, requestParameters.dataset, requestParameters.templateId, requestParameters.slotId, requestParameters.qAnswerApiKey, options).then((request) => request(axios, basePath));
|
|
49411
|
+
},
|
|
49016
49412
|
/**
|
|
49017
49413
|
*
|
|
49018
49414
|
* @summary This gets the settings of the report-copilot task
|
|
@@ -49061,6 +49457,16 @@ export const TaskReportCopilotApiFactory = function (configuration?: Configurati
|
|
|
49061
49457
|
updateReportTemplate(requestParameters: TaskReportCopilotApiUpdateReportTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReportTemplate> {
|
|
49062
49458
|
return localVarFp.updateReportTemplate(requestParameters.templateId, requestParameters.reportTemplateUpdatePayload, requestParameters.qAnswerApiKey, options).then((request) => request(axios, basePath));
|
|
49063
49459
|
},
|
|
49460
|
+
/**
|
|
49461
|
+
*
|
|
49462
|
+
* @summary Update a specific slot of a report template
|
|
49463
|
+
* @param {TaskReportCopilotApiUpdateSlotOfTemplateRequest} requestParameters Request parameters.
|
|
49464
|
+
* @param {*} [options] Override http request option.
|
|
49465
|
+
* @throws {RequiredError}
|
|
49466
|
+
*/
|
|
49467
|
+
updateSlotOfTemplate(requestParameters: TaskReportCopilotApiUpdateSlotOfTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<Slot> {
|
|
49468
|
+
return localVarFp.updateSlotOfTemplate(requestParameters.username, requestParameters.dataset, requestParameters.templateId, requestParameters.slotId, requestParameters.slotUpdate, requestParameters.qAnswerApiKey, options).then((request) => request(axios, basePath));
|
|
49469
|
+
},
|
|
49064
49470
|
/**
|
|
49065
49471
|
*
|
|
49066
49472
|
* @summary This updates the settings of the report-copilot task
|
|
@@ -49180,24 +49586,31 @@ export interface TaskReportCopilotApiExportTemplateAsDocxRequest {
|
|
|
49180
49586
|
export interface TaskReportCopilotApiGetDefaultPromptRequest {
|
|
49181
49587
|
/**
|
|
49182
49588
|
*
|
|
49183
|
-
* @type {
|
|
49589
|
+
* @type {string}
|
|
49184
49590
|
* @memberof TaskReportCopilotApiGetDefaultPrompt
|
|
49185
49591
|
*/
|
|
49186
|
-
readonly
|
|
49592
|
+
readonly username: string
|
|
49187
49593
|
|
|
49188
49594
|
/**
|
|
49189
49595
|
*
|
|
49190
49596
|
* @type {string}
|
|
49191
49597
|
* @memberof TaskReportCopilotApiGetDefaultPrompt
|
|
49192
49598
|
*/
|
|
49193
|
-
readonly
|
|
49599
|
+
readonly dataset: string
|
|
49194
49600
|
|
|
49195
49601
|
/**
|
|
49196
49602
|
*
|
|
49197
|
-
* @type {
|
|
49603
|
+
* @type {number}
|
|
49198
49604
|
* @memberof TaskReportCopilotApiGetDefaultPrompt
|
|
49199
49605
|
*/
|
|
49200
|
-
readonly
|
|
49606
|
+
readonly templateId?: number
|
|
49607
|
+
|
|
49608
|
+
/**
|
|
49609
|
+
*
|
|
49610
|
+
* @type {number}
|
|
49611
|
+
* @memberof TaskReportCopilotApiGetDefaultPrompt
|
|
49612
|
+
*/
|
|
49613
|
+
readonly slotId?: number
|
|
49201
49614
|
|
|
49202
49615
|
/**
|
|
49203
49616
|
*
|
|
@@ -49242,6 +49655,48 @@ export interface TaskReportCopilotApiGetReportTemplateRequest {
|
|
|
49242
49655
|
readonly qAnswerApiKey?: string
|
|
49243
49656
|
}
|
|
49244
49657
|
|
|
49658
|
+
/**
|
|
49659
|
+
* Request parameters for getSlotOfTemplate operation in TaskReportCopilotApi.
|
|
49660
|
+
* @export
|
|
49661
|
+
* @interface TaskReportCopilotApiGetSlotOfTemplateRequest
|
|
49662
|
+
*/
|
|
49663
|
+
export interface TaskReportCopilotApiGetSlotOfTemplateRequest {
|
|
49664
|
+
/**
|
|
49665
|
+
*
|
|
49666
|
+
* @type {string}
|
|
49667
|
+
* @memberof TaskReportCopilotApiGetSlotOfTemplate
|
|
49668
|
+
*/
|
|
49669
|
+
readonly username: string
|
|
49670
|
+
|
|
49671
|
+
/**
|
|
49672
|
+
*
|
|
49673
|
+
* @type {string}
|
|
49674
|
+
* @memberof TaskReportCopilotApiGetSlotOfTemplate
|
|
49675
|
+
*/
|
|
49676
|
+
readonly dataset: string
|
|
49677
|
+
|
|
49678
|
+
/**
|
|
49679
|
+
*
|
|
49680
|
+
* @type {number}
|
|
49681
|
+
* @memberof TaskReportCopilotApiGetSlotOfTemplate
|
|
49682
|
+
*/
|
|
49683
|
+
readonly templateId: number
|
|
49684
|
+
|
|
49685
|
+
/**
|
|
49686
|
+
*
|
|
49687
|
+
* @type {number}
|
|
49688
|
+
* @memberof TaskReportCopilotApiGetSlotOfTemplate
|
|
49689
|
+
*/
|
|
49690
|
+
readonly slotId: number
|
|
49691
|
+
|
|
49692
|
+
/**
|
|
49693
|
+
*
|
|
49694
|
+
* @type {string}
|
|
49695
|
+
* @memberof TaskReportCopilotApiGetSlotOfTemplate
|
|
49696
|
+
*/
|
|
49697
|
+
readonly qAnswerApiKey?: string
|
|
49698
|
+
}
|
|
49699
|
+
|
|
49245
49700
|
/**
|
|
49246
49701
|
* Request parameters for getTaskSettings operation in TaskReportCopilotApi.
|
|
49247
49702
|
* @export
|
|
@@ -49375,6 +49830,55 @@ export interface TaskReportCopilotApiUpdateReportTemplateRequest {
|
|
|
49375
49830
|
readonly qAnswerApiKey?: string
|
|
49376
49831
|
}
|
|
49377
49832
|
|
|
49833
|
+
/**
|
|
49834
|
+
* Request parameters for updateSlotOfTemplate operation in TaskReportCopilotApi.
|
|
49835
|
+
* @export
|
|
49836
|
+
* @interface TaskReportCopilotApiUpdateSlotOfTemplateRequest
|
|
49837
|
+
*/
|
|
49838
|
+
export interface TaskReportCopilotApiUpdateSlotOfTemplateRequest {
|
|
49839
|
+
/**
|
|
49840
|
+
*
|
|
49841
|
+
* @type {string}
|
|
49842
|
+
* @memberof TaskReportCopilotApiUpdateSlotOfTemplate
|
|
49843
|
+
*/
|
|
49844
|
+
readonly username: string
|
|
49845
|
+
|
|
49846
|
+
/**
|
|
49847
|
+
*
|
|
49848
|
+
* @type {string}
|
|
49849
|
+
* @memberof TaskReportCopilotApiUpdateSlotOfTemplate
|
|
49850
|
+
*/
|
|
49851
|
+
readonly dataset: string
|
|
49852
|
+
|
|
49853
|
+
/**
|
|
49854
|
+
*
|
|
49855
|
+
* @type {number}
|
|
49856
|
+
* @memberof TaskReportCopilotApiUpdateSlotOfTemplate
|
|
49857
|
+
*/
|
|
49858
|
+
readonly templateId: number
|
|
49859
|
+
|
|
49860
|
+
/**
|
|
49861
|
+
*
|
|
49862
|
+
* @type {number}
|
|
49863
|
+
* @memberof TaskReportCopilotApiUpdateSlotOfTemplate
|
|
49864
|
+
*/
|
|
49865
|
+
readonly slotId: number
|
|
49866
|
+
|
|
49867
|
+
/**
|
|
49868
|
+
*
|
|
49869
|
+
* @type {SlotUpdate}
|
|
49870
|
+
* @memberof TaskReportCopilotApiUpdateSlotOfTemplate
|
|
49871
|
+
*/
|
|
49872
|
+
readonly slotUpdate: SlotUpdate
|
|
49873
|
+
|
|
49874
|
+
/**
|
|
49875
|
+
*
|
|
49876
|
+
* @type {string}
|
|
49877
|
+
* @memberof TaskReportCopilotApiUpdateSlotOfTemplate
|
|
49878
|
+
*/
|
|
49879
|
+
readonly qAnswerApiKey?: string
|
|
49880
|
+
}
|
|
49881
|
+
|
|
49378
49882
|
/**
|
|
49379
49883
|
* Request parameters for updateTaskSettings operation in TaskReportCopilotApi.
|
|
49380
49884
|
* @export
|
|
@@ -49461,7 +49965,7 @@ export class TaskReportCopilotApi extends BaseAPI {
|
|
|
49461
49965
|
* @memberof TaskReportCopilotApi
|
|
49462
49966
|
*/
|
|
49463
49967
|
public getDefaultPrompt(requestParameters: TaskReportCopilotApiGetDefaultPromptRequest, options?: RawAxiosRequestConfig) {
|
|
49464
|
-
return TaskReportCopilotApiFp(this.configuration).getDefaultPrompt(requestParameters.
|
|
49968
|
+
return TaskReportCopilotApiFp(this.configuration).getDefaultPrompt(requestParameters.username, requestParameters.dataset, requestParameters.templateId, requestParameters.slotId, requestParameters.qAnswerApiKey, options).then((request) => request(this.axios, this.basePath));
|
|
49465
49969
|
}
|
|
49466
49970
|
|
|
49467
49971
|
/**
|
|
@@ -49476,6 +49980,18 @@ export class TaskReportCopilotApi extends BaseAPI {
|
|
|
49476
49980
|
return TaskReportCopilotApiFp(this.configuration).getReportTemplate(requestParameters.username, requestParameters.dataset, requestParameters.templateId, requestParameters.qAnswerApiKey, options).then((request) => request(this.axios, this.basePath));
|
|
49477
49981
|
}
|
|
49478
49982
|
|
|
49983
|
+
/**
|
|
49984
|
+
*
|
|
49985
|
+
* @summary Get a specific slot of a report template
|
|
49986
|
+
* @param {TaskReportCopilotApiGetSlotOfTemplateRequest} requestParameters Request parameters.
|
|
49987
|
+
* @param {*} [options] Override http request option.
|
|
49988
|
+
* @throws {RequiredError}
|
|
49989
|
+
* @memberof TaskReportCopilotApi
|
|
49990
|
+
*/
|
|
49991
|
+
public getSlotOfTemplate(requestParameters: TaskReportCopilotApiGetSlotOfTemplateRequest, options?: RawAxiosRequestConfig) {
|
|
49992
|
+
return TaskReportCopilotApiFp(this.configuration).getSlotOfTemplate(requestParameters.username, requestParameters.dataset, requestParameters.templateId, requestParameters.slotId, requestParameters.qAnswerApiKey, options).then((request) => request(this.axios, this.basePath));
|
|
49993
|
+
}
|
|
49994
|
+
|
|
49479
49995
|
/**
|
|
49480
49996
|
*
|
|
49481
49997
|
* @summary This gets the settings of the report-copilot task
|
|
@@ -49534,6 +50050,18 @@ export class TaskReportCopilotApi extends BaseAPI {
|
|
|
49534
50050
|
return TaskReportCopilotApiFp(this.configuration).updateReportTemplate(requestParameters.templateId, requestParameters.reportTemplateUpdatePayload, requestParameters.qAnswerApiKey, options).then((request) => request(this.axios, this.basePath));
|
|
49535
50051
|
}
|
|
49536
50052
|
|
|
50053
|
+
/**
|
|
50054
|
+
*
|
|
50055
|
+
* @summary Update a specific slot of a report template
|
|
50056
|
+
* @param {TaskReportCopilotApiUpdateSlotOfTemplateRequest} requestParameters Request parameters.
|
|
50057
|
+
* @param {*} [options] Override http request option.
|
|
50058
|
+
* @throws {RequiredError}
|
|
50059
|
+
* @memberof TaskReportCopilotApi
|
|
50060
|
+
*/
|
|
50061
|
+
public updateSlotOfTemplate(requestParameters: TaskReportCopilotApiUpdateSlotOfTemplateRequest, options?: RawAxiosRequestConfig) {
|
|
50062
|
+
return TaskReportCopilotApiFp(this.configuration).updateSlotOfTemplate(requestParameters.username, requestParameters.dataset, requestParameters.templateId, requestParameters.slotId, requestParameters.slotUpdate, requestParameters.qAnswerApiKey, options).then((request) => request(this.axios, this.basePath));
|
|
50063
|
+
}
|
|
50064
|
+
|
|
49537
50065
|
/**
|
|
49538
50066
|
*
|
|
49539
50067
|
* @summary This updates the settings of the report-copilot task
|