@gooddata/api-client-tiger 11.56.0-alpha.1 → 11.56.0-alpha.3

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.
@@ -479,6 +479,16 @@ export const AiIntervalGranularity = {
479
479
  QUARTER: 'QUARTER',
480
480
  YEAR: 'YEAR'
481
481
  };
482
+ export const AiLlmModelFamily = {
483
+ OPENAI: 'OPENAI',
484
+ ANTHROPIC: 'ANTHROPIC',
485
+ META: 'META',
486
+ MISTRAL: 'MISTRAL',
487
+ AMAZON: 'AMAZON',
488
+ GOOGLE: 'GOOGLE',
489
+ COHERE: 'COHERE',
490
+ UNKNOWN: 'UNKNOWN'
491
+ };
482
492
  export const AiMatchTypeInput = {
483
493
  STARTS_WITH: 'STARTS_WITH',
484
494
  ENDS_WITH: 'ENDS_WITH',
@@ -3662,6 +3672,76 @@ export async function SmartFunctionsAiAxiosParamCreator_AiSearch(workspaceId, ai
3662
3672
  };
3663
3673
  }
3664
3674
  // SmartFunctionsAi FP - SmartFunctionsAiAxiosParamCreator
3675
+ /**
3676
+ * Resolves the active LLM provider configuration for the given workspace.
3677
+ * @summary Get active LLM configuration for this workspace
3678
+ * @param {string} workspaceId
3679
+ * @param {*} [options] Override http request option.
3680
+ * @param {Configuration} [configuration] Optional configuration.
3681
+ * @throws {RequiredError}
3682
+ */
3683
+ export async function SmartFunctionsAiAxiosParamCreator_ResolveLlmProviders(workspaceId, options = {}, configuration) {
3684
+ // verify required parameter 'workspaceId' is not null or undefined
3685
+ assertParamExists('resolveLlmProviders', 'workspaceId', workspaceId);
3686
+ const localVarPath = `/api/v1/actions/workspaces/{workspace_id}/ai/resolveLlmProviders`
3687
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
3688
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3689
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3690
+ let baseOptions;
3691
+ if (configuration) {
3692
+ baseOptions = configuration.baseOptions;
3693
+ }
3694
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3695
+ const localVarHeaderParameter = {};
3696
+ const localVarQueryParameter = {};
3697
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3698
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
3699
+ localVarRequestOptions.headers = {
3700
+ ...localVarHeaderParameter,
3701
+ ...headersFromBaseOptions,
3702
+ ...options.headers,
3703
+ };
3704
+ return {
3705
+ url: toPathString(localVarUrlObj),
3706
+ options: localVarRequestOptions,
3707
+ };
3708
+ }
3709
+ // SmartFunctionsAi FP - SmartFunctionsAiAxiosParamCreator
3710
+ /**
3711
+ * Resolves the active LLM provider configuration for the given workspace.
3712
+ * @summary Get active LLM configuration for this workspace
3713
+ * @param {string} workspaceId
3714
+ * @param {*} [options] Override http request option.
3715
+ * @param {Configuration} [configuration] Optional configuration.
3716
+ * @throws {RequiredError}
3717
+ */
3718
+ export async function SmartFunctionsAiAxiosParamCreator_ResolveLlmProvidersV2(workspaceId, options = {}, configuration) {
3719
+ // verify required parameter 'workspaceId' is not null or undefined
3720
+ assertParamExists('resolveLlmProvidersV2', 'workspaceId', workspaceId);
3721
+ const localVarPath = `/api/v1/ai/workspaces/{workspace_id}/resolveLlmProviders`
3722
+ .replace(`{${"workspace_id"}}`, encodeURIComponent(String(workspaceId)));
3723
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3724
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3725
+ let baseOptions;
3726
+ if (configuration) {
3727
+ baseOptions = configuration.baseOptions;
3728
+ }
3729
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3730
+ const localVarHeaderParameter = {};
3731
+ const localVarQueryParameter = {};
3732
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3733
+ const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
3734
+ localVarRequestOptions.headers = {
3735
+ ...localVarHeaderParameter,
3736
+ ...headersFromBaseOptions,
3737
+ ...options.headers,
3738
+ };
3739
+ return {
3740
+ url: toPathString(localVarUrlObj),
3741
+ options: localVarRequestOptions,
3742
+ };
3743
+ }
3744
+ // SmartFunctionsAi FP - SmartFunctionsAiAxiosParamCreator
3665
3745
  /**
3666
3746
  * (BETA) Uses similarity (e.g. cosine distance) search to find top X most similar metadata objects.
3667
3747
  * @summary (BETA) Semantic Search in Metadata
@@ -3727,6 +3807,36 @@ export async function SmartFunctionsAi_AiSearch(axios, basePath, requestParamete
3727
3807
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
3728
3808
  }
3729
3809
  // SmartFunctionsAi Api FP
3810
+ /**
3811
+ * Resolves the active LLM provider configuration for the given workspace.
3812
+ * @summary Get active LLM configuration for this workspace
3813
+ * @param {AxiosInstance} axios Axios instance.
3814
+ * @param {string} basePath Base path.
3815
+ * @param {SmartFunctionsAiResolveLlmProvidersRequest} requestParameters Request parameters.
3816
+ * @param {*} [options] Override http request option.
3817
+ * @param {Configuration} [configuration] Optional configuration.
3818
+ * @throws {RequiredError}
3819
+ */
3820
+ export async function SmartFunctionsAi_ResolveLlmProviders(axios, basePath, requestParameters, options, configuration) {
3821
+ const localVarAxiosArgs = await SmartFunctionsAiAxiosParamCreator_ResolveLlmProviders(requestParameters.workspaceId, options || {}, configuration);
3822
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
3823
+ }
3824
+ // SmartFunctionsAi Api FP
3825
+ /**
3826
+ * Resolves the active LLM provider configuration for the given workspace.
3827
+ * @summary Get active LLM configuration for this workspace
3828
+ * @param {AxiosInstance} axios Axios instance.
3829
+ * @param {string} basePath Base path.
3830
+ * @param {SmartFunctionsAiResolveLlmProvidersV2Request} requestParameters Request parameters.
3831
+ * @param {*} [options] Override http request option.
3832
+ * @param {Configuration} [configuration] Optional configuration.
3833
+ * @throws {RequiredError}
3834
+ */
3835
+ export async function SmartFunctionsAi_ResolveLlmProvidersV2(axios, basePath, requestParameters, options, configuration) {
3836
+ const localVarAxiosArgs = await SmartFunctionsAiAxiosParamCreator_ResolveLlmProvidersV2(requestParameters.workspaceId, options || {}, configuration);
3837
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
3838
+ }
3839
+ // SmartFunctionsAi Api FP
3730
3840
  /**
3731
3841
  * (BETA) Uses similarity (e.g. cosine distance) search to find top X most similar metadata objects.
3732
3842
  * @summary (BETA) Semantic Search in Metadata
@@ -3760,6 +3870,29 @@ export class SmartFunctionsAi extends BaseAPI {
3760
3870
  aiSearch(requestParameters, options) {
3761
3871
  return SmartFunctionsAi_AiSearch(this.axios, this.basePath, requestParameters, options, this.configuration);
3762
3872
  }
3873
+ /**
3874
+ * Resolves the active LLM provider configuration for the given workspace.
3875
+ * @summary Get active LLM configuration for this workspace
3876
+ * @param {SmartFunctionsAiResolveLlmProvidersRequest} requestParameters Request parameters.
3877
+ * @param {*} [options] Override http request option.
3878
+ * @deprecated
3879
+ * @throws {RequiredError}
3880
+ * @memberof SmartFunctionsAi
3881
+ */
3882
+ resolveLlmProviders(requestParameters, options) {
3883
+ return SmartFunctionsAi_ResolveLlmProviders(this.axios, this.basePath, requestParameters, options, this.configuration);
3884
+ }
3885
+ /**
3886
+ * Resolves the active LLM provider configuration for the given workspace.
3887
+ * @summary Get active LLM configuration for this workspace
3888
+ * @param {SmartFunctionsAiResolveLlmProvidersV2Request} requestParameters Request parameters.
3889
+ * @param {*} [options] Override http request option.
3890
+ * @throws {RequiredError}
3891
+ * @memberof SmartFunctionsAi
3892
+ */
3893
+ resolveLlmProvidersV2(requestParameters, options) {
3894
+ return SmartFunctionsAi_ResolveLlmProvidersV2(this.axios, this.basePath, requestParameters, options, this.configuration);
3895
+ }
3763
3896
  /**
3764
3897
  * (BETA) Uses similarity (e.g. cosine distance) search to find top X most similar metadata objects.
3765
3898
  * @summary (BETA) Semantic Search in Metadata