@gooddata/api-client-tiger 11.53.0-alpha.4 → 11.53.0-alpha.6
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/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/api-client-tiger.d.ts +2726 -2990
- package/esm/endpoints/genAI/index.d.ts +2 -2
- package/esm/endpoints/genAI/index.d.ts.map +1 -1
- package/esm/endpoints/genAI/index.js +3 -3
- package/esm/genAI.d.ts +2 -2
- package/esm/genAI.d.ts.map +1 -1
- package/esm/genAI.js +2 -2
- package/esm/generated/ai-json-api/api.d.ts +677 -766
- package/esm/generated/ai-json-api/api.d.ts.map +1 -1
- package/esm/generated/ai-json-api/api.js +784 -832
- package/esm/generated/automation-json-api/api.d.ts +1 -1
- package/esm/generated/automation-json-api/api.d.ts.map +1 -1
- package/esm/generated/export-json-api/api.d.ts +1 -1
- package/esm/generated/export-json-api/api.d.ts.map +1 -1
- package/esm/generated/metadata-json-api/api.d.ts +8554 -6063
- package/esm/generated/metadata-json-api/api.d.ts.map +1 -1
- package/esm/generated/metadata-json-api/api.js +6993 -5211
- package/esm/generated/scan-json-api/api.d.ts +1 -1
- package/esm/generated/scan-json-api/api.d.ts.map +1 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +4 -4
|
@@ -80,6 +80,14 @@ export const AiComparisonMeasureValueOperator = {
|
|
|
80
80
|
EQUAL_TO: 'EQUAL_TO',
|
|
81
81
|
NOT_EQUAL_TO: 'NOT_EQUAL_TO'
|
|
82
82
|
};
|
|
83
|
+
/**
|
|
84
|
+
* What a conversation exists to serve. USER is a person\'s own thread in the assistant. The others are utility modes, where the conversation serves something else and is kept out of the user\'s history: PREVIEW backs the Agent Builder preview pane, MCP backs a single-purpose MCP tool call.
|
|
85
|
+
*/
|
|
86
|
+
export const AiConversationMode = {
|
|
87
|
+
USER: 'USER',
|
|
88
|
+
PREVIEW: 'PREVIEW',
|
|
89
|
+
MCP: 'MCP'
|
|
90
|
+
};
|
|
83
91
|
export const AiDateFilterGranularity = {
|
|
84
92
|
MINUTE: 'MINUTE',
|
|
85
93
|
HOUR: 'HOUR',
|
|
@@ -209,16 +217,20 @@ export const AiSensitivity = {
|
|
|
209
217
|
MEDIUM: 'MEDIUM',
|
|
210
218
|
HIGH: 'HIGH'
|
|
211
219
|
};
|
|
212
|
-
//
|
|
220
|
+
// AgentsAi FP - AgentsAiAxiosParamCreator
|
|
213
221
|
/**
|
|
214
|
-
*
|
|
215
|
-
* @summary
|
|
222
|
+
* List agents the user can use in this workspace, sorted A-Z. This is the personalized \"usable here\" view for the agent switcher -- access-filtered to the user, enabled, non-preview, with per-agent lastUsedAt. For agent CRUD/management use the metadata entity endpoint GET /api/v1/entities/agents instead.
|
|
223
|
+
* @summary List available agents
|
|
224
|
+
* @param {string} workspaceId
|
|
216
225
|
* @param {*} [options] Override http request option.
|
|
217
226
|
* @param {Configuration} [configuration] Optional configuration.
|
|
218
227
|
* @throws {RequiredError}
|
|
219
228
|
*/
|
|
220
|
-
export async function
|
|
221
|
-
|
|
229
|
+
export async function AgentsAiAxiosParamCreator_ListAgents(workspaceId, options = {}, configuration) {
|
|
230
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
231
|
+
assertParamExists('listAgents', 'workspaceId', workspaceId);
|
|
232
|
+
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/agents`
|
|
233
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
222
234
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
223
235
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
224
236
|
let baseOptions;
|
|
@@ -240,39 +252,7 @@ export async function AIObservabilityAiAxiosParamCreator_GetObservabilityOvervie
|
|
|
240
252
|
options: localVarRequestOptions,
|
|
241
253
|
};
|
|
242
254
|
}
|
|
243
|
-
//
|
|
244
|
-
/**
|
|
245
|
-
* Returns AI usage stats for the caller\'s organization for the current calendar month, alongside the previous month\'s value. Backed by the ai_usage_counters table populated by the metering pipeline.
|
|
246
|
-
* @summary (EXPERIMENTAL) AI observability overview for the caller\'s organization
|
|
247
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
248
|
-
* @param {string} basePath Base path.
|
|
249
|
-
* @param {*} [options] Override http request option.
|
|
250
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
251
|
-
* @throws {RequiredError}
|
|
252
|
-
*/
|
|
253
|
-
export async function AIObservabilityAi_GetObservabilityOverview(axios, basePath, options, configuration) {
|
|
254
|
-
const localVarAxiosArgs = await AIObservabilityAiAxiosParamCreator_GetObservabilityOverview(options || {}, configuration);
|
|
255
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* AIObservabilityAi - object-oriented interface
|
|
259
|
-
* @export
|
|
260
|
-
* @class AIObservabilityAi
|
|
261
|
-
* @extends {BaseAPI}
|
|
262
|
-
*/
|
|
263
|
-
export class AIObservabilityAi extends BaseAPI {
|
|
264
|
-
/**
|
|
265
|
-
* Returns AI usage stats for the caller\'s organization for the current calendar month, alongside the previous month\'s value. Backed by the ai_usage_counters table populated by the metering pipeline.
|
|
266
|
-
* @summary (EXPERIMENTAL) AI observability overview for the caller\'s organization
|
|
267
|
-
* @param {*} [options] Override http request option.
|
|
268
|
-
* @throws {RequiredError}
|
|
269
|
-
* @memberof AIObservabilityAi
|
|
270
|
-
*/
|
|
271
|
-
getObservabilityOverview(options) {
|
|
272
|
-
return AIObservabilityAi_GetObservabilityOverview(this.axios, this.basePath, options, this.configuration);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
// AgentAi FP - AgentAiAxiosParamCreator
|
|
255
|
+
// AgentsAi FP - AgentsAiAxiosParamCreator
|
|
276
256
|
/**
|
|
277
257
|
*
|
|
278
258
|
* @summary Get Skills
|
|
@@ -280,7 +260,7 @@ export class AIObservabilityAi extends BaseAPI {
|
|
|
280
260
|
* @param {Configuration} [configuration] Optional configuration.
|
|
281
261
|
* @throws {RequiredError}
|
|
282
262
|
*/
|
|
283
|
-
export async function
|
|
263
|
+
export async function AgentsAiAxiosParamCreator_ListAvailableSkills(options = {}, configuration) {
|
|
284
264
|
const localVarPath = `/api/v1/ai/agent/skills`;
|
|
285
265
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
286
266
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -303,7 +283,22 @@ export async function AgentAiAxiosParamCreator_ListAvailableSkills(options = {},
|
|
|
303
283
|
options: localVarRequestOptions,
|
|
304
284
|
};
|
|
305
285
|
}
|
|
306
|
-
//
|
|
286
|
+
// AgentsAi Api FP
|
|
287
|
+
/**
|
|
288
|
+
* List agents the user can use in this workspace, sorted A-Z. This is the personalized \"usable here\" view for the agent switcher -- access-filtered to the user, enabled, non-preview, with per-agent lastUsedAt. For agent CRUD/management use the metadata entity endpoint GET /api/v1/entities/agents instead.
|
|
289
|
+
* @summary List available agents
|
|
290
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
291
|
+
* @param {string} basePath Base path.
|
|
292
|
+
* @param {AgentsAiListAgentsRequest} requestParameters Request parameters.
|
|
293
|
+
* @param {*} [options] Override http request option.
|
|
294
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
295
|
+
* @throws {RequiredError}
|
|
296
|
+
*/
|
|
297
|
+
export async function AgentsAi_ListAgents(axios, basePath, requestParameters, options, configuration) {
|
|
298
|
+
const localVarAxiosArgs = await AgentsAiAxiosParamCreator_ListAgents(requestParameters.workspaceId, options || {}, configuration);
|
|
299
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
300
|
+
}
|
|
301
|
+
// AgentsAi Api FP
|
|
307
302
|
/**
|
|
308
303
|
*
|
|
309
304
|
* @summary Get Skills
|
|
@@ -313,49 +308,64 @@ export async function AgentAiAxiosParamCreator_ListAvailableSkills(options = {},
|
|
|
313
308
|
* @param {Configuration} [configuration] Optional configuration.
|
|
314
309
|
* @throws {RequiredError}
|
|
315
310
|
*/
|
|
316
|
-
export async function
|
|
317
|
-
const localVarAxiosArgs = await
|
|
311
|
+
export async function AgentsAi_ListAvailableSkills(axios, basePath, options, configuration) {
|
|
312
|
+
const localVarAxiosArgs = await AgentsAiAxiosParamCreator_ListAvailableSkills(options || {}, configuration);
|
|
318
313
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
319
314
|
}
|
|
320
315
|
/**
|
|
321
|
-
*
|
|
316
|
+
* AgentsAi - object-oriented interface
|
|
322
317
|
* @export
|
|
323
|
-
* @class
|
|
318
|
+
* @class AgentsAi
|
|
324
319
|
* @extends {BaseAPI}
|
|
325
320
|
*/
|
|
326
|
-
export class
|
|
321
|
+
export class AgentsAi extends BaseAPI {
|
|
322
|
+
/**
|
|
323
|
+
* List agents the user can use in this workspace, sorted A-Z. This is the personalized \"usable here\" view for the agent switcher -- access-filtered to the user, enabled, non-preview, with per-agent lastUsedAt. For agent CRUD/management use the metadata entity endpoint GET /api/v1/entities/agents instead.
|
|
324
|
+
* @summary List available agents
|
|
325
|
+
* @param {AgentsAiListAgentsRequest} requestParameters Request parameters.
|
|
326
|
+
* @param {*} [options] Override http request option.
|
|
327
|
+
* @throws {RequiredError}
|
|
328
|
+
* @memberof AgentsAi
|
|
329
|
+
*/
|
|
330
|
+
listAgents(requestParameters, options) {
|
|
331
|
+
return AgentsAi_ListAgents(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
332
|
+
}
|
|
327
333
|
/**
|
|
328
334
|
*
|
|
329
335
|
* @summary Get Skills
|
|
330
336
|
* @param {*} [options] Override http request option.
|
|
331
337
|
* @throws {RequiredError}
|
|
332
|
-
* @memberof
|
|
338
|
+
* @memberof AgentsAi
|
|
333
339
|
*/
|
|
334
340
|
listAvailableSkills(options) {
|
|
335
|
-
return
|
|
341
|
+
return AgentsAi_ListAvailableSkills(this.axios, this.basePath, options, this.configuration);
|
|
336
342
|
}
|
|
337
343
|
}
|
|
338
|
-
//
|
|
344
|
+
// ConversationsAi FP - ConversationsAiAxiosParamCreator
|
|
339
345
|
/**
|
|
340
|
-
*
|
|
341
|
-
* @summary
|
|
346
|
+
*
|
|
347
|
+
* @summary Delete a conversation
|
|
342
348
|
* @param {string} workspaceId
|
|
349
|
+
* @param {string} conversationId
|
|
343
350
|
* @param {*} [options] Override http request option.
|
|
344
351
|
* @param {Configuration} [configuration] Optional configuration.
|
|
345
352
|
* @throws {RequiredError}
|
|
346
353
|
*/
|
|
347
|
-
export async function
|
|
354
|
+
export async function ConversationsAiAxiosParamCreator_DeleteConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDelete(workspaceId, conversationId, options = {}, configuration) {
|
|
348
355
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
349
|
-
assertParamExists('
|
|
350
|
-
|
|
351
|
-
|
|
356
|
+
assertParamExists('deleteConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDelete', 'workspaceId', workspaceId);
|
|
357
|
+
// verify required parameter 'conversationId' is not null or undefined
|
|
358
|
+
assertParamExists('deleteConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDelete', 'conversationId', conversationId);
|
|
359
|
+
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}`
|
|
360
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
361
|
+
.replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)));
|
|
352
362
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
353
363
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
354
364
|
let baseOptions;
|
|
355
365
|
if (configuration) {
|
|
356
366
|
baseOptions = configuration.baseOptions;
|
|
357
367
|
}
|
|
358
|
-
const localVarRequestOptions = { method: '
|
|
368
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
359
369
|
const localVarHeaderParameter = {};
|
|
360
370
|
const localVarQueryParameter = {};
|
|
361
371
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -370,56 +380,104 @@ export async function AgentsAiAxiosParamCreator_ListAgents(workspaceId, options
|
|
|
370
380
|
options: localVarRequestOptions,
|
|
371
381
|
};
|
|
372
382
|
}
|
|
373
|
-
//
|
|
383
|
+
// ConversationsAi FP - ConversationsAiAxiosParamCreator
|
|
374
384
|
/**
|
|
375
|
-
*
|
|
376
|
-
* @summary
|
|
377
|
-
* @param {
|
|
378
|
-
* @param {string}
|
|
379
|
-
* @param {AgentsAiListAgentsRequest} requestParameters Request parameters.
|
|
385
|
+
*
|
|
386
|
+
* @summary Get a conversation
|
|
387
|
+
* @param {string} workspaceId
|
|
388
|
+
* @param {string} conversationId
|
|
380
389
|
* @param {*} [options] Override http request option.
|
|
381
390
|
* @param {Configuration} [configuration] Optional configuration.
|
|
382
391
|
* @throws {RequiredError}
|
|
383
392
|
*/
|
|
384
|
-
export async function
|
|
385
|
-
|
|
386
|
-
|
|
393
|
+
export async function ConversationsAiAxiosParamCreator_GetConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGet(workspaceId, conversationId, options = {}, configuration) {
|
|
394
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
395
|
+
assertParamExists('getConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGet', 'workspaceId', workspaceId);
|
|
396
|
+
// verify required parameter 'conversationId' is not null or undefined
|
|
397
|
+
assertParamExists('getConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGet', 'conversationId', conversationId);
|
|
398
|
+
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}`
|
|
399
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
400
|
+
.replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)));
|
|
401
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
402
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
403
|
+
let baseOptions;
|
|
404
|
+
if (configuration) {
|
|
405
|
+
baseOptions = configuration.baseOptions;
|
|
406
|
+
}
|
|
407
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
408
|
+
const localVarHeaderParameter = {};
|
|
409
|
+
const localVarQueryParameter = {};
|
|
410
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
411
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
412
|
+
localVarRequestOptions.headers = {
|
|
413
|
+
...localVarHeaderParameter,
|
|
414
|
+
...headersFromBaseOptions,
|
|
415
|
+
...options.headers,
|
|
416
|
+
};
|
|
417
|
+
return {
|
|
418
|
+
url: toPathString(localVarUrlObj),
|
|
419
|
+
options: localVarRequestOptions,
|
|
420
|
+
};
|
|
387
421
|
}
|
|
422
|
+
// ConversationsAi FP - ConversationsAiAxiosParamCreator
|
|
388
423
|
/**
|
|
389
|
-
*
|
|
390
|
-
* @
|
|
391
|
-
* @
|
|
392
|
-
* @
|
|
424
|
+
* The agent\'s interaction steps, available when interaction intelligence is enabled.
|
|
425
|
+
* @summary List reasoning steps
|
|
426
|
+
* @param {string} workspaceId
|
|
427
|
+
* @param {string} conversationId
|
|
428
|
+
* @param {string} [responseId]
|
|
429
|
+
* @param {*} [options] Override http request option.
|
|
430
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
431
|
+
* @throws {RequiredError}
|
|
393
432
|
*/
|
|
394
|
-
export
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
433
|
+
export async function ConversationsAiAxiosParamCreator_GetConversationInteractionStepsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdStepsGet(workspaceId, conversationId, responseId, options = {}, configuration) {
|
|
434
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
435
|
+
assertParamExists('getConversationInteractionStepsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdStepsGet', 'workspaceId', workspaceId);
|
|
436
|
+
// verify required parameter 'conversationId' is not null or undefined
|
|
437
|
+
assertParamExists('getConversationInteractionStepsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdStepsGet', 'conversationId', conversationId);
|
|
438
|
+
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/steps`
|
|
439
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
440
|
+
.replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)));
|
|
441
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
442
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
443
|
+
let baseOptions;
|
|
444
|
+
if (configuration) {
|
|
445
|
+
baseOptions = configuration.baseOptions;
|
|
446
|
+
}
|
|
447
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
448
|
+
const localVarHeaderParameter = {};
|
|
449
|
+
const localVarQueryParameter = {};
|
|
450
|
+
if (responseId !== undefined) {
|
|
451
|
+
localVarQueryParameter['responseId'] = responseId;
|
|
405
452
|
}
|
|
453
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
454
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
455
|
+
localVarRequestOptions.headers = {
|
|
456
|
+
...localVarHeaderParameter,
|
|
457
|
+
...headersFromBaseOptions,
|
|
458
|
+
...options.headers,
|
|
459
|
+
};
|
|
460
|
+
return {
|
|
461
|
+
url: toPathString(localVarUrlObj),
|
|
462
|
+
options: localVarRequestOptions,
|
|
463
|
+
};
|
|
406
464
|
}
|
|
407
465
|
// ConversationsAi FP - ConversationsAiAxiosParamCreator
|
|
408
466
|
/**
|
|
409
|
-
*
|
|
410
|
-
* @summary
|
|
467
|
+
* Items in the order the agent produced them: text, visualizations, dashboards.
|
|
468
|
+
* @summary List conversation items
|
|
411
469
|
* @param {string} workspaceId
|
|
412
470
|
* @param {string} conversationId
|
|
413
471
|
* @param {*} [options] Override http request option.
|
|
414
472
|
* @param {Configuration} [configuration] Optional configuration.
|
|
415
473
|
* @throws {RequiredError}
|
|
416
474
|
*/
|
|
417
|
-
export async function
|
|
475
|
+
export async function ConversationsAiAxiosParamCreator_GetConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGet(workspaceId, conversationId, options = {}, configuration) {
|
|
418
476
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
419
|
-
assertParamExists('
|
|
477
|
+
assertParamExists('getConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGet', 'workspaceId', workspaceId);
|
|
420
478
|
// verify required parameter 'conversationId' is not null or undefined
|
|
421
|
-
assertParamExists('
|
|
422
|
-
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}`
|
|
479
|
+
assertParamExists('getConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGet', 'conversationId', conversationId);
|
|
480
|
+
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/items`
|
|
423
481
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
424
482
|
.replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)));
|
|
425
483
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -428,7 +486,7 @@ export async function ConversationsAiAxiosParamCreator_DeleteConversationApiV1Ai
|
|
|
428
486
|
if (configuration) {
|
|
429
487
|
baseOptions = configuration.baseOptions;
|
|
430
488
|
}
|
|
431
|
-
const localVarRequestOptions = { method: '
|
|
489
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
432
490
|
const localVarHeaderParameter = {};
|
|
433
491
|
const localVarQueryParameter = {};
|
|
434
492
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -446,19 +504,19 @@ export async function ConversationsAiAxiosParamCreator_DeleteConversationApiV1Ai
|
|
|
446
504
|
// ConversationsAi FP - ConversationsAiAxiosParamCreator
|
|
447
505
|
/**
|
|
448
506
|
*
|
|
449
|
-
* @summary
|
|
507
|
+
* @summary List responses
|
|
450
508
|
* @param {string} workspaceId
|
|
451
509
|
* @param {string} conversationId
|
|
452
510
|
* @param {*} [options] Override http request option.
|
|
453
511
|
* @param {Configuration} [configuration] Optional configuration.
|
|
454
512
|
* @throws {RequiredError}
|
|
455
513
|
*/
|
|
456
|
-
export async function
|
|
514
|
+
export async function ConversationsAiAxiosParamCreator_GetConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGet(workspaceId, conversationId, options = {}, configuration) {
|
|
457
515
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
458
|
-
assertParamExists('
|
|
516
|
+
assertParamExists('getConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGet', 'workspaceId', workspaceId);
|
|
459
517
|
// verify required parameter 'conversationId' is not null or undefined
|
|
460
|
-
assertParamExists('
|
|
461
|
-
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}`
|
|
518
|
+
assertParamExists('getConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGet', 'conversationId', conversationId);
|
|
519
|
+
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/responses`
|
|
462
520
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
463
521
|
.replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)));
|
|
464
522
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -484,8 +542,8 @@ export async function ConversationsAiAxiosParamCreator_GetConversationApiV1AiWor
|
|
|
484
542
|
}
|
|
485
543
|
// ConversationsAi FP - ConversationsAiAxiosParamCreator
|
|
486
544
|
/**
|
|
487
|
-
*
|
|
488
|
-
* @summary
|
|
545
|
+
* Conversations belonging to the current user in this workspace.
|
|
546
|
+
* @summary List conversations
|
|
489
547
|
* @param {string} workspaceId
|
|
490
548
|
* @param {boolean} [isPreview]
|
|
491
549
|
* @param {number} [page]
|
|
@@ -531,8 +589,8 @@ export async function ConversationsAiAxiosParamCreator_GetConversationsApiV1AiWo
|
|
|
531
589
|
}
|
|
532
590
|
// ConversationsAi FP - ConversationsAiAxiosParamCreator
|
|
533
591
|
/**
|
|
534
|
-
*
|
|
535
|
-
* @summary
|
|
592
|
+
* Only the title and the pinned flag can be changed.
|
|
593
|
+
* @summary Update a conversation
|
|
536
594
|
* @param {string} workspaceId
|
|
537
595
|
* @param {string} conversationId
|
|
538
596
|
* @param {AiConversationUpdateRequest} aiConversationUpdateRequest
|
|
@@ -585,32 +643,38 @@ export async function ConversationsAiAxiosParamCreator_PatchConversationApiV1AiW
|
|
|
585
643
|
}
|
|
586
644
|
// ConversationsAi FP - ConversationsAiAxiosParamCreator
|
|
587
645
|
/**
|
|
588
|
-
*
|
|
589
|
-
* @summary
|
|
646
|
+
* Re-points the conversation\'s dashboard at the metadata object the user saved.
|
|
647
|
+
* @summary Link a saved dashboard
|
|
590
648
|
* @param {string} workspaceId
|
|
591
|
-
* @param {
|
|
592
|
-
* @param {
|
|
649
|
+
* @param {string} conversationId
|
|
650
|
+
* @param {string} dashboardId
|
|
651
|
+
* @param {AiDashboardIdUpdateRequest} aiDashboardIdUpdateRequest
|
|
593
652
|
* @param {*} [options] Override http request option.
|
|
594
653
|
* @param {Configuration} [configuration] Optional configuration.
|
|
595
654
|
* @throws {RequiredError}
|
|
596
655
|
*/
|
|
597
|
-
export async function
|
|
656
|
+
export async function ConversationsAiAxiosParamCreator_PatchDashboardApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDashboardsDashboardIdPatch(workspaceId, conversationId, dashboardId, aiDashboardIdUpdateRequest, options = {}, configuration) {
|
|
598
657
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
599
|
-
assertParamExists('
|
|
600
|
-
|
|
601
|
-
|
|
658
|
+
assertParamExists('patchDashboardApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDashboardsDashboardIdPatch', 'workspaceId', workspaceId);
|
|
659
|
+
// verify required parameter 'conversationId' is not null or undefined
|
|
660
|
+
assertParamExists('patchDashboardApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDashboardsDashboardIdPatch', 'conversationId', conversationId);
|
|
661
|
+
// verify required parameter 'dashboardId' is not null or undefined
|
|
662
|
+
assertParamExists('patchDashboardApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDashboardsDashboardIdPatch', 'dashboardId', dashboardId);
|
|
663
|
+
// verify required parameter 'aiDashboardIdUpdateRequest' is not null or undefined
|
|
664
|
+
assertParamExists('patchDashboardApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDashboardsDashboardIdPatch', 'aiDashboardIdUpdateRequest', aiDashboardIdUpdateRequest);
|
|
665
|
+
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/dashboards/{dashboard_id}`
|
|
666
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
667
|
+
.replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)))
|
|
668
|
+
.replace(`{${"dashboard_id"}}`, encodeURIComponent(String(dashboardId)));
|
|
602
669
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
603
670
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
604
671
|
let baseOptions;
|
|
605
672
|
if (configuration) {
|
|
606
673
|
baseOptions = configuration.baseOptions;
|
|
607
674
|
}
|
|
608
|
-
const localVarRequestOptions = { method: '
|
|
675
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
609
676
|
const localVarHeaderParameter = {};
|
|
610
677
|
const localVarQueryParameter = {};
|
|
611
|
-
if (isPreview !== undefined) {
|
|
612
|
-
localVarQueryParameter['isPreview'] = isPreview;
|
|
613
|
-
}
|
|
614
678
|
const consumes = [
|
|
615
679
|
'application/json'
|
|
616
680
|
];
|
|
@@ -625,11 +689,11 @@ export async function ConversationsAiAxiosParamCreator_PostConversationsApiV1AiW
|
|
|
625
689
|
...headersFromBaseOptions,
|
|
626
690
|
...options.headers,
|
|
627
691
|
};
|
|
628
|
-
const needsSerialization = typeof
|
|
692
|
+
const needsSerialization = typeof aiDashboardIdUpdateRequest !== "string" ||
|
|
629
693
|
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
630
694
|
localVarRequestOptions.data = needsSerialization
|
|
631
|
-
? JSON.stringify(
|
|
632
|
-
:
|
|
695
|
+
? JSON.stringify(aiDashboardIdUpdateRequest !== undefined ? aiDashboardIdUpdateRequest : {})
|
|
696
|
+
: aiDashboardIdUpdateRequest || "";
|
|
633
697
|
return {
|
|
634
698
|
url: toPathString(localVarUrlObj),
|
|
635
699
|
options: localVarRequestOptions,
|
|
@@ -637,31 +701,45 @@ export async function ConversationsAiAxiosParamCreator_PostConversationsApiV1AiW
|
|
|
637
701
|
}
|
|
638
702
|
// ConversationsAi FP - ConversationsAiAxiosParamCreator
|
|
639
703
|
/**
|
|
640
|
-
*
|
|
641
|
-
* @summary
|
|
704
|
+
* Attaches positive or negative feedback, with optional free-text, to one response.
|
|
705
|
+
* @summary Rate a response
|
|
642
706
|
* @param {string} workspaceId
|
|
643
707
|
* @param {string} conversationId
|
|
708
|
+
* @param {string} responseId
|
|
709
|
+
* @param {AiResponseFeedbackRequest} aiResponseFeedbackRequest
|
|
644
710
|
* @param {*} [options] Override http request option.
|
|
645
711
|
* @param {Configuration} [configuration] Optional configuration.
|
|
646
712
|
* @throws {RequiredError}
|
|
647
713
|
*/
|
|
648
|
-
export async function
|
|
714
|
+
export async function ConversationsAiAxiosParamCreator_PatchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch(workspaceId, conversationId, responseId, aiResponseFeedbackRequest, options = {}, configuration) {
|
|
649
715
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
650
|
-
assertParamExists('
|
|
716
|
+
assertParamExists('patchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch', 'workspaceId', workspaceId);
|
|
651
717
|
// verify required parameter 'conversationId' is not null or undefined
|
|
652
|
-
assertParamExists('
|
|
653
|
-
|
|
718
|
+
assertParamExists('patchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch', 'conversationId', conversationId);
|
|
719
|
+
// verify required parameter 'responseId' is not null or undefined
|
|
720
|
+
assertParamExists('patchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch', 'responseId', responseId);
|
|
721
|
+
// verify required parameter 'aiResponseFeedbackRequest' is not null or undefined
|
|
722
|
+
assertParamExists('patchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch', 'aiResponseFeedbackRequest', aiResponseFeedbackRequest);
|
|
723
|
+
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/responses/{response_id}`
|
|
654
724
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
655
|
-
.replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)))
|
|
725
|
+
.replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)))
|
|
726
|
+
.replace(`{${"response_id"}}`, encodeURIComponent(String(responseId)));
|
|
656
727
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
657
728
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
658
729
|
let baseOptions;
|
|
659
730
|
if (configuration) {
|
|
660
731
|
baseOptions = configuration.baseOptions;
|
|
661
732
|
}
|
|
662
|
-
const localVarRequestOptions = { method: '
|
|
733
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
663
734
|
const localVarHeaderParameter = {};
|
|
664
735
|
const localVarQueryParameter = {};
|
|
736
|
+
const consumes = [
|
|
737
|
+
'application/json'
|
|
738
|
+
];
|
|
739
|
+
// use application/json if present, otherwise fallback to the first one
|
|
740
|
+
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
741
|
+
? 'application/json'
|
|
742
|
+
: consumes[0];
|
|
665
743
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
666
744
|
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
667
745
|
localVarRequestOptions.headers = {
|
|
@@ -669,6 +747,11 @@ export async function ConversationsAiAxiosParamCreator_PostGenerateConversationT
|
|
|
669
747
|
...headersFromBaseOptions,
|
|
670
748
|
...options.headers,
|
|
671
749
|
};
|
|
750
|
+
const needsSerialization = typeof aiResponseFeedbackRequest !== "string" ||
|
|
751
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
752
|
+
localVarRequestOptions.data = needsSerialization
|
|
753
|
+
? JSON.stringify(aiResponseFeedbackRequest !== undefined ? aiResponseFeedbackRequest : {})
|
|
754
|
+
: aiResponseFeedbackRequest || "";
|
|
672
755
|
return {
|
|
673
756
|
url: toPathString(localVarUrlObj),
|
|
674
757
|
options: localVarRequestOptions,
|
|
@@ -676,22 +759,279 @@ export async function ConversationsAiAxiosParamCreator_PostGenerateConversationT
|
|
|
676
759
|
}
|
|
677
760
|
// ConversationsAi FP - ConversationsAiAxiosParamCreator
|
|
678
761
|
/**
|
|
679
|
-
*
|
|
680
|
-
* @summary
|
|
762
|
+
* Re-points the conversation\'s visualization at the metadata object the user saved.
|
|
763
|
+
* @summary Link a saved visualization
|
|
681
764
|
* @param {string} workspaceId
|
|
682
765
|
* @param {string} conversationId
|
|
683
|
-
* @param {
|
|
766
|
+
* @param {string} visualizationId
|
|
767
|
+
* @param {AiVisualizationIdUpdateRequest} aiVisualizationIdUpdateRequest
|
|
684
768
|
* @param {*} [options] Override http request option.
|
|
685
769
|
* @param {Configuration} [configuration] Optional configuration.
|
|
686
770
|
* @throws {RequiredError}
|
|
687
771
|
*/
|
|
688
|
-
export async function
|
|
772
|
+
export async function ConversationsAiAxiosParamCreator_PatchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch(workspaceId, conversationId, visualizationId, aiVisualizationIdUpdateRequest, options = {}, configuration) {
|
|
689
773
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
690
|
-
assertParamExists('
|
|
774
|
+
assertParamExists('patchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch', 'workspaceId', workspaceId);
|
|
691
775
|
// verify required parameter 'conversationId' is not null or undefined
|
|
692
|
-
assertParamExists('
|
|
693
|
-
// verify required parameter '
|
|
694
|
-
assertParamExists('
|
|
776
|
+
assertParamExists('patchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch', 'conversationId', conversationId);
|
|
777
|
+
// verify required parameter 'visualizationId' is not null or undefined
|
|
778
|
+
assertParamExists('patchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch', 'visualizationId', visualizationId);
|
|
779
|
+
// verify required parameter 'aiVisualizationIdUpdateRequest' is not null or undefined
|
|
780
|
+
assertParamExists('patchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch', 'aiVisualizationIdUpdateRequest', aiVisualizationIdUpdateRequest);
|
|
781
|
+
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/visualizations/{visualization_id}`
|
|
782
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
783
|
+
.replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)))
|
|
784
|
+
.replace(`{${"visualization_id"}}`, encodeURIComponent(String(visualizationId)));
|
|
785
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
786
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
787
|
+
let baseOptions;
|
|
788
|
+
if (configuration) {
|
|
789
|
+
baseOptions = configuration.baseOptions;
|
|
790
|
+
}
|
|
791
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
792
|
+
const localVarHeaderParameter = {};
|
|
793
|
+
const localVarQueryParameter = {};
|
|
794
|
+
const consumes = [
|
|
795
|
+
'application/json'
|
|
796
|
+
];
|
|
797
|
+
// use application/json if present, otherwise fallback to the first one
|
|
798
|
+
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
799
|
+
? 'application/json'
|
|
800
|
+
: consumes[0];
|
|
801
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
802
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
803
|
+
localVarRequestOptions.headers = {
|
|
804
|
+
...localVarHeaderParameter,
|
|
805
|
+
...headersFromBaseOptions,
|
|
806
|
+
...options.headers,
|
|
807
|
+
};
|
|
808
|
+
const needsSerialization = typeof aiVisualizationIdUpdateRequest !== "string" ||
|
|
809
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
810
|
+
localVarRequestOptions.data = needsSerialization
|
|
811
|
+
? JSON.stringify(aiVisualizationIdUpdateRequest !== undefined ? aiVisualizationIdUpdateRequest : {})
|
|
812
|
+
: aiVisualizationIdUpdateRequest || "";
|
|
813
|
+
return {
|
|
814
|
+
url: toPathString(localVarUrlObj),
|
|
815
|
+
options: localVarRequestOptions,
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
// ConversationsAi FP - ConversationsAiAxiosParamCreator
|
|
819
|
+
/**
|
|
820
|
+
*
|
|
821
|
+
* @summary Start a conversation
|
|
822
|
+
* @param {string} workspaceId
|
|
823
|
+
* @param {boolean} [isPreview]
|
|
824
|
+
* @param {AiCreateConversationRequest} [aiCreateConversationRequest]
|
|
825
|
+
* @param {*} [options] Override http request option.
|
|
826
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
827
|
+
* @throws {RequiredError}
|
|
828
|
+
*/
|
|
829
|
+
export async function ConversationsAiAxiosParamCreator_PostConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsPost(workspaceId, isPreview, aiCreateConversationRequest, options = {}, configuration) {
|
|
830
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
831
|
+
assertParamExists('postConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsPost', 'workspaceId', workspaceId);
|
|
832
|
+
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations`
|
|
833
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
834
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
835
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
836
|
+
let baseOptions;
|
|
837
|
+
if (configuration) {
|
|
838
|
+
baseOptions = configuration.baseOptions;
|
|
839
|
+
}
|
|
840
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
841
|
+
const localVarHeaderParameter = {};
|
|
842
|
+
const localVarQueryParameter = {};
|
|
843
|
+
if (isPreview !== undefined) {
|
|
844
|
+
localVarQueryParameter['isPreview'] = isPreview;
|
|
845
|
+
}
|
|
846
|
+
const consumes = [
|
|
847
|
+
'application/json'
|
|
848
|
+
];
|
|
849
|
+
// use application/json if present, otherwise fallback to the first one
|
|
850
|
+
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
851
|
+
? 'application/json'
|
|
852
|
+
: consumes[0];
|
|
853
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
854
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
855
|
+
localVarRequestOptions.headers = {
|
|
856
|
+
...localVarHeaderParameter,
|
|
857
|
+
...headersFromBaseOptions,
|
|
858
|
+
...options.headers,
|
|
859
|
+
};
|
|
860
|
+
const needsSerialization = typeof aiCreateConversationRequest !== "string" ||
|
|
861
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
862
|
+
localVarRequestOptions.data = needsSerialization
|
|
863
|
+
? JSON.stringify(aiCreateConversationRequest !== undefined ? aiCreateConversationRequest : {})
|
|
864
|
+
: aiCreateConversationRequest || "";
|
|
865
|
+
return {
|
|
866
|
+
url: toPathString(localVarUrlObj),
|
|
867
|
+
options: localVarRequestOptions,
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
// ConversationsAi FP - ConversationsAiAxiosParamCreator
|
|
871
|
+
/**
|
|
872
|
+
*
|
|
873
|
+
* @summary Submit feedback
|
|
874
|
+
* @param {string} workspaceId
|
|
875
|
+
* @param {string} conversationId
|
|
876
|
+
* @param {AiConversationFeedbackRequest} aiConversationFeedbackRequest
|
|
877
|
+
* @param {*} [options] Override http request option.
|
|
878
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
879
|
+
* @throws {RequiredError}
|
|
880
|
+
*/
|
|
881
|
+
export async function ConversationsAiAxiosParamCreator_PostFeedbackApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdFeedbackPost(workspaceId, conversationId, aiConversationFeedbackRequest, options = {}, configuration) {
|
|
882
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
883
|
+
assertParamExists('postFeedbackApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdFeedbackPost', 'workspaceId', workspaceId);
|
|
884
|
+
// verify required parameter 'conversationId' is not null or undefined
|
|
885
|
+
assertParamExists('postFeedbackApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdFeedbackPost', 'conversationId', conversationId);
|
|
886
|
+
// verify required parameter 'aiConversationFeedbackRequest' is not null or undefined
|
|
887
|
+
assertParamExists('postFeedbackApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdFeedbackPost', 'aiConversationFeedbackRequest', aiConversationFeedbackRequest);
|
|
888
|
+
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/feedback`
|
|
889
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
890
|
+
.replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)));
|
|
891
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
892
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
893
|
+
let baseOptions;
|
|
894
|
+
if (configuration) {
|
|
895
|
+
baseOptions = configuration.baseOptions;
|
|
896
|
+
}
|
|
897
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
898
|
+
const localVarHeaderParameter = {};
|
|
899
|
+
const localVarQueryParameter = {};
|
|
900
|
+
const consumes = [
|
|
901
|
+
'application/json'
|
|
902
|
+
];
|
|
903
|
+
// use application/json if present, otherwise fallback to the first one
|
|
904
|
+
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
905
|
+
? 'application/json'
|
|
906
|
+
: consumes[0];
|
|
907
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
908
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
909
|
+
localVarRequestOptions.headers = {
|
|
910
|
+
...localVarHeaderParameter,
|
|
911
|
+
...headersFromBaseOptions,
|
|
912
|
+
...options.headers,
|
|
913
|
+
};
|
|
914
|
+
const needsSerialization = typeof aiConversationFeedbackRequest !== "string" ||
|
|
915
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
916
|
+
localVarRequestOptions.data = needsSerialization
|
|
917
|
+
? JSON.stringify(aiConversationFeedbackRequest !== undefined ? aiConversationFeedbackRequest : {})
|
|
918
|
+
: aiConversationFeedbackRequest || "";
|
|
919
|
+
return {
|
|
920
|
+
url: toPathString(localVarUrlObj),
|
|
921
|
+
options: localVarRequestOptions,
|
|
922
|
+
};
|
|
923
|
+
}
|
|
924
|
+
// ConversationsAi FP - ConversationsAiAxiosParamCreator
|
|
925
|
+
/**
|
|
926
|
+
* Derives a title for the conversation from the messages exchanged so far.
|
|
927
|
+
* @summary Generate a title
|
|
928
|
+
* @param {string} workspaceId
|
|
929
|
+
* @param {string} conversationId
|
|
930
|
+
* @param {*} [options] Override http request option.
|
|
931
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
932
|
+
* @throws {RequiredError}
|
|
933
|
+
*/
|
|
934
|
+
export async function ConversationsAiAxiosParamCreator_PostGenerateConversationTitleApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGenerateTitlePost(workspaceId, conversationId, options = {}, configuration) {
|
|
935
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
936
|
+
assertParamExists('postGenerateConversationTitleApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGenerateTitlePost', 'workspaceId', workspaceId);
|
|
937
|
+
// verify required parameter 'conversationId' is not null or undefined
|
|
938
|
+
assertParamExists('postGenerateConversationTitleApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGenerateTitlePost', 'conversationId', conversationId);
|
|
939
|
+
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/generateTitle`
|
|
940
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
941
|
+
.replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)));
|
|
942
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
943
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
944
|
+
let baseOptions;
|
|
945
|
+
if (configuration) {
|
|
946
|
+
baseOptions = configuration.baseOptions;
|
|
947
|
+
}
|
|
948
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
949
|
+
const localVarHeaderParameter = {};
|
|
950
|
+
const localVarQueryParameter = {};
|
|
951
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
952
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
953
|
+
localVarRequestOptions.headers = {
|
|
954
|
+
...localVarHeaderParameter,
|
|
955
|
+
...headersFromBaseOptions,
|
|
956
|
+
...options.headers,
|
|
957
|
+
};
|
|
958
|
+
return {
|
|
959
|
+
url: toPathString(localVarUrlObj),
|
|
960
|
+
options: localVarRequestOptions,
|
|
961
|
+
};
|
|
962
|
+
}
|
|
963
|
+
// ConversationsAi FP - ConversationsAiAxiosParamCreator
|
|
964
|
+
/**
|
|
965
|
+
* Streams the agent\'s reply back over SSE; see the 200 response for the event sequence.
|
|
966
|
+
* @summary Send a message
|
|
967
|
+
* @param {string} workspaceId
|
|
968
|
+
* @param {string} conversationId
|
|
969
|
+
* @param {AiSendMessageRequest} aiSendMessageRequest
|
|
970
|
+
* @param {*} [options] Override http request option.
|
|
971
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
972
|
+
* @throws {RequiredError}
|
|
973
|
+
*/
|
|
974
|
+
export async function ConversationsAiAxiosParamCreator_PostMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost(workspaceId, conversationId, aiSendMessageRequest, options = {}, configuration) {
|
|
975
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
976
|
+
assertParamExists('postMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost', 'workspaceId', workspaceId);
|
|
977
|
+
// verify required parameter 'conversationId' is not null or undefined
|
|
978
|
+
assertParamExists('postMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost', 'conversationId', conversationId);
|
|
979
|
+
// verify required parameter 'aiSendMessageRequest' is not null or undefined
|
|
980
|
+
assertParamExists('postMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost', 'aiSendMessageRequest', aiSendMessageRequest);
|
|
981
|
+
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/messages`
|
|
982
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
983
|
+
.replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)));
|
|
984
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
985
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
986
|
+
let baseOptions;
|
|
987
|
+
if (configuration) {
|
|
988
|
+
baseOptions = configuration.baseOptions;
|
|
989
|
+
}
|
|
990
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
991
|
+
const localVarHeaderParameter = {};
|
|
992
|
+
const localVarQueryParameter = {};
|
|
993
|
+
const consumes = [
|
|
994
|
+
'application/json'
|
|
995
|
+
];
|
|
996
|
+
// use application/json if present, otherwise fallback to the first one
|
|
997
|
+
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
998
|
+
? 'application/json'
|
|
999
|
+
: consumes[0];
|
|
1000
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1001
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
1002
|
+
localVarRequestOptions.headers = {
|
|
1003
|
+
...localVarHeaderParameter,
|
|
1004
|
+
...headersFromBaseOptions,
|
|
1005
|
+
...options.headers,
|
|
1006
|
+
};
|
|
1007
|
+
const needsSerialization = typeof aiSendMessageRequest !== "string" ||
|
|
1008
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
1009
|
+
localVarRequestOptions.data = needsSerialization
|
|
1010
|
+
? JSON.stringify(aiSendMessageRequest !== undefined ? aiSendMessageRequest : {})
|
|
1011
|
+
: aiSendMessageRequest || "";
|
|
1012
|
+
return {
|
|
1013
|
+
url: toPathString(localVarUrlObj),
|
|
1014
|
+
options: localVarRequestOptions,
|
|
1015
|
+
};
|
|
1016
|
+
}
|
|
1017
|
+
// ConversationsAi FP - ConversationsAiAxiosParamCreator
|
|
1018
|
+
/**
|
|
1019
|
+
* Changes the active agent on an existing conversation.
|
|
1020
|
+
* @summary Switch agent
|
|
1021
|
+
* @param {string} workspaceId
|
|
1022
|
+
* @param {string} conversationId
|
|
1023
|
+
* @param {AiSwitchAgentRequest} aiSwitchAgentRequest
|
|
1024
|
+
* @param {*} [options] Override http request option.
|
|
1025
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
1026
|
+
* @throws {RequiredError}
|
|
1027
|
+
*/
|
|
1028
|
+
export async function ConversationsAiAxiosParamCreator_SwitchAgent(workspaceId, conversationId, aiSwitchAgentRequest, options = {}, configuration) {
|
|
1029
|
+
// verify required parameter 'workspaceId' is not null or undefined
|
|
1030
|
+
assertParamExists('switchAgent', 'workspaceId', workspaceId);
|
|
1031
|
+
// verify required parameter 'conversationId' is not null or undefined
|
|
1032
|
+
assertParamExists('switchAgent', 'conversationId', conversationId);
|
|
1033
|
+
// verify required parameter 'aiSwitchAgentRequest' is not null or undefined
|
|
1034
|
+
assertParamExists('switchAgent', 'aiSwitchAgentRequest', aiSwitchAgentRequest);
|
|
695
1035
|
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/switchAgent`
|
|
696
1036
|
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
697
1037
|
.replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)));
|
|
@@ -731,7 +1071,7 @@ export async function ConversationsAiAxiosParamCreator_SwitchAgent(workspaceId,
|
|
|
731
1071
|
// ConversationsAi Api FP
|
|
732
1072
|
/**
|
|
733
1073
|
*
|
|
734
|
-
* @summary Delete
|
|
1074
|
+
* @summary Delete a conversation
|
|
735
1075
|
* @param {AxiosInstance} axios Axios instance.
|
|
736
1076
|
* @param {string} basePath Base path.
|
|
737
1077
|
* @param {ConversationsAiDeleteConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDeleteRequest} requestParameters Request parameters.
|
|
@@ -746,7 +1086,7 @@ export async function ConversationsAi_DeleteConversationApiV1AiWorkspacesWorkspa
|
|
|
746
1086
|
// ConversationsAi Api FP
|
|
747
1087
|
/**
|
|
748
1088
|
*
|
|
749
|
-
* @summary Get
|
|
1089
|
+
* @summary Get a conversation
|
|
750
1090
|
* @param {AxiosInstance} axios Axios instance.
|
|
751
1091
|
* @param {string} basePath Base path.
|
|
752
1092
|
* @param {ConversationsAiGetConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGetRequest} requestParameters Request parameters.
|
|
@@ -760,38 +1100,128 @@ export async function ConversationsAi_GetConversationApiV1AiWorkspacesWorkspaceI
|
|
|
760
1100
|
}
|
|
761
1101
|
// ConversationsAi Api FP
|
|
762
1102
|
/**
|
|
763
|
-
*
|
|
764
|
-
* @summary
|
|
1103
|
+
* The agent\'s interaction steps, available when interaction intelligence is enabled.
|
|
1104
|
+
* @summary List reasoning steps
|
|
765
1105
|
* @param {AxiosInstance} axios Axios instance.
|
|
766
1106
|
* @param {string} basePath Base path.
|
|
767
|
-
* @param {
|
|
1107
|
+
* @param {ConversationsAiGetConversationInteractionStepsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdStepsGetRequest} requestParameters Request parameters.
|
|
768
1108
|
* @param {*} [options] Override http request option.
|
|
769
1109
|
* @param {Configuration} [configuration] Optional configuration.
|
|
770
1110
|
* @throws {RequiredError}
|
|
771
1111
|
*/
|
|
772
|
-
export async function
|
|
773
|
-
const localVarAxiosArgs = await
|
|
1112
|
+
export async function ConversationsAi_GetConversationInteractionStepsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdStepsGet(axios, basePath, requestParameters, options, configuration) {
|
|
1113
|
+
const localVarAxiosArgs = await ConversationsAiAxiosParamCreator_GetConversationInteractionStepsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdStepsGet(requestParameters.workspaceId, requestParameters.conversationId, requestParameters.responseId, options || {}, configuration);
|
|
774
1114
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
775
1115
|
}
|
|
776
1116
|
// ConversationsAi Api FP
|
|
777
1117
|
/**
|
|
778
|
-
*
|
|
779
|
-
* @summary
|
|
1118
|
+
* Items in the order the agent produced them: text, visualizations, dashboards.
|
|
1119
|
+
* @summary List conversation items
|
|
780
1120
|
* @param {AxiosInstance} axios Axios instance.
|
|
781
1121
|
* @param {string} basePath Base path.
|
|
782
|
-
* @param {
|
|
1122
|
+
* @param {ConversationsAiGetConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGetRequest} requestParameters Request parameters.
|
|
783
1123
|
* @param {*} [options] Override http request option.
|
|
784
1124
|
* @param {Configuration} [configuration] Optional configuration.
|
|
785
1125
|
* @throws {RequiredError}
|
|
786
1126
|
*/
|
|
787
|
-
export async function
|
|
1127
|
+
export async function ConversationsAi_GetConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGet(axios, basePath, requestParameters, options, configuration) {
|
|
1128
|
+
const localVarAxiosArgs = await ConversationsAiAxiosParamCreator_GetConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGet(requestParameters.workspaceId, requestParameters.conversationId, options || {}, configuration);
|
|
1129
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1130
|
+
}
|
|
1131
|
+
// ConversationsAi Api FP
|
|
1132
|
+
/**
|
|
1133
|
+
*
|
|
1134
|
+
* @summary List responses
|
|
1135
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
1136
|
+
* @param {string} basePath Base path.
|
|
1137
|
+
* @param {ConversationsAiGetConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGetRequest} requestParameters Request parameters.
|
|
1138
|
+
* @param {*} [options] Override http request option.
|
|
1139
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
1140
|
+
* @throws {RequiredError}
|
|
1141
|
+
*/
|
|
1142
|
+
export async function ConversationsAi_GetConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGet(axios, basePath, requestParameters, options, configuration) {
|
|
1143
|
+
const localVarAxiosArgs = await ConversationsAiAxiosParamCreator_GetConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGet(requestParameters.workspaceId, requestParameters.conversationId, options || {}, configuration);
|
|
1144
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1145
|
+
}
|
|
1146
|
+
// ConversationsAi Api FP
|
|
1147
|
+
/**
|
|
1148
|
+
* Conversations belonging to the current user in this workspace.
|
|
1149
|
+
* @summary List conversations
|
|
1150
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
1151
|
+
* @param {string} basePath Base path.
|
|
1152
|
+
* @param {ConversationsAiGetConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsGetRequest} requestParameters Request parameters.
|
|
1153
|
+
* @param {*} [options] Override http request option.
|
|
1154
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
1155
|
+
* @throws {RequiredError}
|
|
1156
|
+
*/
|
|
1157
|
+
export async function ConversationsAi_GetConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsGet(axios, basePath, requestParameters, options, configuration) {
|
|
1158
|
+
const localVarAxiosArgs = await ConversationsAiAxiosParamCreator_GetConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsGet(requestParameters.workspaceId, requestParameters.isPreview, requestParameters.page, requestParameters.size, options || {}, configuration);
|
|
1159
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1160
|
+
}
|
|
1161
|
+
// ConversationsAi Api FP
|
|
1162
|
+
/**
|
|
1163
|
+
* Only the title and the pinned flag can be changed.
|
|
1164
|
+
* @summary Update a conversation
|
|
1165
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
1166
|
+
* @param {string} basePath Base path.
|
|
1167
|
+
* @param {ConversationsAiPatchConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdPatchRequest} requestParameters Request parameters.
|
|
1168
|
+
* @param {*} [options] Override http request option.
|
|
1169
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
1170
|
+
* @throws {RequiredError}
|
|
1171
|
+
*/
|
|
1172
|
+
export async function ConversationsAi_PatchConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdPatch(axios, basePath, requestParameters, options, configuration) {
|
|
788
1173
|
const localVarAxiosArgs = await ConversationsAiAxiosParamCreator_PatchConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdPatch(requestParameters.workspaceId, requestParameters.conversationId, requestParameters.aiConversationUpdateRequest, options || {}, configuration);
|
|
789
1174
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
790
1175
|
}
|
|
791
1176
|
// ConversationsAi Api FP
|
|
1177
|
+
/**
|
|
1178
|
+
* Re-points the conversation\'s dashboard at the metadata object the user saved.
|
|
1179
|
+
* @summary Link a saved dashboard
|
|
1180
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
1181
|
+
* @param {string} basePath Base path.
|
|
1182
|
+
* @param {ConversationsAiPatchDashboardApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDashboardsDashboardIdPatchRequest} requestParameters Request parameters.
|
|
1183
|
+
* @param {*} [options] Override http request option.
|
|
1184
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
1185
|
+
* @throws {RequiredError}
|
|
1186
|
+
*/
|
|
1187
|
+
export async function ConversationsAi_PatchDashboardApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDashboardsDashboardIdPatch(axios, basePath, requestParameters, options, configuration) {
|
|
1188
|
+
const localVarAxiosArgs = await ConversationsAiAxiosParamCreator_PatchDashboardApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDashboardsDashboardIdPatch(requestParameters.workspaceId, requestParameters.conversationId, requestParameters.dashboardId, requestParameters.aiDashboardIdUpdateRequest, options || {}, configuration);
|
|
1189
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1190
|
+
}
|
|
1191
|
+
// ConversationsAi Api FP
|
|
1192
|
+
/**
|
|
1193
|
+
* Attaches positive or negative feedback, with optional free-text, to one response.
|
|
1194
|
+
* @summary Rate a response
|
|
1195
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
1196
|
+
* @param {string} basePath Base path.
|
|
1197
|
+
* @param {ConversationsAiPatchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatchRequest} requestParameters Request parameters.
|
|
1198
|
+
* @param {*} [options] Override http request option.
|
|
1199
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
1200
|
+
* @throws {RequiredError}
|
|
1201
|
+
*/
|
|
1202
|
+
export async function ConversationsAi_PatchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch(axios, basePath, requestParameters, options, configuration) {
|
|
1203
|
+
const localVarAxiosArgs = await ConversationsAiAxiosParamCreator_PatchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch(requestParameters.workspaceId, requestParameters.conversationId, requestParameters.responseId, requestParameters.aiResponseFeedbackRequest, options || {}, configuration);
|
|
1204
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1205
|
+
}
|
|
1206
|
+
// ConversationsAi Api FP
|
|
1207
|
+
/**
|
|
1208
|
+
* Re-points the conversation\'s visualization at the metadata object the user saved.
|
|
1209
|
+
* @summary Link a saved visualization
|
|
1210
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
1211
|
+
* @param {string} basePath Base path.
|
|
1212
|
+
* @param {ConversationsAiPatchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatchRequest} requestParameters Request parameters.
|
|
1213
|
+
* @param {*} [options] Override http request option.
|
|
1214
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
1215
|
+
* @throws {RequiredError}
|
|
1216
|
+
*/
|
|
1217
|
+
export async function ConversationsAi_PatchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch(axios, basePath, requestParameters, options, configuration) {
|
|
1218
|
+
const localVarAxiosArgs = await ConversationsAiAxiosParamCreator_PatchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch(requestParameters.workspaceId, requestParameters.conversationId, requestParameters.visualizationId, requestParameters.aiVisualizationIdUpdateRequest, options || {}, configuration);
|
|
1219
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1220
|
+
}
|
|
1221
|
+
// ConversationsAi Api FP
|
|
792
1222
|
/**
|
|
793
1223
|
*
|
|
794
|
-
* @summary
|
|
1224
|
+
* @summary Start a conversation
|
|
795
1225
|
* @param {AxiosInstance} axios Axios instance.
|
|
796
1226
|
* @param {string} basePath Base path.
|
|
797
1227
|
* @param {ConversationsAiPostConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsPostRequest} requestParameters Request parameters.
|
|
@@ -806,7 +1236,22 @@ export async function ConversationsAi_PostConversationsApiV1AiWorkspacesWorkspac
|
|
|
806
1236
|
// ConversationsAi Api FP
|
|
807
1237
|
/**
|
|
808
1238
|
*
|
|
809
|
-
* @summary
|
|
1239
|
+
* @summary Submit feedback
|
|
1240
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
1241
|
+
* @param {string} basePath Base path.
|
|
1242
|
+
* @param {ConversationsAiPostFeedbackApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdFeedbackPostRequest} requestParameters Request parameters.
|
|
1243
|
+
* @param {*} [options] Override http request option.
|
|
1244
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
1245
|
+
* @throws {RequiredError}
|
|
1246
|
+
*/
|
|
1247
|
+
export async function ConversationsAi_PostFeedbackApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdFeedbackPost(axios, basePath, requestParameters, options, configuration) {
|
|
1248
|
+
const localVarAxiosArgs = await ConversationsAiAxiosParamCreator_PostFeedbackApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdFeedbackPost(requestParameters.workspaceId, requestParameters.conversationId, requestParameters.aiConversationFeedbackRequest, options || {}, configuration);
|
|
1249
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1250
|
+
}
|
|
1251
|
+
// ConversationsAi Api FP
|
|
1252
|
+
/**
|
|
1253
|
+
* Derives a title for the conversation from the messages exchanged so far.
|
|
1254
|
+
* @summary Generate a title
|
|
810
1255
|
* @param {AxiosInstance} axios Axios instance.
|
|
811
1256
|
* @param {string} basePath Base path.
|
|
812
1257
|
* @param {ConversationsAiPostGenerateConversationTitleApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGenerateTitlePostRequest} requestParameters Request parameters.
|
|
@@ -820,8 +1265,23 @@ export async function ConversationsAi_PostGenerateConversationTitleApiV1AiWorksp
|
|
|
820
1265
|
}
|
|
821
1266
|
// ConversationsAi Api FP
|
|
822
1267
|
/**
|
|
823
|
-
*
|
|
824
|
-
* @summary
|
|
1268
|
+
* Streams the agent\'s reply back over SSE; see the 200 response for the event sequence.
|
|
1269
|
+
* @summary Send a message
|
|
1270
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
1271
|
+
* @param {string} basePath Base path.
|
|
1272
|
+
* @param {ConversationsAiPostMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPostRequest} requestParameters Request parameters.
|
|
1273
|
+
* @param {*} [options] Override http request option.
|
|
1274
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
1275
|
+
* @throws {RequiredError}
|
|
1276
|
+
*/
|
|
1277
|
+
export async function ConversationsAi_PostMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost(axios, basePath, requestParameters, options, configuration) {
|
|
1278
|
+
const localVarAxiosArgs = await ConversationsAiAxiosParamCreator_PostMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost(requestParameters.workspaceId, requestParameters.conversationId, requestParameters.aiSendMessageRequest, options || {}, configuration);
|
|
1279
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1280
|
+
}
|
|
1281
|
+
// ConversationsAi Api FP
|
|
1282
|
+
/**
|
|
1283
|
+
* Changes the active agent on an existing conversation.
|
|
1284
|
+
* @summary Switch agent
|
|
825
1285
|
* @param {AxiosInstance} axios Axios instance.
|
|
826
1286
|
* @param {string} basePath Base path.
|
|
827
1287
|
* @param {ConversationsAiSwitchAgentRequest} requestParameters Request parameters.
|
|
@@ -842,7 +1302,7 @@ export async function ConversationsAi_SwitchAgent(axios, basePath, requestParame
|
|
|
842
1302
|
export class ConversationsAi extends BaseAPI {
|
|
843
1303
|
/**
|
|
844
1304
|
*
|
|
845
|
-
* @summary Delete
|
|
1305
|
+
* @summary Delete a conversation
|
|
846
1306
|
* @param {ConversationsAiDeleteConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDeleteRequest} requestParameters Request parameters.
|
|
847
1307
|
* @param {*} [options] Override http request option.
|
|
848
1308
|
* @throws {RequiredError}
|
|
@@ -853,7 +1313,7 @@ export class ConversationsAi extends BaseAPI {
|
|
|
853
1313
|
}
|
|
854
1314
|
/**
|
|
855
1315
|
*
|
|
856
|
-
* @summary Get
|
|
1316
|
+
* @summary Get a conversation
|
|
857
1317
|
* @param {ConversationsAiGetConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGetRequest} requestParameters Request parameters.
|
|
858
1318
|
* @param {*} [options] Override http request option.
|
|
859
1319
|
* @throws {RequiredError}
|
|
@@ -862,9 +1322,42 @@ export class ConversationsAi extends BaseAPI {
|
|
|
862
1322
|
getConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGet(requestParameters, options) {
|
|
863
1323
|
return ConversationsAi_GetConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGet(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
864
1324
|
}
|
|
1325
|
+
/**
|
|
1326
|
+
* The agent\'s interaction steps, available when interaction intelligence is enabled.
|
|
1327
|
+
* @summary List reasoning steps
|
|
1328
|
+
* @param {ConversationsAiGetConversationInteractionStepsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdStepsGetRequest} requestParameters Request parameters.
|
|
1329
|
+
* @param {*} [options] Override http request option.
|
|
1330
|
+
* @throws {RequiredError}
|
|
1331
|
+
* @memberof ConversationsAi
|
|
1332
|
+
*/
|
|
1333
|
+
getConversationInteractionStepsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdStepsGet(requestParameters, options) {
|
|
1334
|
+
return ConversationsAi_GetConversationInteractionStepsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdStepsGet(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1335
|
+
}
|
|
1336
|
+
/**
|
|
1337
|
+
* Items in the order the agent produced them: text, visualizations, dashboards.
|
|
1338
|
+
* @summary List conversation items
|
|
1339
|
+
* @param {ConversationsAiGetConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGetRequest} requestParameters Request parameters.
|
|
1340
|
+
* @param {*} [options] Override http request option.
|
|
1341
|
+
* @throws {RequiredError}
|
|
1342
|
+
* @memberof ConversationsAi
|
|
1343
|
+
*/
|
|
1344
|
+
getConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGet(requestParameters, options) {
|
|
1345
|
+
return ConversationsAi_GetConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGet(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1346
|
+
}
|
|
865
1347
|
/**
|
|
866
1348
|
*
|
|
867
|
-
* @summary
|
|
1349
|
+
* @summary List responses
|
|
1350
|
+
* @param {ConversationsAiGetConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGetRequest} requestParameters Request parameters.
|
|
1351
|
+
* @param {*} [options] Override http request option.
|
|
1352
|
+
* @throws {RequiredError}
|
|
1353
|
+
* @memberof ConversationsAi
|
|
1354
|
+
*/
|
|
1355
|
+
getConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGet(requestParameters, options) {
|
|
1356
|
+
return ConversationsAi_GetConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGet(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1357
|
+
}
|
|
1358
|
+
/**
|
|
1359
|
+
* Conversations belonging to the current user in this workspace.
|
|
1360
|
+
* @summary List conversations
|
|
868
1361
|
* @param {ConversationsAiGetConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsGetRequest} requestParameters Request parameters.
|
|
869
1362
|
* @param {*} [options] Override http request option.
|
|
870
1363
|
* @throws {RequiredError}
|
|
@@ -874,8 +1367,8 @@ export class ConversationsAi extends BaseAPI {
|
|
|
874
1367
|
return ConversationsAi_GetConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsGet(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
875
1368
|
}
|
|
876
1369
|
/**
|
|
877
|
-
*
|
|
878
|
-
* @summary
|
|
1370
|
+
* Only the title and the pinned flag can be changed.
|
|
1371
|
+
* @summary Update a conversation
|
|
879
1372
|
* @param {ConversationsAiPatchConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdPatchRequest} requestParameters Request parameters.
|
|
880
1373
|
* @param {*} [options] Override http request option.
|
|
881
1374
|
* @throws {RequiredError}
|
|
@@ -884,9 +1377,42 @@ export class ConversationsAi extends BaseAPI {
|
|
|
884
1377
|
patchConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdPatch(requestParameters, options) {
|
|
885
1378
|
return ConversationsAi_PatchConversationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdPatch(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
886
1379
|
}
|
|
1380
|
+
/**
|
|
1381
|
+
* Re-points the conversation\'s dashboard at the metadata object the user saved.
|
|
1382
|
+
* @summary Link a saved dashboard
|
|
1383
|
+
* @param {ConversationsAiPatchDashboardApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDashboardsDashboardIdPatchRequest} requestParameters Request parameters.
|
|
1384
|
+
* @param {*} [options] Override http request option.
|
|
1385
|
+
* @throws {RequiredError}
|
|
1386
|
+
* @memberof ConversationsAi
|
|
1387
|
+
*/
|
|
1388
|
+
patchDashboardApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDashboardsDashboardIdPatch(requestParameters, options) {
|
|
1389
|
+
return ConversationsAi_PatchDashboardApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDashboardsDashboardIdPatch(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1390
|
+
}
|
|
1391
|
+
/**
|
|
1392
|
+
* Attaches positive or negative feedback, with optional free-text, to one response.
|
|
1393
|
+
* @summary Rate a response
|
|
1394
|
+
* @param {ConversationsAiPatchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatchRequest} requestParameters Request parameters.
|
|
1395
|
+
* @param {*} [options] Override http request option.
|
|
1396
|
+
* @throws {RequiredError}
|
|
1397
|
+
* @memberof ConversationsAi
|
|
1398
|
+
*/
|
|
1399
|
+
patchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch(requestParameters, options) {
|
|
1400
|
+
return ConversationsAi_PatchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1401
|
+
}
|
|
1402
|
+
/**
|
|
1403
|
+
* Re-points the conversation\'s visualization at the metadata object the user saved.
|
|
1404
|
+
* @summary Link a saved visualization
|
|
1405
|
+
* @param {ConversationsAiPatchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatchRequest} requestParameters Request parameters.
|
|
1406
|
+
* @param {*} [options] Override http request option.
|
|
1407
|
+
* @throws {RequiredError}
|
|
1408
|
+
* @memberof ConversationsAi
|
|
1409
|
+
*/
|
|
1410
|
+
patchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch(requestParameters, options) {
|
|
1411
|
+
return ConversationsAi_PatchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1412
|
+
}
|
|
887
1413
|
/**
|
|
888
1414
|
*
|
|
889
|
-
* @summary
|
|
1415
|
+
* @summary Start a conversation
|
|
890
1416
|
* @param {ConversationsAiPostConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsPostRequest} requestParameters Request parameters.
|
|
891
1417
|
* @param {*} [options] Override http request option.
|
|
892
1418
|
* @throws {RequiredError}
|
|
@@ -897,7 +1423,18 @@ export class ConversationsAi extends BaseAPI {
|
|
|
897
1423
|
}
|
|
898
1424
|
/**
|
|
899
1425
|
*
|
|
900
|
-
* @summary
|
|
1426
|
+
* @summary Submit feedback
|
|
1427
|
+
* @param {ConversationsAiPostFeedbackApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdFeedbackPostRequest} requestParameters Request parameters.
|
|
1428
|
+
* @param {*} [options] Override http request option.
|
|
1429
|
+
* @throws {RequiredError}
|
|
1430
|
+
* @memberof ConversationsAi
|
|
1431
|
+
*/
|
|
1432
|
+
postFeedbackApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdFeedbackPost(requestParameters, options) {
|
|
1433
|
+
return ConversationsAi_PostFeedbackApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdFeedbackPost(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1434
|
+
}
|
|
1435
|
+
/**
|
|
1436
|
+
* Derives a title for the conversation from the messages exchanged so far.
|
|
1437
|
+
* @summary Generate a title
|
|
901
1438
|
* @param {ConversationsAiPostGenerateConversationTitleApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGenerateTitlePostRequest} requestParameters Request parameters.
|
|
902
1439
|
* @param {*} [options] Override http request option.
|
|
903
1440
|
* @throws {RequiredError}
|
|
@@ -907,8 +1444,19 @@ export class ConversationsAi extends BaseAPI {
|
|
|
907
1444
|
return ConversationsAi_PostGenerateConversationTitleApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGenerateTitlePost(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
908
1445
|
}
|
|
909
1446
|
/**
|
|
910
|
-
*
|
|
911
|
-
* @summary
|
|
1447
|
+
* Streams the agent\'s reply back over SSE; see the 200 response for the event sequence.
|
|
1448
|
+
* @summary Send a message
|
|
1449
|
+
* @param {ConversationsAiPostMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPostRequest} requestParameters Request parameters.
|
|
1450
|
+
* @param {*} [options] Override http request option.
|
|
1451
|
+
* @throws {RequiredError}
|
|
1452
|
+
* @memberof ConversationsAi
|
|
1453
|
+
*/
|
|
1454
|
+
postMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost(requestParameters, options) {
|
|
1455
|
+
return ConversationsAi_PostMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1456
|
+
}
|
|
1457
|
+
/**
|
|
1458
|
+
* Changes the active agent on an existing conversation.
|
|
1459
|
+
* @summary Switch agent
|
|
912
1460
|
* @param {ConversationsAiSwitchAgentRequest} requestParameters Request parameters.
|
|
913
1461
|
* @param {*} [options] Override http request option.
|
|
914
1462
|
* @throws {RequiredError}
|
|
@@ -918,38 +1466,30 @@ export class ConversationsAi extends BaseAPI {
|
|
|
918
1466
|
return ConversationsAi_SwitchAgent(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
919
1467
|
}
|
|
920
1468
|
}
|
|
921
|
-
//
|
|
1469
|
+
// DashboardSummaryAi FP - DashboardSummaryAiAxiosParamCreator
|
|
922
1470
|
/**
|
|
923
|
-
*
|
|
924
|
-
* @summary
|
|
1471
|
+
* Note: This API is an experimental and is going to change. Please, use it accordingly. Generates a natural-language summary of a dashboard\'s visualizations, optionally scoped by an explicit filter context.
|
|
1472
|
+
* @summary (EXPERIMENTAL) Summarize a dashboard
|
|
925
1473
|
* @param {string} workspaceId
|
|
926
|
-
* @param {
|
|
927
|
-
* @param {string} dashboardId
|
|
928
|
-
* @param {AiDashboardIdUpdateRequest} aiDashboardIdUpdateRequest
|
|
1474
|
+
* @param {AiSummarizeRequest} aiSummarizeRequest
|
|
929
1475
|
* @param {*} [options] Override http request option.
|
|
930
1476
|
* @param {Configuration} [configuration] Optional configuration.
|
|
931
1477
|
* @throws {RequiredError}
|
|
932
1478
|
*/
|
|
933
|
-
export async function
|
|
1479
|
+
export async function DashboardSummaryAiAxiosParamCreator_SummarizeDashboard(workspaceId, aiSummarizeRequest, options = {}, configuration) {
|
|
934
1480
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
935
|
-
assertParamExists('
|
|
936
|
-
// verify required parameter '
|
|
937
|
-
assertParamExists('
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
// verify required parameter 'aiDashboardIdUpdateRequest' is not null or undefined
|
|
941
|
-
assertParamExists('patchDashboardApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdDashboardsDashboardIdPatch', 'aiDashboardIdUpdateRequest', aiDashboardIdUpdateRequest);
|
|
942
|
-
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/dashboards/{dashboard_id}`
|
|
943
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
944
|
-
.replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)))
|
|
945
|
-
.replace(`{${"dashboard_id"}}`, encodeURIComponent(String(dashboardId)));
|
|
1481
|
+
assertParamExists('summarizeDashboard', 'workspaceId', workspaceId);
|
|
1482
|
+
// verify required parameter 'aiSummarizeRequest' is not null or undefined
|
|
1483
|
+
assertParamExists('summarizeDashboard', 'aiSummarizeRequest', aiSummarizeRequest);
|
|
1484
|
+
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/summary`
|
|
1485
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
946
1486
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
947
1487
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
948
1488
|
let baseOptions;
|
|
949
1489
|
if (configuration) {
|
|
950
1490
|
baseOptions = configuration.baseOptions;
|
|
951
1491
|
}
|
|
952
|
-
const localVarRequestOptions = { method: '
|
|
1492
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
953
1493
|
const localVarHeaderParameter = {};
|
|
954
1494
|
const localVarQueryParameter = {};
|
|
955
1495
|
const consumes = [
|
|
@@ -966,81 +1506,89 @@ export async function DashboardsAiAxiosParamCreator_PatchDashboardApiV1AiWorkspa
|
|
|
966
1506
|
...headersFromBaseOptions,
|
|
967
1507
|
...options.headers,
|
|
968
1508
|
};
|
|
969
|
-
const needsSerialization = typeof
|
|
1509
|
+
const needsSerialization = typeof aiSummarizeRequest !== "string" ||
|
|
970
1510
|
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
971
1511
|
localVarRequestOptions.data = needsSerialization
|
|
972
|
-
? JSON.stringify(
|
|
973
|
-
:
|
|
1512
|
+
? JSON.stringify(aiSummarizeRequest !== undefined ? aiSummarizeRequest : {})
|
|
1513
|
+
: aiSummarizeRequest || "";
|
|
974
1514
|
return {
|
|
975
1515
|
url: toPathString(localVarUrlObj),
|
|
976
1516
|
options: localVarRequestOptions,
|
|
977
1517
|
};
|
|
978
1518
|
}
|
|
979
|
-
//
|
|
1519
|
+
// DashboardSummaryAi Api FP
|
|
980
1520
|
/**
|
|
981
|
-
*
|
|
982
|
-
* @summary
|
|
1521
|
+
* Note: This API is an experimental and is going to change. Please, use it accordingly. Generates a natural-language summary of a dashboard\'s visualizations, optionally scoped by an explicit filter context.
|
|
1522
|
+
* @summary (EXPERIMENTAL) Summarize a dashboard
|
|
983
1523
|
* @param {AxiosInstance} axios Axios instance.
|
|
984
1524
|
* @param {string} basePath Base path.
|
|
985
|
-
* @param {
|
|
1525
|
+
* @param {DashboardSummaryAiSummarizeDashboardRequest} requestParameters Request parameters.
|
|
986
1526
|
* @param {*} [options] Override http request option.
|
|
987
1527
|
* @param {Configuration} [configuration] Optional configuration.
|
|
988
1528
|
* @throws {RequiredError}
|
|
989
1529
|
*/
|
|
990
|
-
export async function
|
|
991
|
-
const localVarAxiosArgs = await
|
|
1530
|
+
export async function DashboardSummaryAi_SummarizeDashboard(axios, basePath, requestParameters, options, configuration) {
|
|
1531
|
+
const localVarAxiosArgs = await DashboardSummaryAiAxiosParamCreator_SummarizeDashboard(requestParameters.workspaceId, requestParameters.aiSummarizeRequest, options || {}, configuration);
|
|
992
1532
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
993
1533
|
}
|
|
994
1534
|
/**
|
|
995
|
-
*
|
|
1535
|
+
* DashboardSummaryAi - object-oriented interface
|
|
996
1536
|
* @export
|
|
997
|
-
* @class
|
|
1537
|
+
* @class DashboardSummaryAi
|
|
998
1538
|
* @extends {BaseAPI}
|
|
999
1539
|
*/
|
|
1000
|
-
export class
|
|
1540
|
+
export class DashboardSummaryAi extends BaseAPI {
|
|
1001
1541
|
/**
|
|
1002
|
-
*
|
|
1003
|
-
* @summary
|
|
1004
|
-
* @param {
|
|
1542
|
+
* Note: This API is an experimental and is going to change. Please, use it accordingly. Generates a natural-language summary of a dashboard\'s visualizations, optionally scoped by an explicit filter context.
|
|
1543
|
+
* @summary (EXPERIMENTAL) Summarize a dashboard
|
|
1544
|
+
* @param {DashboardSummaryAiSummarizeDashboardRequest} requestParameters Request parameters.
|
|
1005
1545
|
* @param {*} [options] Override http request option.
|
|
1006
1546
|
* @throws {RequiredError}
|
|
1007
|
-
* @memberof
|
|
1547
|
+
* @memberof DashboardSummaryAi
|
|
1008
1548
|
*/
|
|
1009
|
-
|
|
1010
|
-
return
|
|
1549
|
+
summarizeDashboard(requestParameters, options) {
|
|
1550
|
+
return DashboardSummaryAi_SummarizeDashboard(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1011
1551
|
}
|
|
1012
1552
|
}
|
|
1013
|
-
//
|
|
1553
|
+
// KnowledgeAi FP - KnowledgeAiAxiosParamCreator
|
|
1014
1554
|
/**
|
|
1015
|
-
*
|
|
1016
|
-
* @summary
|
|
1555
|
+
* Upload a new knowledge document. Returns 409 if filename already exists.
|
|
1556
|
+
* @summary Upload Document
|
|
1017
1557
|
* @param {string} workspaceId
|
|
1018
|
-
* @param {
|
|
1019
|
-
* @param {string} [
|
|
1558
|
+
* @param {File} file
|
|
1559
|
+
* @param {Array<string>} [scopes]
|
|
1560
|
+
* @param {string} [title]
|
|
1020
1561
|
* @param {*} [options] Override http request option.
|
|
1021
1562
|
* @param {Configuration} [configuration] Optional configuration.
|
|
1022
1563
|
* @throws {RequiredError}
|
|
1023
1564
|
*/
|
|
1024
|
-
export async function
|
|
1565
|
+
export async function KnowledgeAiAxiosParamCreator_CreateDocument(workspaceId, file, scopes, title, options = {}, configuration) {
|
|
1025
1566
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
1026
|
-
assertParamExists('
|
|
1027
|
-
// verify required parameter '
|
|
1028
|
-
assertParamExists('
|
|
1029
|
-
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/
|
|
1030
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
1031
|
-
.replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)));
|
|
1567
|
+
assertParamExists('createDocument', 'workspaceId', workspaceId);
|
|
1568
|
+
// verify required parameter 'file' is not null or undefined
|
|
1569
|
+
assertParamExists('createDocument', 'file', file);
|
|
1570
|
+
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/knowledge/documents`
|
|
1571
|
+
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
1032
1572
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1033
1573
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1034
1574
|
let baseOptions;
|
|
1035
1575
|
if (configuration) {
|
|
1036
1576
|
baseOptions = configuration.baseOptions;
|
|
1037
1577
|
}
|
|
1038
|
-
const localVarRequestOptions = { method: '
|
|
1578
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1039
1579
|
const localVarHeaderParameter = {};
|
|
1040
1580
|
const localVarQueryParameter = {};
|
|
1041
|
-
|
|
1042
|
-
|
|
1581
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
1582
|
+
if (file !== undefined) {
|
|
1583
|
+
localVarFormParams.append('file', file);
|
|
1584
|
+
}
|
|
1585
|
+
if (scopes) {
|
|
1586
|
+
localVarFormParams.append('scopes', scopes.join(COLLECTION_FORMATS.csv));
|
|
1587
|
+
}
|
|
1588
|
+
if (title !== undefined) {
|
|
1589
|
+
localVarFormParams.append('title', title);
|
|
1043
1590
|
}
|
|
1591
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
1044
1592
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1045
1593
|
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
1046
1594
|
localVarRequestOptions.headers = {
|
|
@@ -1048,190 +1596,32 @@ export async function InteractionStepsAiAxiosParamCreator_GetConversationInterac
|
|
|
1048
1596
|
...headersFromBaseOptions,
|
|
1049
1597
|
...options.headers,
|
|
1050
1598
|
};
|
|
1599
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
1051
1600
|
return {
|
|
1052
1601
|
url: toPathString(localVarUrlObj),
|
|
1053
1602
|
options: localVarRequestOptions,
|
|
1054
1603
|
};
|
|
1055
1604
|
}
|
|
1056
|
-
//
|
|
1605
|
+
// KnowledgeAi FP - KnowledgeAiAxiosParamCreator
|
|
1057
1606
|
/**
|
|
1058
|
-
*
|
|
1059
|
-
* @summary
|
|
1060
|
-
* @param {
|
|
1061
|
-
* @param {string}
|
|
1062
|
-
* @param {
|
|
1607
|
+
* Upload a new org-scoped knowledge document.
|
|
1608
|
+
* @summary Upload Document Org
|
|
1609
|
+
* @param {File} file
|
|
1610
|
+
* @param {Array<string>} [scopes]
|
|
1611
|
+
* @param {string} [title]
|
|
1063
1612
|
* @param {*} [options] Override http request option.
|
|
1064
1613
|
* @param {Configuration} [configuration] Optional configuration.
|
|
1065
1614
|
* @throws {RequiredError}
|
|
1066
1615
|
*/
|
|
1067
|
-
export async function
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
*/
|
|
1077
|
-
export class InteractionStepsAi extends BaseAPI {
|
|
1078
|
-
/**
|
|
1079
|
-
*
|
|
1080
|
-
* @summary Get Conversation Interaction Steps
|
|
1081
|
-
* @param {InteractionStepsAiGetConversationInteractionStepsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdStepsGetRequest} requestParameters Request parameters.
|
|
1082
|
-
* @param {*} [options] Override http request option.
|
|
1083
|
-
* @throws {RequiredError}
|
|
1084
|
-
* @memberof InteractionStepsAi
|
|
1085
|
-
*/
|
|
1086
|
-
getConversationInteractionStepsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdStepsGet(requestParameters, options) {
|
|
1087
|
-
return InteractionStepsAi_GetConversationInteractionStepsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdStepsGet(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
// ItemsAi FP - ItemsAiAxiosParamCreator
|
|
1091
|
-
/**
|
|
1092
|
-
*
|
|
1093
|
-
* @summary Get Conversation Items
|
|
1094
|
-
* @param {string} workspaceId
|
|
1095
|
-
* @param {string} conversationId
|
|
1096
|
-
* @param {*} [options] Override http request option.
|
|
1097
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
1098
|
-
* @throws {RequiredError}
|
|
1099
|
-
*/
|
|
1100
|
-
export async function ItemsAiAxiosParamCreator_GetConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGet(workspaceId, conversationId, options = {}, configuration) {
|
|
1101
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
1102
|
-
assertParamExists('getConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGet', 'workspaceId', workspaceId);
|
|
1103
|
-
// verify required parameter 'conversationId' is not null or undefined
|
|
1104
|
-
assertParamExists('getConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGet', 'conversationId', conversationId);
|
|
1105
|
-
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/items`
|
|
1106
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
1107
|
-
.replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)));
|
|
1108
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1109
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1110
|
-
let baseOptions;
|
|
1111
|
-
if (configuration) {
|
|
1112
|
-
baseOptions = configuration.baseOptions;
|
|
1113
|
-
}
|
|
1114
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1115
|
-
const localVarHeaderParameter = {};
|
|
1116
|
-
const localVarQueryParameter = {};
|
|
1117
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1118
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
1119
|
-
localVarRequestOptions.headers = {
|
|
1120
|
-
...localVarHeaderParameter,
|
|
1121
|
-
...headersFromBaseOptions,
|
|
1122
|
-
...options.headers,
|
|
1123
|
-
};
|
|
1124
|
-
return {
|
|
1125
|
-
url: toPathString(localVarUrlObj),
|
|
1126
|
-
options: localVarRequestOptions,
|
|
1127
|
-
};
|
|
1128
|
-
}
|
|
1129
|
-
// ItemsAi Api FP
|
|
1130
|
-
/**
|
|
1131
|
-
*
|
|
1132
|
-
* @summary Get Conversation Items
|
|
1133
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
1134
|
-
* @param {string} basePath Base path.
|
|
1135
|
-
* @param {ItemsAiGetConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGetRequest} requestParameters Request parameters.
|
|
1136
|
-
* @param {*} [options] Override http request option.
|
|
1137
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
1138
|
-
* @throws {RequiredError}
|
|
1139
|
-
*/
|
|
1140
|
-
export async function ItemsAi_GetConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGet(axios, basePath, requestParameters, options, configuration) {
|
|
1141
|
-
const localVarAxiosArgs = await ItemsAiAxiosParamCreator_GetConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGet(requestParameters.workspaceId, requestParameters.conversationId, options || {}, configuration);
|
|
1142
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1143
|
-
}
|
|
1144
|
-
/**
|
|
1145
|
-
* ItemsAi - object-oriented interface
|
|
1146
|
-
* @export
|
|
1147
|
-
* @class ItemsAi
|
|
1148
|
-
* @extends {BaseAPI}
|
|
1149
|
-
*/
|
|
1150
|
-
export class ItemsAi extends BaseAPI {
|
|
1151
|
-
/**
|
|
1152
|
-
*
|
|
1153
|
-
* @summary Get Conversation Items
|
|
1154
|
-
* @param {ItemsAiGetConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGetRequest} requestParameters Request parameters.
|
|
1155
|
-
* @param {*} [options] Override http request option.
|
|
1156
|
-
* @throws {RequiredError}
|
|
1157
|
-
* @memberof ItemsAi
|
|
1158
|
-
*/
|
|
1159
|
-
getConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGet(requestParameters, options) {
|
|
1160
|
-
return ItemsAi_GetConversationItemsApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdItemsGet(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1161
|
-
}
|
|
1162
|
-
}
|
|
1163
|
-
// KnowledgeAi FP - KnowledgeAiAxiosParamCreator
|
|
1164
|
-
/**
|
|
1165
|
-
* Upload a new knowledge document. Returns 409 if filename already exists.
|
|
1166
|
-
* @summary Upload Document
|
|
1167
|
-
* @param {string} workspaceId
|
|
1168
|
-
* @param {File} file
|
|
1169
|
-
* @param {Array<string>} [scopes]
|
|
1170
|
-
* @param {string} [title]
|
|
1171
|
-
* @param {*} [options] Override http request option.
|
|
1172
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
1173
|
-
* @throws {RequiredError}
|
|
1174
|
-
*/
|
|
1175
|
-
export async function KnowledgeAiAxiosParamCreator_CreateDocument(workspaceId, file, scopes, title, options = {}, configuration) {
|
|
1176
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
1177
|
-
assertParamExists('createDocument', 'workspaceId', workspaceId);
|
|
1178
|
-
// verify required parameter 'file' is not null or undefined
|
|
1179
|
-
assertParamExists('createDocument', 'file', file);
|
|
1180
|
-
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/knowledge/documents`
|
|
1181
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
1182
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1183
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1184
|
-
let baseOptions;
|
|
1185
|
-
if (configuration) {
|
|
1186
|
-
baseOptions = configuration.baseOptions;
|
|
1187
|
-
}
|
|
1188
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1189
|
-
const localVarHeaderParameter = {};
|
|
1190
|
-
const localVarQueryParameter = {};
|
|
1191
|
-
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
1192
|
-
if (file !== undefined) {
|
|
1193
|
-
localVarFormParams.append('file', file);
|
|
1194
|
-
}
|
|
1195
|
-
if (scopes) {
|
|
1196
|
-
localVarFormParams.append('scopes', scopes.join(COLLECTION_FORMATS.csv));
|
|
1197
|
-
}
|
|
1198
|
-
if (title !== undefined) {
|
|
1199
|
-
localVarFormParams.append('title', title);
|
|
1200
|
-
}
|
|
1201
|
-
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
1202
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1203
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
1204
|
-
localVarRequestOptions.headers = {
|
|
1205
|
-
...localVarHeaderParameter,
|
|
1206
|
-
...headersFromBaseOptions,
|
|
1207
|
-
...options.headers,
|
|
1208
|
-
};
|
|
1209
|
-
localVarRequestOptions.data = localVarFormParams;
|
|
1210
|
-
return {
|
|
1211
|
-
url: toPathString(localVarUrlObj),
|
|
1212
|
-
options: localVarRequestOptions,
|
|
1213
|
-
};
|
|
1214
|
-
}
|
|
1215
|
-
// KnowledgeAi FP - KnowledgeAiAxiosParamCreator
|
|
1216
|
-
/**
|
|
1217
|
-
* Upload a new org-scoped knowledge document.
|
|
1218
|
-
* @summary Upload Document Org
|
|
1219
|
-
* @param {File} file
|
|
1220
|
-
* @param {Array<string>} [scopes]
|
|
1221
|
-
* @param {string} [title]
|
|
1222
|
-
* @param {*} [options] Override http request option.
|
|
1223
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
1224
|
-
* @throws {RequiredError}
|
|
1225
|
-
*/
|
|
1226
|
-
export async function KnowledgeAiAxiosParamCreator_CreateOrgDocument(file, scopes, title, options = {}, configuration) {
|
|
1227
|
-
// verify required parameter 'file' is not null or undefined
|
|
1228
|
-
assertParamExists('createOrgDocument', 'file', file);
|
|
1229
|
-
const localVarPath = `/api/v1/ai/organization/knowledge/documents`;
|
|
1230
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1231
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1232
|
-
let baseOptions;
|
|
1233
|
-
if (configuration) {
|
|
1234
|
-
baseOptions = configuration.baseOptions;
|
|
1616
|
+
export async function KnowledgeAiAxiosParamCreator_CreateOrgDocument(file, scopes, title, options = {}, configuration) {
|
|
1617
|
+
// verify required parameter 'file' is not null or undefined
|
|
1618
|
+
assertParamExists('createOrgDocument', 'file', file);
|
|
1619
|
+
const localVarPath = `/api/v1/ai/organization/knowledge/documents`;
|
|
1620
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1621
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1622
|
+
let baseOptions;
|
|
1623
|
+
if (configuration) {
|
|
1624
|
+
baseOptions = configuration.baseOptions;
|
|
1235
1625
|
}
|
|
1236
1626
|
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1237
1627
|
const localVarHeaderParameter = {};
|
|
@@ -2326,112 +2716,16 @@ export class KnowledgeAi extends BaseAPI {
|
|
|
2326
2716
|
return KnowledgeAi_UpsertOrgDocument(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
2327
2717
|
}
|
|
2328
2718
|
}
|
|
2329
|
-
//
|
|
2719
|
+
// ObservabilityAi FP - ObservabilityAiAxiosParamCreator
|
|
2330
2720
|
/**
|
|
2331
|
-
*
|
|
2332
|
-
* @summary
|
|
2333
|
-
* @param {string} workspaceId
|
|
2334
|
-
* @param {string} conversationId
|
|
2335
|
-
* @param {AiSendMessageRequest} aiSendMessageRequest
|
|
2336
|
-
* @param {*} [options] Override http request option.
|
|
2337
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
2338
|
-
* @throws {RequiredError}
|
|
2339
|
-
*/
|
|
2340
|
-
export async function MessagesAiAxiosParamCreator_PostMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost(workspaceId, conversationId, aiSendMessageRequest, options = {}, configuration) {
|
|
2341
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
2342
|
-
assertParamExists('postMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost', 'workspaceId', workspaceId);
|
|
2343
|
-
// verify required parameter 'conversationId' is not null or undefined
|
|
2344
|
-
assertParamExists('postMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost', 'conversationId', conversationId);
|
|
2345
|
-
// verify required parameter 'aiSendMessageRequest' is not null or undefined
|
|
2346
|
-
assertParamExists('postMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost', 'aiSendMessageRequest', aiSendMessageRequest);
|
|
2347
|
-
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/messages`
|
|
2348
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2349
|
-
.replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)));
|
|
2350
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2351
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2352
|
-
let baseOptions;
|
|
2353
|
-
if (configuration) {
|
|
2354
|
-
baseOptions = configuration.baseOptions;
|
|
2355
|
-
}
|
|
2356
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2357
|
-
const localVarHeaderParameter = {};
|
|
2358
|
-
const localVarQueryParameter = {};
|
|
2359
|
-
const consumes = [
|
|
2360
|
-
'application/json'
|
|
2361
|
-
];
|
|
2362
|
-
// use application/json if present, otherwise fallback to the first one
|
|
2363
|
-
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
2364
|
-
? 'application/json'
|
|
2365
|
-
: consumes[0];
|
|
2366
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2367
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
2368
|
-
localVarRequestOptions.headers = {
|
|
2369
|
-
...localVarHeaderParameter,
|
|
2370
|
-
...headersFromBaseOptions,
|
|
2371
|
-
...options.headers,
|
|
2372
|
-
};
|
|
2373
|
-
const needsSerialization = typeof aiSendMessageRequest !== "string" ||
|
|
2374
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
2375
|
-
localVarRequestOptions.data = needsSerialization
|
|
2376
|
-
? JSON.stringify(aiSendMessageRequest !== undefined ? aiSendMessageRequest : {})
|
|
2377
|
-
: aiSendMessageRequest || "";
|
|
2378
|
-
return {
|
|
2379
|
-
url: toPathString(localVarUrlObj),
|
|
2380
|
-
options: localVarRequestOptions,
|
|
2381
|
-
};
|
|
2382
|
-
}
|
|
2383
|
-
// MessagesAi Api FP
|
|
2384
|
-
/**
|
|
2385
|
-
*
|
|
2386
|
-
* @summary Post Messages
|
|
2387
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
2388
|
-
* @param {string} basePath Base path.
|
|
2389
|
-
* @param {MessagesAiPostMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPostRequest} requestParameters Request parameters.
|
|
2390
|
-
* @param {*} [options] Override http request option.
|
|
2391
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
2392
|
-
* @throws {RequiredError}
|
|
2393
|
-
*/
|
|
2394
|
-
export async function MessagesAi_PostMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost(axios, basePath, requestParameters, options, configuration) {
|
|
2395
|
-
const localVarAxiosArgs = await MessagesAiAxiosParamCreator_PostMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost(requestParameters.workspaceId, requestParameters.conversationId, requestParameters.aiSendMessageRequest, options || {}, configuration);
|
|
2396
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
2397
|
-
}
|
|
2398
|
-
/**
|
|
2399
|
-
* MessagesAi - object-oriented interface
|
|
2400
|
-
* @export
|
|
2401
|
-
* @class MessagesAi
|
|
2402
|
-
* @extends {BaseAPI}
|
|
2403
|
-
*/
|
|
2404
|
-
export class MessagesAi extends BaseAPI {
|
|
2405
|
-
/**
|
|
2406
|
-
*
|
|
2407
|
-
* @summary Post Messages
|
|
2408
|
-
* @param {MessagesAiPostMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPostRequest} requestParameters Request parameters.
|
|
2409
|
-
* @param {*} [options] Override http request option.
|
|
2410
|
-
* @throws {RequiredError}
|
|
2411
|
-
* @memberof MessagesAi
|
|
2412
|
-
*/
|
|
2413
|
-
postMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost(requestParameters, options) {
|
|
2414
|
-
return MessagesAi_PostMessagesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdMessagesPost(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
2415
|
-
}
|
|
2416
|
-
}
|
|
2417
|
-
// ResponsesAi FP - ResponsesAiAxiosParamCreator
|
|
2418
|
-
/**
|
|
2419
|
-
*
|
|
2420
|
-
* @summary Get Conversation Responses
|
|
2421
|
-
* @param {string} workspaceId
|
|
2422
|
-
* @param {string} conversationId
|
|
2721
|
+
* Returns AI usage stats for the user\'s organization for the current calendar month, alongside the previous month\'s value. Backed by the ai_usage_counters table populated by the metering pipeline.
|
|
2722
|
+
* @summary (EXPERIMENTAL) AI observability overview
|
|
2423
2723
|
* @param {*} [options] Override http request option.
|
|
2424
2724
|
* @param {Configuration} [configuration] Optional configuration.
|
|
2425
2725
|
* @throws {RequiredError}
|
|
2426
2726
|
*/
|
|
2427
|
-
export async function
|
|
2428
|
-
|
|
2429
|
-
assertParamExists('getConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGet', 'workspaceId', workspaceId);
|
|
2430
|
-
// verify required parameter 'conversationId' is not null or undefined
|
|
2431
|
-
assertParamExists('getConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGet', 'conversationId', conversationId);
|
|
2432
|
-
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/responses`
|
|
2433
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2434
|
-
.replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)));
|
|
2727
|
+
export async function ObservabilityAiAxiosParamCreator_GetObservabilityOverview(options = {}, configuration) {
|
|
2728
|
+
const localVarPath = `/api/v1/ai/organization/observability`;
|
|
2435
2729
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2436
2730
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2437
2731
|
let baseOptions;
|
|
@@ -2453,377 +2747,35 @@ export async function ResponsesAiAxiosParamCreator_GetConversationResponsesApiV1
|
|
|
2453
2747
|
options: localVarRequestOptions,
|
|
2454
2748
|
};
|
|
2455
2749
|
}
|
|
2456
|
-
//
|
|
2750
|
+
// ObservabilityAi Api FP
|
|
2457
2751
|
/**
|
|
2458
|
-
*
|
|
2459
|
-
* @summary
|
|
2460
|
-
* @param {string} workspaceId
|
|
2461
|
-
* @param {string} conversationId
|
|
2462
|
-
* @param {string} responseId
|
|
2463
|
-
* @param {AiResponseFeedbackRequest} aiResponseFeedbackRequest
|
|
2464
|
-
* @param {*} [options] Override http request option.
|
|
2465
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
2466
|
-
* @throws {RequiredError}
|
|
2467
|
-
*/
|
|
2468
|
-
export async function ResponsesAiAxiosParamCreator_PatchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch(workspaceId, conversationId, responseId, aiResponseFeedbackRequest, options = {}, configuration) {
|
|
2469
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
2470
|
-
assertParamExists('patchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch', 'workspaceId', workspaceId);
|
|
2471
|
-
// verify required parameter 'conversationId' is not null or undefined
|
|
2472
|
-
assertParamExists('patchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch', 'conversationId', conversationId);
|
|
2473
|
-
// verify required parameter 'responseId' is not null or undefined
|
|
2474
|
-
assertParamExists('patchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch', 'responseId', responseId);
|
|
2475
|
-
// verify required parameter 'aiResponseFeedbackRequest' is not null or undefined
|
|
2476
|
-
assertParamExists('patchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch', 'aiResponseFeedbackRequest', aiResponseFeedbackRequest);
|
|
2477
|
-
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/responses/{response_id}`
|
|
2478
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2479
|
-
.replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)))
|
|
2480
|
-
.replace(`{${"response_id"}}`, encodeURIComponent(String(responseId)));
|
|
2481
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2482
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2483
|
-
let baseOptions;
|
|
2484
|
-
if (configuration) {
|
|
2485
|
-
baseOptions = configuration.baseOptions;
|
|
2486
|
-
}
|
|
2487
|
-
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
2488
|
-
const localVarHeaderParameter = {};
|
|
2489
|
-
const localVarQueryParameter = {};
|
|
2490
|
-
const consumes = [
|
|
2491
|
-
'application/json'
|
|
2492
|
-
];
|
|
2493
|
-
// use application/json if present, otherwise fallback to the first one
|
|
2494
|
-
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
2495
|
-
? 'application/json'
|
|
2496
|
-
: consumes[0];
|
|
2497
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2498
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
2499
|
-
localVarRequestOptions.headers = {
|
|
2500
|
-
...localVarHeaderParameter,
|
|
2501
|
-
...headersFromBaseOptions,
|
|
2502
|
-
...options.headers,
|
|
2503
|
-
};
|
|
2504
|
-
const needsSerialization = typeof aiResponseFeedbackRequest !== "string" ||
|
|
2505
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
2506
|
-
localVarRequestOptions.data = needsSerialization
|
|
2507
|
-
? JSON.stringify(aiResponseFeedbackRequest !== undefined ? aiResponseFeedbackRequest : {})
|
|
2508
|
-
: aiResponseFeedbackRequest || "";
|
|
2509
|
-
return {
|
|
2510
|
-
url: toPathString(localVarUrlObj),
|
|
2511
|
-
options: localVarRequestOptions,
|
|
2512
|
-
};
|
|
2513
|
-
}
|
|
2514
|
-
// ResponsesAi FP - ResponsesAiAxiosParamCreator
|
|
2515
|
-
/**
|
|
2516
|
-
*
|
|
2517
|
-
* @summary Post Feedback
|
|
2518
|
-
* @param {string} workspaceId
|
|
2519
|
-
* @param {string} conversationId
|
|
2520
|
-
* @param {AiConversationFeedbackRequest} aiConversationFeedbackRequest
|
|
2521
|
-
* @param {*} [options] Override http request option.
|
|
2522
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
2523
|
-
* @throws {RequiredError}
|
|
2524
|
-
*/
|
|
2525
|
-
export async function ResponsesAiAxiosParamCreator_PostFeedbackApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdFeedbackPost(workspaceId, conversationId, aiConversationFeedbackRequest, options = {}, configuration) {
|
|
2526
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
2527
|
-
assertParamExists('postFeedbackApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdFeedbackPost', 'workspaceId', workspaceId);
|
|
2528
|
-
// verify required parameter 'conversationId' is not null or undefined
|
|
2529
|
-
assertParamExists('postFeedbackApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdFeedbackPost', 'conversationId', conversationId);
|
|
2530
|
-
// verify required parameter 'aiConversationFeedbackRequest' is not null or undefined
|
|
2531
|
-
assertParamExists('postFeedbackApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdFeedbackPost', 'aiConversationFeedbackRequest', aiConversationFeedbackRequest);
|
|
2532
|
-
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/feedback`
|
|
2533
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2534
|
-
.replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)));
|
|
2535
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2536
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2537
|
-
let baseOptions;
|
|
2538
|
-
if (configuration) {
|
|
2539
|
-
baseOptions = configuration.baseOptions;
|
|
2540
|
-
}
|
|
2541
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2542
|
-
const localVarHeaderParameter = {};
|
|
2543
|
-
const localVarQueryParameter = {};
|
|
2544
|
-
const consumes = [
|
|
2545
|
-
'application/json'
|
|
2546
|
-
];
|
|
2547
|
-
// use application/json if present, otherwise fallback to the first one
|
|
2548
|
-
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
2549
|
-
? 'application/json'
|
|
2550
|
-
: consumes[0];
|
|
2551
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2552
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
2553
|
-
localVarRequestOptions.headers = {
|
|
2554
|
-
...localVarHeaderParameter,
|
|
2555
|
-
...headersFromBaseOptions,
|
|
2556
|
-
...options.headers,
|
|
2557
|
-
};
|
|
2558
|
-
const needsSerialization = typeof aiConversationFeedbackRequest !== "string" ||
|
|
2559
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
2560
|
-
localVarRequestOptions.data = needsSerialization
|
|
2561
|
-
? JSON.stringify(aiConversationFeedbackRequest !== undefined ? aiConversationFeedbackRequest : {})
|
|
2562
|
-
: aiConversationFeedbackRequest || "";
|
|
2563
|
-
return {
|
|
2564
|
-
url: toPathString(localVarUrlObj),
|
|
2565
|
-
options: localVarRequestOptions,
|
|
2566
|
-
};
|
|
2567
|
-
}
|
|
2568
|
-
// ResponsesAi Api FP
|
|
2569
|
-
/**
|
|
2570
|
-
*
|
|
2571
|
-
* @summary Get Conversation Responses
|
|
2572
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
2573
|
-
* @param {string} basePath Base path.
|
|
2574
|
-
* @param {ResponsesAiGetConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGetRequest} requestParameters Request parameters.
|
|
2575
|
-
* @param {*} [options] Override http request option.
|
|
2576
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
2577
|
-
* @throws {RequiredError}
|
|
2578
|
-
*/
|
|
2579
|
-
export async function ResponsesAi_GetConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGet(axios, basePath, requestParameters, options, configuration) {
|
|
2580
|
-
const localVarAxiosArgs = await ResponsesAiAxiosParamCreator_GetConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGet(requestParameters.workspaceId, requestParameters.conversationId, options || {}, configuration);
|
|
2581
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
2582
|
-
}
|
|
2583
|
-
// ResponsesAi Api FP
|
|
2584
|
-
/**
|
|
2585
|
-
*
|
|
2586
|
-
* @summary Patch Response
|
|
2587
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
2588
|
-
* @param {string} basePath Base path.
|
|
2589
|
-
* @param {ResponsesAiPatchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatchRequest} requestParameters Request parameters.
|
|
2590
|
-
* @param {*} [options] Override http request option.
|
|
2591
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
2592
|
-
* @throws {RequiredError}
|
|
2593
|
-
*/
|
|
2594
|
-
export async function ResponsesAi_PatchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch(axios, basePath, requestParameters, options, configuration) {
|
|
2595
|
-
const localVarAxiosArgs = await ResponsesAiAxiosParamCreator_PatchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatch(requestParameters.workspaceId, requestParameters.conversationId, requestParameters.responseId, requestParameters.aiResponseFeedbackRequest, options || {}, configuration);
|
|
2596
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
2597
|
-
}
|
|
2598
|
-
// ResponsesAi Api FP
|
|
2599
|
-
/**
|
|
2600
|
-
*
|
|
2601
|
-
* @summary Post Feedback
|
|
2752
|
+
* Returns AI usage stats for the user\'s organization for the current calendar month, alongside the previous month\'s value. Backed by the ai_usage_counters table populated by the metering pipeline.
|
|
2753
|
+
* @summary (EXPERIMENTAL) AI observability overview
|
|
2602
2754
|
* @param {AxiosInstance} axios Axios instance.
|
|
2603
2755
|
* @param {string} basePath Base path.
|
|
2604
|
-
* @param {ResponsesAiPostFeedbackApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdFeedbackPostRequest} requestParameters Request parameters.
|
|
2605
2756
|
* @param {*} [options] Override http request option.
|
|
2606
2757
|
* @param {Configuration} [configuration] Optional configuration.
|
|
2607
2758
|
* @throws {RequiredError}
|
|
2608
2759
|
*/
|
|
2609
|
-
export async function
|
|
2610
|
-
const localVarAxiosArgs = await
|
|
2760
|
+
export async function ObservabilityAi_GetObservabilityOverview(axios, basePath, options, configuration) {
|
|
2761
|
+
const localVarAxiosArgs = await ObservabilityAiAxiosParamCreator_GetObservabilityOverview(options || {}, configuration);
|
|
2611
2762
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
2612
2763
|
}
|
|
2613
2764
|
/**
|
|
2614
|
-
*
|
|
2765
|
+
* ObservabilityAi - object-oriented interface
|
|
2615
2766
|
* @export
|
|
2616
|
-
* @class
|
|
2767
|
+
* @class ObservabilityAi
|
|
2617
2768
|
* @extends {BaseAPI}
|
|
2618
2769
|
*/
|
|
2619
|
-
export class
|
|
2620
|
-
/**
|
|
2621
|
-
*
|
|
2622
|
-
* @summary Get Conversation Responses
|
|
2623
|
-
* @param {ResponsesAiGetConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGetRequest} requestParameters Request parameters.
|
|
2624
|
-
* @param {*} [options] Override http request option.
|
|
2625
|
-
* @throws {RequiredError}
|
|
2626
|
-
* @memberof ResponsesAi
|
|
2627
|
-
*/
|
|
2628
|
-
getConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGet(requestParameters, options) {
|
|
2629
|
-
return ResponsesAi_GetConversationResponsesApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesGet(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
2630
|
-
}
|
|
2770
|
+
export class ObservabilityAi extends BaseAPI {
|
|
2631
2771
|
/**
|
|
2632
|
-
*
|
|
2633
|
-
* @summary
|
|
2634
|
-
* @param {ResponsesAiPatchResponseApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdResponsesResponseIdPatchRequest} requestParameters Request parameters.
|
|
2772
|
+
* Returns AI usage stats for the user\'s organization for the current calendar month, alongside the previous month\'s value. Backed by the ai_usage_counters table populated by the metering pipeline.
|
|
2773
|
+
* @summary (EXPERIMENTAL) AI observability overview
|
|
2635
2774
|
* @param {*} [options] Override http request option.
|
|
2636
2775
|
* @throws {RequiredError}
|
|
2637
|
-
* @memberof
|
|
2776
|
+
* @memberof ObservabilityAi
|
|
2638
2777
|
*/
|
|
2639
|
-
|
|
2640
|
-
return
|
|
2641
|
-
}
|
|
2642
|
-
/**
|
|
2643
|
-
*
|
|
2644
|
-
* @summary Post Feedback
|
|
2645
|
-
* @param {ResponsesAiPostFeedbackApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdFeedbackPostRequest} requestParameters Request parameters.
|
|
2646
|
-
* @param {*} [options] Override http request option.
|
|
2647
|
-
* @throws {RequiredError}
|
|
2648
|
-
* @memberof ResponsesAi
|
|
2649
|
-
*/
|
|
2650
|
-
postFeedbackApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdFeedbackPost(requestParameters, options) {
|
|
2651
|
-
return ResponsesAi_PostFeedbackApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdFeedbackPost(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
2652
|
-
}
|
|
2653
|
-
}
|
|
2654
|
-
// SummaryAi FP - SummaryAiAxiosParamCreator
|
|
2655
|
-
/**
|
|
2656
|
-
* Note: This API is an experimental and is going to change. Please, use it accordingly. Generates a natural-language summary of a dashboard\'s visualizations, optionally scoped by an explicit filter context.
|
|
2657
|
-
* @summary (EXPERIMENTAL) Summarize a dashboard
|
|
2658
|
-
* @param {string} workspaceId
|
|
2659
|
-
* @param {AiSummarizeRequest} aiSummarizeRequest
|
|
2660
|
-
* @param {*} [options] Override http request option.
|
|
2661
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
2662
|
-
* @throws {RequiredError}
|
|
2663
|
-
*/
|
|
2664
|
-
export async function SummaryAiAxiosParamCreator_SummarizeDashboard(workspaceId, aiSummarizeRequest, options = {}, configuration) {
|
|
2665
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
2666
|
-
assertParamExists('summarizeDashboard', 'workspaceId', workspaceId);
|
|
2667
|
-
// verify required parameter 'aiSummarizeRequest' is not null or undefined
|
|
2668
|
-
assertParamExists('summarizeDashboard', 'aiSummarizeRequest', aiSummarizeRequest);
|
|
2669
|
-
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/summary`
|
|
2670
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
|
|
2671
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2672
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2673
|
-
let baseOptions;
|
|
2674
|
-
if (configuration) {
|
|
2675
|
-
baseOptions = configuration.baseOptions;
|
|
2676
|
-
}
|
|
2677
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2678
|
-
const localVarHeaderParameter = {};
|
|
2679
|
-
const localVarQueryParameter = {};
|
|
2680
|
-
const consumes = [
|
|
2681
|
-
'application/json'
|
|
2682
|
-
];
|
|
2683
|
-
// use application/json if present, otherwise fallback to the first one
|
|
2684
|
-
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
2685
|
-
? 'application/json'
|
|
2686
|
-
: consumes[0];
|
|
2687
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2688
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
2689
|
-
localVarRequestOptions.headers = {
|
|
2690
|
-
...localVarHeaderParameter,
|
|
2691
|
-
...headersFromBaseOptions,
|
|
2692
|
-
...options.headers,
|
|
2693
|
-
};
|
|
2694
|
-
const needsSerialization = typeof aiSummarizeRequest !== "string" ||
|
|
2695
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
2696
|
-
localVarRequestOptions.data = needsSerialization
|
|
2697
|
-
? JSON.stringify(aiSummarizeRequest !== undefined ? aiSummarizeRequest : {})
|
|
2698
|
-
: aiSummarizeRequest || "";
|
|
2699
|
-
return {
|
|
2700
|
-
url: toPathString(localVarUrlObj),
|
|
2701
|
-
options: localVarRequestOptions,
|
|
2702
|
-
};
|
|
2703
|
-
}
|
|
2704
|
-
// SummaryAi Api FP
|
|
2705
|
-
/**
|
|
2706
|
-
* Note: This API is an experimental and is going to change. Please, use it accordingly. Generates a natural-language summary of a dashboard\'s visualizations, optionally scoped by an explicit filter context.
|
|
2707
|
-
* @summary (EXPERIMENTAL) Summarize a dashboard
|
|
2708
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
2709
|
-
* @param {string} basePath Base path.
|
|
2710
|
-
* @param {SummaryAiSummarizeDashboardRequest} requestParameters Request parameters.
|
|
2711
|
-
* @param {*} [options] Override http request option.
|
|
2712
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
2713
|
-
* @throws {RequiredError}
|
|
2714
|
-
*/
|
|
2715
|
-
export async function SummaryAi_SummarizeDashboard(axios, basePath, requestParameters, options, configuration) {
|
|
2716
|
-
const localVarAxiosArgs = await SummaryAiAxiosParamCreator_SummarizeDashboard(requestParameters.workspaceId, requestParameters.aiSummarizeRequest, options || {}, configuration);
|
|
2717
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
2718
|
-
}
|
|
2719
|
-
/**
|
|
2720
|
-
* SummaryAi - object-oriented interface
|
|
2721
|
-
* @export
|
|
2722
|
-
* @class SummaryAi
|
|
2723
|
-
* @extends {BaseAPI}
|
|
2724
|
-
*/
|
|
2725
|
-
export class SummaryAi extends BaseAPI {
|
|
2726
|
-
/**
|
|
2727
|
-
* Note: This API is an experimental and is going to change. Please, use it accordingly. Generates a natural-language summary of a dashboard\'s visualizations, optionally scoped by an explicit filter context.
|
|
2728
|
-
* @summary (EXPERIMENTAL) Summarize a dashboard
|
|
2729
|
-
* @param {SummaryAiSummarizeDashboardRequest} requestParameters Request parameters.
|
|
2730
|
-
* @param {*} [options] Override http request option.
|
|
2731
|
-
* @throws {RequiredError}
|
|
2732
|
-
* @memberof SummaryAi
|
|
2733
|
-
*/
|
|
2734
|
-
summarizeDashboard(requestParameters, options) {
|
|
2735
|
-
return SummaryAi_SummarizeDashboard(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
2736
|
-
}
|
|
2737
|
-
}
|
|
2738
|
-
// VisualizationsAi FP - VisualizationsAiAxiosParamCreator
|
|
2739
|
-
/**
|
|
2740
|
-
*
|
|
2741
|
-
* @summary Patch Visualization
|
|
2742
|
-
* @param {string} workspaceId
|
|
2743
|
-
* @param {string} conversationId
|
|
2744
|
-
* @param {string} visualizationId
|
|
2745
|
-
* @param {AiVisualizationIdUpdateRequest} aiVisualizationIdUpdateRequest
|
|
2746
|
-
* @param {*} [options] Override http request option.
|
|
2747
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
2748
|
-
* @throws {RequiredError}
|
|
2749
|
-
*/
|
|
2750
|
-
export async function VisualizationsAiAxiosParamCreator_PatchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch(workspaceId, conversationId, visualizationId, aiVisualizationIdUpdateRequest, options = {}, configuration) {
|
|
2751
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
2752
|
-
assertParamExists('patchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch', 'workspaceId', workspaceId);
|
|
2753
|
-
// verify required parameter 'conversationId' is not null or undefined
|
|
2754
|
-
assertParamExists('patchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch', 'conversationId', conversationId);
|
|
2755
|
-
// verify required parameter 'visualizationId' is not null or undefined
|
|
2756
|
-
assertParamExists('patchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch', 'visualizationId', visualizationId);
|
|
2757
|
-
// verify required parameter 'aiVisualizationIdUpdateRequest' is not null or undefined
|
|
2758
|
-
assertParamExists('patchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch', 'aiVisualizationIdUpdateRequest', aiVisualizationIdUpdateRequest);
|
|
2759
|
-
const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/visualizations/{visualization_id}`
|
|
2760
|
-
.replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
|
|
2761
|
-
.replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)))
|
|
2762
|
-
.replace(`{${"visualization_id"}}`, encodeURIComponent(String(visualizationId)));
|
|
2763
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2764
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2765
|
-
let baseOptions;
|
|
2766
|
-
if (configuration) {
|
|
2767
|
-
baseOptions = configuration.baseOptions;
|
|
2768
|
-
}
|
|
2769
|
-
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
|
|
2770
|
-
const localVarHeaderParameter = {};
|
|
2771
|
-
const localVarQueryParameter = {};
|
|
2772
|
-
const consumes = [
|
|
2773
|
-
'application/json'
|
|
2774
|
-
];
|
|
2775
|
-
// use application/json if present, otherwise fallback to the first one
|
|
2776
|
-
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
2777
|
-
? 'application/json'
|
|
2778
|
-
: consumes[0];
|
|
2779
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2780
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
2781
|
-
localVarRequestOptions.headers = {
|
|
2782
|
-
...localVarHeaderParameter,
|
|
2783
|
-
...headersFromBaseOptions,
|
|
2784
|
-
...options.headers,
|
|
2785
|
-
};
|
|
2786
|
-
const needsSerialization = typeof aiVisualizationIdUpdateRequest !== "string" ||
|
|
2787
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
2788
|
-
localVarRequestOptions.data = needsSerialization
|
|
2789
|
-
? JSON.stringify(aiVisualizationIdUpdateRequest !== undefined ? aiVisualizationIdUpdateRequest : {})
|
|
2790
|
-
: aiVisualizationIdUpdateRequest || "";
|
|
2791
|
-
return {
|
|
2792
|
-
url: toPathString(localVarUrlObj),
|
|
2793
|
-
options: localVarRequestOptions,
|
|
2794
|
-
};
|
|
2795
|
-
}
|
|
2796
|
-
// VisualizationsAi Api FP
|
|
2797
|
-
/**
|
|
2798
|
-
*
|
|
2799
|
-
* @summary Patch Visualization
|
|
2800
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
2801
|
-
* @param {string} basePath Base path.
|
|
2802
|
-
* @param {VisualizationsAiPatchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatchRequest} requestParameters Request parameters.
|
|
2803
|
-
* @param {*} [options] Override http request option.
|
|
2804
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
2805
|
-
* @throws {RequiredError}
|
|
2806
|
-
*/
|
|
2807
|
-
export async function VisualizationsAi_PatchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch(axios, basePath, requestParameters, options, configuration) {
|
|
2808
|
-
const localVarAxiosArgs = await VisualizationsAiAxiosParamCreator_PatchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch(requestParameters.workspaceId, requestParameters.conversationId, requestParameters.visualizationId, requestParameters.aiVisualizationIdUpdateRequest, options || {}, configuration);
|
|
2809
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
2810
|
-
}
|
|
2811
|
-
/**
|
|
2812
|
-
* VisualizationsAi - object-oriented interface
|
|
2813
|
-
* @export
|
|
2814
|
-
* @class VisualizationsAi
|
|
2815
|
-
* @extends {BaseAPI}
|
|
2816
|
-
*/
|
|
2817
|
-
export class VisualizationsAi extends BaseAPI {
|
|
2818
|
-
/**
|
|
2819
|
-
*
|
|
2820
|
-
* @summary Patch Visualization
|
|
2821
|
-
* @param {VisualizationsAiPatchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatchRequest} requestParameters Request parameters.
|
|
2822
|
-
* @param {*} [options] Override http request option.
|
|
2823
|
-
* @throws {RequiredError}
|
|
2824
|
-
* @memberof VisualizationsAi
|
|
2825
|
-
*/
|
|
2826
|
-
patchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch(requestParameters, options) {
|
|
2827
|
-
return VisualizationsAi_PatchVisualizationApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdVisualizationsVisualizationIdPatch(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
2778
|
+
getObservabilityOverview(options) {
|
|
2779
|
+
return ObservabilityAi_GetObservabilityOverview(this.axios, this.basePath, options, this.configuration);
|
|
2828
2780
|
}
|
|
2829
2781
|
}
|