qanswer-sdk 3.1245.0-main → 3.1249.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 +580 -46
- package/dist/api.d.ts +330 -36
- package/dist/api.js +427 -24
- package/package.json +1 -1
- package/qanswer-sdk-3.1249.0-main.tgz +0 -0
- package/qanswer-sdk-3.1245.0-main.tgz +0 -0
package/api.ts
CHANGED
|
@@ -7553,6 +7553,12 @@ export interface Llm {
|
|
|
7553
7553
|
* @memberof Llm
|
|
7554
7554
|
*/
|
|
7555
7555
|
'userChatbotSettings'?: Array<UserChatbotSetting>;
|
|
7556
|
+
/**
|
|
7557
|
+
*
|
|
7558
|
+
* @type {Array<LlmConsumption>}
|
|
7559
|
+
* @memberof Llm
|
|
7560
|
+
*/
|
|
7561
|
+
'llmConsumptions'?: Array<LlmConsumption>;
|
|
7556
7562
|
}
|
|
7557
7563
|
/**
|
|
7558
7564
|
*
|
|
@@ -9412,6 +9418,12 @@ export interface RAGPayload {
|
|
|
9412
9418
|
* @memberof RAGPayload
|
|
9413
9419
|
*/
|
|
9414
9420
|
'filters'?: Array<Array<SearchMetadataFilter>>;
|
|
9421
|
+
/**
|
|
9422
|
+
*
|
|
9423
|
+
* @type {Array<Array<SearchMetadataFilter>>}
|
|
9424
|
+
* @memberof RAGPayload
|
|
9425
|
+
*/
|
|
9426
|
+
'exclude_filters'?: Array<Array<SearchMetadataFilter>>;
|
|
9415
9427
|
/**
|
|
9416
9428
|
* The hashes of the indexes to be used for the response.
|
|
9417
9429
|
* @type {Array<object>}
|
|
@@ -10323,108 +10335,108 @@ export type ReportCopilotSlotTaskSettingsBotAnswerLengthEnum = typeof ReportCopi
|
|
|
10323
10335
|
/**
|
|
10324
10336
|
*
|
|
10325
10337
|
* @export
|
|
10326
|
-
* @interface
|
|
10338
|
+
* @interface ReportCopilotSlotTaskSettingsUpdate
|
|
10327
10339
|
*/
|
|
10328
|
-
export interface
|
|
10340
|
+
export interface ReportCopilotSlotTaskSettingsUpdate {
|
|
10329
10341
|
/**
|
|
10330
10342
|
*
|
|
10331
10343
|
* @type {string}
|
|
10332
|
-
* @memberof
|
|
10344
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10333
10345
|
*/
|
|
10334
10346
|
'prompt'?: string;
|
|
10335
10347
|
/**
|
|
10336
10348
|
* The LLM choice. If not provided, the system default will be used.
|
|
10337
10349
|
* @type {string}
|
|
10338
|
-
* @memberof
|
|
10350
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10339
10351
|
*/
|
|
10340
10352
|
'llm_choice'?: string;
|
|
10341
10353
|
/**
|
|
10342
10354
|
*
|
|
10343
10355
|
* @type {number}
|
|
10344
|
-
* @memberof
|
|
10356
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10345
10357
|
*/
|
|
10346
10358
|
'bot_seed'?: number;
|
|
10347
10359
|
/**
|
|
10348
10360
|
*
|
|
10349
10361
|
* @type {number}
|
|
10350
|
-
* @memberof
|
|
10362
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10351
10363
|
*/
|
|
10352
10364
|
'bot_temperature'?: number;
|
|
10353
10365
|
/**
|
|
10354
10366
|
*
|
|
10355
10367
|
* @type {string}
|
|
10356
|
-
* @memberof
|
|
10368
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10357
10369
|
*/
|
|
10358
|
-
'bot_answer_length'?:
|
|
10370
|
+
'bot_answer_length'?: ReportCopilotSlotTaskSettingsUpdateBotAnswerLengthEnum;
|
|
10359
10371
|
/**
|
|
10360
10372
|
*
|
|
10361
10373
|
* @type {number}
|
|
10362
|
-
* @memberof
|
|
10374
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10363
10375
|
*/
|
|
10364
10376
|
'number_of_references'?: number;
|
|
10365
10377
|
/**
|
|
10366
10378
|
*
|
|
10367
10379
|
* @type {number}
|
|
10368
|
-
* @memberof
|
|
10380
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10369
10381
|
*/
|
|
10370
10382
|
'stream_speed'?: number;
|
|
10371
10383
|
/**
|
|
10372
10384
|
*
|
|
10373
10385
|
* @type {number}
|
|
10374
|
-
* @memberof
|
|
10386
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10375
10387
|
*/
|
|
10376
10388
|
'context_window'?: number;
|
|
10377
10389
|
/**
|
|
10378
10390
|
*
|
|
10379
10391
|
* @type {number}
|
|
10380
|
-
* @memberof
|
|
10392
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10381
10393
|
*/
|
|
10382
10394
|
'max_tokens'?: number;
|
|
10383
10395
|
/**
|
|
10384
10396
|
*
|
|
10385
10397
|
* @type {{ [key: string]: string; }}
|
|
10386
|
-
* @memberof
|
|
10398
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10387
10399
|
*/
|
|
10388
10400
|
'slots_values'?: { [key: string]: string; };
|
|
10389
10401
|
/**
|
|
10390
10402
|
*
|
|
10391
10403
|
* @type {string}
|
|
10392
|
-
* @memberof
|
|
10404
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10393
10405
|
*/
|
|
10394
10406
|
'bot_name'?: string;
|
|
10395
10407
|
/**
|
|
10396
10408
|
*
|
|
10397
10409
|
* @type {string}
|
|
10398
|
-
* @memberof
|
|
10410
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10399
10411
|
*/
|
|
10400
10412
|
'bot_description'?: string;
|
|
10401
10413
|
/**
|
|
10402
10414
|
* The LLM ID. This field is populated based on the llm_choice.
|
|
10403
10415
|
* @type {number}
|
|
10404
|
-
* @memberof
|
|
10416
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10405
10417
|
*/
|
|
10406
10418
|
'llm_id'?: number;
|
|
10407
10419
|
/**
|
|
10408
10420
|
*
|
|
10409
10421
|
* @type {LLMEndpointReadInput}
|
|
10410
|
-
* @memberof
|
|
10422
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10411
10423
|
*/
|
|
10412
10424
|
'llm_endpoint'?: LLMEndpointReadInput;
|
|
10413
10425
|
/**
|
|
10414
10426
|
*
|
|
10415
10427
|
* @type {number}
|
|
10416
|
-
* @memberof
|
|
10428
|
+
* @memberof ReportCopilotSlotTaskSettingsUpdate
|
|
10417
10429
|
*/
|
|
10418
10430
|
'id'?: number;
|
|
10419
10431
|
}
|
|
10420
10432
|
|
|
10421
|
-
export const
|
|
10433
|
+
export const ReportCopilotSlotTaskSettingsUpdateBotAnswerLengthEnum = {
|
|
10422
10434
|
Short: 'short',
|
|
10423
10435
|
Brief: 'brief',
|
|
10424
10436
|
Long: 'long'
|
|
10425
10437
|
} as const;
|
|
10426
10438
|
|
|
10427
|
-
export type
|
|
10439
|
+
export type ReportCopilotSlotTaskSettingsUpdateBotAnswerLengthEnum = typeof ReportCopilotSlotTaskSettingsUpdateBotAnswerLengthEnum[keyof typeof ReportCopilotSlotTaskSettingsUpdateBotAnswerLengthEnum];
|
|
10428
10440
|
|
|
10429
10441
|
/**
|
|
10430
10442
|
*
|
|
@@ -11207,6 +11219,12 @@ export interface SearchPayload {
|
|
|
11207
11219
|
* @memberof SearchPayload
|
|
11208
11220
|
*/
|
|
11209
11221
|
'filters'?: Array<Array<SearchMetadataFilter>>;
|
|
11222
|
+
/**
|
|
11223
|
+
*
|
|
11224
|
+
* @type {Array<Array<SearchMetadataFilter>>}
|
|
11225
|
+
* @memberof SearchPayload
|
|
11226
|
+
*/
|
|
11227
|
+
'exclude_filters'?: Array<Array<SearchMetadataFilter>>;
|
|
11210
11228
|
/**
|
|
11211
11229
|
* The hashes of the indexes to be used for the response.
|
|
11212
11230
|
* @type {Array<object>}
|
|
@@ -11920,19 +11938,19 @@ export interface SlotUpdate {
|
|
|
11920
11938
|
* @type {string}
|
|
11921
11939
|
* @memberof SlotUpdate
|
|
11922
11940
|
*/
|
|
11923
|
-
'prompt'
|
|
11941
|
+
'prompt'?: string;
|
|
11924
11942
|
/**
|
|
11925
11943
|
*
|
|
11926
11944
|
* @type {string}
|
|
11927
11945
|
* @memberof SlotUpdate
|
|
11928
11946
|
*/
|
|
11929
|
-
'completion'
|
|
11947
|
+
'completion'?: string;
|
|
11930
11948
|
/**
|
|
11931
11949
|
*
|
|
11932
11950
|
* @type {Array<Source>}
|
|
11933
11951
|
* @memberof SlotUpdate
|
|
11934
11952
|
*/
|
|
11935
|
-
'sources'
|
|
11953
|
+
'sources'?: Array<Source>;
|
|
11936
11954
|
/**
|
|
11937
11955
|
*
|
|
11938
11956
|
* @type {string}
|
|
@@ -11965,10 +11983,10 @@ export interface SlotUpdate {
|
|
|
11965
11983
|
'is_input_data_cropped'?: boolean;
|
|
11966
11984
|
/**
|
|
11967
11985
|
*
|
|
11968
|
-
* @type {
|
|
11986
|
+
* @type {ReportCopilotSlotTaskSettingsUpdate}
|
|
11969
11987
|
* @memberof SlotUpdate
|
|
11970
11988
|
*/
|
|
11971
|
-
'task_settings'?:
|
|
11989
|
+
'task_settings'?: ReportCopilotSlotTaskSettingsUpdate;
|
|
11972
11990
|
}
|
|
11973
11991
|
|
|
11974
11992
|
export const SlotUpdateModeEnum = {
|
|
@@ -13688,6 +13706,12 @@ export interface Text2SparqlPayload {
|
|
|
13688
13706
|
* @memberof Text2SparqlPayload
|
|
13689
13707
|
*/
|
|
13690
13708
|
'filters'?: Array<Array<SearchMetadataFilter>>;
|
|
13709
|
+
/**
|
|
13710
|
+
*
|
|
13711
|
+
* @type {Array<Array<SearchMetadataFilter>>}
|
|
13712
|
+
* @memberof Text2SparqlPayload
|
|
13713
|
+
*/
|
|
13714
|
+
'exclude_filters'?: Array<Array<SearchMetadataFilter>>;
|
|
13691
13715
|
/**
|
|
13692
13716
|
* The hashes of the indexes to be used for the response.
|
|
13693
13717
|
* @type {Array<object>}
|
|
@@ -16875,11 +16899,12 @@ export const AiAssistantApiAxiosParamCreator = function (configuration?: Configu
|
|
|
16875
16899
|
* @summary How much quota is still available for a dataset
|
|
16876
16900
|
* @param {string} username
|
|
16877
16901
|
* @param {string} dataset
|
|
16902
|
+
* @param {string} [conversationId]
|
|
16878
16903
|
* @param {string} [qAnswerApiKey]
|
|
16879
16904
|
* @param {*} [options] Override http request option.
|
|
16880
16905
|
* @throws {RequiredError}
|
|
16881
16906
|
*/
|
|
16882
|
-
availableQuotaForDataset: async (username: string, dataset: string, qAnswerApiKey?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16907
|
+
availableQuotaForDataset: async (username: string, dataset: string, conversationId?: string, qAnswerApiKey?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16883
16908
|
// verify required parameter 'username' is not null or undefined
|
|
16884
16909
|
assertParamExists('availableQuotaForDataset', 'username', username)
|
|
16885
16910
|
// verify required parameter 'dataset' is not null or undefined
|
|
@@ -16911,6 +16936,10 @@ export const AiAssistantApiAxiosParamCreator = function (configuration?: Configu
|
|
|
16911
16936
|
localVarQueryParameter['dataset'] = dataset;
|
|
16912
16937
|
}
|
|
16913
16938
|
|
|
16939
|
+
if (conversationId !== undefined) {
|
|
16940
|
+
localVarQueryParameter['conversation_id'] = conversationId;
|
|
16941
|
+
}
|
|
16942
|
+
|
|
16914
16943
|
if (qAnswerApiKey != null) {
|
|
16915
16944
|
localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
|
|
16916
16945
|
}
|
|
@@ -17782,12 +17811,13 @@ export const AiAssistantApiFp = function(configuration?: Configuration) {
|
|
|
17782
17811
|
* @summary How much quota is still available for a dataset
|
|
17783
17812
|
* @param {string} username
|
|
17784
17813
|
* @param {string} dataset
|
|
17814
|
+
* @param {string} [conversationId]
|
|
17785
17815
|
* @param {string} [qAnswerApiKey]
|
|
17786
17816
|
* @param {*} [options] Override http request option.
|
|
17787
17817
|
* @throws {RequiredError}
|
|
17788
17818
|
*/
|
|
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);
|
|
17819
|
+
async availableQuotaForDataset(username: string, dataset: string, conversationId?: string, qAnswerApiKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AvailableSpaceQuotaForDataset>> {
|
|
17820
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.availableQuotaForDataset(username, dataset, conversationId, qAnswerApiKey, options);
|
|
17791
17821
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17792
17822
|
const localVarOperationServerBasePath = operationServerMap['AiAssistantApi.availableQuotaForDataset']?.[localVarOperationServerIndex]?.url;
|
|
17793
17823
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -18042,7 +18072,7 @@ export const AiAssistantApiFactory = function (configuration?: Configuration, ba
|
|
|
18042
18072
|
* @throws {RequiredError}
|
|
18043
18073
|
*/
|
|
18044
18074
|
availableQuotaForDataset(requestParameters: AiAssistantApiAvailableQuotaForDatasetRequest, options?: RawAxiosRequestConfig): AxiosPromise<AvailableSpaceQuotaForDataset> {
|
|
18045
|
-
return localVarFp.availableQuotaForDataset(requestParameters.username, requestParameters.dataset, requestParameters.qAnswerApiKey, options).then((request) => request(axios, basePath));
|
|
18075
|
+
return localVarFp.availableQuotaForDataset(requestParameters.username, requestParameters.dataset, requestParameters.conversationId, requestParameters.qAnswerApiKey, options).then((request) => request(axios, basePath));
|
|
18046
18076
|
},
|
|
18047
18077
|
/**
|
|
18048
18078
|
*
|
|
@@ -18225,6 +18255,13 @@ export interface AiAssistantApiAvailableQuotaForDatasetRequest {
|
|
|
18225
18255
|
*/
|
|
18226
18256
|
readonly dataset: string
|
|
18227
18257
|
|
|
18258
|
+
/**
|
|
18259
|
+
*
|
|
18260
|
+
* @type {string}
|
|
18261
|
+
* @memberof AiAssistantApiAvailableQuotaForDataset
|
|
18262
|
+
*/
|
|
18263
|
+
readonly conversationId?: string
|
|
18264
|
+
|
|
18228
18265
|
/**
|
|
18229
18266
|
*
|
|
18230
18267
|
* @type {string}
|
|
@@ -18621,7 +18658,7 @@ export class AiAssistantApi extends BaseAPI {
|
|
|
18621
18658
|
* @memberof AiAssistantApi
|
|
18622
18659
|
*/
|
|
18623
18660
|
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));
|
|
18661
|
+
return AiAssistantApiFp(this.configuration).availableQuotaForDataset(requestParameters.username, requestParameters.dataset, requestParameters.conversationId, requestParameters.qAnswerApiKey, options).then((request) => request(this.axios, this.basePath));
|
|
18625
18662
|
}
|
|
18626
18663
|
|
|
18627
18664
|
/**
|
|
@@ -23999,6 +24036,91 @@ export const ConnectorDocumentApiAxiosParamCreator = function (configuration?: C
|
|
|
23999
24036
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
24000
24037
|
localVarRequestOptions.data = serializeDataIfNeeded(createConnectorRequest, localVarRequestOptions, configuration)
|
|
24001
24038
|
|
|
24039
|
+
return {
|
|
24040
|
+
url: toPathString(localVarUrlObj),
|
|
24041
|
+
options: localVarRequestOptions,
|
|
24042
|
+
};
|
|
24043
|
+
},
|
|
24044
|
+
/**
|
|
24045
|
+
*
|
|
24046
|
+
* @param {string} username
|
|
24047
|
+
* @param {string} dataset
|
|
24048
|
+
* @param {string} fileId
|
|
24049
|
+
* @param {Array<File>} file
|
|
24050
|
+
* @param {number} [connectorId]
|
|
24051
|
+
* @param {string} [qAnswerApiKey]
|
|
24052
|
+
* @param {DocumentMetadataListWrapper} [metadata]
|
|
24053
|
+
* @param {*} [options] Override http request option.
|
|
24054
|
+
* @throws {RequiredError}
|
|
24055
|
+
*/
|
|
24056
|
+
overrideDocumentConnectorFileByFileId: async (username: string, dataset: string, fileId: string, file: Array<File>, connectorId?: number, qAnswerApiKey?: string, metadata?: DocumentMetadataListWrapper, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24057
|
+
// verify required parameter 'username' is not null or undefined
|
|
24058
|
+
assertParamExists('overrideDocumentConnectorFileByFileId', 'username', username)
|
|
24059
|
+
// verify required parameter 'dataset' is not null or undefined
|
|
24060
|
+
assertParamExists('overrideDocumentConnectorFileByFileId', 'dataset', dataset)
|
|
24061
|
+
// verify required parameter 'fileId' is not null or undefined
|
|
24062
|
+
assertParamExists('overrideDocumentConnectorFileByFileId', 'fileId', fileId)
|
|
24063
|
+
// verify required parameter 'file' is not null or undefined
|
|
24064
|
+
assertParamExists('overrideDocumentConnectorFileByFileId', 'file', file)
|
|
24065
|
+
const localVarPath = `/api/connectors/document/override`;
|
|
24066
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24067
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24068
|
+
let baseOptions;
|
|
24069
|
+
if (configuration) {
|
|
24070
|
+
baseOptions = configuration.baseOptions;
|
|
24071
|
+
}
|
|
24072
|
+
|
|
24073
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
24074
|
+
const localVarHeaderParameter = {} as any;
|
|
24075
|
+
const localVarQueryParameter = {} as any;
|
|
24076
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
24077
|
+
|
|
24078
|
+
// authentication QAnswer-Api-Key required
|
|
24079
|
+
await setApiKeyToObject(localVarHeaderParameter, "QAnswer-Api-Key", configuration)
|
|
24080
|
+
|
|
24081
|
+
// authentication Bearer required
|
|
24082
|
+
// http bearer authentication required
|
|
24083
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
24084
|
+
|
|
24085
|
+
if (username !== undefined) {
|
|
24086
|
+
localVarQueryParameter['username'] = username;
|
|
24087
|
+
}
|
|
24088
|
+
|
|
24089
|
+
if (dataset !== undefined) {
|
|
24090
|
+
localVarQueryParameter['dataset'] = dataset;
|
|
24091
|
+
}
|
|
24092
|
+
|
|
24093
|
+
if (connectorId !== undefined) {
|
|
24094
|
+
localVarQueryParameter['connector_id'] = connectorId;
|
|
24095
|
+
}
|
|
24096
|
+
|
|
24097
|
+
if (fileId !== undefined) {
|
|
24098
|
+
localVarQueryParameter['file_id'] = fileId;
|
|
24099
|
+
}
|
|
24100
|
+
|
|
24101
|
+
if (qAnswerApiKey != null) {
|
|
24102
|
+
localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
|
|
24103
|
+
}
|
|
24104
|
+
|
|
24105
|
+
if (file) {
|
|
24106
|
+
file.forEach((element) => {
|
|
24107
|
+
localVarFormParams.append('file', element as any);
|
|
24108
|
+
})
|
|
24109
|
+
}
|
|
24110
|
+
|
|
24111
|
+
|
|
24112
|
+
if (metadata !== undefined) {
|
|
24113
|
+
localVarFormParams.append('metadata', new Blob([JSON.stringify(metadata)], { type: "application/json", }));
|
|
24114
|
+
}
|
|
24115
|
+
|
|
24116
|
+
|
|
24117
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
24118
|
+
|
|
24119
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24120
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24121
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
24122
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
24123
|
+
|
|
24002
24124
|
return {
|
|
24003
24125
|
url: toPathString(localVarUrlObj),
|
|
24004
24126
|
options: localVarRequestOptions,
|
|
@@ -24081,6 +24203,24 @@ export const ConnectorDocumentApiFp = function(configuration?: Configuration) {
|
|
|
24081
24203
|
const localVarOperationServerBasePath = operationServerMap['ConnectorDocumentApi.documentConnectorCreateConnector']?.[localVarOperationServerIndex]?.url;
|
|
24082
24204
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24083
24205
|
},
|
|
24206
|
+
/**
|
|
24207
|
+
*
|
|
24208
|
+
* @param {string} username
|
|
24209
|
+
* @param {string} dataset
|
|
24210
|
+
* @param {string} fileId
|
|
24211
|
+
* @param {Array<File>} file
|
|
24212
|
+
* @param {number} [connectorId]
|
|
24213
|
+
* @param {string} [qAnswerApiKey]
|
|
24214
|
+
* @param {DocumentMetadataListWrapper} [metadata]
|
|
24215
|
+
* @param {*} [options] Override http request option.
|
|
24216
|
+
* @throws {RequiredError}
|
|
24217
|
+
*/
|
|
24218
|
+
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>> {
|
|
24219
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.overrideDocumentConnectorFileByFileId(username, dataset, fileId, file, connectorId, qAnswerApiKey, metadata, options);
|
|
24220
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
24221
|
+
const localVarOperationServerBasePath = operationServerMap['ConnectorDocumentApi.overrideDocumentConnectorFileByFileId']?.[localVarOperationServerIndex]?.url;
|
|
24222
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24223
|
+
},
|
|
24084
24224
|
}
|
|
24085
24225
|
};
|
|
24086
24226
|
|
|
@@ -24129,6 +24269,15 @@ export const ConnectorDocumentApiFactory = function (configuration?: Configurati
|
|
|
24129
24269
|
documentConnectorCreateConnector(requestParameters: ConnectorDocumentApiDocumentConnectorCreateConnectorRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateConnectorResponse> {
|
|
24130
24270
|
return localVarFp.documentConnectorCreateConnector(requestParameters.createConnectorRequest, requestParameters.qAnswerApiKey, options).then((request) => request(axios, basePath));
|
|
24131
24271
|
},
|
|
24272
|
+
/**
|
|
24273
|
+
*
|
|
24274
|
+
* @param {ConnectorDocumentApiOverrideDocumentConnectorFileByFileIdRequest} requestParameters Request parameters.
|
|
24275
|
+
* @param {*} [options] Override http request option.
|
|
24276
|
+
* @throws {RequiredError}
|
|
24277
|
+
*/
|
|
24278
|
+
overrideDocumentConnectorFileByFileId(requestParameters: ConnectorDocumentApiOverrideDocumentConnectorFileByFileIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<StatusResponse> {
|
|
24279
|
+
return localVarFp.overrideDocumentConnectorFileByFileId(requestParameters.username, requestParameters.dataset, requestParameters.fileId, requestParameters.file, requestParameters.connectorId, requestParameters.qAnswerApiKey, requestParameters.metadata, options).then((request) => request(axios, basePath));
|
|
24280
|
+
},
|
|
24132
24281
|
};
|
|
24133
24282
|
};
|
|
24134
24283
|
|
|
@@ -24307,6 +24456,62 @@ export interface ConnectorDocumentApiDocumentConnectorCreateConnectorRequest {
|
|
|
24307
24456
|
readonly qAnswerApiKey?: string
|
|
24308
24457
|
}
|
|
24309
24458
|
|
|
24459
|
+
/**
|
|
24460
|
+
* Request parameters for overrideDocumentConnectorFileByFileId operation in ConnectorDocumentApi.
|
|
24461
|
+
* @export
|
|
24462
|
+
* @interface ConnectorDocumentApiOverrideDocumentConnectorFileByFileIdRequest
|
|
24463
|
+
*/
|
|
24464
|
+
export interface ConnectorDocumentApiOverrideDocumentConnectorFileByFileIdRequest {
|
|
24465
|
+
/**
|
|
24466
|
+
*
|
|
24467
|
+
* @type {string}
|
|
24468
|
+
* @memberof ConnectorDocumentApiOverrideDocumentConnectorFileByFileId
|
|
24469
|
+
*/
|
|
24470
|
+
readonly username: string
|
|
24471
|
+
|
|
24472
|
+
/**
|
|
24473
|
+
*
|
|
24474
|
+
* @type {string}
|
|
24475
|
+
* @memberof ConnectorDocumentApiOverrideDocumentConnectorFileByFileId
|
|
24476
|
+
*/
|
|
24477
|
+
readonly dataset: string
|
|
24478
|
+
|
|
24479
|
+
/**
|
|
24480
|
+
*
|
|
24481
|
+
* @type {string}
|
|
24482
|
+
* @memberof ConnectorDocumentApiOverrideDocumentConnectorFileByFileId
|
|
24483
|
+
*/
|
|
24484
|
+
readonly fileId: string
|
|
24485
|
+
|
|
24486
|
+
/**
|
|
24487
|
+
*
|
|
24488
|
+
* @type {Array<File>}
|
|
24489
|
+
* @memberof ConnectorDocumentApiOverrideDocumentConnectorFileByFileId
|
|
24490
|
+
*/
|
|
24491
|
+
readonly file: Array<File>
|
|
24492
|
+
|
|
24493
|
+
/**
|
|
24494
|
+
*
|
|
24495
|
+
* @type {number}
|
|
24496
|
+
* @memberof ConnectorDocumentApiOverrideDocumentConnectorFileByFileId
|
|
24497
|
+
*/
|
|
24498
|
+
readonly connectorId?: number
|
|
24499
|
+
|
|
24500
|
+
/**
|
|
24501
|
+
*
|
|
24502
|
+
* @type {string}
|
|
24503
|
+
* @memberof ConnectorDocumentApiOverrideDocumentConnectorFileByFileId
|
|
24504
|
+
*/
|
|
24505
|
+
readonly qAnswerApiKey?: string
|
|
24506
|
+
|
|
24507
|
+
/**
|
|
24508
|
+
*
|
|
24509
|
+
* @type {DocumentMetadataListWrapper}
|
|
24510
|
+
* @memberof ConnectorDocumentApiOverrideDocumentConnectorFileByFileId
|
|
24511
|
+
*/
|
|
24512
|
+
readonly metadata?: DocumentMetadataListWrapper
|
|
24513
|
+
}
|
|
24514
|
+
|
|
24310
24515
|
/**
|
|
24311
24516
|
* ConnectorDocumentApi - object-oriented interface
|
|
24312
24517
|
* TypeScript/Axios client for the QAnswer API
|
|
@@ -24359,6 +24564,17 @@ export class ConnectorDocumentApi extends BaseAPI {
|
|
|
24359
24564
|
public documentConnectorCreateConnector(requestParameters: ConnectorDocumentApiDocumentConnectorCreateConnectorRequest, options?: RawAxiosRequestConfig) {
|
|
24360
24565
|
return ConnectorDocumentApiFp(this.configuration).documentConnectorCreateConnector(requestParameters.createConnectorRequest, requestParameters.qAnswerApiKey, options).then((request) => request(this.axios, this.basePath));
|
|
24361
24566
|
}
|
|
24567
|
+
|
|
24568
|
+
/**
|
|
24569
|
+
*
|
|
24570
|
+
* @param {ConnectorDocumentApiOverrideDocumentConnectorFileByFileIdRequest} requestParameters Request parameters.
|
|
24571
|
+
* @param {*} [options] Override http request option.
|
|
24572
|
+
* @throws {RequiredError}
|
|
24573
|
+
* @memberof ConnectorDocumentApi
|
|
24574
|
+
*/
|
|
24575
|
+
public overrideDocumentConnectorFileByFileId(requestParameters: ConnectorDocumentApiOverrideDocumentConnectorFileByFileIdRequest, options?: RawAxiosRequestConfig) {
|
|
24576
|
+
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));
|
|
24577
|
+
}
|
|
24362
24578
|
}
|
|
24363
24579
|
|
|
24364
24580
|
|
|
@@ -48327,22 +48543,20 @@ export const TaskReportCopilotApiAxiosParamCreator = function (configuration?: C
|
|
|
48327
48543
|
/**
|
|
48328
48544
|
*
|
|
48329
48545
|
* @summary Get the default prompt with slots of a report template
|
|
48330
|
-
* @param {number} templateId
|
|
48331
48546
|
* @param {string} username
|
|
48332
48547
|
* @param {string} dataset
|
|
48548
|
+
* @param {number} [templateId]
|
|
48549
|
+
* @param {number} [slotId]
|
|
48333
48550
|
* @param {string} [qAnswerApiKey]
|
|
48334
48551
|
* @param {*} [options] Override http request option.
|
|
48335
48552
|
* @throws {RequiredError}
|
|
48336
48553
|
*/
|
|
48337
|
-
getDefaultPrompt: async (
|
|
48338
|
-
// verify required parameter 'templateId' is not null or undefined
|
|
48339
|
-
assertParamExists('getDefaultPrompt', 'templateId', templateId)
|
|
48554
|
+
getDefaultPrompt: async (username: string, dataset: string, templateId?: number, slotId?: number, qAnswerApiKey?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48340
48555
|
// verify required parameter 'username' is not null or undefined
|
|
48341
48556
|
assertParamExists('getDefaultPrompt', 'username', username)
|
|
48342
48557
|
// verify required parameter 'dataset' is not null or undefined
|
|
48343
48558
|
assertParamExists('getDefaultPrompt', 'dataset', dataset)
|
|
48344
|
-
const localVarPath = `/api/tasks/report-copilot/templates/
|
|
48345
|
-
.replace(`{${"templateId"}}`, encodeURIComponent(String(templateId)));
|
|
48559
|
+
const localVarPath = `/api/tasks/report-copilot/templates/default-prompt`;
|
|
48346
48560
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48347
48561
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48348
48562
|
let baseOptions;
|
|
@@ -48369,6 +48583,14 @@ export const TaskReportCopilotApiAxiosParamCreator = function (configuration?: C
|
|
|
48369
48583
|
localVarQueryParameter['dataset'] = dataset;
|
|
48370
48584
|
}
|
|
48371
48585
|
|
|
48586
|
+
if (templateId !== undefined) {
|
|
48587
|
+
localVarQueryParameter['templateId'] = templateId;
|
|
48588
|
+
}
|
|
48589
|
+
|
|
48590
|
+
if (slotId !== undefined) {
|
|
48591
|
+
localVarQueryParameter['slotId'] = slotId;
|
|
48592
|
+
}
|
|
48593
|
+
|
|
48372
48594
|
if (qAnswerApiKey != null) {
|
|
48373
48595
|
localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
|
|
48374
48596
|
}
|
|
@@ -48435,6 +48657,70 @@ export const TaskReportCopilotApiAxiosParamCreator = function (configuration?: C
|
|
|
48435
48657
|
|
|
48436
48658
|
|
|
48437
48659
|
|
|
48660
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
48661
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
48662
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
48663
|
+
|
|
48664
|
+
return {
|
|
48665
|
+
url: toPathString(localVarUrlObj),
|
|
48666
|
+
options: localVarRequestOptions,
|
|
48667
|
+
};
|
|
48668
|
+
},
|
|
48669
|
+
/**
|
|
48670
|
+
*
|
|
48671
|
+
* @summary Get a specific slot of a report template
|
|
48672
|
+
* @param {string} username
|
|
48673
|
+
* @param {string} dataset
|
|
48674
|
+
* @param {number} templateId
|
|
48675
|
+
* @param {number} slotId
|
|
48676
|
+
* @param {string} [qAnswerApiKey]
|
|
48677
|
+
* @param {*} [options] Override http request option.
|
|
48678
|
+
* @throws {RequiredError}
|
|
48679
|
+
*/
|
|
48680
|
+
getSlotOfTemplate: async (username: string, dataset: string, templateId: number, slotId: number, qAnswerApiKey?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48681
|
+
// verify required parameter 'username' is not null or undefined
|
|
48682
|
+
assertParamExists('getSlotOfTemplate', 'username', username)
|
|
48683
|
+
// verify required parameter 'dataset' is not null or undefined
|
|
48684
|
+
assertParamExists('getSlotOfTemplate', 'dataset', dataset)
|
|
48685
|
+
// verify required parameter 'templateId' is not null or undefined
|
|
48686
|
+
assertParamExists('getSlotOfTemplate', 'templateId', templateId)
|
|
48687
|
+
// verify required parameter 'slotId' is not null or undefined
|
|
48688
|
+
assertParamExists('getSlotOfTemplate', 'slotId', slotId)
|
|
48689
|
+
const localVarPath = `/api/tasks/report-copilot/templates/{templateId}/slots/{slotId}`
|
|
48690
|
+
.replace(`{${"templateId"}}`, encodeURIComponent(String(templateId)))
|
|
48691
|
+
.replace(`{${"slotId"}}`, encodeURIComponent(String(slotId)));
|
|
48692
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48693
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48694
|
+
let baseOptions;
|
|
48695
|
+
if (configuration) {
|
|
48696
|
+
baseOptions = configuration.baseOptions;
|
|
48697
|
+
}
|
|
48698
|
+
|
|
48699
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
48700
|
+
const localVarHeaderParameter = {} as any;
|
|
48701
|
+
const localVarQueryParameter = {} as any;
|
|
48702
|
+
|
|
48703
|
+
// authentication QAnswer-Api-Key required
|
|
48704
|
+
await setApiKeyToObject(localVarHeaderParameter, "QAnswer-Api-Key", configuration)
|
|
48705
|
+
|
|
48706
|
+
// authentication Bearer required
|
|
48707
|
+
// http bearer authentication required
|
|
48708
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
48709
|
+
|
|
48710
|
+
if (username !== undefined) {
|
|
48711
|
+
localVarQueryParameter['username'] = username;
|
|
48712
|
+
}
|
|
48713
|
+
|
|
48714
|
+
if (dataset !== undefined) {
|
|
48715
|
+
localVarQueryParameter['dataset'] = dataset;
|
|
48716
|
+
}
|
|
48717
|
+
|
|
48718
|
+
if (qAnswerApiKey != null) {
|
|
48719
|
+
localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
|
|
48720
|
+
}
|
|
48721
|
+
|
|
48722
|
+
|
|
48723
|
+
|
|
48438
48724
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
48439
48725
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
48440
48726
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -48707,6 +48993,76 @@ export const TaskReportCopilotApiAxiosParamCreator = function (configuration?: C
|
|
|
48707
48993
|
options: localVarRequestOptions,
|
|
48708
48994
|
};
|
|
48709
48995
|
},
|
|
48996
|
+
/**
|
|
48997
|
+
*
|
|
48998
|
+
* @summary Update a specific slot of a report template
|
|
48999
|
+
* @param {string} username
|
|
49000
|
+
* @param {string} dataset
|
|
49001
|
+
* @param {number} templateId
|
|
49002
|
+
* @param {number} slotId
|
|
49003
|
+
* @param {SlotUpdate} slotUpdate
|
|
49004
|
+
* @param {string} [qAnswerApiKey]
|
|
49005
|
+
* @param {*} [options] Override http request option.
|
|
49006
|
+
* @throws {RequiredError}
|
|
49007
|
+
*/
|
|
49008
|
+
updateSlotOfTemplate: async (username: string, dataset: string, templateId: number, slotId: number, slotUpdate: SlotUpdate, qAnswerApiKey?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49009
|
+
// verify required parameter 'username' is not null or undefined
|
|
49010
|
+
assertParamExists('updateSlotOfTemplate', 'username', username)
|
|
49011
|
+
// verify required parameter 'dataset' is not null or undefined
|
|
49012
|
+
assertParamExists('updateSlotOfTemplate', 'dataset', dataset)
|
|
49013
|
+
// verify required parameter 'templateId' is not null or undefined
|
|
49014
|
+
assertParamExists('updateSlotOfTemplate', 'templateId', templateId)
|
|
49015
|
+
// verify required parameter 'slotId' is not null or undefined
|
|
49016
|
+
assertParamExists('updateSlotOfTemplate', 'slotId', slotId)
|
|
49017
|
+
// verify required parameter 'slotUpdate' is not null or undefined
|
|
49018
|
+
assertParamExists('updateSlotOfTemplate', 'slotUpdate', slotUpdate)
|
|
49019
|
+
const localVarPath = `/api/tasks/report-copilot/templates/{templateId}/slots/{slotId}`
|
|
49020
|
+
.replace(`{${"templateId"}}`, encodeURIComponent(String(templateId)))
|
|
49021
|
+
.replace(`{${"slotId"}}`, encodeURIComponent(String(slotId)));
|
|
49022
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49023
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
49024
|
+
let baseOptions;
|
|
49025
|
+
if (configuration) {
|
|
49026
|
+
baseOptions = configuration.baseOptions;
|
|
49027
|
+
}
|
|
49028
|
+
|
|
49029
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
49030
|
+
const localVarHeaderParameter = {} as any;
|
|
49031
|
+
const localVarQueryParameter = {} as any;
|
|
49032
|
+
|
|
49033
|
+
// authentication QAnswer-Api-Key required
|
|
49034
|
+
await setApiKeyToObject(localVarHeaderParameter, "QAnswer-Api-Key", configuration)
|
|
49035
|
+
|
|
49036
|
+
// authentication Bearer required
|
|
49037
|
+
// http bearer authentication required
|
|
49038
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
49039
|
+
|
|
49040
|
+
if (username !== undefined) {
|
|
49041
|
+
localVarQueryParameter['username'] = username;
|
|
49042
|
+
}
|
|
49043
|
+
|
|
49044
|
+
if (dataset !== undefined) {
|
|
49045
|
+
localVarQueryParameter['dataset'] = dataset;
|
|
49046
|
+
}
|
|
49047
|
+
|
|
49048
|
+
if (qAnswerApiKey != null) {
|
|
49049
|
+
localVarHeaderParameter['QAnswer-Api-Key'] = String(qAnswerApiKey);
|
|
49050
|
+
}
|
|
49051
|
+
|
|
49052
|
+
|
|
49053
|
+
|
|
49054
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
49055
|
+
|
|
49056
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
49057
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
49058
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
49059
|
+
localVarRequestOptions.data = serializeDataIfNeeded(slotUpdate, localVarRequestOptions, configuration)
|
|
49060
|
+
|
|
49061
|
+
return {
|
|
49062
|
+
url: toPathString(localVarUrlObj),
|
|
49063
|
+
options: localVarRequestOptions,
|
|
49064
|
+
};
|
|
49065
|
+
},
|
|
48710
49066
|
/**
|
|
48711
49067
|
*
|
|
48712
49068
|
* @summary This updates the settings of the report-copilot task
|
|
@@ -48827,15 +49183,16 @@ export const TaskReportCopilotApiFp = function(configuration?: Configuration) {
|
|
|
48827
49183
|
/**
|
|
48828
49184
|
*
|
|
48829
49185
|
* @summary Get the default prompt with slots of a report template
|
|
48830
|
-
* @param {number} templateId
|
|
48831
49186
|
* @param {string} username
|
|
48832
49187
|
* @param {string} dataset
|
|
49188
|
+
* @param {number} [templateId]
|
|
49189
|
+
* @param {number} [slotId]
|
|
48833
49190
|
* @param {string} [qAnswerApiKey]
|
|
48834
49191
|
* @param {*} [options] Override http request option.
|
|
48835
49192
|
* @throws {RequiredError}
|
|
48836
49193
|
*/
|
|
48837
|
-
async getDefaultPrompt(
|
|
48838
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaultPrompt(
|
|
49194
|
+
async getDefaultPrompt(username: string, dataset: string, templateId?: number, slotId?: number, qAnswerApiKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DefaultPrompt>> {
|
|
49195
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaultPrompt(username, dataset, templateId, slotId, qAnswerApiKey, options);
|
|
48839
49196
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
48840
49197
|
const localVarOperationServerBasePath = operationServerMap['TaskReportCopilotApi.getDefaultPrompt']?.[localVarOperationServerIndex]?.url;
|
|
48841
49198
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -48856,6 +49213,23 @@ export const TaskReportCopilotApiFp = function(configuration?: Configuration) {
|
|
|
48856
49213
|
const localVarOperationServerBasePath = operationServerMap['TaskReportCopilotApi.getReportTemplate']?.[localVarOperationServerIndex]?.url;
|
|
48857
49214
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
48858
49215
|
},
|
|
49216
|
+
/**
|
|
49217
|
+
*
|
|
49218
|
+
* @summary Get a specific slot of a report template
|
|
49219
|
+
* @param {string} username
|
|
49220
|
+
* @param {string} dataset
|
|
49221
|
+
* @param {number} templateId
|
|
49222
|
+
* @param {number} slotId
|
|
49223
|
+
* @param {string} [qAnswerApiKey]
|
|
49224
|
+
* @param {*} [options] Override http request option.
|
|
49225
|
+
* @throws {RequiredError}
|
|
49226
|
+
*/
|
|
49227
|
+
async getSlotOfTemplate(username: string, dataset: string, templateId: number, slotId: number, qAnswerApiKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Slot>> {
|
|
49228
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSlotOfTemplate(username, dataset, templateId, slotId, qAnswerApiKey, options);
|
|
49229
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
49230
|
+
const localVarOperationServerBasePath = operationServerMap['TaskReportCopilotApi.getSlotOfTemplate']?.[localVarOperationServerIndex]?.url;
|
|
49231
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
49232
|
+
},
|
|
48859
49233
|
/**
|
|
48860
49234
|
*
|
|
48861
49235
|
* @summary This gets the settings of the report-copilot task
|
|
@@ -48928,6 +49302,24 @@ export const TaskReportCopilotApiFp = function(configuration?: Configuration) {
|
|
|
48928
49302
|
const localVarOperationServerBasePath = operationServerMap['TaskReportCopilotApi.updateReportTemplate']?.[localVarOperationServerIndex]?.url;
|
|
48929
49303
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
48930
49304
|
},
|
|
49305
|
+
/**
|
|
49306
|
+
*
|
|
49307
|
+
* @summary Update a specific slot of a report template
|
|
49308
|
+
* @param {string} username
|
|
49309
|
+
* @param {string} dataset
|
|
49310
|
+
* @param {number} templateId
|
|
49311
|
+
* @param {number} slotId
|
|
49312
|
+
* @param {SlotUpdate} slotUpdate
|
|
49313
|
+
* @param {string} [qAnswerApiKey]
|
|
49314
|
+
* @param {*} [options] Override http request option.
|
|
49315
|
+
* @throws {RequiredError}
|
|
49316
|
+
*/
|
|
49317
|
+
async updateSlotOfTemplate(username: string, dataset: string, templateId: number, slotId: number, slotUpdate: SlotUpdate, qAnswerApiKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Slot>> {
|
|
49318
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSlotOfTemplate(username, dataset, templateId, slotId, slotUpdate, qAnswerApiKey, options);
|
|
49319
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
49320
|
+
const localVarOperationServerBasePath = operationServerMap['TaskReportCopilotApi.updateSlotOfTemplate']?.[localVarOperationServerIndex]?.url;
|
|
49321
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
49322
|
+
},
|
|
48931
49323
|
/**
|
|
48932
49324
|
*
|
|
48933
49325
|
* @summary This updates the settings of the report-copilot task
|
|
@@ -49001,7 +49393,7 @@ export const TaskReportCopilotApiFactory = function (configuration?: Configurati
|
|
|
49001
49393
|
* @throws {RequiredError}
|
|
49002
49394
|
*/
|
|
49003
49395
|
getDefaultPrompt(requestParameters: TaskReportCopilotApiGetDefaultPromptRequest, options?: RawAxiosRequestConfig): AxiosPromise<DefaultPrompt> {
|
|
49004
|
-
return localVarFp.getDefaultPrompt(requestParameters.
|
|
49396
|
+
return localVarFp.getDefaultPrompt(requestParameters.username, requestParameters.dataset, requestParameters.templateId, requestParameters.slotId, requestParameters.qAnswerApiKey, options).then((request) => request(axios, basePath));
|
|
49005
49397
|
},
|
|
49006
49398
|
/**
|
|
49007
49399
|
*
|
|
@@ -49013,6 +49405,16 @@ export const TaskReportCopilotApiFactory = function (configuration?: Configurati
|
|
|
49013
49405
|
getReportTemplate(requestParameters: TaskReportCopilotApiGetReportTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReportTemplate> {
|
|
49014
49406
|
return localVarFp.getReportTemplate(requestParameters.username, requestParameters.dataset, requestParameters.templateId, requestParameters.qAnswerApiKey, options).then((request) => request(axios, basePath));
|
|
49015
49407
|
},
|
|
49408
|
+
/**
|
|
49409
|
+
*
|
|
49410
|
+
* @summary Get a specific slot of a report template
|
|
49411
|
+
* @param {TaskReportCopilotApiGetSlotOfTemplateRequest} requestParameters Request parameters.
|
|
49412
|
+
* @param {*} [options] Override http request option.
|
|
49413
|
+
* @throws {RequiredError}
|
|
49414
|
+
*/
|
|
49415
|
+
getSlotOfTemplate(requestParameters: TaskReportCopilotApiGetSlotOfTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<Slot> {
|
|
49416
|
+
return localVarFp.getSlotOfTemplate(requestParameters.username, requestParameters.dataset, requestParameters.templateId, requestParameters.slotId, requestParameters.qAnswerApiKey, options).then((request) => request(axios, basePath));
|
|
49417
|
+
},
|
|
49016
49418
|
/**
|
|
49017
49419
|
*
|
|
49018
49420
|
* @summary This gets the settings of the report-copilot task
|
|
@@ -49061,6 +49463,16 @@ export const TaskReportCopilotApiFactory = function (configuration?: Configurati
|
|
|
49061
49463
|
updateReportTemplate(requestParameters: TaskReportCopilotApiUpdateReportTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReportTemplate> {
|
|
49062
49464
|
return localVarFp.updateReportTemplate(requestParameters.templateId, requestParameters.reportTemplateUpdatePayload, requestParameters.qAnswerApiKey, options).then((request) => request(axios, basePath));
|
|
49063
49465
|
},
|
|
49466
|
+
/**
|
|
49467
|
+
*
|
|
49468
|
+
* @summary Update a specific slot of a report template
|
|
49469
|
+
* @param {TaskReportCopilotApiUpdateSlotOfTemplateRequest} requestParameters Request parameters.
|
|
49470
|
+
* @param {*} [options] Override http request option.
|
|
49471
|
+
* @throws {RequiredError}
|
|
49472
|
+
*/
|
|
49473
|
+
updateSlotOfTemplate(requestParameters: TaskReportCopilotApiUpdateSlotOfTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<Slot> {
|
|
49474
|
+
return localVarFp.updateSlotOfTemplate(requestParameters.username, requestParameters.dataset, requestParameters.templateId, requestParameters.slotId, requestParameters.slotUpdate, requestParameters.qAnswerApiKey, options).then((request) => request(axios, basePath));
|
|
49475
|
+
},
|
|
49064
49476
|
/**
|
|
49065
49477
|
*
|
|
49066
49478
|
* @summary This updates the settings of the report-copilot task
|
|
@@ -49180,24 +49592,31 @@ export interface TaskReportCopilotApiExportTemplateAsDocxRequest {
|
|
|
49180
49592
|
export interface TaskReportCopilotApiGetDefaultPromptRequest {
|
|
49181
49593
|
/**
|
|
49182
49594
|
*
|
|
49183
|
-
* @type {
|
|
49595
|
+
* @type {string}
|
|
49184
49596
|
* @memberof TaskReportCopilotApiGetDefaultPrompt
|
|
49185
49597
|
*/
|
|
49186
|
-
readonly
|
|
49598
|
+
readonly username: string
|
|
49187
49599
|
|
|
49188
49600
|
/**
|
|
49189
49601
|
*
|
|
49190
49602
|
* @type {string}
|
|
49191
49603
|
* @memberof TaskReportCopilotApiGetDefaultPrompt
|
|
49192
49604
|
*/
|
|
49193
|
-
readonly
|
|
49605
|
+
readonly dataset: string
|
|
49194
49606
|
|
|
49195
49607
|
/**
|
|
49196
49608
|
*
|
|
49197
|
-
* @type {
|
|
49609
|
+
* @type {number}
|
|
49198
49610
|
* @memberof TaskReportCopilotApiGetDefaultPrompt
|
|
49199
49611
|
*/
|
|
49200
|
-
readonly
|
|
49612
|
+
readonly templateId?: number
|
|
49613
|
+
|
|
49614
|
+
/**
|
|
49615
|
+
*
|
|
49616
|
+
* @type {number}
|
|
49617
|
+
* @memberof TaskReportCopilotApiGetDefaultPrompt
|
|
49618
|
+
*/
|
|
49619
|
+
readonly slotId?: number
|
|
49201
49620
|
|
|
49202
49621
|
/**
|
|
49203
49622
|
*
|
|
@@ -49242,6 +49661,48 @@ export interface TaskReportCopilotApiGetReportTemplateRequest {
|
|
|
49242
49661
|
readonly qAnswerApiKey?: string
|
|
49243
49662
|
}
|
|
49244
49663
|
|
|
49664
|
+
/**
|
|
49665
|
+
* Request parameters for getSlotOfTemplate operation in TaskReportCopilotApi.
|
|
49666
|
+
* @export
|
|
49667
|
+
* @interface TaskReportCopilotApiGetSlotOfTemplateRequest
|
|
49668
|
+
*/
|
|
49669
|
+
export interface TaskReportCopilotApiGetSlotOfTemplateRequest {
|
|
49670
|
+
/**
|
|
49671
|
+
*
|
|
49672
|
+
* @type {string}
|
|
49673
|
+
* @memberof TaskReportCopilotApiGetSlotOfTemplate
|
|
49674
|
+
*/
|
|
49675
|
+
readonly username: string
|
|
49676
|
+
|
|
49677
|
+
/**
|
|
49678
|
+
*
|
|
49679
|
+
* @type {string}
|
|
49680
|
+
* @memberof TaskReportCopilotApiGetSlotOfTemplate
|
|
49681
|
+
*/
|
|
49682
|
+
readonly dataset: string
|
|
49683
|
+
|
|
49684
|
+
/**
|
|
49685
|
+
*
|
|
49686
|
+
* @type {number}
|
|
49687
|
+
* @memberof TaskReportCopilotApiGetSlotOfTemplate
|
|
49688
|
+
*/
|
|
49689
|
+
readonly templateId: number
|
|
49690
|
+
|
|
49691
|
+
/**
|
|
49692
|
+
*
|
|
49693
|
+
* @type {number}
|
|
49694
|
+
* @memberof TaskReportCopilotApiGetSlotOfTemplate
|
|
49695
|
+
*/
|
|
49696
|
+
readonly slotId: number
|
|
49697
|
+
|
|
49698
|
+
/**
|
|
49699
|
+
*
|
|
49700
|
+
* @type {string}
|
|
49701
|
+
* @memberof TaskReportCopilotApiGetSlotOfTemplate
|
|
49702
|
+
*/
|
|
49703
|
+
readonly qAnswerApiKey?: string
|
|
49704
|
+
}
|
|
49705
|
+
|
|
49245
49706
|
/**
|
|
49246
49707
|
* Request parameters for getTaskSettings operation in TaskReportCopilotApi.
|
|
49247
49708
|
* @export
|
|
@@ -49375,6 +49836,55 @@ export interface TaskReportCopilotApiUpdateReportTemplateRequest {
|
|
|
49375
49836
|
readonly qAnswerApiKey?: string
|
|
49376
49837
|
}
|
|
49377
49838
|
|
|
49839
|
+
/**
|
|
49840
|
+
* Request parameters for updateSlotOfTemplate operation in TaskReportCopilotApi.
|
|
49841
|
+
* @export
|
|
49842
|
+
* @interface TaskReportCopilotApiUpdateSlotOfTemplateRequest
|
|
49843
|
+
*/
|
|
49844
|
+
export interface TaskReportCopilotApiUpdateSlotOfTemplateRequest {
|
|
49845
|
+
/**
|
|
49846
|
+
*
|
|
49847
|
+
* @type {string}
|
|
49848
|
+
* @memberof TaskReportCopilotApiUpdateSlotOfTemplate
|
|
49849
|
+
*/
|
|
49850
|
+
readonly username: string
|
|
49851
|
+
|
|
49852
|
+
/**
|
|
49853
|
+
*
|
|
49854
|
+
* @type {string}
|
|
49855
|
+
* @memberof TaskReportCopilotApiUpdateSlotOfTemplate
|
|
49856
|
+
*/
|
|
49857
|
+
readonly dataset: string
|
|
49858
|
+
|
|
49859
|
+
/**
|
|
49860
|
+
*
|
|
49861
|
+
* @type {number}
|
|
49862
|
+
* @memberof TaskReportCopilotApiUpdateSlotOfTemplate
|
|
49863
|
+
*/
|
|
49864
|
+
readonly templateId: number
|
|
49865
|
+
|
|
49866
|
+
/**
|
|
49867
|
+
*
|
|
49868
|
+
* @type {number}
|
|
49869
|
+
* @memberof TaskReportCopilotApiUpdateSlotOfTemplate
|
|
49870
|
+
*/
|
|
49871
|
+
readonly slotId: number
|
|
49872
|
+
|
|
49873
|
+
/**
|
|
49874
|
+
*
|
|
49875
|
+
* @type {SlotUpdate}
|
|
49876
|
+
* @memberof TaskReportCopilotApiUpdateSlotOfTemplate
|
|
49877
|
+
*/
|
|
49878
|
+
readonly slotUpdate: SlotUpdate
|
|
49879
|
+
|
|
49880
|
+
/**
|
|
49881
|
+
*
|
|
49882
|
+
* @type {string}
|
|
49883
|
+
* @memberof TaskReportCopilotApiUpdateSlotOfTemplate
|
|
49884
|
+
*/
|
|
49885
|
+
readonly qAnswerApiKey?: string
|
|
49886
|
+
}
|
|
49887
|
+
|
|
49378
49888
|
/**
|
|
49379
49889
|
* Request parameters for updateTaskSettings operation in TaskReportCopilotApi.
|
|
49380
49890
|
* @export
|
|
@@ -49461,7 +49971,7 @@ export class TaskReportCopilotApi extends BaseAPI {
|
|
|
49461
49971
|
* @memberof TaskReportCopilotApi
|
|
49462
49972
|
*/
|
|
49463
49973
|
public getDefaultPrompt(requestParameters: TaskReportCopilotApiGetDefaultPromptRequest, options?: RawAxiosRequestConfig) {
|
|
49464
|
-
return TaskReportCopilotApiFp(this.configuration).getDefaultPrompt(requestParameters.
|
|
49974
|
+
return TaskReportCopilotApiFp(this.configuration).getDefaultPrompt(requestParameters.username, requestParameters.dataset, requestParameters.templateId, requestParameters.slotId, requestParameters.qAnswerApiKey, options).then((request) => request(this.axios, this.basePath));
|
|
49465
49975
|
}
|
|
49466
49976
|
|
|
49467
49977
|
/**
|
|
@@ -49476,6 +49986,18 @@ export class TaskReportCopilotApi extends BaseAPI {
|
|
|
49476
49986
|
return TaskReportCopilotApiFp(this.configuration).getReportTemplate(requestParameters.username, requestParameters.dataset, requestParameters.templateId, requestParameters.qAnswerApiKey, options).then((request) => request(this.axios, this.basePath));
|
|
49477
49987
|
}
|
|
49478
49988
|
|
|
49989
|
+
/**
|
|
49990
|
+
*
|
|
49991
|
+
* @summary Get a specific slot of a report template
|
|
49992
|
+
* @param {TaskReportCopilotApiGetSlotOfTemplateRequest} requestParameters Request parameters.
|
|
49993
|
+
* @param {*} [options] Override http request option.
|
|
49994
|
+
* @throws {RequiredError}
|
|
49995
|
+
* @memberof TaskReportCopilotApi
|
|
49996
|
+
*/
|
|
49997
|
+
public getSlotOfTemplate(requestParameters: TaskReportCopilotApiGetSlotOfTemplateRequest, options?: RawAxiosRequestConfig) {
|
|
49998
|
+
return TaskReportCopilotApiFp(this.configuration).getSlotOfTemplate(requestParameters.username, requestParameters.dataset, requestParameters.templateId, requestParameters.slotId, requestParameters.qAnswerApiKey, options).then((request) => request(this.axios, this.basePath));
|
|
49999
|
+
}
|
|
50000
|
+
|
|
49479
50001
|
/**
|
|
49480
50002
|
*
|
|
49481
50003
|
* @summary This gets the settings of the report-copilot task
|
|
@@ -49534,6 +50056,18 @@ export class TaskReportCopilotApi extends BaseAPI {
|
|
|
49534
50056
|
return TaskReportCopilotApiFp(this.configuration).updateReportTemplate(requestParameters.templateId, requestParameters.reportTemplateUpdatePayload, requestParameters.qAnswerApiKey, options).then((request) => request(this.axios, this.basePath));
|
|
49535
50057
|
}
|
|
49536
50058
|
|
|
50059
|
+
/**
|
|
50060
|
+
*
|
|
50061
|
+
* @summary Update a specific slot of a report template
|
|
50062
|
+
* @param {TaskReportCopilotApiUpdateSlotOfTemplateRequest} requestParameters Request parameters.
|
|
50063
|
+
* @param {*} [options] Override http request option.
|
|
50064
|
+
* @throws {RequiredError}
|
|
50065
|
+
* @memberof TaskReportCopilotApi
|
|
50066
|
+
*/
|
|
50067
|
+
public updateSlotOfTemplate(requestParameters: TaskReportCopilotApiUpdateSlotOfTemplateRequest, options?: RawAxiosRequestConfig) {
|
|
50068
|
+
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));
|
|
50069
|
+
}
|
|
50070
|
+
|
|
49537
50071
|
/**
|
|
49538
50072
|
*
|
|
49539
50073
|
* @summary This updates the settings of the report-copilot task
|