agentbase-web-sdk 1.12.0
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/LICENSE +0 -0
- package/README.md +41 -0
- package/dist/cjs/sdk.js +16322 -0
- package/dist/cjs/sdk.js.map +1 -0
- package/dist/esm/sdk.js +16292 -0
- package/dist/esm/sdk.js.map +1 -0
- package/dist/iife/sdk.js +20121 -0
- package/package.json +54 -0
- package/types/channel.d.ts +79 -0
- package/types/client.d.ts +289 -0
- package/types/enums/authentication-factor.d.ts +6 -0
- package/types/enums/authenticator-type.d.ts +3 -0
- package/types/enums/browser-permission.d.ts +22 -0
- package/types/enums/browser.d.ts +16 -0
- package/types/enums/credit-card.d.ts +19 -0
- package/types/enums/data-api-catalog-data-source-database-type.d.ts +6 -0
- package/types/enums/data-api-catalog-data-source-visibility-source.d.ts +7 -0
- package/types/enums/data-api-catalog-database-availability.d.ts +5 -0
- package/types/enums/data-api-catalog-database-classification.d.ts +4 -0
- package/types/enums/data-api-catalog-database-status.d.ts +4 -0
- package/types/enums/data-api-catalog-database-visibility-source.d.ts +7 -0
- package/types/enums/data-api-filter-logic.d.ts +4 -0
- package/types/enums/data-api-owned-binding-principal-type.d.ts +4 -0
- package/types/enums/data-api-owned-binding-status.d.ts +4 -0
- package/types/enums/distillation-message-role.d.ts +6 -0
- package/types/enums/distillation-mode.d.ts +4 -0
- package/types/enums/distillation-tool-status.d.ts +4 -0
- package/types/enums/execution-method.d.ts +9 -0
- package/types/enums/execution-status.d.ts +7 -0
- package/types/enums/execution-trigger.d.ts +5 -0
- package/types/enums/export-job-mode.d.ts +4 -0
- package/types/enums/export-mode.d.ts +3 -0
- package/types/enums/feedback-type.d.ts +5 -0
- package/types/enums/flag.d.ts +197 -0
- package/types/enums/format.d.ts +4 -0
- package/types/enums/image-format.d.ts +9 -0
- package/types/enums/image-gravity.d.ts +11 -0
- package/types/enums/kind.d.ts +6 -0
- package/types/enums/kinds.d.ts +6 -0
- package/types/enums/knowledge-base-data-source-document-import-result-status.d.ts +5 -0
- package/types/enums/memory-access-mode.d.ts +4 -0
- package/types/enums/memory-batch-operation.d.ts +5 -0
- package/types/enums/memory-bulk-delete-item-status.d.ts +4 -0
- package/types/enums/memory-bulk-delete-response-status.d.ts +4 -0
- package/types/enums/memory-handling-policy.d.ts +5 -0
- package/types/enums/memory-message-role.d.ts +5 -0
- package/types/enums/memory-pipeline-run-result-status.d.ts +4 -0
- package/types/enums/memory-pipeline-run-scenario.d.ts +6 -0
- package/types/enums/memory-pipeline-run-status.d.ts +6 -0
- package/types/enums/memory-record-kind.d.ts +5 -0
- package/types/enums/memory-record-sensitivity.d.ts +5 -0
- package/types/enums/memory-scope.d.ts +7 -0
- package/types/enums/memory-sensitivity.d.ts +6 -0
- package/types/enums/memory-share-subject-type.d.ts +4 -0
- package/types/enums/method.d.ts +9 -0
- package/types/enums/o-auth-provider.d.ts +45 -0
- package/types/enums/organization-project-deletion-deletion-status.d.ts +5 -0
- package/types/enums/organization-role.d.ts +8 -0
- package/types/enums/organization-usage-range.d.ts +5 -0
- package/types/enums/outcome.d.ts +6 -0
- package/types/enums/path-match.d.ts +4 -0
- package/types/enums/profile-extraction-mode.d.ts +4 -0
- package/types/enums/profile-type.d.ts +4 -0
- package/types/enums/project-deletion-restore-status.d.ts +3 -0
- package/types/enums/project-deletion-result-deletion-status.d.ts +5 -0
- package/types/enums/project-deletion-result-status.d.ts +5 -0
- package/types/enums/record-kind.d.ts +5 -0
- package/types/enums/retention-policy.d.ts +3 -0
- package/types/enums/scenario.d.ts +6 -0
- package/types/enums/scene.d.ts +4 -0
- package/types/enums/scope.d.ts +5 -0
- package/types/enums/source-type.d.ts +6 -0
- package/types/enums/status.d.ts +23 -0
- package/types/enums/theme.d.ts +4 -0
- package/types/enums/timezone.d.ts +422 -0
- package/types/enums/transaction-action.d.ts +12 -0
- package/types/enums/validation-status.d.ts +6 -0
- package/types/enums/verification-source.d.ts +5 -0
- package/types/id.d.ts +20 -0
- package/types/index.d.ts +105 -0
- package/types/models.d.ts +3368 -0
- package/types/operator.d.ts +180 -0
- package/types/permission.d.ts +43 -0
- package/types/query.d.ts +442 -0
- package/types/role.d.ts +70 -0
- package/types/service.d.ts +11 -0
- package/types/services/account.d.ts +1350 -0
- package/types/services/agent-runtime.d.ts +370 -0
- package/types/services/ai-gateway.d.ts +888 -0
- package/types/services/avatars.d.ts +320 -0
- package/types/services/data-api.d.ts +257 -0
- package/types/services/databases.d.ts +441 -0
- package/types/services/documents-db.d.ts +409 -0
- package/types/services/functions.d.ts +175 -0
- package/types/services/graphql.d.ts +43 -0
- package/types/services/knowledge-bases.d.ts +304 -0
- package/types/services/llm-gateway.d.ts +289 -0
- package/types/services/locale.d.ts +64 -0
- package/types/services/memory.d.ts +2352 -0
- package/types/services/messaging.d.ts +53 -0
- package/types/services/projects.d.ts +129 -0
- package/types/services/realtime.d.ts +197 -0
- package/types/services/self-hosted-organizations.d.ts +495 -0
- package/types/services/storage.d.ts +265 -0
- package/types/services/tables-db.d.ts +438 -0
- package/types/services/teams.d.ts +341 -0
- package/types/services/vectors-db.d.ts +297 -0
|
@@ -0,0 +1,888 @@
|
|
|
1
|
+
import { Client } from '../client';
|
|
2
|
+
import { Status } from '../enums/status';
|
|
3
|
+
export declare class AiGateway {
|
|
4
|
+
client: Client;
|
|
5
|
+
constructor(client: Client);
|
|
6
|
+
/**
|
|
7
|
+
* Manage unified AI Gateway control-plane resources.
|
|
8
|
+
*
|
|
9
|
+
* @throws {AgentbaseException}
|
|
10
|
+
* @returns {Promise<{}>}
|
|
11
|
+
*/
|
|
12
|
+
listApprovalRequests(): Promise<{}>;
|
|
13
|
+
/**
|
|
14
|
+
* Manage unified AI Gateway control-plane resources.
|
|
15
|
+
*
|
|
16
|
+
* @param {string} params.id - id path parameter.
|
|
17
|
+
* @throws {AgentbaseException}
|
|
18
|
+
* @returns {Promise<{}>}
|
|
19
|
+
*/
|
|
20
|
+
getApprovalRequest(params: {
|
|
21
|
+
id: string;
|
|
22
|
+
}): Promise<{}>;
|
|
23
|
+
/**
|
|
24
|
+
* Manage unified AI Gateway control-plane resources.
|
|
25
|
+
*
|
|
26
|
+
* @param {string} id - id path parameter.
|
|
27
|
+
* @throws {AgentbaseException}
|
|
28
|
+
* @returns {Promise<{}>}
|
|
29
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
30
|
+
*/
|
|
31
|
+
getApprovalRequest(id: string): Promise<{}>;
|
|
32
|
+
/**
|
|
33
|
+
* Manage unified AI Gateway control-plane resources.
|
|
34
|
+
*
|
|
35
|
+
* @param {string} params.id - id path parameter.
|
|
36
|
+
* @throws {AgentbaseException}
|
|
37
|
+
* @returns {Promise<{}>}
|
|
38
|
+
*/
|
|
39
|
+
approveApprovalRequest(params: {
|
|
40
|
+
id: string;
|
|
41
|
+
}): Promise<{}>;
|
|
42
|
+
/**
|
|
43
|
+
* Manage unified AI Gateway control-plane resources.
|
|
44
|
+
*
|
|
45
|
+
* @param {string} id - id path parameter.
|
|
46
|
+
* @throws {AgentbaseException}
|
|
47
|
+
* @returns {Promise<{}>}
|
|
48
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
49
|
+
*/
|
|
50
|
+
approveApprovalRequest(id: string): Promise<{}>;
|
|
51
|
+
/**
|
|
52
|
+
* Manage unified AI Gateway control-plane resources.
|
|
53
|
+
*
|
|
54
|
+
* @param {string} params.id - id path parameter.
|
|
55
|
+
* @throws {AgentbaseException}
|
|
56
|
+
* @returns {Promise<{}>}
|
|
57
|
+
*/
|
|
58
|
+
rejectApprovalRequest(params: {
|
|
59
|
+
id: string;
|
|
60
|
+
}): Promise<{}>;
|
|
61
|
+
/**
|
|
62
|
+
* Manage unified AI Gateway control-plane resources.
|
|
63
|
+
*
|
|
64
|
+
* @param {string} id - id path parameter.
|
|
65
|
+
* @throws {AgentbaseException}
|
|
66
|
+
* @returns {Promise<{}>}
|
|
67
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
68
|
+
*/
|
|
69
|
+
rejectApprovalRequest(id: string): Promise<{}>;
|
|
70
|
+
/**
|
|
71
|
+
* Manage unified AI Gateway control-plane resources.
|
|
72
|
+
*
|
|
73
|
+
* @param {string} params.gatewayId - gatewayId path parameter.
|
|
74
|
+
* @throws {AgentbaseException}
|
|
75
|
+
* @returns {Promise<{}>}
|
|
76
|
+
*/
|
|
77
|
+
updateGatewayPolicy(params: {
|
|
78
|
+
gatewayId: string;
|
|
79
|
+
}): Promise<{}>;
|
|
80
|
+
/**
|
|
81
|
+
* Manage unified AI Gateway control-plane resources.
|
|
82
|
+
*
|
|
83
|
+
* @param {string} gatewayId - gatewayId path parameter.
|
|
84
|
+
* @throws {AgentbaseException}
|
|
85
|
+
* @returns {Promise<{}>}
|
|
86
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
87
|
+
*/
|
|
88
|
+
updateGatewayPolicy(gatewayId: string): Promise<{}>;
|
|
89
|
+
/**
|
|
90
|
+
* Manage unified AI Gateway control-plane resources.
|
|
91
|
+
*
|
|
92
|
+
* @param {string} params.gatewayId - gatewayId path parameter.
|
|
93
|
+
* @throws {AgentbaseException}
|
|
94
|
+
* @returns {Promise<{}>}
|
|
95
|
+
*/
|
|
96
|
+
sealSnapshot(params: {
|
|
97
|
+
gatewayId: string;
|
|
98
|
+
}): Promise<{}>;
|
|
99
|
+
/**
|
|
100
|
+
* Manage unified AI Gateway control-plane resources.
|
|
101
|
+
*
|
|
102
|
+
* @param {string} gatewayId - gatewayId path parameter.
|
|
103
|
+
* @throws {AgentbaseException}
|
|
104
|
+
* @returns {Promise<{}>}
|
|
105
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
106
|
+
*/
|
|
107
|
+
sealSnapshot(gatewayId: string): Promise<{}>;
|
|
108
|
+
/**
|
|
109
|
+
* Manage unified AI Gateway control-plane resources.
|
|
110
|
+
*
|
|
111
|
+
* @param {string} params.gatewayId - gatewayId path parameter.
|
|
112
|
+
* @throws {AgentbaseException}
|
|
113
|
+
* @returns {Promise<{}>}
|
|
114
|
+
*/
|
|
115
|
+
getSnapshotStatus(params: {
|
|
116
|
+
gatewayId: string;
|
|
117
|
+
}): Promise<{}>;
|
|
118
|
+
/**
|
|
119
|
+
* Manage unified AI Gateway control-plane resources.
|
|
120
|
+
*
|
|
121
|
+
* @param {string} gatewayId - gatewayId path parameter.
|
|
122
|
+
* @throws {AgentbaseException}
|
|
123
|
+
* @returns {Promise<{}>}
|
|
124
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
125
|
+
*/
|
|
126
|
+
getSnapshotStatus(gatewayId: string): Promise<{}>;
|
|
127
|
+
/**
|
|
128
|
+
* 读取当前 Shared V2 项目的 Tool Gateway 初始化状态。请求为 `GET /v1/ai-gateway/initialization-status`,无请求参数。调用方需要项目访问权限和 `aiGateway.read` scope。
|
|
129
|
+
*
|
|
130
|
+
* 成功时返回 HTTP 200。`{"status":"ready"}` 表示控制面已确认现有项目表就绪,可沿用原配置重新启用服务。`{"status":"uninitialized"}` 表示项目表尚未就绪,包括尚未建表或迁移标记为 dirty。此查询只读,不会调用模型、建表或开启服务。
|
|
131
|
+
*
|
|
132
|
+
* 缺少 `aiGateway.read` 的项目 API Key 会收到 HTTP 401(`general_unauthorized_scope`)。服务被禁用时,非特权调用方也可能先收到 HTTP 403(`general_service_disabled`)。控制面读取存储发生异常或 Core 无法连接控制面时会返回服务端错误,例如 HTTP 500。此时状态未知,调用方应显示错误并允许重试查询。
|
|
133
|
+
*
|
|
134
|
+
*
|
|
135
|
+
* @throws {AgentbaseException}
|
|
136
|
+
* @returns {Promise<{}>}
|
|
137
|
+
*/
|
|
138
|
+
getInitializationStatus(): Promise<{}>;
|
|
139
|
+
/**
|
|
140
|
+
* Manage unified AI Gateway control-plane resources.
|
|
141
|
+
*
|
|
142
|
+
* @throws {AgentbaseException}
|
|
143
|
+
* @returns {Promise<{}>}
|
|
144
|
+
*/
|
|
145
|
+
listInvocations(): Promise<{}>;
|
|
146
|
+
/**
|
|
147
|
+
* Manage unified AI Gateway control-plane resources.
|
|
148
|
+
*
|
|
149
|
+
* @param {string} params.invocationId - invocationId path parameter.
|
|
150
|
+
* @throws {AgentbaseException}
|
|
151
|
+
* @returns {Promise<{}>}
|
|
152
|
+
*/
|
|
153
|
+
getInvocation(params: {
|
|
154
|
+
invocationId: string;
|
|
155
|
+
}): Promise<{}>;
|
|
156
|
+
/**
|
|
157
|
+
* Manage unified AI Gateway control-plane resources.
|
|
158
|
+
*
|
|
159
|
+
* @param {string} invocationId - invocationId path parameter.
|
|
160
|
+
* @throws {AgentbaseException}
|
|
161
|
+
* @returns {Promise<{}>}
|
|
162
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
163
|
+
*/
|
|
164
|
+
getInvocation(invocationId: string): Promise<{}>;
|
|
165
|
+
/**
|
|
166
|
+
* Manage unified AI Gateway control-plane resources.
|
|
167
|
+
*
|
|
168
|
+
* @throws {AgentbaseException}
|
|
169
|
+
* @returns {Promise<{}>}
|
|
170
|
+
*/
|
|
171
|
+
listKeys(): Promise<{}>;
|
|
172
|
+
/**
|
|
173
|
+
* Issue an encrypted, recoverable API key for one or more AI Gateways.
|
|
174
|
+
*
|
|
175
|
+
* @param {string} params.name - API key name.
|
|
176
|
+
* @param {string[]} params.gatewayIds - Gateways this API key may call.
|
|
177
|
+
* @param {string} params.region - Snapshot region.
|
|
178
|
+
* @param {string[]} params.allowedModels - Allowed logical model names. Use `["*"]` for every model on the authorized gateways.
|
|
179
|
+
* @param {string[]} params.allowedTools - Allowed Tool resource IDs. Use `["*"]` for every Tool; an empty list denies all Tools.
|
|
180
|
+
* @param {string[]} params.allowedAgents - Allowed A2A or HTTP Agent Target resource IDs. Use `["*"]` for every Agent; an empty list denies all Agents.
|
|
181
|
+
* @param {string} params.defaultLogicalModel - Optional default logical model used only when a request omits `model`.
|
|
182
|
+
* @param {object} params.principal - Optional roles and flat claims signed into this credential and exposed to AI Gateway policies.
|
|
183
|
+
* @param {any[][]} params.limits - Optional hard credential/model/Tool/Agent rate and quota rules.
|
|
184
|
+
* @throws {AgentbaseException}
|
|
185
|
+
* @returns {Promise<{}>}
|
|
186
|
+
*/
|
|
187
|
+
createKey(params: {
|
|
188
|
+
name: string;
|
|
189
|
+
gatewayIds: string[];
|
|
190
|
+
region?: string;
|
|
191
|
+
allowedModels?: string[];
|
|
192
|
+
allowedTools?: string[];
|
|
193
|
+
allowedAgents?: string[];
|
|
194
|
+
defaultLogicalModel?: string;
|
|
195
|
+
principal?: object;
|
|
196
|
+
limits?: any[][];
|
|
197
|
+
}): Promise<{}>;
|
|
198
|
+
/**
|
|
199
|
+
* Issue an encrypted, recoverable API key for one or more AI Gateways.
|
|
200
|
+
*
|
|
201
|
+
* @param {string} name - API key name.
|
|
202
|
+
* @param {string[]} gatewayIds - Gateways this API key may call.
|
|
203
|
+
* @param {string} region - Snapshot region.
|
|
204
|
+
* @param {string[]} allowedModels - Allowed logical model names. Use `["*"]` for every model on the authorized gateways.
|
|
205
|
+
* @param {string[]} allowedTools - Allowed Tool resource IDs. Use `["*"]` for every Tool; an empty list denies all Tools.
|
|
206
|
+
* @param {string[]} allowedAgents - Allowed A2A or HTTP Agent Target resource IDs. Use `["*"]` for every Agent; an empty list denies all Agents.
|
|
207
|
+
* @param {string} defaultLogicalModel - Optional default logical model used only when a request omits `model`.
|
|
208
|
+
* @param {object} principal - Optional roles and flat claims signed into this credential and exposed to AI Gateway policies.
|
|
209
|
+
* @param {any[][]} limits - Optional hard credential/model/Tool/Agent rate and quota rules.
|
|
210
|
+
* @throws {AgentbaseException}
|
|
211
|
+
* @returns {Promise<{}>}
|
|
212
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
213
|
+
*/
|
|
214
|
+
createKey(name: string, gatewayIds: string[], region?: string, allowedModels?: string[], allowedTools?: string[], allowedAgents?: string[], defaultLogicalModel?: string, principal?: object, limits?: any[][]): Promise<{}>;
|
|
215
|
+
/**
|
|
216
|
+
* Retrieve the plaintext of an encrypted AI Gateway API key.
|
|
217
|
+
*
|
|
218
|
+
* @param {string} params.keyId - API key ID.
|
|
219
|
+
* @throws {AgentbaseException}
|
|
220
|
+
* @returns {Promise<{}>}
|
|
221
|
+
*/
|
|
222
|
+
getKey(params: {
|
|
223
|
+
keyId: string;
|
|
224
|
+
}): Promise<{}>;
|
|
225
|
+
/**
|
|
226
|
+
* Retrieve the plaintext of an encrypted AI Gateway API key.
|
|
227
|
+
*
|
|
228
|
+
* @param {string} keyId - API key ID.
|
|
229
|
+
* @throws {AgentbaseException}
|
|
230
|
+
* @returns {Promise<{}>}
|
|
231
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
232
|
+
*/
|
|
233
|
+
getKey(keyId: string): Promise<{}>;
|
|
234
|
+
/**
|
|
235
|
+
* Manage unified AI Gateway control-plane resources.
|
|
236
|
+
*
|
|
237
|
+
* @param {string} params.keyId - keyId path parameter.
|
|
238
|
+
* @throws {AgentbaseException}
|
|
239
|
+
* @returns {Promise<{}>}
|
|
240
|
+
*/
|
|
241
|
+
updateKeyStatus(params: {
|
|
242
|
+
keyId: string;
|
|
243
|
+
}): Promise<{}>;
|
|
244
|
+
/**
|
|
245
|
+
* Manage unified AI Gateway control-plane resources.
|
|
246
|
+
*
|
|
247
|
+
* @param {string} keyId - keyId path parameter.
|
|
248
|
+
* @throws {AgentbaseException}
|
|
249
|
+
* @returns {Promise<{}>}
|
|
250
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
251
|
+
*/
|
|
252
|
+
updateKeyStatus(keyId: string): Promise<{}>;
|
|
253
|
+
/**
|
|
254
|
+
* Manage unified AI Gateway control-plane resources.
|
|
255
|
+
*
|
|
256
|
+
* @throws {AgentbaseException}
|
|
257
|
+
* @returns {Promise<{}>}
|
|
258
|
+
*/
|
|
259
|
+
getModelDeploymentMetrics(): Promise<{}>;
|
|
260
|
+
/**
|
|
261
|
+
* Manage unified AI Gateway control-plane resources.
|
|
262
|
+
*
|
|
263
|
+
* @throws {AgentbaseException}
|
|
264
|
+
* @returns {Promise<{}>}
|
|
265
|
+
*/
|
|
266
|
+
getObservabilityOverview(): Promise<{}>;
|
|
267
|
+
/**
|
|
268
|
+
* Manage unified AI Gateway control-plane resources.
|
|
269
|
+
*
|
|
270
|
+
* @throws {AgentbaseException}
|
|
271
|
+
* @returns {Promise<{}>}
|
|
272
|
+
*/
|
|
273
|
+
listPolicyEngines(): Promise<{}>;
|
|
274
|
+
/**
|
|
275
|
+
* Manage unified AI Gateway control-plane resources.
|
|
276
|
+
*
|
|
277
|
+
* @throws {AgentbaseException}
|
|
278
|
+
* @returns {Promise<{}>}
|
|
279
|
+
*/
|
|
280
|
+
createPolicyEngine(): Promise<{}>;
|
|
281
|
+
/**
|
|
282
|
+
* Manage unified AI Gateway control-plane resources.
|
|
283
|
+
*
|
|
284
|
+
* @param {string} params.policyEngineId - policyEngineId path parameter.
|
|
285
|
+
* @throws {AgentbaseException}
|
|
286
|
+
* @returns {Promise<{}>}
|
|
287
|
+
*/
|
|
288
|
+
getPolicyEngine(params: {
|
|
289
|
+
policyEngineId: string;
|
|
290
|
+
}): Promise<{}>;
|
|
291
|
+
/**
|
|
292
|
+
* Manage unified AI Gateway control-plane resources.
|
|
293
|
+
*
|
|
294
|
+
* @param {string} policyEngineId - policyEngineId path parameter.
|
|
295
|
+
* @throws {AgentbaseException}
|
|
296
|
+
* @returns {Promise<{}>}
|
|
297
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
298
|
+
*/
|
|
299
|
+
getPolicyEngine(policyEngineId: string): Promise<{}>;
|
|
300
|
+
/**
|
|
301
|
+
* Manage unified AI Gateway control-plane resources.
|
|
302
|
+
*
|
|
303
|
+
* @param {string} params.policyEngineId - policyEngineId path parameter.
|
|
304
|
+
* @throws {AgentbaseException}
|
|
305
|
+
* @returns {Promise<{}>}
|
|
306
|
+
*/
|
|
307
|
+
listPolicyBundles(params: {
|
|
308
|
+
policyEngineId: string;
|
|
309
|
+
}): Promise<{}>;
|
|
310
|
+
/**
|
|
311
|
+
* Manage unified AI Gateway control-plane resources.
|
|
312
|
+
*
|
|
313
|
+
* @param {string} policyEngineId - policyEngineId path parameter.
|
|
314
|
+
* @throws {AgentbaseException}
|
|
315
|
+
* @returns {Promise<{}>}
|
|
316
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
317
|
+
*/
|
|
318
|
+
listPolicyBundles(policyEngineId: string): Promise<{}>;
|
|
319
|
+
/**
|
|
320
|
+
* Manage unified AI Gateway control-plane resources.
|
|
321
|
+
*
|
|
322
|
+
* @param {string} params.policyEngineId - policyEngineId path parameter.
|
|
323
|
+
* @throws {AgentbaseException}
|
|
324
|
+
* @returns {Promise<{}>}
|
|
325
|
+
*/
|
|
326
|
+
publishPolicyBundle(params: {
|
|
327
|
+
policyEngineId: string;
|
|
328
|
+
}): Promise<{}>;
|
|
329
|
+
/**
|
|
330
|
+
* Manage unified AI Gateway control-plane resources.
|
|
331
|
+
*
|
|
332
|
+
* @param {string} policyEngineId - policyEngineId path parameter.
|
|
333
|
+
* @throws {AgentbaseException}
|
|
334
|
+
* @returns {Promise<{}>}
|
|
335
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
336
|
+
*/
|
|
337
|
+
publishPolicyBundle(policyEngineId: string): Promise<{}>;
|
|
338
|
+
/**
|
|
339
|
+
* Manage unified AI Gateway control-plane resources.
|
|
340
|
+
*
|
|
341
|
+
* @param {string} params.policyEngineId - policyEngineId path parameter.
|
|
342
|
+
* @param {string} params.policyBundleId - policyBundleId path parameter.
|
|
343
|
+
* @throws {AgentbaseException}
|
|
344
|
+
* @returns {Promise<{}>}
|
|
345
|
+
*/
|
|
346
|
+
getPolicyBundle(params: {
|
|
347
|
+
policyEngineId: string;
|
|
348
|
+
policyBundleId: string;
|
|
349
|
+
}): Promise<{}>;
|
|
350
|
+
/**
|
|
351
|
+
* Manage unified AI Gateway control-plane resources.
|
|
352
|
+
*
|
|
353
|
+
* @param {string} policyEngineId - policyEngineId path parameter.
|
|
354
|
+
* @param {string} policyBundleId - policyBundleId path parameter.
|
|
355
|
+
* @throws {AgentbaseException}
|
|
356
|
+
* @returns {Promise<{}>}
|
|
357
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
358
|
+
*/
|
|
359
|
+
getPolicyBundle(policyEngineId: string, policyBundleId: string): Promise<{}>;
|
|
360
|
+
/**
|
|
361
|
+
* Manage unified AI Gateway control-plane resources.
|
|
362
|
+
*
|
|
363
|
+
* @param {string} params.policyEngineId - policyEngineId path parameter.
|
|
364
|
+
* @throws {AgentbaseException}
|
|
365
|
+
* @returns {Promise<{}>}
|
|
366
|
+
*/
|
|
367
|
+
dryRunPolicy(params: {
|
|
368
|
+
policyEngineId: string;
|
|
369
|
+
}): Promise<{}>;
|
|
370
|
+
/**
|
|
371
|
+
* Manage unified AI Gateway control-plane resources.
|
|
372
|
+
*
|
|
373
|
+
* @param {string} policyEngineId - policyEngineId path parameter.
|
|
374
|
+
* @throws {AgentbaseException}
|
|
375
|
+
* @returns {Promise<{}>}
|
|
376
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
377
|
+
*/
|
|
378
|
+
dryRunPolicy(policyEngineId: string): Promise<{}>;
|
|
379
|
+
/**
|
|
380
|
+
* Manage unified AI Gateway control-plane resources.
|
|
381
|
+
*
|
|
382
|
+
* @param {string} params.id - id path parameter.
|
|
383
|
+
* @throws {AgentbaseException}
|
|
384
|
+
* @returns {Promise<{}>}
|
|
385
|
+
*/
|
|
386
|
+
listLogicalModelMounts(params: {
|
|
387
|
+
id: string;
|
|
388
|
+
}): Promise<{}>;
|
|
389
|
+
/**
|
|
390
|
+
* Manage unified AI Gateway control-plane resources.
|
|
391
|
+
*
|
|
392
|
+
* @param {string} id - id path parameter.
|
|
393
|
+
* @throws {AgentbaseException}
|
|
394
|
+
* @returns {Promise<{}>}
|
|
395
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
396
|
+
*/
|
|
397
|
+
listLogicalModelMounts(id: string): Promise<{}>;
|
|
398
|
+
/**
|
|
399
|
+
* Manage unified AI Gateway control-plane resources.
|
|
400
|
+
*
|
|
401
|
+
* @param {string} params.id - id path parameter.
|
|
402
|
+
* @throws {AgentbaseException}
|
|
403
|
+
* @returns {Promise<{}>}
|
|
404
|
+
*/
|
|
405
|
+
replaceLogicalModelMounts(params: {
|
|
406
|
+
id: string;
|
|
407
|
+
}): Promise<{}>;
|
|
408
|
+
/**
|
|
409
|
+
* Manage unified AI Gateway control-plane resources.
|
|
410
|
+
*
|
|
411
|
+
* @param {string} id - id path parameter.
|
|
412
|
+
* @throws {AgentbaseException}
|
|
413
|
+
* @returns {Promise<{}>}
|
|
414
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
415
|
+
*/
|
|
416
|
+
replaceLogicalModelMounts(id: string): Promise<{}>;
|
|
417
|
+
/**
|
|
418
|
+
* Manage unified AI Gateway control-plane resources.
|
|
419
|
+
*
|
|
420
|
+
* @param {string} params.id - id path parameter.
|
|
421
|
+
* @throws {AgentbaseException}
|
|
422
|
+
* @returns {Promise<{}>}
|
|
423
|
+
*/
|
|
424
|
+
testModelDeployment(params: {
|
|
425
|
+
id: string;
|
|
426
|
+
}): Promise<{}>;
|
|
427
|
+
/**
|
|
428
|
+
* Manage unified AI Gateway control-plane resources.
|
|
429
|
+
*
|
|
430
|
+
* @param {string} id - id path parameter.
|
|
431
|
+
* @throws {AgentbaseException}
|
|
432
|
+
* @returns {Promise<{}>}
|
|
433
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
434
|
+
*/
|
|
435
|
+
testModelDeployment(id: string): Promise<{}>;
|
|
436
|
+
/**
|
|
437
|
+
* Manage unified AI Gateway control-plane resources.
|
|
438
|
+
*
|
|
439
|
+
* @param {string} params.id - id path parameter.
|
|
440
|
+
* @throws {AgentbaseException}
|
|
441
|
+
* @returns {Promise<{}>}
|
|
442
|
+
*/
|
|
443
|
+
checkTargetHealth(params: {
|
|
444
|
+
id: string;
|
|
445
|
+
}): Promise<{}>;
|
|
446
|
+
/**
|
|
447
|
+
* Manage unified AI Gateway control-plane resources.
|
|
448
|
+
*
|
|
449
|
+
* @param {string} id - id path parameter.
|
|
450
|
+
* @throws {AgentbaseException}
|
|
451
|
+
* @returns {Promise<{}>}
|
|
452
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
453
|
+
*/
|
|
454
|
+
checkTargetHealth(id: string): Promise<{}>;
|
|
455
|
+
/**
|
|
456
|
+
* Manage unified AI Gateway control-plane resources.
|
|
457
|
+
*
|
|
458
|
+
* @param {string} params.id - id path parameter.
|
|
459
|
+
* @throws {AgentbaseException}
|
|
460
|
+
* @returns {Promise<{}>}
|
|
461
|
+
*/
|
|
462
|
+
discoverTargetModels(params: {
|
|
463
|
+
id: string;
|
|
464
|
+
}): Promise<{}>;
|
|
465
|
+
/**
|
|
466
|
+
* Manage unified AI Gateway control-plane resources.
|
|
467
|
+
*
|
|
468
|
+
* @param {string} id - id path parameter.
|
|
469
|
+
* @throws {AgentbaseException}
|
|
470
|
+
* @returns {Promise<{}>}
|
|
471
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
472
|
+
*/
|
|
473
|
+
discoverTargetModels(id: string): Promise<{}>;
|
|
474
|
+
/**
|
|
475
|
+
* Manage unified AI Gateway control-plane resources.
|
|
476
|
+
*
|
|
477
|
+
* @param {string} params.id - id path parameter.
|
|
478
|
+
* @throws {AgentbaseException}
|
|
479
|
+
* @returns {Promise<{}>}
|
|
480
|
+
*/
|
|
481
|
+
listTargetMounts(params: {
|
|
482
|
+
id: string;
|
|
483
|
+
}): Promise<{}>;
|
|
484
|
+
/**
|
|
485
|
+
* Manage unified AI Gateway control-plane resources.
|
|
486
|
+
*
|
|
487
|
+
* @param {string} id - id path parameter.
|
|
488
|
+
* @throws {AgentbaseException}
|
|
489
|
+
* @returns {Promise<{}>}
|
|
490
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
491
|
+
*/
|
|
492
|
+
listTargetMounts(id: string): Promise<{}>;
|
|
493
|
+
/**
|
|
494
|
+
* Manage unified AI Gateway control-plane resources.
|
|
495
|
+
*
|
|
496
|
+
* @param {string} params.id - id path parameter.
|
|
497
|
+
* @throws {AgentbaseException}
|
|
498
|
+
* @returns {Promise<{}>}
|
|
499
|
+
*/
|
|
500
|
+
replaceTargetMounts(params: {
|
|
501
|
+
id: string;
|
|
502
|
+
}): Promise<{}>;
|
|
503
|
+
/**
|
|
504
|
+
* Manage unified AI Gateway control-plane resources.
|
|
505
|
+
*
|
|
506
|
+
* @param {string} id - id path parameter.
|
|
507
|
+
* @throws {AgentbaseException}
|
|
508
|
+
* @returns {Promise<{}>}
|
|
509
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
510
|
+
*/
|
|
511
|
+
replaceTargetMounts(id: string): Promise<{}>;
|
|
512
|
+
/**
|
|
513
|
+
* Manage unified AI Gateway control-plane resources.
|
|
514
|
+
*
|
|
515
|
+
* @param {string} params.kind - kind path parameter.
|
|
516
|
+
* @throws {AgentbaseException}
|
|
517
|
+
* @returns {Promise<{}>}
|
|
518
|
+
*/
|
|
519
|
+
listResources(params: {
|
|
520
|
+
kind: string;
|
|
521
|
+
}): Promise<{}>;
|
|
522
|
+
/**
|
|
523
|
+
* Manage unified AI Gateway control-plane resources.
|
|
524
|
+
*
|
|
525
|
+
* @param {string} kind - kind path parameter.
|
|
526
|
+
* @throws {AgentbaseException}
|
|
527
|
+
* @returns {Promise<{}>}
|
|
528
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
529
|
+
*/
|
|
530
|
+
listResources(kind: string): Promise<{}>;
|
|
531
|
+
/**
|
|
532
|
+
* Manage unified AI Gateway control-plane resources.
|
|
533
|
+
*
|
|
534
|
+
* @param {string} params.kind - kind path parameter.
|
|
535
|
+
* @throws {AgentbaseException}
|
|
536
|
+
* @returns {Promise<{}>}
|
|
537
|
+
*/
|
|
538
|
+
createResource(params: {
|
|
539
|
+
kind: string;
|
|
540
|
+
}): Promise<{}>;
|
|
541
|
+
/**
|
|
542
|
+
* Manage unified AI Gateway control-plane resources.
|
|
543
|
+
*
|
|
544
|
+
* @param {string} kind - kind path parameter.
|
|
545
|
+
* @throws {AgentbaseException}
|
|
546
|
+
* @returns {Promise<{}>}
|
|
547
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
548
|
+
*/
|
|
549
|
+
createResource(kind: string): Promise<{}>;
|
|
550
|
+
/**
|
|
551
|
+
* Manage unified AI Gateway control-plane resources.
|
|
552
|
+
*
|
|
553
|
+
* @param {string} params.kind - kind path parameter.
|
|
554
|
+
* @param {string} params.id - id path parameter.
|
|
555
|
+
* @throws {AgentbaseException}
|
|
556
|
+
* @returns {Promise<{}>}
|
|
557
|
+
*/
|
|
558
|
+
getResource(params: {
|
|
559
|
+
kind: string;
|
|
560
|
+
id: string;
|
|
561
|
+
}): Promise<{}>;
|
|
562
|
+
/**
|
|
563
|
+
* Manage unified AI Gateway control-plane resources.
|
|
564
|
+
*
|
|
565
|
+
* @param {string} kind - kind path parameter.
|
|
566
|
+
* @param {string} id - id path parameter.
|
|
567
|
+
* @throws {AgentbaseException}
|
|
568
|
+
* @returns {Promise<{}>}
|
|
569
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
570
|
+
*/
|
|
571
|
+
getResource(kind: string, id: string): Promise<{}>;
|
|
572
|
+
/**
|
|
573
|
+
* Manage unified AI Gateway control-plane resources.
|
|
574
|
+
*
|
|
575
|
+
* @param {string} params.kind - kind path parameter.
|
|
576
|
+
* @param {string} params.id - id path parameter.
|
|
577
|
+
* @throws {AgentbaseException}
|
|
578
|
+
* @returns {Promise<{}>}
|
|
579
|
+
*/
|
|
580
|
+
replaceResource(params: {
|
|
581
|
+
kind: string;
|
|
582
|
+
id: string;
|
|
583
|
+
}): Promise<{}>;
|
|
584
|
+
/**
|
|
585
|
+
* Manage unified AI Gateway control-plane resources.
|
|
586
|
+
*
|
|
587
|
+
* @param {string} kind - kind path parameter.
|
|
588
|
+
* @param {string} id - id path parameter.
|
|
589
|
+
* @throws {AgentbaseException}
|
|
590
|
+
* @returns {Promise<{}>}
|
|
591
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
592
|
+
*/
|
|
593
|
+
replaceResource(kind: string, id: string): Promise<{}>;
|
|
594
|
+
/**
|
|
595
|
+
* Manage unified AI Gateway control-plane resources.
|
|
596
|
+
*
|
|
597
|
+
* @param {string} params.kind - kind path parameter.
|
|
598
|
+
* @param {string} params.id - id path parameter.
|
|
599
|
+
* @throws {AgentbaseException}
|
|
600
|
+
* @returns {Promise<{}>}
|
|
601
|
+
*/
|
|
602
|
+
deleteResource(params: {
|
|
603
|
+
kind: string;
|
|
604
|
+
id: string;
|
|
605
|
+
}): Promise<{}>;
|
|
606
|
+
/**
|
|
607
|
+
* Manage unified AI Gateway control-plane resources.
|
|
608
|
+
*
|
|
609
|
+
* @param {string} kind - kind path parameter.
|
|
610
|
+
* @param {string} id - id path parameter.
|
|
611
|
+
* @throws {AgentbaseException}
|
|
612
|
+
* @returns {Promise<{}>}
|
|
613
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
614
|
+
*/
|
|
615
|
+
deleteResource(kind: string, id: string): Promise<{}>;
|
|
616
|
+
/**
|
|
617
|
+
* Manage unified AI Gateway control-plane resources.
|
|
618
|
+
*
|
|
619
|
+
* @param {string} params.kind - kind path parameter.
|
|
620
|
+
* @param {string} params.id - id path parameter.
|
|
621
|
+
* @throws {AgentbaseException}
|
|
622
|
+
* @returns {Promise<{}>}
|
|
623
|
+
*/
|
|
624
|
+
createRevision(params: {
|
|
625
|
+
kind: string;
|
|
626
|
+
id: string;
|
|
627
|
+
}): Promise<{}>;
|
|
628
|
+
/**
|
|
629
|
+
* Manage unified AI Gateway control-plane resources.
|
|
630
|
+
*
|
|
631
|
+
* @param {string} kind - kind path parameter.
|
|
632
|
+
* @param {string} id - id path parameter.
|
|
633
|
+
* @throws {AgentbaseException}
|
|
634
|
+
* @returns {Promise<{}>}
|
|
635
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
636
|
+
*/
|
|
637
|
+
createRevision(kind: string, id: string): Promise<{}>;
|
|
638
|
+
/**
|
|
639
|
+
* Manage unified AI Gateway control-plane resources.
|
|
640
|
+
*
|
|
641
|
+
* @param {string} params.kind - kind path parameter.
|
|
642
|
+
* @param {string} params.id - id path parameter.
|
|
643
|
+
* @param {string} params.revisionId - revisionId path parameter.
|
|
644
|
+
* @throws {AgentbaseException}
|
|
645
|
+
* @returns {Promise<{}>}
|
|
646
|
+
*/
|
|
647
|
+
getRevision(params: {
|
|
648
|
+
kind: string;
|
|
649
|
+
id: string;
|
|
650
|
+
revisionId: string;
|
|
651
|
+
}): Promise<{}>;
|
|
652
|
+
/**
|
|
653
|
+
* Manage unified AI Gateway control-plane resources.
|
|
654
|
+
*
|
|
655
|
+
* @param {string} kind - kind path parameter.
|
|
656
|
+
* @param {string} id - id path parameter.
|
|
657
|
+
* @param {string} revisionId - revisionId path parameter.
|
|
658
|
+
* @throws {AgentbaseException}
|
|
659
|
+
* @returns {Promise<{}>}
|
|
660
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
661
|
+
*/
|
|
662
|
+
getRevision(kind: string, id: string, revisionId: string): Promise<{}>;
|
|
663
|
+
/**
|
|
664
|
+
* Manage unified AI Gateway control-plane resources.
|
|
665
|
+
*
|
|
666
|
+
* @param {string} params.kind - kind path parameter.
|
|
667
|
+
* @param {string} params.id - id path parameter.
|
|
668
|
+
* @param {string} params.revisionId - revisionId path parameter.
|
|
669
|
+
* @param {string} params.action - action path parameter.
|
|
670
|
+
* @throws {AgentbaseException}
|
|
671
|
+
* @returns {Promise<{}>}
|
|
672
|
+
*/
|
|
673
|
+
transitionRevision(params: {
|
|
674
|
+
kind: string;
|
|
675
|
+
id: string;
|
|
676
|
+
revisionId: string;
|
|
677
|
+
action: string;
|
|
678
|
+
}): Promise<{}>;
|
|
679
|
+
/**
|
|
680
|
+
* Manage unified AI Gateway control-plane resources.
|
|
681
|
+
*
|
|
682
|
+
* @param {string} kind - kind path parameter.
|
|
683
|
+
* @param {string} id - id path parameter.
|
|
684
|
+
* @param {string} revisionId - revisionId path parameter.
|
|
685
|
+
* @param {string} action - action path parameter.
|
|
686
|
+
* @throws {AgentbaseException}
|
|
687
|
+
* @returns {Promise<{}>}
|
|
688
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
689
|
+
*/
|
|
690
|
+
transitionRevision(kind: string, id: string, revisionId: string, action: string): Promise<{}>;
|
|
691
|
+
/**
|
|
692
|
+
* List shared standard model metadata used by AI Gateway.
|
|
693
|
+
*
|
|
694
|
+
* @param {string} params.providerProfileId - Optional provider profile filter.
|
|
695
|
+
* @param {Status} params.status - Optional status filter.
|
|
696
|
+
* @throws {AgentbaseException}
|
|
697
|
+
* @returns {Promise<{}>}
|
|
698
|
+
*/
|
|
699
|
+
listStandardModels(params?: {
|
|
700
|
+
providerProfileId?: string;
|
|
701
|
+
status?: Status;
|
|
702
|
+
}): Promise<{}>;
|
|
703
|
+
/**
|
|
704
|
+
* List shared standard model metadata used by AI Gateway.
|
|
705
|
+
*
|
|
706
|
+
* @param {string} providerProfileId - Optional provider profile filter.
|
|
707
|
+
* @param {Status} status - Optional status filter.
|
|
708
|
+
* @throws {AgentbaseException}
|
|
709
|
+
* @returns {Promise<{}>}
|
|
710
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
711
|
+
*/
|
|
712
|
+
listStandardModels(providerProfileId?: string, status?: Status): Promise<{}>;
|
|
713
|
+
/**
|
|
714
|
+
* Create manually curated standard model metadata.
|
|
715
|
+
*
|
|
716
|
+
* @param {string} params.providerProfileId - Provider profile ID.
|
|
717
|
+
* @param {string} params.modelId - Provider model ID.
|
|
718
|
+
* @param {string} params.profileVersion - Provider profile version.
|
|
719
|
+
* @param {string} params.displayName - Model display name.
|
|
720
|
+
* @param {object} params.metadata - Standard model metadata.
|
|
721
|
+
* @param {Status} params.status - Catalog status.
|
|
722
|
+
* @throws {AgentbaseException}
|
|
723
|
+
* @returns {Promise<{}>}
|
|
724
|
+
*/
|
|
725
|
+
createStandardModel(params: {
|
|
726
|
+
providerProfileId: string;
|
|
727
|
+
modelId: string;
|
|
728
|
+
profileVersion?: string;
|
|
729
|
+
displayName?: string;
|
|
730
|
+
metadata?: object;
|
|
731
|
+
status?: Status;
|
|
732
|
+
}): Promise<{}>;
|
|
733
|
+
/**
|
|
734
|
+
* Create manually curated standard model metadata.
|
|
735
|
+
*
|
|
736
|
+
* @param {string} providerProfileId - Provider profile ID.
|
|
737
|
+
* @param {string} modelId - Provider model ID.
|
|
738
|
+
* @param {string} profileVersion - Provider profile version.
|
|
739
|
+
* @param {string} displayName - Model display name.
|
|
740
|
+
* @param {object} metadata - Standard model metadata.
|
|
741
|
+
* @param {Status} status - Catalog status.
|
|
742
|
+
* @throws {AgentbaseException}
|
|
743
|
+
* @returns {Promise<{}>}
|
|
744
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
745
|
+
*/
|
|
746
|
+
createStandardModel(providerProfileId: string, modelId: string, profileVersion?: string, displayName?: string, metadata?: object, status?: Status): Promise<{}>;
|
|
747
|
+
/**
|
|
748
|
+
* Merge provider-discovered metadata into the shared standard model catalog.
|
|
749
|
+
*
|
|
750
|
+
* @param {string} params.providerProfileId - Provider profile ID.
|
|
751
|
+
* @param {object[]} params.models - Discovered provider models.
|
|
752
|
+
* @param {string} params.profileVersion - Provider profile version.
|
|
753
|
+
* @param {string} params.fetchedAt - Provider fetch time.
|
|
754
|
+
* @throws {AgentbaseException}
|
|
755
|
+
* @returns {Promise<{}>}
|
|
756
|
+
*/
|
|
757
|
+
importStandardModels(params: {
|
|
758
|
+
providerProfileId: string;
|
|
759
|
+
models: object[];
|
|
760
|
+
profileVersion?: string;
|
|
761
|
+
fetchedAt?: string;
|
|
762
|
+
}): Promise<{}>;
|
|
763
|
+
/**
|
|
764
|
+
* Merge provider-discovered metadata into the shared standard model catalog.
|
|
765
|
+
*
|
|
766
|
+
* @param {string} providerProfileId - Provider profile ID.
|
|
767
|
+
* @param {object[]} models - Discovered provider models.
|
|
768
|
+
* @param {string} profileVersion - Provider profile version.
|
|
769
|
+
* @param {string} fetchedAt - Provider fetch time.
|
|
770
|
+
* @throws {AgentbaseException}
|
|
771
|
+
* @returns {Promise<{}>}
|
|
772
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
773
|
+
*/
|
|
774
|
+
importStandardModels(providerProfileId: string, models: object[], profileVersion?: string, fetchedAt?: string): Promise<{}>;
|
|
775
|
+
/**
|
|
776
|
+
* Update manually curated standard model metadata.
|
|
777
|
+
*
|
|
778
|
+
* @param {string} params.standardModelId - Standard model document ID.
|
|
779
|
+
* @param {string} params.displayName - Model display name.
|
|
780
|
+
* @param {object} params.metadata - Standard model metadata.
|
|
781
|
+
* @param {Status} params.status - Catalog status.
|
|
782
|
+
* @throws {AgentbaseException}
|
|
783
|
+
* @returns {Promise<{}>}
|
|
784
|
+
*/
|
|
785
|
+
updateStandardModel(params: {
|
|
786
|
+
standardModelId: string;
|
|
787
|
+
displayName?: string;
|
|
788
|
+
metadata?: object;
|
|
789
|
+
status?: Status;
|
|
790
|
+
}): Promise<{}>;
|
|
791
|
+
/**
|
|
792
|
+
* Update manually curated standard model metadata.
|
|
793
|
+
*
|
|
794
|
+
* @param {string} standardModelId - Standard model document ID.
|
|
795
|
+
* @param {string} displayName - Model display name.
|
|
796
|
+
* @param {object} metadata - Standard model metadata.
|
|
797
|
+
* @param {Status} status - Catalog status.
|
|
798
|
+
* @throws {AgentbaseException}
|
|
799
|
+
* @returns {Promise<{}>}
|
|
800
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
801
|
+
*/
|
|
802
|
+
updateStandardModel(standardModelId: string, displayName?: string, metadata?: object, status?: Status): Promise<{}>;
|
|
803
|
+
/**
|
|
804
|
+
* Manage unified AI Gateway control-plane resources.
|
|
805
|
+
*
|
|
806
|
+
* @throws {AgentbaseException}
|
|
807
|
+
* @returns {Promise<{}>}
|
|
808
|
+
*/
|
|
809
|
+
createToolConnection(): Promise<{}>;
|
|
810
|
+
/**
|
|
811
|
+
* Manage unified AI Gateway control-plane resources.
|
|
812
|
+
*
|
|
813
|
+
* @throws {AgentbaseException}
|
|
814
|
+
* @returns {Promise<{}>}
|
|
815
|
+
*/
|
|
816
|
+
discoverToolConnection(): Promise<{}>;
|
|
817
|
+
/**
|
|
818
|
+
* Manage unified AI Gateway control-plane resources.
|
|
819
|
+
*
|
|
820
|
+
* @param {string} params.id - id path parameter.
|
|
821
|
+
* @throws {AgentbaseException}
|
|
822
|
+
* @returns {Promise<{}>}
|
|
823
|
+
*/
|
|
824
|
+
updateToolConnection(params: {
|
|
825
|
+
id: string;
|
|
826
|
+
}): Promise<{}>;
|
|
827
|
+
/**
|
|
828
|
+
* Manage unified AI Gateway control-plane resources.
|
|
829
|
+
*
|
|
830
|
+
* @param {string} id - id path parameter.
|
|
831
|
+
* @throws {AgentbaseException}
|
|
832
|
+
* @returns {Promise<{}>}
|
|
833
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
834
|
+
*/
|
|
835
|
+
updateToolConnection(id: string): Promise<{}>;
|
|
836
|
+
/**
|
|
837
|
+
* Manage unified AI Gateway control-plane resources.
|
|
838
|
+
*
|
|
839
|
+
* @param {string} params.id - id path parameter.
|
|
840
|
+
* @throws {AgentbaseException}
|
|
841
|
+
* @returns {Promise<{}>}
|
|
842
|
+
*/
|
|
843
|
+
deleteToolConnection(params: {
|
|
844
|
+
id: string;
|
|
845
|
+
}): Promise<{}>;
|
|
846
|
+
/**
|
|
847
|
+
* Manage unified AI Gateway control-plane resources.
|
|
848
|
+
*
|
|
849
|
+
* @param {string} id - id path parameter.
|
|
850
|
+
* @throws {AgentbaseException}
|
|
851
|
+
* @returns {Promise<{}>}
|
|
852
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
853
|
+
*/
|
|
854
|
+
deleteToolConnection(id: string): Promise<{}>;
|
|
855
|
+
/**
|
|
856
|
+
* Manage unified AI Gateway control-plane resources.
|
|
857
|
+
*
|
|
858
|
+
* @param {string} params.id - id path parameter.
|
|
859
|
+
* @throws {AgentbaseException}
|
|
860
|
+
* @returns {Promise<{}>}
|
|
861
|
+
*/
|
|
862
|
+
testToolConnection(params: {
|
|
863
|
+
id: string;
|
|
864
|
+
}): Promise<{}>;
|
|
865
|
+
/**
|
|
866
|
+
* Manage unified AI Gateway control-plane resources.
|
|
867
|
+
*
|
|
868
|
+
* @param {string} id - id path parameter.
|
|
869
|
+
* @throws {AgentbaseException}
|
|
870
|
+
* @returns {Promise<{}>}
|
|
871
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
872
|
+
*/
|
|
873
|
+
testToolConnection(id: string): Promise<{}>;
|
|
874
|
+
/**
|
|
875
|
+
* Manage unified AI Gateway control-plane resources.
|
|
876
|
+
*
|
|
877
|
+
* @throws {AgentbaseException}
|
|
878
|
+
* @returns {Promise<{}>}
|
|
879
|
+
*/
|
|
880
|
+
listToolEmbeddings(): Promise<{}>;
|
|
881
|
+
/**
|
|
882
|
+
* Manage unified AI Gateway control-plane resources.
|
|
883
|
+
*
|
|
884
|
+
* @throws {AgentbaseException}
|
|
885
|
+
* @returns {Promise<{}>}
|
|
886
|
+
*/
|
|
887
|
+
createToolEmbeddings(): Promise<{}>;
|
|
888
|
+
}
|