kb-cloud-client-typescript 2.3.0-alpha.153 → 2.3.0-alpha.155

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.
Files changed (59) hide show
  1. package/dist/adminapi/apis/cluster-api.d.ts +73 -0
  2. package/dist/adminapi/apis/cluster-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/cluster-api.js +80 -0
  4. package/dist/adminapi/apis/cluster-api.js.map +1 -1
  5. package/dist/adminapi/apis/inspection-api.d.ts +4 -5
  6. package/dist/adminapi/apis/inspection-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/inspection-api.js.map +1 -1
  8. package/dist/adminapi/apis/shared-api.d.ts +72 -0
  9. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  10. package/dist/adminapi/apis/shared-api.js +80 -0
  11. package/dist/adminapi/apis/shared-api.js.map +1 -1
  12. package/dist/adminapi/models/cluster-mode-transition.d.ts +32 -0
  13. package/dist/adminapi/models/cluster-mode-transition.d.ts.map +1 -0
  14. package/dist/adminapi/models/cluster-mode-transition.js +16 -0
  15. package/dist/adminapi/models/cluster-mode-transition.js.map +1 -0
  16. package/dist/adminapi/models/index.d.ts +1 -0
  17. package/dist/adminapi/models/index.d.ts.map +1 -1
  18. package/dist/adminapi/models/index.js +1 -0
  19. package/dist/adminapi/models/index.js.map +1 -1
  20. package/dist/openapi/apis/llm-api.d.ts +0 -411
  21. package/dist/openapi/apis/llm-api.d.ts.map +1 -1
  22. package/dist/openapi/apis/llm-api.js +0 -471
  23. package/dist/openapi/apis/llm-api.js.map +1 -1
  24. package/dist/openapi/models/index.d.ts +0 -4
  25. package/dist/openapi/models/index.d.ts.map +1 -1
  26. package/dist/openapi/models/index.js +0 -4
  27. package/dist/openapi/models/index.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/adminapi/.openapi-generator/FILES +1 -0
  30. package/src/adminapi/apis/cluster-api.ts +130 -0
  31. package/src/adminapi/apis/inspection-api.ts +3 -5
  32. package/src/adminapi/apis/shared-api.ts +128 -0
  33. package/src/adminapi/models/cluster-mode-transition.ts +39 -0
  34. package/src/adminapi/models/index.ts +1 -0
  35. package/src/adminapi.yaml +136 -84
  36. package/src/openapi/.openapi-generator/FILES +0 -4
  37. package/src/openapi/apis/llm-api.ts +0 -714
  38. package/src/openapi/models/index.ts +0 -4
  39. package/src/openapi.yaml +0 -262
  40. package/dist/openapi/models/access-level.d.ts +0 -22
  41. package/dist/openapi/models/access-level.d.ts.map +0 -1
  42. package/dist/openapi/models/access-level.js +0 -26
  43. package/dist/openapi/models/access-level.js.map +0 -1
  44. package/dist/openapi/models/check-apikey.d.ts +0 -31
  45. package/dist/openapi/models/check-apikey.d.ts.map +0 -1
  46. package/dist/openapi/models/check-apikey.js +0 -16
  47. package/dist/openapi/models/check-apikey.js.map +0 -1
  48. package/dist/openapi/models/llm-list.d.ts +0 -26
  49. package/dist/openapi/models/llm-list.d.ts.map +0 -1
  50. package/dist/openapi/models/llm-list.js +0 -16
  51. package/dist/openapi/models/llm-list.js.map +0 -1
  52. package/dist/openapi/models/llm.d.ts +0 -64
  53. package/dist/openapi/models/llm.d.ts.map +0 -1
  54. package/dist/openapi/models/llm.js +0 -16
  55. package/dist/openapi/models/llm.js.map +0 -1
  56. package/src/openapi/models/access-level.ts +0 -31
  57. package/src/openapi/models/check-apikey.ts +0 -36
  58. package/src/openapi/models/llm-list.ts +0 -33
  59. package/src/openapi/models/llm.ts +0 -71
@@ -23,206 +23,12 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
23
23
  import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
24
  // @ts-ignore
25
25
  import type { APIErrorResponse } from '../models';
26
- // @ts-ignore
27
- import type { CheckAPIKey } from '../models';
28
- // @ts-ignore
29
- import type { Llm } from '../models';
30
- // @ts-ignore
31
- import type { LlmList } from '../models';
32
26
  /**
33
27
  * LlmApi - axios parameter creator
34
28
  * @export
35
29
  */
36
30
  export const LlmApiAxiosParamCreator = function (configuration?: Configuration) {
37
31
  return {
38
- /**
39
- * add LLM for org
40
- * @summary add LLM for org
41
- * @param {string} orgName
42
- * @param {Llm} llm
43
- * @param {*} [options] Override http request option.
44
- * @deprecated
45
- * @throws {RequiredError}
46
- */
47
- addLLMForOrg: async (orgName: string, llm: Llm, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
48
- // verify required parameter 'orgName' is not null or undefined
49
- assertParamExists('addLLMForOrg', 'orgName', orgName)
50
- // verify required parameter 'llm' is not null or undefined
51
- assertParamExists('addLLMForOrg', 'llm', llm)
52
- const localVarPath = `/api/v1/organizations/{orgName}/llm`
53
- .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
54
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
55
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
56
- let baseOptions;
57
- if (configuration) {
58
- baseOptions = configuration.baseOptions;
59
- }
60
-
61
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
62
- const localVarHeaderParameter = {} as any;
63
- const localVarQueryParameter = {} as any;
64
-
65
- // authentication BearerToken required
66
- // http bearer authentication required
67
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
68
-
69
- // authentication DigestAuth required
70
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
71
-
72
-
73
-
74
- localVarHeaderParameter['Content-Type'] = 'application/json';
75
-
76
- setSearchParams(localVarUrlObj, localVarQueryParameter);
77
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
78
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
79
- localVarRequestOptions.data = serializeDataIfNeeded(llm, localVarRequestOptions, configuration)
80
-
81
- return {
82
- url: toPathString(localVarUrlObj),
83
- options: localVarRequestOptions,
84
- };
85
- },
86
- /**
87
- * check apikey available for org
88
- * @summary check apikey available for org
89
- * @param {string} orgName
90
- * @param {CheckAPIKey} checkAPIKey
91
- * @param {*} [options] Override http request option.
92
- * @deprecated
93
- * @throws {RequiredError}
94
- */
95
- checkAPIKeyForOrg: async (orgName: string, checkAPIKey: CheckAPIKey, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
96
- // verify required parameter 'orgName' is not null or undefined
97
- assertParamExists('checkAPIKeyForOrg', 'orgName', orgName)
98
- // verify required parameter 'checkAPIKey' is not null or undefined
99
- assertParamExists('checkAPIKeyForOrg', 'checkAPIKey', checkAPIKey)
100
- const localVarPath = `/api/v1/organizations/{orgName}/llm/check`
101
- .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
102
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
103
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
104
- let baseOptions;
105
- if (configuration) {
106
- baseOptions = configuration.baseOptions;
107
- }
108
-
109
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
110
- const localVarHeaderParameter = {} as any;
111
- const localVarQueryParameter = {} as any;
112
-
113
- // authentication BearerToken required
114
- // http bearer authentication required
115
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
116
-
117
- // authentication DigestAuth required
118
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
119
-
120
-
121
-
122
- localVarHeaderParameter['Content-Type'] = 'application/json';
123
-
124
- setSearchParams(localVarUrlObj, localVarQueryParameter);
125
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
126
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
127
- localVarRequestOptions.data = serializeDataIfNeeded(checkAPIKey, localVarRequestOptions, configuration)
128
-
129
- return {
130
- url: toPathString(localVarUrlObj),
131
- options: localVarRequestOptions,
132
- };
133
- },
134
- /**
135
- *
136
- * @summary Delete LLM
137
- * @param {string} orgName
138
- * @param {string} id ID of the LLM
139
- * @param {*} [options] Override http request option.
140
- * @deprecated
141
- * @throws {RequiredError}
142
- */
143
- deleteLLM: async (orgName: string, id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
144
- // verify required parameter 'orgName' is not null or undefined
145
- assertParamExists('deleteLLM', 'orgName', orgName)
146
- // verify required parameter 'id' is not null or undefined
147
- assertParamExists('deleteLLM', 'id', id)
148
- const localVarPath = `/api/v1/organizations/{orgName}/llm/{id}`
149
- .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
150
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
151
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
152
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
153
- let baseOptions;
154
- if (configuration) {
155
- baseOptions = configuration.baseOptions;
156
- }
157
-
158
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
159
- const localVarHeaderParameter = {} as any;
160
- const localVarQueryParameter = {} as any;
161
-
162
- // authentication BearerToken required
163
- // http bearer authentication required
164
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
165
-
166
- // authentication DigestAuth required
167
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
168
-
169
-
170
-
171
- setSearchParams(localVarUrlObj, localVarQueryParameter);
172
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
173
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
174
-
175
- return {
176
- url: toPathString(localVarUrlObj),
177
- options: localVarRequestOptions,
178
- };
179
- },
180
- /**
181
- *
182
- * @summary Get LLM by ID in org
183
- * @param {string} orgName
184
- * @param {string} id ID of the LLM
185
- * @param {*} [options] Override http request option.
186
- * @deprecated
187
- * @throws {RequiredError}
188
- */
189
- getLLMByIDInOrg: async (orgName: string, id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
190
- // verify required parameter 'orgName' is not null or undefined
191
- assertParamExists('getLLMByIDInOrg', 'orgName', orgName)
192
- // verify required parameter 'id' is not null or undefined
193
- assertParamExists('getLLMByIDInOrg', 'id', id)
194
- const localVarPath = `/api/v1/organizations/{orgName}/llm/{id}`
195
- .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
196
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
197
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
198
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
199
- let baseOptions;
200
- if (configuration) {
201
- baseOptions = configuration.baseOptions;
202
- }
203
-
204
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
205
- const localVarHeaderParameter = {} as any;
206
- const localVarQueryParameter = {} as any;
207
-
208
- // authentication BearerToken required
209
- // http bearer authentication required
210
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
211
-
212
- // authentication DigestAuth required
213
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
214
-
215
-
216
-
217
- setSearchParams(localVarUrlObj, localVarQueryParameter);
218
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
219
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
220
-
221
- return {
222
- url: toPathString(localVarUrlObj),
223
- options: localVarRequestOptions,
224
- };
225
- },
226
32
  /**
227
33
  *
228
34
  * @summary List available model in org
@@ -259,100 +65,6 @@ export const LlmApiAxiosParamCreator = function (configuration?: Configuration)
259
65
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
260
66
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
261
67
 
262
- return {
263
- url: toPathString(localVarUrlObj),
264
- options: localVarRequestOptions,
265
- };
266
- },
267
- /**
268
- * available
269
- * @summary List available LLM for org
270
- * @param {string} orgName
271
- * @param {*} [options] Override http request option.
272
- * @deprecated
273
- * @throws {RequiredError}
274
- */
275
- listLLMForOrg: async (orgName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
276
- // verify required parameter 'orgName' is not null or undefined
277
- assertParamExists('listLLMForOrg', 'orgName', orgName)
278
- const localVarPath = `/api/v1/organizations/{orgName}/llm`
279
- .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
280
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
281
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
282
- let baseOptions;
283
- if (configuration) {
284
- baseOptions = configuration.baseOptions;
285
- }
286
-
287
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
288
- const localVarHeaderParameter = {} as any;
289
- const localVarQueryParameter = {} as any;
290
-
291
- // authentication BearerToken required
292
- // http bearer authentication required
293
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
294
-
295
- // authentication DigestAuth required
296
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
297
-
298
-
299
-
300
- setSearchParams(localVarUrlObj, localVarQueryParameter);
301
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
302
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
303
-
304
- return {
305
- url: toPathString(localVarUrlObj),
306
- options: localVarRequestOptions,
307
- };
308
- },
309
- /**
310
- *
311
- * @summary Update LLM
312
- * @param {string} orgName
313
- * @param {string} id ID of the LLM
314
- * @param {Llm} body
315
- * @param {*} [options] Override http request option.
316
- * @deprecated
317
- * @throws {RequiredError}
318
- */
319
- updateLLM: async (orgName: string, id: string, body: Llm, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
320
- // verify required parameter 'orgName' is not null or undefined
321
- assertParamExists('updateLLM', 'orgName', orgName)
322
- // verify required parameter 'id' is not null or undefined
323
- assertParamExists('updateLLM', 'id', id)
324
- // verify required parameter 'body' is not null or undefined
325
- assertParamExists('updateLLM', 'body', body)
326
- const localVarPath = `/api/v1/organizations/{orgName}/llm/{id}`
327
- .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
328
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
329
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
330
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
331
- let baseOptions;
332
- if (configuration) {
333
- baseOptions = configuration.baseOptions;
334
- }
335
-
336
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
337
- const localVarHeaderParameter = {} as any;
338
- const localVarQueryParameter = {} as any;
339
-
340
- // authentication BearerToken required
341
- // http bearer authentication required
342
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
343
-
344
- // authentication DigestAuth required
345
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
346
-
347
-
348
-
349
- localVarHeaderParameter['Content-Type'] = 'application/json';
350
-
351
- setSearchParams(localVarUrlObj, localVarQueryParameter);
352
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
353
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
354
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
355
-
356
68
  return {
357
69
  url: toPathString(localVarUrlObj),
358
70
  options: localVarRequestOptions,
@@ -368,66 +80,6 @@ export const LlmApiAxiosParamCreator = function (configuration?: Configuration)
368
80
  export const LlmApiFp = function(configuration?: Configuration) {
369
81
  const localVarAxiosParamCreator = LlmApiAxiosParamCreator(configuration)
370
82
  return {
371
- /**
372
- * add LLM for org
373
- * @summary add LLM for org
374
- * @param {string} orgName
375
- * @param {Llm} llm
376
- * @param {*} [options] Override http request option.
377
- * @deprecated
378
- * @throws {RequiredError}
379
- */
380
- async addLLMForOrg(orgName: string, llm: Llm, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
381
- const localVarAxiosArgs = await localVarAxiosParamCreator.addLLMForOrg(orgName, llm, options);
382
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
383
- const localVarOperationServerBasePath = operationServerMap['LlmApi.addLLMForOrg']?.[localVarOperationServerIndex]?.url;
384
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
385
- },
386
- /**
387
- * check apikey available for org
388
- * @summary check apikey available for org
389
- * @param {string} orgName
390
- * @param {CheckAPIKey} checkAPIKey
391
- * @param {*} [options] Override http request option.
392
- * @deprecated
393
- * @throws {RequiredError}
394
- */
395
- async checkAPIKeyForOrg(orgName: string, checkAPIKey: CheckAPIKey, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
396
- const localVarAxiosArgs = await localVarAxiosParamCreator.checkAPIKeyForOrg(orgName, checkAPIKey, options);
397
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
398
- const localVarOperationServerBasePath = operationServerMap['LlmApi.checkAPIKeyForOrg']?.[localVarOperationServerIndex]?.url;
399
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
400
- },
401
- /**
402
- *
403
- * @summary Delete LLM
404
- * @param {string} orgName
405
- * @param {string} id ID of the LLM
406
- * @param {*} [options] Override http request option.
407
- * @deprecated
408
- * @throws {RequiredError}
409
- */
410
- async deleteLLM(orgName: string, id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
411
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLLM(orgName, id, options);
412
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
413
- const localVarOperationServerBasePath = operationServerMap['LlmApi.deleteLLM']?.[localVarOperationServerIndex]?.url;
414
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
415
- },
416
- /**
417
- *
418
- * @summary Get LLM by ID in org
419
- * @param {string} orgName
420
- * @param {string} id ID of the LLM
421
- * @param {*} [options] Override http request option.
422
- * @deprecated
423
- * @throws {RequiredError}
424
- */
425
- async getLLMByIDInOrg(orgName: string, id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Llm>> {
426
- const localVarAxiosArgs = await localVarAxiosParamCreator.getLLMByIDInOrg(orgName, id, options);
427
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
428
- const localVarOperationServerBasePath = operationServerMap['LlmApi.getLLMByIDInOrg']?.[localVarOperationServerIndex]?.url;
429
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
430
- },
431
83
  /**
432
84
  *
433
85
  * @summary List available model in org
@@ -441,36 +93,6 @@ export const LlmApiFp = function(configuration?: Configuration) {
441
93
  const localVarOperationServerBasePath = operationServerMap['LlmApi.listAvailableModelInOrg']?.[localVarOperationServerIndex]?.url;
442
94
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
443
95
  },
444
- /**
445
- * available
446
- * @summary List available LLM for org
447
- * @param {string} orgName
448
- * @param {*} [options] Override http request option.
449
- * @deprecated
450
- * @throws {RequiredError}
451
- */
452
- async listLLMForOrg(orgName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LlmList>> {
453
- const localVarAxiosArgs = await localVarAxiosParamCreator.listLLMForOrg(orgName, options);
454
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
455
- const localVarOperationServerBasePath = operationServerMap['LlmApi.listLLMForOrg']?.[localVarOperationServerIndex]?.url;
456
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
457
- },
458
- /**
459
- *
460
- * @summary Update LLM
461
- * @param {string} orgName
462
- * @param {string} id ID of the LLM
463
- * @param {Llm} body
464
- * @param {*} [options] Override http request option.
465
- * @deprecated
466
- * @throws {RequiredError}
467
- */
468
- async updateLLM(orgName: string, id: string, body: Llm, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Llm>> {
469
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateLLM(orgName, id, body, options);
470
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
471
- const localVarOperationServerBasePath = operationServerMap['LlmApi.updateLLM']?.[localVarOperationServerIndex]?.url;
472
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
473
- },
474
96
  }
475
97
  };
476
98
 
@@ -481,50 +103,6 @@ export const LlmApiFp = function(configuration?: Configuration) {
481
103
  export const LlmApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
482
104
  const localVarFp = LlmApiFp(configuration)
483
105
  return {
484
- /**
485
- * add LLM for org
486
- * @summary add LLM for org
487
- * @param {LlmApiAddLLMForOrgRequest} requestParameters Request parameters.
488
- * @param {*} [options] Override http request option.
489
- * @deprecated
490
- * @throws {RequiredError}
491
- */
492
- addLLMForOrg(requestParameters: LlmApiAddLLMForOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
493
- return localVarFp.addLLMForOrg(requestParameters.orgName, requestParameters.llm, options).then((request) => request(axios, basePath));
494
- },
495
- /**
496
- * check apikey available for org
497
- * @summary check apikey available for org
498
- * @param {LlmApiCheckAPIKeyForOrgRequest} requestParameters Request parameters.
499
- * @param {*} [options] Override http request option.
500
- * @deprecated
501
- * @throws {RequiredError}
502
- */
503
- checkAPIKeyForOrg(requestParameters: LlmApiCheckAPIKeyForOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<boolean> {
504
- return localVarFp.checkAPIKeyForOrg(requestParameters.orgName, requestParameters.checkAPIKey, options).then((request) => request(axios, basePath));
505
- },
506
- /**
507
- *
508
- * @summary Delete LLM
509
- * @param {LlmApiDeleteLLMRequest} requestParameters Request parameters.
510
- * @param {*} [options] Override http request option.
511
- * @deprecated
512
- * @throws {RequiredError}
513
- */
514
- deleteLLM(requestParameters: LlmApiDeleteLLMRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
515
- return localVarFp.deleteLLM(requestParameters.orgName, requestParameters.id, options).then((request) => request(axios, basePath));
516
- },
517
- /**
518
- *
519
- * @summary Get LLM by ID in org
520
- * @param {LlmApiGetLLMByIDInOrgRequest} requestParameters Request parameters.
521
- * @param {*} [options] Override http request option.
522
- * @deprecated
523
- * @throws {RequiredError}
524
- */
525
- getLLMByIDInOrg(requestParameters: LlmApiGetLLMByIDInOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<Llm> {
526
- return localVarFp.getLLMByIDInOrg(requestParameters.orgName, requestParameters.id, options).then((request) => request(axios, basePath));
527
- },
528
106
  /**
529
107
  *
530
108
  * @summary List available model in org
@@ -535,28 +113,6 @@ export const LlmApiFactory = function (configuration?: Configuration, basePath?:
535
113
  listAvailableModelInOrg(requestParameters: LlmApiListAvailableModelInOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
536
114
  return localVarFp.listAvailableModelInOrg(requestParameters.orgName, options).then((request) => request(axios, basePath));
537
115
  },
538
- /**
539
- * available
540
- * @summary List available LLM for org
541
- * @param {LlmApiListLLMForOrgRequest} requestParameters Request parameters.
542
- * @param {*} [options] Override http request option.
543
- * @deprecated
544
- * @throws {RequiredError}
545
- */
546
- listLLMForOrg(requestParameters: LlmApiListLLMForOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<LlmList> {
547
- return localVarFp.listLLMForOrg(requestParameters.orgName, options).then((request) => request(axios, basePath));
548
- },
549
- /**
550
- *
551
- * @summary Update LLM
552
- * @param {LlmApiUpdateLLMRequest} requestParameters Request parameters.
553
- * @param {*} [options] Override http request option.
554
- * @deprecated
555
- * @throws {RequiredError}
556
- */
557
- updateLLM(requestParameters: LlmApiUpdateLLMRequest, options?: RawAxiosRequestConfig): AxiosPromise<Llm> {
558
- return localVarFp.updateLLM(requestParameters.orgName, requestParameters.id, requestParameters.body, options).then((request) => request(axios, basePath));
559
- },
560
116
  };
561
117
  };
562
118
 
@@ -566,50 +122,6 @@ export const LlmApiFactory = function (configuration?: Configuration, basePath?:
566
122
  * @interface LlmApi
567
123
  */
568
124
  export interface LlmApiInterface {
569
- /**
570
- * add LLM for org
571
- * @summary add LLM for org
572
- * @param {LlmApiAddLLMForOrgRequest} requestParameters Request parameters.
573
- * @param {*} [options] Override http request option.
574
- * @deprecated
575
- * @throws {RequiredError}
576
- * @memberof LlmApiInterface
577
- */
578
- addLLMForOrg(requestParameters: LlmApiAddLLMForOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
579
-
580
- /**
581
- * check apikey available for org
582
- * @summary check apikey available for org
583
- * @param {LlmApiCheckAPIKeyForOrgRequest} requestParameters Request parameters.
584
- * @param {*} [options] Override http request option.
585
- * @deprecated
586
- * @throws {RequiredError}
587
- * @memberof LlmApiInterface
588
- */
589
- checkAPIKeyForOrg(requestParameters: LlmApiCheckAPIKeyForOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
590
-
591
- /**
592
- *
593
- * @summary Delete LLM
594
- * @param {LlmApiDeleteLLMRequest} requestParameters Request parameters.
595
- * @param {*} [options] Override http request option.
596
- * @deprecated
597
- * @throws {RequiredError}
598
- * @memberof LlmApiInterface
599
- */
600
- deleteLLM(requestParameters: LlmApiDeleteLLMRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
601
-
602
- /**
603
- *
604
- * @summary Get LLM by ID in org
605
- * @param {LlmApiGetLLMByIDInOrgRequest} requestParameters Request parameters.
606
- * @param {*} [options] Override http request option.
607
- * @deprecated
608
- * @throws {RequiredError}
609
- * @memberof LlmApiInterface
610
- */
611
- getLLMByIDInOrg(requestParameters: LlmApiGetLLMByIDInOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<Llm>;
612
-
613
125
  /**
614
126
  *
615
127
  * @summary List available model in org
@@ -620,112 +132,6 @@ export interface LlmApiInterface {
620
132
  */
621
133
  listAvailableModelInOrg(requestParameters: LlmApiListAvailableModelInOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>>;
622
134
 
623
- /**
624
- * available
625
- * @summary List available LLM for org
626
- * @param {LlmApiListLLMForOrgRequest} requestParameters Request parameters.
627
- * @param {*} [options] Override http request option.
628
- * @deprecated
629
- * @throws {RequiredError}
630
- * @memberof LlmApiInterface
631
- */
632
- listLLMForOrg(requestParameters: LlmApiListLLMForOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<LlmList>;
633
-
634
- /**
635
- *
636
- * @summary Update LLM
637
- * @param {LlmApiUpdateLLMRequest} requestParameters Request parameters.
638
- * @param {*} [options] Override http request option.
639
- * @deprecated
640
- * @throws {RequiredError}
641
- * @memberof LlmApiInterface
642
- */
643
- updateLLM(requestParameters: LlmApiUpdateLLMRequest, options?: RawAxiosRequestConfig): AxiosPromise<Llm>;
644
-
645
- }
646
-
647
- /**
648
- * Request parameters for addLLMForOrg operation in LlmApi.
649
- * @export
650
- * @interface LlmApiAddLLMForOrgRequest
651
- */
652
- export interface LlmApiAddLLMForOrgRequest {
653
- /**
654
- *
655
- * @type {string}
656
- * @memberof LlmApiAddLLMForOrg
657
- */
658
- readonly orgName: string
659
-
660
- /**
661
- *
662
- * @type {Llm}
663
- * @memberof LlmApiAddLLMForOrg
664
- */
665
- readonly llm: Llm
666
- }
667
-
668
- /**
669
- * Request parameters for checkAPIKeyForOrg operation in LlmApi.
670
- * @export
671
- * @interface LlmApiCheckAPIKeyForOrgRequest
672
- */
673
- export interface LlmApiCheckAPIKeyForOrgRequest {
674
- /**
675
- *
676
- * @type {string}
677
- * @memberof LlmApiCheckAPIKeyForOrg
678
- */
679
- readonly orgName: string
680
-
681
- /**
682
- *
683
- * @type {CheckAPIKey}
684
- * @memberof LlmApiCheckAPIKeyForOrg
685
- */
686
- readonly checkAPIKey: CheckAPIKey
687
- }
688
-
689
- /**
690
- * Request parameters for deleteLLM operation in LlmApi.
691
- * @export
692
- * @interface LlmApiDeleteLLMRequest
693
- */
694
- export interface LlmApiDeleteLLMRequest {
695
- /**
696
- *
697
- * @type {string}
698
- * @memberof LlmApiDeleteLLM
699
- */
700
- readonly orgName: string
701
-
702
- /**
703
- * ID of the LLM
704
- * @type {string}
705
- * @memberof LlmApiDeleteLLM
706
- */
707
- readonly id: string
708
- }
709
-
710
- /**
711
- * Request parameters for getLLMByIDInOrg operation in LlmApi.
712
- * @export
713
- * @interface LlmApiGetLLMByIDInOrgRequest
714
- */
715
- export interface LlmApiGetLLMByIDInOrgRequest {
716
- /**
717
- *
718
- * @type {string}
719
- * @memberof LlmApiGetLLMByIDInOrg
720
- */
721
- readonly orgName: string
722
-
723
- /**
724
- * ID of the LLM
725
- * @type {string}
726
- * @memberof LlmApiGetLLMByIDInOrg
727
- */
728
- readonly id: string
729
135
  }
730
136
 
731
137
  /**
@@ -742,48 +148,6 @@ export interface LlmApiListAvailableModelInOrgRequest {
742
148
  readonly orgName: string
743
149
  }
744
150
 
745
- /**
746
- * Request parameters for listLLMForOrg operation in LlmApi.
747
- * @export
748
- * @interface LlmApiListLLMForOrgRequest
749
- */
750
- export interface LlmApiListLLMForOrgRequest {
751
- /**
752
- *
753
- * @type {string}
754
- * @memberof LlmApiListLLMForOrg
755
- */
756
- readonly orgName: string
757
- }
758
-
759
- /**
760
- * Request parameters for updateLLM operation in LlmApi.
761
- * @export
762
- * @interface LlmApiUpdateLLMRequest
763
- */
764
- export interface LlmApiUpdateLLMRequest {
765
- /**
766
- *
767
- * @type {string}
768
- * @memberof LlmApiUpdateLLM
769
- */
770
- readonly orgName: string
771
-
772
- /**
773
- * ID of the LLM
774
- * @type {string}
775
- * @memberof LlmApiUpdateLLM
776
- */
777
- readonly id: string
778
-
779
- /**
780
- *
781
- * @type {Llm}
782
- * @memberof LlmApiUpdateLLM
783
- */
784
- readonly body: Llm
785
- }
786
-
787
151
  /**
788
152
  * LlmApi - object-oriented interface
789
153
  * @export
@@ -791,58 +155,6 @@ export interface LlmApiUpdateLLMRequest {
791
155
  * @extends {BaseAPI}
792
156
  */
793
157
  export class LlmApi extends BaseAPI implements LlmApiInterface {
794
- /**
795
- * add LLM for org
796
- * @summary add LLM for org
797
- * @param {LlmApiAddLLMForOrgRequest} requestParameters Request parameters.
798
- * @param {*} [options] Override http request option.
799
- * @deprecated
800
- * @throws {RequiredError}
801
- * @memberof LlmApi
802
- */
803
- public addLLMForOrg(requestParameters: LlmApiAddLLMForOrgRequest, options?: RawAxiosRequestConfig) {
804
- return LlmApiFp(this.configuration).addLLMForOrg(requestParameters.orgName, requestParameters.llm, options).then((request) => request(this.axios, this.basePath));
805
- }
806
-
807
- /**
808
- * check apikey available for org
809
- * @summary check apikey available for org
810
- * @param {LlmApiCheckAPIKeyForOrgRequest} requestParameters Request parameters.
811
- * @param {*} [options] Override http request option.
812
- * @deprecated
813
- * @throws {RequiredError}
814
- * @memberof LlmApi
815
- */
816
- public checkAPIKeyForOrg(requestParameters: LlmApiCheckAPIKeyForOrgRequest, options?: RawAxiosRequestConfig) {
817
- return LlmApiFp(this.configuration).checkAPIKeyForOrg(requestParameters.orgName, requestParameters.checkAPIKey, options).then((request) => request(this.axios, this.basePath));
818
- }
819
-
820
- /**
821
- *
822
- * @summary Delete LLM
823
- * @param {LlmApiDeleteLLMRequest} requestParameters Request parameters.
824
- * @param {*} [options] Override http request option.
825
- * @deprecated
826
- * @throws {RequiredError}
827
- * @memberof LlmApi
828
- */
829
- public deleteLLM(requestParameters: LlmApiDeleteLLMRequest, options?: RawAxiosRequestConfig) {
830
- return LlmApiFp(this.configuration).deleteLLM(requestParameters.orgName, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
831
- }
832
-
833
- /**
834
- *
835
- * @summary Get LLM by ID in org
836
- * @param {LlmApiGetLLMByIDInOrgRequest} requestParameters Request parameters.
837
- * @param {*} [options] Override http request option.
838
- * @deprecated
839
- * @throws {RequiredError}
840
- * @memberof LlmApi
841
- */
842
- public getLLMByIDInOrg(requestParameters: LlmApiGetLLMByIDInOrgRequest, options?: RawAxiosRequestConfig) {
843
- return LlmApiFp(this.configuration).getLLMByIDInOrg(requestParameters.orgName, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
844
- }
845
-
846
158
  /**
847
159
  *
848
160
  * @summary List available model in org
@@ -854,31 +166,5 @@ export class LlmApi extends BaseAPI implements LlmApiInterface {
854
166
  public listAvailableModelInOrg(requestParameters: LlmApiListAvailableModelInOrgRequest, options?: RawAxiosRequestConfig) {
855
167
  return LlmApiFp(this.configuration).listAvailableModelInOrg(requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
856
168
  }
857
-
858
- /**
859
- * available
860
- * @summary List available LLM for org
861
- * @param {LlmApiListLLMForOrgRequest} requestParameters Request parameters.
862
- * @param {*} [options] Override http request option.
863
- * @deprecated
864
- * @throws {RequiredError}
865
- * @memberof LlmApi
866
- */
867
- public listLLMForOrg(requestParameters: LlmApiListLLMForOrgRequest, options?: RawAxiosRequestConfig) {
868
- return LlmApiFp(this.configuration).listLLMForOrg(requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
869
- }
870
-
871
- /**
872
- *
873
- * @summary Update LLM
874
- * @param {LlmApiUpdateLLMRequest} requestParameters Request parameters.
875
- * @param {*} [options] Override http request option.
876
- * @deprecated
877
- * @throws {RequiredError}
878
- * @memberof LlmApi
879
- */
880
- public updateLLM(requestParameters: LlmApiUpdateLLMRequest, options?: RawAxiosRequestConfig) {
881
- return LlmApiFp(this.configuration).updateLLM(requestParameters.orgName, requestParameters.id, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
882
- }
883
169
  }
884
170