@daocloud-proto/skoala 0.3.3-4 → 0.3.3-40
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.
- package/api/general/v1alpha1/skoala.pb.ts +10 -5
- package/api/hosted/v1alpha1/gateway.pb.ts +5 -7
- package/api/integrated/v1alpha1/instance.pb.ts +29 -19
- package/api/integrated/v1alpha1/registry.pb.ts +5 -5
- package/api/integrated/v1alpha1/service.pb.ts +8 -11
- package/api/skoala/v1alpha1/skoala.pb.ts +3 -0
- package/github.com/mwitkow/go-proto-validators/validator.pb.ts +29 -0
- package/google/api/annotations.pb.ts +1 -0
- package/google/api/http.pb.ts +34 -0
- package/google/protobuf/any.pb.ts +9 -0
- package/google/protobuf/api.pb.ts +32 -0
- package/google/protobuf/descriptor.pb.ts +262 -0
- package/google/protobuf/duration.pb.ts +9 -0
- package/google/protobuf/empty.pb.ts +7 -0
- package/google/protobuf/field_mask.pb.ts +8 -0
- package/google/protobuf/struct.pb.ts +33 -0
- package/google/protobuf/timestamp.pb.ts +9 -0
- package/google/protobuf/type.pb.ts +83 -0
- package/google/protobuf/wrappers.pb.ts +40 -0
- package/google/rpc/status.pb.ts +12 -0
- package/insight/v1alpha1/alert.pb.ts +283 -0
- package/insight/v1alpha1/notify.pb.ts +75 -0
- package/log/v1alpha1/log.pb.ts +103 -0
- package/metric/v1alpha1/metric.pb.ts +98 -0
- package/package.json +1 -1
- package/resource/v1alpha1/cluster.pb.ts +96 -0
- package/resource/v1alpha1/job.pb.ts +99 -0
- package/resource/v1alpha1/node.pb.ts +63 -0
- package/resource/v1alpha1/pod.pb.ts +91 -0
- package/resource/v1alpha1/service.pb.ts +61 -0
- package/resource/v1alpha1/type.pb.ts +14 -0
- package/resource/v1alpha1/workload.pb.ts +70 -0
- package/span_metric/v1alpha1/openmetrics.pb.ts +130 -0
- package/span_metric/v1alpha1/otelspankind.pb.ts +14 -0
- package/span_metric/v1alpha1/span_metric.pb.ts +88 -0
- package/tracing/v1alpha1/tracing.pb.ts +14 -0
- package/type/v1alpha1/page.pb.ts +25 -0
|
@@ -23,16 +23,21 @@ export type Workspace = {
|
|
|
23
23
|
parentWorkspaceId?: string
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
export type Pagination = {
|
|
27
|
+
total?: number
|
|
28
|
+
page?: number
|
|
29
|
+
pageSize?: number
|
|
30
|
+
pages?: number
|
|
31
|
+
}
|
|
32
|
+
|
|
26
33
|
export type ListWorkspaceReq = {
|
|
27
34
|
page?: number
|
|
28
|
-
|
|
35
|
+
pageSize?: number
|
|
29
36
|
}
|
|
30
37
|
|
|
31
38
|
export type ListWorkspaceRes = {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
size?: number
|
|
35
|
-
total?: number
|
|
39
|
+
items?: Workspace[]
|
|
40
|
+
pagination?: Pagination
|
|
36
41
|
}
|
|
37
42
|
|
|
38
43
|
export type ListClusterReq = {
|
|
@@ -48,7 +48,7 @@ export type Gateway = {
|
|
|
48
48
|
export type ListAllGatewayReq = {
|
|
49
49
|
workspaceId?: number
|
|
50
50
|
page?: number
|
|
51
|
-
|
|
51
|
+
pageSize?: number
|
|
52
52
|
filter?: string
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -56,7 +56,7 @@ export type ListClusterGatewayReq = {
|
|
|
56
56
|
workspaceId?: number
|
|
57
57
|
clusterName?: string
|
|
58
58
|
page?: number
|
|
59
|
-
|
|
59
|
+
pageSize?: number
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
export type ListNamespaceGatewayReq = {
|
|
@@ -64,14 +64,12 @@ export type ListNamespaceGatewayReq = {
|
|
|
64
64
|
clusterName?: string
|
|
65
65
|
namespaceName?: string
|
|
66
66
|
page?: number
|
|
67
|
-
|
|
67
|
+
pageSize?: number
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
export type ListGatewayRes = {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
size?: number
|
|
74
|
-
total?: number
|
|
71
|
+
items?: Gateway[]
|
|
72
|
+
pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
|
|
75
73
|
}
|
|
76
74
|
|
|
77
75
|
export type GetGatewayReq = {
|
|
@@ -4,17 +4,25 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import * as
|
|
7
|
+
import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
|
|
8
|
+
|
|
9
|
+
export enum InstanceStatus {
|
|
10
|
+
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
11
|
+
RUNNING = "RUNNING",
|
|
12
|
+
FAILED = "FAILED",
|
|
13
|
+
}
|
|
14
|
+
|
|
8
15
|
export type Instance = {
|
|
9
|
-
workspaceId?: string
|
|
10
16
|
id?: string
|
|
11
17
|
serviceName?: string
|
|
12
18
|
frameworkType?: string
|
|
13
19
|
host?: string
|
|
14
|
-
|
|
20
|
+
ports?: number[]
|
|
21
|
+
instanceStatus?: InstanceStatus
|
|
22
|
+
enabled?: boolean
|
|
15
23
|
metadata?: {[key: string]: string}
|
|
16
|
-
registry?: SkoalaApiIntegratedV1alpha1Registry.Registry
|
|
17
24
|
detail?: {[key: string]: string}
|
|
25
|
+
updateAt?: string
|
|
18
26
|
}
|
|
19
27
|
|
|
20
28
|
export type ListInstanceReq = {
|
|
@@ -23,37 +31,39 @@ export type ListInstanceReq = {
|
|
|
23
31
|
namespaceId?: string
|
|
24
32
|
groupName?: string
|
|
25
33
|
serviceName?: string
|
|
34
|
+
instanceId?: string
|
|
35
|
+
page?: number
|
|
36
|
+
pageSize?: number
|
|
26
37
|
}
|
|
27
38
|
|
|
28
|
-
export type
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
size?: number
|
|
39
|
+
export type ListInstanceRes = {
|
|
40
|
+
items?: Instance[]
|
|
41
|
+
pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
|
|
32
42
|
}
|
|
33
43
|
|
|
34
|
-
export type
|
|
44
|
+
export type GetInstanceReq = {
|
|
35
45
|
workspaceId?: string
|
|
36
46
|
registryId?: string
|
|
37
|
-
|
|
38
|
-
|
|
47
|
+
namespaceId?: string
|
|
48
|
+
groupName?: string
|
|
49
|
+
serviceName?: string
|
|
50
|
+
instanceId?: string
|
|
39
51
|
}
|
|
40
52
|
|
|
41
|
-
export type
|
|
42
|
-
|
|
43
|
-
page?: number
|
|
44
|
-
size?: number
|
|
45
|
-
total?: number
|
|
53
|
+
export type GetInstanceRes = {
|
|
54
|
+
instance?: Instance
|
|
46
55
|
}
|
|
47
56
|
|
|
48
|
-
export type
|
|
57
|
+
export type UpdateInstanceReq = {
|
|
49
58
|
workspaceId?: string
|
|
50
59
|
registryId?: string
|
|
51
60
|
namespaceId?: string
|
|
52
61
|
groupName?: string
|
|
53
|
-
serviceName?: string
|
|
54
62
|
instanceId?: string
|
|
63
|
+
serviceName?: string
|
|
64
|
+
enabled?: boolean
|
|
55
65
|
}
|
|
56
66
|
|
|
57
|
-
export type
|
|
67
|
+
export type UpdateInstanceRes = {
|
|
58
68
|
instance?: Instance
|
|
59
69
|
}
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
|
|
8
|
+
|
|
7
9
|
export enum RegistryStatus {
|
|
8
10
|
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
9
11
|
RUNNING = "RUNNING",
|
|
@@ -45,14 +47,12 @@ export type ListRegistryReq = {
|
|
|
45
47
|
type?: string
|
|
46
48
|
name?: string
|
|
47
49
|
page?: number
|
|
48
|
-
|
|
50
|
+
pageSize?: number
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
export type ListRegistryRes = {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
size?: number
|
|
55
|
-
total?: number
|
|
54
|
+
items?: Registry[]
|
|
55
|
+
pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
export type GetRegistryReq = {
|
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
|
|
7
8
|
import * as SkoalaApiIntegratedV1alpha1Insight from "./insight.pb"
|
|
8
9
|
import * as SkoalaApiIntegratedV1alpha1Registry from "./registry.pb"
|
|
9
10
|
export type Service = {
|
|
10
11
|
name?: string
|
|
11
12
|
namespace?: NamespaceWithGroup
|
|
13
|
+
healthInstanceCount?: number
|
|
12
14
|
instanceCount?: number
|
|
13
15
|
registry?: SkoalaApiIntegratedV1alpha1Registry.Registry
|
|
14
16
|
detail?: {[key: string]: string}
|
|
@@ -18,21 +20,14 @@ export type Service = {
|
|
|
18
20
|
export type ListServiceReq = {
|
|
19
21
|
workspaceId?: string
|
|
20
22
|
registryId?: string
|
|
23
|
+
serviceName?: string
|
|
21
24
|
page?: number
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type ListAllServiceReq = {
|
|
26
|
-
workspaceId?: string
|
|
27
|
-
page?: number
|
|
28
|
-
size?: number
|
|
25
|
+
pageSize?: number
|
|
29
26
|
}
|
|
30
27
|
|
|
31
28
|
export type ListServiceRes = {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
size?: number
|
|
35
|
-
total?: number
|
|
29
|
+
items?: Service[]
|
|
30
|
+
pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
|
|
36
31
|
}
|
|
37
32
|
|
|
38
33
|
export type GetServiceReq = {
|
|
@@ -41,6 +36,8 @@ export type GetServiceReq = {
|
|
|
41
36
|
namespaceId?: string
|
|
42
37
|
groupName?: string
|
|
43
38
|
serviceName?: string
|
|
39
|
+
start?: string
|
|
40
|
+
end?: string
|
|
44
41
|
}
|
|
45
42
|
|
|
46
43
|
export type GetServiceRes = {
|
|
@@ -70,6 +70,9 @@ export class Instance {
|
|
|
70
70
|
static Get(req: SkoalaApiIntegratedV1alpha1Instance.GetInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.GetInstanceRes> {
|
|
71
71
|
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.GetInstanceReq, SkoalaApiIntegratedV1alpha1Instance.GetInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/instances/${req["instanceId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "registryId", "serviceName", "instanceId"])}`, {...initReq, method: "GET"})
|
|
72
72
|
}
|
|
73
|
+
static Update(req: SkoalaApiIntegratedV1alpha1Instance.UpdateInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.UpdateInstanceRes> {
|
|
74
|
+
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.UpdateInstanceReq, SkoalaApiIntegratedV1alpha1Instance.UpdateInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/instances/${req["instanceId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
75
|
+
}
|
|
73
76
|
}
|
|
74
77
|
export class Nacos {
|
|
75
78
|
static List(req: SkoalaApiHostedV1alpha1Nacos.ListNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosRes> {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
export type FieldValidator = {
|
|
7
|
+
regex?: string
|
|
8
|
+
intGt?: string
|
|
9
|
+
intLt?: string
|
|
10
|
+
msgExists?: boolean
|
|
11
|
+
humanError?: string
|
|
12
|
+
floatGt?: number
|
|
13
|
+
floatLt?: number
|
|
14
|
+
floatEpsilon?: number
|
|
15
|
+
floatGte?: number
|
|
16
|
+
floatLte?: number
|
|
17
|
+
stringNotEmpty?: boolean
|
|
18
|
+
repeatedCountMin?: string
|
|
19
|
+
repeatedCountMax?: string
|
|
20
|
+
lengthGt?: string
|
|
21
|
+
lengthLt?: string
|
|
22
|
+
lengthEq?: string
|
|
23
|
+
isInEnum?: boolean
|
|
24
|
+
uuidVer?: number
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type OneofValidator = {
|
|
28
|
+
required?: boolean
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
8
|
+
type OneOf<T> =
|
|
9
|
+
| { [k in keyof T]?: undefined }
|
|
10
|
+
| (
|
|
11
|
+
keyof T extends infer K ?
|
|
12
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
13
|
+
: never)
|
|
14
|
+
: never);
|
|
15
|
+
export type Http = {
|
|
16
|
+
rules?: HttpRule[]
|
|
17
|
+
fullyDecodeReservedExpansion?: boolean
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
type BaseHttpRule = {
|
|
22
|
+
selector?: string
|
|
23
|
+
body?: string
|
|
24
|
+
responseBody?: string
|
|
25
|
+
additionalBindings?: HttpRule[]
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type HttpRule = BaseHttpRule
|
|
29
|
+
& OneOf<{ get: string; put: string; post: string; delete: string; patch: string; custom: CustomHttpPattern }>
|
|
30
|
+
|
|
31
|
+
export type CustomHttpPattern = {
|
|
32
|
+
kind?: string
|
|
33
|
+
path?: string
|
|
34
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 GoogleProtobufSource_context from "./source_context.pb"
|
|
8
|
+
import * as GoogleProtobufType from "./type.pb"
|
|
9
|
+
export type Api = {
|
|
10
|
+
name?: string
|
|
11
|
+
methods?: Method[]
|
|
12
|
+
options?: GoogleProtobufType.Option[]
|
|
13
|
+
version?: string
|
|
14
|
+
sourceContext?: GoogleProtobufSource_context.SourceContext
|
|
15
|
+
mixins?: Mixin[]
|
|
16
|
+
syntax?: GoogleProtobufType.Syntax
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type Method = {
|
|
20
|
+
name?: string
|
|
21
|
+
requestTypeUrl?: string
|
|
22
|
+
requestStreaming?: boolean
|
|
23
|
+
responseTypeUrl?: string
|
|
24
|
+
responseStreaming?: boolean
|
|
25
|
+
options?: GoogleProtobufType.Option[]
|
|
26
|
+
syntax?: GoogleProtobufType.Syntax
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type Mixin = {
|
|
30
|
+
name?: string
|
|
31
|
+
root?: string
|
|
32
|
+
}
|
|
@@ -0,0 +1,262 @@
|
|
|
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 FieldDescriptorProtoType {
|
|
8
|
+
TYPE_DOUBLE = "TYPE_DOUBLE",
|
|
9
|
+
TYPE_FLOAT = "TYPE_FLOAT",
|
|
10
|
+
TYPE_INT64 = "TYPE_INT64",
|
|
11
|
+
TYPE_UINT64 = "TYPE_UINT64",
|
|
12
|
+
TYPE_INT32 = "TYPE_INT32",
|
|
13
|
+
TYPE_FIXED64 = "TYPE_FIXED64",
|
|
14
|
+
TYPE_FIXED32 = "TYPE_FIXED32",
|
|
15
|
+
TYPE_BOOL = "TYPE_BOOL",
|
|
16
|
+
TYPE_STRING = "TYPE_STRING",
|
|
17
|
+
TYPE_GROUP = "TYPE_GROUP",
|
|
18
|
+
TYPE_MESSAGE = "TYPE_MESSAGE",
|
|
19
|
+
TYPE_BYTES = "TYPE_BYTES",
|
|
20
|
+
TYPE_UINT32 = "TYPE_UINT32",
|
|
21
|
+
TYPE_ENUM = "TYPE_ENUM",
|
|
22
|
+
TYPE_SFIXED32 = "TYPE_SFIXED32",
|
|
23
|
+
TYPE_SFIXED64 = "TYPE_SFIXED64",
|
|
24
|
+
TYPE_SINT32 = "TYPE_SINT32",
|
|
25
|
+
TYPE_SINT64 = "TYPE_SINT64",
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export enum FieldDescriptorProtoLabel {
|
|
29
|
+
LABEL_OPTIONAL = "LABEL_OPTIONAL",
|
|
30
|
+
LABEL_REQUIRED = "LABEL_REQUIRED",
|
|
31
|
+
LABEL_REPEATED = "LABEL_REPEATED",
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export enum FileOptionsOptimizeMode {
|
|
35
|
+
SPEED = "SPEED",
|
|
36
|
+
CODE_SIZE = "CODE_SIZE",
|
|
37
|
+
LITE_RUNTIME = "LITE_RUNTIME",
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export enum FieldOptionsCType {
|
|
41
|
+
STRING = "STRING",
|
|
42
|
+
CORD = "CORD",
|
|
43
|
+
STRING_PIECE = "STRING_PIECE",
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export enum FieldOptionsJSType {
|
|
47
|
+
JS_NORMAL = "JS_NORMAL",
|
|
48
|
+
JS_STRING = "JS_STRING",
|
|
49
|
+
JS_NUMBER = "JS_NUMBER",
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export enum MethodOptionsIdempotencyLevel {
|
|
53
|
+
IDEMPOTENCY_UNKNOWN = "IDEMPOTENCY_UNKNOWN",
|
|
54
|
+
NO_SIDE_EFFECTS = "NO_SIDE_EFFECTS",
|
|
55
|
+
IDEMPOTENT = "IDEMPOTENT",
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type FileDescriptorSet = {
|
|
59
|
+
file?: FileDescriptorProto[]
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type FileDescriptorProto = {
|
|
63
|
+
name?: string
|
|
64
|
+
package?: string
|
|
65
|
+
dependency?: string[]
|
|
66
|
+
publicDependency?: number[]
|
|
67
|
+
weakDependency?: number[]
|
|
68
|
+
messageType?: DescriptorProto[]
|
|
69
|
+
enumType?: EnumDescriptorProto[]
|
|
70
|
+
service?: ServiceDescriptorProto[]
|
|
71
|
+
extension?: FieldDescriptorProto[]
|
|
72
|
+
options?: FileOptions
|
|
73
|
+
sourceCodeInfo?: SourceCodeInfo
|
|
74
|
+
syntax?: string
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type DescriptorProtoExtensionRange = {
|
|
78
|
+
start?: number
|
|
79
|
+
end?: number
|
|
80
|
+
options?: ExtensionRangeOptions
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type DescriptorProtoReservedRange = {
|
|
84
|
+
start?: number
|
|
85
|
+
end?: number
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export type DescriptorProto = {
|
|
89
|
+
name?: string
|
|
90
|
+
field?: FieldDescriptorProto[]
|
|
91
|
+
extension?: FieldDescriptorProto[]
|
|
92
|
+
nestedType?: DescriptorProto[]
|
|
93
|
+
enumType?: EnumDescriptorProto[]
|
|
94
|
+
extensionRange?: DescriptorProtoExtensionRange[]
|
|
95
|
+
oneofDecl?: OneofDescriptorProto[]
|
|
96
|
+
options?: MessageOptions
|
|
97
|
+
reservedRange?: DescriptorProtoReservedRange[]
|
|
98
|
+
reservedName?: string[]
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type ExtensionRangeOptions = {
|
|
102
|
+
uninterpretedOption?: UninterpretedOption[]
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export type FieldDescriptorProto = {
|
|
106
|
+
name?: string
|
|
107
|
+
number?: number
|
|
108
|
+
label?: FieldDescriptorProtoLabel
|
|
109
|
+
type?: FieldDescriptorProtoType
|
|
110
|
+
typeName?: string
|
|
111
|
+
extendee?: string
|
|
112
|
+
defaultValue?: string
|
|
113
|
+
oneofIndex?: number
|
|
114
|
+
jsonName?: string
|
|
115
|
+
options?: FieldOptions
|
|
116
|
+
proto3Optional?: boolean
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export type OneofDescriptorProto = {
|
|
120
|
+
name?: string
|
|
121
|
+
options?: OneofOptions
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export type EnumDescriptorProtoEnumReservedRange = {
|
|
125
|
+
start?: number
|
|
126
|
+
end?: number
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export type EnumDescriptorProto = {
|
|
130
|
+
name?: string
|
|
131
|
+
value?: EnumValueDescriptorProto[]
|
|
132
|
+
options?: EnumOptions
|
|
133
|
+
reservedRange?: EnumDescriptorProtoEnumReservedRange[]
|
|
134
|
+
reservedName?: string[]
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export type EnumValueDescriptorProto = {
|
|
138
|
+
name?: string
|
|
139
|
+
number?: number
|
|
140
|
+
options?: EnumValueOptions
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export type ServiceDescriptorProto = {
|
|
144
|
+
name?: string
|
|
145
|
+
method?: MethodDescriptorProto[]
|
|
146
|
+
options?: ServiceOptions
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type MethodDescriptorProto = {
|
|
150
|
+
name?: string
|
|
151
|
+
inputType?: string
|
|
152
|
+
outputType?: string
|
|
153
|
+
options?: MethodOptions
|
|
154
|
+
clientStreaming?: boolean
|
|
155
|
+
serverStreaming?: boolean
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export type FileOptions = {
|
|
159
|
+
javaPackage?: string
|
|
160
|
+
javaOuterClassname?: string
|
|
161
|
+
javaMultipleFiles?: boolean
|
|
162
|
+
javaGenerateEqualsAndHash?: boolean
|
|
163
|
+
javaStringCheckUtf8?: boolean
|
|
164
|
+
optimizeFor?: FileOptionsOptimizeMode
|
|
165
|
+
goPackage?: string
|
|
166
|
+
ccGenericServices?: boolean
|
|
167
|
+
javaGenericServices?: boolean
|
|
168
|
+
pyGenericServices?: boolean
|
|
169
|
+
phpGenericServices?: boolean
|
|
170
|
+
deprecated?: boolean
|
|
171
|
+
ccEnableArenas?: boolean
|
|
172
|
+
objcClassPrefix?: string
|
|
173
|
+
csharpNamespace?: string
|
|
174
|
+
swiftPrefix?: string
|
|
175
|
+
phpClassPrefix?: string
|
|
176
|
+
phpNamespace?: string
|
|
177
|
+
phpMetadataNamespace?: string
|
|
178
|
+
rubyPackage?: string
|
|
179
|
+
uninterpretedOption?: UninterpretedOption[]
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export type MessageOptions = {
|
|
183
|
+
messageSetWireFormat?: boolean
|
|
184
|
+
noStandardDescriptorAccessor?: boolean
|
|
185
|
+
deprecated?: boolean
|
|
186
|
+
mapEntry?: boolean
|
|
187
|
+
uninterpretedOption?: UninterpretedOption[]
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export type FieldOptions = {
|
|
191
|
+
ctype?: FieldOptionsCType
|
|
192
|
+
packed?: boolean
|
|
193
|
+
jstype?: FieldOptionsJSType
|
|
194
|
+
lazy?: boolean
|
|
195
|
+
deprecated?: boolean
|
|
196
|
+
weak?: boolean
|
|
197
|
+
uninterpretedOption?: UninterpretedOption[]
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export type OneofOptions = {
|
|
201
|
+
uninterpretedOption?: UninterpretedOption[]
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export type EnumOptions = {
|
|
205
|
+
allowAlias?: boolean
|
|
206
|
+
deprecated?: boolean
|
|
207
|
+
uninterpretedOption?: UninterpretedOption[]
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export type EnumValueOptions = {
|
|
211
|
+
deprecated?: boolean
|
|
212
|
+
uninterpretedOption?: UninterpretedOption[]
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export type ServiceOptions = {
|
|
216
|
+
deprecated?: boolean
|
|
217
|
+
uninterpretedOption?: UninterpretedOption[]
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export type MethodOptions = {
|
|
221
|
+
deprecated?: boolean
|
|
222
|
+
idempotencyLevel?: MethodOptionsIdempotencyLevel
|
|
223
|
+
uninterpretedOption?: UninterpretedOption[]
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export type UninterpretedOptionNamePart = {
|
|
227
|
+
namePart?: string
|
|
228
|
+
isExtension?: boolean
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export type UninterpretedOption = {
|
|
232
|
+
name?: UninterpretedOptionNamePart[]
|
|
233
|
+
identifierValue?: string
|
|
234
|
+
positiveIntValue?: string
|
|
235
|
+
negativeIntValue?: string
|
|
236
|
+
doubleValue?: number
|
|
237
|
+
stringValue?: Uint8Array
|
|
238
|
+
aggregateValue?: string
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export type SourceCodeInfoLocation = {
|
|
242
|
+
path?: number[]
|
|
243
|
+
span?: number[]
|
|
244
|
+
leadingComments?: string
|
|
245
|
+
trailingComments?: string
|
|
246
|
+
leadingDetachedComments?: string[]
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
export type SourceCodeInfo = {
|
|
250
|
+
location?: SourceCodeInfoLocation[]
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export type GeneratedCodeInfoAnnotation = {
|
|
254
|
+
path?: number[]
|
|
255
|
+
sourceFile?: string
|
|
256
|
+
begin?: number
|
|
257
|
+
end?: number
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export type GeneratedCodeInfo = {
|
|
261
|
+
annotation?: GeneratedCodeInfoAnnotation[]
|
|
262
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
8
|
+
type OneOf<T> =
|
|
9
|
+
| { [k in keyof T]?: undefined }
|
|
10
|
+
| (
|
|
11
|
+
keyof T extends infer K ?
|
|
12
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
13
|
+
: never)
|
|
14
|
+
: never);
|
|
15
|
+
|
|
16
|
+
export enum NullValue {
|
|
17
|
+
NULL_VALUE = "NULL_VALUE",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type Struct = {
|
|
21
|
+
fields?: {[key: string]: Value}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
type BaseValue = {
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type Value = BaseValue
|
|
29
|
+
& OneOf<{ nullValue: NullValue; numberValue: number; stringValue: string; boolValue: boolean; structValue: Struct; listValue: ListValue }>
|
|
30
|
+
|
|
31
|
+
export type ListValue = {
|
|
32
|
+
values?: Value[]
|
|
33
|
+
}
|