@daocloud-proto/skoala 0.27.1 → 0.27.2-102

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.
@@ -0,0 +1,15 @@
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 AuditVerb {
8
+ AUDIT_VERB_UNSPECIFIED = "AUDIT_VERB_UNSPECIFIED",
9
+ Create = "Create",
10
+ Retrieve = "Retrieve",
11
+ Update = "Update",
12
+ Delete = "Delete",
13
+ Restart = "Restart",
14
+ Upsert = "Upsert",
15
+ }
@@ -4,10 +4,16 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
+ export enum InputPattern {
8
+ PATTERN_TYPE_UNSPECIFIED = "PATTERN_TYPE_UNSPECIFIED",
9
+ ADDRESS_PATTERN = "ADDRESS_PATTERN",
10
+ DETAIL_PATTERN = "DETAIL_PATTERN",
11
+ }
12
+
7
13
  export enum APIDataType {
8
14
  DATA_TYPE_UNSPECIFIED = "DATA_TYPE_UNSPECIFIED",
9
- JSON = "JSON",
10
- YAML = "YAML",
15
+ swagger = "swagger",
16
+ markdown = "markdown",
11
17
  }
12
18
 
13
19
  export enum OrderBy {
@@ -34,6 +40,15 @@ export enum Status {
34
40
  Exception = "Exception",
35
41
  }
36
42
 
43
+ export enum MeshPhase {
44
+ MESH_STATUS_UNSPECIFIED = "MESH_STATUS_UNSPECIFIED",
45
+ CREATING = "CREATING",
46
+ UPDATING = "UPDATING",
47
+ FAILED = "FAILED",
48
+ SUCCEEDED = "SUCCEEDED",
49
+ TERMINATING = "TERMINATING",
50
+ }
51
+
37
52
  export enum ClusterPhase {
38
53
  CLUSTER_PHASE_UNSPECIFIED = "CLUSTER_PHASE_UNSPECIFIED",
39
54
  ClusterPhaseUnknown = "ClusterPhaseUnknown",
@@ -130,6 +145,8 @@ export type Cluster = {
130
145
  export type Mesh = {
131
146
  id?: string
132
147
  name?: string
148
+ meshVersion?: string
149
+ phase?: MeshPhase
133
150
  }
134
151
 
135
152
  export type Workspace = {
@@ -153,6 +170,10 @@ export type API = {
153
170
  nacosGroupName?: string
154
171
  dataType?: APIDataType
155
172
  detail?: string
173
+ address?: string
174
+ inputPattern?: InputPattern
175
+ createAt?: string
176
+ updateAt?: string
156
177
  }
157
178
 
158
179
  export type Image = {
@@ -160,6 +181,14 @@ export type Image = {
160
181
  repository?: string
161
182
  tag?: string
162
183
  pullPolicy?: string
184
+ multiVersion?: {[key: string]: MultiVersionImage}
185
+ }
186
+
187
+ export type MultiVersionImage = {
188
+ registry?: string
189
+ repository?: string
190
+ tag?: string
191
+ pullPolicy?: string
163
192
  }
164
193
 
165
194
  export type Component = {
@@ -334,4 +334,12 @@ export type ListWorkspaceRolePermissionsReq = {
334
334
 
335
335
  export type ListWorkspaceRolePermissionsRes = {
336
336
  permissions?: string[]
337
+ }
338
+
339
+ export type ListSwaggerReq = {
340
+ swaggerUrl?: string
341
+ }
342
+
343
+ export type ListSwaggerRes = {
344
+ item?: string
337
345
  }
@@ -83,6 +83,19 @@ export type ExportAPIReq = {
83
83
  all?: boolean
84
84
  }
85
85
 
86
+ export type ExportAPIUrlReq = {
87
+ workspaceId?: string
88
+ gatewayName?: string
89
+ clusterName?: string
90
+ namespaceName?: string
91
+ apiName?: string[]
92
+ all?: boolean
93
+ }
94
+
95
+ export type ExportAPIURLRes = {
96
+ url?: string
97
+ }
98
+
86
99
  export type ImportAPIReq = {
87
100
  workspaceId?: string
88
101
  gatewayName?: string
@@ -377,4 +390,16 @@ export type APIBatchOperationRes = {
377
390
  export type OperationFailReason = {
378
391
  apiName?: string
379
392
  reason?: string
393
+ }
394
+
395
+ export type QueryAPIByParamsReq = {
396
+ workspaceId?: string
397
+ clusterName?: string
398
+ namespaceName?: string
399
+ gatewayName?: string
400
+ serviceName?: string
401
+ }
402
+
403
+ export type QueryAPIByParamsRes = {
404
+ apiNames?: string[]
380
405
  }
@@ -549,9 +549,10 @@ export type QueryGatewayDeploymentsMetricRangeRes = {
549
549
  }
550
550
 
551
551
  export type ResourceMetric = {
552
- total?: number
553
- used?: number
554
- rate?: number
552
+ limits?: string
553
+ requests?: string
554
+ usage?: string
555
+ utilization?: string
555
556
  }
556
557
 
557
558
  export type RealtimeMetric = {
@@ -607,4 +608,14 @@ export type IPPolicy = {
607
608
  level?: IPPolicyLevel
608
609
  allowRules?: IPPolicyRule[]
609
610
  denyRules?: IPPolicyRule[]
611
+ }
612
+
613
+ export type QueryGatewayByParamsReq = {
614
+ workspaceId?: string
615
+ clusterName?: string
616
+ rootNamespace?: string
617
+ }
618
+
619
+ export type QueryGatewayByParamsRes = {
620
+ gatewayName?: string
610
621
  }
@@ -44,6 +44,12 @@ export enum APIStatusEnum {
44
44
  unknown = "unknown",
45
45
  }
46
46
 
47
+ export enum MatchType {
48
+ EXACT = "EXACT",
49
+ PREFIX = "PREFIX",
50
+ REGEX = "REGEX",
51
+ }
52
+
47
53
  export enum StatusCode {
48
54
  Empty = "Empty",
49
55
  Continue = "Continue",
@@ -145,6 +151,7 @@ export type APIInfo = {
145
151
  apiGroup?: string
146
152
  fqdn?: string
147
153
  method?: HttpMethod[]
154
+ matchType?: MatchType
148
155
  requestPath?: string
149
156
  routeType?: RouteType
150
157
  enabled?: boolean
@@ -6,7 +6,6 @@
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"
10
9
  import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
11
10
  import * as SkoalaApiHostedV1alpha1Skoala_plugins from "./skoala_plugins.pb"
12
11
 
@@ -534,7 +533,7 @@ export type WasmPlugin = {
534
533
  wasmPluginName?: string
535
534
  imagePullPolicy?: ImagePullPolicy
536
535
  imagePullSecret?: string
537
- pluginConfig?: GoogleProtobufStruct.Struct
536
+ pluginConfig?: string
538
537
  phase?: WasmPluginPhase
539
538
  }
540
539
 
@@ -364,6 +364,8 @@ export type CreateNacosServiceAPIReq = {
364
364
  nacosService?: string
365
365
  dataType?: SkoalaApiGeneralV1alpha1Common.APIDataType
366
366
  detail?: string
367
+ address?: string
368
+ inputPattern?: SkoalaApiGeneralV1alpha1Common.InputPattern
367
369
  }
368
370
 
369
371
  export type UpdateNacosServiceAPIReq = {
@@ -377,6 +379,8 @@ export type UpdateNacosServiceAPIReq = {
377
379
  apiId?: number
378
380
  dataType?: SkoalaApiGeneralV1alpha1Common.APIDataType
379
381
  detail?: string
382
+ address?: string
383
+ inputPattern?: SkoalaApiGeneralV1alpha1Common.InputPattern
380
384
  }
381
385
 
382
386
  export type DeleteNacosServiceAPIReq = {
@@ -593,6 +597,7 @@ export type NacosConfigBrief = {
593
597
  md5?: string
594
598
  tenant?: string
595
599
  type?: NacosConfigFileType
600
+ existBeta?: boolean
596
601
  }
597
602
 
598
603
  export type ListNacosConfigReq = {
@@ -642,6 +647,7 @@ export type GetNacosConfigRes = {
642
647
  tenant?: string
643
648
  type?: NacosConfigFileType
644
649
  use?: string
650
+ existBeta?: boolean
645
651
  }
646
652
 
647
653
  export type NacosConfigHistoryBrief = {
@@ -17,6 +17,13 @@ type OneOf<T> =
17
17
  : never)
18
18
  : never);
19
19
 
20
+ export enum GetSeataPluginResPhase {
21
+ Waiting = "Waiting",
22
+ Running = "Running",
23
+ Deleting = "Deleting",
24
+ NotReady = "NotReady",
25
+ }
26
+
20
27
  export enum GetMeshPluginResMeshMode {
21
28
  MESH_MODE_UNSPECIFIED = "MESH_MODE_UNSPECIFIED",
22
29
  HOSTED = "HOSTED",
@@ -40,6 +47,7 @@ export enum GetSentinelResPhase {
40
47
  export type Plugin = {
41
48
  name?: string
42
49
  enabled?: boolean
50
+ phase?: string
43
51
  }
44
52
 
45
53
  export type ListPluginReq = {
@@ -66,7 +74,7 @@ type BaseGetPluginRes = {
66
74
  }
67
75
 
68
76
  export type GetPluginRes = BaseGetPluginRes
69
- & OneOf<{ sentinel: GetSentinelPluginRes; mesh: GetMeshPluginRes }>
77
+ & OneOf<{ sentinel: GetSentinelPluginRes; mesh: GetMeshPluginRes; seata: GetSeataPluginRes }>
70
78
 
71
79
  export type GetSentinelPluginReq = {
72
80
  }
@@ -82,6 +90,22 @@ export type GetSentinelPluginRes = {
82
90
  pwd?: string
83
91
  }
84
92
 
93
+ export type GetSeataPluginReq = {
94
+ }
95
+
96
+ export type GetSeataPluginRes = {
97
+ image?: string
98
+ replicas?: number
99
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
100
+ type?: SkoalaApiGeneralV1alpha1Service.ServiceType
101
+ ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
102
+ visitAddress?: string
103
+ workloadState?: SkoalaApiGeneralV1alpha1Common.WorkloadState
104
+ pwd?: string
105
+ mysql?: MySql
106
+ phase?: GetSeataPluginResPhase
107
+ }
108
+
85
109
  export type GetMeshPluginReq = {
86
110
  }
87
111
 
@@ -103,7 +127,7 @@ type BaseUpdatePluginReq = {
103
127
  }
104
128
 
105
129
  export type UpdatePluginReq = BaseUpdatePluginReq
106
- & OneOf<{ sentinel: UpdateSentinelPluginReq; mesh: UpdateMeshPluginReq }>
130
+ & OneOf<{ sentinel: UpdateSentinelPluginReq; mesh: UpdateMeshPluginReq; seata: UpdateSeataPluginReq }>
107
131
 
108
132
  export type UpdateSentinelPluginReq = {
109
133
  enabled?: boolean
@@ -115,6 +139,26 @@ export type UpdateSentinelPluginReq = {
115
139
  pwd?: string
116
140
  }
117
141
 
142
+ export type UpdateSeataPluginReq = {
143
+ enabled?: boolean
144
+ chart?: SkoalaApiGeneralV1alpha1Common.Component
145
+ replicas?: number
146
+ resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
147
+ type?: SkoalaApiGeneralV1alpha1Service.ServiceType
148
+ ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
149
+ pwd?: string
150
+ deleteConfigs?: boolean
151
+ mysql?: MySql
152
+ }
153
+
154
+ export type MySql = {
155
+ host?: string
156
+ port?: string
157
+ name?: string
158
+ user?: string
159
+ password?: string
160
+ }
161
+
118
162
  export type UpdateMeshPluginReq = {
119
163
  enabled?: boolean
120
164
  name?: string
@@ -0,0 +1,89 @@
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 SkoalaApiHostedV1alpha1Api from "../v1alpha1/api.pb"
8
+ import * as SkoalaApiHostedV1alpha1Http from "../v1alpha1/http.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
+ export type CreateAPIReq = {
19
+ workspaceId?: string
20
+ gatewayName?: string
21
+ clusterName?: string
22
+ namespaceName?: string
23
+ apiConfig?: APIConfig
24
+ advancedApiConfig?: SkoalaApiHostedV1alpha1Api.AdvancedAPIConfig
25
+ }
26
+
27
+ export type UpdateAPIReq = {
28
+ workspaceId?: string
29
+ gatewayName?: string
30
+ clusterName?: string
31
+ namespaceName?: string
32
+ apiName?: string
33
+ apiConfig?: APIConfig
34
+ }
35
+
36
+ export type UpdateAPIAdvancedPolicyReq = {
37
+ workspaceId?: string
38
+ gatewayName?: string
39
+ clusterName?: string
40
+ namespaceName?: string
41
+ apiName?: string
42
+ advancedApiConfig?: SkoalaApiHostedV1alpha1Api.AdvancedAPIConfig
43
+ }
44
+
45
+ export type GetAPIReq = {
46
+ workspaceId?: string
47
+ gatewayName?: string
48
+ clusterName?: string
49
+ namespaceName?: string
50
+ apiName?: string
51
+ }
52
+
53
+ export type GetAPIRes = {
54
+ apiName?: string
55
+ enabled?: boolean
56
+ apiGroup?: string
57
+ fqdn?: string
58
+ matchRule?: MatchRule
59
+ routeRules?: RouteRule[]
60
+ advancedPolicy?: SkoalaApiHostedV1alpha1Api.AdvancedAPIConfig
61
+ apiStatus?: SkoalaApiHostedV1alpha1Http.APIStatus
62
+ status?: SkoalaApiHostedV1alpha1Http.APIStatusEnum
63
+ statusDescription?: string
64
+ }
65
+
66
+ export type APIConfig = {
67
+ apiName?: string
68
+ fqdn?: string
69
+ matchRule?: MatchRule
70
+ routeRules?: RouteRule[]
71
+ enabled?: boolean
72
+ apiGroup?: string
73
+ }
74
+
75
+
76
+ type BaseMatchRule = {
77
+ httpMethod?: SkoalaApiHostedV1alpha1Http.HttpMethod[]
78
+ }
79
+
80
+ export type MatchRule = BaseMatchRule
81
+ & OneOf<{ exact: string; prefix: string; regex: string }>
82
+
83
+
84
+ type BaseRouteRule = {
85
+ headers?: SkoalaApiHostedV1alpha1Http.HeaderRule[]
86
+ }
87
+
88
+ export type RouteRule = BaseRouteRule
89
+ & OneOf<{ routeAction: SkoalaApiHostedV1alpha1Api.RouteAction; redirect: SkoalaApiHostedV1alpha1Api.RedirectAction; directResponse: SkoalaApiHostedV1alpha1Api.DirectResponse }>
@@ -67,8 +67,10 @@ export type Registry = {
67
67
  createdAt?: string
68
68
  }
69
69
 
70
- export type RegistryOnlyID = {
70
+ export type PartOfRegistry = {
71
71
  registryId?: string
72
+ type?: RegistryType
73
+ name?: string
72
74
  }
73
75
 
74
76
  export type ListRegistryReq = {
@@ -12,7 +12,7 @@ export type Service = {
12
12
  namespace?: NamespaceWithGroup
13
13
  healthInstanceCount?: number
14
14
  instanceCount?: number
15
- registry?: SkoalaApiIntegratedV1alpha1Registry.Registry
15
+ registry?: SkoalaApiIntegratedV1alpha1Registry.PartOfRegistry
16
16
  detail?: {[key: string]: string}
17
17
  insight?: SkoalaApiGeneralV1alpha1Insight.InsightBrief
18
18
  }
@@ -76,6 +76,8 @@ export type CreateServiceAPIReq = {
76
76
  serviceName?: string
77
77
  dataType?: SkoalaApiGeneralV1alpha1Common.APIDataType
78
78
  detail?: string
79
+ address?: string
80
+ inputPattern?: SkoalaApiGeneralV1alpha1Common.InputPattern
79
81
  }
80
82
 
81
83
  export type UpdateServiceAPIReq = {
@@ -84,6 +86,8 @@ export type UpdateServiceAPIReq = {
84
86
  serviceName?: string
85
87
  dataType?: SkoalaApiGeneralV1alpha1Common.APIDataType
86
88
  detail?: string
89
+ address?: string
90
+ inputPattern?: SkoalaApiGeneralV1alpha1Common.InputPattern
87
91
  apiId?: number
88
92
  }
89
93
 
@@ -28,17 +28,6 @@ import * as SkoalaApiHostedV1alpha1Virtualhost from "../../hosted/v1alpha1/virtu
28
28
  import * as SkoalaApiIntegratedV1alpha1Instance from "../../integrated/v1alpha1/instance.pb"
29
29
  import * as SkoalaApiIntegratedV1alpha1Registry from "../../integrated/v1alpha1/registry.pb"
30
30
  import * as SkoalaApiIntegratedV1alpha1Service from "../../integrated/v1alpha1/service.pb"
31
-
32
- export enum AuditVerb {
33
- AUDIT_VERB_UNSPECIFIED = "AUDIT_VERB_UNSPECIFIED",
34
- Create = "Create",
35
- Retrieve = "Retrieve",
36
- Update = "Update",
37
- Delete = "Delete",
38
- Restart = "Restart",
39
- Upsert = "Upsert",
40
- }
41
-
42
31
  export class Hive {
43
32
  static GetVersion(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetVersionRes> {
44
33
  return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.GetVersionRes>(`/apis/hive.skoala.io/v1alpha1/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -116,6 +105,9 @@ export class Skoala {
116
105
  static ListWorkspaceRolePermissions(req: SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRolePermissionsReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRolePermissionsRes> {
117
106
  return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRolePermissionsReq, SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRolePermissionsRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
118
107
  }
108
+ static GetSwaggerDetail(req: SkoalaApiGeneralV1alpha1Skoala.ListSwaggerReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListSwaggerRes> {
109
+ return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListSwaggerReq, SkoalaApiGeneralV1alpha1Skoala.ListSwaggerRes>(`/apis/skoala.io/v1alpha1/swagger?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
110
+ }
119
111
  }
120
112
  export class Registry {
121
113
  static List(req: SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes> {
@@ -488,7 +480,7 @@ export class Mesh {
488
480
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginReq, SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/istioplugin/${req["pluginName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "pluginName"])}`, {...initReq, method: "GET"})
489
481
  }
490
482
  static DeleteServiceIstioPlugin(req: SkoalaApiHostedV1alpha1Mesh.DeleteServiceIstioPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
491
- return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.DeleteServiceIstioPluginReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/istioplugin/${req["pluginName"]}`, {...initReq, method: "DELETE"})
483
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.DeleteServiceIstioPluginReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/istioplugin/${req["pluginName"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req, fm.replacer)})
492
484
  }
493
485
  static UpdateServiceIstioPlugin(req: SkoalaApiHostedV1alpha1Mesh.UpdateServiceIstioPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
494
486
  return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateServiceIstioPluginReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/istioplugin/${req["pluginName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
@@ -662,6 +654,9 @@ export class Gateway {
662
654
  static GetWorkingComponents(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes> {
663
655
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/components?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
664
656
  }
657
+ static QueryGatewayByParams(req: SkoalaApiHostedV1alpha1Gateway.QueryGatewayByParamsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.QueryGatewayByParamsRes> {
658
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.QueryGatewayByParamsReq, SkoalaApiHostedV1alpha1Gateway.QueryGatewayByParamsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/gateways/query?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
659
+ }
665
660
  static Diagnostic(req: SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
666
661
  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)})
667
662
  }
@@ -804,12 +799,18 @@ export class GatewayAPI {
804
799
  static ExportAPI(req: SkoalaApiHostedV1alpha1Api.ExportAPIReq, entityNotifier?: fm.NotifyStreamEntityArrival<GoogleApiHttpbody.HttpBody>, initReq?: fm.InitReq): Promise<void> {
805
800
  return fm.fetchStreamingRequest<SkoalaApiHostedV1alpha1Api.ExportAPIReq, GoogleApiHttpbody.HttpBody>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/export?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, entityNotifier, {...initReq, method: "GET"})
806
801
  }
802
+ static ExportAPIURL(req: SkoalaApiHostedV1alpha1Api.ExportAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ExportAPIURLRes> {
803
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Api.ExportAPIReq, SkoalaApiHostedV1alpha1Api.ExportAPIURLRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/exporturl?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
804
+ }
807
805
  static ImportAPICheck(req: SkoalaApiHostedV1alpha1Api.ImportAPICheckReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ImportAPICheckRes> {
808
806
  return fm.fetchReq<SkoalaApiHostedV1alpha1Api.ImportAPICheckReq, SkoalaApiHostedV1alpha1Api.ImportAPICheckRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/import/check`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
809
807
  }
810
808
  static ImportAPI(req: SkoalaApiHostedV1alpha1Api.ImportAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ImportAPIRes> {
811
809
  return fm.fetchReq<SkoalaApiHostedV1alpha1Api.ImportAPIReq, SkoalaApiHostedV1alpha1Api.ImportAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/import`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
812
810
  }
811
+ static QueryAPIByParams(req: SkoalaApiHostedV1alpha1Api.QueryAPIByParamsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.QueryAPIByParamsRes> {
812
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Api.QueryAPIByParamsReq, SkoalaApiHostedV1alpha1Api.QueryAPIByParamsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/query?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
813
+ }
813
814
  }
814
815
  export class GatewayService {
815
816
  static CreateService(req: SkoalaApiHostedV1alpha1Gateway_service.CreateExternalServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
@@ -0,0 +1,23 @@
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 SkoalaApiHostedV1alpha2Gateway_api from "../../hosted/v1alpha2/gateway_api.pb"
10
+ export class GatewayAPI {
11
+ static CreateGatewayAPI(req: SkoalaApiHostedV1alpha2Gateway_api.CreateAPIReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
12
+ return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_api.CreateAPIReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
13
+ }
14
+ static UpdateGatewayAPI(req: SkoalaApiHostedV1alpha2Gateway_api.UpdateAPIReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
15
+ return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_api.UpdateAPIReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
16
+ }
17
+ static UpdateGatewayAPIAdvancedPolicy(req: SkoalaApiHostedV1alpha2Gateway_api.UpdateAPIAdvancedPolicyReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
18
+ return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_api.UpdateAPIAdvancedPolicyReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}/policies`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
19
+ }
20
+ static GetGatewayAPI(req: SkoalaApiHostedV1alpha2Gateway_api.GetAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha2Gateway_api.GetAPIRes> {
21
+ return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_api.GetAPIReq, SkoalaApiHostedV1alpha2Gateway_api.GetAPIRes>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "apiName"])}`, {...initReq, method: "GET"})
22
+ }
23
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.27.1",
3
+ "version": "0.27.2-102",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {