@daocloud-proto/skoala 0.27.2-22 → 0.27.2-28

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
+ }
@@ -34,6 +34,15 @@ export enum Status {
34
34
  Exception = "Exception",
35
35
  }
36
36
 
37
+ export enum MeshPhase {
38
+ MESH_STATUS_UNSPECIFIED = "MESH_STATUS_UNSPECIFIED",
39
+ CREATING = "CREATING",
40
+ UPDATING = "UPDATING",
41
+ FAILED = "FAILED",
42
+ SUCCEEDED = "SUCCEEDED",
43
+ TERMINATING = "TERMINATING",
44
+ }
45
+
37
46
  export enum ClusterPhase {
38
47
  CLUSTER_PHASE_UNSPECIFIED = "CLUSTER_PHASE_UNSPECIFIED",
39
48
  ClusterPhaseUnknown = "ClusterPhaseUnknown",
@@ -130,6 +139,8 @@ export type Cluster = {
130
139
  export type Mesh = {
131
140
  id?: string
132
141
  name?: string
142
+ meshVersion?: string
143
+ phase?: MeshPhase
133
144
  }
134
145
 
135
146
  export type Workspace = {
@@ -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
 
@@ -593,6 +593,7 @@ export type NacosConfigBrief = {
593
593
  md5?: string
594
594
  tenant?: string
595
595
  type?: NacosConfigFileType
596
+ existBeta?: boolean
596
597
  }
597
598
 
598
599
  export type ListNacosConfigReq = {
@@ -642,6 +643,7 @@ export type GetNacosConfigRes = {
642
643
  tenant?: string
643
644
  type?: NacosConfigFileType
644
645
  use?: string
646
+ existBeta?: boolean
645
647
  }
646
648
 
647
649
  export type NacosConfigHistoryBrief = {
@@ -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<{ routeService: SkoalaApiHostedV1alpha1Api.RouteAction; redirect: SkoalaApiHostedV1alpha1Api.RedirectAction; directResponse: SkoalaApiHostedV1alpha1Api.DirectResponse }>
@@ -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"})
@@ -488,7 +477,7 @@ export class Mesh {
488
477
  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
478
  }
490
479
  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"})
480
+ 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
481
  }
493
482
  static UpdateServiceIstioPlugin(req: SkoalaApiHostedV1alpha1Mesh.UpdateServiceIstioPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
494
483
  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)})
@@ -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.2-22",
3
+ "version": "0.27.2-28",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {