@gooddata/api-client-tiger 11.41.0-alpha.2 → 11.41.0-alpha.4

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.
@@ -81,11 +81,6 @@ export const AiDateGranularityInput = {
81
81
  FISCAL_QUARTER: 'FISCAL_QUARTER',
82
82
  FISCAL_YEAR: 'FISCAL_YEAR'
83
83
  };
84
- export const AiDirection = {
85
- INCREASED: 'INCREASED',
86
- DECREASED: 'DECREASED',
87
- NO_CHANGE: 'NO_CHANGE'
88
- };
89
84
  export const AiEmptyValueHandling = {
90
85
  INCLUDE: 'INCLUDE',
91
86
  EXCLUDE: 'EXCLUDE',
@@ -127,7 +122,9 @@ export const AiObjectType = {
127
122
  * Metrics exposed by the AI observability endpoint.
128
123
  */
129
124
  export const AiObservabilityMetricType = {
130
- AI_QUERIES: 'AI_QUERIES'
125
+ AI_QUERIES: 'AI_QUERIES',
126
+ AI_WORKSPACES: 'AI_WORKSPACES',
127
+ AI_USERS: 'AI_USERS'
131
128
  };
132
129
  export const AiRangeMeasureValueOperator = {
133
130
  BETWEEN: 'BETWEEN',
@@ -139,7 +136,7 @@ export const AiRankingOperator = {
139
136
  };
140
137
  // AIObservabilityAi FP - AIObservabilityAiAxiosParamCreator
141
138
  /**
142
- * Returns AI usage stats for the caller\'s organization for the current calendar month, alongside the previous month\'s value and a direction indicator. Backed by the ai_usage_counters table populated by the metering pipeline.
139
+ * 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.
143
140
  * @summary (EXPERIMENTAL) AI observability overview for the caller\'s organization
144
141
  * @param {*} [options] Override http request option.
145
142
  * @param {Configuration} [configuration] Optional configuration.
@@ -170,7 +167,7 @@ export async function AIObservabilityAiAxiosParamCreator_GetObservabilityOvervie
170
167
  }
171
168
  // AIObservabilityAi Api FP
172
169
  /**
173
- * Returns AI usage stats for the caller\'s organization for the current calendar month, alongside the previous month\'s value and a direction indicator. Backed by the ai_usage_counters table populated by the metering pipeline.
170
+ * 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.
174
171
  * @summary (EXPERIMENTAL) AI observability overview for the caller\'s organization
175
172
  * @param {AxiosInstance} axios Axios instance.
176
173
  * @param {string} basePath Base path.
@@ -190,7 +187,7 @@ export async function AIObservabilityAi_GetObservabilityOverview(axios, basePath
190
187
  */
191
188
  export class AIObservabilityAi extends BaseAPI {
192
189
  /**
193
- * Returns AI usage stats for the caller\'s organization for the current calendar month, alongside the previous month\'s value and a direction indicator. Backed by the ai_usage_counters table populated by the metering pipeline.
190
+ * 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.
194
191
  * @summary (EXPERIMENTAL) AI observability overview for the caller\'s organization
195
192
  * @param {*} [options] Override http request option.
196
193
  * @throws {RequiredError}
@@ -263,6 +260,75 @@ export class AgentAi extends BaseAPI {
263
260
  return AgentAi_ListAvailableSkills(this.axios, this.basePath, options, this.configuration);
264
261
  }
265
262
  }
263
+ // AgentsAi FP - AgentsAiAxiosParamCreator
264
+ /**
265
+ * List agents the calling user can use in this workspace, sorted A-Z. This is the personalized \"usable here\" view for the agent switcher -- access-filtered to the caller, enabled, non-preview, with per-agent lastUsedAt. For agent CRUD/management use the metadata entity endpoint GET /api/v1/entities/agents instead.
266
+ * @summary List agents available to the current user in a workspace
267
+ * @param {string} workspaceId
268
+ * @param {*} [options] Override http request option.
269
+ * @param {Configuration} [configuration] Optional configuration.
270
+ * @throws {RequiredError}
271
+ */
272
+ export async function AgentsAiAxiosParamCreator_ListAgents(workspaceId, options = {}, configuration) {
273
+ // verify required parameter 'workspaceId' is not null or undefined
274
+ assertParamExists('listAgents', 'workspaceId', workspaceId);
275
+ const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/agents`
276
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
277
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
278
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
279
+ let baseOptions;
280
+ if (configuration) {
281
+ baseOptions = configuration.baseOptions;
282
+ }
283
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
284
+ const localVarHeaderParameter = {};
285
+ const localVarQueryParameter = {};
286
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
287
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
288
+ localVarRequestOptions.headers = {
289
+ ...localVarHeaderParameter,
290
+ ...headersFromBaseOptions,
291
+ ...options.headers,
292
+ };
293
+ return {
294
+ url: toPathString(localVarUrlObj),
295
+ options: localVarRequestOptions,
296
+ };
297
+ }
298
+ // AgentsAi Api FP
299
+ /**
300
+ * List agents the calling user can use in this workspace, sorted A-Z. This is the personalized \"usable here\" view for the agent switcher -- access-filtered to the caller, enabled, non-preview, with per-agent lastUsedAt. For agent CRUD/management use the metadata entity endpoint GET /api/v1/entities/agents instead.
301
+ * @summary List agents available to the current user in a workspace
302
+ * @param {AxiosInstance} axios Axios instance.
303
+ * @param {string} basePath Base path.
304
+ * @param {AgentsAiListAgentsRequest} requestParameters Request parameters.
305
+ * @param {*} [options] Override http request option.
306
+ * @param {Configuration} [configuration] Optional configuration.
307
+ * @throws {RequiredError}
308
+ */
309
+ export async function AgentsAi_ListAgents(axios, basePath, requestParameters, options, configuration) {
310
+ const localVarAxiosArgs = await AgentsAiAxiosParamCreator_ListAgents(requestParameters.workspaceId, options || {}, configuration);
311
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
312
+ }
313
+ /**
314
+ * AgentsAi - object-oriented interface
315
+ * @export
316
+ * @class AgentsAi
317
+ * @extends {BaseAPI}
318
+ */
319
+ export class AgentsAi extends BaseAPI {
320
+ /**
321
+ * List agents the calling user can use in this workspace, sorted A-Z. This is the personalized \"usable here\" view for the agent switcher -- access-filtered to the caller, enabled, non-preview, with per-agent lastUsedAt. For agent CRUD/management use the metadata entity endpoint GET /api/v1/entities/agents instead.
322
+ * @summary List agents available to the current user in a workspace
323
+ * @param {AgentsAiListAgentsRequest} requestParameters Request parameters.
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ * @memberof AgentsAi
327
+ */
328
+ listAgents(requestParameters, options) {
329
+ return AgentsAi_ListAgents(this.axios, this.basePath, requestParameters, options, this.configuration);
330
+ }
331
+ }
266
332
  // ConversationsAi FP - ConversationsAiAxiosParamCreator
267
333
  /**
268
334
  *
@@ -448,11 +514,12 @@ export async function ConversationsAiAxiosParamCreator_PatchConversationApiV1AiW
448
514
  * @summary Post Conversations
449
515
  * @param {string} workspaceId
450
516
  * @param {boolean} [isPreview]
517
+ * @param {AiCreateConversationRequest} [aiCreateConversationRequest]
451
518
  * @param {*} [options] Override http request option.
452
519
  * @param {Configuration} [configuration] Optional configuration.
453
520
  * @throws {RequiredError}
454
521
  */
455
- export async function ConversationsAiAxiosParamCreator_PostConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsPost(workspaceId, isPreview, options = {}, configuration) {
522
+ export async function ConversationsAiAxiosParamCreator_PostConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsPost(workspaceId, isPreview, aiCreateConversationRequest, options = {}, configuration) {
456
523
  // verify required parameter 'workspaceId' is not null or undefined
457
524
  assertParamExists('postConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsPost', 'workspaceId', workspaceId);
458
525
  const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations`
@@ -469,6 +536,13 @@ export async function ConversationsAiAxiosParamCreator_PostConversationsApiV1AiW
469
536
  if (isPreview !== undefined) {
470
537
  localVarQueryParameter['isPreview'] = isPreview;
471
538
  }
539
+ const consumes = [
540
+ 'application/json'
541
+ ];
542
+ // use application/json if present, otherwise fallback to the first one
543
+ localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
544
+ ? 'application/json'
545
+ : consumes[0];
472
546
  setSearchParams(localVarUrlObj, localVarQueryParameter);
473
547
  const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
474
548
  localVarRequestOptions.headers = {
@@ -476,6 +550,11 @@ export async function ConversationsAiAxiosParamCreator_PostConversationsApiV1AiW
476
550
  ...headersFromBaseOptions,
477
551
  ...options.headers,
478
552
  };
553
+ const needsSerialization = typeof aiCreateConversationRequest !== "string" ||
554
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
555
+ localVarRequestOptions.data = needsSerialization
556
+ ? JSON.stringify(aiCreateConversationRequest !== undefined ? aiCreateConversationRequest : {})
557
+ : aiCreateConversationRequest || "";
479
558
  return {
480
559
  url: toPathString(localVarUrlObj),
481
560
  options: localVarRequestOptions,
@@ -520,6 +599,60 @@ export async function ConversationsAiAxiosParamCreator_PostGenerateConversationT
520
599
  options: localVarRequestOptions,
521
600
  };
522
601
  }
602
+ // ConversationsAi FP - ConversationsAiAxiosParamCreator
603
+ /**
604
+ *
605
+ * @summary Switch the active agent on an existing conversation
606
+ * @param {string} workspaceId
607
+ * @param {string} conversationId
608
+ * @param {AiSwitchAgentRequest} aiSwitchAgentRequest
609
+ * @param {*} [options] Override http request option.
610
+ * @param {Configuration} [configuration] Optional configuration.
611
+ * @throws {RequiredError}
612
+ */
613
+ export async function ConversationsAiAxiosParamCreator_SwitchAgent(workspaceId, conversationId, aiSwitchAgentRequest, options = {}, configuration) {
614
+ // verify required parameter 'workspaceId' is not null or undefined
615
+ assertParamExists('switchAgent', 'workspaceId', workspaceId);
616
+ // verify required parameter 'conversationId' is not null or undefined
617
+ assertParamExists('switchAgent', 'conversationId', conversationId);
618
+ // verify required parameter 'aiSwitchAgentRequest' is not null or undefined
619
+ assertParamExists('switchAgent', 'aiSwitchAgentRequest', aiSwitchAgentRequest);
620
+ const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/chat/conversations/{conversation_id}/switchAgent`
621
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)))
622
+ .replace(`{${"conversation_id"}}`, encodeURIComponent(String(conversationId)));
623
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
624
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
625
+ let baseOptions;
626
+ if (configuration) {
627
+ baseOptions = configuration.baseOptions;
628
+ }
629
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
630
+ const localVarHeaderParameter = {};
631
+ const localVarQueryParameter = {};
632
+ const consumes = [
633
+ 'application/json'
634
+ ];
635
+ // use application/json if present, otherwise fallback to the first one
636
+ localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
637
+ ? 'application/json'
638
+ : consumes[0];
639
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
640
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
641
+ localVarRequestOptions.headers = {
642
+ ...localVarHeaderParameter,
643
+ ...headersFromBaseOptions,
644
+ ...options.headers,
645
+ };
646
+ const needsSerialization = typeof aiSwitchAgentRequest !== "string" ||
647
+ localVarRequestOptions.headers["Content-Type"] === "application/json";
648
+ localVarRequestOptions.data = needsSerialization
649
+ ? JSON.stringify(aiSwitchAgentRequest !== undefined ? aiSwitchAgentRequest : {})
650
+ : aiSwitchAgentRequest || "";
651
+ return {
652
+ url: toPathString(localVarUrlObj),
653
+ options: localVarRequestOptions,
654
+ };
655
+ }
523
656
  // ConversationsAi Api FP
524
657
  /**
525
658
  *
@@ -592,7 +725,7 @@ export async function ConversationsAi_PatchConversationApiV1AiWorkspacesWorkspac
592
725
  * @throws {RequiredError}
593
726
  */
594
727
  export async function ConversationsAi_PostConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsPost(axios, basePath, requestParameters, options, configuration) {
595
- const localVarAxiosArgs = await ConversationsAiAxiosParamCreator_PostConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsPost(requestParameters.workspaceId, requestParameters.isPreview, options || {}, configuration);
728
+ const localVarAxiosArgs = await ConversationsAiAxiosParamCreator_PostConversationsApiV1AiWorkspacesWorkspaceIdChatConversationsPost(requestParameters.workspaceId, requestParameters.isPreview, requestParameters.aiCreateConversationRequest, options || {}, configuration);
596
729
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
597
730
  }
598
731
  // ConversationsAi Api FP
@@ -610,6 +743,21 @@ export async function ConversationsAi_PostGenerateConversationTitleApiV1AiWorksp
610
743
  const localVarAxiosArgs = await ConversationsAiAxiosParamCreator_PostGenerateConversationTitleApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGenerateTitlePost(requestParameters.workspaceId, requestParameters.conversationId, options || {}, configuration);
611
744
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
612
745
  }
746
+ // ConversationsAi Api FP
747
+ /**
748
+ *
749
+ * @summary Switch the active agent on an existing conversation
750
+ * @param {AxiosInstance} axios Axios instance.
751
+ * @param {string} basePath Base path.
752
+ * @param {ConversationsAiSwitchAgentRequest} requestParameters Request parameters.
753
+ * @param {*} [options] Override http request option.
754
+ * @param {Configuration} [configuration] Optional configuration.
755
+ * @throws {RequiredError}
756
+ */
757
+ export async function ConversationsAi_SwitchAgent(axios, basePath, requestParameters, options, configuration) {
758
+ const localVarAxiosArgs = await ConversationsAiAxiosParamCreator_SwitchAgent(requestParameters.workspaceId, requestParameters.conversationId, requestParameters.aiSwitchAgentRequest, options || {}, configuration);
759
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
760
+ }
613
761
  /**
614
762
  * ConversationsAi - object-oriented interface
615
763
  * @export
@@ -683,6 +831,17 @@ export class ConversationsAi extends BaseAPI {
683
831
  postGenerateConversationTitleApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGenerateTitlePost(requestParameters, options) {
684
832
  return ConversationsAi_PostGenerateConversationTitleApiV1AiWorkspacesWorkspaceIdChatConversationsConversationIdGenerateTitlePost(this.axios, this.basePath, requestParameters, options, this.configuration);
685
833
  }
834
+ /**
835
+ *
836
+ * @summary Switch the active agent on an existing conversation
837
+ * @param {ConversationsAiSwitchAgentRequest} requestParameters Request parameters.
838
+ * @param {*} [options] Override http request option.
839
+ * @throws {RequiredError}
840
+ * @memberof ConversationsAi
841
+ */
842
+ switchAgent(requestParameters, options) {
843
+ return ConversationsAi_SwitchAgent(this.axios, this.basePath, requestParameters, options, this.configuration);
844
+ }
686
845
  }
687
846
  // ItemsAi FP - ItemsAiAxiosParamCreator
688
847
  /**