qovery-typescript-axios 1.1.977 → 1.1.979
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 +598 -0
- package/dist/api.d.ts +348 -0
- package/dist/api.js +438 -11
- package/dist/esm/api.d.ts +348 -0
- package/dist/esm/api.js +423 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -214,6 +214,12 @@ export interface AgenticWorkflowModelRequest {
|
|
|
214
214
|
* @memberof AgenticWorkflowModelRequest
|
|
215
215
|
*/
|
|
216
216
|
'settings'?: string;
|
|
217
|
+
/**
|
|
218
|
+
* An existing LLM provider to take the credential from, instead of `api_key`. The two are mutually exclusive: a request setting both is rejected. The provider must belong to the workflow\'s organization, be one the caller may use, and match `type`.
|
|
219
|
+
* @type {string}
|
|
220
|
+
* @memberof AgenticWorkflowModelRequest
|
|
221
|
+
*/
|
|
222
|
+
'llm_provider_id'?: string | null;
|
|
217
223
|
}
|
|
218
224
|
|
|
219
225
|
|
|
@@ -235,6 +241,12 @@ export interface AgenticWorkflowModelResponse {
|
|
|
235
241
|
* @memberof AgenticWorkflowModelResponse
|
|
236
242
|
*/
|
|
237
243
|
'settings': string;
|
|
244
|
+
/**
|
|
245
|
+
* The LLM provider the workflow takes its credential from, or null when it carries its own `api_key`. Unlike `api_key` this is returned: it names a credential rather than carrying one.
|
|
246
|
+
* @type {string}
|
|
247
|
+
* @memberof AgenticWorkflowModelResponse
|
|
248
|
+
*/
|
|
249
|
+
'llm_provider_id'?: string | null;
|
|
238
250
|
}
|
|
239
251
|
|
|
240
252
|
|
|
@@ -20058,6 +20070,155 @@ export interface ListTfVarsFilesFromGitRepo200Response {
|
|
|
20058
20070
|
*/
|
|
20059
20071
|
'results'?: Array<TfVarsFileResponse>;
|
|
20060
20072
|
}
|
|
20073
|
+
/**
|
|
20074
|
+
*
|
|
20075
|
+
* @export
|
|
20076
|
+
* @interface LlmProviderRequest
|
|
20077
|
+
*/
|
|
20078
|
+
export interface LlmProviderRequest {
|
|
20079
|
+
/**
|
|
20080
|
+
* LLM provider name, unique per scope owner within the organization
|
|
20081
|
+
* @type {string}
|
|
20082
|
+
* @memberof LlmProviderRequest
|
|
20083
|
+
*/
|
|
20084
|
+
'name': string;
|
|
20085
|
+
/**
|
|
20086
|
+
*
|
|
20087
|
+
* @type {string}
|
|
20088
|
+
* @memberof LlmProviderRequest
|
|
20089
|
+
*/
|
|
20090
|
+
'description'?: string;
|
|
20091
|
+
/**
|
|
20092
|
+
*
|
|
20093
|
+
* @type {LlmProviderType}
|
|
20094
|
+
* @memberof LlmProviderRequest
|
|
20095
|
+
*/
|
|
20096
|
+
'type': LlmProviderType;
|
|
20097
|
+
/**
|
|
20098
|
+
* The provider credential. Encrypted at rest and never returned by the API. Blank means unchanged: on create no credential is stored, on edit the stored one is kept. Sending a nonblank value rotates it.
|
|
20099
|
+
* @type {string}
|
|
20100
|
+
* @memberof LlmProviderRequest
|
|
20101
|
+
*/
|
|
20102
|
+
'credential'?: string;
|
|
20103
|
+
/**
|
|
20104
|
+
* Cannot be changed after creation. On create, omitting it means ORGANIZATION, which requires the MANAGE_INFRASTRUCTURE permission; creating a USER provider requires CREATE_PROJECT. On edit, omitting it leaves the provider\'s scope unchanged, and stating a scope that differs from the provider\'s is refused with 400.
|
|
20105
|
+
* @type {LlmProviderScope}
|
|
20106
|
+
* @memberof LlmProviderRequest
|
|
20107
|
+
*/
|
|
20108
|
+
'scope'?: LlmProviderScope;
|
|
20109
|
+
}
|
|
20110
|
+
|
|
20111
|
+
|
|
20112
|
+
/**
|
|
20113
|
+
*
|
|
20114
|
+
* @export
|
|
20115
|
+
* @interface LlmProviderResponse
|
|
20116
|
+
*/
|
|
20117
|
+
export interface LlmProviderResponse {
|
|
20118
|
+
/**
|
|
20119
|
+
*
|
|
20120
|
+
* @type {string}
|
|
20121
|
+
* @memberof LlmProviderResponse
|
|
20122
|
+
*/
|
|
20123
|
+
'id': string;
|
|
20124
|
+
/**
|
|
20125
|
+
*
|
|
20126
|
+
* @type {string}
|
|
20127
|
+
* @memberof LlmProviderResponse
|
|
20128
|
+
*/
|
|
20129
|
+
'created_at': string;
|
|
20130
|
+
/**
|
|
20131
|
+
*
|
|
20132
|
+
* @type {string}
|
|
20133
|
+
* @memberof LlmProviderResponse
|
|
20134
|
+
*/
|
|
20135
|
+
'updated_at': string;
|
|
20136
|
+
/**
|
|
20137
|
+
*
|
|
20138
|
+
* @type {string}
|
|
20139
|
+
* @memberof LlmProviderResponse
|
|
20140
|
+
*/
|
|
20141
|
+
'name': string;
|
|
20142
|
+
/**
|
|
20143
|
+
*
|
|
20144
|
+
* @type {string}
|
|
20145
|
+
* @memberof LlmProviderResponse
|
|
20146
|
+
*/
|
|
20147
|
+
'description': string;
|
|
20148
|
+
/**
|
|
20149
|
+
*
|
|
20150
|
+
* @type {LlmProviderType}
|
|
20151
|
+
* @memberof LlmProviderResponse
|
|
20152
|
+
*/
|
|
20153
|
+
'type': LlmProviderType;
|
|
20154
|
+
/**
|
|
20155
|
+
* Whether a credential is stored. The credential itself is never returned.
|
|
20156
|
+
* @type {boolean}
|
|
20157
|
+
* @memberof LlmProviderResponse
|
|
20158
|
+
*/
|
|
20159
|
+
'has_credential': boolean;
|
|
20160
|
+
/**
|
|
20161
|
+
*
|
|
20162
|
+
* @type {LlmProviderScope}
|
|
20163
|
+
* @memberof LlmProviderResponse
|
|
20164
|
+
*/
|
|
20165
|
+
'scope': LlmProviderScope;
|
|
20166
|
+
/**
|
|
20167
|
+
* Identity of the owning member. Null for an ORGANIZATION provider.
|
|
20168
|
+
* @type {string}
|
|
20169
|
+
* @memberof LlmProviderResponse
|
|
20170
|
+
*/
|
|
20171
|
+
'owner_user_sub'?: string | null;
|
|
20172
|
+
/**
|
|
20173
|
+
* Display name of the owning member. Null for an ORGANIZATION provider.
|
|
20174
|
+
* @type {string}
|
|
20175
|
+
* @memberof LlmProviderResponse
|
|
20176
|
+
*/
|
|
20177
|
+
'owner_name'?: string | null;
|
|
20178
|
+
}
|
|
20179
|
+
|
|
20180
|
+
|
|
20181
|
+
/**
|
|
20182
|
+
*
|
|
20183
|
+
* @export
|
|
20184
|
+
* @interface LlmProviderResponseList
|
|
20185
|
+
*/
|
|
20186
|
+
export interface LlmProviderResponseList {
|
|
20187
|
+
/**
|
|
20188
|
+
*
|
|
20189
|
+
* @type {Array<LlmProviderResponse>}
|
|
20190
|
+
* @memberof LlmProviderResponseList
|
|
20191
|
+
*/
|
|
20192
|
+
'results': Array<LlmProviderResponse>;
|
|
20193
|
+
}
|
|
20194
|
+
/**
|
|
20195
|
+
* ORGANIZATION: usable by every member who can edit an agentic workflow. USER: personal to the member who created it; only that member can edit it.
|
|
20196
|
+
* @export
|
|
20197
|
+
* @enum {string}
|
|
20198
|
+
*/
|
|
20199
|
+
|
|
20200
|
+
export const LlmProviderScope = {
|
|
20201
|
+
ORGANIZATION: 'ORGANIZATION',
|
|
20202
|
+
USER: 'USER'
|
|
20203
|
+
} as const;
|
|
20204
|
+
|
|
20205
|
+
export type LlmProviderScope = typeof LlmProviderScope[keyof typeof LlmProviderScope];
|
|
20206
|
+
|
|
20207
|
+
|
|
20208
|
+
/**
|
|
20209
|
+
* The LLM vendor this provider authenticates against. Matches the type an agentic workflow\'s inline model already uses.
|
|
20210
|
+
* @export
|
|
20211
|
+
* @enum {string}
|
|
20212
|
+
*/
|
|
20213
|
+
|
|
20214
|
+
export const LlmProviderType = {
|
|
20215
|
+
CLAUDE: 'CLAUDE',
|
|
20216
|
+
BEDROCK: 'BEDROCK'
|
|
20217
|
+
} as const;
|
|
20218
|
+
|
|
20219
|
+
export type LlmProviderType = typeof LlmProviderType[keyof typeof LlmProviderType];
|
|
20220
|
+
|
|
20221
|
+
|
|
20061
20222
|
/**
|
|
20062
20223
|
*
|
|
20063
20224
|
* @export
|
|
@@ -65060,6 +65221,443 @@ export class JobsApi extends BaseAPI {
|
|
|
65060
65221
|
|
|
65061
65222
|
|
|
65062
65223
|
|
|
65224
|
+
/**
|
|
65225
|
+
* LLMProvidersApi - axios parameter creator
|
|
65226
|
+
* @export
|
|
65227
|
+
*/
|
|
65228
|
+
export const LLMProvidersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
65229
|
+
return {
|
|
65230
|
+
/**
|
|
65231
|
+
* Configure a reusable LLM provider for an organization.
|
|
65232
|
+
* @summary Create an LLM provider
|
|
65233
|
+
* @param {string} organizationId Organization ID
|
|
65234
|
+
* @param {LlmProviderRequest} llmProviderRequest
|
|
65235
|
+
* @param {*} [options] Override http request option.
|
|
65236
|
+
* @throws {RequiredError}
|
|
65237
|
+
*/
|
|
65238
|
+
createLlmProvider: async (organizationId: string, llmProviderRequest: LlmProviderRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
65239
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
65240
|
+
assertParamExists('createLlmProvider', 'organizationId', organizationId)
|
|
65241
|
+
// verify required parameter 'llmProviderRequest' is not null or undefined
|
|
65242
|
+
assertParamExists('createLlmProvider', 'llmProviderRequest', llmProviderRequest)
|
|
65243
|
+
const localVarPath = `/organization/{organizationId}/llmProvider`
|
|
65244
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
65245
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
65246
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
65247
|
+
let baseOptions;
|
|
65248
|
+
if (configuration) {
|
|
65249
|
+
baseOptions = configuration.baseOptions;
|
|
65250
|
+
}
|
|
65251
|
+
|
|
65252
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
65253
|
+
const localVarHeaderParameter = {} as any;
|
|
65254
|
+
const localVarQueryParameter = {} as any;
|
|
65255
|
+
|
|
65256
|
+
// authentication ApiKeyAuth required
|
|
65257
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
65258
|
+
|
|
65259
|
+
// authentication bearerAuth required
|
|
65260
|
+
// http bearer authentication required
|
|
65261
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65262
|
+
|
|
65263
|
+
|
|
65264
|
+
|
|
65265
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
65266
|
+
|
|
65267
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
65268
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
65269
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
65270
|
+
localVarRequestOptions.data = serializeDataIfNeeded(llmProviderRequest, localVarRequestOptions, configuration)
|
|
65271
|
+
|
|
65272
|
+
return {
|
|
65273
|
+
url: toPathString(localVarUrlObj),
|
|
65274
|
+
options: localVarRequestOptions,
|
|
65275
|
+
};
|
|
65276
|
+
},
|
|
65277
|
+
/**
|
|
65278
|
+
* Delete an LLM provider.
|
|
65279
|
+
* @summary Delete an LLM provider
|
|
65280
|
+
* @param {string} llmProviderId LLM Provider ID
|
|
65281
|
+
* @param {*} [options] Override http request option.
|
|
65282
|
+
* @throws {RequiredError}
|
|
65283
|
+
*/
|
|
65284
|
+
deleteLlmProvider: async (llmProviderId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
65285
|
+
// verify required parameter 'llmProviderId' is not null or undefined
|
|
65286
|
+
assertParamExists('deleteLlmProvider', 'llmProviderId', llmProviderId)
|
|
65287
|
+
const localVarPath = `/llmProvider/{llmProviderId}`
|
|
65288
|
+
.replace(`{${"llmProviderId"}}`, encodeURIComponent(String(llmProviderId)));
|
|
65289
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
65290
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
65291
|
+
let baseOptions;
|
|
65292
|
+
if (configuration) {
|
|
65293
|
+
baseOptions = configuration.baseOptions;
|
|
65294
|
+
}
|
|
65295
|
+
|
|
65296
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
65297
|
+
const localVarHeaderParameter = {} as any;
|
|
65298
|
+
const localVarQueryParameter = {} as any;
|
|
65299
|
+
|
|
65300
|
+
// authentication ApiKeyAuth required
|
|
65301
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
65302
|
+
|
|
65303
|
+
// authentication bearerAuth required
|
|
65304
|
+
// http bearer authentication required
|
|
65305
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65306
|
+
|
|
65307
|
+
|
|
65308
|
+
|
|
65309
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
65310
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
65311
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
65312
|
+
|
|
65313
|
+
return {
|
|
65314
|
+
url: toPathString(localVarUrlObj),
|
|
65315
|
+
options: localVarRequestOptions,
|
|
65316
|
+
};
|
|
65317
|
+
},
|
|
65318
|
+
/**
|
|
65319
|
+
* Replace an LLM provider. Sending a blank credential keeps the stored one; sending a nonblank credential rotates it.
|
|
65320
|
+
* @summary Edit an LLM provider
|
|
65321
|
+
* @param {string} llmProviderId LLM Provider ID
|
|
65322
|
+
* @param {LlmProviderRequest} llmProviderRequest
|
|
65323
|
+
* @param {*} [options] Override http request option.
|
|
65324
|
+
* @throws {RequiredError}
|
|
65325
|
+
*/
|
|
65326
|
+
editLlmProvider: async (llmProviderId: string, llmProviderRequest: LlmProviderRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
65327
|
+
// verify required parameter 'llmProviderId' is not null or undefined
|
|
65328
|
+
assertParamExists('editLlmProvider', 'llmProviderId', llmProviderId)
|
|
65329
|
+
// verify required parameter 'llmProviderRequest' is not null or undefined
|
|
65330
|
+
assertParamExists('editLlmProvider', 'llmProviderRequest', llmProviderRequest)
|
|
65331
|
+
const localVarPath = `/llmProvider/{llmProviderId}`
|
|
65332
|
+
.replace(`{${"llmProviderId"}}`, encodeURIComponent(String(llmProviderId)));
|
|
65333
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
65334
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
65335
|
+
let baseOptions;
|
|
65336
|
+
if (configuration) {
|
|
65337
|
+
baseOptions = configuration.baseOptions;
|
|
65338
|
+
}
|
|
65339
|
+
|
|
65340
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
65341
|
+
const localVarHeaderParameter = {} as any;
|
|
65342
|
+
const localVarQueryParameter = {} as any;
|
|
65343
|
+
|
|
65344
|
+
// authentication ApiKeyAuth required
|
|
65345
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
65346
|
+
|
|
65347
|
+
// authentication bearerAuth required
|
|
65348
|
+
// http bearer authentication required
|
|
65349
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65350
|
+
|
|
65351
|
+
|
|
65352
|
+
|
|
65353
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
65354
|
+
|
|
65355
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
65356
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
65357
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
65358
|
+
localVarRequestOptions.data = serializeDataIfNeeded(llmProviderRequest, localVarRequestOptions, configuration)
|
|
65359
|
+
|
|
65360
|
+
return {
|
|
65361
|
+
url: toPathString(localVarUrlObj),
|
|
65362
|
+
options: localVarRequestOptions,
|
|
65363
|
+
};
|
|
65364
|
+
},
|
|
65365
|
+
/**
|
|
65366
|
+
* Get an LLM provider. The credential is never returned.
|
|
65367
|
+
* @summary Get an LLM provider
|
|
65368
|
+
* @param {string} llmProviderId LLM Provider ID
|
|
65369
|
+
* @param {*} [options] Override http request option.
|
|
65370
|
+
* @throws {RequiredError}
|
|
65371
|
+
*/
|
|
65372
|
+
getLlmProvider: async (llmProviderId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
65373
|
+
// verify required parameter 'llmProviderId' is not null or undefined
|
|
65374
|
+
assertParamExists('getLlmProvider', 'llmProviderId', llmProviderId)
|
|
65375
|
+
const localVarPath = `/llmProvider/{llmProviderId}`
|
|
65376
|
+
.replace(`{${"llmProviderId"}}`, encodeURIComponent(String(llmProviderId)));
|
|
65377
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
65378
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
65379
|
+
let baseOptions;
|
|
65380
|
+
if (configuration) {
|
|
65381
|
+
baseOptions = configuration.baseOptions;
|
|
65382
|
+
}
|
|
65383
|
+
|
|
65384
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
65385
|
+
const localVarHeaderParameter = {} as any;
|
|
65386
|
+
const localVarQueryParameter = {} as any;
|
|
65387
|
+
|
|
65388
|
+
// authentication ApiKeyAuth required
|
|
65389
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
65390
|
+
|
|
65391
|
+
// authentication bearerAuth required
|
|
65392
|
+
// http bearer authentication required
|
|
65393
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65394
|
+
|
|
65395
|
+
|
|
65396
|
+
|
|
65397
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
65398
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
65399
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
65400
|
+
|
|
65401
|
+
return {
|
|
65402
|
+
url: toPathString(localVarUrlObj),
|
|
65403
|
+
options: localVarRequestOptions,
|
|
65404
|
+
};
|
|
65405
|
+
},
|
|
65406
|
+
/**
|
|
65407
|
+
* List the LLM providers configured for an organization. Credentials are never returned.
|
|
65408
|
+
* @summary List organization LLM providers
|
|
65409
|
+
* @param {string} organizationId Organization ID
|
|
65410
|
+
* @param {*} [options] Override http request option.
|
|
65411
|
+
* @throws {RequiredError}
|
|
65412
|
+
*/
|
|
65413
|
+
listLlmProviders: async (organizationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
65414
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
65415
|
+
assertParamExists('listLlmProviders', 'organizationId', organizationId)
|
|
65416
|
+
const localVarPath = `/organization/{organizationId}/llmProvider`
|
|
65417
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
65418
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
65419
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
65420
|
+
let baseOptions;
|
|
65421
|
+
if (configuration) {
|
|
65422
|
+
baseOptions = configuration.baseOptions;
|
|
65423
|
+
}
|
|
65424
|
+
|
|
65425
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
65426
|
+
const localVarHeaderParameter = {} as any;
|
|
65427
|
+
const localVarQueryParameter = {} as any;
|
|
65428
|
+
|
|
65429
|
+
// authentication ApiKeyAuth required
|
|
65430
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
65431
|
+
|
|
65432
|
+
// authentication bearerAuth required
|
|
65433
|
+
// http bearer authentication required
|
|
65434
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65435
|
+
|
|
65436
|
+
|
|
65437
|
+
|
|
65438
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
65439
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
65440
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
65441
|
+
|
|
65442
|
+
return {
|
|
65443
|
+
url: toPathString(localVarUrlObj),
|
|
65444
|
+
options: localVarRequestOptions,
|
|
65445
|
+
};
|
|
65446
|
+
},
|
|
65447
|
+
}
|
|
65448
|
+
};
|
|
65449
|
+
|
|
65450
|
+
/**
|
|
65451
|
+
* LLMProvidersApi - functional programming interface
|
|
65452
|
+
* @export
|
|
65453
|
+
*/
|
|
65454
|
+
export const LLMProvidersApiFp = function(configuration?: Configuration) {
|
|
65455
|
+
const localVarAxiosParamCreator = LLMProvidersApiAxiosParamCreator(configuration)
|
|
65456
|
+
return {
|
|
65457
|
+
/**
|
|
65458
|
+
* Configure a reusable LLM provider for an organization.
|
|
65459
|
+
* @summary Create an LLM provider
|
|
65460
|
+
* @param {string} organizationId Organization ID
|
|
65461
|
+
* @param {LlmProviderRequest} llmProviderRequest
|
|
65462
|
+
* @param {*} [options] Override http request option.
|
|
65463
|
+
* @throws {RequiredError}
|
|
65464
|
+
*/
|
|
65465
|
+
async createLlmProvider(organizationId: string, llmProviderRequest: LlmProviderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LlmProviderResponse>> {
|
|
65466
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createLlmProvider(organizationId, llmProviderRequest, options);
|
|
65467
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
65468
|
+
const localVarOperationServerBasePath = operationServerMap['LLMProvidersApi.createLlmProvider']?.[localVarOperationServerIndex]?.url;
|
|
65469
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
65470
|
+
},
|
|
65471
|
+
/**
|
|
65472
|
+
* Delete an LLM provider.
|
|
65473
|
+
* @summary Delete an LLM provider
|
|
65474
|
+
* @param {string} llmProviderId LLM Provider ID
|
|
65475
|
+
* @param {*} [options] Override http request option.
|
|
65476
|
+
* @throws {RequiredError}
|
|
65477
|
+
*/
|
|
65478
|
+
async deleteLlmProvider(llmProviderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
65479
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLlmProvider(llmProviderId, options);
|
|
65480
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
65481
|
+
const localVarOperationServerBasePath = operationServerMap['LLMProvidersApi.deleteLlmProvider']?.[localVarOperationServerIndex]?.url;
|
|
65482
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
65483
|
+
},
|
|
65484
|
+
/**
|
|
65485
|
+
* Replace an LLM provider. Sending a blank credential keeps the stored one; sending a nonblank credential rotates it.
|
|
65486
|
+
* @summary Edit an LLM provider
|
|
65487
|
+
* @param {string} llmProviderId LLM Provider ID
|
|
65488
|
+
* @param {LlmProviderRequest} llmProviderRequest
|
|
65489
|
+
* @param {*} [options] Override http request option.
|
|
65490
|
+
* @throws {RequiredError}
|
|
65491
|
+
*/
|
|
65492
|
+
async editLlmProvider(llmProviderId: string, llmProviderRequest: LlmProviderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LlmProviderResponse>> {
|
|
65493
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.editLlmProvider(llmProviderId, llmProviderRequest, options);
|
|
65494
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
65495
|
+
const localVarOperationServerBasePath = operationServerMap['LLMProvidersApi.editLlmProvider']?.[localVarOperationServerIndex]?.url;
|
|
65496
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
65497
|
+
},
|
|
65498
|
+
/**
|
|
65499
|
+
* Get an LLM provider. The credential is never returned.
|
|
65500
|
+
* @summary Get an LLM provider
|
|
65501
|
+
* @param {string} llmProviderId LLM Provider ID
|
|
65502
|
+
* @param {*} [options] Override http request option.
|
|
65503
|
+
* @throws {RequiredError}
|
|
65504
|
+
*/
|
|
65505
|
+
async getLlmProvider(llmProviderId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LlmProviderResponse>> {
|
|
65506
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLlmProvider(llmProviderId, options);
|
|
65507
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
65508
|
+
const localVarOperationServerBasePath = operationServerMap['LLMProvidersApi.getLlmProvider']?.[localVarOperationServerIndex]?.url;
|
|
65509
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
65510
|
+
},
|
|
65511
|
+
/**
|
|
65512
|
+
* List the LLM providers configured for an organization. Credentials are never returned.
|
|
65513
|
+
* @summary List organization LLM providers
|
|
65514
|
+
* @param {string} organizationId Organization ID
|
|
65515
|
+
* @param {*} [options] Override http request option.
|
|
65516
|
+
* @throws {RequiredError}
|
|
65517
|
+
*/
|
|
65518
|
+
async listLlmProviders(organizationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LlmProviderResponseList>> {
|
|
65519
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listLlmProviders(organizationId, options);
|
|
65520
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
65521
|
+
const localVarOperationServerBasePath = operationServerMap['LLMProvidersApi.listLlmProviders']?.[localVarOperationServerIndex]?.url;
|
|
65522
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
65523
|
+
},
|
|
65524
|
+
}
|
|
65525
|
+
};
|
|
65526
|
+
|
|
65527
|
+
/**
|
|
65528
|
+
* LLMProvidersApi - factory interface
|
|
65529
|
+
* @export
|
|
65530
|
+
*/
|
|
65531
|
+
export const LLMProvidersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
65532
|
+
const localVarFp = LLMProvidersApiFp(configuration)
|
|
65533
|
+
return {
|
|
65534
|
+
/**
|
|
65535
|
+
* Configure a reusable LLM provider for an organization.
|
|
65536
|
+
* @summary Create an LLM provider
|
|
65537
|
+
* @param {string} organizationId Organization ID
|
|
65538
|
+
* @param {LlmProviderRequest} llmProviderRequest
|
|
65539
|
+
* @param {*} [options] Override http request option.
|
|
65540
|
+
* @throws {RequiredError}
|
|
65541
|
+
*/
|
|
65542
|
+
createLlmProvider(organizationId: string, llmProviderRequest: LlmProviderRequest, options?: RawAxiosRequestConfig): AxiosPromise<LlmProviderResponse> {
|
|
65543
|
+
return localVarFp.createLlmProvider(organizationId, llmProviderRequest, options).then((request) => request(axios, basePath));
|
|
65544
|
+
},
|
|
65545
|
+
/**
|
|
65546
|
+
* Delete an LLM provider.
|
|
65547
|
+
* @summary Delete an LLM provider
|
|
65548
|
+
* @param {string} llmProviderId LLM Provider ID
|
|
65549
|
+
* @param {*} [options] Override http request option.
|
|
65550
|
+
* @throws {RequiredError}
|
|
65551
|
+
*/
|
|
65552
|
+
deleteLlmProvider(llmProviderId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
65553
|
+
return localVarFp.deleteLlmProvider(llmProviderId, options).then((request) => request(axios, basePath));
|
|
65554
|
+
},
|
|
65555
|
+
/**
|
|
65556
|
+
* Replace an LLM provider. Sending a blank credential keeps the stored one; sending a nonblank credential rotates it.
|
|
65557
|
+
* @summary Edit an LLM provider
|
|
65558
|
+
* @param {string} llmProviderId LLM Provider ID
|
|
65559
|
+
* @param {LlmProviderRequest} llmProviderRequest
|
|
65560
|
+
* @param {*} [options] Override http request option.
|
|
65561
|
+
* @throws {RequiredError}
|
|
65562
|
+
*/
|
|
65563
|
+
editLlmProvider(llmProviderId: string, llmProviderRequest: LlmProviderRequest, options?: RawAxiosRequestConfig): AxiosPromise<LlmProviderResponse> {
|
|
65564
|
+
return localVarFp.editLlmProvider(llmProviderId, llmProviderRequest, options).then((request) => request(axios, basePath));
|
|
65565
|
+
},
|
|
65566
|
+
/**
|
|
65567
|
+
* Get an LLM provider. The credential is never returned.
|
|
65568
|
+
* @summary Get an LLM provider
|
|
65569
|
+
* @param {string} llmProviderId LLM Provider ID
|
|
65570
|
+
* @param {*} [options] Override http request option.
|
|
65571
|
+
* @throws {RequiredError}
|
|
65572
|
+
*/
|
|
65573
|
+
getLlmProvider(llmProviderId: string, options?: RawAxiosRequestConfig): AxiosPromise<LlmProviderResponse> {
|
|
65574
|
+
return localVarFp.getLlmProvider(llmProviderId, options).then((request) => request(axios, basePath));
|
|
65575
|
+
},
|
|
65576
|
+
/**
|
|
65577
|
+
* List the LLM providers configured for an organization. Credentials are never returned.
|
|
65578
|
+
* @summary List organization LLM providers
|
|
65579
|
+
* @param {string} organizationId Organization ID
|
|
65580
|
+
* @param {*} [options] Override http request option.
|
|
65581
|
+
* @throws {RequiredError}
|
|
65582
|
+
*/
|
|
65583
|
+
listLlmProviders(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<LlmProviderResponseList> {
|
|
65584
|
+
return localVarFp.listLlmProviders(organizationId, options).then((request) => request(axios, basePath));
|
|
65585
|
+
},
|
|
65586
|
+
};
|
|
65587
|
+
};
|
|
65588
|
+
|
|
65589
|
+
/**
|
|
65590
|
+
* LLMProvidersApi - object-oriented interface
|
|
65591
|
+
* @export
|
|
65592
|
+
* @class LLMProvidersApi
|
|
65593
|
+
* @extends {BaseAPI}
|
|
65594
|
+
*/
|
|
65595
|
+
export class LLMProvidersApi extends BaseAPI {
|
|
65596
|
+
/**
|
|
65597
|
+
* Configure a reusable LLM provider for an organization.
|
|
65598
|
+
* @summary Create an LLM provider
|
|
65599
|
+
* @param {string} organizationId Organization ID
|
|
65600
|
+
* @param {LlmProviderRequest} llmProviderRequest
|
|
65601
|
+
* @param {*} [options] Override http request option.
|
|
65602
|
+
* @throws {RequiredError}
|
|
65603
|
+
* @memberof LLMProvidersApi
|
|
65604
|
+
*/
|
|
65605
|
+
public createLlmProvider(organizationId: string, llmProviderRequest: LlmProviderRequest, options?: RawAxiosRequestConfig) {
|
|
65606
|
+
return LLMProvidersApiFp(this.configuration).createLlmProvider(organizationId, llmProviderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
65607
|
+
}
|
|
65608
|
+
|
|
65609
|
+
/**
|
|
65610
|
+
* Delete an LLM provider.
|
|
65611
|
+
* @summary Delete an LLM provider
|
|
65612
|
+
* @param {string} llmProviderId LLM Provider ID
|
|
65613
|
+
* @param {*} [options] Override http request option.
|
|
65614
|
+
* @throws {RequiredError}
|
|
65615
|
+
* @memberof LLMProvidersApi
|
|
65616
|
+
*/
|
|
65617
|
+
public deleteLlmProvider(llmProviderId: string, options?: RawAxiosRequestConfig) {
|
|
65618
|
+
return LLMProvidersApiFp(this.configuration).deleteLlmProvider(llmProviderId, options).then((request) => request(this.axios, this.basePath));
|
|
65619
|
+
}
|
|
65620
|
+
|
|
65621
|
+
/**
|
|
65622
|
+
* Replace an LLM provider. Sending a blank credential keeps the stored one; sending a nonblank credential rotates it.
|
|
65623
|
+
* @summary Edit an LLM provider
|
|
65624
|
+
* @param {string} llmProviderId LLM Provider ID
|
|
65625
|
+
* @param {LlmProviderRequest} llmProviderRequest
|
|
65626
|
+
* @param {*} [options] Override http request option.
|
|
65627
|
+
* @throws {RequiredError}
|
|
65628
|
+
* @memberof LLMProvidersApi
|
|
65629
|
+
*/
|
|
65630
|
+
public editLlmProvider(llmProviderId: string, llmProviderRequest: LlmProviderRequest, options?: RawAxiosRequestConfig) {
|
|
65631
|
+
return LLMProvidersApiFp(this.configuration).editLlmProvider(llmProviderId, llmProviderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
65632
|
+
}
|
|
65633
|
+
|
|
65634
|
+
/**
|
|
65635
|
+
* Get an LLM provider. The credential is never returned.
|
|
65636
|
+
* @summary Get an LLM provider
|
|
65637
|
+
* @param {string} llmProviderId LLM Provider ID
|
|
65638
|
+
* @param {*} [options] Override http request option.
|
|
65639
|
+
* @throws {RequiredError}
|
|
65640
|
+
* @memberof LLMProvidersApi
|
|
65641
|
+
*/
|
|
65642
|
+
public getLlmProvider(llmProviderId: string, options?: RawAxiosRequestConfig) {
|
|
65643
|
+
return LLMProvidersApiFp(this.configuration).getLlmProvider(llmProviderId, options).then((request) => request(this.axios, this.basePath));
|
|
65644
|
+
}
|
|
65645
|
+
|
|
65646
|
+
/**
|
|
65647
|
+
* List the LLM providers configured for an organization. Credentials are never returned.
|
|
65648
|
+
* @summary List organization LLM providers
|
|
65649
|
+
* @param {string} organizationId Organization ID
|
|
65650
|
+
* @param {*} [options] Override http request option.
|
|
65651
|
+
* @throws {RequiredError}
|
|
65652
|
+
* @memberof LLMProvidersApi
|
|
65653
|
+
*/
|
|
65654
|
+
public listLlmProviders(organizationId: string, options?: RawAxiosRequestConfig) {
|
|
65655
|
+
return LLMProvidersApiFp(this.configuration).listLlmProviders(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
65656
|
+
}
|
|
65657
|
+
}
|
|
65658
|
+
|
|
65659
|
+
|
|
65660
|
+
|
|
65063
65661
|
/**
|
|
65064
65662
|
* LifecycleTemplateMainCallsApi - axios parameter creator
|
|
65065
65663
|
* @export
|