@daocloud-proto/skoala 0.24.1-2 → 0.24.1-22

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.
@@ -213,6 +213,7 @@ export type GetPrerequisiteReq = {
213
213
 
214
214
  export type GetPrerequisiteRes = {
215
215
  ok?: boolean
216
+ chartVersion?: string
216
217
  }
217
218
 
218
219
  export type ListMysqlReq = {
@@ -27,6 +27,12 @@ export enum GatewayStatus {
27
27
  Running = "Running",
28
28
  }
29
29
 
30
+ export enum SesameGatewayResourceType {
31
+ SESAME_RESOURCE_VIRTUALHOST = "SESAME_RESOURCE_VIRTUALHOST",
32
+ SESAME_RESOURCE_EXTERNALSERVICE = "SESAME_RESOURCE_EXTERNALSERVICE",
33
+ SESAME_RESOURCE_API = "SESAME_RESOURCE_API",
34
+ }
35
+
30
36
  export enum HealthStatus {
31
37
  HEALTH_STATUS_UNSPECIFIED = "HEALTH_STATUS_UNSPECIFIED",
32
38
  Healthy = "Healthy",
@@ -250,6 +256,24 @@ export type UpdateGatewayRes = {
250
256
  status?: SkoalaApiGeneralV1alpha1Common.Status
251
257
  }
252
258
 
259
+ export type DeleteGatewayCheckReq = {
260
+ workspaceId?: string
261
+ clusterName?: string
262
+ namespaceName?: string
263
+ gatewayName?: string
264
+ }
265
+
266
+ export type DeleteGatewayCheckRes = {
267
+ canDelete?: boolean
268
+ gatewayUsage?: GatewayUsage[]
269
+ }
270
+
271
+ export type GatewayUsage = {
272
+ sesameResourceType?: SesameGatewayResourceType
273
+ resourceCount?: number
274
+ canDelete?: boolean
275
+ }
276
+
253
277
  export type DeleteGatewayReq = {
254
278
  workspaceId?: string
255
279
  clusterName?: string
@@ -247,8 +247,8 @@ export type ListServiceGovernRes = {
247
247
  export type ListServiceGovern = {
248
248
  port?: number
249
249
  lb?: LB
250
- updateTime?: number
251
250
  protocol?: GovernProtocol
251
+ plugins?: ServiceIstioPluginInfo[]
252
252
  }
253
253
 
254
254
  export type CreateServiceIstioPluginReq = {
@@ -279,6 +279,9 @@ export type GetServiceIstioPluginReq = {
279
279
  }
280
280
 
281
281
  export type GetServiceIstioPluginRes = {
282
+ port?: number
283
+ pluginType?: SkoalaApiHostedV1alpha1Skoala_plugins.PluginType
284
+ pluginName?: string
282
285
  istioPlugin?: IstioPlugin
283
286
  }
284
287
 
@@ -349,8 +352,8 @@ export type ListServiceIstioPluginRes = {
349
352
 
350
353
  export type ServiceIstioPluginInfo = {
351
354
  pluginType?: SkoalaApiHostedV1alpha1Skoala_plugins.PluginType
352
- pluginName?: string[]
353
- ports?: number[]
355
+ pluginName?: string
356
+ ports?: number
354
357
  showName?: string
355
358
  }
356
359
 
@@ -220,14 +220,25 @@ export type GetRLSDomainRes = {
220
220
  domain?: string[]
221
221
  }
222
222
 
223
+ export type ListRLSDomainRulesReq = {
224
+ workspaceId?: string
225
+ pluginName?: string
226
+ domain?: string
227
+ }
228
+
229
+ export type ListRLSDomainRulesRes = {
230
+ rules?: PluginRLSRule[]
231
+ }
232
+
223
233
  export type GetRLSDomainRulesReq = {
224
234
  workspaceId?: string
225
235
  pluginName?: string
226
236
  domain?: string
237
+ rlsRuleName?: string
227
238
  }
228
239
 
229
240
  export type GetRLSDomainRulesRes = {
230
- rules?: PluginRLSRule[]
241
+ rule?: PluginRLSRule
231
242
  }
232
243
 
233
244
  export type PluginRLSRuleRateLimit = {
@@ -532,6 +532,9 @@ export class Gateway {
532
532
  static Update(req: SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
533
533
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
534
534
  }
535
+ static DeleteGatewayCheck(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayCheckReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayCheckRes> {
536
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayCheckReq, SkoalaApiHostedV1alpha1Gateway.DeleteGatewayCheckRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/deletecheck?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
537
+ }
535
538
  static Delete(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
536
539
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "DELETE"})
537
540
  }
@@ -735,7 +738,10 @@ export class SkoalaPlugin {
735
738
  return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainReq, SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins/rls/${req["pluginName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "pluginName"])}`, {...initReq, method: "GET"})
736
739
  }
737
740
  static GetRLSDomainRules(req: SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRulesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRulesRes> {
738
- return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRulesReq, SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRulesRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins/rls/${req["pluginName"]}/domain/${req["domain"]}?${fm.renderURLSearchParams(req, ["workspaceId", "pluginName", "domain"])}`, {...initReq, method: "GET"})
741
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRulesReq, SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRulesRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins/rls/${req["pluginName"]}/domain/${req["domain"]}/rule/${req["rlsRuleName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "pluginName", "domain", "rlsRuleName"])}`, {...initReq, method: "GET"})
742
+ }
743
+ static ListRLSDomainRules(req: SkoalaApiHostedV1alpha1Skoala_plugins.ListRLSDomainRulesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Skoala_plugins.ListRLSDomainRulesRes> {
744
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.ListRLSDomainRulesReq, SkoalaApiHostedV1alpha1Skoala_plugins.ListRLSDomainRulesRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins/rls/${req["pluginName"]}/domain/${req["domain"]}?${fm.renderURLSearchParams(req, ["workspaceId", "pluginName", "domain"])}`, {...initReq, method: "GET"})
739
745
  }
740
746
  static SkoalaPluginUsageUpdate(req: SkoalaApiHostedV1alpha1Skoala_plugins.SkoalaPluginUpdateReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Skoala_plugins.SkoalaPluginUpdateRes> {
741
747
  return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.SkoalaPluginUpdateReq, SkoalaApiHostedV1alpha1Skoala_plugins.SkoalaPluginUpdateRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins/${req["pluginName"]}/usage`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.24.1-2",
3
+ "version": "0.24.1-22",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {