@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,167 +1,256 @@
1
1
  export declare class DalerSource {
2
2
  /**
3
+ * Datasource ID
3
4
  * Datasource ID
4
5
  */
5
6
  id: string;
6
7
  /**
8
+ * Datasource name
7
9
  * Datasource name
8
10
  */
9
11
  name: string;
10
12
  /**
13
+ * 数据结构模态:graph/relation/kv/cache/object
11
14
  * 数据结构模态:graph/relation/kv/cache/object
12
15
  */
13
16
  modal: string;
14
17
  /**
18
+ * Datasource protocol
15
19
  * Datasource protocol
16
20
  */
17
21
  proto: string;
18
22
  /**
23
+ * Datasource URL
19
24
  * Datasource URL
20
25
  */
21
26
  url: string;
22
27
  /**
28
+ * Datasource memo
23
29
  * Datasource memo
24
30
  */
25
31
  memo: string;
26
32
  /**
33
+ * 状态
27
34
  * 状态
28
35
  */
29
36
  status: number;
30
37
  }
31
38
  export declare class DalerInstance extends DalerSource {
32
39
  /**
40
+ * Is master or slave
33
41
  * Is master or slave
34
42
  */
35
43
  role: string;
36
44
  /**
45
+ * Read wight
37
46
  * Read wight
38
47
  */
39
48
  rw: number;
40
49
  /**
50
+ * Write wight
41
51
  * Write wight
42
52
  */
43
53
  ww: number;
44
54
  /**
55
+ * Failover policy
45
56
  * Failover policy
46
57
  */
47
58
  failover: boolean;
48
59
  }
49
60
  export declare class DalerCluster {
50
61
  /**
62
+ * Data Cluster ID
51
63
  * Data Cluster ID
52
64
  */
53
65
  id: string;
54
66
  /**
67
+ * Data Cluster name
55
68
  * Data Cluster name
56
69
  */
57
70
  name: string;
58
71
  /**
72
+ * 数据结构模态:graph/relation/kv/cache/object
59
73
  * 数据结构模态:graph/relation/kv/cache/object
60
74
  */
61
75
  modal: string;
62
76
  /**
77
+ * Max keepalive duration
63
78
  * Max keepalive duration
64
79
  */
65
80
  keepalive: number;
66
81
  /**
82
+ * Max retry times
67
83
  * Max retry times
68
84
  */
69
85
  retries: number;
70
86
  /**
87
+ * ReadWrite mode
71
88
  * ReadWrite mode
72
89
  */
73
90
  rwmode: number;
74
91
  /**
92
+ * Failover policy
75
93
  * Failover policy
76
94
  */
77
95
  failover: boolean;
78
96
  /**
97
+ * Instances
79
98
  * Instances
80
99
  */
81
100
  instances: DalerInstance[];
82
101
  /**
102
+ * 状态
83
103
  * 状态
84
104
  */
85
105
  status: number;
86
106
  /**
107
+ * Datasource URL
87
108
  * Datasource URL
88
109
  */
89
110
  url: string;
90
111
  /**
112
+ * Datasource protocol
91
113
  * Datasource protocol
92
114
  */
93
115
  proto: string;
94
116
  /**
117
+ * 全局函数
95
118
  * 全局函数
96
119
  */
97
120
  gfs: string;
98
121
  }
99
122
  export declare class DalerTest {
100
123
  /**
124
+ * ID
101
125
  * ID
102
126
  */
103
127
  id: string;
104
128
  /**
129
+ * Expression
105
130
  * Expression
106
131
  */
107
132
  expr: string;
108
133
  /**
134
+ * Database name
109
135
  * Database name
110
136
  */
111
137
  db: string;
112
138
  }
