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