@daocloud-proto/skoala 0.50.1 → 0.51.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.
@@ -154,6 +154,13 @@ export type Gateway = {
154
154
  config?: GatewayConfig
155
155
  clusterPhase?: SkoalaApiGeneralV1alpha1Common.ClusterPhase
156
156
  sidecarInject?: boolean
157
+ version?: GatewayVersion
158
+ }
159
+
160
+ export type GatewayVersion = {
161
+ skoalaVersion?: string
162
+ contourVersion?: string
163
+ envoyVersion?: string
157
164
  }
158
165
 
159
166
  export type ListAllGatewayReq = {
@@ -51,9 +51,9 @@ export enum GatewayStatus {
51
51
  Unknown = "Unknown",
52
52
  Error = "Error",
53
53
  Starting = "Starting",
54
- upgrading = "upgrading",
54
+ Upgrading = "Upgrading",
55
55
  Running = "Running",
56
- uninstall = "uninstall",
56
+ Uninstalling = "Uninstalling",
57
57
  }
58
58
 
59
59
  export type CreateAIGatewayReq = {
@@ -0,0 +1,161 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as SkoalaApiGeneralV1alpha1Affinity from "../../general/v1alpha1/affinity.pb"
8
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
9
+ import * as SkoalaApiGeneralV1alpha1Insight from "../../general/v1alpha1/insight.pb"
10
+ import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
11
+ import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
12
+ import * as SkoalaApiHostedV1alpha1Nacos from "../v1alpha1/nacos.pb"
13
+ import * as SkoalaApiHostedV1alpha1Plugins from "../v1alpha1/plugins.pb"
14
+
15
+ export enum LogTarget {
16
+ LOG_TARGET_UNSPECIFIED = "LOG_TARGET_UNSPECIFIED",
17
+ file = "file",
18
+ console = "console",
19
+ }
20
+
21
+ export enum NodeType {
22
+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
23
+ FOLLOWER = "FOLLOWER",
24
+ LEADER = "LEADER",
25
+ }
26
+
27
+ export enum NacosStatus {
28
+ STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
29
+ Running = "Running",
30
+ Creating = "Creating",
31
+ Failed = "Failed",
32
+ Scaling = "Scaling",
33
+ Warning = "Warning",
34
+ }
35
+
36
+ export enum NacosConfigType {
37
+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
38
+ standalone = "standalone",
39
+ cluster = "cluster",
40
+ }
41
+
42
+ export enum NacosConditionStatus {
43
+ STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
44
+ UNKNOWN = "UNKNOWN",
45
+ TRUE = "TRUE",
46
+ FALSE = "FALSE",
47
+ }
48
+
49
+ export type ListAllNacosReq = {
50
+ workspaceId?: string
51
+ clusterName?: string
52
+ namespaceName?: string
53
+ nacosName?: string
54
+ page?: number
55
+ pageSize?: number
56
+ }
57
+
58
+ export type ListNacosRes = {
59
+ items?: SkoalaApiHostedV1alpha1Nacos.Nacos[]
60
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
61
+ }
62
+
63
+ export type Nacos = {
64
+ workspaceId?: string
65
+ clusterName?: string
66
+ nacosName?: string
67
+ namespaceName?: string
68
+ type?: NacosConfigType
69
+ serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
70
+ ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
71
+ status?: NacosStatus
72
+ replicas?: number
73
+ image?: string
74
+ version?: string
75
+ nodeCount?: number
76
+ healthNodeCount?: number
77
+ externalEndpoints?: string[]
78
+ internalEndpoints?: string[]
79
+ governMode?: SkoalaApiHostedV1alpha1Plugins.GetGovernResMode
80
+ database?: NacosDatabase
81
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
82
+ condition?: NacosCondition[]
83
+ certificationEnabled?: boolean
84
+ volume?: Volume
85
+ createAt?: string
86
+ jvmPercentage?: number
87
+ insight?: SkoalaApiGeneralV1alpha1Insight.NacosInsightMetrics
88
+ clusterPhase?: SkoalaApiGeneralV1alpha1Common.ClusterPhase
89
+ workloadState?: SkoalaApiGeneralV1alpha1Common.WorkloadState
90
+ failedReason?: string[]
91
+ ldap?: LDAP
92
+ lbParam?: LoadBalanceParam
93
+ affinity?: SkoalaApiGeneralV1alpha1Affinity.Affinity
94
+ logTarget?: LogTarget
95
+ }
96
+
97
+ export type Volume = {
98
+ enabled?: boolean
99
+ requests?: SkoalaApiGeneralV1alpha1Resource.ResourceList
100
+ storageClass?: string
101
+ }
102
+
103
+ export type NacosConfig = {
104
+ type?: NacosConfigType
105
+ component?: SkoalaApiGeneralV1alpha1Common.Component
106
+ replicas?: number
107
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
108
+ serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
109
+ ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
110
+ databaseEnabled?: boolean
111
+ databaseParam?: DatabaseParam
112
+ lbParam?: LoadBalanceParam
113
+ volume?: Volume
114
+ insightEnabled?: boolean
115
+ certificationEnabled?: boolean
116
+ jvmPercentage?: number
117
+ ldap?: LDAP
118
+ affinity?: SkoalaApiGeneralV1alpha1Affinity.Affinity
119
+ logTarget?: LogTarget
120
+ }
121
+
122
+ export type DatabaseParam = {
123
+ host?: string
124
+ port?: string
125
+ username?: string
126
+ password?: string
127
+ db?: string
128
+ }
129
+
130
+ export type LoadBalanceParam = {
131
+ lbType?: SkoalaApiGeneralV1alpha1Common.LBType
132
+ addrPoolName?: string
133
+ lbAddr?: string
134
+ }
135
+
136
+ export type LDAP = {
137
+ url?: string
138
+ basedc?: string
139
+ admin?: string
140
+ password?: string
141
+ }
142
+
143
+ export type NacosDatabase = {
144
+ type?: string
145
+ host?: string
146
+ port?: string
147
+ db?: string
148
+ username?: string
149
+ password?: string
150
+ }
151
+
152
+ export type NacosCondition = {
153
+ type?: NodeType
154
+ status?: NacosConditionStatus
155
+ reason?: string
156
+ message?: string
157
+ instance?: string
158
+ hostIP?: string
159
+ podName?: string
160
+ nodeName?: string
161
+ }
@@ -51,4 +51,41 @@ export type Gateway = {
51
51
  contour?: SkoalaApiHostedV1alpha1Gateway.Gateway
52
52
  higress?: SkoalaApiHostedV1alpha3Ai_gateway.AIGateway
53
53
  gatewayType?: SkoalaApiHostedV1alpha3Common.GatewayType
54
+ }
55
+
56
+ export type ListAllGatewayReq = {
57
+ workspaceId?: string
58
+ clusterName?: string
59
+ namespaceName?: string[]
60
+ gatewayType?: SkoalaApiHostedV1alpha3Common.GatewayType
61
+ gatewayName?: string
62
+ page?: number
63
+ pageSize?: number
64
+ }
65
+
66
+ export type ListAllClusterReq = {
67
+ workspaceId?: string
68
+ clusterName?: string
69
+ }
70
+
71
+ export type ListAllClusterRes = {
72
+ items?: Cluster[]
73
+ }
74
+
75
+ export type Cluster = {
76
+ id?: string
77
+ name?: string
78
+ clusterProvider?: SkoalaApiGeneralV1alpha1Common.ClusterProvider
79
+ clusterPhase?: SkoalaApiGeneralV1alpha1Common.ClusterPhase
80
+ version?: string
81
+ workspaceId?: string
82
+ workspaceName?: string
83
+ }
84
+
85
+ export type ListWorkspaceRolePermissionsReq = {
86
+ workspaceId?: string
87
+ }
88
+
89
+ export type ListWorkspaceRolePermissionsRes = {
90
+ permissions?: string[]
54
91
  }
@@ -7,6 +7,7 @@
7
7
  import * as fm from "../../../fetch.pb"
8
8
  import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
9
9
  import * as SkoalaApiHostedV1alpha3Ai_gateway from "../../hosted/v1alpha3/ai_gateway.pb"
10
+ import * as SkoalaApiHostedV1alpha3Nacos from "../../hosted/v1alpha3/nacos.pb"
10
11
  import * as SkoalaApiHostedV1alpha3Skoala from "../../hosted/v1alpha3/skoala.pb"
11
12
  export class AIGateway {
12
13
  static CreateAIGateway(req: SkoalaApiHostedV1alpha3Ai_gateway.CreateAIGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
@@ -35,4 +36,18 @@ export class Skoala {
35
36
  static ListGateways(req: SkoalaApiHostedV1alpha3Skoala.ListGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Skoala.ListGatewayRes> {
36
37
  return fm.fetchReq<SkoalaApiHostedV1alpha3Skoala.ListGatewayReq, SkoalaApiHostedV1alpha3Skoala.ListGatewayRes>(`/apis/sesame.skoala.io/v1alpha3/workspaces/${req["workspaceId"]}/gateways?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
37
38
  }
39
+ static ListAllGateways(req: SkoalaApiHostedV1alpha3Skoala.ListAllGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Skoala.ListGatewayRes> {
40
+ return fm.fetchReq<SkoalaApiHostedV1alpha3Skoala.ListAllGatewayReq, SkoalaApiHostedV1alpha3Skoala.ListGatewayRes>(`/apis/sesame.skoala.io/v1alpha3/gateways?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
41
+ }
42
+ static ListAllCluster(req: SkoalaApiHostedV1alpha3Skoala.ListAllClusterReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Skoala.ListAllClusterRes> {
43
+ return fm.fetchReq<SkoalaApiHostedV1alpha3Skoala.ListAllClusterReq, SkoalaApiHostedV1alpha3Skoala.ListAllClusterRes>(`/apis/sesame.skoala.io/v1alpha3/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
44
+ }
45
+ static ListWorkspaceRolePermissions(req: SkoalaApiHostedV1alpha3Skoala.ListWorkspaceRolePermissionsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Skoala.ListWorkspaceRolePermissionsRes> {
46
+ return fm.fetchReq<SkoalaApiHostedV1alpha3Skoala.ListWorkspaceRolePermissionsReq, SkoalaApiHostedV1alpha3Skoala.ListWorkspaceRolePermissionsRes>(`/apis/skoala.io/v1alpha3/permissions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
47
+ }
48
+ }
49
+ export class Nacos {
50
+ static List(req: SkoalaApiHostedV1alpha3Nacos.ListAllNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Nacos.ListNacosRes> {
51
+ return fm.fetchReq<SkoalaApiHostedV1alpha3Nacos.ListAllNacosReq, SkoalaApiHostedV1alpha3Nacos.ListNacosRes>(`/apis/hive.skoala.io/v1alpha3/nacoses?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
52
+ }
38
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.50.1",
3
+ "version": "0.51.0-4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {