@daocloud-proto/skoala 0.51.0-18 → 0.51.0-20

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.
@@ -267,28 +267,7 @@ export type VersionInfo = {
267
267
  version?: string
268
268
  }
269
269
 
270
- export type DashboardURLAI = {
271
- url?: string
272
- zhUrl?: string
273
- }
274
-
275
- export type DashboardURLMain = {
276
- url?: string
277
- zhUrl?: string
278
- }
279
-
280
- export type DashboardURLLog = {
281
- url?: string
282
- zhUrl?: string
283
- }
284
-
285
270
  export type DashboardURL = {
286
- log?: DashboardURLLog
287
- main?: DashboardURLMain
288
- ai?: DashboardURLAI
289
- }
290
-
291
- export type LogDashboardURL = {
292
271
  url?: string
293
272
  zhUrl?: string
294
273
  }
@@ -330,4 +309,27 @@ export type GetAIGatewayConfigReq = {
330
309
 
331
310
  export type GetAIGatewayConfigRes = {
332
311
  config?: AIGatewayConfig
312
+ }
313
+
314
+ export type GetAIGatewayMenusReq = {
315
+ workspaceId?: string
316
+ clusterName?: string
317
+ namespaceName?: string
318
+ gatewayName?: string
319
+ }
320
+
321
+ export type GetAIGatewayMenusResMenuItem = {
322
+ id?: string
323
+ name?: string
324
+ enName?: string
325
+ hash?: string
326
+ icon?: string
327
+ permission?: boolean
328
+ children?: GetAIGatewayMenusResMenuItem[]
329
+ dashboardUrl?: DashboardURL
330
+ order?: number
331
+ }
332
+
333
+ export type GetAIGatewayMenusRes = {
334
+ items?: GetAIGatewayMenusResMenuItem[]
333
335
  }
@@ -28,6 +28,9 @@ export class AIGateway {
28
28
  static GetAIGatewayConfig(req: SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayConfigRes> {
29
29
  return fm.fetchReq<SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayConfigReq, SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayConfigRes>(`/apis/sesame.skoala.io/v1alpha3/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/aigateways/${req["gatewayName"]}/config?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
30
30
  }
31
+ static GetAIGatewayMenus(req: SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayMenusReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayMenusRes> {
32
+ return fm.fetchReq<SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayMenusReq, SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayMenusRes>(`/apis/sesame.skoala.io/v1alpha3/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/aigateways/${req["gatewayName"]}/menus?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
33
+ }
31
34
  }
32
35
  export class Skoala {
33
36
  static ListGatewayNamespaces(req: SkoalaApiHostedV1alpha3Skoala.ListNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Skoala.ListNamespaceRes> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.51.0-18",
3
+ "version": "0.51.0-20",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {