@firmer/mesh 0.0.6 → 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 (60) hide show
  1. package/dist/cause/errors.d.ts +5 -1
  2. package/dist/codec/json.d.ts +2 -2
  3. package/dist/http/consumer.d.ts +2 -1
  4. package/dist/index.d.ts +13 -5
  5. package/dist/mesh.js +9246 -7004
  6. package/dist/mesh.umd.cjs +8 -8
  7. package/dist/mpc/hook.d.ts +11 -11
  8. package/dist/mpc/reference.d.ts +1 -0
  9. package/dist/mpc/urn.d.ts +3 -1
  10. package/dist/psi/builtin.d.ts +10 -11
  11. package/dist/psi/cache.d.ts +15 -5
  12. package/dist/psi/cipher.d.ts +27 -24
  13. package/dist/psi/cluster.d.ts +2 -0
  14. package/dist/psi/commerce.d.ts +4 -0
  15. package/dist/psi/cryptor.d.ts +5 -0
  16. package/dist/psi/daler.d.ts +42 -20
  17. package/dist/psi/datahouse.d.ts +13 -8
  18. package/dist/psi/devops.d.ts +49 -0
  19. package/dist/psi/endpoint.d.ts +2 -2
  20. package/dist/psi/firewall.d.ts +24 -0
  21. package/dist/psi/index.d.ts +3 -1
  22. package/dist/psi/kms.d.ts +40 -6
  23. package/dist/psi/kv.d.ts +6 -1
  24. package/dist/psi/licenser.d.ts +5 -0
  25. package/dist/psi/locker.d.ts +4 -0
  26. package/dist/psi/network.d.ts +20 -5
  27. package/dist/psi/pipeline.d.ts +7 -9
  28. package/dist/psi/publisher.d.ts +4 -2
  29. package/dist/psi/registry.d.ts +14 -5
  30. package/dist/psi/subscriber.d.ts +1 -3
  31. package/dist/psi/tokenizer.d.ts +17 -8
  32. package/dist/psi/vm.d.ts +34 -0
  33. package/dist/tool/addrs.d.ts +2 -0
  34. package/dist/tool/tool.d.ts +3 -2
  35. package/dist/types/builtin.d.ts +28 -0
  36. package/dist/types/cipher.d.ts +27 -0
  37. package/dist/types/daler.d.ts +97 -8
  38. package/dist/types/devops.d.ts +114 -0
  39. package/dist/types/document.d.ts +11 -0
  40. package/dist/types/entity.d.ts +15 -0
  41. package/dist/types/environ.d.ts +19 -0
  42. package/dist/types/event.d.ts +16 -0
  43. package/dist/types/firewall.d.ts +127 -0
  44. package/dist/types/index.d.ts +3 -0
  45. package/dist/types/keys.d.ts +92 -0
  46. package/dist/types/license.d.ts +26 -0
  47. package/dist/types/oauth2.d.ts +64 -10
  48. package/dist/types/payload.d.ts +6 -0
  49. package/dist/types/principal.d.ts +8 -0
  50. package/dist/types/registration.d.ts +97 -0
  51. package/dist/types/route.d.ts +52 -0
  52. package/dist/types/savepoint.d.ts +10 -0
  53. package/dist/types/schema.d.ts +206 -0
  54. package/dist/types/script.d.ts +56 -9
  55. package/dist/types/status.d.ts +3 -0
  56. package/dist/types/transport.d.ts +18 -0
  57. package/dist/types/version.d.ts +2 -0
  58. package/dist/types/workflow.d.ts +43 -0
  59. package/package.json +9 -9
  60. package/dist/psi/evaluator.d.ts +0 -20
@@ -1,35 +1,43 @@
1
1
  export declare class Principal {
2
2
  /**
3
+ * idc
3
4
  * idc
4
5
  */
5
6
  id: string;
6
7
  }
7
8
  export declare class Location extends Principal {
8
9
  /**
10
+ * ip
9
11
  * ip
10
12
  */
11
13
  ip: string;
12
14
  /**
15
+ * port
13
16
  * port
14
17
  */
15
18
  port: string;
16
19
  /**
20
+ * host
17
21
  * host
18
22
  */
19
23
  host: string;
20
24
  /**
25
+ * name
21
26
  * name
22
27
  */
23
28
  name: string;
24
29
  }
25
30
  export declare class Institution {
26
31
  /**
32
+ *
27
33
  */
28
34
  nodeId: string;
29
35
  /**
36
+ *
30
37
  */
31
38
  instId: string;
32
39
  /**
40
+ *
33
41
  */
34
42
  instName: string;
35
43
  }
@@ -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
  }