@daocloud-proto/skoala 0.51.0 → 0.52.0-4

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.
@@ -97,6 +97,8 @@ export type HigressConfig = {
97
97
  gateway?: HigressGatewayConfig
98
98
  console?: HigressConsoleConfig
99
99
  observability?: boolean
100
+ version?: string
101
+ customValues?: {[key: string]: string}
100
102
  }
101
103
 
102
104
  export type Observability = {
@@ -172,9 +174,9 @@ export type HigressGatewayConfigOptional = {
172
174
 
173
175
  export type CommonServiceConfigServicePort = {
174
176
  name?: string
175
- port?: string
177
+ port?: number
176
178
  protocol?: string
177
- targetPort?: string
179
+ targetPort?: number
178
180
  }
179
181
 
180
182
  export type CommonServiceConfig = {
@@ -258,30 +260,17 @@ export type AIGateway = {
258
260
  status?: HelmStatus
259
261
  serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
260
262
  dashboardUrl?: DashboardURL
263
+ versionInfo?: VersionInfo
261
264
  }
262
265
 
263
- export type DashboardURLAI = {
264
- url?: string
265
- zhUrl?: string
266
- }
267
-
268
- export type DashboardURLMain = {
269
- url?: string
270
- zhUrl?: string
271
- }
272
-
273
- export type DashboardURLLog = {
274
- url?: string
275
- zhUrl?: string
266
+ export type VersionInfo = {
267
+ skoalaVersion?: string
268
+ higressVersion?: string
269
+ metaSkoalaVersion?: string
270
+ skoalaInitVersion?: string
276
271
  }
277
272
 
278
273
  export type DashboardURL = {
279
- log?: DashboardURLLog
280
- main?: DashboardURLMain
281
- ai?: DashboardURLAI
282
- }
283
-
284
- export type LogDashboardURL = {
285
274
  url?: string
286
275
  zhUrl?: string
287
276
  }
@@ -323,4 +312,27 @@ export type GetAIGatewayConfigReq = {
323
312
 
324
313
  export type GetAIGatewayConfigRes = {
325
314
  config?: AIGatewayConfig
315
+ }
316
+
317
+ export type GetAIGatewayMenusReq = {
318
+ workspaceId?: string
319
+ clusterName?: string
320
+ namespaceName?: string
321
+ gatewayName?: string
322
+ }
323
+
324
+ export type GetAIGatewayMenusResMenuItem = {
325
+ id?: string
326
+ name?: string
327
+ enName?: string
328
+ hash?: string
329
+ icon?: string
330
+ permission?: boolean
331
+ children?: GetAIGatewayMenusResMenuItem[]
332
+ dashboardUrl?: DashboardURL
333
+ order?: number
334
+ }
335
+
336
+ export type GetAIGatewayMenusRes = {
337
+ items?: GetAIGatewayMenusResMenuItem[]
326
338
  }
@@ -49,7 +49,7 @@ export enum NacosConditionStatus {
49
49
  export type ListAllNacosReq = {
50
50
  workspaceId?: string
51
51
  clusterName?: string
52
- namespaceName?: string
52
+ namespaceName?: string[]
53
53
  nacosName?: string
54
54
  page?: number
55
55
  pageSize?: number
@@ -69,7 +69,8 @@ export type ListAllClusterReq = {
69
69
  }
70
70
 
71
71
  export type ListAllClusterRes = {
72
- items?: Cluster[]
72
+ clusterWorkspace?: ClusterWorkspace[]
73
+ cluster?: Cluster[]
73
74
  }
74
75
 
75
76
  export type Cluster = {
@@ -78,6 +79,42 @@ export type Cluster = {
78
79
  clusterProvider?: SkoalaApiGeneralV1alpha1Common.ClusterProvider
79
80
  clusterPhase?: SkoalaApiGeneralV1alpha1Common.ClusterPhase
80
81
  version?: string
82
+ }
83
+
84
+ export type ClusterWorkspace = {
85
+ id?: string
86
+ name?: string
87
+ clusterProvider?: SkoalaApiGeneralV1alpha1Common.ClusterProvider
88
+ clusterPhase?: SkoalaApiGeneralV1alpha1Common.ClusterPhase
89
+ version?: string
90
+ workspaceId?: string
91
+ workspaceName?: string
92
+ }
93
+
94
+ export type ListWorkspaceRolePermissionsReq = {
95
+ workspaceId?: string
96
+ }
97
+
98
+ export type ListWorkspaceRolePermissionsRes = {
99
+ permissions?: string[]
100
+ }
101
+
102
+ export type ListClusterNamespaceReq = {
103
+ workspaceId?: string
104
+ clusterName?: string
105
+ namespaceName?: string
106
+ page?: number
107
+ pageSize?: number
108
+ }
109
+
110
+ export type ListClusterNamespaceRes = {
111
+ items?: WorkspaceClusterNamespace[]
112
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
113
+ }
114
+
115
+ export type WorkspaceClusterNamespace = {
116
+ namespaceName?: string
117
+ clusterName?: string
81
118
  workspaceId?: string
82
119
  workspaceName?: string
83
120
  }
@@ -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> {
@@ -42,6 +45,12 @@ export class Skoala {
42
45
  static ListAllCluster(req: SkoalaApiHostedV1alpha3Skoala.ListAllClusterReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Skoala.ListAllClusterRes> {
43
46
  return fm.fetchReq<SkoalaApiHostedV1alpha3Skoala.ListAllClusterReq, SkoalaApiHostedV1alpha3Skoala.ListAllClusterRes>(`/apis/sesame.skoala.io/v1alpha3/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
44
47
  }
48
+ static ListWorkspaceRolePermissions(req: SkoalaApiHostedV1alpha3Skoala.ListWorkspaceRolePermissionsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Skoala.ListWorkspaceRolePermissionsRes> {
49
+ return fm.fetchReq<SkoalaApiHostedV1alpha3Skoala.ListWorkspaceRolePermissionsReq, SkoalaApiHostedV1alpha3Skoala.ListWorkspaceRolePermissionsRes>(`/apis/skoala.io/v1alpha3/permissions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
50
+ }
51
+ static ListClusterNamespace(req: SkoalaApiHostedV1alpha3Skoala.ListClusterNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Skoala.ListClusterNamespaceRes> {
52
+ return fm.fetchReq<SkoalaApiHostedV1alpha3Skoala.ListClusterNamespaceReq, SkoalaApiHostedV1alpha3Skoala.ListClusterNamespaceRes>(`/apis/skoala.io/v1alpha3/clusters/${req["clusterName"]}/namespaces?${fm.renderURLSearchParams(req, ["clusterName"])}`, {...initReq, method: "GET"})
53
+ }
45
54
  }
46
55
  export class Nacos {
47
56
  static List(req: SkoalaApiHostedV1alpha3Nacos.ListAllNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Nacos.ListNacosRes> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.51.0",
3
+ "version": "0.52.0-4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {