@gooddata/api-client-tiger 10.28.0-alpha.64 → 10.28.0-alpha.67

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.
@@ -410,6 +410,38 @@ export const ActionsApiAxiosParamCreator = function (configuration) {
410
410
  options: localVarRequestOptions,
411
411
  };
412
412
  },
413
+ /**
414
+ * Returns usage statistics of chat for a user in a workspace.
415
+ * @summary Get Chat Usage
416
+ * @param {string} workspaceId Workspace identifier
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ */
420
+ aiChatUsage: async (workspaceId, options = {}) => {
421
+ // verify required parameter 'workspaceId' is not null or undefined
422
+ assertParamExists("aiChatUsage", "workspaceId", workspaceId);
423
+ const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/ai/chatUsage`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
424
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
425
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
426
+ let baseOptions;
427
+ if (configuration) {
428
+ baseOptions = configuration.baseOptions;
429
+ }
430
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
431
+ const localVarHeaderParameter = {};
432
+ const localVarQueryParameter = {};
433
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
434
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
435
+ localVarRequestOptions.headers = {
436
+ ...localVarHeaderParameter,
437
+ ...headersFromBaseOptions,
438
+ ...options.headers,
439
+ };
440
+ return {
441
+ url: toPathString(localVarUrlObj),
442
+ options: localVarRequestOptions,
443
+ };
444
+ },
413
445
  /**
414
446
  * (BETA) Uses similarity (e.g. cosine distance) search to find top X most similar metadata objects.
415
447
  * @summary (BETA) Semantic Search in Metadata
@@ -1231,6 +1263,17 @@ export const ActionsApiFp = function (configuration) {
1231
1263
  const localVarAxiosArgs = await localVarAxiosParamCreator.aiChatStream(workspaceId, chatRequest, options);
1232
1264
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1233
1265
  },
1266
+ /**
1267
+ * Returns usage statistics of chat for a user in a workspace.
1268
+ * @summary Get Chat Usage
1269
+ * @param {string} workspaceId Workspace identifier
1270
+ * @param {*} [options] Override http request option.
1271
+ * @throws {RequiredError}
1272
+ */
1273
+ async aiChatUsage(workspaceId, options) {
1274
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiChatUsage(workspaceId, options);
1275
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1276
+ },
1234
1277
  /**
1235
1278
  * (BETA) Uses similarity (e.g. cosine distance) search to find top X most similar metadata objects.
1236
1279
  * @summary (BETA) Semantic Search in Metadata
@@ -1505,6 +1548,18 @@ export const ActionsApiFactory = function (configuration, basePath, axios) {
1505
1548
  .aiChatStream(requestParameters.workspaceId, requestParameters.chatRequest, options)
1506
1549
  .then((request) => request(axios, basePath));
1507
1550
  },
1551
+ /**
1552
+ * Returns usage statistics of chat for a user in a workspace.
1553
+ * @summary Get Chat Usage
1554
+ * @param {ActionsApiAiChatUsageRequest} requestParameters Request parameters.
1555
+ * @param {*} [options] Override http request option.
1556
+ * @throws {RequiredError}
1557
+ */
1558
+ aiChatUsage(requestParameters, options) {
1559
+ return localVarFp
1560
+ .aiChatUsage(requestParameters.workspaceId, options)
1561
+ .then((request) => request(axios, basePath));
1562
+ },
1508
1563
  /**
1509
1564
  * (BETA) Uses similarity (e.g. cosine distance) search to find top X most similar metadata objects.
1510
1565
  * @summary (BETA) Semantic Search in Metadata
@@ -1757,6 +1812,19 @@ export class ActionsApi extends BaseAPI {
1757
1812
  .aiChatStream(requestParameters.workspaceId, requestParameters.chatRequest, options)
1758
1813
  .then((request) => request(this.axios, this.basePath));
1759
1814
  }
1815
+ /**
1816
+ * Returns usage statistics of chat for a user in a workspace.
1817
+ * @summary Get Chat Usage
1818
+ * @param {ActionsApiAiChatUsageRequest} requestParameters Request parameters.
1819
+ * @param {*} [options] Override http request option.
1820
+ * @throws {RequiredError}
1821
+ * @memberof ActionsApi
1822
+ */
1823
+ aiChatUsage(requestParameters, options) {
1824
+ return ActionsApiFp(this.configuration)
1825
+ .aiChatUsage(requestParameters.workspaceId, options)
1826
+ .then((request) => request(this.axios, this.basePath));
1827
+ }
1760
1828
  /**
1761
1829
  * (BETA) Uses similarity (e.g. cosine distance) search to find top X most similar metadata objects.
1762
1830
  * @summary (BETA) Semantic Search in Metadata
@@ -2897,6 +2965,38 @@ export const SmartFunctionsApiAxiosParamCreator = function (configuration) {
2897
2965
  options: localVarRequestOptions,
2898
2966
  };
2899
2967
  },
2968
+ /**
2969
+ * Returns usage statistics of chat for a user in a workspace.
2970
+ * @summary Get Chat Usage
2971
+ * @param {string} workspaceId Workspace identifier
2972
+ * @param {*} [options] Override http request option.
2973
+ * @throws {RequiredError}
2974
+ */
2975
+ aiChatUsage: async (workspaceId, options = {}) => {
2976
+ // verify required parameter 'workspaceId' is not null or undefined
2977
+ assertParamExists("aiChatUsage", "workspaceId", workspaceId);
2978
+ const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/ai/chatUsage`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
2979
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2980
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2981
+ let baseOptions;
2982
+ if (configuration) {
2983
+ baseOptions = configuration.baseOptions;
2984
+ }
2985
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
2986
+ const localVarHeaderParameter = {};
2987
+ const localVarQueryParameter = {};
2988
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2989
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2990
+ localVarRequestOptions.headers = {
2991
+ ...localVarHeaderParameter,
2992
+ ...headersFromBaseOptions,
2993
+ ...options.headers,
2994
+ };
2995
+ return {
2996
+ url: toPathString(localVarUrlObj),
2997
+ options: localVarRequestOptions,
2998
+ };
2999
+ },
2900
3000
  /**
2901
3001
  * (BETA) Uses similarity (e.g. cosine distance) search to find top X most similar metadata objects.
2902
3002
  * @summary (BETA) Semantic Search in Metadata
@@ -3268,6 +3368,17 @@ export const SmartFunctionsApiFp = function (configuration) {
3268
3368
  const localVarAxiosArgs = await localVarAxiosParamCreator.aiChatStream(workspaceId, chatRequest, options);
3269
3369
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3270
3370
  },
3371
+ /**
3372
+ * Returns usage statistics of chat for a user in a workspace.
3373
+ * @summary Get Chat Usage
3374
+ * @param {string} workspaceId Workspace identifier
3375
+ * @param {*} [options] Override http request option.
3376
+ * @throws {RequiredError}
3377
+ */
3378
+ async aiChatUsage(workspaceId, options) {
3379
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiChatUsage(workspaceId, options);
3380
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3381
+ },
3271
3382
  /**
3272
3383
  * (BETA) Uses similarity (e.g. cosine distance) search to find top X most similar metadata objects.
3273
3384
  * @summary (BETA) Semantic Search in Metadata
@@ -3409,6 +3520,18 @@ export const SmartFunctionsApiFactory = function (configuration, basePath, axios
3409
3520
  .aiChatStream(requestParameters.workspaceId, requestParameters.chatRequest, options)
3410
3521
  .then((request) => request(axios, basePath));
3411
3522
  },
3523
+ /**
3524
+ * Returns usage statistics of chat for a user in a workspace.
3525
+ * @summary Get Chat Usage
3526
+ * @param {SmartFunctionsApiAiChatUsageRequest} requestParameters Request parameters.
3527
+ * @param {*} [options] Override http request option.
3528
+ * @throws {RequiredError}
3529
+ */
3530
+ aiChatUsage(requestParameters, options) {
3531
+ return localVarFp
3532
+ .aiChatUsage(requestParameters.workspaceId, options)
3533
+ .then((request) => request(axios, basePath));
3534
+ },
3412
3535
  /**
3413
3536
  * (BETA) Uses similarity (e.g. cosine distance) search to find top X most similar metadata objects.
3414
3537
  * @summary (BETA) Semantic Search in Metadata
@@ -3541,6 +3664,19 @@ export class SmartFunctionsApi extends BaseAPI {
3541
3664
  .aiChatStream(requestParameters.workspaceId, requestParameters.chatRequest, options)
3542
3665
  .then((request) => request(this.axios, this.basePath));
3543
3666
  }
3667
+ /**
3668
+ * Returns usage statistics of chat for a user in a workspace.
3669
+ * @summary Get Chat Usage
3670
+ * @param {SmartFunctionsApiAiChatUsageRequest} requestParameters Request parameters.
3671
+ * @param {*} [options] Override http request option.
3672
+ * @throws {RequiredError}
3673
+ * @memberof SmartFunctionsApi
3674
+ */
3675
+ aiChatUsage(requestParameters, options) {
3676
+ return SmartFunctionsApiFp(this.configuration)
3677
+ .aiChatUsage(requestParameters.workspaceId, options)
3678
+ .then((request) => request(this.axios, this.basePath));
3679
+ }
3544
3680
  /**
3545
3681
  * (BETA) Uses similarity (e.g. cosine distance) search to find top X most similar metadata objects.
3546
3682
  * @summary (BETA) Semantic Search in Metadata