@daocloud-proto/skoala 0.21.2 → 0.22.0

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.
@@ -80,6 +80,7 @@ export enum Prerequisite {
80
80
  PREREQUISITE_UNSPECIFIED = "PREREQUISITE_UNSPECIFIED",
81
81
  InsightAgent = "InsightAgent",
82
82
  SkoalaInit = "SkoalaInit",
83
+ InsightTracing = "InsightTracing",
83
84
  }
84
85
 
85
86
  export enum LBType {
@@ -89,6 +89,11 @@ export enum GatewayConditionStatus {
89
89
  Unknown = "Unknown",
90
90
  }
91
91
 
92
+ export enum TracingConfigtagType {
93
+ Literal = "Literal",
94
+ Header = "Header",
95
+ }
96
+
92
97
  export enum LogLogLevel {
93
98
  STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
94
99
  Trace = "Trace",
@@ -287,11 +292,25 @@ export type GlobalRatelimitConfig = {
287
292
  type BaseContourAdvancedConfig = {
288
293
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
289
294
  diagnostic?: GatewayDiagnostic
295
+ tracingConfig?: TracingConfig
290
296
  }
291
297
 
292
298
  export type ContourAdvancedConfig = BaseContourAdvancedConfig
293
299
  & OneOf<{ rollingUpdate: RollingUpdate; recreate: string }>
294
300
 
301
+ export type TracingConfigcustomTag = {
302
+ tagName?: string
303
+ tagType?: TracingConfigtagType
304
+ tagValue?: string
305
+ }
306
+
307
+ export type TracingConfig = {
308
+ enabled?: boolean
309
+ sampling?: number
310
+ maxPathLength?: number
311
+ customTags?: TracingConfigcustomTag[]
312
+ }
313
+
295
314
 
296
315
  type BaseEnvoyAdvancedConfig = {
297
316
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
@@ -6,6 +6,7 @@
6
6
 
7
7
  import * as GoogleProtobufAny from "../../../google/protobuf/any.pb"
8
8
  import * as GoogleProtobufDuration from "../../../google/protobuf/duration.pb"
9
+ import * as GoogleProtobufStruct from "../../../google/protobuf/struct.pb"
9
10
  import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
10
11
 
11
12
  type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
@@ -54,6 +55,17 @@ export enum ServiceType {
54
55
  DUBBO = "DUBBO",
55
56
  }
56
57
 
58
+ export enum GovernProtocol {
59
+ GOVERN_PROTOCOL_UNSPECIFIED = "GOVERN_PROTOCOL_UNSPECIFIED",
60
+ GOVERN_TCP = "GOVERN_TCP",
61
+ GOVERN_HTTP = "GOVERN_HTTP",
62
+ GOVERN_HTTP2 = "GOVERN_HTTP2",
63
+ GOVERN_HTTPS = "GOVERN_HTTPS",
64
+ GOVERN_TLS = "GOVERN_TLS",
65
+ GOVERN_GRPC = "GOVERN_GRPC",
66
+ GOVERN_UNSUPPORTED = "GOVERN_UNSUPPORTED",
67
+ }
68
+
57
69
  export enum LB {
58
70
  UNSPECIFIED = "UNSPECIFIED",
59
71
  LEAST_CONN = "LEAST_CONN",
@@ -62,6 +74,18 @@ export enum LB {
62
74
  ROUND_ROBIN = "ROUND_ROBIN",
63
75
  }
64
76
 
77
+ export enum WasmPluginPhase {
78
+ UNSPECIFIED_PHASE = "UNSPECIFIED_PHASE",
79
+ AUTHN = "AUTHN",
80
+ AUTHZ = "AUTHZ",
81
+ STATS = "STATS",
82
+ }
83
+
84
+ export enum ImagePullPolicy {
85
+ Always = "Always",
86
+ IfNotPresent = "IfNotPresent",
87
+ }
88
+
65
89
 
66
90
  type BaseIstioResource = {
67
91
  type?: ResourceType
@@ -223,6 +247,33 @@ export type ListServiceGovern = {
223
247
  port?: number
224
248
  lb?: LB
225
249
  updateTime?: number
250
+ protocol?: GovernProtocol
251
+ }
252
+
253
+ export type UpdateServiceWasmPluginReq = {
254
+ workspaceId?: string
255
+ meshId?: string
256
+ namespaceName?: string
257
+ serviceName?: string
258
+ port?: number
259
+ wasmPlugin?: WasmPlugin[]
260
+ }
261
+
262
+ export type UpdateServiceWasmPluginRes = {
263
+ }
264
+
265
+ export type GetServiceWasmPluginReq = {
266
+ workspaceId?: string
267
+ meshId?: string
268
+ namespaceName?: string
269
+ serviceName?: string
270
+ port?: number
271
+ }
272
+
273
+ export type GetServiceWasmPluginRes = {
274
+ serviceName?: string
275
+ port?: number
276
+ wasmPlugin?: WasmPlugin[]
226
277
  }
227
278
 
228
279
  export type UpdateServiceGovernReq = {
@@ -231,9 +282,51 @@ export type UpdateServiceGovernReq = {
231
282
  namespaceName?: string
232
283
  serviceName?: string
233
284
  port?: number
285
+ protocol?: GovernProtocol
234
286
  lb?: LB
235
287
  outlierDetection?: OutlierDetection
236
288
  connectionPool?: ConnectionPool
289
+ rewrite?: HTTPRewrite
290
+ timeout?: GoogleProtobufDuration.Duration
291
+ fault?: HTTPFaultInjection
292
+ retries?: HTTPRetry
293
+ }
294
+
295
+ export type HTTPRewrite = {
296
+ uri?: string
297
+ authority?: string
298
+ }
299
+
300
+ export type HTTPFaultInjection = {
301
+ delay?: HTTPFaultInjection_Delay
302
+ abort?: HTTPFaultInjection_Abort
303
+ }
304
+
305
+ export type HTTPFaultInjection_Delay = {
306
+ percentage?: number
307
+ fixedDelay?: GoogleProtobufDuration.Duration
308
+ }
309
+
310
+
311
+ type BaseHTTPFaultInjection_Abort = {
312
+ percentage?: number
313
+ }
314
+
315
+ export type HTTPFaultInjection_Abort = BaseHTTPFaultInjection_Abort
316
+ & OneOf<{ httpStatus: number; grpcStatus: string; http2Error: string }>
317
+
318
+ export type HTTPRetry = {
319
+ attempts?: number
320
+ perTryTimeout?: GoogleProtobufDuration.Duration
321
+ retryOn?: string
322
+ }
323
+
324
+ export type WasmPlugin = {
325
+ wasmPluginName?: string
326
+ imagePullPolicy?: ImagePullPolicy
327
+ imagePullSecret?: string
328
+ pluginConfig?: GoogleProtobufStruct.Struct
329
+ phase?: WasmPluginPhase
237
330
  }
238
331
 
239
332
  export type OutlierDetection = {
@@ -260,12 +353,18 @@ export type GetServiceGovernReq = {
260
353
  namespaceName?: string
261
354
  serviceName?: string
262
355
  port?: number
356
+ protocol?: GovernProtocol
263
357
  }
264
358
 
265
359
  export type GetServiceGovernRes = {
266
360
  serviceName?: string
267
361
  port?: number
362
+ protocol?: GovernProtocol
268
363
  lb?: LB
269
364
  outlierDetection?: OutlierDetection
270
365
  connectionPool?: ConnectionPool
366
+ rewrite?: HTTPRewrite
367
+ timeout?: GoogleProtobufDuration.Duration
368
+ fault?: HTTPFaultInjection
369
+ retries?: HTTPRetry
271
370
  }
@@ -304,6 +304,7 @@ export type GetNacosServiceInsightReq = {
304
304
  nacosName?: string
305
305
  namespaceName?: string
306
306
  nacosNamespace?: string
307
+ nacosClusterName?: string
307
308
  nacosGroupName?: string
308
309
  nacosService?: string
309
310
  start?: string
@@ -24,8 +24,8 @@ export enum ControlBehavior {
24
24
  }
25
25
 
26
26
  export enum MachineType {
27
- EMBEDDED = "EMBEDDED",
28
27
  ALONE = "ALONE",
28
+ EMBEDDED = "EMBEDDED",
29
29
  }
30
30
 
31
31
  export enum HostedQuery {
@@ -85,6 +85,7 @@ export type GetSentinelDashGrafanaReq = {
85
85
  clusterName?: string
86
86
  namespaceName?: string
87
87
  sentinelName?: string
88
+ instanceIp?: string
88
89
  }
89
90
 
90
91
  export type GetSentinelDashGrafanaRes = {
@@ -97,6 +98,8 @@ export type GetAppsSentinelGrafanaReq = {
97
98
  clusterName?: string
98
99
  sentinel?: string
99
100
  app?: string
101
+ instanceIp?: string
102
+ resource?: string
100
103
  }
101
104
 
102
105
  export type GetAppsSentinelGrafanaRes = {
@@ -205,6 +208,7 @@ export type TokenServerReq = {
205
208
  maxQps?: number
206
209
  clients?: string[]
207
210
  remainingClients?: string[]
211
+ tokenServerName?: string
208
212
  }
209
213
 
210
214
  export type ListAppReq = {
@@ -248,4 +248,14 @@ export type GetRLSRuleReq = {
248
248
  workspaceId?: string
249
249
  pluginName?: string
250
250
  domain?: string
251
+ }
252
+
253
+ export type SkoalaPluginUpdateReq = {
254
+ workspaceId?: string
255
+ pluginName?: string
256
+ add?: boolean
257
+ pluginUsage?: PluginUsage
258
+ }
259
+
260
+ export type SkoalaPluginUpdateRes = {
251
261
  }
@@ -54,22 +54,11 @@ export type AuthorizationPolicy = {
54
54
  authPluginName?: string
55
55
  disabled?: boolean
56
56
  context?: {[key: string]: string}
57
- authServer?: string
58
- failOpen?: boolean
59
- responseTimeout?: string
60
- maxRequestBytes?: number
61
- allowPartialMessage?: boolean
62
- packAsBytes?: boolean
63
57
  }
64
58
 
65
59
  export type JwtProvider = {
66
60
  jwtPluginName?: string
67
- audiences?: string[]
68
61
  default?: boolean
69
- forwardJWT?: boolean
70
- issuer?: string
71
- name?: string
72
- remoteJwks?: RemoteJWKS
73
62
  }
74
63
 
75
64
  export type RemoteJWKS = {
@@ -446,10 +446,16 @@ export class Mesh {
446
446
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServiceGovernReq, SkoalaApiHostedV1alpha1Mesh.ListServiceGovernRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
447
447
  }
448
448
  static UpdateServiceGovern(req: SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernRes> {
449
- return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernReq, SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
449
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernReq, SkoalaApiHostedV1alpha1Mesh.UpdateServiceGovernRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/protocols/${req["protocol"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
450
450
  }
451
451
  static GetServiceGovern(req: SkoalaApiHostedV1alpha1Mesh.GetServiceGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceGovernRes> {
452
- return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceGovernReq, SkoalaApiHostedV1alpha1Mesh.GetServiceGovernRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
452
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceGovernReq, SkoalaApiHostedV1alpha1Mesh.GetServiceGovernRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/protocols/${req["protocol"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port", "protocol"])}`, {...initReq, method: "GET"})
453
+ }
454
+ static UpdateServiceWasmPlugin(req: SkoalaApiHostedV1alpha1Mesh.UpdateServiceWasmPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.UpdateServiceWasmPluginRes> {
455
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateServiceWasmPluginReq, SkoalaApiHostedV1alpha1Mesh.UpdateServiceWasmPluginRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/wasmplugin`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
456
+ }
457
+ static GetServiceWasmPlugin(req: SkoalaApiHostedV1alpha1Mesh.GetServiceWasmPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceWasmPluginRes> {
458
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceWasmPluginReq, SkoalaApiHostedV1alpha1Mesh.GetServiceWasmPluginRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/wasmplugin?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
453
459
  }
454
460
  }
455
461
  export class Plugin {
@@ -690,4 +696,7 @@ export class SkoalaPlugin {
690
696
  static GetRLSDomainRules(req: SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRulesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Skoala_plugins.GetRLSDomainRulesRes> {
691
697
  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"})
692
698
  }
699
+ static SkoalaPluginUsageUpdate(req: SkoalaApiHostedV1alpha1Skoala_plugins.SkoalaPluginUpdateReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Skoala_plugins.SkoalaPluginUpdateRes> {
700
+ 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)})
701
+ }
693
702
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.21.2",
3
+ "version": "0.22.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,100 +0,0 @@
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 GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
10
-
11
- export enum Status {
12
- TAKEDOWN = "TAKEDOWN",
13
- ONSHELF = "ONSHELF",
14
- }
15
-
16
- export type GetBookReq = {
17
- uid?: string
18
- }
19
-
20
- export type GetBookReply = {
21
- uid?: string
22
- name?: string
23
- author?: string
24
- status?: Status
25
- isPublished?: boolean
26
- publishedAt?: GoogleProtobufTimestamp.Timestamp
27
- }
28
-
29
- export type ListBookReq = {
30
- pageNum?: number
31
- pageSize?: number
32
- }
33
-
34
- export type ListBookReplyBook = {
35
- uid?: string
36
- name?: string
37
- author?: string
38
- status?: Status
39
- isPublished?: boolean
40
- publishedAt?: GoogleProtobufTimestamp.Timestamp
41
- }
42
-
43
- export type ListBookReply = {
44
- results?: ListBookReplyBook[]
45
- totalCount?: number
46
- }
47
-
48
- export type CreateBookReq = {
49
- name?: string
50
- author?: string
51
- status?: Status
52
- isPublished?: boolean
53
- publishedAt?: GoogleProtobufTimestamp.Timestamp
54
- }
55
-
56
- export type CreateBookReply = {
57
- uid?: string
58
- name?: string
59
- author?: string
60
- status?: Status
61
- isPublished?: boolean
62
- publishedAt?: GoogleProtobufTimestamp.Timestamp
63
- }
64
-
65
- export type UpdateBookReq = {
66
- uid?: string
67
- author?: string
68
- status?: Status
69
- }
70
-
71
- export type UpdateBookRely = {
72
- uid?: string
73
- name?: string
74
- author?: string
75
- status?: Status
76
- isPublished?: boolean
77
- publishedAt?: GoogleProtobufTimestamp.Timestamp
78
- }
79
-
80
- export type DeleteBookReq = {
81
- uid?: string
82
- }
83
-
84
- export class Book {
85
- static Get(req: GetBookReq, initReq?: fm.InitReq): Promise<GetBookReply> {
86
- return fm.fetchReq<GetBookReq, GetBookReply>(`/v1alpha1/books/${req["uid"]}?${fm.renderURLSearchParams(req, ["uid"])}`, {...initReq, method: "GET"})
87
- }
88
- static List(req: ListBookReq, initReq?: fm.InitReq): Promise<ListBookReply> {
89
- return fm.fetchReq<ListBookReq, ListBookReply>(`/v1alpha1/books?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
90
- }
91
- static Create(req: CreateBookReq, initReq?: fm.InitReq): Promise<CreateBookReply> {
92
- return fm.fetchReq<CreateBookReq, CreateBookReply>(`/v1alpha1/books`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
93
- }
94
- static Update(req: UpdateBookReq, initReq?: fm.InitReq): Promise<UpdateBookRely> {
95
- return fm.fetchReq<UpdateBookReq, UpdateBookRely>(`/v1alpha1/books/${req["uid"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
96
- }
97
- static Delete(req: DeleteBookReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
98
- return fm.fetchReq<DeleteBookReq, GoogleProtobufEmpty.Empty>(`/v1alpha1/books/${req["uid"]}`, {...initReq, method: "DELETE"})
99
- }
100
- }