@daocloud-proto/skoala 0.46.0 → 0.46.1-10

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.
@@ -229,4 +229,44 @@ export type SamplePoint = {
229
229
  export type SampleSequence = {
230
230
  key?: string
231
231
  samples?: SamplePoint[]
232
+ }
233
+
234
+ export type Probe = {
235
+ exec?: ExecAction
236
+ httpGet?: HTTPGetAction
237
+ tcpSocket?: TCPSocketAction
238
+ grpc?: GRPCAction
239
+ initialDelaySeconds?: number
240
+ timeoutSeconds?: number
241
+ periodSeconds?: number
242
+ successThreshold?: number
243
+ failureThreshold?: number
244
+ terminationGracePeriodSeconds?: number
245
+ }
246
+
247
+ export type ExecAction = {
248
+ command?: string[]
249
+ }
250
+
251
+ export type HTTPGetAction = {
252
+ path?: string
253
+ port?: number
254
+ host?: string
255
+ scheme?: string
256
+ httpHeaders?: HTTPHeader[]
257
+ }
258
+
259
+ export type HTTPHeader = {
260
+ name?: string
261
+ value?: string
262
+ }
263
+
264
+ export type TCPSocketAction = {
265
+ port?: string
266
+ host?: string
267
+ }
268
+
269
+ export type GRPCAction = {
270
+ port?: number
271
+ service?: string
232
272
  }
@@ -341,6 +341,7 @@ type BaseContourAdvancedConfig = {
341
341
  diagnostic?: GatewayDiagnostic
342
342
  tracingConfig?: TracingConfig
343
343
  annotations?: {[key: string]: string}
344
+ disableEndpointSlices?: boolean
344
345
  }
345
346
 
346
347
  export type ContourAdvancedConfig = BaseContourAdvancedConfig
@@ -0,0 +1,271 @@
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 SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
+ import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
9
+ import * as SkoalaApiHostedV1alpha3Common from "./common.pb"
10
+
11
+ type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
12
+ type OneOf<T> =
13
+ | { [k in keyof T]?: undefined }
14
+ | (
15
+ keyof T extends infer K ?
16
+ (K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
17
+ : never)
18
+ : never);
19
+
20
+ export enum GatewayDeployType {
21
+ GatewayDeployType_UNSPECIFIED = "GatewayDeployType_UNSPECIFIED",
22
+ GatewayDeployType_Deployment = "GatewayDeployType_Deployment",
23
+ GatewayDeployType_DaemonSet = "GatewayDeployType_DaemonSet",
24
+ }
25
+
26
+ export enum EnvoyLogLevel {
27
+ warning = "warning",
28
+ debug = "debug",
29
+ info = "info",
30
+ error = "error",
31
+ critical = "critical",
32
+ trace = "trace",
33
+ off = "off",
34
+ }
35
+
36
+ export enum GatewayStatus {
37
+ GATEWAY_STATUS_UNSPECIFIED = "GATEWAY_STATUS_UNSPECIFIED",
38
+ Unknown = "Unknown",
39
+ Error = "Error",
40
+ Starting = "Starting",
41
+ Running = "Running",
42
+ }
43
+
44
+ export enum CommonServiceConfigServiceType {
45
+ ServiceType_UNSPECIFIED = "ServiceType_UNSPECIFIED",
46
+ ServiceType_NODE_PORT = "ServiceType_NODE_PORT",
47
+ ServiceType_LOAD_BALANCER = "ServiceType_LOAD_BALANCER",
48
+ ServiceType_CLUSTER_IP = "ServiceType_CLUSTER_IP",
49
+ }
50
+
51
+ export type CreateAIGatewayReq = {
52
+ workspaceId?: string
53
+ gatewayName?: string
54
+ clusterName?: string
55
+ namespaceName?: string
56
+ config?: AIGatewayConfig
57
+ }
58
+
59
+ export type DeleteAIGatewayReq = {
60
+ workspaceId?: string
61
+ clusterName?: string
62
+ namespaceName?: string
63
+ gatewayName?: string
64
+ }
65
+
66
+ export type UpdateAIGatewayReq = {
67
+ workspaceId?: string
68
+ gatewayName?: string
69
+ clusterName?: string
70
+ namespaceName?: string
71
+ config?: AIGatewayConfig
72
+ }
73
+
74
+ export type AIGatewayMeta = {
75
+ gatewayType?: SkoalaApiHostedV1alpha3Common.AIGatewayType
76
+ managerType?: SkoalaApiHostedV1alpha3Common.ManagerType
77
+ }
78
+
79
+
80
+ type BaseAIGatewayConfig = {
81
+ meta?: AIGatewayMeta
82
+ }
83
+
84
+ export type AIGatewayConfig = BaseAIGatewayConfig
85
+ & OneOf<{ higress: HigressConfig }>
86
+
87
+ export type HigressConfig = {
88
+ controller?: HigressControllerConfig
89
+ gateway?: HigressGatewayConfig
90
+ console?: HigressConsoleConfig
91
+ observability?: boolean
92
+ }
93
+
94
+ export type HigressConsoleConfig = {
95
+ }
96
+
97
+ export type HigressControllerConfig = {
98
+ image?: string
99
+ replicas?: number
100
+ env?: {[key: string]: string}
101
+ labels?: {[key: string]: string}
102
+ annotations?: {[key: string]: string}
103
+ livenessProbe?: SkoalaApiGeneralV1alpha1Common.Probe
104
+ readinessProbe?: SkoalaApiGeneralV1alpha1Common.Probe
105
+ imagePullSecrets?: string[]
106
+ enableRbac?: boolean
107
+ podLabels?: {[key: string]: string}
108
+ podAnnotations?: {[key: string]: string}
109
+ serviceConfig?: CommonServiceConfig
110
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
111
+ nodeSelector?: {[key: string]: string}
112
+ autoscaling?: AutoScalingConfig
113
+ automaticHttps?: AutomaticHttps
114
+ }
115
+
116
+ export type AutomaticHttps = {
117
+ enable?: boolean
118
+ email?: string
119
+ }
120
+
121
+ export type HigressGatewayConfig = {
122
+ ingressClass?: string
123
+ image?: string
124
+ envoyLog?: EnvoyLog
125
+ replicas?: number
126
+ deployType?: GatewayDeployType
127
+ env?: {[key: string]: string}
128
+ livenessProbe?: SkoalaApiGeneralV1alpha1Common.Probe
129
+ readinessProbe?: SkoalaApiGeneralV1alpha1Common.Probe
130
+ httpPort?: number
131
+ httpsPort?: number
132
+ hostNetwork?: boolean
133
+ labels?: {[key: string]: string}
134
+ annotations?: {[key: string]: string}
135
+ podLabels?: {[key: string]: string}
136
+ podAnnotations?: {[key: string]: string}
137
+ serviceConfig?: CommonServiceConfig
138
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
139
+ autoscaling?: AutoScalingConfig
140
+ nodeSelector?: {[key: string]: string}
141
+ enableRbac?: boolean
142
+ }
143
+
144
+ export type AutoScalingConfig = {
145
+ enable?: boolean
146
+ minReplicas?: string
147
+ maxReplicas?: string
148
+ targetCpuUtilizationPercentage?: string
149
+ }
150
+
151
+ export type HigressGatewayConfigOptional = {
152
+ enableIstio?: boolean
153
+ enableGatewayApi?: boolean
154
+ local?: boolean
155
+ priorityClassName?: string
156
+ enableRbac?: boolean
157
+ serviceAccount?: boolean
158
+ }
159
+
160
+ export type CommonServiceConfigServicePort = {
161
+ name?: string
162
+ port?: string
163
+ protocol?: string
164
+ targetPort?: string
165
+ }
166
+
167
+ export type CommonServiceConfig = {
168
+ serviceType?: CommonServiceConfigServiceType
169
+ servicePorts?: CommonServiceConfigServicePort[]
170
+ annotations?: {[key: string]: string}
171
+ loadBalancerIp?: string
172
+ loadBalancerClass?: string
173
+ loadBalancerSourceRanges?: string[]
174
+ externalTrafficPolicy?: string
175
+ }
176
+
177
+ export type EnvoyLog = {
178
+ componentLevel?: {[key: string]: EnvoyLogLevel}
179
+ globalLevel?: EnvoyLogLevel
180
+ }
181
+
182
+ export type HigressIgnoreConfig = {
183
+ enableH3?: boolean
184
+ enableIpv6?: boolean
185
+ enableProxyProtocol?: boolean
186
+ enableLsdCache?: boolean
187
+ enablePushAllMcpClusters?: boolean
188
+ listMetrics?: boolean
189
+ xdsMaxRecvMsgSize?: number
190
+ defaultUpstreamConcurrencyThreshold?: number
191
+ enableSrds?: boolean
192
+ enableRedis?: boolean
193
+ onDemandRds?: boolean
194
+ hostRdsMergeSubset?: boolean
195
+ onlyPushRouteCluster?: boolean
196
+ disableAlpnH2?: boolean
197
+ autosclingv2Api?: boolean
198
+ istioNamespace?: string
199
+ logAsJson?: boolean
200
+ defaultResource?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
201
+ enableIstiodAnalysis?: boolean
202
+ clusterName?: string
203
+ securityContext?: string
204
+ containerSecurityContext?: string
205
+ unprivilegedSecurityContext?: string
206
+ }
207
+
208
+ export type AIGatewayHigressConfig = {
209
+ clusterName?: string
210
+ namespaceName?: string
211
+ gatewayName?: string
212
+ config?: AIGatewayConfig
213
+ }
214
+
215
+ export type ListAIGatewayReq = {
216
+ workspaceId?: string
217
+ clusterName?: string
218
+ namespaceName?: string
219
+ gatewayName?: string
220
+ page?: number
221
+ pageSize?: number
222
+ }
223
+
224
+ export type ListAIGatewayRes = {
225
+ items?: AIGateway[]
226
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
227
+ }
228
+
229
+ export type AIGateway = {
230
+ workspaceId?: string
231
+ clusterName?: string
232
+ namespaceName?: string
233
+ gatewayName?: string
234
+ createdAt?: string
235
+ updatedAt?: string
236
+ condition?: GatewayCondition
237
+ externalEndpoints?: string[]
238
+ internalEndpoints?: string[]
239
+ controller?: Node
240
+ worker?: Node
241
+ clusterPhase?: SkoalaApiGeneralV1alpha1Common.ClusterPhase
242
+ consoleUrl?: string
243
+ }
244
+
245
+ export type GatewayCondition = {
246
+ status?: GatewayStatus
247
+ message?: string
248
+ }
249
+
250
+ export type Node = {
251
+ total?: number
252
+ online?: number
253
+ }
254
+
255
+ export type AutoLoginHigressConsoleReq = {
256
+ workspaceId?: string
257
+ clusterName?: string
258
+ namespaceName?: string
259
+ gatewayName?: string
260
+ }
261
+
262
+ export type GetAIGatewayReq = {
263
+ workspaceId?: string
264
+ clusterName?: string
265
+ namespaceName?: string
266
+ gatewayName?: string
267
+ }
268
+
269
+ export type GetAIGatewayRes = {
270
+ gateway?: AIGateway
271
+ }
@@ -0,0 +1,22 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ export enum AIGatewayType {
8
+ AIGatewayType_UNSPECIFIED = "AIGatewayType_UNSPECIFIED",
9
+ AIGatewayType_Higress = "AIGatewayType_Higress",
10
+ }
11
+
12
+ export enum ManagerType {
13
+ ManagerType_UNSPECIFIED = "ManagerType_UNSPECIFIED",
14
+ ManagerType_OPERATOR = "ManagerType_OPERATOR",
15
+ ManagerType_HELM = "ManagerType_HELM",
16
+ }
17
+
18
+ export enum GatewayType {
19
+ GatewayType_UNSPECIFIED = "GatewayType_UNSPECIFIED",
20
+ GatewayType_Higress = "GatewayType_Higress",
21
+ GatewayType_Contour = "GatewayType_Contour",
22
+ }
@@ -0,0 +1,54 @@
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 SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
+ import * as SkoalaApiHostedV1alpha1Gateway from "../v1alpha1/gateway.pb"
9
+ import * as SkoalaApiHostedV1alpha3Ai_gateway from "./ai_gateway.pb"
10
+ import * as SkoalaApiHostedV1alpha3Common from "./common.pb"
11
+
12
+ export enum NamespaceGatewayStatusStatus {
13
+ Available = "Available",
14
+ Contour = "Contour",
15
+ Higress = "Higress",
16
+ }
17
+
18
+ export type ListNamespaceReq = {
19
+ workspaceId?: string
20
+ clusterName?: string
21
+ page?: number
22
+ pageSize?: number
23
+ }
24
+
25
+ export type ListNamespaceRes = {
26
+ items?: NamespaceGatewayStatus[]
27
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
28
+ }
29
+
30
+ export type NamespaceGatewayStatus = {
31
+ namespaceName?: string
32
+ status?: NamespaceGatewayStatusStatus
33
+ }
34
+
35
+ export type ListGatewayReq = {
36
+ workspaceId?: string
37
+ clusterName?: string
38
+ namespaceName?: string
39
+ gatewayType?: SkoalaApiHostedV1alpha3Common.GatewayType
40
+ gatewayName?: string
41
+ page?: number
42
+ pageSize?: number
43
+ }
44
+
45
+ export type ListGatewayRes = {
46
+ items?: Gateway[]
47
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
48
+ }
49
+
50
+ export type Gateway = {
51
+ contour?: SkoalaApiHostedV1alpha1Gateway.Gateway
52
+ higress?: SkoalaApiHostedV1alpha3Ai_gateway.AIGateway
53
+ gatewayType?: SkoalaApiHostedV1alpha3Common.GatewayType
54
+ }
@@ -0,0 +1,38 @@
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 fm from "../../../fetch.pb"
8
+ import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
9
+ import * as SkoalaApiHostedV1alpha3Ai_gateway from "../../hosted/v1alpha3/ai_gateway.pb"
10
+ import * as SkoalaApiHostedV1alpha3Skoala from "../../hosted/v1alpha3/skoala.pb"
11
+ export class AIGateway {
12
+ static CreateAIGateway(req: SkoalaApiHostedV1alpha3Ai_gateway.CreateAIGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
13
+ return fm.fetchReq<SkoalaApiHostedV1alpha3Ai_gateway.CreateAIGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha3/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/aigateways`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
14
+ }
15
+ static UpdateAIGateway(req: SkoalaApiHostedV1alpha3Ai_gateway.UpdateAIGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
16
+ return fm.fetchReq<SkoalaApiHostedV1alpha3Ai_gateway.UpdateAIGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha3/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/aigateways/${req["gatewayName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
17
+ }
18
+ static DeleteAIGateway(req: SkoalaApiHostedV1alpha3Ai_gateway.DeleteAIGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
19
+ return fm.fetchReq<SkoalaApiHostedV1alpha3Ai_gateway.DeleteAIGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha3/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/aigateways/${req["gatewayName"]}`, {...initReq, method: "DELETE"})
20
+ }
21
+ static ListAIGateway(req: SkoalaApiHostedV1alpha3Ai_gateway.ListAIGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Ai_gateway.ListAIGatewayRes> {
22
+ return fm.fetchReq<SkoalaApiHostedV1alpha3Ai_gateway.ListAIGatewayReq, SkoalaApiHostedV1alpha3Ai_gateway.ListAIGatewayRes>(`/apis/sesame.skoala.io/v1alpha3/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/aigateways?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName"])}`, {...initReq, method: "GET"})
23
+ }
24
+ static GetAIGateway(req: SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayRes> {
25
+ return fm.fetchReq<SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayReq, SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayRes>(`/apis/sesame.skoala.io/v1alpha3/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/aigateways/${req["gatewayName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
26
+ }
27
+ static AutoLoginHigressConsloe(req: SkoalaApiHostedV1alpha3Ai_gateway.AutoLoginHigressConsoleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
28
+ return fm.fetchReq<SkoalaApiHostedV1alpha3Ai_gateway.AutoLoginHigressConsoleReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha3/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/aigateways/${req["gatewayName"]}/auto-login?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
29
+ }
30
+ }
31
+ export class Skoala {
32
+ static ListGatewayNamespaces(req: SkoalaApiHostedV1alpha3Skoala.ListNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Skoala.ListNamespaceRes> {
33
+ return fm.fetchReq<SkoalaApiHostedV1alpha3Skoala.ListNamespaceReq, SkoalaApiHostedV1alpha3Skoala.ListNamespaceRes>(`/apis/sesame.skoala.io/v1alpha3/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/gateway-namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
34
+ }
35
+ static ListGateways(req: SkoalaApiHostedV1alpha3Skoala.ListGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Skoala.ListGatewayRes> {
36
+ 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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.46.0",
3
+ "version": "0.46.1-10",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {