@abtnode/types 1.16.29-beta-1fedbcdd → 1.16.29-beta-a3a3b40e
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/lib/rpc_pb.d.ts +772 -782
- package/lib/type_pb.d.ts +858 -857
- package/package.json +2 -2
package/lib/type_pb.d.ts
CHANGED
@@ -1,979 +1,980 @@
|
|
1
1
|
// package: abt_node
|
2
2
|
// file: type.proto
|
3
|
-
import * as enum_pb from
|
3
|
+
import * as enum_pb from './enum_pb';
|
4
4
|
export type TNodeState = {
|
5
|
-
did: string
|
6
|
-
pk: string
|
7
|
-
version: string
|
8
|
-
name: string
|
9
|
-
description: string
|
10
|
-
port: string
|
11
|
-
initialized: boolean
|
12
|
-
nodeOwner?: TWalletInfo
|
13
|
-
createdAt: number
|
14
|
-
startedAt: number
|
15
|
-
initializedAt: number
|
16
|
-
mode: string
|
17
|
-
routing?: TNodeRouting
|
18
|
-
environments: TConfigEntry[]
|
19
|
-
uptime: number
|
20
|
-
autoUpgrade: boolean
|
21
|
-
nextVersion: string
|
22
|
-
upgradeSessionId: string
|
23
|
-
registerUrl: string
|
24
|
-
enableWelcomePage: boolean
|
25
|
-
webWalletUrl: string
|
26
|
-
blockletRegistryList: TBlockletStore[]
|
27
|
-
ownerNft?: TOwnerNft
|
28
|
-
diskAlertThreshold: number
|
29
|
-
trustedPassports: TTrustedPassport[]
|
30
|
-
launcher?: TLauncherInfo
|
31
|
-
enablePassportIssuance: boolean
|
32
|
-
didRegistry: string
|
33
|
-
didDomain: string
|
34
|
-
status: number
|
35
|
-
trustedFactories: TTrustedFactory[]
|
36
|
-
enableBetaRelease: boolean
|
37
|
-
runtimeConfig?: TNodeRuntimeConfig
|
38
|
-
nftDomainUrl: string
|
39
|
-
enableFileSystemIsolation: boolean
|
40
|
-
}
|
5
|
+
did: string;
|
6
|
+
pk: string;
|
7
|
+
version: string;
|
8
|
+
name: string;
|
9
|
+
description: string;
|
10
|
+
port: string;
|
11
|
+
initialized: boolean;
|
12
|
+
nodeOwner?: TWalletInfo;
|
13
|
+
createdAt: number;
|
14
|
+
startedAt: number;
|
15
|
+
initializedAt: number;
|
16
|
+
mode: string;
|
17
|
+
routing?: TNodeRouting;
|
18
|
+
environments: TConfigEntry[];
|
19
|
+
uptime: number;
|
20
|
+
autoUpgrade: boolean;
|
21
|
+
nextVersion: string;
|
22
|
+
upgradeSessionId: string;
|
23
|
+
registerUrl: string;
|
24
|
+
enableWelcomePage: boolean;
|
25
|
+
webWalletUrl: string;
|
26
|
+
blockletRegistryList: TBlockletStore[];
|
27
|
+
ownerNft?: TOwnerNft;
|
28
|
+
diskAlertThreshold: number;
|
29
|
+
trustedPassports: TTrustedPassport[];
|
30
|
+
launcher?: TLauncherInfo;
|
31
|
+
enablePassportIssuance: boolean;
|
32
|
+
didRegistry: string;
|
33
|
+
didDomain: string;
|
34
|
+
status: number;
|
35
|
+
trustedFactories: TTrustedFactory[];
|
36
|
+
enableBetaRelease: boolean;
|
37
|
+
runtimeConfig?: TNodeRuntimeConfig;
|
38
|
+
nftDomainUrl: string;
|
39
|
+
enableFileSystemIsolation: boolean;
|
40
|
+
};
|
41
41
|
export type TOwnerNft = {
|
42
|
-
did: string
|
43
|
-
holder: string
|
44
|
-
issuer: string
|
45
|
-
launcherSessionId: string
|
46
|
-
}
|
42
|
+
did: string;
|
43
|
+
holder: string;
|
44
|
+
issuer: string;
|
45
|
+
launcherSessionId: string;
|
46
|
+
};
|
47
47
|
export type TNodeRouting = {
|
48
|
-
provider: string
|
49
|
-
snapshotHash: string
|
50
|
-
adminPath: string
|
51
|
-
requestLimit?: TRequestLimit
|
52
|
-
cacheEnabled: boolean
|
53
|
-
}
|
48
|
+
provider: string;
|
49
|
+
snapshotHash: string;
|
50
|
+
adminPath: string;
|
51
|
+
requestLimit?: TRequestLimit;
|
52
|
+
cacheEnabled: boolean;
|
53
|
+
};
|
54
54
|
export type TNodeInfo = {
|
55
|
-
name: string
|
56
|
-
description: string
|
57
|
-
autoUpgrade: boolean
|
58
|
-
enableWelcomePage: boolean
|
59
|
-
registerUrl: string
|
60
|
-
webWalletUrl: string
|
61
|
-
blockletRegistryList: TBlockletStore[]
|
62
|
-
diskAlertThreshold: number
|
63
|
-
enableBetaRelease: boolean
|
64
|
-
nftDomainUrl: string
|
65
|
-
enableFileSystemIsolation: boolean
|
66
|
-
}
|
55
|
+
name: string;
|
56
|
+
description: string;
|
57
|
+
autoUpgrade: boolean;
|
58
|
+
enableWelcomePage: boolean;
|
59
|
+
registerUrl: string;
|
60
|
+
webWalletUrl: string;
|
61
|
+
blockletRegistryList: TBlockletStore[];
|
62
|
+
diskAlertThreshold: number;
|
63
|
+
enableBetaRelease: boolean;
|
64
|
+
nftDomainUrl: string;
|
65
|
+
enableFileSystemIsolation: boolean;
|
66
|
+
};
|
67
67
|
export type TConnectedStore = {
|
68
|
-
storeId: string
|
69
|
-
storeName: string
|
70
|
-
storeUrl: string
|
71
|
-
accessToken: string
|
72
|
-
developerDid: string
|
73
|
-
developerEmail: string
|
74
|
-
developerName: string
|
75
|
-
scope: string
|
76
|
-
}
|
68
|
+
storeId: string;
|
69
|
+
storeName: string;
|
70
|
+
storeUrl: string;
|
71
|
+
accessToken: string;
|
72
|
+
developerDid: string;
|
73
|
+
developerEmail: string;
|
74
|
+
developerName: string;
|
75
|
+
scope: string;
|
76
|
+
};
|
77
77
|
export type TBlockletStore = {
|
78
|
-
name: string
|
79
|
-
description: string
|
80
|
-
url: string
|
81
|
-
logoUrl: string
|
82
|
-
maintainer: string
|
83
|
-
cdnUrl: string
|
84
|
-
pb_protected: boolean
|
85
|
-
id: string
|
86
|
-
scope: string
|
87
|
-
}
|
78
|
+
name: string;
|
79
|
+
description: string;
|
80
|
+
url: string;
|
81
|
+
logoUrl: string;
|
82
|
+
maintainer: string;
|
83
|
+
cdnUrl: string;
|
84
|
+
pb_protected: boolean;
|
85
|
+
id: string;
|
86
|
+
scope: string;
|
87
|
+
};
|
88
88
|
export type TNodeEnvInfo = {
|
89
|
-
ip?: TIPInfo
|
90
|
-
os: string
|
91
|
-
location: string
|
92
|
-
docker: boolean
|
93
|
-
image: boolean
|
94
|
-
blockletEngines: TBlockletEngine[]
|
95
|
-
gitpod: boolean
|
96
|
-
disk?: TDiskInfo
|
97
|
-
}
|
89
|
+
ip?: TIPInfo;
|
90
|
+
os: string;
|
91
|
+
location: string;
|
92
|
+
docker: boolean;
|
93
|
+
image: boolean;
|
94
|
+
blockletEngines: TBlockletEngine[];
|
95
|
+
gitpod: boolean;
|
96
|
+
disk?: TDiskInfo;
|
97
|
+
};
|
98
98
|
export type TNodeHistoryItem = {
|
99
|
-
date: number
|
100
|
-
cpu: number
|
101
|
-
mem: number
|
102
|
-
daemonMem: number
|
103
|
-
serviceMem: number
|
104
|
-
hubMem: number
|
105
|
-
}
|
99
|
+
date: number;
|
100
|
+
cpu: number;
|
101
|
+
mem: number;
|
102
|
+
daemonMem: number;
|
103
|
+
serviceMem: number;
|
104
|
+
hubMem: number;
|
105
|
+
};
|
106
106
|
export type TChildConfig = {
|
107
|
-
name: string
|
108
|
-
mountPoint: string
|
109
|
-
required: boolean
|
110
|
-
}
|
107
|
+
name: string;
|
108
|
+
mountPoint: string;
|
109
|
+
required: boolean;
|
110
|
+
};
|
111
111
|
export type TBlockletMeta = {
|
112
|
-
did: string
|
113
|
-
name: string
|
114
|
-
version: string
|
115
|
-
description: string
|
116
|
-
interfaces: TBlockletMetaInterface[]
|
117
|
-
author?: TBlockletMetaPerson
|
118
|
-
main: string
|
119
|
-
stats?: TBlockletStats
|
120
|
-
homepage: string
|
121
|
-
path: string
|
122
|
-
community: string
|
123
|
-
documentation: string
|
124
|
-
support: string
|
125
|
-
screenshots: string[]
|
126
|
-
keywords: string[]
|
127
|
-
group: string
|
128
|
-
logo: string
|
129
|
-
title: string
|
130
|
-
dist?: TBlockletDist
|
131
|
-
maintainers: TBlockletMetaPerson[]
|
132
|
-
contributors: TBlockletMetaPerson[]
|
133
|
-
repository?: TBlockletRepository
|
134
|
-
payment?: TBlockletPayment
|
135
|
-
nftFactory: string
|
136
|
-
lastPublishedAt: number
|
137
|
-
capabilities?: TBlockletCapabilities
|
138
|
-
components: TChildConfig[]
|
139
|
-
environments: TEnvironment[]
|
140
|
-
requirements?: TRequirement
|
141
|
-
bundleDid: string
|
142
|
-
bundleName: string
|
143
|
-
navigation: Record<string, any>[]
|
144
|
-
resources: string[]
|
145
|
-
resource?: TBlockletResource
|
146
|
-
engine?: Record<string, any
|
147
|
-
owner?: TBlockletMetaOwner
|
148
|
-
}
|
112
|
+
did: string;
|
113
|
+
name: string;
|
114
|
+
version: string;
|
115
|
+
description: string;
|
116
|
+
interfaces: TBlockletMetaInterface[];
|
117
|
+
author?: TBlockletMetaPerson;
|
118
|
+
main: string;
|
119
|
+
stats?: TBlockletStats;
|
120
|
+
homepage: string;
|
121
|
+
path: string;
|
122
|
+
community: string;
|
123
|
+
documentation: string;
|
124
|
+
support: string;
|
125
|
+
screenshots: string[];
|
126
|
+
keywords: string[];
|
127
|
+
group: string;
|
128
|
+
logo: string;
|
129
|
+
title: string;
|
130
|
+
dist?: TBlockletDist;
|
131
|
+
maintainers: TBlockletMetaPerson[];
|
132
|
+
contributors: TBlockletMetaPerson[];
|
133
|
+
repository?: TBlockletRepository;
|
134
|
+
payment?: TBlockletPayment;
|
135
|
+
nftFactory: string;
|
136
|
+
lastPublishedAt: number;
|
137
|
+
capabilities?: TBlockletCapabilities;
|
138
|
+
components: TChildConfig[];
|
139
|
+
environments: TEnvironment[];
|
140
|
+
requirements?: TRequirement;
|
141
|
+
bundleDid: string;
|
142
|
+
bundleName: string;
|
143
|
+
navigation: Record<string, any>[];
|
144
|
+
resources: string[];
|
145
|
+
resource?: TBlockletResource;
|
146
|
+
engine?: Record<string, any>;
|
147
|
+
owner?: TBlockletMetaOwner;
|
148
|
+
};
|
149
149
|
export type TSimpleBlockletMeta = {
|
150
|
-
did: string
|
151
|
-
name: string
|
152
|
-
version: string
|
153
|
-
description: string
|
154
|
-
title: string
|
155
|
-
bundleDid: string
|
156
|
-
bundleName: string
|
157
|
-
}
|
150
|
+
did: string;
|
151
|
+
name: string;
|
152
|
+
version: string;
|
153
|
+
description: string;
|
154
|
+
title: string;
|
155
|
+
bundleDid: string;
|
156
|
+
bundleName: string;
|
157
|
+
};
|
158
158
|
export type TOptionalDependencies = {
|
159
|
-
parentDid: string
|
160
|
-
parentName: string
|
161
|
-
parentTitle: string
|
162
|
-
mountPoint: string
|
163
|
-
required: boolean
|
164
|
-
}
|
159
|
+
parentDid: string;
|
160
|
+
parentName: string;
|
161
|
+
parentTitle: string;
|
162
|
+
mountPoint: string;
|
163
|
+
required: boolean;
|
164
|
+
};
|
165
165
|
export type TOptionalComponentState = {
|
166
|
-
logoUrl: string
|
167
|
-
dependencies: TOptionalDependencies[]
|
168
|
-
meta?: TBlockletMeta
|
169
|
-
}
|
166
|
+
logoUrl: string;
|
167
|
+
dependencies: TOptionalDependencies[];
|
168
|
+
meta?: TBlockletMeta;
|
169
|
+
};
|
170
170
|
export type TBlockletRepository = {
|
171
|
-
type: string
|
172
|
-
url: string
|
173
|
-
}
|
171
|
+
type: string;
|
172
|
+
url: string;
|
173
|
+
};
|
174
174
|
export type TBlockletCapabilities = {
|
175
|
-
clusterMode: boolean
|
176
|
-
component: boolean
|
177
|
-
navigation: boolean
|
178
|
-
didSpace: string
|
179
|
-
resourceExportApi: string
|
180
|
-
}
|
175
|
+
clusterMode: boolean;
|
176
|
+
component: boolean;
|
177
|
+
navigation: boolean;
|
178
|
+
didSpace: string;
|
179
|
+
resourceExportApi: string;
|
180
|
+
};
|
181
181
|
export type TBlockletPayment = {
|
182
|
-
price: TBlockletPaymentPrice[]
|
183
|
-
share: TBlockletPaymentShare[]
|
184
|
-
}
|
182
|
+
price: TBlockletPaymentPrice[];
|
183
|
+
share: TBlockletPaymentShare[];
|
184
|
+
};
|
185
185
|
export type TBlockletPaymentPrice = {
|
186
|
-
address: string
|
187
|
-
value: string
|
188
|
-
symbol: string
|
189
|
-
}
|
186
|
+
address: string;
|
187
|
+
value: string;
|
188
|
+
symbol: string;
|
189
|
+
};
|
190
190
|
export type TBlockletPaymentShare = {
|
191
|
-
address: string
|
192
|
-
name: string
|
193
|
-
value: string
|
194
|
-
}
|
191
|
+
address: string;
|
192
|
+
name: string;
|
193
|
+
value: string;
|
194
|
+
};
|
195
195
|
export type TBlockletMetaInterface = {
|
196
|
-
type: string
|
197
|
-
name: string
|
198
|
-
path: string
|
199
|
-
prefix: string
|
200
|
-
protocol: string
|
201
|
-
port?: Record<string, any
|
202
|
-
services: TBlockletMetaService[]
|
203
|
-
cacheable: string[]
|
204
|
-
pageGroups: string[]
|
205
|
-
}
|
196
|
+
type: string;
|
197
|
+
name: string;
|
198
|
+
path: string;
|
199
|
+
prefix: string;
|
200
|
+
protocol: string;
|
201
|
+
port?: Record<string, any>;
|
202
|
+
services: TBlockletMetaService[];
|
203
|
+
cacheable: string[];
|
204
|
+
pageGroups: string[];
|
205
|
+
};
|
206
206
|
export type TBlockletMetaPerson = {
|
207
|
-
name: string
|
208
|
-
email: string
|
209
|
-
url: string
|
210
|
-
}
|
207
|
+
name: string;
|
208
|
+
email: string;
|
209
|
+
url: string;
|
210
|
+
};
|
211
211
|
export type TBlockletMetaOwner = {
|
212
|
-
avatar: string
|
213
|
-
did: string
|
214
|
-
email: string
|
215
|
-
fullname: string
|
216
|
-
}
|
212
|
+
avatar: string;
|
213
|
+
did: string;
|
214
|
+
email: string;
|
215
|
+
fullname: string;
|
216
|
+
};
|
217
217
|
export type TBlockletDist = {
|
218
|
-
tarball: string
|
219
|
-
integrity: string
|
220
|
-
}
|
218
|
+
tarball: string;
|
219
|
+
integrity: string;
|
220
|
+
};
|
221
221
|
export type TUpdateList = {
|
222
|
-
id: string
|
223
|
-
meta?: TBlockletMeta
|
224
|
-
}
|
222
|
+
id: string;
|
223
|
+
meta?: TBlockletMeta;
|
224
|
+
};
|
225
225
|
export type TBlockletPreUpdateInfo = {
|
226
|
-
updateId: string
|
227
|
-
updateList: TUpdateList[]
|
228
|
-
}
|
226
|
+
updateId: string;
|
227
|
+
updateList: TUpdateList[];
|
228
|
+
};
|
229
229
|
export type TBlockletStats = {
|
230
|
-
downloads: number
|
231
|
-
star: number
|
232
|
-
purchases: number
|
233
|
-
}
|
230
|
+
downloads: number;
|
231
|
+
star: number;
|
232
|
+
purchases: number;
|
233
|
+
};
|
234
234
|
export type TBlockletEngine = {
|
235
|
-
name: string
|
236
|
-
displayName: string
|
237
|
-
description: string
|
238
|
-
version: string
|
239
|
-
available: boolean
|
240
|
-
visible: boolean
|
241
|
-
logo: string
|
242
|
-
}
|
235
|
+
name: string;
|
236
|
+
displayName: string;
|
237
|
+
description: string;
|
238
|
+
version: string;
|
239
|
+
available: boolean;
|
240
|
+
visible: boolean;
|
241
|
+
logo: string;
|
242
|
+
};
|
243
243
|
export type TBlockletExposeService = {
|
244
|
-
protocol: string
|
245
|
-
port: number
|
246
|
-
upstreamPort: number
|
247
|
-
}
|
244
|
+
protocol: string;
|
245
|
+
port: number;
|
246
|
+
upstreamPort: number;
|
247
|
+
};
|
248
248
|
export type TBlockletControllerStatus = {
|
249
|
-
value: number
|
250
|
-
reason: string
|
251
|
-
}
|
249
|
+
value: number;
|
250
|
+
reason: string;
|
251
|
+
};
|
252
252
|
export type TBlockletController = {
|
253
|
-
id: string
|
254
|
-
nftId: string
|
255
|
-
nftOwner: string
|
256
|
-
chainHost: string
|
257
|
-
expireDate: number
|
258
|
-
consumedAt: string
|
259
|
-
launcherUrl: string
|
260
|
-
launcherSessionId: string
|
261
|
-
ownerDid: string
|
262
|
-
status?: TBlockletControllerStatus
|
263
|
-
}
|
253
|
+
id: string;
|
254
|
+
nftId: string;
|
255
|
+
nftOwner: string;
|
256
|
+
chainHost: string;
|
257
|
+
expireDate: number;
|
258
|
+
consumedAt: string;
|
259
|
+
launcherUrl: string;
|
260
|
+
launcherSessionId: string;
|
261
|
+
ownerDid: string;
|
262
|
+
status?: TBlockletControllerStatus;
|
263
|
+
};
|
264
264
|
export type TBlockletMigrateRecord = {
|
265
|
-
appSk: string
|
266
|
-
appDid: string
|
267
|
-
at: string
|
268
|
-
}
|
265
|
+
appSk: string;
|
266
|
+
appDid: string;
|
267
|
+
at: string;
|
268
|
+
};
|
269
269
|
export type TBlockletState = {
|
270
|
-
meta?: TBlockletMeta
|
271
|
-
status: enum_pb.BlockletStatusMap[keyof enum_pb.BlockletStatusMap]
|
272
|
-
createdAt: number
|
273
|
-
installedAt: number
|
274
|
-
startedAt: number
|
275
|
-
pausedAt: number
|
276
|
-
stoppedAt: number
|
277
|
-
updatedAt: number
|
278
|
-
environments: TConfigEntry[]
|
279
|
-
configs: TConfigEntry[]
|
280
|
-
diskInfo?: TDiskInfo
|
281
|
-
runtimeInfo?: TRuntimeInfo
|
282
|
-
appRuntimeInfo?: TRuntimeInfo
|
283
|
-
source: enum_pb.BlockletSourceMap[keyof enum_pb.BlockletSourceMap]
|
284
|
-
deployedFrom: string
|
285
|
-
bundleSource?: Record<string, any
|
286
|
-
port: number
|
287
|
-
engine?: TBlockletEngine
|
288
|
-
mode: string
|
289
|
-
ports?: Record<string, any
|
290
|
-
children: TComponentState[]
|
291
|
-
optionalComponents: TOptionalComponentState[]
|
292
|
-
trustedPassports: TTrustedPassport[]
|
293
|
-
trustedFactories: TTrustedFactory[]
|
294
|
-
enablePassportIssuance: boolean
|
295
|
-
dynamic: boolean
|
296
|
-
mountPoint: string
|
297
|
-
settings?: TBlockletSettings
|
298
|
-
appDid: string
|
299
|
-
site?: TRoutingSite
|
300
|
-
controller?: TBlockletController
|
301
|
-
migratedFrom: TBlockletMigrateRecord[]
|
302
|
-
appPid: string
|
303
|
-
externalSk: boolean
|
304
|
-
externalSkSource: string
|
305
|
-
structVersion: string
|
306
|
-
}
|
270
|
+
meta?: TBlockletMeta;
|
271
|
+
status: enum_pb.BlockletStatusMap[keyof enum_pb.BlockletStatusMap];
|
272
|
+
createdAt: number;
|
273
|
+
installedAt: number;
|
274
|
+
startedAt: number;
|
275
|
+
pausedAt: number;
|
276
|
+
stoppedAt: number;
|
277
|
+
updatedAt: number;
|
278
|
+
environments: TConfigEntry[];
|
279
|
+
configs: TConfigEntry[];
|
280
|
+
diskInfo?: TDiskInfo;
|
281
|
+
runtimeInfo?: TRuntimeInfo;
|
282
|
+
appRuntimeInfo?: TRuntimeInfo;
|
283
|
+
source: enum_pb.BlockletSourceMap[keyof enum_pb.BlockletSourceMap];
|
284
|
+
deployedFrom: string;
|
285
|
+
bundleSource?: Record<string, any>;
|
286
|
+
port: number;
|
287
|
+
engine?: TBlockletEngine;
|
288
|
+
mode: string;
|
289
|
+
ports?: Record<string, any>;
|
290
|
+
children: TComponentState[];
|
291
|
+
optionalComponents: TOptionalComponentState[];
|
292
|
+
trustedPassports: TTrustedPassport[];
|
293
|
+
trustedFactories: TTrustedFactory[];
|
294
|
+
enablePassportIssuance: boolean;
|
295
|
+
dynamic: boolean;
|
296
|
+
mountPoint: string;
|
297
|
+
settings?: TBlockletSettings;
|
298
|
+
appDid: string;
|
299
|
+
site?: TRoutingSite;
|
300
|
+
controller?: TBlockletController;
|
301
|
+
migratedFrom: TBlockletMigrateRecord[];
|
302
|
+
appPid: string;
|
303
|
+
externalSk: boolean;
|
304
|
+
externalSkSource: string;
|
305
|
+
structVersion: string;
|
306
|
+
};
|
307
307
|
export type TBlockletExtra = {
|
308
|
-
did: string
|
309
|
-
appDid: string
|
310
|
-
meta?: TSimpleBlockletMeta
|
311
|
-
configs: TConfigEntry[]
|
312
|
-
children: TChildExtraConfigs[]
|
313
|
-
settings?: TBlockletSettings
|
314
|
-
}
|
308
|
+
did: string;
|
309
|
+
appDid: string;
|
310
|
+
meta?: TSimpleBlockletMeta;
|
311
|
+
configs: TConfigEntry[];
|
312
|
+
children: TChildExtraConfigs[];
|
313
|
+
settings?: TBlockletSettings;
|
314
|
+
};
|
315
315
|
export type TChildExtraConfigs = {
|
316
|
-
did: string
|
317
|
-
configs: TConfigEntry[]
|
318
|
-
}
|
316
|
+
did: string;
|
317
|
+
configs: TConfigEntry[];
|
318
|
+
};
|
319
319
|
export type TComponentState = {
|
320
|
-
meta?: TBlockletMeta
|
321
|
-
status: enum_pb.BlockletStatusMap[keyof enum_pb.BlockletStatusMap]
|
322
|
-
createdAt: number
|
323
|
-
installedAt: number
|
324
|
-
startedAt: number
|
325
|
-
pausedAt: number
|
326
|
-
stoppedAt: number
|
327
|
-
environments: TConfigEntry[]
|
328
|
-
configs: TConfigEntry[]
|
329
|
-
diskInfo?: TDiskInfo
|
330
|
-
runtimeInfo?: TRuntimeInfo
|
331
|
-
source: enum_pb.BlockletSourceMap[keyof enum_pb.BlockletSourceMap]
|
332
|
-
deployedFrom: string
|
333
|
-
bundleSource?: Record<string, any
|
334
|
-
port: number
|
335
|
-
engine?: TBlockletEngine
|
336
|
-
mode: string
|
337
|
-
ports?: Record<string, any
|
338
|
-
children: TComponentState[]
|
339
|
-
dynamic: boolean
|
340
|
-
mountPoint: string
|
341
|
-
dependents: TDependent[]
|
342
|
-
required: boolean
|
343
|
-
}
|
320
|
+
meta?: TBlockletMeta;
|
321
|
+
status: enum_pb.BlockletStatusMap[keyof enum_pb.BlockletStatusMap];
|
322
|
+
createdAt: number;
|
323
|
+
installedAt: number;
|
324
|
+
startedAt: number;
|
325
|
+
pausedAt: number;
|
326
|
+
stoppedAt: number;
|
327
|
+
environments: TConfigEntry[];
|
328
|
+
configs: TConfigEntry[];
|
329
|
+
diskInfo?: TDiskInfo;
|
330
|
+
runtimeInfo?: TRuntimeInfo;
|
331
|
+
source: enum_pb.BlockletSourceMap[keyof enum_pb.BlockletSourceMap];
|
332
|
+
deployedFrom: string;
|
333
|
+
bundleSource?: Record<string, any>;
|
334
|
+
port: number;
|
335
|
+
engine?: TBlockletEngine;
|
336
|
+
mode: string;
|
337
|
+
ports?: Record<string, any>;
|
338
|
+
children: TComponentState[];
|
339
|
+
dynamic: boolean;
|
340
|
+
mountPoint: string;
|
341
|
+
dependents: TDependent[];
|
342
|
+
required: boolean;
|
343
|
+
};
|
344
344
|
export type TSimpleBlockletState = {
|
345
|
-
meta?: TSimpleBlockletMeta
|
346
|
-
status: enum_pb.BlockletStatusMap[keyof enum_pb.BlockletStatusMap]
|
347
|
-
deployedFrom: string
|
348
|
-
mountPoint: string
|
349
|
-
deletedAt: number
|
350
|
-
}
|
345
|
+
meta?: TSimpleBlockletMeta;
|
346
|
+
status: enum_pb.BlockletStatusMap[keyof enum_pb.BlockletStatusMap];
|
347
|
+
deployedFrom: string;
|
348
|
+
mountPoint: string;
|
349
|
+
deletedAt: number;
|
350
|
+
};
|
351
351
|
export type TBlockletSettings = {
|
352
|
-
initialized: boolean
|
353
|
-
enablePassportIssuance: boolean
|
354
|
-
trustedPassports: TTrustedPassport[]
|
355
|
-
whoCanAccess: string
|
356
|
-
owner?: TWalletInfo
|
357
|
-
children: TSimpleBlockletState[]
|
358
|
-
publicToStore: boolean
|
359
|
-
storeList: TBlockletStore[]
|
360
|
-
navigations: TConfigNavigation[]
|
361
|
-
oauth?: Record<string, any
|
362
|
-
trustedFactories: TTrustedFactory[]
|
363
|
-
notification?: Record<string, any
|
364
|
-
session?: TSessionConfig
|
365
|
-
federated?: TFederatedConfig
|
366
|
-
}
|
352
|
+
initialized: boolean;
|
353
|
+
enablePassportIssuance: boolean;
|
354
|
+
trustedPassports: TTrustedPassport[];
|
355
|
+
whoCanAccess: string;
|
356
|
+
owner?: TWalletInfo;
|
357
|
+
children: TSimpleBlockletState[];
|
358
|
+
publicToStore: boolean;
|
359
|
+
storeList: TBlockletStore[];
|
360
|
+
navigations: TConfigNavigation[];
|
361
|
+
oauth?: Record<string, any>;
|
362
|
+
trustedFactories: TTrustedFactory[];
|
363
|
+
notification?: Record<string, any>;
|
364
|
+
session?: TSessionConfig;
|
365
|
+
federated?: TFederatedConfig;
|
366
|
+
};
|
367
367
|
export type TBlockletMetaService = {
|
368
|
-
name: string
|
369
|
-
config?: Record<string, any
|
370
|
-
}
|
368
|
+
name: string;
|
369
|
+
config?: Record<string, any>;
|
370
|
+
};
|
371
371
|
export type TBlockletVersion = {
|
372
|
-
version: string
|
373
|
-
publishedAt: number
|
374
|
-
}
|
372
|
+
version: string;
|
373
|
+
publishedAt: number;
|
374
|
+
};
|
375
375
|
export type TBlockletBackupState = {
|
376
|
-
appDid: string
|
377
|
-
appPid: string
|
378
|
-
name: string
|
379
|
-
createdAt: number
|
380
|
-
}
|
376
|
+
appDid: string;
|
377
|
+
appPid: string;
|
378
|
+
name: string;
|
379
|
+
createdAt: number;
|
380
|
+
};
|
381
381
|
export type TBlockletDiff = {
|
382
|
-
hasBlocklet: boolean
|
383
|
-
version: string
|
384
|
-
addSet: string[]
|
385
|
-
changeSet: string[]
|
386
|
-
deleteSet: string[]
|
387
|
-
}
|
382
|
+
hasBlocklet: boolean;
|
383
|
+
version: string;
|
384
|
+
addSet: string[];
|
385
|
+
changeSet: string[];
|
386
|
+
deleteSet: string[];
|
387
|
+
};
|
388
388
|
export type TConfigEntry = {
|
389
|
-
key: string
|
390
|
-
value: string
|
391
|
-
required: boolean
|
392
|
-
description: string
|
393
|
-
validation: string
|
394
|
-
secure: boolean
|
395
|
-
custom: boolean
|
396
|
-
shared: boolean
|
397
|
-
}
|
389
|
+
key: string;
|
390
|
+
value: string;
|
391
|
+
required: boolean;
|
392
|
+
description: string;
|
393
|
+
validation: string;
|
394
|
+
secure: boolean;
|
395
|
+
custom: boolean;
|
396
|
+
shared: boolean;
|
397
|
+
};
|
398
398
|
export type TConfigNavigation = {
|
399
|
-
id: string
|
400
|
-
title: string
|
401
|
-
link: string
|
402
|
-
icon: string
|
403
|
-
section: string
|
404
|
-
component: string
|
405
|
-
parent: string
|
406
|
-
role: string
|
407
|
-
visible: boolean
|
408
|
-
from: string
|
409
|
-
}
|
399
|
+
id: string;
|
400
|
+
title: string;
|
401
|
+
link: string;
|
402
|
+
icon: string;
|
403
|
+
section: string;
|
404
|
+
component: string;
|
405
|
+
parent: string;
|
406
|
+
role: string;
|
407
|
+
visible: boolean;
|
408
|
+
from: string;
|
409
|
+
};
|
410
410
|
export type TEnvironment = {
|
411
|
-
name: string
|
412
|
-
description: string
|
413
|
-
pb_default: string
|
414
|
-
required: boolean
|
415
|
-
secure: boolean
|
416
|
-
validation: string
|
417
|
-
shared: boolean
|
418
|
-
}
|
411
|
+
name: string;
|
412
|
+
description: string;
|
413
|
+
pb_default: string;
|
414
|
+
required: boolean;
|
415
|
+
secure: boolean;
|
416
|
+
validation: string;
|
417
|
+
shared: boolean;
|
418
|
+
};
|
419
419
|
export type TRequirement = {
|
420
|
-
server: string
|
421
|
-
os?: Record<string, any
|
422
|
-
cpu?: Record<string, any
|
423
|
-
fuels: TFuel[]
|
424
|
-
}
|
420
|
+
server: string;
|
421
|
+
os?: Record<string, any>;
|
422
|
+
cpu?: Record<string, any>;
|
423
|
+
fuels: TFuel[];
|
424
|
+
};
|
425
425
|
export type TFuel = {
|
426
|
-
endpoint: string
|
427
|
-
address: string
|
428
|
-
value: string
|
429
|
-
reason: string
|
430
|
-
}
|
426
|
+
endpoint: string;
|
427
|
+
address: string;
|
428
|
+
value: string;
|
429
|
+
reason: string;
|
430
|
+
};
|
431
431
|
export type TWalletInfo = {
|
432
|
-
did: string
|
433
|
-
pk: string
|
434
|
-
}
|
432
|
+
did: string;
|
433
|
+
pk: string;
|
434
|
+
};
|
435
435
|
export type TDiskInfo = {
|
436
|
-
app: number
|
437
|
-
data: number
|
438
|
-
log: number
|
439
|
-
cache: number
|
440
|
-
blocklets: number
|
441
|
-
}
|
436
|
+
app: number;
|
437
|
+
data: number;
|
438
|
+
log: number;
|
439
|
+
cache: number;
|
440
|
+
blocklets: number;
|
441
|
+
};
|
442
442
|
export type TRuntimeInfo = {
|
443
|
-
pid: string
|
444
|
-
port: string
|
445
|
-
uptime: string
|
446
|
-
memoryUsage: number
|
447
|
-
cpuUsage: number
|
448
|
-
}
|
443
|
+
pid: string;
|
444
|
+
port: string;
|
445
|
+
uptime: string;
|
446
|
+
memoryUsage: number;
|
447
|
+
cpuUsage: number;
|
448
|
+
};
|
449
449
|
export type THashFile = {
|
450
|
-
file: string
|
451
|
-
hash: string
|
452
|
-
}
|
450
|
+
file: string;
|
451
|
+
hash: string;
|
452
|
+
};
|
453
453
|
export type TBlockletHistoryItem = {
|
454
|
-
date: number
|
455
|
-
cpu: number
|
456
|
-
mem: number
|
457
|
-
}
|
454
|
+
date: number;
|
455
|
+
cpu: number;
|
456
|
+
mem: number;
|
457
|
+
};
|
458
458
|
export type TNotification = {
|
459
|
-
sender: string
|
460
|
-
receiver: string
|
461
|
-
title: string
|
462
|
-
description: string
|
463
|
-
action: string
|
464
|
-
entityType: string
|
465
|
-
entityId: string
|
466
|
-
read: boolean
|
467
|
-
createdAt: number
|
468
|
-
updatedAt: number
|
469
|
-
id: string
|
470
|
-
severity: string
|
471
|
-
}
|
459
|
+
sender: string;
|
460
|
+
receiver: string;
|
461
|
+
title: string;
|
462
|
+
description: string;
|
463
|
+
action: string;
|
464
|
+
entityType: string;
|
465
|
+
entityId: string;
|
466
|
+
read: boolean;
|
467
|
+
createdAt: number;
|
468
|
+
updatedAt: number;
|
469
|
+
id: string;
|
470
|
+
severity: string;
|
471
|
+
};
|
472
472
|
export type TRoutingRuleResponse = {
|
473
|
-
status: number
|
474
|
-
contentType: string
|
475
|
-
body: string
|
476
|
-
}
|
473
|
+
status: number;
|
474
|
+
contentType: string;
|
475
|
+
body: string;
|
476
|
+
};
|
477
477
|
export type TRoutingRuleTo = {
|
478
|
-
port: number
|
479
|
-
type: enum_pb.BackendServiceTypeMap[keyof enum_pb.BackendServiceTypeMap]
|
480
|
-
did: string
|
481
|
-
url: string
|
482
|
-
redirectCode: number
|
483
|
-
interfaceName: string
|
484
|
-
componentId: string
|
485
|
-
pageGroup: string
|
486
|
-
response?: TRoutingRuleResponse
|
487
|
-
}
|
478
|
+
port: number;
|
479
|
+
type: enum_pb.BackendServiceTypeMap[keyof enum_pb.BackendServiceTypeMap];
|
480
|
+
did: string;
|
481
|
+
url: string;
|
482
|
+
redirectCode: number;
|
483
|
+
interfaceName: string;
|
484
|
+
componentId: string;
|
485
|
+
pageGroup: string;
|
486
|
+
response?: TRoutingRuleResponse;
|
487
|
+
};
|
488
488
|
export type TRoutingRuleFrom = {
|
489
|
-
pathPrefix: string
|
490
|
-
header: TRoutingRuleHeader[]
|
491
|
-
}
|
489
|
+
pathPrefix: string;
|
490
|
+
header: TRoutingRuleHeader[];
|
491
|
+
};
|
492
492
|
export type TRoutingRule = {
|
493
|
-
id: string
|
494
|
-
from?: TRoutingRuleFrom
|
495
|
-
to?: TRoutingRuleTo
|
496
|
-
isProtected: boolean
|
497
|
-
}
|
493
|
+
id: string;
|
494
|
+
from?: TRoutingRuleFrom;
|
495
|
+
to?: TRoutingRuleTo;
|
496
|
+
isProtected: boolean;
|
497
|
+
};
|
498
498
|
export type TRoutingSite = {
|
499
|
-
id: string
|
500
|
-
domain: string
|
501
|
-
domainAliases: Record<string, any>[]
|
502
|
-
rules: TRoutingRule[]
|
503
|
-
isProtected: boolean
|
504
|
-
corsAllowedOrigins: string[]
|
505
|
-
}
|
499
|
+
id: string;
|
500
|
+
domain: string;
|
501
|
+
domainAliases: Record<string, any>[];
|
502
|
+
rules: TRoutingRule[];
|
503
|
+
isProtected: boolean;
|
504
|
+
corsAllowedOrigins: string[];
|
505
|
+
};
|
506
506
|
export type TRoutingRuleHeader = {
|
507
|
-
key: string
|
508
|
-
value: string
|
509
|
-
type: enum_pb.HeaderMatchTypeMap[keyof enum_pb.HeaderMatchTypeMap]
|
510
|
-
}
|
507
|
+
key: string;
|
508
|
+
value: string;
|
509
|
+
type: enum_pb.HeaderMatchTypeMap[keyof enum_pb.HeaderMatchTypeMap];
|
510
|
+
};
|
511
511
|
export type TRoutingSnapshot = {
|
512
|
-
hash: string
|
513
|
-
tree: string
|
514
|
-
message: string
|
515
|
-
author: string
|
516
|
-
createdAt: number
|
517
|
-
}
|
512
|
+
hash: string;
|
513
|
+
tree: string;
|
514
|
+
message: string;
|
515
|
+
author: string;
|
516
|
+
createdAt: number;
|
517
|
+
};
|
518
518
|
export type TRoutingProvider = {
|
519
|
-
name: string
|
520
|
-
description: string
|
521
|
-
running: boolean
|
522
|
-
available: boolean
|
523
|
-
error: string
|
524
|
-
}
|
519
|
+
name: string;
|
520
|
+
description: string;
|
521
|
+
running: boolean;
|
522
|
+
available: boolean;
|
523
|
+
error: string;
|
524
|
+
};
|
525
525
|
export type TCertificate = {
|
526
|
-
name: string
|
527
|
-
domain: string
|
528
|
-
id: string
|
529
|
-
meta?: TCertificateMeta
|
530
|
-
matchedSites: TMatchedSites[]
|
531
|
-
createdAt: number
|
532
|
-
updatedAt: number
|
533
|
-
isProtected: boolean
|
534
|
-
source: string
|
535
|
-
status: string
|
536
|
-
}
|
526
|
+
name: string;
|
527
|
+
domain: string;
|
528
|
+
id: string;
|
529
|
+
meta?: TCertificateMeta;
|
530
|
+
matchedSites: TMatchedSites[];
|
531
|
+
createdAt: number;
|
532
|
+
updatedAt: number;
|
533
|
+
isProtected: boolean;
|
534
|
+
source: string;
|
535
|
+
status: string;
|
536
|
+
};
|
537
537
|
export type TCertificateMeta = {
|
538
|
-
issuer?: TCertificateIssuer
|
539
|
-
sans: string[]
|
540
|
-
validFrom: number
|
541
|
-
validTo: number
|
542
|
-
fingerprintAlg: string
|
543
|
-
fingerprint: string
|
544
|
-
validityPeriod: number
|
545
|
-
}
|
538
|
+
issuer?: TCertificateIssuer;
|
539
|
+
sans: string[];
|
540
|
+
validFrom: number;
|
541
|
+
validTo: number;
|
542
|
+
fingerprintAlg: string;
|
543
|
+
fingerprint: string;
|
544
|
+
validityPeriod: number;
|
545
|
+
};
|
546
546
|
export type TMatchedSites = {
|
547
|
-
id: string
|
548
|
-
domain: string
|
549
|
-
}
|
547
|
+
id: string;
|
548
|
+
domain: string;
|
549
|
+
};
|
550
550
|
export type TCertificateIssuer = {
|
551
|
-
countryName: string
|
552
|
-
organizationName: string
|
553
|
-
commonName: string
|
554
|
-
}
|
551
|
+
countryName: string;
|
552
|
+
organizationName: string;
|
553
|
+
commonName: string;
|
554
|
+
};
|
555
555
|
export type TAccessKey = {
|
556
|
-
accessKeyId: string
|
557
|
-
accessKeyPublic: string
|
558
|
-
remark: string
|
559
|
-
passport: string
|
560
|
-
createdAt: number
|
561
|
-
lastUsedAt: number
|
562
|
-
createdBy: string
|
563
|
-
updatedBy: string
|
564
|
-
}
|
556
|
+
accessKeyId: string;
|
557
|
+
accessKeyPublic: string;
|
558
|
+
remark: string;
|
559
|
+
passport: string;
|
560
|
+
createdAt: number;
|
561
|
+
lastUsedAt: number;
|
562
|
+
createdBy: string;
|
563
|
+
updatedBy: string;
|
564
|
+
};
|
565
565
|
export type TCreateAccessKey = {
|
566
|
-
accessKeyId: string
|
567
|
-
accessKeySecret: string
|
568
|
-
remark: string
|
569
|
-
passport: string
|
570
|
-
createdAt: number
|
571
|
-
lastUsedAt: number
|
572
|
-
}
|
566
|
+
accessKeyId: string;
|
567
|
+
accessKeySecret: string;
|
568
|
+
remark: string;
|
569
|
+
passport: string;
|
570
|
+
createdAt: number;
|
571
|
+
lastUsedAt: number;
|
572
|
+
};
|
573
573
|
export type TWebHookSender = {
|
574
|
-
type: enum_pb.SenderTypeMap[keyof enum_pb.SenderTypeMap]
|
575
|
-
title: string
|
576
|
-
description: string
|
577
|
-
params: TWebHookParam[]
|
578
|
-
}
|
574
|
+
type: enum_pb.SenderTypeMap[keyof enum_pb.SenderTypeMap];
|
575
|
+
title: string;
|
576
|
+
description: string;
|
577
|
+
params: TWebHookParam[];
|
578
|
+
};
|
579
579
|
export type TWebHook = {
|
580
|
-
type: enum_pb.SenderTypeMap[keyof enum_pb.SenderTypeMap]
|
581
|
-
id: string
|
582
|
-
params: TWebHookParam[]
|
583
|
-
createdAt: number
|
584
|
-
updatedAt: number
|
585
|
-
}
|
580
|
+
type: enum_pb.SenderTypeMap[keyof enum_pb.SenderTypeMap];
|
581
|
+
id: string;
|
582
|
+
params: TWebHookParam[];
|
583
|
+
createdAt: number;
|
584
|
+
updatedAt: number;
|
585
|
+
};
|
586
586
|
export type TWebHookParam = {
|
587
|
-
name: string
|
588
|
-
description: string
|
589
|
-
required: boolean
|
590
|
-
defaultValue: string
|
591
|
-
value: string
|
592
|
-
type: string
|
593
|
-
}
|
587
|
+
name: string;
|
588
|
+
description: string;
|
589
|
+
required: boolean;
|
590
|
+
defaultValue: string;
|
591
|
+
value: string;
|
592
|
+
type: string;
|
593
|
+
};
|
594
594
|
export type TTag = {
|
595
|
-
id: number
|
596
|
-
title: string
|
597
|
-
description: string
|
598
|
-
color: string
|
599
|
-
createdAt: number
|
600
|
-
updatedAt: number
|
601
|
-
}
|
595
|
+
id: number;
|
596
|
+
title: string;
|
597
|
+
description: string;
|
598
|
+
color: string;
|
599
|
+
createdAt: number;
|
600
|
+
updatedAt: number;
|
601
|
+
};
|
602
602
|
export type TTeam = {
|
603
|
-
teamDid: string
|
604
|
-
}
|
603
|
+
teamDid: string;
|
604
|
+
};
|
605
605
|
export type TInviteInfo = {
|
606
|
-
inviteId: string
|
607
|
-
role: string
|
608
|
-
remark: string
|
609
|
-
expireDate: string
|
610
|
-
inviter?: TUserInfo
|
611
|
-
teamDid: string
|
612
|
-
interfaceName: string
|
613
|
-
}
|
606
|
+
inviteId: string;
|
607
|
+
role: string;
|
608
|
+
remark: string;
|
609
|
+
expireDate: string;
|
610
|
+
inviter?: TUserInfo;
|
611
|
+
teamDid: string;
|
612
|
+
interfaceName: string;
|
613
|
+
};
|
614
614
|
export type TConnectedAccountInfo = {
|
615
|
-
name: string
|
616
|
-
picture: string
|
617
|
-
email: string
|
618
|
-
emailVerified: boolean
|
619
|
-
sub: string
|
620
|
-
extraData?: Record<string, any
|
621
|
-
}
|
615
|
+
name: string;
|
616
|
+
picture: string;
|
617
|
+
email: string;
|
618
|
+
emailVerified: boolean;
|
619
|
+
sub: string;
|
620
|
+
extraData?: Record<string, any>;
|
621
|
+
};
|
622
622
|
export type TConnectedAccount = {
|
623
|
-
provider: string
|
624
|
-
did: string
|
625
|
-
pk: string
|
626
|
-
id: string
|
627
|
-
lastLoginAt: number
|
628
|
-
userInfo?: TConnectedAccountInfo
|
629
|
-
extra?: Record<string, any
|
630
|
-
}
|
623
|
+
provider: string;
|
624
|
+
did: string;
|
625
|
+
pk: string;
|
626
|
+
id: string;
|
627
|
+
lastLoginAt: number;
|
628
|
+
userInfo?: TConnectedAccountInfo;
|
629
|
+
extra?: Record<string, any>;
|
630
|
+
};
|
631
631
|
export type TUserInfo = {
|
632
|
-
did: string
|
633
|
-
pk: string
|
634
|
-
role: string
|
635
|
-
avatar: string
|
636
|
-
fullName: string
|
637
|
-
email: string
|
638
|
-
approved: boolean
|
639
|
-
createdAt: number
|
640
|
-
updatedAt: number
|
641
|
-
locale: string
|
642
|
-
passports: TPassport[]
|
643
|
-
firstLoginAt: number
|
644
|
-
lastLoginAt: number
|
645
|
-
remark: string
|
646
|
-
lastLoginIp: string
|
647
|
-
sourceProvider: string
|
648
|
-
sourceAppPid: string
|
649
|
-
connectedAccounts: TConnectedAccount[]
|
650
|
-
extra?: Record<string, any
|
651
|
-
tags: TTag[]
|
652
|
-
didSpace?: Record<string, any
|
653
|
-
userSessions: TUserSession[]
|
654
|
-
url: string
|
655
|
-
}
|
632
|
+
did: string;
|
633
|
+
pk: string;
|
634
|
+
role: string;
|
635
|
+
avatar: string;
|
636
|
+
fullName: string;
|
637
|
+
email: string;
|
638
|
+
approved: boolean;
|
639
|
+
createdAt: number;
|
640
|
+
updatedAt: number;
|
641
|
+
locale: string;
|
642
|
+
passports: TPassport[];
|
643
|
+
firstLoginAt: number;
|
644
|
+
lastLoginAt: number;
|
645
|
+
remark: string;
|
646
|
+
lastLoginIp: string;
|
647
|
+
sourceProvider: string;
|
648
|
+
sourceAppPid: string;
|
649
|
+
connectedAccounts: TConnectedAccount[];
|
650
|
+
extra?: Record<string, any>;
|
651
|
+
tags: TTag[];
|
652
|
+
didSpace?: Record<string, any>;
|
653
|
+
userSessions: TUserSession[];
|
654
|
+
url: string;
|
655
|
+
};
|
656
656
|
export type TUserProfile = {
|
657
|
-
did: string
|
658
|
-
avatar: string
|
659
|
-
fullName: string
|
660
|
-
email: string
|
661
|
-
}
|
657
|
+
did: string;
|
658
|
+
avatar: string;
|
659
|
+
fullName: string;
|
660
|
+
email: string;
|
661
|
+
};
|
662
662
|
export type TUserQuery = {
|
663
|
-
role: string
|
664
|
-
approved: boolean
|
665
|
-
search: string
|
666
|
-
connectedDid: string
|
667
|
-
tags: number[]
|
668
|
-
includeTags: boolean
|
669
|
-
includeUserSessions: boolean
|
670
|
-
}
|
663
|
+
role: string;
|
664
|
+
approved: boolean;
|
665
|
+
search: string;
|
666
|
+
connectedDid: string;
|
667
|
+
tags: number[];
|
668
|
+
includeTags: boolean;
|
669
|
+
includeUserSessions: boolean;
|
670
|
+
};
|
671
671
|
export type TUserSort = {
|
672
|
-
updatedAt: number
|
673
|
-
createdAt: number
|
674
|
-
lastLoginAt: number
|
675
|
-
}
|
672
|
+
updatedAt: number;
|
673
|
+
createdAt: number;
|
674
|
+
lastLoginAt: number;
|
675
|
+
};
|
676
676
|
export type TUserSession = {
|
677
|
-
id: string
|
678
|
-
visitorId: string
|
679
|
-
appPid: string
|
680
|
-
userDid: string
|
681
|
-
ua: string
|
682
|
-
passportId: string
|
683
|
-
status: string
|
684
|
-
lastLoginIp: string
|
685
|
-
extra?: Record<string, any
|
686
|
-
createdAt: number
|
687
|
-
updatedAt: number
|
688
|
-
}
|
689
|
-
export type TBlockletQuery = {
|
690
|
-
}
|
677
|
+
id: string;
|
678
|
+
visitorId: string;
|
679
|
+
appPid: string;
|
680
|
+
userDid: string;
|
681
|
+
ua: string;
|
682
|
+
passportId: string;
|
683
|
+
status: string;
|
684
|
+
lastLoginIp: string;
|
685
|
+
extra?: Record<string, any>;
|
686
|
+
createdAt: number;
|
687
|
+
updatedAt: number;
|
688
|
+
};
|
689
|
+
export type TBlockletQuery = {};
|
691
690
|
export type TRole = {
|
692
|
-
name: string
|
693
|
-
description: string
|
694
|
-
grants: string[]
|
695
|
-
title: string
|
696
|
-
isProtected: boolean
|
697
|
-
extra?: Record<string, any
|
698
|
-
}
|
691
|
+
name: string;
|
692
|
+
description: string;
|
693
|
+
grants: string[];
|
694
|
+
title: string;
|
695
|
+
isProtected: boolean;
|
696
|
+
extra?: Record<string, any>;
|
697
|
+
};
|
699
698
|
export type TRoleAcquire = {
|
700
|
-
pay: string
|
701
|
-
exchange: string
|
702
|
-
invite: boolean
|
703
|
-
transfer: boolean
|
704
|
-
request: boolean
|
705
|
-
}
|
699
|
+
pay: string;
|
700
|
+
exchange: string;
|
701
|
+
invite: boolean;
|
702
|
+
transfer: boolean;
|
703
|
+
request: boolean;
|
704
|
+
};
|
706
705
|
export type TRoleUpdate = {
|
707
|
-
name: string
|
708
|
-
title: string
|
709
|
-
description: string
|
710
|
-
extra: string
|
711
|
-
}
|
706
|
+
name: string;
|
707
|
+
title: string;
|
708
|
+
description: string;
|
709
|
+
extra: string;
|
710
|
+
};
|
712
711
|
export type TPermission = {
|
713
|
-
name: string
|
714
|
-
description: string
|
715
|
-
isProtected: boolean
|
716
|
-
}
|
712
|
+
name: string;
|
713
|
+
description: string;
|
714
|
+
isProtected: boolean;
|
715
|
+
};
|
717
716
|
export type TPassport = {
|
718
|
-
id: string
|
719
|
-
name: string
|
720
|
-
title: string
|
721
|
-
issuer?: TIssuer
|
722
|
-
type: string[]
|
723
|
-
issuanceDate: number
|
724
|
-
expirationDate: number
|
725
|
-
status: string
|
726
|
-
role: string
|
727
|
-
lastLoginAt: number
|
728
|
-
}
|
717
|
+
id: string;
|
718
|
+
name: string;
|
719
|
+
title: string;
|
720
|
+
issuer?: TIssuer;
|
721
|
+
type: string[];
|
722
|
+
issuanceDate: number;
|
723
|
+
expirationDate: number;
|
724
|
+
status: string;
|
725
|
+
role: string;
|
726
|
+
lastLoginAt: number;
|
727
|
+
};
|
729
728
|
export type TIssuer = {
|
730
|
-
id: string
|
731
|
-
name: string
|
732
|
-
pk: string
|
733
|
-
}
|
729
|
+
id: string;
|
730
|
+
name: string;
|
731
|
+
pk: string;
|
732
|
+
};
|
734
733
|
export type TPassportIssuanceInfo = {
|
735
|
-
id: string
|
736
|
-
name: string
|
737
|
-
title: string
|
738
|
-
expireDate: string
|
739
|
-
teamDid: string
|
740
|
-
ownerDid: string
|
741
|
-
}
|
734
|
+
id: string;
|
735
|
+
name: string;
|
736
|
+
title: string;
|
737
|
+
expireDate: string;
|
738
|
+
teamDid: string;
|
739
|
+
ownerDid: string;
|
740
|
+
};
|
742
741
|
export type TTrustedPassport = {
|
743
|
-
issuerDid: string
|
744
|
-
remark: string
|
745
|
-
mappings: TTrustedPassportMapping[]
|
746
|
-
}
|
742
|
+
issuerDid: string;
|
743
|
+
remark: string;
|
744
|
+
mappings: TTrustedPassportMapping[];
|
745
|
+
};
|
747
746
|
export type TTrustedFactory = {
|
748
|
-
holderDid: string
|
749
|
-
issuerDid: string
|
750
|
-
factoryAddress: string
|
751
|
-
remark: string
|
752
|
-
passport?: TTrustedPassportMappingTo
|
753
|
-
}
|
747
|
+
holderDid: string;
|
748
|
+
issuerDid: string;
|
749
|
+
factoryAddress: string;
|
750
|
+
remark: string;
|
751
|
+
passport?: TTrustedPassportMappingTo;
|
752
|
+
};
|
754
753
|
export type TTrustedPassportMapping = {
|
755
|
-
from?: TTrustedPassportMappingFrom
|
756
|
-
to?: TTrustedPassportMappingTo
|
757
|
-
}
|
754
|
+
from?: TTrustedPassportMappingFrom;
|
755
|
+
to?: TTrustedPassportMappingTo;
|
756
|
+
};
|
758
757
|
export type TTrustedPassportMappingFrom = {
|
759
|
-
passport: string
|
760
|
-
}
|
758
|
+
passport: string;
|
759
|
+
};
|
761
760
|
export type TTrustedPassportMappingTo = {
|
762
|
-
role: string
|
763
|
-
ttl: string
|
764
|
-
ttlPolicy: string
|
765
|
-
}
|
761
|
+
role: string;
|
762
|
+
ttl: string;
|
763
|
+
ttlPolicy: string;
|
764
|
+
};
|
766
765
|
export type TIPInfo = {
|
767
|
-
internalV4: string
|
768
|
-
externalV4: string
|
769
|
-
internalV6: string
|
770
|
-
externalV6: string
|
771
|
-
}
|
766
|
+
internalV4: string;
|
767
|
+
externalV4: string;
|
768
|
+
internalV6: string;
|
769
|
+
externalV6: string;
|
770
|
+
};
|
772
771
|
export type TLauncherInfo = {
|
773
|
-
did: string
|
774
|
-
type: string
|
775
|
-
provider: string
|
776
|
-
url: string
|
777
|
-
tag: string
|
778
|
-
chainHost: string
|
779
|
-
}
|
772
|
+
did: string;
|
773
|
+
type: string;
|
774
|
+
provider: string;
|
775
|
+
url: string;
|
776
|
+
tag: string;
|
777
|
+
chainHost: string;
|
778
|
+
};
|
780
779
|
export type TPaging = {
|
781
|
-
total: number
|
782
|
-
pageSize: number
|
783
|
-
pageCount: number
|
784
|
-
page: number
|
785
|
-
}
|
780
|
+
total: number;
|
781
|
+
pageSize: number;
|
782
|
+
pageCount: number;
|
783
|
+
page: number;
|
784
|
+
};
|
786
785
|
export type TAuditLogActor = {
|
787
|
-
did: string
|
788
|
-
role: string
|
789
|
-
fullName: string
|
790
|
-
}
|
786
|
+
did: string;
|
787
|
+
role: string;
|
788
|
+
fullName: string;
|
789
|
+
};
|
791
790
|
export type TAuditLogEnvItem = {
|
792
|
-
name: string
|
793
|
-
version: string
|
794
|
-
}
|
791
|
+
name: string;
|
792
|
+
version: string;
|
793
|
+
};
|
795
794
|
export type TAuditLogEnv = {
|
796
|
-
browser?: TAuditLogEnvItem
|
797
|
-
os?: TAuditLogEnvItem
|
798
|
-
}
|
795
|
+
browser?: TAuditLogEnvItem;
|
796
|
+
os?: TAuditLogEnvItem;
|
797
|
+
};
|
799
798
|
export type TAuditLog = {
|
800
|
-
id: string
|
801
|
-
scope: string
|
802
|
-
category: string
|
803
|
-
action: string
|
804
|
-
content: string
|
805
|
-
actor?: TAuditLogActor
|
806
|
-
env?: TAuditLogEnv
|
807
|
-
createdAt: number
|
808
|
-
ip: string
|
809
|
-
ua: string
|
810
|
-
}
|
799
|
+
id: string;
|
800
|
+
scope: string;
|
801
|
+
category: string;
|
802
|
+
action: string;
|
803
|
+
content: string;
|
804
|
+
actor?: TAuditLogActor;
|
805
|
+
env?: TAuditLogEnv;
|
806
|
+
createdAt: number;
|
807
|
+
ip: string;
|
808
|
+
ua: string;
|
809
|
+
};
|
811
810
|
export type TRequestLimit = {
|
812
|
-
enabled: boolean
|
813
|
-
rate: number
|
814
|
-
ipHeader: string
|
815
|
-
}
|
811
|
+
enabled: boolean;
|
812
|
+
rate: number;
|
813
|
+
ipHeader: string;
|
814
|
+
};
|
816
815
|
export type TGateway = {
|
817
|
-
requestLimit?: TRequestLimit
|
818
|
-
cacheEnabled: boolean
|
819
|
-
}
|
816
|
+
requestLimit?: TRequestLimit;
|
817
|
+
cacheEnabled: boolean;
|
818
|
+
};
|
820
819
|
export type TDelegationState = {
|
821
|
-
delegated: boolean
|
822
|
-
}
|
820
|
+
delegated: boolean;
|
821
|
+
};
|
823
822
|
export type TKeyValue = {
|
824
|
-
key: string
|
825
|
-
value?: Record<string, any
|
826
|
-
}
|
823
|
+
key: string;
|
824
|
+
value?: Record<string, any>;
|
825
|
+
};
|
827
826
|
export type TDownloadToken = {
|
828
|
-
did: string
|
829
|
-
token: string
|
830
|
-
}
|
827
|
+
did: string;
|
828
|
+
token: string;
|
829
|
+
};
|
831
830
|
export type TDependent = {
|
832
|
-
id: string
|
833
|
-
required: boolean
|
834
|
-
}
|
831
|
+
id: string;
|
832
|
+
required: boolean;
|
833
|
+
};
|
835
834
|
export type TMigration = {
|
836
|
-
script: string
|
837
|
-
version: string
|
838
|
-
executedAt: number
|
839
|
-
createdAt: number
|
840
|
-
updatedAt: number
|
841
|
-
}
|
835
|
+
script: string;
|
836
|
+
version: string;
|
837
|
+
executedAt: number;
|
838
|
+
createdAt: number;
|
839
|
+
updatedAt: number;
|
840
|
+
};
|
842
841
|
export type TSpaceGateway = {
|
843
|
-
name: string
|
844
|
-
url: string
|
845
|
-
pb_protected: string
|
846
|
-
endpoint: string
|
847
|
-
did: string
|
848
|
-
}
|
842
|
+
name: string;
|
843
|
+
url: string;
|
844
|
+
pb_protected: string;
|
845
|
+
endpoint: string;
|
846
|
+
did: string;
|
847
|
+
};
|
849
848
|
export type TBackup = {
|
850
|
-
appPid: string
|
851
|
-
userDid: string
|
852
|
-
strategy: number
|
853
|
-
sourceUrl: string
|
854
|
-
target: string
|
855
|
-
targetName: string
|
856
|
-
targetUrl: string
|
857
|
-
createdAt: number
|
858
|
-
updatedAt: number
|
859
|
-
status: number
|
860
|
-
message: string
|
861
|
-
progress: number
|
862
|
-
}
|
849
|
+
appPid: string;
|
850
|
+
userDid: string;
|
851
|
+
strategy: number;
|
852
|
+
sourceUrl: string;
|
853
|
+
target: string;
|
854
|
+
targetName: string;
|
855
|
+
targetUrl: string;
|
856
|
+
createdAt: number;
|
857
|
+
updatedAt: number;
|
858
|
+
status: number;
|
859
|
+
message: string;
|
860
|
+
progress: number;
|
861
|
+
};
|
863
862
|
export type TAutoBackup = {
|
864
|
-
enabled: boolean
|
865
|
-
}
|
863
|
+
enabled: boolean;
|
864
|
+
};
|
866
865
|
export type TAutoCheckUpdate = {
|
867
|
-
enabled: boolean
|
868
|
-
}
|
866
|
+
enabled: boolean;
|
867
|
+
};
|
869
868
|
export type TSessionConfig = {
|
870
|
-
cacheTtl: number
|
871
|
-
ttl: number
|
872
|
-
}
|
869
|
+
cacheTtl: number;
|
870
|
+
ttl: number;
|
871
|
+
};
|
873
872
|
export type TFederatedConfigDetail = {
|
874
|
-
appId: string
|
875
|
-
appPid: string
|
876
|
-
delegation: string
|
877
|
-
isMaster: boolean
|
878
|
-
autoLogin: boolean
|
879
|
-
}
|
873
|
+
appId: string;
|
874
|
+
appPid: string;
|
875
|
+
delegation: string;
|
876
|
+
isMaster: boolean;
|
877
|
+
autoLogin: boolean;
|
878
|
+
};
|
880
879
|
export type TFederatedConfigSite = {
|
881
|
-
appId: string
|
882
|
-
appPid: string
|
883
|
-
aliasDid: string[]
|
884
|
-
appName: string
|
885
|
-
appDescription: string
|
886
|
-
appUrl: string
|
887
|
-
aliasDomain: string[]
|
888
|
-
appLogo: string
|
889
|
-
appLogoRect: string
|
890
|
-
did: string
|
891
|
-
pk: string
|
892
|
-
version: string
|
893
|
-
serverId: string
|
894
|
-
serverVersion: string
|
895
|
-
appliedAt: number
|
896
|
-
status: string
|
897
|
-
isMaster: boolean
|
898
|
-
}
|
880
|
+
appId: string;
|
881
|
+
appPid: string;
|
882
|
+
aliasDid: string[];
|
883
|
+
appName: string;
|
884
|
+
appDescription: string;
|
885
|
+
appUrl: string;
|
886
|
+
aliasDomain: string[];
|
887
|
+
appLogo: string;
|
888
|
+
appLogoRect: string;
|
889
|
+
did: string;
|
890
|
+
pk: string;
|
891
|
+
version: string;
|
892
|
+
serverId: string;
|
893
|
+
serverVersion: string;
|
894
|
+
appliedAt: number;
|
895
|
+
status: string;
|
896
|
+
isMaster: boolean;
|
897
|
+
};
|
899
898
|
export type TFederatedConfig = {
|
900
|
-
config?: TFederatedConfigDetail
|
901
|
-
sites: TFederatedConfigSite[]
|
902
|
-
}
|
899
|
+
config?: TFederatedConfigDetail;
|
900
|
+
sites: TFederatedConfigSite[];
|
901
|
+
};
|
903
902
|
export type TTrafficInsight = {
|
904
|
-
did: string
|
905
|
-
date: string
|
906
|
-
totalRequests: number
|
907
|
-
validRequests: number
|
908
|
-
failedRequests: number
|
909
|
-
generationTime: number
|
910
|
-
uniqueVisitors: number
|
911
|
-
uniqueFiles: number
|
912
|
-
excludedHits: number
|
913
|
-
uniqueReferrers: number
|
914
|
-
uniqueNotFound: number
|
915
|
-
uniqueStaticFiles: number
|
916
|
-
logSize: number
|
917
|
-
bandwidth: number
|
918
|
-
}
|
903
|
+
did: string;
|
904
|
+
date: string;
|
905
|
+
totalRequests: number;
|
906
|
+
validRequests: number;
|
907
|
+
failedRequests: number;
|
908
|
+
generationTime: number;
|
909
|
+
uniqueVisitors: number;
|
910
|
+
uniqueFiles: number;
|
911
|
+
excludedHits: number;
|
912
|
+
uniqueReferrers: number;
|
913
|
+
uniqueNotFound: number;
|
914
|
+
uniqueStaticFiles: number;
|
915
|
+
logSize: number;
|
916
|
+
bandwidth: number;
|
917
|
+
};
|
919
918
|
export type TNodeRuntimeConfig = {
|
920
|
-
blockletMaxMemoryLimit: number
|
921
|
-
daemonMaxMemoryLimit: number
|
922
|
-
proxyMaxMemoryLimit: number
|
923
|
-
}
|
919
|
+
blockletMaxMemoryLimit: number;
|
920
|
+
daemonMaxMemoryLimit: number;
|
921
|
+
proxyMaxMemoryLimit: number;
|
922
|
+
};
|
924
923
|
export type TProject = {
|
925
|
-
id: string
|
926
|
-
type: enum_pb.PublishTypeMap[keyof enum_pb.PublishTypeMap]
|
927
|
-
blockletDid: string
|
928
|
-
blockletVersion: string
|
929
|
-
blockletTitle: string
|
930
|
-
blockletDescription: string
|
931
|
-
blockletLogo: string
|
932
|
-
blockletIntroduction: string
|
933
|
-
blockletScreenshots: string[]
|
934
|
-
createdAt: string
|
935
|
-
updatedAt: string
|
936
|
-
componentdid: string
|
937
|
-
lastReleaseId: string
|
938
|
-
lastReleaseFiles: string[]
|
939
|
-
connectedStores: TConnectedStore[]
|
940
|
-
tenantScope: string
|
941
|
-
createdBy: string
|
942
|
-
|
924
|
+
id: string;
|
925
|
+
type: enum_pb.PublishTypeMap[keyof enum_pb.PublishTypeMap];
|
926
|
+
blockletDid: string;
|
927
|
+
blockletVersion: string;
|
928
|
+
blockletTitle: string;
|
929
|
+
blockletDescription: string;
|
930
|
+
blockletLogo: string;
|
931
|
+
blockletIntroduction: string;
|
932
|
+
blockletScreenshots: string[];
|
933
|
+
createdAt: string;
|
934
|
+
updatedAt: string;
|
935
|
+
componentdid: string;
|
936
|
+
lastReleaseId: string;
|
937
|
+
lastReleaseFiles: string[];
|
938
|
+
connectedStores: TConnectedStore[];
|
939
|
+
tenantScope: string;
|
940
|
+
createdBy: string;
|
941
|
+
autoUpload: boolean;
|
942
|
+
possibleSameStore: boolean;
|
943
|
+
};
|
943
944
|
export type TRelease = {
|
944
|
-
id: string
|
945
|
-
projectId: string
|
946
|
-
blockletDid: string
|
947
|
-
blockletVersion: string
|
948
|
-
blockletTitle: string
|
949
|
-
blockletDescription: string
|
950
|
-
blockletLogo: string
|
951
|
-
blockletIntroduction: string
|
952
|
-
blockletScreenshots: string[]
|
953
|
-
note: string
|
954
|
-
files: string[]
|
955
|
-
status: enum_pb.ReleaseStatusMap[keyof enum_pb.ReleaseStatusMap]
|
956
|
-
createdAt: string
|
957
|
-
updatedAt: string
|
958
|
-
blockletComponents: TReleaseComponent[]
|
959
|
-
publishedStoreIds: string[]
|
960
|
-
uploadedResource: string
|
961
|
-
}
|
945
|
+
id: string;
|
946
|
+
projectId: string;
|
947
|
+
blockletDid: string;
|
948
|
+
blockletVersion: string;
|
949
|
+
blockletTitle: string;
|
950
|
+
blockletDescription: string;
|
951
|
+
blockletLogo: string;
|
952
|
+
blockletIntroduction: string;
|
953
|
+
blockletScreenshots: string[];
|
954
|
+
note: string;
|
955
|
+
files: string[];
|
956
|
+
status: enum_pb.ReleaseStatusMap[keyof enum_pb.ReleaseStatusMap];
|
957
|
+
createdAt: string;
|
958
|
+
updatedAt: string;
|
959
|
+
blockletComponents: TReleaseComponent[];
|
960
|
+
publishedStoreIds: string[];
|
961
|
+
uploadedResource: string;
|
962
|
+
};
|
962
963
|
export type TBlockletResource = {
|
963
|
-
exportApi: string
|
964
|
-
types: TBlockletResourceType[]
|
965
|
-
bundles: TBlockletResourceBundle[]
|
966
|
-
}
|
964
|
+
exportApi: string;
|
965
|
+
types: TBlockletResourceType[];
|
966
|
+
bundles: TBlockletResourceBundle[];
|
967
|
+
};
|
967
968
|
export type TBlockletResourceType = {
|
968
|
-
type: string
|
969
|
-
description: string
|
970
|
-
}
|
969
|
+
type: string;
|
970
|
+
description: string;
|
971
|
+
};
|
971
972
|
export type TBlockletResourceBundle = {
|
972
|
-
did: string
|
973
|
-
type: string
|
974
|
-
pb_public: boolean
|
975
|
-
}
|
973
|
+
did: string;
|
974
|
+
type: string;
|
975
|
+
pb_public: boolean;
|
976
|
+
};
|
976
977
|
export type TReleaseComponent = {
|
977
|
-
did: string
|
978
|
-
required: boolean
|
979
|
-
}
|
978
|
+
did: string;
|
979
|
+
required: boolean;
|
980
|
+
};
|