qovery-typescript-axios 1.1.985 → 1.1.987

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts CHANGED
@@ -20271,6 +20271,44 @@ export interface ListTfVarsFilesFromGitRepo200Response {
20271
20271
  */
20272
20272
  'results'?: Array<TfVarsFileResponse>;
20273
20273
  }
20274
+ /**
20275
+ *
20276
+ * @export
20277
+ * @interface LlmProviderModelResponse
20278
+ */
20279
+ export interface LlmProviderModelResponse {
20280
+ /**
20281
+ * Anthropic model id, or Bedrock inference profile id
20282
+ * @type {string}
20283
+ * @memberof LlmProviderModelResponse
20284
+ */
20285
+ 'id': string;
20286
+ /**
20287
+ *
20288
+ * @type {string}
20289
+ * @memberof LlmProviderModelResponse
20290
+ */
20291
+ 'display_name': string;
20292
+ /**
20293
+ *
20294
+ * @type {string}
20295
+ * @memberof LlmProviderModelResponse
20296
+ */
20297
+ 'created_at'?: string | null;
20298
+ }
20299
+ /**
20300
+ *
20301
+ * @export
20302
+ * @interface LlmProviderModelResponseList
20303
+ */
20304
+ export interface LlmProviderModelResponseList {
20305
+ /**
20306
+ *
20307
+ * @type {Array<LlmProviderModelResponse>}
20308
+ * @memberof LlmProviderModelResponseList
20309
+ */
20310
+ 'results': Array<LlmProviderModelResponse>;
20311
+ }
20274
20312
  /**
20275
20313
  *
20276
20314
  * @export
@@ -20307,6 +20345,12 @@ export interface LlmProviderRequest {
20307
20345
  * @memberof LlmProviderRequest
20308
20346
  */
20309
20347
  'scope'?: LlmProviderScope;
20348
+ /**
20349
+ * On edit, omitting it or sending null clears the stored region. This differs from credential, where a blank value keeps the stored one. AWS region the Bedrock client calls, for example us-east-1 or eu-west-1; model availability differs by region. Only allowed for a BEDROCK provider. Any sent string, blank included, must match the pattern. Null keeps the engine default region.
20350
+ * @type {string}
20351
+ * @memberof LlmProviderRequest
20352
+ */
20353
+ 'region'?: string | null;
20310
20354
  }
20311
20355
 
20312
20356
 
@@ -20376,6 +20420,12 @@ export interface LlmProviderResponse {
20376
20420
  * @memberof LlmProviderResponse
20377
20421
  */
20378
20422
  'owner_name'?: string | null;
20423
+ /**
20424
+ * AWS region of a BEDROCK provider. Null when unset or for CLAUDE.
20425
+ * @type {string}
20426
+ * @memberof LlmProviderResponse
20427
+ */
20428
+ 'region'?: string | null;
20379
20429
  }
20380
20430
 
20381
20431
 
