@firmer/mesh 0.0.1
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/README.md +24 -0
- package/dist/asm/index.d.ts +11 -0
- package/dist/cause/codeable.d.ts +5 -0
- package/dist/cause/errors.d.ts +1 -0
- package/dist/cause/index.d.ts +3 -0
- package/dist/cause/status.d.ts +46 -0
- package/dist/codec/codec.d.ts +43 -0
- package/dist/codec/index.d.ts +2 -0
- package/dist/codec/json.d.ts +12 -0
- package/dist/grpc/consumer.d.ts +8 -0
- package/dist/grpc/index.d.ts +3 -0
- package/dist/grpc/interceptor.d.ts +2 -0
- package/dist/grpc/provider.d.ts +5 -0
- package/dist/http/consumer.d.ts +12 -0
- package/dist/http/index.d.ts +2 -0
- package/dist/http/provider.d.ts +5 -0
- package/dist/index.d.ts +116 -0
- package/dist/macro/ark.d.ts +84 -0
- package/dist/macro/binding.d.ts +1 -0
- package/dist/macro/dsa.d.ts +20 -0
- package/dist/macro/env.d.ts +43 -0
- package/dist/macro/idx.d.ts +12 -0
- package/dist/macro/index.d.ts +10 -0
- package/dist/macro/inspector.d.ts +144 -0
- package/dist/macro/loader.d.ts +15 -0
- package/dist/macro/mpi.d.ts +21 -0
- package/dist/macro/mps.d.ts +12 -0
- package/dist/macro/spi.d.ts +13 -0
- package/dist/mesh.d.ts +2 -0
- package/dist/mesh.js +11088 -0
- package/dist/mesh.umd.cjs +24 -0
- package/dist/mpc/compiler.d.ts +23 -0
- package/dist/mpc/consumer.d.ts +28 -0
- package/dist/mpc/consumer_filter.d.ts +6 -0
- package/dist/mpc/context.d.ts +33 -0
- package/dist/mpc/eden.d.ts +44 -0
- package/dist/mpc/execution.d.ts +74 -0
- package/dist/mpc/filter.d.ts +19 -0
- package/dist/mpc/hook.d.ts +23 -0
- package/dist/mpc/index.d.ts +16 -0
- package/dist/mpc/invoker.d.ts +57 -0
- package/dist/mpc/mesh.d.ts +42 -0
- package/dist/mpc/mesh_eden.d.ts +25 -0
- package/dist/mpc/mock.d.ts +7 -0
- package/dist/mpc/provider.d.ts +10 -0
- package/dist/mpc/proxy.d.ts +6 -0
- package/dist/mpc/reference.d.ts +21 -0
- package/dist/mpc/service.d.ts +7 -0
- package/dist/mpc/urn.d.ts +32 -0
- package/dist/psi/builtin.d.ts +49 -0
- package/dist/psi/cache.d.ts +44 -0
- package/dist/psi/cipher.d.ts +73 -0
- package/dist/psi/cluster.d.ts +11 -0
- package/dist/psi/commerce.d.ts +20 -0
- package/dist/psi/context.d.ts +148 -0
- package/dist/psi/cryptor.d.ts +23 -0
- package/dist/psi/datahouse.d.ts +24 -0
- package/dist/psi/dispatcher.d.ts +13 -0
- package/dist/psi/endpoint.d.ts +14 -0
- package/dist/psi/evaluator.d.ts +20 -0
- package/dist/psi/graph.d.ts +11 -0
- package/dist/psi/index.d.ts +29 -0
- package/dist/psi/kms.d.ts +20 -0
- package/dist/psi/kv.d.ts +24 -0
- package/dist/psi/licenser.d.ts +24 -0
- package/dist/psi/locker.d.ts +19 -0
- package/dist/psi/network.d.ts +49 -0
- package/dist/psi/pipeline.d.ts +28 -0
- package/dist/psi/publisher.d.ts +12 -0
- package/dist/psi/registry.d.ts +20 -0
- package/dist/psi/routable.d.ts +37 -0
- package/dist/psi/savepoint.d.ts +24 -0
- package/dist/psi/scheduler.d.ts +47 -0
- package/dist/psi/sequence.d.ts +20 -0
- package/dist/psi/subscriber.d.ts +11 -0
- package/dist/psi/tokenizer.d.ts +48 -0
- package/dist/psi/transport.d.ts +33 -0
- package/dist/psi/vfs.d.ts +32 -0
- package/dist/psi/workflow.d.ts +35 -0
- package/dist/schema/citizen.d.ts +25 -0
- package/dist/schema/index.d.ts +2 -0
- package/dist/schema/schema.d.ts +2 -0
- package/dist/system/index.d.ts +1 -0
- package/dist/system/mesh_network.d.ts +15 -0
- package/dist/test/network.test.d.ts +4 -0
- package/dist/tool/addrs.d.ts +11 -0
- package/dist/tool/index.d.ts +3 -0
- package/dist/tool/table.d.ts +7 -0
- package/dist/tool/tool.d.ts +31 -0
- package/dist/types/builtin.d.ts +121 -0
- package/dist/types/cipher.d.ts +111 -0
- package/dist/types/document.d.ts +34 -0
- package/dist/types/entity.d.ts +59 -0
- package/dist/types/enums.d.ts +2 -0
- package/dist/types/environ.d.ts +52 -0
- package/dist/types/event.d.ts +55 -0
- package/dist/types/index.d.ts +20 -0
- package/dist/types/keys.d.ts +41 -0
- package/dist/types/license.d.ts +111 -0
- package/dist/types/oauth2.d.ts +138 -0
- package/dist/types/payload.d.ts +29 -0
- package/dist/types/principal.d.ts +35 -0
- package/dist/types/registration.d.ts +114 -0
- package/dist/types/route.d.ts +90 -0
- package/dist/types/savepoint.d.ts +34 -0
- package/dist/types/script.d.ts +26 -0
- package/dist/types/status.d.ts +13 -0
- package/dist/types/transport.d.ts +40 -0
- package/dist/types/version.d.ts +10 -0
- package/dist/types/workflow.d.ts +190 -0
- package/package.json +56 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Topic } from './builtin';
|
|
2
|
+
import { Body } from './entity';
|
|
3
|
+
import { Principal } from './principal';
|
|
4
|
+
export declare class Event {
|
|
5
|
+
/**
|
|
6
|
+
*/
|
|
7
|
+
version: string;
|
|
8
|
+
/**
|
|
9
|
+
*/
|
|
10
|
+
tid: string;
|
|
11
|
+
/**
|
|
12
|
+
*/
|
|
13
|
+
sid: string;
|
|
14
|
+
/**
|
|
15
|
+
*/
|
|
16
|
+
eid: string;
|
|
17
|
+
/**
|
|
18
|
+
*/
|
|
19
|
+
mid: string;
|
|
20
|
+
/**
|
|
21
|
+
*/
|
|
22
|
+
timestamp: string;
|
|
23
|
+
/**
|
|
24
|
+
*/
|
|
25
|
+
source: Principal;
|
|
26
|
+
/**
|
|
27
|
+
*/
|
|
28
|
+
target: Principal;
|
|
29
|
+
/**
|
|
30
|
+
*/
|
|
31
|
+
binding: Topic;
|
|
32
|
+
/**
|
|
33
|
+
*/
|
|
34
|
+
entity: Body;
|
|
35
|
+
}
|
|
36
|
+
export declare class Timeout {
|
|
37
|
+
/**
|
|
38
|
+
*/
|
|
39
|
+
taskId: string;
|
|
40
|
+
/**
|
|
41
|
+
*/
|
|
42
|
+
binding: Topic;
|
|
43
|
+
/**
|
|
44
|
+
*/
|
|
45
|
+
status: number;
|
|
46
|
+
/**
|
|
47
|
+
*/
|
|
48
|
+
createAt: number;
|
|
49
|
+
/**
|
|
50
|
+
*/
|
|
51
|
+
invokeAt: number;
|
|
52
|
+
/**
|
|
53
|
+
*/
|
|
54
|
+
entity: Body;
|
|
55
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from './builtin';
|
|
2
|
+
export * from './cipher';
|
|
3
|
+
export * from './document';
|
|
4
|
+
export * from './entity';
|
|
5
|
+
export * from './enums';
|
|
6
|
+
export * from './environ';
|
|
7
|
+
export * from './event';
|
|
8
|
+
export * from './keys';
|
|
9
|
+
export * from './license';
|
|
10
|
+
export * from './oauth2';
|
|
11
|
+
export * from './payload';
|
|
12
|
+
export * from './principal';
|
|
13
|
+
export * from './registration';
|
|
14
|
+
export * from './route';
|
|
15
|
+
export * from './savepoint';
|
|
16
|
+
export * from './script';
|
|
17
|
+
export * from './status';
|
|
18
|
+
export * from './transport';
|
|
19
|
+
export * from './version';
|
|
20
|
+
export * from './workflow';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare class Keys {
|
|
2
|
+
/**
|
|
3
|
+
* enumeration in KeyKind
|
|
4
|
+
*/
|
|
5
|
+
kind: string;
|
|
6
|
+
/**
|
|
7
|
+
*/
|
|
8
|
+
key: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class KeyCsr {
|
|
11
|
+
/**
|
|
12
|
+
*/
|
|
13
|
+
algo: string;
|
|
14
|
+
/**
|
|
15
|
+
*/
|
|
16
|
+
domain: string;
|
|
17
|
+
/**
|
|
18
|
+
*/
|
|
19
|
+
subject: string;
|
|
20
|
+
/**
|
|
21
|
+
*/
|
|
22
|
+
length: number;
|
|
23
|
+
/**
|
|
24
|
+
*/
|
|
25
|
+
expireAt?: Date;
|
|
26
|
+
/**
|
|
27
|
+
*/
|
|
28
|
+
mail: string;
|
|
29
|
+
/**
|
|
30
|
+
*/
|
|
31
|
+
isCA: boolean;
|
|
32
|
+
/**
|
|
33
|
+
*/
|
|
34
|
+
caCert: string;
|
|
35
|
+
/**
|
|
36
|
+
*/
|
|
37
|
+
caKey: string;
|
|
38
|
+
/**
|
|
39
|
+
*/
|
|
40
|
+
ips: string[];
|
|
41
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { Environ } from './environ';
|
|
2
|
+
export declare class License {
|
|
3
|
+
/**
|
|
4
|
+
* License version
|
|
5
|
+
*/
|
|
6
|
+
version: string;
|
|
7
|
+
/**
|
|
8
|
+
* License level
|
|
9
|
+
*/
|
|
10
|
+
level: number;
|
|
11
|
+
/**
|
|
12
|
+
* License name
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* License creator name
|
|
17
|
+
*/
|
|
18
|
+
createBy: string;
|
|
19
|
+
/**
|
|
20
|
+
* License create time
|
|
21
|
+
*/
|
|
22
|
+
createAt: number;
|
|
23
|
+
/**
|
|
24
|
+
* License create by
|
|
25
|
+
*/
|
|
26
|
+
activeAt: number;
|
|
27
|
+
/**
|
|
28
|
+
* License factors
|
|
29
|
+
*/
|
|
30
|
+
factor: string;
|
|
31
|
+
/**
|
|
32
|
+
* License signature
|
|
33
|
+
*/
|
|
34
|
+
signature: string;
|
|
35
|
+
/**
|
|
36
|
+
* Licensed identity
|
|
37
|
+
*/
|
|
38
|
+
muid: string;
|
|
39
|
+
/**
|
|
40
|
+
* License server
|
|
41
|
+
*/
|
|
42
|
+
server: string;
|
|
43
|
+
/**
|
|
44
|
+
* License certification
|
|
45
|
+
*/
|
|
46
|
+
crt: string;
|
|
47
|
+
/**
|
|
48
|
+
* License group
|
|
49
|
+
*/
|
|
50
|
+
group: string[];
|
|
51
|
+
/**
|
|
52
|
+
* License max replicas
|
|
53
|
+
*/
|
|
54
|
+
replicas: number;
|
|
55
|
+
/**
|
|
56
|
+
* License max cooperators
|
|
57
|
+
*/
|
|
58
|
+
maxCooperators: number;
|
|
59
|
+
/**
|
|
60
|
+
* License max tenants
|
|
61
|
+
*/
|
|
62
|
+
maxTenants: number;
|
|
63
|
+
/**
|
|
64
|
+
* License max users
|
|
65
|
+
*/
|
|
66
|
+
maxUsers: number;
|
|
67
|
+
/**
|
|
68
|
+
* License max mills
|
|
69
|
+
*/
|
|
70
|
+
maxMills: number;
|
|
71
|
+
/**
|
|
72
|
+
* License white urns
|
|
73
|
+
*/
|
|
74
|
+
whiteURN: string[];
|
|
75
|
+
/**
|
|
76
|
+
* License black urns
|
|
77
|
+
*/
|
|
78
|
+
blackURN: string[];
|
|
79
|
+
/**
|
|
80
|
+
* License supervise urns
|
|
81
|
+
*/
|
|
82
|
+
superURN: string[];
|
|
83
|
+
}
|
|
84
|
+
export declare class CommerceLicense {
|
|
85
|
+
/**
|
|
86
|
+
* License cipher
|
|
87
|
+
*/
|
|
88
|
+
cipher: string;
|
|
89
|
+
/**
|
|
90
|
+
* License explain
|
|
91
|
+
*/
|
|
92
|
+
explain: License;
|
|
93
|
+
/**
|
|
94
|
+
* License create time
|
|
95
|
+
*/
|
|
96
|
+
createAt?: Date;
|
|
97
|
+
}
|
|
98
|
+
export declare class CommerceEnviron {
|
|
99
|
+
/**
|
|
100
|
+
* Node cipher
|
|
101
|
+
*/
|
|
102
|
+
cipher: string;
|
|
103
|
+
/**
|
|
104
|
+
* Node explain
|
|
105
|
+
*/
|
|
106
|
+
explain: Environ;
|
|
107
|
+
/**
|
|
108
|
+
* Node private key
|
|
109
|
+
*/
|
|
110
|
+
nodeKey: string;
|
|
111
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
export declare class Captcha {
|
|
2
|
+
/**
|
|
3
|
+
*/
|
|
4
|
+
mno: string;
|
|
5
|
+
/**
|
|
6
|
+
*/
|
|
7
|
+
kind: string;
|
|
8
|
+
/**
|
|
9
|
+
*/
|
|
10
|
+
mime: Uint8Array;
|
|
11
|
+
/**
|
|
12
|
+
*/
|
|
13
|
+
text: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class Credential {
|
|
16
|
+
/**
|
|
17
|
+
* OAuth client id
|
|
18
|
+
*/
|
|
19
|
+
clientId: string;
|
|
20
|
+
/**
|
|
21
|
+
* OAuth client key
|
|
22
|
+
*/
|
|
23
|
+
clientKey: string;
|
|
24
|
+
/**
|
|
25
|
+
* OAuth authorize username
|
|
26
|
+
*/
|
|
27
|
+
username: string;
|
|
28
|
+
/**
|
|
29
|
+
* OAuth authorize password
|
|
30
|
+
*/
|
|
31
|
+
password: string;
|
|
32
|
+
/**
|
|
33
|
+
* OAuth authorize captcha
|
|
34
|
+
*/
|
|
35
|
+
captcha: string;
|
|
36
|
+
}
|
|
37
|
+
export declare class AccessToken {
|
|
38
|
+
/**
|
|
39
|
+
* OAuth access token
|
|
40
|
+
*/
|
|
41
|
+
token: string;
|
|
42
|
+
/**
|
|
43
|
+
* OAuth access token type
|
|
44
|
+
*/
|
|
45
|
+
kind: string;
|
|
46
|
+
/**
|
|
47
|
+
* OAuth access token expires time in mills
|
|
48
|
+
*/
|
|
49
|
+
expiresAt: number;
|
|
50
|
+
/**
|
|
51
|
+
* OAuth access token scope
|
|
52
|
+
*/
|
|
53
|
+
scope: string;
|
|
54
|
+
/**
|
|
55
|
+
* OAuth access token refresh token
|
|
56
|
+
*/
|
|
57
|
+
refreshToken: string;
|
|
58
|
+
}
|
|
59
|
+
export declare class AccessGrant {
|
|
60
|
+
/**
|
|
61
|
+
* OAuth grant code
|
|
62
|
+
*/
|
|
63
|
+
code: string;
|
|
64
|
+
}
|
|
65
|
+
export declare class AccessCode {
|
|
66
|
+
/**
|
|
67
|
+
* OAuth authorize code
|
|
68
|
+
*/
|
|
69
|
+
code: string;
|
|
70
|
+
/**
|
|
71
|
+
* OAuth authorize redirect uri
|
|
72
|
+
*/
|
|
73
|
+
redirectURI: string;
|
|
74
|
+
}
|
|
75
|
+
export declare class AccessID {
|
|
76
|
+
/**
|
|
77
|
+
* OAuth client id
|
|
78
|
+
*/
|
|
79
|
+
clientId: string;
|
|
80
|
+
/**
|
|
81
|
+
* OAuth user id
|
|
82
|
+
*/
|
|
83
|
+
userId: string;
|
|
84
|
+
/**
|
|
85
|
+
* OAuth access token expires time in mills
|
|
86
|
+
*/
|
|
87
|
+
expiresAt: number;
|
|
88
|
+
}
|
|
89
|
+
export declare class Session {
|
|
90
|
+
/**
|
|
91
|
+
* Authenticate token
|
|
92
|
+
*/
|
|
93
|
+
token: string;
|
|
94
|
+
/**
|
|
95
|
+
* User id
|
|
96
|
+
*/
|
|
97
|
+
userid: string;
|
|
98
|
+
/**
|
|
99
|
+
* User name
|
|
100
|
+
*/
|
|
101
|
+
username: string;
|
|
102
|
+
/**
|
|
103
|
+
* Nick name
|
|
104
|
+
*/
|
|
105
|
+
nickname: string;
|
|
106
|
+
/**
|
|
107
|
+
* User avatar uri
|
|
108
|
+
*/
|
|
109
|
+
avatar: string;
|
|
110
|
+
/**
|
|
111
|
+
* User contact mobile
|
|
112
|
+
*/
|
|
113
|
+
mobile: string;
|
|
114
|
+
/**
|
|
115
|
+
* User contact mail
|
|
116
|
+
*/
|
|
117
|
+
mail: string;
|
|
118
|
+
/**
|
|
119
|
+
* User department id
|
|
120
|
+
*/
|
|
121
|
+
deptId: string;
|
|
122
|
+
/**
|
|
123
|
+
* User node id
|
|
124
|
+
*/
|
|
125
|
+
nodeId: string;
|
|
126
|
+
/**
|
|
127
|
+
* User institution id
|
|
128
|
+
*/
|
|
129
|
+
instIds: string[];
|
|
130
|
+
/**
|
|
131
|
+
* User attributes
|
|
132
|
+
*/
|
|
133
|
+
attrs: string[];
|
|
134
|
+
/**
|
|
135
|
+
* User extension dict info
|
|
136
|
+
*/
|
|
137
|
+
raw: Record<string, string>;
|
|
138
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Cause } from './builtin';
|
|
2
|
+
export declare class Inbound {
|
|
3
|
+
/**
|
|
4
|
+
* Invoke parameters
|
|
5
|
+
*/
|
|
6
|
+
arguments: any[];
|
|
7
|
+
/**
|
|
8
|
+
* Invoke attachments
|
|
9
|
+
*/
|
|
10
|
+
attachments: Record<string, string>;
|
|
11
|
+
}
|
|
12
|
+
export declare class Outbound {
|
|
13
|
+
/**
|
|
14
|
+
* Result code
|
|
15
|
+
*/
|
|
16
|
+
code: string;
|
|
17
|
+
/**
|
|
18
|
+
* Result message
|
|
19
|
+
*/
|
|
20
|
+
message: string;
|
|
21
|
+
/**
|
|
22
|
+
* Service cause stacktrace
|
|
23
|
+
*/
|
|
24
|
+
cause: Cause;
|
|
25
|
+
/**
|
|
26
|
+
* Service response content
|
|
27
|
+
*/
|
|
28
|
+
content?: any;
|
|
29
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare class Principal {
|
|
2
|
+
/**
|
|
3
|
+
* idc
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class Location extends Principal {
|
|
8
|
+
/**
|
|
9
|
+
* ip
|
|
10
|
+
*/
|
|
11
|
+
ip: string;
|
|
12
|
+
/**
|
|
13
|
+
* port
|
|
14
|
+
*/
|
|
15
|
+
port: string;
|
|
16
|
+
/**
|
|
17
|
+
* host
|
|
18
|
+
*/
|
|
19
|
+
host: string;
|
|
20
|
+
/**
|
|
21
|
+
* name
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
}
|
|
25
|
+
export declare class Institution {
|
|
26
|
+
/**
|
|
27
|
+
*/
|
|
28
|
+
nodeId: string;
|
|
29
|
+
/**
|
|
30
|
+
*/
|
|
31
|
+
instId: string;
|
|
32
|
+
/**
|
|
33
|
+
*/
|
|
34
|
+
instName: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
export declare class URC {
|
|
2
|
+
/**
|
|
3
|
+
*/
|
|
4
|
+
version: string;
|
|
5
|
+
/**
|
|
6
|
+
*/
|
|
7
|
+
proto: string;
|
|
8
|
+
/**
|
|
9
|
+
*/
|
|
10
|
+
codec: string;
|
|
11
|
+
/**
|
|
12
|
+
*/
|
|
13
|
+
mdc: string;
|
|
14
|
+
/**
|
|
15
|
+
*/
|
|
16
|
+
zone: string;
|
|
17
|
+
/**
|
|
18
|
+
*/
|
|
19
|
+
cluster: string;
|
|
20
|
+
/**
|
|
21
|
+
*/
|
|
22
|
+
cell: string;
|
|
23
|
+
/**
|
|
24
|
+
*/
|
|
25
|
+
group: string;
|
|
26
|
+
/**
|
|
27
|
+
*/
|
|
28
|
+
address: string;
|
|
29
|
+
}
|
|
30
|
+
export declare class Reference extends URC {
|
|
31
|
+
/**
|
|
32
|
+
*/
|
|
33
|
+
urn: string;
|
|
34
|
+
/**
|
|
35
|
+
*/
|
|
36
|
+
namespace: string;
|
|
37
|
+
/**
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
* Service flag 1 asyncable 2 encrypt 4 communal
|
|
42
|
+
*/
|
|
43
|
+
flags: number;
|
|
44
|
+
/**
|
|
45
|
+
*/
|
|
46
|
+
timeout: number;
|
|
47
|
+
/**
|
|
48
|
+
*/
|
|
49
|
+
retries: number;
|
|
50
|
+
}
|
|
51
|
+
export declare class Service extends URC {
|
|
52
|
+
/**
|
|
53
|
+
*/
|
|
54
|
+
urn: string;
|
|
55
|
+
/**
|
|
56
|
+
*/
|
|
57
|
+
namespace: string;
|
|
58
|
+
/**
|
|
59
|
+
*/
|
|
60
|
+
name: string;
|
|
61
|
+
/**
|
|
62
|
+
* Service flag 1 asyncable 2 encrypt 4 communal 8
|
|
63
|
+
*/
|
|
64
|
+
flags: number;
|
|
65
|
+
/**
|
|
66
|
+
*/
|
|
67
|
+
timeout: number;
|
|
68
|
+
/**
|
|
69
|
+
*/
|
|
70
|
+
retries: number;
|
|
71
|
+
/**
|
|
72
|
+
*/
|
|
73
|
+
sets: string;
|
|
74
|
+
/**
|
|
75
|
+
*/
|
|
76
|
+
kind: string;
|
|
77
|
+
/**
|
|
78
|
+
*/
|
|
79
|
+
lang: string;
|
|
80
|
+
/**
|
|
81
|
+
*/
|
|
82
|
+
attrs: Record<string, string>;
|
|
83
|
+
}
|
|
84
|
+
export declare class Metadata {
|
|
85
|
+
/**
|
|
86
|
+
*/
|
|
87
|
+
references: Reference[];
|
|
88
|
+
/**
|
|
89
|
+
*/
|
|
90
|
+
services: Service[];
|
|
91
|
+
}
|
|
92
|
+
export declare class Registration<T> {
|
|
93
|
+
/**
|
|
94
|
+
*/
|
|
95
|
+
instanceId: string;
|
|
96
|
+
/**
|
|
97
|
+
*/
|
|
98
|
+
name: string;
|
|
99
|
+
/**
|
|
100
|
+
*/
|
|
101
|
+
kind: string;
|
|
102
|
+
/**
|
|
103
|
+
*/
|
|
104
|
+
address: string;
|
|
105
|
+
/**
|
|
106
|
+
*/
|
|
107
|
+
content?: T;
|
|
108
|
+
/**
|
|
109
|
+
*/
|
|
110
|
+
timestamp: number;
|
|
111
|
+
/**
|
|
112
|
+
*/
|
|
113
|
+
attachments: Record<string, string>;
|
|
114
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export declare class Route {
|
|
2
|
+
/**
|
|
3
|
+
* 源头编号
|
|
4
|
+
*/
|
|
5
|
+
sid: string;
|
|
6
|
+
/**
|
|
7
|
+
* 目标编号
|
|
8
|
+
*/
|
|
9
|
+
did: string;
|
|
10
|
+
/**
|
|
11
|
+
* 名称
|
|
12
|
+
*/
|
|
13
|
+
name: string;
|
|
14
|
+
/**
|
|
15
|
+
* 类型:static/dynamic
|
|
16
|
+
*/
|
|
17
|
+
kind: string;
|
|
18
|
+
/**
|
|
19
|
+
* 网络模式:did://;dns://domain?zone=&kind=A,AAAA,TXT,CNAME,NS,MX,SRV,CAA,SOA&text=&ttl=&provider=&pid=
|
|
20
|
+
*/
|
|
21
|
+
pattern: string;
|
|
22
|
+
/**
|
|
23
|
+
* 服务地址
|
|
24
|
+
*/
|
|
25
|
+
address: string;
|
|
26
|
+
/**
|
|
27
|
+
* 说明
|
|
28
|
+
*/
|
|
29
|
+
memo: string;
|
|
30
|
+
/**
|
|
31
|
+
* 优先等级
|
|
32
|
+
*/
|
|
33
|
+
rank: number;
|
|
34
|
+
/**
|
|
35
|
+
* 标签
|
|
36
|
+
*/
|
|
37
|
+
tags: string;
|
|
38
|
+
/**
|
|
39
|
+
* 过期时间
|
|
40
|
+
*/
|
|
41
|
+
expireAt?: Date;
|
|
42
|
+
/**
|
|
43
|
+
* 上行带宽Mbps
|
|
44
|
+
*/
|
|
45
|
+
upstream: number;
|
|
46
|
+
/**
|
|
47
|
+
* 下行带宽Mbps
|
|
48
|
+
*/
|
|
49
|
+
downstream: number;
|
|
50
|
+
/**
|
|
51
|
+
* 根证书
|
|
52
|
+
*/
|
|
53
|
+
hostRoot: string;
|
|
54
|
+
/**
|
|
55
|
+
* 证书
|
|
56
|
+
*/
|
|
57
|
+
hostCrt: string;
|
|
58
|
+
/**
|
|
59
|
+
* 私钥
|
|
60
|
+
*/
|
|
61
|
+
hostKey: string;
|
|
62
|
+
/**
|
|
63
|
+
* 对端根证书
|
|
64
|
+
*/
|
|
65
|
+
guestRoot: string;
|
|
66
|
+
/**
|
|
67
|
+
* JSON信息
|
|
68
|
+
*/
|
|
69
|
+
raw: string;
|
|
70
|
+
/**
|
|
71
|
+
* 状态
|
|
72
|
+
*/
|
|
73
|
+
status: number;
|
|
74
|
+
/**
|
|
75
|
+
* 创建时间
|
|
76
|
+
*/
|
|
77
|
+
createAt?: Date;
|
|
78
|
+
/**
|
|
79
|
+
* 更新时间
|
|
80
|
+
*/
|
|
81
|
+
updateAt?: Date;
|
|
82
|
+
/**
|
|
83
|
+
* 创建人
|
|
84
|
+
*/
|
|
85
|
+
createBy: string;
|
|
86
|
+
/**
|
|
87
|
+
* 更新人
|
|
88
|
+
*/
|
|
89
|
+
updateBy: string;
|
|
90
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare class DtxDefinition {
|
|
2
|
+
/**
|
|
3
|
+
*/
|
|
4
|
+
xid: string;
|
|
5
|
+
/**
|
|
6
|
+
*/
|
|
7
|
+
timeout: number;
|
|
8
|
+
/**
|
|
9
|
+
*/
|
|
10
|
+
schema: string;
|
|
11
|
+
/**
|
|
12
|
+
*/
|
|
13
|
+
flags: number;
|
|
14
|
+
}
|
|
15
|
+
export declare class DtxBranch {
|
|
16
|
+
/**
|
|
17
|
+
*/
|
|
18
|
+
xid: string;
|
|
19
|
+
/**
|
|
20
|
+
*/
|
|
21
|
+
schema: string;
|
|
22
|
+
/**
|
|
23
|
+
*/
|
|
24
|
+
grammar: string;
|
|
25
|
+
/**
|
|
26
|
+
*/
|
|
27
|
+
expr: string;
|
|
28
|
+
/**
|
|
29
|
+
*/
|
|
30
|
+
args: Record<string, any>;
|
|
31
|
+
/**
|
|
32
|
+
*/
|
|
33
|
+
flags: number;
|
|
34
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare class Script {
|
|
2
|
+
/**
|
|
3
|
+
* Script code
|
|
4
|
+
*/
|
|
5
|
+
code: string;
|
|
6
|
+
/**
|
|
7
|
+
* Script name
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* Script desc
|
|
12
|
+
*/
|
|
13
|
+
desc: string;
|
|
14
|
+
/**
|
|
15
|
+
* Script kind
|
|
16
|
+
*/
|
|
17
|
+
kind: string;
|
|
18
|
+
/**
|
|
19
|
+
* Script expression
|
|
20
|
+
*/
|
|
21
|
+
expr: string;
|
|
22
|
+
/**
|
|
23
|
+
* Script attachment
|
|
24
|
+
*/
|
|
25
|
+
attachment: Record<string, string>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class Triplet {
|
|
2
|
+
readonly code: number;
|
|
3
|
+
readonly text: string;
|
|
4
|
+
readonly color: string;
|
|
5
|
+
constructor(code: number, text: string, color: string);
|
|
6
|
+
}
|
|
7
|
+
export declare class States {
|
|
8
|
+
private readonly values;
|
|
9
|
+
constructor(values: Triplet[]);
|
|
10
|
+
from(status: number): Triplet;
|
|
11
|
+
asMap(): Map<string, Triplet>;
|
|
12
|
+
static readonly Route: States;
|
|
13
|
+
}
|