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