@@ -65786,6 +65836,47 @@ export const LLMProvidersApiAxiosParamCreator = function (configuration?: Config
65786
65836
 
65787
65837
 
65788
65838
 
65839
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
65840
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
65841
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
65842
+
65843
+ return {
65844
+ url: toPathString(localVarUrlObj),
65845
+ options: localVarRequestOptions,
65846
+ };
65847
+ },
65848
+ /**
65849
+ * List the models the provider\'s stored credential can reach, fetched live from the provider. CLAUDE lists Anthropic models; BEDROCK lists Anthropic inference profiles in us-east-1. The credential is never returned. A USER provider can only be listed by its owner.
65850
+ * @summary List the models of an LLM provider
65851
+ * @param {string} llmProviderId LLM Provider ID
65852
+ * @param {*} [options] Override http request option.
65853
+ * @throws {RequiredError}
65854
+ */
65855
+ listLlmProviderModels: async (llmProviderId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
65856
+ // verify required parameter 'llmProviderId' is not null or undefined
65857
+ assertParamExists('listLlmProviderModels', 'llmProviderId', llmProviderId)
65858
+ const localVarPath = `/llmProvider/{llmProviderId}/models`
65859
+ .replace(`{${"llmProviderId"}}`, encodeURIComponent(String(llmProviderId)));
65860
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
65861
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
65862
+ let baseOptions;
65863
+ if (configuration) {
65864
+ baseOptions = configuration.baseOptions;
65865
+ }
65866
+
65867
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
65868
+ const localVarHeaderParameter = {} as any;
65869
+ const localVarQueryParameter = {} as any;
65870
+
65871
+ // authentication ApiKeyAuth required
65872
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
65873
+
65874
+ // authentication bearerAuth required
65875
+ // http bearer authentication required
65876
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
65877
+
65878
+
65879
+
65789
65880
  setSearchParams(localVarUrlObj, localVarQueryParameter);
65790
65881
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
65791
65882
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -65900,6 +65991,19 @@ export const LLMProvidersApiFp = function(configuration?: Configuration) {
65900
65991
  const localVarOperationServerBasePath = operationServerMap['LLMProvidersApi.getLlmProvider']?.[localVarOperationServerIndex]?.url;
65901
65992
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
65902
65993
  },
65994
+ /**
65995
+ * List the models the provider\'s stored credential can reach, fetched live from the provider. CLAUDE lists Anthropic models; BEDROCK lists Anthropic inference profiles in us-east-1. The credential is never returned. A USER provider can only be listed by its owner.
65996
+ * @summary List the models of an LLM provider
65997
+ * @param {string} llmProviderId LLM Provider ID
65998
+ * @param {*} [options] Override http request option.
65999
+ * @throws {RequiredError}
66000
+ */
66001
+ async listLlmProviderModels(llmProviderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LlmProviderModelResponseList>> {
66002
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listLlmProviderModels(llmProviderId, options);
66003
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
66004
+ const localVarOperationServerBasePath = operationServerMap['LLMProvidersApi.listLlmProviderModels']?.[localVarOperationServerIndex]?.url;
66005
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
66006
+ },
65903
66007
  /**
65904
66008
  * List the LLM providers configured for an organization. Credentials are never returned.
65905
66009
  * @summary List organization LLM providers
@@ -65965,6 +66069,16 @@ export const LLMProvidersApiFactory = function (configuration?: Configuration, b
65965
66069
  getLlmProvider(llmProviderId: string, options?: RawAxiosRequestConfig): AxiosPromise<LlmProviderResponse> {
65966
66070
  return localVarFp.getLlmProvider(llmProviderId, options).then((request) => request(axios, basePath));
65967
66071
  },
66072
+ /**
66073
+ * List the models the provider\'s stored credential can reach, fetched live from the provider. CLAUDE lists Anthropic models; BEDROCK lists Anthropic inference profiles in us-east-1. The credential is never returned. A USER provider can only be listed by its owner.
66074
+ * @summary List the models of an LLM provider
66075
+ * @param {string} llmProviderId LLM Provider ID
66076
+ * @param {*} [options] Override http request option.
66077
+ * @throws {RequiredError}
66078
+ */
66079
+ listLlmProviderModels(llmProviderId: string, options?: RawAxiosRequestConfig): AxiosPromise<LlmProviderModelResponseList> {
66080
+ return localVarFp.listLlmProviderModels(llmProviderId, options).then((request) => request(axios, basePath));
66081
+ },
65968
66082
  /**
65969
66083
  * List the LLM providers configured for an organization. Credentials are never returned.
65970
66084
  * @summary List organization LLM providers
@@ -66035,6 +66149,18 @@ export class LLMProvidersApi extends BaseAPI {
66035
66149
  return LLMProvidersApiFp(this.configuration).getLlmProvider(llmProviderId, options).then((request) => request(this.axios, this.basePath));
66036
66150
  }
66037
66151
 
66152
+ /**
66153
+ * List the models the provider\'s stored credential can reach, fetched live from the provider. CLAUDE lists Anthropic models; BEDROCK lists Anthropic inference profiles in us-east-1. The credential is never returned. A USER provider can only be listed by its owner.
66154
+ * @summary List the models of an LLM provider
66155
+ * @param {string} llmProviderId LLM Provider ID
66156
+ * @param {*} [options] Override http request option.
66157
+ * @throws {RequiredError}
66158
+ * @memberof LLMProvidersApi
66159
+ */
66160
+ public listLlmProviderModels(llmProviderId: string, options?: RawAxiosRequestConfig) {
66161
+ return LLMProvidersApiFp(this.configuration).listLlmProviderModels(llmProviderId, options).then((request) => request(this.axios, this.basePath));
66162
+ }
66163
+
66038
66164
  /**
66039
66165
  * List the LLM providers configured for an organization. Credentials are never returned.
66040
66166
  * @summary List organization LLM providers
package/dist/api.d.ts CHANGED
@@ -19712,6 +19712,44 @@ export interface ListTfVarsFilesFromGitRepo200Response {
19712
19712
  */
19713
19713
  'results'?: Array<TfVarsFileResponse>;
19714
19714
  }
19715
+ /**
19716
+ *
19717
+ * @export
19718
+ * @interface LlmProviderModelResponse
19719
+ */
19720
+ export interface LlmProviderModelResponse {
19721
+ /**
19722
+ * Anthropic model id, or Bedrock inference profile id
19723
+ * @type {string}
19724
+ * @memberof LlmProviderModelResponse
19725
+ */
19726
+ 'id': string;
19727
+ /**
19728
+ *
19729
+ * @type {string}
19730
+ * @memberof LlmProviderModelResponse
19731
+ */
19732
+ 'display_name': string;
19733
+ /**
19734
+ *
19735
+ * @type {string}
19736
+ * @memberof LlmProviderModelResponse
19737
+ */
19738
+ 'created_at'?: string | null;
19739
+ }
19740
+ /**
19741
+ *
19742
+ * @export
19743
+ * @interface LlmProviderModelResponseList
19744
+ */
19745
+ export interface LlmProviderModelResponseList {
19746
+ /**
19747
+ *
19748
+ * @type {Array<LlmProviderModelResponse>}
19749
+ * @memberof LlmProviderModelResponseList
19750
+ */
19751
+ 'results': Array<LlmProviderModelResponse>;
19752
+ }
19715
19753
  /**
19716
19754
  *
19717
19755
  * @export
@@ -19748,6 +19786,12 @@ export interface LlmProviderRequest {
19748
19786
  * @memberof LlmProviderRequest
19749
19787
  */
19750
19788
  'scope'?: LlmProviderScope;
19789
+ /**
19790
+ * On edit, omitting it or sending null clears the stored region. This differs from credential, where a blank value keeps the stored one. AWS region the Bedrock client calls, for example us-east-1 or eu-west-1; model availability differs by region. Only allowed for a BEDROCK provider. Any sent string, blank included, must match the pattern. Null keeps the engine default region.
19791
+ * @type {string}
19792
+ * @memberof LlmProviderRequest
19793
+ */
19794
+ 'region'?: string | null;
19751
19795
  }
19752
19796
  /**
19753
19797
  *
@@ -19815,6 +19859,12 @@ export interface LlmProviderResponse {
19815
19859
  * @memberof LlmProviderResponse
19816
19860
  */
19817
19861
  'owner_name'?: string | null;
19862
+ /**
19863
+ * AWS region of a BEDROCK provider. Null when unset or for CLAUDE.
19864
+ * @type {string}
19865
+ * @memberof LlmProviderResponse
19866
+ */
19867
+ 'region'?: string | null;
19818
19868
  }
19819
19869
  /**
19820
19870
  *
@@ -44795,6 +44845,14 @@ export declare const LLMProvidersApiAxiosParamCreator: (configuration?: Configur
44795
44845
  * @throws {RequiredError}
44796
44846
  */
44797
44847
  getLlmProvider: (llmProviderId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
44848
+ /**
44849
+ * List the models the provider\'s stored credential can reach, fetched live from the provider. CLAUDE lists Anthropic models; BEDROCK lists Anthropic inference profiles in us-east-1. The credential is never returned. A USER provider can only be listed by its owner.
44850
+ * @summary List the models of an LLM provider
44851
+ * @param {string} llmProviderId LLM Provider ID
44852
+ * @param {*} [options] Override http request option.
44853
+ * @throws {RequiredError}
44854
+ */
44855
+ listLlmProviderModels: (llmProviderId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
44798
44856
  /**
44799
44857
  * List the LLM providers configured for an organization. Credentials are never returned.
44800
44858
  * @summary List organization LLM providers
@@ -44843,6 +44901,14 @@ export declare const LLMProvidersApiFp: (configuration?: Configuration) => {
44843
44901
  * @throws {RequiredError}
44844
44902
  */
44845
44903
  getLlmProvider(llmProviderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LlmProviderResponse>>;
44904
+ /**
44905
+ * List the models the provider\'s stored credential can reach, fetched live from the provider. CLAUDE lists Anthropic models; BEDROCK lists Anthropic inference profiles in us-east-1. The credential is never returned. A USER provider can only be listed by its owner.
44906
+ * @summary List the models of an LLM provider
44907
+ * @param {string} llmProviderId LLM Provider ID
44908
+ * @param {*} [options] Override http request option.
44909
+ * @throws {RequiredError}
44910
+ */
44911
+ listLlmProviderModels(llmProviderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LlmProviderModelResponseList>>;
44846
44912
  /**
44847
44913
  * List the LLM providers configured for an organization. Credentials are never returned.
44848
44914
  * @summary List organization LLM providers
@@ -44891,6 +44957,14 @@ export declare const LLMProvidersApiFactory: (configuration?: Configuration, bas
44891
44957
  * @throws {RequiredError}
44892
44958
  */
44893
44959
  getLlmProvider(llmProviderId: string, options?: RawAxiosRequestConfig): AxiosPromise<LlmProviderResponse>;
44960
+ /**
44961
+ * List the models the provider\'s stored credential can reach, fetched live from the provider. CLAUDE lists Anthropic models; BEDROCK lists Anthropic inference profiles in us-east-1. The credential is never returned. A USER provider can only be listed by its owner.
44962
+ * @summary List the models of an LLM provider
44963
+ * @param {string} llmProviderId LLM Provider ID
44964
+ * @param {*} [options] Override http request option.
44965
+ * @throws {RequiredError}
44966
+ */
44967
+ listLlmProviderModels(llmProviderId: string, options?: RawAxiosRequestConfig): AxiosPromise<LlmProviderModelResponseList>;
44894
44968
  /**
44895
44969
  * List the LLM providers configured for an organization. Credentials are never returned.
44896
44970
  * @summary List organization LLM providers
@@ -44945,6 +45019,15 @@ export declare class LLMProvidersApi extends BaseAPI {
44945
45019
  * @memberof LLMProvidersApi
44946
45020
  */
44947
45021
  getLlmProvider(llmProviderId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LlmProviderResponse, any, {}>>;
45022
+ /**
45023
+ * List the models the provider\'s stored credential can reach, fetched live from the provider. CLAUDE lists Anthropic models; BEDROCK lists Anthropic inference profiles in us-east-1. The credential is never returned. A USER provider can only be listed by its owner.
45024
+ * @summary List the models of an LLM provider
45025
+ * @param {string} llmProviderId LLM Provider ID
45026
+ * @param {*} [options] Override http request option.
45027
+ * @throws {RequiredError}
45028
+ * @memberof LLMProvidersApi
45029
+ */
45030
+ listLlmProviderModels(llmProviderId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LlmProviderModelResponseList, any, {}>>;
44948
45031
  /**
44949
45032
  * List the LLM providers configured for an organization. Credentials are never returned.
44950
45033
  * @summary List organization LLM providers
package/dist/api.js CHANGED
@@ -36447,6 +36447,40 @@ const LLMProvidersApiAxiosParamCreator = function (configuration) {
36447
36447
  options: localVarRequestOptions,
36448
36448
  };
36449
36449
  }),
36450
+ /**
36451
+ * List the models the provider\'s stored credential can reach, fetched live from the provider. CLAUDE lists Anthropic models; BEDROCK lists Anthropic inference profiles in us-east-1. The credential is never returned. A USER provider can only be listed by its owner.
36452
+ * @summary List the models of an LLM provider
36453
+ * @param {string} llmProviderId LLM Provider ID
36454
+ * @param {*} [options] Override http request option.
36455
+ * @throws {RequiredError}
36456
+ */
36457
+ listLlmProviderModels: (llmProviderId_1, ...args_1) => __awaiter(this, [llmProviderId_1, ...args_1], void 0, function* (llmProviderId, options = {}) {
36458
+ // verify required parameter 'llmProviderId' is not null or undefined
36459
+ (0, common_1.assertParamExists)('listLlmProviderModels', 'llmProviderId', llmProviderId);
36460
+ const localVarPath = `/llmProvider/{llmProviderId}/models`
36461
+ .replace(`{${"llmProviderId"}}`, encodeURIComponent(String(llmProviderId)));
36462
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
36463
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
36464
+ let baseOptions;
36465
+ if (configuration) {
36466
+ baseOptions = configuration.baseOptions;
36467
+ }
36468
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
36469
+ const localVarHeaderParameter = {};
36470
+ const localVarQueryParameter = {};
36471
+ // authentication ApiKeyAuth required
36472
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
36473
+ // authentication bearerAuth required
36474
+ // http bearer authentication required
36475
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
36476
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
36477
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
36478
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
36479
+ return {
36480
+ url: (0, common_1.toPathString)(localVarUrlObj),
36481
+ options: localVarRequestOptions,
36482
+ };
36483
+ }),
36450
36484
  /**
36451
36485
  * List the LLM providers configured for an organization. Credentials are never returned.
36452
36486
  * @summary List organization LLM providers
@@ -36557,6 +36591,22 @@ const LLMProvidersApiFp = function (configuration) {
36557
36591
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36558
36592
  });
36559
36593
  },
36594
+ /**
36595
+ * List the models the provider\'s stored credential can reach, fetched live from the provider. CLAUDE lists Anthropic models; BEDROCK lists Anthropic inference profiles in us-east-1. The credential is never returned. A USER provider can only be listed by its owner.
36596
+ * @summary List the models of an LLM provider
36597
+ * @param {string} llmProviderId LLM Provider ID
36598
+ * @param {*} [options] Override http request option.
36599
+ * @throws {RequiredError}
36600
+ */
36601
+ listLlmProviderModels(llmProviderId, options) {
36602
+ return __awaiter(this, void 0, void 0, function* () {
36603
+ var _a, _b, _c;
36604
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listLlmProviderModels(llmProviderId, options);
36605
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
36606
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['LLMProvidersApi.listLlmProviderModels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
36607
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36608
+ });
36609
+ },
36560
36610
  /**
36561
36611
  * List the LLM providers configured for an organization. Credentials are never returned.
36562
36612
  * @summary List organization LLM providers
@@ -36625,6 +36675,16 @@ const LLMProvidersApiFactory = function (configuration, basePath, axios) {
36625
36675
  getLlmProvider(llmProviderId, options) {
36626
36676
  return localVarFp.getLlmProvider(llmProviderId, options).then((request) => request(axios, basePath));
36627
36677
  },
36678
+ /**
36679
+ * List the models the provider\'s stored credential can reach, fetched live from the provider. CLAUDE lists Anthropic models; BEDROCK lists Anthropic inference profiles in us-east-1. The credential is never returned. A USER provider can only be listed by its owner.
36680
+ * @summary List the models of an LLM provider
36681
+ * @param {string} llmProviderId LLM Provider ID
36682
+ * @param {*} [options] Override http request option.
36683
+ * @throws {RequiredError}
36684
+ */
36685
+ listLlmProviderModels(llmProviderId, options) {
36686
+ return localVarFp.listLlmProviderModels(llmProviderId, options).then((request) => request(axios, basePath));
36687
+ },
36628
36688
  /**
36629
36689
  * List the LLM providers configured for an organization. Credentials are never returned.
36630
36690
  * @summary List organization LLM providers
@@ -36691,6 +36751,17 @@ class LLMProvidersApi extends base_1.BaseAPI {
36691
36751
  getLlmProvider(llmProviderId, options) {
36692
36752
  return (0, exports.LLMProvidersApiFp)(this.configuration).getLlmProvider(llmProviderId, options).then((request) => request(this.axios, this.basePath));
36693
36753
  }
36754
+ /**
36755
+ * List the models the provider\'s stored credential can reach, fetched live from the provider. CLAUDE lists Anthropic models; BEDROCK lists Anthropic inference profiles in us-east-1. The credential is never returned. A USER provider can only be listed by its owner.
36756
+ * @summary List the models of an LLM provider
36757
+ * @param {string} llmProviderId LLM Provider ID
36758
+ * @param {*} [options] Override http request option.
36759
+ * @throws {RequiredError}
36760
+ * @memberof LLMProvidersApi
36761
+ */
36762
+ listLlmProviderModels(llmProviderId, options) {
36763
+ return (0, exports.LLMProvidersApiFp)(this.configuration).listLlmProviderModels(llmProviderId, options).then((request) => request(this.axios, this.basePath));
36764
+ }
36694
36765
  /**
36695
36766
  * List the LLM providers configured for an organization. Credentials are never returned.
36696
36767
  * @summary List organization LLM providers
package/dist/esm/api.d.ts CHANGED
@@ -19712,6 +19712,44 @@ export interface ListTfVarsFilesFromGitRepo200Response {
19712
19712
  */
19713
19713
  'results'?: Array<TfVarsFileResponse>;
19714
19714
  }
19715
+ /**
19716
+ *
19717
+ * @export
19718
+ * @interface LlmProviderModelResponse
19719
+ */
19720
+ export interface LlmProviderModelResponse {
19721
+ /**
19722
+ * Anthropic model id, or Bedrock inference profile id
19723
+ * @type {string}
19724
+ * @memberof LlmProviderModelResponse
19725
+ */
19726
+ 'id': string;
19727
+ /**
19728
+ *
19729
+ * @type {string}
19730
+ * @memberof LlmProviderModelResponse
19731
+ */
19732
+ 'display_name': string;
19733
+ /**
19734
+ *
19735
+ * @type {string}
19736
+ * @memberof LlmProviderModelResponse
19737
+ */
19738
+ 'created_at'?: string | null;
19739
+ }
19740
+ /**
19741
+ *
19742
+ * @export
19743
+ * @interface LlmProviderModelResponseList
19744
+ */
19745
+ export interface LlmProviderModelResponseList {
19746
+ /**
19747
+ *
19748
+ * @type {Array<LlmProviderModelResponse>}
19749
+ * @memberof LlmProviderModelResponseList
19750
+ */
19751
+ 'results': Array<LlmProviderModelResponse>;
19752
+ }
19715
19753
  /**
19716
19754
  *
19717
19755
  * @export
@@ -19748,6 +19786,12 @@ export interface LlmProviderRequest {
19748
19786
  * @memberof LlmProviderRequest
19749
19787
  */
19750
19788
  'scope'?: LlmProviderScope;
19789
+ /**
19790
+ * On edit, omitting it or sending null clears the stored region. This differs from credential, where a blank value keeps the stored one. AWS region the Bedrock client calls, for example us-east-1 or eu-west-1; model availability differs by region. Only allowed for a BEDROCK provider. Any sent string, blank included, must match the pattern. Null keeps the engine default region.
19791
+ * @type {string}
19792
+ * @memberof LlmProviderRequest
19793
+ */
19794
+ 'region'?: string | null;
19751
19795
  }
19752
19796
  /**
19753
19797
  *
@@ -19815,6 +19859,12 @@ export interface LlmProviderResponse {
19815
19859
  * @memberof LlmProviderResponse
19816
19860
  */
19817
19861
  'owner_name'?: string | null;
19862
+ /**
19863
+ * AWS region of a BEDROCK provider. Null when unset or for CLAUDE.
19864
+ * @type {string}
19865
+ * @memberof LlmProviderResponse
19866
+ */
19867
+ 'region'?: string | null;
19818
19868
  }
19819
19869
  /**
19820
19870
  *
@@ -44795,6 +44845,14 @@ export declare const LLMProvidersApiAxiosParamCreator: (configuration?: Configur
44795
44845
  * @throws {RequiredError}
44796
44846
  */
44797
44847
  getLlmProvider: (llmProviderId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
44848
+ /**
44849
+ * List the models the provider\'s stored credential can reach, fetched live from the provider. CLAUDE lists Anthropic models; BEDROCK lists Anthropic inference profiles in us-east-1. The credential is never returned. A USER provider can only be listed by its owner.
44850
+ * @summary List the models of an LLM provider
44851
+ * @param {string} llmProviderId LLM Provider ID
44852
+ * @param {*} [options] Override http request option.
44853
+ * @throws {RequiredError}
44854
+ */
44855
+ listLlmProviderModels: (llmProviderId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
44798
44856
  /**
44799
44857
  * List the LLM providers configured for an organization. Credentials are never returned.
44800
44858
  * @summary List organization LLM providers
@@ -44843,6 +44901,14 @@ export declare const LLMProvidersApiFp: (configuration?: Configuration) => {
44843
44901
  * @throws {RequiredError}
44844
44902
  */
44845
44903
  getLlmProvider(llmProviderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LlmProviderResponse>>;
44904
+ /**
44905
+ * List the models the provider\'s stored credential can reach, fetched live from the provider. CLAUDE lists Anthropic models; BEDROCK lists Anthropic inference profiles in us-east-1. The credential is never returned. A USER provider can only be listed by its owner.
44906
+ * @summary List the models of an LLM provider
44907
+ * @param {string} llmProviderId LLM Provider ID
44908
+ * @param {*} [options] Override http request option.
44909
+ * @throws {RequiredError}
44910
+ */
44911
+ listLlmProviderModels(llmProviderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LlmProviderModelResponseList>>;
44846
44912
  /**
44847
44913
  * List the LLM providers configured for an organization. Credentials are never returned.
44848
44914
  * @summary List organization LLM providers
@@ -44891,6 +44957,14 @@ export declare const LLMProvidersApiFactory: (configuration?: Configuration, bas
44891
44957
  * @throws {RequiredError}
44892
44958
  */
44893
44959
  getLlmProvider(llmProviderId: string, options?: RawAxiosRequestConfig): AxiosPromise<LlmProviderResponse>;
44960
+ /**
44961
+ * List the models the provider\'s stored credential can reach, fetched live from the provider. CLAUDE lists Anthropic models; BEDROCK lists Anthropic inference profiles in us-east-1. The credential is never returned. A USER provider can only be listed by its owner.
44962
+ * @summary List the models of an LLM provider
44963
+ * @param {string} llmProviderId LLM Provider ID
44964
+ * @param {*} [options] Override http request option.
44965
+ * @throws {RequiredError}
44966
+ */
44967
+ listLlmProviderModels(llmProviderId: string, options?: RawAxiosRequestConfig): AxiosPromise<LlmProviderModelResponseList>;
44894
44968
  /**
44895
44969
  * List the LLM providers configured for an organization. Credentials are never returned.
44896
44970
  * @summary List organization LLM providers
@@ -44945,6 +45019,15 @@ export declare class LLMProvidersApi extends BaseAPI {
44945
45019
  * @memberof LLMProvidersApi
44946
45020
  */
44947
45021
  getLlmProvider(llmProviderId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LlmProviderResponse, any, {}>>;
45022
+ /**
45023
+ * List the models the provider\'s stored credential can reach, fetched live from the provider. CLAUDE lists Anthropic models; BEDROCK lists Anthropic inference profiles in us-east-1. The credential is never returned. A USER provider can only be listed by its owner.
45024
+ * @summary List the models of an LLM provider
45025
+ * @param {string} llmProviderId LLM Provider ID
45026
+ * @param {*} [options] Override http request option.
45027
+ * @throws {RequiredError}
45028
+ * @memberof LLMProvidersApi
45029
+ */
45030
+ listLlmProviderModels(llmProviderId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LlmProviderModelResponseList, any, {}>>;
44948
45031
  /**
44949
45032
  * List the LLM providers configured for an organization. Credentials are never returned.
44950
45033
  * @summary List organization LLM providers
package/dist/esm/api.js CHANGED
@@ -36148,6 +36148,40 @@ export const LLMProvidersApiAxiosParamCreator = function (configuration) {
36148
36148
  options: localVarRequestOptions,
36149
36149
  };
36150
36150
  }),
36151
+ /**
36152
+ * List the models the provider\'s stored credential can reach, fetched live from the provider. CLAUDE lists Anthropic models; BEDROCK lists Anthropic inference profiles in us-east-1. The credential is never returned. A USER provider can only be listed by its owner.
36153
+ * @summary List the models of an LLM provider
36154
+ * @param {string} llmProviderId LLM Provider ID
36155
+ * @param {*} [options] Override http request option.
36156
+ * @throws {RequiredError}
36157
+ */
36158
+ listLlmProviderModels: (llmProviderId_1, ...args_1) => __awaiter(this, [llmProviderId_1, ...args_1], void 0, function* (llmProviderId, options = {}) {
36159
+ // verify required parameter 'llmProviderId' is not null or undefined
36160
+ assertParamExists('listLlmProviderModels', 'llmProviderId', llmProviderId);
36161
+ const localVarPath = `/llmProvider/{llmProviderId}/models`
36162
+ .replace(`{${"llmProviderId"}}`, encodeURIComponent(String(llmProviderId)));
36163
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
36164
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
36165
+ let baseOptions;
36166
+ if (configuration) {
36167
+ baseOptions = configuration.baseOptions;
36168
+ }
36169
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
36170
+ const localVarHeaderParameter = {};
36171
+ const localVarQueryParameter = {};
36172
+ // authentication ApiKeyAuth required
36173
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
36174
+ // authentication bearerAuth required
36175
+ // http bearer authentication required
36176
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
36177
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
36178
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
36179
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
36180
+ return {
36181
+ url: toPathString(localVarUrlObj),
36182
+ options: localVarRequestOptions,
36183
+ };
36184
+ }),
36151
36185
  /**
36152
36186
  * List the LLM providers configured for an organization. Credentials are never returned.
36153
36187
  * @summary List organization LLM providers
@@ -36257,6 +36291,22 @@ export const LLMProvidersApiFp = function (configuration) {
36257
36291
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36258
36292
  });
36259
36293
  },
36294
+ /**
36295
+ * List the models the provider\'s stored credential can reach, fetched live from the provider. CLAUDE lists Anthropic models; BEDROCK lists Anthropic inference profiles in us-east-1. The credential is never returned. A USER provider can only be listed by its owner.
36296
+ * @summary List the models of an LLM provider
36297
+ * @param {string} llmProviderId LLM Provider ID
36298
+ * @param {*} [options] Override http request option.
36299
+ * @throws {RequiredError}
36300
+ */
36301
+ listLlmProviderModels(llmProviderId, options) {
36302
+ return __awaiter(this, void 0, void 0, function* () {
36303
+ var _a, _b, _c;
36304
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listLlmProviderModels(llmProviderId, options);
36305
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
36306
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['LLMProvidersApi.listLlmProviderModels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
36307
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
36308
+ });
36309
+ },
36260
36310
  /**
36261
36311
  * List the LLM providers configured for an organization. Credentials are never returned.
36262
36312
  * @summary List organization LLM providers
@@ -36324,6 +36374,16 @@ export const LLMProvidersApiFactory = function (configuration, basePath, axios)
36324
36374
  getLlmProvider(llmProviderId, options) {
36325
36375
  return localVarFp.getLlmProvider(llmProviderId, options).then((request) => request(axios, basePath));
36326
36376
  },
36377
+ /**
36378
+ * List the models the provider\'s stored credential can reach, fetched live from the provider. CLAUDE lists Anthropic models; BEDROCK lists Anthropic inference profiles in us-east-1. The credential is never returned. A USER provider can only be listed by its owner.
36379
+ * @summary List the models of an LLM provider
36380
+ * @param {string} llmProviderId LLM Provider ID
36381
+ * @param {*} [options] Override http request option.
36382
+ * @throws {RequiredError}
36383
+ */
36384
+ listLlmProviderModels(llmProviderId, options) {
36385
+ return localVarFp.listLlmProviderModels(llmProviderId, options).then((request) => request(axios, basePath));
36386
+ },
36327
36387
  /**
36328
36388
  * List the LLM providers configured for an organization. Credentials are never returned.
36329
36389
  * @summary List organization LLM providers
@@ -36389,6 +36449,17 @@ export class LLMProvidersApi extends BaseAPI {
36389
36449
  getLlmProvider(llmProviderId, options) {
36390
36450
  return LLMProvidersApiFp(this.configuration).getLlmProvider(llmProviderId, options).then((request) => request(this.axios, this.basePath));
36391
36451
  }
36452
+ /**
36453
+ * List the models the provider\'s stored credential can reach, fetched live from the provider. CLAUDE lists Anthropic models; BEDROCK lists Anthropic inference profiles in us-east-1. The credential is never returned. A USER provider can only be listed by its owner.
36454
+ * @summary List the models of an LLM provider
36455
+ * @param {string} llmProviderId LLM Provider ID
36456
+ * @param {*} [options] Override http request option.
36457
+ * @throws {RequiredError}
36458
+ * @memberof LLMProvidersApi
36459
+ */
36460
+ listLlmProviderModels(llmProviderId, options) {
36461
+ return LLMProvidersApiFp(this.configuration).listLlmProviderModels(llmProviderId, options).then((request) => request(this.axios, this.basePath));
36462
+ }
36392
36463
  /**
36393
36464
  * List the LLM providers configured for an organization. Credentials are never returned.
36394
36465
  * @summary List organization LLM providers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-typescript-axios",
3
- "version": "v1.1.985",
3
+ "version": "v1.1.987",
4
4
  "description": "OpenAPI client for qovery-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {