@firmer/mesh 0.0.7 → 0.0.8

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.
Files changed (50) hide show
  1. package/dist/mesh.js +7573 -6497
  2. package/dist/mesh.umd.cjs +8 -8
  3. package/dist/psi/builtin.d.ts +10 -11
  4. package/dist/psi/cache.d.ts +15 -5
  5. package/dist/psi/cipher.d.ts +27 -24
  6. package/dist/psi/cluster.d.ts +2 -0
  7. package/dist/psi/commerce.d.ts +4 -0
  8. package/dist/psi/cryptor.d.ts +5 -0
  9. package/dist/psi/daler.d.ts +42 -20
  10. package/dist/psi/datahouse.d.ts +13 -8
  11. package/dist/psi/devops.d.ts +25 -8
  12. package/dist/psi/endpoint.d.ts +2 -2
  13. package/dist/psi/firewall.d.ts +8 -4
  14. package/dist/psi/kms.d.ts +40 -6
  15. package/dist/psi/kv.d.ts +6 -1
  16. package/dist/psi/licenser.d.ts +5 -0
  17. package/dist/psi/locker.d.ts +4 -0
  18. package/dist/psi/network.d.ts +16 -5
  19. package/dist/psi/pipeline.d.ts +7 -9
  20. package/dist/psi/publisher.d.ts +4 -2
  21. package/dist/psi/registry.d.ts +14 -5
  22. package/dist/psi/subscriber.d.ts +1 -3
  23. package/dist/psi/tokenizer.d.ts +7 -2
  24. package/dist/psi/vm.d.ts +6 -0
  25. package/dist/tool/addrs.d.ts +2 -0
  26. package/dist/tool/tool.d.ts +3 -2
  27. package/dist/types/builtin.d.ts +28 -0
  28. package/dist/types/cipher.d.ts +27 -0
  29. package/dist/types/daler.d.ts +97 -8
  30. package/dist/types/devops.d.ts +36 -22
  31. package/dist/types/document.d.ts +11 -0
  32. package/dist/types/entity.d.ts +15 -0
  33. package/dist/types/environ.d.ts +15 -0
  34. package/dist/types/event.d.ts +16 -0
  35. package/dist/types/firewall.d.ts +30 -1
  36. package/dist/types/keys.d.ts +92 -0
  37. package/dist/types/license.d.ts +26 -0
  38. package/dist/types/oauth2.d.ts +36 -0
  39. package/dist/types/payload.d.ts +6 -0
  40. package/dist/types/principal.d.ts +8 -0
  41. package/dist/types/registration.d.ts +97 -0
  42. package/dist/types/route.d.ts +52 -0
  43. package/dist/types/savepoint.d.ts +10 -0
  44. package/dist/types/schema.d.ts +48 -0
  45. package/dist/types/script.d.ts +14 -0
  46. package/dist/types/status.d.ts +3 -0
  47. package/dist/types/transport.d.ts +18 -0
  48. package/dist/types/version.d.ts +2 -0
  49. package/dist/types/workflow.d.ts +43 -0
  50. package/package.json +7 -7
@@ -1,114 +1,211 @@
1
1
  export declare class URC {
2
2
  /**
3
+ *
3
4
  */
4
5
  version: string;
5
6
  /**
7
+ *
6
8
  */
7
9
  proto: string;
8
10
  /**
11
+ *
9
12
  */
10
13
  codec: string;
11
14
  /**
15
+ *
12
16
  */
13
17
  mdc: string;
14
18
  /**
19
+ *
15
20
  */
16
21
  zone: string;
17
22
  /**
23
+ *
18
24
  */
19
25
  cluster: string;
20
26
  /**
27
+ *
21
28
  */
22
29
  cell: string;
23
30
  /**
31
+ *
24
32
  */
25
33
  group: string;
26
34
  /**
35
+ *
27
36
  */
28
37
  address: string;
29
38
  }
30
39
  export declare class Reference extends URC {
31
40
  /**
41
+ *
32
42
  */
33
43
  urn: string;
34
44
  /**
45
+ *
35
46
  */
36
47
  namespace: string;
37
48
  /**
49
+ *
38
50
  */
39
51
  name: string;
40
52
  /**
53
+ * Service flag 1 asyncable 2 encrypt 4 communal
41
54
  * Service flag 1 asyncable 2 encrypt 4 communal
42
55
  */
43
56
  flags: number;
44
57
  /**
58
+ *
45
59
  */
46
60
  timeout: number;
47
61
  /**
62
+ *
48
63
  */
49
64
  retries: number;
50
65
  }
51
66
  export declare class Service extends URC {
52
67
  /**
68
+ * URN is service urn
69
+ *
53
70
  */
54
71
  urn: string;
55
72
  /**
73
+ * Namespace Service topic
74
+ *
56
75
  */
57
76
  namespace: string;
58
77
  /**
78
+ *
59
79
  */
60
80
  name: string;
61
81
  /**
82
+ * Service flag 1 asyncable 2 encrypt 4 communal 8
62
83
  * Service flag 1 asyncable 2 encrypt 4 communal 8
63
84
  */
64
85
  flags: number;
65
86
  /**
87
+ *
66
88
  */
67
89
  timeout: number;
68
90
  /**
91
+ *
69
92
  */
70
93
  retries: number;
71
94
  /**
95
+ *
72
96
  */
73
97
  sets: string;
74
98
  /**
99
+ *
75
100
  */
76
101
  kind: string;
77
102
  /**
103
+ *
78
104
  */
79
105
  lang: string;
80
106
  /**
107
+ * Attrs Service arguments.
108
+ *
81
109
  */
82
110
  attrs: Record<string, string>;
83
111
  }
84
112
  export declare class Metadata {
85
113
  /**
114
+ * 服务引用清单
115
+ * 服务引用清单
86
116
  */
87
117
  references: Reference[];
88
118
  /**
119
+ * 服务提供清单
120
+ * 服务提供清单
89
121
  */
90
122
  services: Service[];
91
123
  }
92
124
  export declare class Registration<T> {
93
125
  /**
126
+ * 实例ID
127
+ * 实例ID
94
128
  */
95
129
  instanceId: string;
96
130
  /**
131
+ * 名称
132
+ * 名称
97
133
  */
98
134
  name: string;
99
135
  /**
136
+ * 类型
137
+ * 类型
100
138
  */
101
139
  kind: string;
102
140
  /**
141
+ * 地址
142
+ * 地址
103
143
  */
104
144
  address: string;
105
145
  /**
146
+ * 注册内容明细
147
+ * 注册内容明细
106
148
  */
107
149
  content?: T;
108
150
  /**
151
+ * 注册时间
152
+ * 注册时间
109
153
  */
110
154
  timestamp: number;
111
155
  /**
156
+ * 补充信息
157
+ * 补充信息
158
+ */
159
+ attachments: Record<string, string>;
160
+ }
161
+ export declare class Appdata {
162
+ /**
163
+ * 应用名
164
+ * 应用名
165
+ */
166
+ name: string;
167
+ /**
168
+ * 应用Icon
169
+ * 应用Icon
170
+ */
171
+ icon: string;
172
+ /**
173
+ * 应用备注
174
+ * 应用备注
175
+ */
176
+ memo: string;
177
+ /**
178
+ * 应用Author
179
+ * 应用Author
180
+ */
181
+ author: string;
182
+ /**
183
+ * 标记
184
+ * 标记
185
+ */
186
+ flags: number;
187
+ /**
188
+ * 开发语言
189
+ * 开发语言
190
+ */
191
+ lang: string;
192
+ /**
193
+ *
194
+ */
195
+ instanceIds: string[];
196
+ /**
197
+ * 提供的服务类型
198
+ * 提供的服务类型
199
+ */
200
+ kinds: string[];
201
+ /**
202
+ * 服务地址
203
+ * 服务地址
204
+ */
205
+ addrs: string[];
206
+ /**
207
+ * 扩展信息
208
+ * 扩展信息
112
209
  */
113
210
  attachments: Record<string, string>;
114
211
  }
@@ -1,219 +1,271 @@
1
1
  export declare class Route {
2
2
  /**
3
+ * 源头编号
3
4
  * 源头编号
4
5
  */
5
6
  sid: string;
6
7
  /**
8
+ * 目标编号
7
9
  * 目标编号
8
10
  */
9
11
  did: string;
10
12
  /**
13
+ * 名称
11
14
  * 名称
12
15
  */
13
16
  name: string;
14
17
  /**
18
+ * 类型:static/dynamic
15
19
  * 类型:static/dynamic
16
20
  */
17
21
  kind: string;
18
22
  /**
23
+ * 网络模式:did://;dns://domain?zone=&kind=A,AAAA,TXT,CNAME,NS,MX,SRV,CAA,SOA&text=&ttl=&provider=&pid=
19
24
  * 网络模式:did://;dns://domain?zone=&kind=A,AAAA,TXT,CNAME,NS,MX,SRV,CAA,SOA&text=&ttl=&provider=&pid=
20
25
  */
21
26
  pattern: string;
22
27
  /**
28
+ * 服务地址
23
29
  * 服务地址
24
30
  */
25
31
  address: string;
26
32
  /**
33
+ * 说明
27
34
  * 说明
28
35
  */
29
36
  memo: string;
30
37
  /**
38
+ * 优先等级
31
39
  * 优先等级
32
40
  */
33
41
  rank: number;
34
42
  /**
43
+ * 标签
35
44
  * 标签
36
45
  */
37
46
  tags: string;
38
47
  /**
48
+ * 过期时间
39
49
  * 过期时间
40
50
  */
41
51
  expireAt?: Date;
42
52
  /**
53
+ * 上行带宽Mbps
43
54
  * 上行带宽Mbps
44
55
  */
45
56
  upstream: number;
46
57
  /**
58
+ * 下行带宽Mbps
47
59
  * 下行带宽Mbps
48
60
  */
49
61
  downstream: number;
50
62
  /**
63
+ * 请求次数
51
64
  * 请求次数
52
65
  */
53
66
  requests: number;
54
67
  /**
68
+ * 根证书
55
69
  * 根证书
56
70
  */
57
71
  hostRoot: string;
58
72
  /**
73
+ * 证书
59
74
  * 证书
60
75
  */
61
76
  hostCrt: string;
62
77
  /**
78
+ * 私钥
63
79
  * 私钥
64
80
  */
65
81
  hostKey: string;
66
82
  /**
83
+ * 对端根证书
67
84
  * 对端根证书
68
85
  */
69
86
  guestRoot: string;
70
87
  /**
88
+ * Signer algorithm provider. SM2 or others
71
89
  * Signer algorithm provider. SM2 or others
72
90
  */
73
91
  sap: string;
74
92
  /**
93
+ * Skip TLS verification
75
94
  * Skip TLS verification
76
95
  */
77
96
  skip: boolean;
78
97
  /**
98
+ * JSON信息
79
99
  * JSON信息
80
100
  */
81
101
  raw: string;
82
102
  /**
103
+ * 状态
83
104
  * 状态
84
105
  */
85
106
  status: number;
86
107
  /**
108
+ * 创建时间
87
109
  * 创建时间
88
110
  */
89
111
  createAt?: Date;
90
112
  /**
113
+ * 更新时间
91
114
  * 更新时间
92
115
  */
93
116
  updateAt?: Date;
94
117
  /**
118
+ * 创建人
95
119
  * 创建人
96
120
  */
97
121
  createBy: string;
98
122
  /**
123
+ * 更新人
99
124
  * 更新人
100
125
  */
101
126
  updateBy: string;
102
127
  }
103
128
  export declare class DynamicOption {
104
129
  /**
130
+ * Signer algorithm provider. SM2 or others
105
131
  * Signer algorithm provider. SM2 or others
106
132
  */
107
133
  sap: string;
108
134
  /**
135
+ * Route certificate
109
136
  * Route certificate
110
137
  */
111
138
  crt: string;
112
139
  /**
140
+ * Route private key
113
141
  * Route private key
114
142
  */
115
143
  key: string;
116
144
  /**
145
+ * Route CA certificates
117
146
  * Route CA certificates
118
147
  */
119
148
  cas: string[];
120
149
  /**
150
+ * Route service SNI
121
151
  * Route service SNI
122
152
  */
123
153
  sni: string;
124
154
  /**
155
+ * Skip TLS verification
125
156
  * Skip TLS verification
126
157
  */
127
158
  skip: boolean;
128
159
  }
129
160
  export declare class DynamicRoute {
130
161
  /**
162
+ * Route name
131
163
  * Route name
132
164
  */
133
165
  name: string;
134
166
  /**
167
+ * Route matcher
135
168
  * Route matcher
136
169
  */
137
170
  matcher: string;
138
171
  /**
172
+ * Route priority
139
173
  * Route priority
140
174
  */
141
175
  priority: number;
142
176
  /**
177
+ * Route backend
143
178
  * Route backend
144
179
  */
145
180
  services: string[];
146
181
  /**
182
+ * Route filters
147
183
  * Route filters
148
184
  */
149
185
  filters: string[];
150
186
  /**
187
+ * Route proxy
151
188
  * Route proxy
152
189
  */
153
190
  proxy: string;
154
191
  /**
192
+ * Route option
155
193
  * Route option
156
194
  */
157
195
  option: DynamicOption;
158
196
  }
159
197
  export declare class DynamicServer {
160
198
  /**
199
+ * Route name
161
200
  * Route name
162
201
  */
163
202
  name: string;
164
203
  /**
204
+ * Server kind, Reverse/Forward/TCPReverse/TCPForward
165
205
  * Server kind, Reverse/Forward/TCPReverse/TCPForward
166
206
  */
167
207
  kind: string;
168
208
  /**
209
+ * Route listen address, e.g.
169
210
  * Route listen address, e.g.
170
211
  */
171
212
  listen: string;
172
213
  /**
214
+ * Route rules
173
215
  * Route rules
174
216
  */
175
217
  routes: DynamicRoute[];
176
218
  /**
219
+ * Route option
177
220
  * Route option
178
221
  */
179
222
  option: DynamicOption;
180
223
  }
181
224
  export declare class Matcher {
182
225
  /**
226
+ * 匹配表达式
183
227
  * 匹配表达式
184
228
  */
185
229
  expr: string;
186
230
  /**
231
+ * 匹配值
187
232
  * 匹配值
188
233
  */
189
234
  value: string;
190
235
  }
191
236
  export declare class Netlist {
192
237
  /**
238
+ * 名称
193
239
  * 名称
194
240
  */
195
241
  name: string;
196
242
  /**
243
+ * 类型:whitelist/blacklist
197
244
  * 类型:whitelist/blacklist
198
245
  */
199
246
  kind: string;
200
247
  /**
248
+ * 协议:L4/L7
201
249
  * 协议:L4/L7
202
250
  */
203
251
  layer: string;
204
252
  /**
253
+ * 优先级
205
254
  * 优先级
206
255
  */
207
256
  priority: number;
208
257
  /**
258
+ * 状态 1启用 2禁用
209
259
  * 状态 1启用 2禁用
210
260
  */
211
261
  status: number;
212
262
  /**
263
+ * 说明
213
264
  * 说明
214
265
  */
215
266
  memo: string;
216
267
  /**
268
+ * 匹配规则
217
269
  * 匹配规则
218
270
  */
219
271
  matchers: Matcher[];
@@ -1,34 +1,44 @@
1
1
  export declare class DtxDefinition {
2
2
  /**
3
+ *
3
4
  */
4
5
  xid: string;
5
6
  /**
7
+ *
6
8
  */
7
9
  timeout: number;
8
10
  /**
11
+ *
9
12
  */
10
13
  schema: string;
11
14
  /**
15
+ *
12
16
  */
13
17
  flags: number;
14
18
  }
15
19
  export declare class DtxBranch {
16
20
  /**
21
+ *
17
22
  */
18
23
  xid: string;
19
24
  /**
25
+ *
20
26
  */
21
27
  schema: string;
22
28
  /**
29
+ *
23
30
  */
24
31
  grammar: string;
25
32
  /**
33
+ *
26
34
  */
27
35
  expr: string;
28
36
  /**
37
+ *
29
38
  */
30
39
  args: Record<string, any>;
31
40
  /**
41
+ *
32
42
  */
33
43
  flags: number;
34
44
  }
@@ -1,158 +1,206 @@
1
1
  export declare class ParameterMirror {
2
2
  /**
3
+ *
3
4
  */
4
5
  name: string;
5
6
  /**
7
+ *
6
8
  */
7
9
  macros: Record<string, Record<string, string>>;
8
10
  /**
11
+ *
9
12
  */
10
13
  comments: string[];
11
14
  /**
15
+ *
12
16
  */
13
17
  kind: string;
14
18
  /**
19
+ *
15
20
  */
16
21
  value: string;
17
22
  /**
23
+ *
18
24
  */
19
25
  flags: number;
20
26
  /**
27
+ *
21
28
  */
22
29
  usage: string;
23
30
  }
24
31
  export declare class ReturnMirror {
25
32
  /**
33
+ *
26
34
  */
27
35
  name: string;
28
36
  /**
37
+ *
29
38
  */
30
39
  comments: string[];
31
40
  /**
41
+ *
32
42
  */
33
43
  kind: string;
34
44
  /**
45
+ *
35
46
  */
36
47
  value: string;
37
48
  /**
49
+ *
38
50
  */
39
51
  flags: number;
40
52
  /**
53
+ *
41
54
  */
42
55
  usage: string;
43
56
  }
44
57
  export declare class ThrowableMirror {
45
58
  /**
59
+ *
46
60
  */
47
61
  name: string;
48
62
  /**
63
+ *
49
64
  */
50
65
  comments: string[];
51
66
  /**
67
+ *
52
68
  */
53
69
  kind: string;
54
70
  }
55
71
  export declare class VariableMirror {
56
72
  /**
73
+ *
57
74
  */
58
75
  name: string;
59
76
  /**
77
+ *
60
78
  */
61
79
  macros: Record<string, Record<string, string>>;
62
80
  /**
81
+ *
63
82
  */
64
83
  comments: string[];
65
84
  /**
85
+ *
66
86
  */
67
87
  modifier: number;
68
88
  /**
89
+ *
69
90
  */
70
91
  kind: string;
71
92
  /**
93
+ *
72
94
  */
73
95
  value: string;
74
96
  /**
97
+ *
75
98
  */
76
99
  flags: number;
77
100
  /**
101
+ *
78
102
  */
79
103
  usage: string;
80
104
  }
81
105
  export declare class MethodMirror {
82
106
  /**
107
+ *
83
108
  */
84
109
  name: string;
85
110
  /**
111
+ *
86
112
  */
87
113
  macros: Record<string, Record<string, string>>;
88
114
  /**
115
+ *
89
116
  */
90
117
  comments: string[];
91
118
  /**
119
+ *
92
120
  */
93
121
  modifier: number;
94
122
  /**
123
+ *
95
124
  */
96
125
  parameters: ParameterMirror[];
97
126
  /**
127
+ *
98
128
  */
99
129
  returns: ReturnMirror[];
100
130
  /**
131
+ *
101
132
  */
102
133
  causes: ThrowableMirror[];
103
134
  }
104
135
  export declare class KindMirror {
105
136
  /**
137
+ *
106
138
  */
107
139
  name: string;
108
140
  /**
141
+ *
109
142
  */
110
143
  macros: Record<string, Record<string, string>>;
111
144
  /**
145
+ *
112
146
  */
113
147
  comments: string[];
114
148
  /**
149
+ *
115
150
  */
116
151
  modifier: number;
117
152
  /**
153
+ *
118
154
  */
119
155
  variables: VariableMirror[];
120
156
  /**
157
+ *
121
158
  */
122
159
  methods: MethodMirror[];
123
160
  /**
161
+ *
124
162
  */
125
163
  supers: string[];
126
164
  /**
165
+ *
127
166
  */
128
167
  traits: string[];
129
168
  /**
169
+ *
130
170
  */
131
171
  signature: string;
132
172
  }
133
173
  export declare class FileMirror {
134
174
  /**
175
+ *
135
176
  */
136
177
  name: string;
137
178
  /**
179
+ *
138
180
  */
139
181
  pkg: string;
140
182
  /**
183
+ *
141
184
  */
142
185
  path: string;
143
186
  /**
187
+ *
144
188
  */
145
189
  imports: Record<string, string>;
146
190
  /**
191
+ *
147
192
  */
148
193
  kinds: KindMirror[];
149
194
  /**
195
+ *
150
196
  */
151
197
  variables: VariableMirror[];
152
198
  /**
199
+ *
153
200
  */
154
201
  methods: MethodMirror[];
155
202
  /**
203
+ *
156
204
  */
157
205
  set: Record<string, string>;
158
206
  }