113
139
  export declare class DalerDTSJob {
114
140
  /**
115
- * Datasource ID
141
+ * ID
142
+ * ID
116
143
  */
117
144
  id: string;
118
145
  /**
119
- * Datasource name
146
+ * 名称
147
+ * 名称
120
148
  */
121
149
  name: string;
122
150
  /**
123
- * Datasource memo
151
+ * 同步类型snapshot/cdc
152
+ * 同步类型snapshot/cdc
124
153
  */
125
- memo: string;
154
+ kind: string;
155
+ /**
156
+ * 数据结构模态:graph/relation/kv/cache/object/document/mq
157
+ * 数据结构模态:graph/relation/kv/cache/object/document/mq
158
+ */
159
+ modal: string;
160
+ /**
161
+ * 源头数据源ID
162
+ * 源头数据源ID
163
+ */
164
+ sid: string;
165
+ /**
166
+ * 目标数据源ID
167
+ * 目标数据源ID
168
+ */
169
+ did: string;
126
170
  /**
127
- * Nodes
171
+ * 源头数据源名称
172
+ * 源头数据源名称
128
173
  */
129
- nodes: string[];
174
+ sname: string;
130
175
  /**
131
- * Sides
176
+ * 目标数据源名称
177
+ * 目标数据源名称
132
178
  */
133
- sides: Record<string, string>;
179
+ dname: string;
180
+ /**
181
+ * 同步明细
182
+ * 同步明细
183
+ */
184
+ abc: string;
185
+ /**
186
+ * 调度DAG
187
+ * 调度DAG
188
+ */
189
+ dag: string;
190
+ /**
191
+ * JSON信息
192
+ * JSON信息
193
+ */
194
+ raw: string;
134
195
  /**
196
+ * 状态
135
197
  * 状态
136
198
  */
137
199
  status: number;
200
+ /**
201
+ * 创建时间
202
+ * 创建时间
203
+ */
204
+ createAt?: Date;
205
+ /**
206
+ * 更新时间
207
+ * 更新时间
208
+ */
209
+ updateAt?: Date;
210
+ /**
211
+ * 创建人
212
+ * 创建人
213
+ */
214
+ createBy: string;
215
+ /**
216
+ * 更新人
217
+ * 更新人
218
+ */
219
+ updateBy: string;
138
220
  }
139
221
  export declare class DalerBinlog {
140
222
  /**
223
+ * Binlog ID
141
224
  * Binlog ID
142
225
  */
143
226
  id: string;
144
227
  /**
228
+ * Binlog name
145
229
  * Binlog name
146
230
  */
147
231
  name: string;
148
232
  /**
233
+ * 数据结构模态:graph/relation/kv/cache/object
149
234
  * 数据结构模态:graph/relation/kv/cache/object
150
235
  */
151
236
  modal: string;
152
237
  /**
238
+ * Binlog path
153
239
  * Binlog path
154
240
  */
155
241
  path: string;
156
242
  /**
243
+ * Binlog size in bytes
157
244
  * Binlog size in bytes
158
245
  */
159
246
  size: number;
160
247
  /**
248
+ * Binlog lines
161
249
  * Binlog lines
162
250
  */
163
251
  lines: number;
164
252
  /**
253
+ * Binlog create time
165
254
  * Binlog create time
166
255
  */
167
256
  createAt?: Date;
@@ -1,99 +1,113 @@
1
1
  export declare class Settings {
2
2
  /**
3
+ * 名称
3
4
  * 名称
4
5
  */
5
6
  name: string;
6
7
  /**
8
+ * 图标
7
9
  * 图标
8
10
  */
9
11
  icon: string;
10
12
  /**
13
+ * 版本
11
14
  * 版本
12
15
  */
13
16
  version: string;
14
17
  /**
18
+ * 说明
15
19
  * 说明
16
20
  */
17
21
  memo: string;
18
22
  /**
23
+ * 扩展
19
24
  * 扩展
20
25
  */
21
26
  raw: Record<string, string>;
22
27
  }
23
28
  export declare class Replica {
24
29
  /**
30
+ * 主键,任务编码
25
31
  * 主键,任务编码
26
32
  */
27
33
  code: string;
28
34
  /**
35
+ * 任务名称
29
36
  * 任务名称
30
37
  */
31
38
  name: string;
32
39
  /**
40
+ * 场景:backup/restore/migrate/sync
33
41
  * 场景:backup/restore/migrate/sync
34
42
  */
35
43
  scene: string;
36
44
  /**
45
+ * 模式:full/incremental
37
46
  * 模式:full/incremental
38
47
  */
39
48
  mode: string;
40
49
  /**
41
- * 调度:cron/once
50
+ * 调度:cron 表达式或 once
51
+ * 调度:cron 表达式或 once
42
52
  */
43
53
  plan: string;
44
54
  /**
45
- * 说明
55
+ * 应用名
56
+ * 应用名
46
57
  */
47
- memo: string;
58
+ appset: string;
48
59
  /**
49
- * 源类型
60
+ * 说明
61
+ * 说明
50
62
  */
51
- srcKind: string;
63
+ memo: string;
52
64
  /**
65
+ * 源地址
53
66
  * 源地址
54
67
  */
55
- srcURI: string;
56
- /**
57
- * 源选项
58
- */
59
- srcOption: string;
60
- /**
61
- * 目标类型
62
- */
63
- dstKind: string;
68
+ srcUri: string;
64
69
  /**
70
+ * 目标地址
65
71
  * 目标地址
66
72
  */
67
- dstURI: string;
73
+ dstUri: string;
68
74
  /**
69
- * 目标选项
75
+ * 备份数据
76
+ * 备份数据
70
77
  */
71
- dstOption: string;
78
+ raw: string;
72
79
  /**
73
- * 最近一次执行结果
80
+ * 最近一次执行数据
81
+ * 最近一次执行数据
74
82
  */
75
83
  last: string;
76
84
  /**
77
- * 状态
85
+ * 备份数据大小
86
+ * 备份数据大小
78
87
  */
79
- status: number;
88
+ size: number;
80
89
  /**
81
- * 原始配置
90
+ * 状态,业务自定义
91
+ * 状态,业务自定义
82
92
  */
83
- raw: string;
93
+ status: number;
84
94
  /**
95
+ * 创建时间
85
96
  * 创建时间
86
97
  */
87
98
  createAt?: Date;
88
99
  /**
100
+ * 更新时间
89
101
  * 更新时间
90
102
  */
91
103
  updateAt?: Date;
92
104
  /**
105
+ * 创建人
93
106
  * 创建人
94
107
  */
95
108
  createBy: string;
96
109
  /**
110
+ * 更新人
97
111
  * 更新人
98
112
  */
99
113
  updateBy: string;
@@ -1,34 +1,45 @@
1
1
  export declare class Document {
2
2
  /**
3
+ *
3
4
  */
4
5
  metadata: Record<string, string>;
5
6
  /**
7
+ *
6
8
  */
7
9
  content: string;
8
10
  /**
11
+ *
9
12
  */
10
13
  timestamp: number;
11
14
  }
12
15
  export declare class DocumentMetadata {
13
16
  /**
17
+ *
14
18
  */
15
19
  queries: Record<string, string>;
16
20
  /**
21
+ *
17
22
  */
18
23
  start: number;
19
24
  /**
25
+ *
20
26
  */
21
27
  end: number;
22
28
  /**
29
+ *
23
30
  */
24
31
  limit: number;
25
32
  /**
33
+ *
26
34
  */
27
35
  step: string;
28
36
  /**
37
+ *
29
38
  */
30
39
  direction: string;
31
40
  /**
41
+ * across node read
42
+ *
32
43
  */
33
44
  routeKey: string;
34
45
  }
@@ -1,59 +1,74 @@
1
1
  export declare class Body {
2
2
  /**
3
+ *
3
4
  */
4
5
  codec: string;
5
6
  /**
7
+ *
6
8
  */
7
9
  schema: string;
8
10
  /**
11
+ *
9
12
  */
10
13
  buffer: Uint8Array;
11
14
  }
12
15
  export declare class CacheBody {
13
16
  /**
17
+ * Cache version
14
18
  * Cache version
15
19
  */
16
20
  version: string;
17
21
  /**
22
+ * Cache entity
18
23
  * Cache entity
19
24
  */
20
25
  entity: Body;
21
26
  /**
27
+ * Cache timestamp
22
28
  * Cache timestamp
23
29
  */
24
30
  timestamp: number;
25
31
  /**
32
+ * Cache expired duration
26
33
  * Cache expired duration
27
34
  */
28
35
  duration: number;
29
36
  /**
37
+ * Cache key
30
38
  * Cache key
31
39
  */
32
40
  key: string;
33
41
  }
34
42
  export declare class Entry {
35
43
  /**
44
+ *
36
45
  */
37
46
  key: string;
38
47
  /**
48
+ *
39
49
  */
40
50
  value: Body;
41
51
  /**
52
+ *
42
53
  */
43
54
  updateAt?: Date;
44
55
  }
45
56
  export declare class FileEntry {
46
57
  /**
58
+ *
47
59
  */
48
60
  mno: string;
49
61
  /**
62
+ * 0 文件/1 目录
50
63
  * 0 文件/1 目录
51
64
  */
52
65
  kind: string;
53
66
  /**
67
+ *
54
68
  */
55
69
  mime: Uint8Array;
56
70
  /**
71
+ *
57
72
  */
58
73
  text: string;
59
74
  }
@@ -1,63 +1,78 @@
1
1
  export declare class Lattice {
2
2
  /**
3
+ * Zone
3
4
  * Zone
4
5
  */
5
6
  zone: string;
6
7
  /**
8
+ * Cluster
7
9
  * Cluster
8
10
  */
9
11
  cluster: string;
10
12
  /**
13
+ * Cell
11
14
  * Cell
12
15
  */
13
16
  cell: string;
14
17
  /**
18
+ * Group
15
19
  * Group
16
20
  */
17
21
  group: string;
18
22
  /**
23
+ * Address
19
24
  * Address
20
25
  */
21
26
  address: string;
22
27
  }
23
28
  export declare class Environ {
24
29
  /**
30
+ * 数据中心编号
25
31
  * 数据中心编号
26
32
  */
27
33
  mdc: string;
28
34
  /**
35
+ * 版本
29
36
  * 版本
30
37
  */
31
38
  version: string;
32
39
  /**
40
+ * 名称
33
41
  * 名称
34
42
  */
35
43
  name: string;
36
44
  /**
45
+ * 数据中心根证书
37
46
  * 数据中心根证书
38
47
  */
39
48
  crt: string;
40
49
  /**
50
+ * 数据中心根证书私钥.
41
51
  * 数据中心根证书私钥.
42
52
  */
43
53
  key: string;
44
54
  /**
55
+ * 根证书,信任根
45
56
  * 根证书,信任根
46
57
  */
47
58
  rootCrt: string;
48
59
  /**
60
+ * Lattice
49
61
  * Lattice
50
62
  */
51
63
  lattice: Lattice;
52
64
  /**
65
+ * 兼容
53
66
  * 兼容
54
67
  */
55
68
  nodeID: string;
56
69
  /**
70
+ * 兼容
57
71
  * 兼容
58
72
  */
59
73
  instID: string;
60
74
  /**
75
+ * 兼容
61
76
  * 兼容
62
77
  */
63
78
  instName: string;
@@ -3,53 +3,69 @@ import { Body } from './entity';
3
3
  import { Principal } from './principal';
4
4
  export declare class Event {
5
5
  /**
6
+ *
6
7
  */
7
8
  version: string;
8
9
  /**
10
+ *
9
11
  */
10
12
  tid: string;
11
13
  /**
14
+ *
12
15
  */
13
16
  sid: string;
14
17
  /**
18
+ *
15
19
  */
16
20
  eid: string;
17
21
  /**
22
+ *
18
23
  */
19
24
  mid: string;
20
25
  /**
26
+ *
21
27
  */
22
28
  timestamp: string;
23
29
  /**
30
+ *
24
31
  */
25
32
  source: Principal;
26
33
  /**
34
+ *
27
35
  */
28
36
  target: Principal;
29
37
  /**
38
+ *
30
39
  */
31
40
  binding: Topic;
32
41
  /**
42
+ *
33
43
  */
34
44
  entity: Body;
35
45
  }
36
46
  export declare class Timeout {
37
47
  /**
48
+ *
38
49
  */
39
50
  taskId: string;
40
51
  /**
52
+ *
41
53
  */
42
54
  binding: Topic;
43
55
  /**
56
+ *
44
57
  */
45
58
  status: number;
46
59
  /**
60
+ *
47
61
  */
48
62
  createAt: number;
49
63
  /**
64
+ *
50
65
  */
51
66
  invokeAt: number;
52
67
  /**
68
+ *
53
69
  */
54
70
  entity: Body;
55
71
  }