@daocloud-proto/skoala 0.7.2-4 → 0.7.2-42

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.
@@ -71,6 +71,7 @@ export type ListMeshServiceReq = {
71
71
  workspaceId?: string
72
72
  meshId?: string
73
73
  namespaceName?: string[]
74
+ serviceName?: string
74
75
  page?: number
75
76
  pageSize?: number
76
77
  }
@@ -44,6 +44,10 @@ export type SearchLogRes = {
44
44
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
45
45
  }
46
46
 
47
+ export type ExportLogURLRes = {
48
+ url?: string
49
+ }
50
+
47
51
  export type LogResult = {
48
52
  authority?: string
49
53
  method?: string
@@ -135,6 +135,12 @@ export type GetGatewayReq = {
135
135
  gatewayName?: string
136
136
  }
137
137
 
138
+ export type GetGatewayChartsRes = {
139
+ sesame?: SkoalaApiGeneralV1alpha1Common.Chart
140
+ rls?: SkoalaApiGeneralV1alpha1Common.Chart
141
+ authz?: SkoalaApiGeneralV1alpha1Common.Chart
142
+ }
143
+
138
144
  export type GetGatewayRes = {
139
145
  gateways?: Gateway
140
146
  }
@@ -223,6 +229,7 @@ export type NormalConfig = {
223
229
  }
224
230
 
225
231
  export type GatewayConfig = {
232
+ chart?: SkoalaApiGeneralV1alpha1Common.Chart
226
233
  normal?: NormalConfig
227
234
  advanced?: AdvancedConfig
228
235
  }
@@ -37,11 +37,6 @@ export enum RouteType {
37
37
  UNKNOW = "UNKNOW",
38
38
  }
39
39
 
40
- export enum APIStatus {
41
- UP = "UP",
42
- DOWN = "DOWN",
43
- }
44
-
45
40
  export type Header = {
46
41
  name?: string
47
42
  value?: string
@@ -55,6 +50,29 @@ type BaseHeaderRule = {
55
50
  export type HeaderRule = BaseHeaderRule
56
51
  & OneOf<{ contains: string; exact: string; notContains: string; notExact: string; present: boolean; notPresent: boolean }>
57
52
 
53
+ export type APIStatus = {
54
+ currentStatus?: string
55
+ description?: string
56
+ conditions?: Conditions[]
57
+ }
58
+
59
+ export type Conditions = {
60
+ errors?: Status[]
61
+ lastTransitionTime?: string
62
+ message?: string
63
+ reason?: string
64
+ status?: string
65
+ type?: string
66
+ warnings?: Status[]
67
+ }
68
+
69
+ export type Status = {
70
+ message?: string
71
+ reason?: string
72
+ status?: string
73
+ type?: string
74
+ }
75
+
58
76
  export type APIInfo = {
59
77
  apiName?: string
60
78
  apiGroup?: string
@@ -64,5 +82,7 @@ export type APIInfo = {
64
82
  routeType?: RouteType
65
83
  enabled?: boolean
66
84
  apiStatus?: APIStatus
85
+ status?: string
86
+ statusDescription?: string
67
87
  updatedAt?: string
68
88
  }
@@ -0,0 +1,107 @@
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 GoogleProtobufAny from "../../../google/protobuf/any.pb"
8
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
9
+
10
+ type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
11
+ type OneOf<T> =
12
+ | { [k in keyof T]?: undefined }
13
+ | (
14
+ keyof T extends infer K ?
15
+ (K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
16
+ : never)
17
+ : never);
18
+
19
+ export enum ResourceType {
20
+ RESOURCE_TYPE_UNSPECIFIED = "RESOURCE_TYPE_UNSPECIFIED",
21
+ VIRTUAL_SERVICE = "VIRTUAL_SERVICE",
22
+ DESTINATION_RULE = "DESTINATION_RULE",
23
+ GATEWAY = "GATEWAY",
24
+ SERVICE_ENTRY = "SERVICE_ENTRY",
25
+ ENVOY_FILTER = "ENVOY_FILTER",
26
+ PROXY_CONFIG = "PROXY_CONFIG",
27
+ SIDECAR = "SIDECAR",
28
+ WORKLOAD_GROUP = "WORKLOAD_GROUP",
29
+ WORKLOAD_ENTRY = "WORKLOAD_ENTRY",
30
+ AUTHORIZATION_POLICY = "AUTHORIZATION_POLICY",
31
+ PEER_AUTHENTICATION = "PEER_AUTHENTICATION",
32
+ REQUEST_AUTHENTICATION = "REQUEST_AUTHENTICATION",
33
+ WASM_PLUGIN = "WASM_PLUGIN",
34
+ TELEMETRY = "TELEMETRY",
35
+ }
36
+
37
+ export enum OutputFormat {
38
+ OUTPUT_FORMAT_UNSPECIFIED = "OUTPUT_FORMAT_UNSPECIFIED",
39
+ YAML = "YAML",
40
+ SPEC = "SPEC",
41
+ }
42
+
43
+
44
+ type BaseIstioResource = {
45
+ type?: ResourceType
46
+ meshId?: string
47
+ namespace?: string
48
+ name?: string
49
+ createTime?: number
50
+ }
51
+
52
+ export type IstioResource = BaseIstioResource
53
+ & OneOf<{ yaml: string; spec: GoogleProtobufAny.Any }>
54
+
55
+ export type ListMeshResourceReq = {
56
+ workspaceId?: string
57
+ clusterName?: string
58
+ namespaceName?: string
59
+ meshId?: string
60
+ type?: ResourceType
61
+ output?: OutputFormat
62
+ page?: number
63
+ pageSize?: number
64
+ pageSearch?: string
65
+ }
66
+
67
+ export type ListMeshResourceRes = {
68
+ items?: IstioResource[]
69
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
70
+ }
71
+
72
+ export type GetMeshResourceReq = {
73
+ workspaceId?: string
74
+ clusterName?: string
75
+ namespaceName?: string
76
+ meshId?: string
77
+ type?: ResourceType
78
+ output?: OutputFormat
79
+ name?: string
80
+ }
81
+
82
+ export type GetMeshResourceRes = {
83
+ item?: IstioResource
84
+ }
85
+
86
+
87
+ type BaseCreateMeshResourceReq = {
88
+ workspaceId?: string
89
+ clusterName?: string
90
+ namespaceName?: string
91
+ meshId?: string
92
+ type?: ResourceType
93
+ name?: string
94
+ }
95
+
96
+ export type CreateMeshResourceReq = BaseCreateMeshResourceReq
97
+ & OneOf<{ yaml: string; spec: GoogleProtobufAny.Any }>
98
+
99
+ export type DeleteMeshResourceReq = {
100
+ workspaceId?: string
101
+ clusterName?: string
102
+ namespaceName?: string
103
+ meshId?: string
104
+ type?: ResourceType
105
+ name?: string
106
+ output?: OutputFormat
107
+ }
@@ -19,6 +19,12 @@ export enum NacosConfigFileType {
19
19
  properties = "properties",
20
20
  }
21
21
 
22
+ export enum NodeType {
23
+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
24
+ FOLLOWER = "FOLLOWER",
25
+ LEADER = "LEADER",
26
+ }
27
+
22
28
  export enum NacosStatus {
23
29
  STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
24
30
  Running = "Running",
@@ -27,12 +33,6 @@ export enum NacosStatus {
27
33
  Scaling = "Scaling",
28
34
  }
29
35
 
30
- export enum NacosConditionType {
31
- TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
32
- FOLLOWER = "FOLLOWER",
33
- LEADER = "LEADER",
34
- }
35
-
36
36
  export enum NacosConditionStatus {
37
37
  STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
38
38
  UNKNOWN = "UNKNOWN",
@@ -46,6 +46,13 @@ export enum NacosConfigType {
46
46
  cluster = "cluster",
47
47
  }
48
48
 
49
+ export enum NacosConfigHistoryBriefOpType {
50
+ OP_TYPE_UNSPECIFIED = "OP_TYPE_UNSPECIFIED",
51
+ CREATE = "CREATE",
52
+ UPDATE = "UPDATE",
53
+ DELETE = "DELETE",
54
+ }
55
+
49
56
  export enum CreateNacosConfigReqPolicy {
50
57
  POLICY_TYPE_UNSPECIFIED = "POLICY_TYPE_UNSPECIFIED",
51
58
  ABORT = "ABORT",
@@ -103,7 +110,7 @@ export type NacosDatabase = {
103
110
  }
104
111
 
105
112
  export type NacosCondition = {
106
- type?: NacosConditionType
113
+ type?: NodeType
107
114
  status?: NacosConditionStatus
108
115
  reason?: string
109
116
  message?: string
@@ -165,6 +172,7 @@ export type NacosConfig = {
165
172
  databaseEnabled?: boolean
166
173
  databaseParam?: DatabaseParam
167
174
  volume?: Volume
175
+ insightEnabled?: boolean
168
176
  }
169
177
 
170
178
  export type Volume = {
@@ -208,6 +216,7 @@ export type NacosServiceBrief = {
208
216
  triggerFlag?: boolean
209
217
  nacosNamespace?: string
210
218
  insight?: SkoalaApiGeneralV1alpha1Insight.InsightBrief
219
+ governed?: boolean
211
220
  }
212
221
 
213
222
  export type NacosInstanceCluster = {
@@ -605,7 +614,7 @@ export type NacosConfigHistoryBrief = {
605
614
  lastId?: number
606
615
  lastModifyTime?: string
607
616
  md5?: string
608
- opType?: string
617
+ opType?: NacosConfigHistoryBriefOpType
609
618
  srcIp?: string
610
619
  srcUser?: string
611
620
  tenant?: string
@@ -739,16 +748,7 @@ export type DeleteNacosConfigReq = {
739
748
  nacosNamespace?: string
740
749
  dataId?: string
741
750
  group?: string
742
- }
743
-
744
- export type DeleteNacosConfigBatchReq = {
745
- workspaceId?: string
746
- clusterName?: string
747
- namespaceName?: string
748
- nacosName?: string
749
- nacosNamespace?: string
750
- dataId?: string
751
- group?: string
751
+ delType?: string
752
752
  ids?: string
753
753
  }
754
754
 
@@ -786,6 +786,8 @@ export type NacosNode = {
786
786
  metadata?: string
787
787
  abilities?: string
788
788
  failAccessCnt?: number
789
+ type?: NodeType
790
+ modifyTime?: string
789
791
  }
790
792
 
791
793
  export type CheckNacosConfigReq = {
@@ -4,6 +4,7 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
+ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
7
8
  import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
8
9
  import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
9
10
 
@@ -66,6 +67,7 @@ export type GetMeshPluginReq = {
66
67
 
67
68
  export type GetMeshPluginRes = {
68
69
  name?: string
70
+ enabled?: boolean
69
71
  }
70
72
 
71
73
  export type UpdatePluginReq = {
@@ -79,7 +81,7 @@ export type UpdatePluginReq = {
79
81
 
80
82
  export type UpdateSentinelPluginReq = {
81
83
  enabled?: boolean
82
- image?: string
84
+ chart?: SkoalaApiGeneralV1alpha1Common.Chart
83
85
  replicas?: number
84
86
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
85
87
  type?: SkoalaApiGeneralV1alpha1Service.ServiceType
@@ -115,4 +117,5 @@ export type GetSentinelRes = {
115
117
 
116
118
  export type GetMeshRes = {
117
119
  name?: string
120
+ enabled?: boolean
118
121
  }
@@ -7,8 +7,20 @@
7
7
  import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
8
 
9
9
  export enum Grade {
10
- FLOW_GRADE_THREAD = "FLOW_GRADE_THREAD",
11
- FLOW_GRADE_QPS = "FLOW_GRADE_QPS",
10
+ THREAD = "THREAD",
11
+ QPS = "QPS",
12
+ }
13
+
14
+ export enum Strategy {
15
+ Director = "Director",
16
+ ASSOCIATION = "ASSOCIATION",
17
+ LINKER = "LINKER",
18
+ }
19
+
20
+ export enum ControlBehavior {
21
+ FAST_FAILED = "FAST_FAILED",
22
+ WARM_UP = "WARM_UP",
23
+ WAITING_IN_QUEUE = "WAITING_IN_QUEUE",
12
24
  }
13
25
 
14
26
  export enum DegradeRuleGrade {
@@ -22,7 +34,7 @@ export enum AuthorityRuleStrategy {
22
34
  AUTHORITY_BLACK = "AUTHORITY_BLACK",
23
35
  }
24
36
 
25
- export type GetAppInstanceReq = {
37
+ export type GetInsGovernReq = {
26
38
  workspaceId?: string
27
39
  clusterName?: string
28
40
  namespaceName?: string
@@ -31,14 +43,24 @@ export type GetAppInstanceReq = {
31
43
  instanceIp?: string
32
44
  }
33
45
 
34
- export type GetAppInstanceRes = {
46
+ export type GetInsGovernRes = {
35
47
  name?: string
36
48
  healthy?: boolean
37
- port?: number
49
+ heartbeatPort?: number
38
50
  version?: string
39
51
  lastHeartbeat?: string
40
52
  }
41
53
 
54
+ export type DeleteInsGovernReq = {
55
+ workspaceId?: string
56
+ clusterName?: string
57
+ namespaceName?: string
58
+ sentinelName?: string
59
+ serviceName?: string
60
+ instanceIp?: string
61
+ heartbeatPort?: number
62
+ }
63
+
42
64
  export type FlowRule = {
43
65
  id?: number
44
66
  app?: string
@@ -46,11 +68,11 @@ export type FlowRule = {
46
68
  port?: number
47
69
  limitApp?: string
48
70
  resource?: string
49
- grade?: number
71
+ grade?: Grade
50
72
  count?: number
51
- strategy?: number
73
+ strategy?: Strategy
52
74
  refResource?: string
53
- controlBehavior?: number
75
+ controlBehavior?: ControlBehavior
54
76
  warmUpPeriodSec?: number
55
77
  maxQueueingTimeMs?: number
56
78
  clusterMode?: boolean
@@ -29,6 +29,27 @@ export type VirtualhostConfig = {
29
29
  rateLimitPolicy?: RateLimitPolicy
30
30
  corsPolicy?: CorsPolicy
31
31
  tlsPolicy?: VirtualhostTLSPolicy
32
+ jwtProviders?: JwtProvider[]
33
+ }
34
+
35
+ export type JwtProvider = {
36
+ audiences?: string
37
+ default?: boolean
38
+ issuer?: string
39
+ name?: string
40
+ remoteJwks?: RemoteJWKS
41
+ }
42
+
43
+ export type RemoteJWKS = {
44
+ cacheDuration?: string
45
+ timeout?: string
46
+ uri?: string
47
+ validation?: Validation
48
+ }
49
+
50
+ export type Validation = {
51
+ caSecret?: string
52
+ subjectName?: string
32
53
  }
33
54
 
34
55
  export type VirtualhostTLSPolicy = {
@@ -81,6 +102,9 @@ export type GetVirtualhostReq = {
81
102
  export type GetVirtualhostRes = {
82
103
  fqdn?: string
83
104
  protocol?: SkoalaApiHostedV1alpha1Http.Protocol
105
+ apiCount?: number
106
+ createAt?: string
107
+ updatedAt?: string
84
108
  rateLimitPolicy?: RateLimitPolicy
85
109
  corsPolicy?: CorsPolicy
86
110
  tlsPolicy?: VirtualhostTLSPolicy
@@ -15,6 +15,7 @@ import * as SkoalaApiHostedV1alpha1Gateway from "../../hosted/v1alpha1/gateway.p
15
15
  import * as SkoalaApiHostedV1alpha1Gateway_plugin from "../../hosted/v1alpha1/gateway_plugin.pb"
16
16
  import * as SkoalaApiHostedV1alpha1Gateway_secret from "../../hosted/v1alpha1/gateway_secret.pb"
17
17
  import * as SkoalaApiHostedV1alpha1Gateway_service from "../../hosted/v1alpha1/gateway_service.pb"
18
+ import * as SkoalaApiHostedV1alpha1Mesh from "../../hosted/v1alpha1/mesh.pb"
18
19
  import * as SkoalaApiHostedV1alpha1Nacos from "../../hosted/v1alpha1/nacos.pb"
19
20
  import * as SkoalaApiHostedV1alpha1Plugins from "../../hosted/v1alpha1/plugins.pb"
20
21
  import * as SkoalaApiHostedV1alpha1Sentinel from "../../hosted/v1alpha1/sentinel.pb"
@@ -218,10 +219,7 @@ export class Nacos {
218
219
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.RollbackNacosConfigReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/${req["dataId"]}/rollback`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
219
220
  }
220
221
  static DeleteConfig(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
221
- return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/${req["dataId"]}`, {...initReq, method: "DELETE"})
222
- }
223
- static DeleteConfigBatch(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigBatchReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
224
- return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigBatchReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs`, {...initReq, method: "DELETE"})
222
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs`, {...initReq, method: "DELETE", body: JSON.stringify(req, fm.replacer)})
225
223
  }
226
224
  static ListNode(req: SkoalaApiHostedV1alpha1Nacos.ListNodeReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNodeRes> {
227
225
  return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNodeReq, SkoalaApiHostedV1alpha1Nacos.ListNodeRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/nodes?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
@@ -237,8 +235,11 @@ export class Nacos {
237
235
  }
238
236
  }
239
237
  export class Sentinel {
240
- static GetAppInstance(req: SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceRes> {
241
- return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceReq, SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinel/${req["sentinelName"]}/appinstance?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName"])}`, {...initReq, method: "GET"})
238
+ static GetInsGovern(req: SkoalaApiHostedV1alpha1Sentinel.GetInsGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetInsGovernRes> {
239
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetInsGovernReq, SkoalaApiHostedV1alpha1Sentinel.GetInsGovernRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/governs?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName"])}`, {...initReq, method: "GET"})
240
+ }
241
+ static DeleteInsGovern(req: SkoalaApiHostedV1alpha1Sentinel.DeleteInsGovernReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
242
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteInsGovernReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/governs/services/${req["serviceName"]}/instances/${req["instanceIp"]}/heartbeat-ports/${req["heartbeatPort"]}`, {...initReq, method: "DELETE"})
242
243
  }
243
244
  static CreateFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.CreateFlowRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
244
245
  return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/flow-rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
@@ -316,6 +317,23 @@ export class Sentinel {
316
317
  return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteAuthorityRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/authority-rules/${req["ruleId"]}`, {...initReq, method: "DELETE"})
317
318
  }
318
319
  }
320
+ export class Mesh {
321
+ static ListMeshResource(req: SkoalaApiHostedV1alpha1Mesh.ListMeshResourceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListMeshResourceRes> {
322
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListMeshResourceReq, SkoalaApiHostedV1alpha1Mesh.ListMeshResourceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/mesh/${req["meshId"]}/istio-resources/${req["type"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "meshId", "type"])}`, {...initReq, method: "GET"})
323
+ }
324
+ static GetMeshResource(req: SkoalaApiHostedV1alpha1Mesh.GetMeshResourceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetMeshResourceRes> {
325
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetMeshResourceReq, SkoalaApiHostedV1alpha1Mesh.GetMeshResourceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/mesh/${req["meshId"]}/istio-resources/${req["type"]}/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "meshId", "type", "name"])}`, {...initReq, method: "GET"})
326
+ }
327
+ static CreateMeshResource(req: SkoalaApiHostedV1alpha1Mesh.CreateMeshResourceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
328
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateMeshResourceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/mesh/${req["meshId"]}/istio-resources/${req["type"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
329
+ }
330
+ static UpdateMeshResource(req: SkoalaApiHostedV1alpha1Mesh.CreateMeshResourceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
331
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateMeshResourceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/mesh/${req["meshId"]}/istio-resources/${req["type"]}/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
332
+ }
333
+ static DeleteMeshResource(req: SkoalaApiHostedV1alpha1Mesh.DeleteMeshResourceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
334
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.DeleteMeshResourceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/mesh/${req["meshId"]}/istio-resources/${req["type"]}/${req["name"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req, fm.replacer)})
335
+ }
336
+ }
319
337
  export class Plugin {
320
338
  static List(req: SkoalaApiHostedV1alpha1Plugins.ListPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Plugins.ListPluginRes> {
321
339
  return fm.fetchReq<SkoalaApiHostedV1alpha1Plugins.ListPluginReq, SkoalaApiHostedV1alpha1Plugins.ListPluginRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespace"]}/nacoses/${req["nacosName"]}/plugins?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespace", "nacosName"])}`, {...initReq, method: "GET"})
@@ -358,6 +376,9 @@ export class Gateway {
358
376
  static Diagnostic(req: SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
359
377
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/diagnostic`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
360
378
  }
379
+ static GetCharts(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayChartsRes> {
380
+ return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiHostedV1alpha1Gateway.GetGatewayChartsRes>(`/apis/sesame.skoala.io/v1alpha1/charts?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
381
+ }
361
382
  static ListGatewayPods(req: SkoalaApiHostedV1alpha1Gateway.ListPodsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListPodsRes> {
362
383
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListPodsReq, SkoalaApiHostedV1alpha1Gateway.ListPodsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/pods?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
363
384
  }
@@ -442,6 +463,9 @@ export class Gateway {
442
463
  static ListGatewayLog(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Apilog.SearchLogRes> {
443
464
  return fm.fetchReq<SkoalaApiHostedV1alpha1Apilog.SearchLogReq, SkoalaApiHostedV1alpha1Apilog.SearchLogRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/requestlogs?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
444
465
  }
466
+ static GatewayLogExportURL(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Apilog.ExportLogURLRes> {
467
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Apilog.SearchLogReq, SkoalaApiHostedV1alpha1Apilog.ExportLogURLRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/requestlogs/exporturl?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
468
+ }
445
469
  static GatewayLogExport(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, entityNotifier?: fm.NotifyStreamEntityArrival<GoogleApiHttpbody.HttpBody>, initReq?: fm.InitReq): Promise<void> {
446
470
  return fm.fetchStreamingRequest<SkoalaApiHostedV1alpha1Apilog.SearchLogReq, GoogleApiHttpbody.HttpBody>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/requestlogs/export?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, entityNotifier, {...initReq, method: "GET"})
447
471
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.7.2-4",
3
+ "version": "0.7.2-42",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {