kb-cloud-client-typescript 2.4.0-alpha.115 → 2.4.0-alpha.117
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/dist/adminapi/apis/data-replication-api.d.ts +326 -0
- package/dist/adminapi/apis/data-replication-api.d.ts.map +1 -1
- package/dist/adminapi/apis/data-replication-api.js +377 -0
- package/dist/adminapi/apis/data-replication-api.js.map +1 -1
- package/dist/adminapi/models/data-channel-endpoint-create.d.ts +20 -1
- package/dist/adminapi/models/data-channel-endpoint-create.d.ts.map +1 -1
- package/dist/adminapi/models/data-channel-list-endpoint.d.ts +25 -0
- package/dist/adminapi/models/data-channel-list-endpoint.d.ts.map +1 -1
- package/dist/adminapi/models/data-endpoint-create.d.ts +72 -0
- package/dist/adminapi/models/data-endpoint-create.d.ts.map +1 -0
- package/dist/adminapi/models/data-endpoint-create.js +16 -0
- package/dist/adminapi/models/data-endpoint-create.js.map +1 -0
- package/dist/adminapi/models/data-endpoint-response.d.ts +43 -0
- package/dist/adminapi/models/data-endpoint-response.d.ts.map +1 -0
- package/dist/adminapi/models/data-endpoint-response.js +16 -0
- package/dist/adminapi/models/data-endpoint-response.js.map +1 -0
- package/dist/adminapi/models/data-endpoint-type-creation.d.ts +22 -0
- package/dist/adminapi/models/data-endpoint-type-creation.d.ts.map +1 -0
- package/dist/adminapi/models/data-endpoint-type-creation.js +26 -0
- package/dist/adminapi/models/data-endpoint-type-creation.js.map +1 -0
- package/dist/adminapi/models/data-replication-endpoint-type.d.ts +1 -0
- package/dist/adminapi/models/data-replication-endpoint-type.d.ts.map +1 -1
- package/dist/adminapi/models/data-replication-endpoint-type.js +2 -1
- package/dist/adminapi/models/data-replication-endpoint-type.js.map +1 -1
- package/dist/adminapi/models/definition-endpoint.d.ts +25 -0
- package/dist/adminapi/models/definition-endpoint.d.ts.map +1 -0
- package/dist/adminapi/models/definition-endpoint.js +16 -0
- package/dist/adminapi/models/definition-endpoint.js.map +1 -0
- package/dist/adminapi/models/index.d.ts +4 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +4 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/internalapi/api.d.ts +1 -0
- package/dist/internalapi/api.d.ts.map +1 -1
- package/dist/internalapi/api.js +1 -0
- package/dist/internalapi/api.js.map +1 -1
- package/dist/internalapi/apis/llm-api.d.ts +142 -0
- package/dist/internalapi/apis/llm-api.d.ts.map +1 -0
- package/dist/internalapi/apis/llm-api.js +191 -0
- package/dist/internalapi/apis/llm-api.js.map +1 -0
- package/dist/internalapi/models/access-level.d.ts +22 -0
- package/dist/internalapi/models/access-level.d.ts.map +1 -0
- package/dist/internalapi/models/access-level.js +26 -0
- package/dist/internalapi/models/access-level.js.map +1 -0
- package/dist/internalapi/models/index.d.ts +3 -0
- package/dist/internalapi/models/index.d.ts.map +1 -1
- package/dist/internalapi/models/index.js +3 -0
- package/dist/internalapi/models/index.js.map +1 -1
- package/dist/internalapi/models/llm-list.d.ts +26 -0
- package/dist/internalapi/models/llm-list.d.ts.map +1 -0
- package/dist/internalapi/models/llm-list.js +16 -0
- package/dist/internalapi/models/llm-list.js.map +1 -0
- package/dist/internalapi/models/llm.d.ts +64 -0
- package/dist/internalapi/models/llm.d.ts.map +1 -0
- package/dist/internalapi/models/llm.js +16 -0
- package/dist/internalapi/models/llm.js.map +1 -0
- package/dist/openapi/apis/data-replication-api.d.ts +326 -0
- package/dist/openapi/apis/data-replication-api.d.ts.map +1 -1
- package/dist/openapi/apis/data-replication-api.js +377 -0
- package/dist/openapi/apis/data-replication-api.js.map +1 -1
- package/dist/openapi/models/data-channel-endpoint-create.d.ts +20 -1
- package/dist/openapi/models/data-channel-endpoint-create.d.ts.map +1 -1
- package/dist/openapi/models/data-channel-list-endpoint.d.ts +25 -0
- package/dist/openapi/models/data-channel-list-endpoint.d.ts.map +1 -1
- package/dist/openapi/models/data-endpoint-create.d.ts +72 -0
- package/dist/openapi/models/data-endpoint-create.d.ts.map +1 -0
- package/dist/openapi/models/data-endpoint-create.js +16 -0
- package/dist/openapi/models/data-endpoint-create.js.map +1 -0
- package/dist/openapi/models/data-endpoint-response.d.ts +43 -0
- package/dist/openapi/models/data-endpoint-response.d.ts.map +1 -0
- package/dist/openapi/models/data-endpoint-response.js +16 -0
- package/dist/openapi/models/data-endpoint-response.js.map +1 -0
- package/dist/openapi/models/data-endpoint-type-creation.d.ts +22 -0
- package/dist/openapi/models/data-endpoint-type-creation.d.ts.map +1 -0
- package/dist/openapi/models/data-endpoint-type-creation.js +26 -0
- package/dist/openapi/models/data-endpoint-type-creation.js.map +1 -0
- package/dist/openapi/models/data-replication-endpoint-type.d.ts +1 -0
- package/dist/openapi/models/data-replication-endpoint-type.d.ts.map +1 -1
- package/dist/openapi/models/data-replication-endpoint-type.js +2 -1
- package/dist/openapi/models/data-replication-endpoint-type.js.map +1 -1
- package/dist/openapi/models/definition-endpoint.d.ts +25 -0
- package/dist/openapi/models/definition-endpoint.d.ts.map +1 -0
- package/dist/openapi/models/definition-endpoint.js +16 -0
- package/dist/openapi/models/definition-endpoint.js.map +1 -0
- package/dist/openapi/models/index.d.ts +4 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +4 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +4 -0
- package/src/adminapi/apis/data-replication-api.ts +584 -0
- package/src/adminapi/models/data-channel-endpoint-create.ts +22 -1
- package/src/adminapi/models/data-channel-list-endpoint.ts +27 -0
- package/src/adminapi/models/data-endpoint-create.ts +83 -0
- package/src/adminapi/models/data-endpoint-response.ts +48 -0
- package/src/adminapi/models/data-endpoint-type-creation.ts +31 -0
- package/src/adminapi/models/data-replication-endpoint-type.ts +2 -1
- package/src/adminapi/models/definition-endpoint.ts +30 -0
- package/src/adminapi/models/index.ts +4 -0
- package/src/adminapi.yaml +250 -0
- package/src/internalapi/.openapi-generator/FILES +4 -0
- package/src/internalapi/api.ts +1 -0
- package/src/internalapi/apis/llm-api.ts +246 -0
- package/src/internalapi/models/access-level.ts +31 -0
- package/src/internalapi/models/index.ts +3 -0
- package/src/internalapi/models/llm-list.ts +33 -0
- package/src/internalapi/models/llm.ts +71 -0
- package/src/internalapi.yaml +117 -0
- package/src/openapi/.openapi-generator/FILES +4 -0
- package/src/openapi/apis/data-replication-api.ts +583 -0
- package/src/openapi/models/data-channel-endpoint-create.ts +22 -1
- package/src/openapi/models/data-channel-list-endpoint.ts +27 -0
- package/src/openapi/models/data-endpoint-create.ts +83 -0
- package/src/openapi/models/data-endpoint-response.ts +48 -0
- package/src/openapi/models/data-endpoint-type-creation.ts +31 -0
- package/src/openapi/models/data-replication-endpoint-type.ts +2 -1
- package/src/openapi/models/definition-endpoint.ts +30 -0
- package/src/openapi/models/index.ts +4 -0
- package/src/openapi.yaml +1491 -1242
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud Internal API
|
|
5
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { APIErrorResponse } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { Llm } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import type { LlmList } from '../models';
|
|
30
|
+
/**
|
|
31
|
+
* LlmApi - axios parameter creator
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export const LlmApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
35
|
+
return {
|
|
36
|
+
/**
|
|
37
|
+
* Returns the LLM config with plaintext api_key for internal service-to-service callers.
|
|
38
|
+
* @summary Get LLM by ID with plaintext api_key
|
|
39
|
+
* @param {string} id ID of the LLM
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
getLLMWithAPIKey: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44
|
+
// verify required parameter 'id' is not null or undefined
|
|
45
|
+
assertParamExists('getLLMWithAPIKey', 'id', id)
|
|
46
|
+
const localVarPath = `/internal/v1/llm/{id}`
|
|
47
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
48
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50
|
+
let baseOptions;
|
|
51
|
+
if (configuration) {
|
|
52
|
+
baseOptions = configuration.baseOptions;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
56
|
+
const localVarHeaderParameter = {} as any;
|
|
57
|
+
const localVarQueryParameter = {} as any;
|
|
58
|
+
|
|
59
|
+
// authentication BasicAuth required
|
|
60
|
+
// http basic authentication required
|
|
61
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
66
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
67
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
url: toPathString(localVarUrlObj),
|
|
71
|
+
options: localVarRequestOptions,
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
/**
|
|
75
|
+
* Returns LLM configs with plaintext api_key for internal service-to-service callers.
|
|
76
|
+
* @summary List LLM with plaintext api_key
|
|
77
|
+
* @param {*} [options] Override http request option.
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
*/
|
|
80
|
+
listLLMWithAPIKey: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
81
|
+
const localVarPath = `/internal/v1/llm`;
|
|
82
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
83
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
84
|
+
let baseOptions;
|
|
85
|
+
if (configuration) {
|
|
86
|
+
baseOptions = configuration.baseOptions;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
90
|
+
const localVarHeaderParameter = {} as any;
|
|
91
|
+
const localVarQueryParameter = {} as any;
|
|
92
|
+
|
|
93
|
+
// authentication BasicAuth required
|
|
94
|
+
// http basic authentication required
|
|
95
|
+
setBasicAuthToObject(localVarRequestOptions, configuration)
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
100
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
101
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
102
|
+
|
|
103
|
+
return {
|
|
104
|
+
url: toPathString(localVarUrlObj),
|
|
105
|
+
options: localVarRequestOptions,
|
|
106
|
+
};
|
|
107
|
+
},
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* LlmApi - functional programming interface
|
|
113
|
+
* @export
|
|
114
|
+
*/
|
|
115
|
+
export const LlmApiFp = function(configuration?: Configuration) {
|
|
116
|
+
const localVarAxiosParamCreator = LlmApiAxiosParamCreator(configuration)
|
|
117
|
+
return {
|
|
118
|
+
/**
|
|
119
|
+
* Returns the LLM config with plaintext api_key for internal service-to-service callers.
|
|
120
|
+
* @summary Get LLM by ID with plaintext api_key
|
|
121
|
+
* @param {string} id ID of the LLM
|
|
122
|
+
* @param {*} [options] Override http request option.
|
|
123
|
+
* @throws {RequiredError}
|
|
124
|
+
*/
|
|
125
|
+
async getLLMWithAPIKey(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Llm>> {
|
|
126
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLLMWithAPIKey(id, options);
|
|
127
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
128
|
+
const localVarOperationServerBasePath = operationServerMap['LlmApi.getLLMWithAPIKey']?.[localVarOperationServerIndex]?.url;
|
|
129
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
130
|
+
},
|
|
131
|
+
/**
|
|
132
|
+
* Returns LLM configs with plaintext api_key for internal service-to-service callers.
|
|
133
|
+
* @summary List LLM with plaintext api_key
|
|
134
|
+
* @param {*} [options] Override http request option.
|
|
135
|
+
* @throws {RequiredError}
|
|
136
|
+
*/
|
|
137
|
+
async listLLMWithAPIKey(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LlmList>> {
|
|
138
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listLLMWithAPIKey(options);
|
|
139
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
140
|
+
const localVarOperationServerBasePath = operationServerMap['LlmApi.listLLMWithAPIKey']?.[localVarOperationServerIndex]?.url;
|
|
141
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
142
|
+
},
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* LlmApi - factory interface
|
|
148
|
+
* @export
|
|
149
|
+
*/
|
|
150
|
+
export const LlmApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
151
|
+
const localVarFp = LlmApiFp(configuration)
|
|
152
|
+
return {
|
|
153
|
+
/**
|
|
154
|
+
* Returns the LLM config with plaintext api_key for internal service-to-service callers.
|
|
155
|
+
* @summary Get LLM by ID with plaintext api_key
|
|
156
|
+
* @param {LlmApiGetLLMWithAPIKeyRequest} requestParameters Request parameters.
|
|
157
|
+
* @param {*} [options] Override http request option.
|
|
158
|
+
* @throws {RequiredError}
|
|
159
|
+
*/
|
|
160
|
+
getLLMWithAPIKey(requestParameters: LlmApiGetLLMWithAPIKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<Llm> {
|
|
161
|
+
return localVarFp.getLLMWithAPIKey(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
162
|
+
},
|
|
163
|
+
/**
|
|
164
|
+
* Returns LLM configs with plaintext api_key for internal service-to-service callers.
|
|
165
|
+
* @summary List LLM with plaintext api_key
|
|
166
|
+
* @param {*} [options] Override http request option.
|
|
167
|
+
* @throws {RequiredError}
|
|
168
|
+
*/
|
|
169
|
+
listLLMWithAPIKey(options?: RawAxiosRequestConfig): AxiosPromise<LlmList> {
|
|
170
|
+
return localVarFp.listLLMWithAPIKey(options).then((request) => request(axios, basePath));
|
|
171
|
+
},
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* LlmApi - interface
|
|
177
|
+
* @export
|
|
178
|
+
* @interface LlmApi
|
|
179
|
+
*/
|
|
180
|
+
export interface LlmApiInterface {
|
|
181
|
+
/**
|
|
182
|
+
* Returns the LLM config with plaintext api_key for internal service-to-service callers.
|
|
183
|
+
* @summary Get LLM by ID with plaintext api_key
|
|
184
|
+
* @param {LlmApiGetLLMWithAPIKeyRequest} requestParameters Request parameters.
|
|
185
|
+
* @param {*} [options] Override http request option.
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
* @memberof LlmApiInterface
|
|
188
|
+
*/
|
|
189
|
+
getLLMWithAPIKey(requestParameters: LlmApiGetLLMWithAPIKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise<Llm>;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Returns LLM configs with plaintext api_key for internal service-to-service callers.
|
|
193
|
+
* @summary List LLM with plaintext api_key
|
|
194
|
+
* @param {*} [options] Override http request option.
|
|
195
|
+
* @throws {RequiredError}
|
|
196
|
+
* @memberof LlmApiInterface
|
|
197
|
+
*/
|
|
198
|
+
listLLMWithAPIKey(options?: RawAxiosRequestConfig): AxiosPromise<LlmList>;
|
|
199
|
+
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Request parameters for getLLMWithAPIKey operation in LlmApi.
|
|
204
|
+
* @export
|
|
205
|
+
* @interface LlmApiGetLLMWithAPIKeyRequest
|
|
206
|
+
*/
|
|
207
|
+
export interface LlmApiGetLLMWithAPIKeyRequest {
|
|
208
|
+
/**
|
|
209
|
+
* ID of the LLM
|
|
210
|
+
* @type {string}
|
|
211
|
+
* @memberof LlmApiGetLLMWithAPIKey
|
|
212
|
+
*/
|
|
213
|
+
readonly id: string
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* LlmApi - object-oriented interface
|
|
218
|
+
* @export
|
|
219
|
+
* @class LlmApi
|
|
220
|
+
* @extends {BaseAPI}
|
|
221
|
+
*/
|
|
222
|
+
export class LlmApi extends BaseAPI implements LlmApiInterface {
|
|
223
|
+
/**
|
|
224
|
+
* Returns the LLM config with plaintext api_key for internal service-to-service callers.
|
|
225
|
+
* @summary Get LLM by ID with plaintext api_key
|
|
226
|
+
* @param {LlmApiGetLLMWithAPIKeyRequest} requestParameters Request parameters.
|
|
227
|
+
* @param {*} [options] Override http request option.
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
* @memberof LlmApi
|
|
230
|
+
*/
|
|
231
|
+
public getLLMWithAPIKey(requestParameters: LlmApiGetLLMWithAPIKeyRequest, options?: RawAxiosRequestConfig) {
|
|
232
|
+
return LlmApiFp(this.configuration).getLLMWithAPIKey(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Returns LLM configs with plaintext api_key for internal service-to-service callers.
|
|
237
|
+
* @summary List LLM with plaintext api_key
|
|
238
|
+
* @param {*} [options] Override http request option.
|
|
239
|
+
* @throws {RequiredError}
|
|
240
|
+
* @memberof LlmApi
|
|
241
|
+
*/
|
|
242
|
+
public listLLMWithAPIKey(options?: RawAxiosRequestConfig) {
|
|
243
|
+
return LlmApiFp(this.configuration).listLLMWithAPIKey(options).then((request) => request(this.axios, this.basePath));
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud Internal API
|
|
5
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const AccessLevel = {
|
|
24
|
+
Platform: 'Platform',
|
|
25
|
+
Organization: 'Organization'
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
28
|
+
export type AccessLevel = typeof AccessLevel[keyof typeof AccessLevel];
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './apierror-response';
|
|
2
|
+
export * from './access-level';
|
|
2
3
|
export * from './alert';
|
|
3
4
|
export * from './alert-status';
|
|
4
5
|
export * from './apiserver-phase-detail';
|
|
@@ -41,6 +42,8 @@ export * from './io-quantity';
|
|
|
41
42
|
export * from './ip-pool-provider';
|
|
42
43
|
export * from './ip-pool-selection';
|
|
43
44
|
export * from './koordinator-reservation-resource-class';
|
|
45
|
+
export * from './llm';
|
|
46
|
+
export * from './llm-list';
|
|
44
47
|
export * from './localized-description';
|
|
45
48
|
export * from './network-mode';
|
|
46
49
|
export * from './ops-request-name';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud Internal API
|
|
5
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { Llm } from './llm';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface LlmList
|
|
24
|
+
*/
|
|
25
|
+
export interface LlmList {
|
|
26
|
+
/**
|
|
27
|
+
* Items is the list of llm objects
|
|
28
|
+
* @type {Array<Llm>}
|
|
29
|
+
* @memberof LlmList
|
|
30
|
+
*/
|
|
31
|
+
'items': Array<Llm>;
|
|
32
|
+
}
|
|
33
|
+
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud Internal API
|
|
5
|
+
* The Internal API is using for interaction of ApeCloud platform microservices.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { AccessLevel } from './access-level';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* llm
|
|
22
|
+
* @export
|
|
23
|
+
* @interface Llm
|
|
24
|
+
*/
|
|
25
|
+
export interface Llm {
|
|
26
|
+
/**
|
|
27
|
+
* ID of the llm
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof Llm
|
|
30
|
+
*/
|
|
31
|
+
'id'?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Name of the llm
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof Llm
|
|
36
|
+
*/
|
|
37
|
+
'name': string;
|
|
38
|
+
/**
|
|
39
|
+
* Whether this LLM is enabled
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof Llm
|
|
42
|
+
*/
|
|
43
|
+
'enabled': boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Config. For OpenAI-compatible providers, model entries under `available_models` may include `max_tokens` as the maximum output token count and `context_length` as the total context window. `context_window` is a deprecated compatibility alias and should not be used by new clients.
|
|
46
|
+
* @type {{ [key: string]: object; }}
|
|
47
|
+
* @memberof Llm
|
|
48
|
+
*/
|
|
49
|
+
'config': { [key: string]: object; };
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {AccessLevel}
|
|
53
|
+
* @memberof Llm
|
|
54
|
+
*/
|
|
55
|
+
'level'?: AccessLevel;
|
|
56
|
+
/**
|
|
57
|
+
* CreatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof Llm
|
|
60
|
+
*/
|
|
61
|
+
'createdAt'?: string;
|
|
62
|
+
/**
|
|
63
|
+
* UpdatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof Llm
|
|
66
|
+
*/
|
|
67
|
+
'updatedAt'?: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
package/src/internalapi.yaml
CHANGED
|
@@ -1079,6 +1079,59 @@ paths:
|
|
|
1079
1079
|
$ref: '#/components/responses/403'
|
|
1080
1080
|
'404':
|
|
1081
1081
|
$ref: '#/components/responses/404'
|
|
1082
|
+
/internal/v1/llm:
|
|
1083
|
+
get:
|
|
1084
|
+
operationId: listLLMWithAPIKey
|
|
1085
|
+
summary: List LLM with plaintext api_key
|
|
1086
|
+
description: Returns LLM configs with plaintext api_key for internal service-to-service callers.
|
|
1087
|
+
produces:
|
|
1088
|
+
- application/json
|
|
1089
|
+
responses:
|
|
1090
|
+
'200':
|
|
1091
|
+
description: A successful response.
|
|
1092
|
+
content:
|
|
1093
|
+
application/json:
|
|
1094
|
+
schema:
|
|
1095
|
+
$ref: '#/components/schemas/llmList'
|
|
1096
|
+
'401':
|
|
1097
|
+
$ref: '#/components/responses/401'
|
|
1098
|
+
'403':
|
|
1099
|
+
$ref: '#/components/responses/403'
|
|
1100
|
+
'404':
|
|
1101
|
+
$ref: '#/components/responses/404'
|
|
1102
|
+
'500':
|
|
1103
|
+
$ref: '#/components/responses/500'
|
|
1104
|
+
tags:
|
|
1105
|
+
- llm
|
|
1106
|
+
/internal/v1/llm/{id}:
|
|
1107
|
+
get:
|
|
1108
|
+
tags:
|
|
1109
|
+
- llm
|
|
1110
|
+
operationId: getLLMWithAPIKey
|
|
1111
|
+
summary: Get LLM by ID with plaintext api_key
|
|
1112
|
+
description: Returns the LLM config with plaintext api_key for internal service-to-service callers.
|
|
1113
|
+
parameters:
|
|
1114
|
+
- description: ID of the LLM
|
|
1115
|
+
in: path
|
|
1116
|
+
name: id
|
|
1117
|
+
required: true
|
|
1118
|
+
schema:
|
|
1119
|
+
type: string
|
|
1120
|
+
responses:
|
|
1121
|
+
'200':
|
|
1122
|
+
description: LLM by ID
|
|
1123
|
+
content:
|
|
1124
|
+
application/json:
|
|
1125
|
+
schema:
|
|
1126
|
+
$ref: '#/components/schemas/llm'
|
|
1127
|
+
'401':
|
|
1128
|
+
$ref: '#/components/responses/401'
|
|
1129
|
+
'403':
|
|
1130
|
+
$ref: '#/components/responses/403'
|
|
1131
|
+
'404':
|
|
1132
|
+
$ref: '#/components/responses/404'
|
|
1133
|
+
'500':
|
|
1134
|
+
$ref: '#/components/responses/500'
|
|
1082
1135
|
components:
|
|
1083
1136
|
securitySchemes:
|
|
1084
1137
|
BasicAuth:
|
|
@@ -2658,6 +2711,70 @@ components:
|
|
|
2658
2711
|
description: platformParameter value
|
|
2659
2712
|
description:
|
|
2660
2713
|
$ref: '#/components/schemas/localizedDescription'
|
|
2714
|
+
AccessLevel:
|
|
2715
|
+
type: string
|
|
2716
|
+
enum:
|
|
2717
|
+
- Platform
|
|
2718
|
+
- Organization
|
|
2719
|
+
llm:
|
|
2720
|
+
description: llm
|
|
2721
|
+
properties:
|
|
2722
|
+
id:
|
|
2723
|
+
description: ID of the llm
|
|
2724
|
+
title: ID
|
|
2725
|
+
type: string
|
|
2726
|
+
name:
|
|
2727
|
+
description: Name of the llm
|
|
2728
|
+
title: Name
|
|
2729
|
+
type: string
|
|
2730
|
+
enabled:
|
|
2731
|
+
description: Whether this LLM is enabled
|
|
2732
|
+
title: Enabled
|
|
2733
|
+
type: boolean
|
|
2734
|
+
config:
|
|
2735
|
+
description: |
|
|
2736
|
+
Config.
|
|
2737
|
+
|
|
2738
|
+
For OpenAI-compatible providers, model entries under `available_models`
|
|
2739
|
+
may include `max_tokens` as the maximum output token count and
|
|
2740
|
+
`context_length` as the total context window. `context_window` is a
|
|
2741
|
+
deprecated compatibility alias and should not be used by new clients.
|
|
2742
|
+
title: Config
|
|
2743
|
+
type: object
|
|
2744
|
+
additionalProperties:
|
|
2745
|
+
type: object
|
|
2746
|
+
level:
|
|
2747
|
+
$ref: '#/components/schemas/AccessLevel'
|
|
2748
|
+
createdAt:
|
|
2749
|
+
description: |-
|
|
2750
|
+
CreatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
|
|
2751
|
+
|
|
2752
|
+
Populated by the system. Read-only. Null for lists
|
|
2753
|
+
format: date-time
|
|
2754
|
+
type: string
|
|
2755
|
+
updatedAt:
|
|
2756
|
+
description: |-
|
|
2757
|
+
UpdatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
|
|
2758
|
+
|
|
2759
|
+
Populated by the system. Read-only. Null for lists
|
|
2760
|
+
format: date-time
|
|
2761
|
+
type: string
|
|
2762
|
+
required:
|
|
2763
|
+
- name
|
|
2764
|
+
- config
|
|
2765
|
+
- enabled
|
|
2766
|
+
type: object
|
|
2767
|
+
llmList:
|
|
2768
|
+
required:
|
|
2769
|
+
- items
|
|
2770
|
+
type: object
|
|
2771
|
+
properties:
|
|
2772
|
+
items:
|
|
2773
|
+
type: array
|
|
2774
|
+
x-nullable: false
|
|
2775
|
+
description: Items is the list of llm objects
|
|
2776
|
+
items:
|
|
2777
|
+
$ref: '#/components/schemas/llm'
|
|
2661
2778
|
responses:
|
|
2662
2779
|
'400':
|
|
2663
2780
|
content:
|
|
@@ -376,6 +376,9 @@ models/data-check-summary.ts
|
|
|
376
376
|
models/data-check-table-summary.ts
|
|
377
377
|
models/data-check-type.ts
|
|
378
378
|
models/data-disk.ts
|
|
379
|
+
models/data-endpoint-create.ts
|
|
380
|
+
models/data-endpoint-response.ts
|
|
381
|
+
models/data-endpoint-type-creation.ts
|
|
379
382
|
models/data-import200-response.ts
|
|
380
383
|
models/data-replication-channel-container.ts
|
|
381
384
|
models/data-replication-create.ts
|
|
@@ -392,6 +395,7 @@ models/database-option.ts
|
|
|
392
395
|
models/database.ts
|
|
393
396
|
models/datasource.ts
|
|
394
397
|
models/db-tderequest.ts
|
|
398
|
+
models/definition-endpoint.ts
|
|
395
399
|
models/delete-bench-option.ts
|
|
396
400
|
models/disaster-recovery-cluster-item.ts
|
|
397
401
|
models/disaster-recovery-cluster-list.ts
|