@abtnode/types 1.16.8-beta-b3039c78 → 1.16.8-next-d1e52353
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/enum_pb.d.ts +59 -0
- package/lib/rpc_pb.d.ts +674 -0
- package/lib/service_pb.d.ts +14 -0
- package/lib/type_pb.d.ts +736 -0
- package/package.json +2 -2
package/lib/type_pb.d.ts
ADDED
@@ -0,0 +1,736 @@
|
|
1
|
+
// package: abt_node
|
2
|
+
// file: type.proto
|
3
|
+
import * as enum_pb from "./enum_pb";
|
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
|
+
}
|
38
|
+
export type TOwnerNft = {
|
39
|
+
did: string,
|
40
|
+
holder: string,
|
41
|
+
issuer: string,
|
42
|
+
}
|
43
|
+
export type TNodeRouting = {
|
44
|
+
provider: string,
|
45
|
+
snapshotHash: string,
|
46
|
+
adminPath: string,
|
47
|
+
requestLimit?: TRequestLimit,
|
48
|
+
cacheEnabled: boolean,
|
49
|
+
}
|
50
|
+
export type TNodeInfo = {
|
51
|
+
name: string,
|
52
|
+
description: string,
|
53
|
+
autoUpgrade: boolean,
|
54
|
+
enableWelcomePage: boolean,
|
55
|
+
registerUrl: string,
|
56
|
+
webWalletUrl: string,
|
57
|
+
blockletRegistryList: TBlockletStore[],
|
58
|
+
diskAlertThreshold: number,
|
59
|
+
enableBetaRelease: boolean,
|
60
|
+
}
|
61
|
+
export type TBlockletStore = {
|
62
|
+
name: string,
|
63
|
+
description: string,
|
64
|
+
url: string,
|
65
|
+
logoUrl: string,
|
66
|
+
maintainer: string,
|
67
|
+
cdnUrl: string,
|
68
|
+
pb_protected: boolean,
|
69
|
+
id: string,
|
70
|
+
}
|
71
|
+
export type TNodeEnvInfo = {
|
72
|
+
ip?: TIPInfo,
|
73
|
+
os: string,
|
74
|
+
location: string,
|
75
|
+
docker: boolean,
|
76
|
+
image: boolean,
|
77
|
+
blockletEngines: TBlockletEngine[],
|
78
|
+
gitpod: boolean,
|
79
|
+
disk?: TDiskInfo,
|
80
|
+
}
|
81
|
+
export type TNodeHistoryItem = {
|
82
|
+
date: number,
|
83
|
+
cpu: number,
|
84
|
+
mem: number,
|
85
|
+
daemonMem: number,
|
86
|
+
serviceMem: number,
|
87
|
+
dbMem: number,
|
88
|
+
}
|
89
|
+
export type TChildConfig = {
|
90
|
+
name: string,
|
91
|
+
mountpoint: string,
|
92
|
+
}
|
93
|
+
export type TBlockletMeta = {
|
94
|
+
did: string,
|
95
|
+
name: string,
|
96
|
+
version: string,
|
97
|
+
description: string,
|
98
|
+
interfaces: TBlockletMetaInterface[],
|
99
|
+
author?: TBlockletMetaPerson,
|
100
|
+
main: string,
|
101
|
+
stats?: TBlockletStats,
|
102
|
+
homepage: string,
|
103
|
+
path: string,
|
104
|
+
community: string,
|
105
|
+
documentation: string,
|
106
|
+
support: string,
|
107
|
+
screenshots: string[],
|
108
|
+
keywords: string[],
|
109
|
+
group: string,
|
110
|
+
logo: string,
|
111
|
+
title: string,
|
112
|
+
dist?: TBlockletDist,
|
113
|
+
maintainers: TBlockletMetaPerson[],
|
114
|
+
contributors: TBlockletMetaPerson[],
|
115
|
+
repository?: TBlockletRepository,
|
116
|
+
payment?: TBlockletPayment,
|
117
|
+
nftFactory: string,
|
118
|
+
lastPublishedAt: number,
|
119
|
+
capabilities?: TBlockletCapabilities,
|
120
|
+
components: TChildConfig[],
|
121
|
+
environments: TEnvironment[],
|
122
|
+
requirements?: TRequirement,
|
123
|
+
bundleDid: string,
|
124
|
+
bundleName: string,
|
125
|
+
navigation: Record<string, any>[],
|
126
|
+
}
|
127
|
+
export type TSimpleBlockletMeta = {
|
128
|
+
did: string,
|
129
|
+
name: string,
|
130
|
+
version: string,
|
131
|
+
description: string,
|
132
|
+
title: string,
|
133
|
+
bundleDid: string,
|
134
|
+
bundleName: string,
|
135
|
+
}
|
136
|
+
export type TBlockletRepository = {
|
137
|
+
type: string,
|
138
|
+
url: string,
|
139
|
+
}
|
140
|
+
export type TBlockletCapabilities = {
|
141
|
+
clusterMode: boolean,
|
142
|
+
component: boolean,
|
143
|
+
navigation: boolean,
|
144
|
+
didSpace: string,
|
145
|
+
}
|
146
|
+
export type TBlockletPayment = {
|
147
|
+
price: TBlockletPaymentPrice[],
|
148
|
+
share: TBlockletPaymentShare[],
|
149
|
+
}
|
150
|
+
export type TBlockletPaymentPrice = {
|
151
|
+
address: string,
|
152
|
+
value: string,
|
153
|
+
symbol: string,
|
154
|
+
}
|
155
|
+
export type TBlockletPaymentShare = {
|
156
|
+
address: string,
|
157
|
+
name: string,
|
158
|
+
value: string,
|
159
|
+
}
|
160
|
+
export type TBlockletMetaInterface = {
|
161
|
+
type: string,
|
162
|
+
name: string,
|
163
|
+
path: string,
|
164
|
+
prefix: string,
|
165
|
+
protocol: string,
|
166
|
+
port?: Record<string, any>,
|
167
|
+
services: TBlockletMetaService[],
|
168
|
+
}
|
169
|
+
export type TBlockletMetaPerson = {
|
170
|
+
name: string,
|
171
|
+
email: string,
|
172
|
+
url: string,
|
173
|
+
}
|
174
|
+
export type TBlockletDist = {
|
175
|
+
tarball: string,
|
176
|
+
integrity: string,
|
177
|
+
}
|
178
|
+
export type TUpdateList = {
|
179
|
+
id: string,
|
180
|
+
meta?: TBlockletMeta,
|
181
|
+
}
|
182
|
+
export type TBlockletPreUpdateInfo = {
|
183
|
+
updateId: string,
|
184
|
+
updateList: TUpdateList[],
|
185
|
+
}
|
186
|
+
export type TBlockletStats = {
|
187
|
+
downloads: number,
|
188
|
+
star: number,
|
189
|
+
purchases: number,
|
190
|
+
}
|
191
|
+
export type TBlockletEngine = {
|
192
|
+
name: string,
|
193
|
+
displayName: string,
|
194
|
+
description: string,
|
195
|
+
version: string,
|
196
|
+
available: boolean,
|
197
|
+
visible: boolean,
|
198
|
+
}
|
199
|
+
export type TBlockletExposeService = {
|
200
|
+
protocol: string,
|
201
|
+
port: number,
|
202
|
+
upstreamPort: number,
|
203
|
+
}
|
204
|
+
export type TBlockletController = {
|
205
|
+
id: string,
|
206
|
+
nftId: string,
|
207
|
+
nftOwner: string,
|
208
|
+
chainHost: string,
|
209
|
+
expireDate: number,
|
210
|
+
}
|
211
|
+
export type TBlockletMigrateRecord = {
|
212
|
+
appSk: string,
|
213
|
+
appDid: string,
|
214
|
+
at: string,
|
215
|
+
}
|
216
|
+
export type TBlockletState = {
|
217
|
+
meta?: TBlockletMeta,
|
218
|
+
status: enum_pb.BlockletStatusMap[keyof enum_pb.BlockletStatusMap],
|
219
|
+
createdAt: number,
|
220
|
+
installedAt: number,
|
221
|
+
startedAt: number,
|
222
|
+
pausedAt: number,
|
223
|
+
stoppedAt: number,
|
224
|
+
environments: TConfigEntry[],
|
225
|
+
configs: TConfigEntry[],
|
226
|
+
diskInfo?: TDiskInfo,
|
227
|
+
runtimeInfo?: TRuntimeInfo,
|
228
|
+
appRuntimeInfo?: TRuntimeInfo,
|
229
|
+
source: enum_pb.BlockletSourceMap[keyof enum_pb.BlockletSourceMap],
|
230
|
+
deployedFrom: string,
|
231
|
+
bundleSource?: Record<string, any>,
|
232
|
+
port: number,
|
233
|
+
engine?: TBlockletEngine,
|
234
|
+
mode: string,
|
235
|
+
ports?: Record<string, any>,
|
236
|
+
children: TComponentState[],
|
237
|
+
trustedPassports: TTrustedPassport[],
|
238
|
+
trustedFactories: TTrustedFactory[],
|
239
|
+
enablePassportIssuance: boolean,
|
240
|
+
dynamic: boolean,
|
241
|
+
mountPoint: string,
|
242
|
+
settings?: TBlockletSettings,
|
243
|
+
appDid: string,
|
244
|
+
site?: TRoutingSite,
|
245
|
+
controller?: TBlockletController,
|
246
|
+
migratedFrom: TBlockletMigrateRecord[],
|
247
|
+
appPid: string,
|
248
|
+
externalSk: boolean,
|
249
|
+
externalSkSource: string,
|
250
|
+
structVersion: string,
|
251
|
+
}
|
252
|
+
export type TBlockletExtra = {
|
253
|
+
did: string,
|
254
|
+
appDid: string,
|
255
|
+
meta?: TSimpleBlockletMeta,
|
256
|
+
configs: TConfigEntry[],
|
257
|
+
children: TChildExtraConfigs[],
|
258
|
+
settings?: TBlockletSettings,
|
259
|
+
}
|
260
|
+
export type TChildExtraConfigs = {
|
261
|
+
did: string,
|
262
|
+
configs: TConfigEntry[],
|
263
|
+
}
|
264
|
+
export type TComponentState = {
|
265
|
+
meta?: TBlockletMeta,
|
266
|
+
status: enum_pb.BlockletStatusMap[keyof enum_pb.BlockletStatusMap],
|
267
|
+
createdAt: number,
|
268
|
+
installedAt: number,
|
269
|
+
startedAt: number,
|
270
|
+
pausedAt: number,
|
271
|
+
stoppedAt: number,
|
272
|
+
environments: TConfigEntry[],
|
273
|
+
configs: TConfigEntry[],
|
274
|
+
diskInfo?: TDiskInfo,
|
275
|
+
runtimeInfo?: 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
|
+
dynamic: boolean,
|
285
|
+
mountPoint: string,
|
286
|
+
dependents: TDependent[],
|
287
|
+
}
|
288
|
+
export type TSimpleBlockletState = {
|
289
|
+
meta?: TSimpleBlockletMeta,
|
290
|
+
status: enum_pb.BlockletStatusMap[keyof enum_pb.BlockletStatusMap],
|
291
|
+
deployedFrom: string,
|
292
|
+
mountPoint: string,
|
293
|
+
deletedAt: number,
|
294
|
+
}
|
295
|
+
export type TBlockletSettings = {
|
296
|
+
initialized: boolean,
|
297
|
+
enablePassportIssuance: boolean,
|
298
|
+
trustedPassports: TTrustedPassport[],
|
299
|
+
whoCanAccess: string,
|
300
|
+
owner?: TWalletInfo,
|
301
|
+
children: TSimpleBlockletState[],
|
302
|
+
publicToStore: boolean,
|
303
|
+
storeList: TBlockletStore[],
|
304
|
+
navigations: TConfigNavigation[],
|
305
|
+
oauth?: Record<string, any>,
|
306
|
+
trustedFactories: TTrustedFactory[],
|
307
|
+
notification?: Record<string, any>,
|
308
|
+
}
|
309
|
+
export type TBlockletMetaService = {
|
310
|
+
name: string,
|
311
|
+
config?: Record<string, any>,
|
312
|
+
}
|
313
|
+
export type TBlockletVersion = {
|
314
|
+
version: string,
|
315
|
+
publishedAt: number,
|
316
|
+
}
|
317
|
+
export type TBlockletBackupState = {
|
318
|
+
appDid: string,
|
319
|
+
appPid: string,
|
320
|
+
name: string,
|
321
|
+
createdAt: number,
|
322
|
+
}
|
323
|
+
export type TBlockletDiff = {
|
324
|
+
hasBlocklet: boolean,
|
325
|
+
version: string,
|
326
|
+
addSet: string[],
|
327
|
+
changeSet: string[],
|
328
|
+
deleteSet: string[],
|
329
|
+
}
|
330
|
+
export type TConfigEntry = {
|
331
|
+
key: string,
|
332
|
+
value: string,
|
333
|
+
required: boolean,
|
334
|
+
description: string,
|
335
|
+
validation: string,
|
336
|
+
secure: boolean,
|
337
|
+
custom: boolean,
|
338
|
+
shared: boolean,
|
339
|
+
}
|
340
|
+
export type TConfigNavigation = {
|
341
|
+
id: string,
|
342
|
+
title: string,
|
343
|
+
link: string,
|
344
|
+
icon: string,
|
345
|
+
section: string,
|
346
|
+
component: string,
|
347
|
+
parent: string,
|
348
|
+
role: string,
|
349
|
+
visible: boolean,
|
350
|
+
from: string,
|
351
|
+
}
|
352
|
+
export type TEnvironment = {
|
353
|
+
name: string,
|
354
|
+
description: string,
|
355
|
+
pb_default: string,
|
356
|
+
required: boolean,
|
357
|
+
secure: boolean,
|
358
|
+
validation: string,
|
359
|
+
shared: boolean,
|
360
|
+
}
|
361
|
+
export type TRequirement = {
|
362
|
+
server: string,
|
363
|
+
os?: Record<string, any>,
|
364
|
+
cpu?: Record<string, any>,
|
365
|
+
fuels: TFuel[],
|
366
|
+
}
|
367
|
+
export type TFuel = {
|
368
|
+
endpoint: string,
|
369
|
+
address: string,
|
370
|
+
value: string,
|
371
|
+
reason: string,
|
372
|
+
}
|
373
|
+
export type TWalletInfo = {
|
374
|
+
did: string,
|
375
|
+
pk: string,
|
376
|
+
}
|
377
|
+
export type TDiskInfo = {
|
378
|
+
app: number,
|
379
|
+
data: number,
|
380
|
+
log: number,
|
381
|
+
cache: number,
|
382
|
+
blocklets: number,
|
383
|
+
}
|
384
|
+
export type TRuntimeInfo = {
|
385
|
+
pid: string,
|
386
|
+
port: string,
|
387
|
+
uptime: string,
|
388
|
+
memoryUsage: number,
|
389
|
+
cpuUsage: number,
|
390
|
+
}
|
391
|
+
export type THashFile = {
|
392
|
+
file: string,
|
393
|
+
hash: string,
|
394
|
+
}
|
395
|
+
export type TBlockletHistoryItem = {
|
396
|
+
date: number,
|
397
|
+
cpu: number,
|
398
|
+
mem: number,
|
399
|
+
}
|
400
|
+
export type TNotification = {
|
401
|
+
sender: string,
|
402
|
+
receiver: string,
|
403
|
+
title: string,
|
404
|
+
description: string,
|
405
|
+
action: string,
|
406
|
+
entityType: string,
|
407
|
+
entityId: string,
|
408
|
+
read: boolean,
|
409
|
+
createdAt: number,
|
410
|
+
updatedAt: number,
|
411
|
+
id: string,
|
412
|
+
severity: string,
|
413
|
+
}
|
414
|
+
export type TRoutingRuleTo = {
|
415
|
+
port: number,
|
416
|
+
type: enum_pb.BackendServiceTypeMap[keyof enum_pb.BackendServiceTypeMap],
|
417
|
+
did: string,
|
418
|
+
url: string,
|
419
|
+
redirectCode: number,
|
420
|
+
interfaceName: string,
|
421
|
+
componentId: string,
|
422
|
+
}
|
423
|
+
export type TRoutingRuleFrom = {
|
424
|
+
pathPrefix: string,
|
425
|
+
header: TRoutingRuleHeader[],
|
426
|
+
}
|
427
|
+
export type TRoutingRule = {
|
428
|
+
id: string,
|
429
|
+
from?: TRoutingRuleFrom,
|
430
|
+
to?: TRoutingRuleTo,
|
431
|
+
isProtected: boolean,
|
432
|
+
}
|
433
|
+
export type TRoutingSite = {
|
434
|
+
id: string,
|
435
|
+
domain: string,
|
436
|
+
domainAliases: Record<string, any>[],
|
437
|
+
rules: TRoutingRule[],
|
438
|
+
isProtected: boolean,
|
439
|
+
corsAllowedOrigins: string[],
|
440
|
+
}
|
441
|
+
export type TRoutingRuleHeader = {
|
442
|
+
key: string,
|
443
|
+
value: string,
|
444
|
+
type: enum_pb.HeaderMatchTypeMap[keyof enum_pb.HeaderMatchTypeMap],
|
445
|
+
}
|
446
|
+
export type TRoutingSnapshot = {
|
447
|
+
hash: string,
|
448
|
+
tree: string,
|
449
|
+
message: string,
|
450
|
+
author: string,
|
451
|
+
createdAt: number,
|
452
|
+
}
|
453
|
+
export type TRoutingProvider = {
|
454
|
+
name: string,
|
455
|
+
description: string,
|
456
|
+
running: boolean,
|
457
|
+
available: boolean,
|
458
|
+
error: string,
|
459
|
+
}
|
460
|
+
export type TCertificate = {
|
461
|
+
name: string,
|
462
|
+
domain: string,
|
463
|
+
id: string,
|
464
|
+
meta?: TCertificateMeta,
|
465
|
+
matchedSites: TMatchedSites[],
|
466
|
+
createdAt: number,
|
467
|
+
updatedAt: number,
|
468
|
+
isProtected: boolean,
|
469
|
+
source: string,
|
470
|
+
status: string,
|
471
|
+
}
|
472
|
+
export type TCertificateMeta = {
|
473
|
+
issuer?: TCertificateIssuer,
|
474
|
+
sans: string[],
|
475
|
+
validFrom: number,
|
476
|
+
validTo: number,
|
477
|
+
fingerprintAlg: string,
|
478
|
+
fingerprint: string,
|
479
|
+
validityPeriod: number,
|
480
|
+
}
|
481
|
+
export type TMatchedSites = {
|
482
|
+
id: string,
|
483
|
+
domain: string,
|
484
|
+
}
|
485
|
+
export type TCertificateIssuer = {
|
486
|
+
countryName: string,
|
487
|
+
organizationName: string,
|
488
|
+
commonName: string,
|
489
|
+
}
|
490
|
+
export type TAccessKey = {
|
491
|
+
accessKeyId: string,
|
492
|
+
accessKeyPublic: string,
|
493
|
+
remark: string,
|
494
|
+
passport: string,
|
495
|
+
createdAt: number,
|
496
|
+
lastUsedAt: number,
|
497
|
+
createdBy: string,
|
498
|
+
updatedBy: string,
|
499
|
+
}
|
500
|
+
export type TCreateAccessKey = {
|
501
|
+
accessKeyId: string,
|
502
|
+
accessKeySecret: string,
|
503
|
+
remark: string,
|
504
|
+
passport: string,
|
505
|
+
createdAt: number,
|
506
|
+
lastUsedAt: number,
|
507
|
+
}
|
508
|
+
export type TWebHookSender = {
|
509
|
+
type: enum_pb.SenderTypeMap[keyof enum_pb.SenderTypeMap],
|
510
|
+
title: string,
|
511
|
+
description: string,
|
512
|
+
params: TWebHookParam[],
|
513
|
+
}
|
514
|
+
export type TWebHook = {
|
515
|
+
type: enum_pb.SenderTypeMap[keyof enum_pb.SenderTypeMap],
|
516
|
+
id: string,
|
517
|
+
params: TWebHookParam[],
|
518
|
+
createdAt: number,
|
519
|
+
updatedAt: number,
|
520
|
+
}
|
521
|
+
export type TWebHookParam = {
|
522
|
+
name: string,
|
523
|
+
description: string,
|
524
|
+
required: boolean,
|
525
|
+
defaultValue: string,
|
526
|
+
value: string,
|
527
|
+
type: string,
|
528
|
+
}
|
529
|
+
export type TTeam = {
|
530
|
+
teamDid: string,
|
531
|
+
}
|
532
|
+
export type TInviteInfo = {
|
533
|
+
inviteId: string,
|
534
|
+
role: string,
|
535
|
+
remark: string,
|
536
|
+
expireDate: string,
|
537
|
+
inviter?: TUserInfo,
|
538
|
+
teamDid: string,
|
539
|
+
interfaceName: string,
|
540
|
+
}
|
541
|
+
export type TConnectedAccount = {
|
542
|
+
provider: string,
|
543
|
+
did: string,
|
544
|
+
pk: string,
|
545
|
+
id: string,
|
546
|
+
lastLoginAt: number,
|
547
|
+
}
|
548
|
+
export type TUserInfo = {
|
549
|
+
did: string,
|
550
|
+
pk: string,
|
551
|
+
role: string,
|
552
|
+
avatar: string,
|
553
|
+
fullName: string,
|
554
|
+
email: string,
|
555
|
+
approved: boolean,
|
556
|
+
createdAt: number,
|
557
|
+
updatedAt: number,
|
558
|
+
locale: string,
|
559
|
+
passports: TPassport[],
|
560
|
+
firstLoginAt: number,
|
561
|
+
lastLoginAt: number,
|
562
|
+
remark: string,
|
563
|
+
lastLoginIp: string,
|
564
|
+
sourceProvider: string,
|
565
|
+
connectedAccounts: TConnectedAccount[],
|
566
|
+
meta?: Record<string, any>,
|
567
|
+
}
|
568
|
+
export type TUserQuery = {
|
569
|
+
role: string,
|
570
|
+
approved: boolean,
|
571
|
+
search: string,
|
572
|
+
connectedDid: string,
|
573
|
+
}
|
574
|
+
export type TUserSort = {
|
575
|
+
updatedAt: number,
|
576
|
+
createdAt: number,
|
577
|
+
lastLoginAt: number,
|
578
|
+
}
|
579
|
+
export type TBlockletQuery = {
|
580
|
+
controller?: TBlockletController,
|
581
|
+
}
|
582
|
+
export type TRole = {
|
583
|
+
name: string,
|
584
|
+
description: string,
|
585
|
+
grants: string[],
|
586
|
+
title: string,
|
587
|
+
isProtected: boolean,
|
588
|
+
}
|
589
|
+
export type TPermission = {
|
590
|
+
name: string,
|
591
|
+
description: string,
|
592
|
+
isProtected: boolean,
|
593
|
+
}
|
594
|
+
export type TPassport = {
|
595
|
+
id: string,
|
596
|
+
name: string,
|
597
|
+
title: string,
|
598
|
+
issuer?: TIssuer,
|
599
|
+
type: string[],
|
600
|
+
issuanceDate: number,
|
601
|
+
expirationDate: number,
|
602
|
+
status: string,
|
603
|
+
role: string,
|
604
|
+
lastLoginAt: number,
|
605
|
+
}
|
606
|
+
export type TIssuer = {
|
607
|
+
id: string,
|
608
|
+
name: string,
|
609
|
+
pk: string,
|
610
|
+
}
|
611
|
+
export type TPassportIssuanceInfo = {
|
612
|
+
id: string,
|
613
|
+
name: string,
|
614
|
+
title: string,
|
615
|
+
expireDate: string,
|
616
|
+
teamDid: string,
|
617
|
+
ownerDid: string,
|
618
|
+
}
|
619
|
+
export type TTrustedPassport = {
|
620
|
+
issuerDid: string,
|
621
|
+
remark: string,
|
622
|
+
mappings: TTrustedPassportMapping[],
|
623
|
+
}
|
624
|
+
export type TTrustedFactory = {
|
625
|
+
holderDid: string,
|
626
|
+
issuerDid: string,
|
627
|
+
factoryAddress: string,
|
628
|
+
remark: string,
|
629
|
+
passport?: TTrustedPassportMappingTo,
|
630
|
+
}
|
631
|
+
export type TTrustedPassportMapping = {
|
632
|
+
from?: TTrustedPassportMappingFrom,
|
633
|
+
to?: TTrustedPassportMappingTo,
|
634
|
+
}
|
635
|
+
export type TTrustedPassportMappingFrom = {
|
636
|
+
passport: string,
|
637
|
+
}
|
638
|
+
export type TTrustedPassportMappingTo = {
|
639
|
+
role: string,
|
640
|
+
ttl: string,
|
641
|
+
ttlPolicy: string,
|
642
|
+
}
|
643
|
+
export type TIPInfo = {
|
644
|
+
internalV4: string,
|
645
|
+
externalV4: string,
|
646
|
+
internalV6: string,
|
647
|
+
externalV6: string,
|
648
|
+
}
|
649
|
+
export type TLauncherInfo = {
|
650
|
+
did: string,
|
651
|
+
type: string,
|
652
|
+
provider: string,
|
653
|
+
url: string,
|
654
|
+
tag: string,
|
655
|
+
chainHost: string,
|
656
|
+
}
|
657
|
+
export type TPaging = {
|
658
|
+
total: number,
|
659
|
+
pageSize: number,
|
660
|
+
pageCount: number,
|
661
|
+
page: number,
|
662
|
+
}
|
663
|
+
export type TAuditLogActor = {
|
664
|
+
did: string,
|
665
|
+
role: string,
|
666
|
+
fullName: string,
|
667
|
+
}
|
668
|
+
export type TAuditLogEnvItem = {
|
669
|
+
name: string,
|
670
|
+
version: string,
|
671
|
+
}
|
672
|
+
export type TAuditLogEnv = {
|
673
|
+
browser?: TAuditLogEnvItem,
|
674
|
+
os?: TAuditLogEnvItem,
|
675
|
+
}
|
676
|
+
export type TAuditLog = {
|
677
|
+
id: string,
|
678
|
+
scope: string,
|
679
|
+
category: string,
|
680
|
+
action: string,
|
681
|
+
content: string,
|
682
|
+
actor?: TAuditLogActor,
|
683
|
+
env?: TAuditLogEnv,
|
684
|
+
createdAt: number,
|
685
|
+
ip: string,
|
686
|
+
ua: string,
|
687
|
+
}
|
688
|
+
export type TRequestLimit = {
|
689
|
+
enabled: boolean,
|
690
|
+
rate: number,
|
691
|
+
ipHeader: string,
|
692
|
+
}
|
693
|
+
export type TGateway = {
|
694
|
+
requestLimit?: TRequestLimit,
|
695
|
+
cacheEnabled: boolean,
|
696
|
+
}
|
697
|
+
export type TDelegationState = {
|
698
|
+
delegated: boolean,
|
699
|
+
}
|
700
|
+
export type TKeyValue = {
|
701
|
+
key: string,
|
702
|
+
value?: Record<string, any>,
|
703
|
+
}
|
704
|
+
export type TDownloadToken = {
|
705
|
+
did: string,
|
706
|
+
token: string,
|
707
|
+
}
|
708
|
+
export type TDependent = {
|
709
|
+
id: string,
|
710
|
+
required: boolean,
|
711
|
+
}
|
712
|
+
export type TMigration = {
|
713
|
+
script: string,
|
714
|
+
version: string,
|
715
|
+
executedAt: number,
|
716
|
+
createdAt: number,
|
717
|
+
updatedAt: number,
|
718
|
+
}
|
719
|
+
export type TSpaceGateway = {
|
720
|
+
name: string,
|
721
|
+
url: string,
|
722
|
+
pb_protected: string,
|
723
|
+
endpoint: string,
|
724
|
+
}
|
725
|
+
export type TBackup = {
|
726
|
+
appPid: string,
|
727
|
+
userDid: string,
|
728
|
+
strategy: number,
|
729
|
+
sourceUrl: string,
|
730
|
+
target: string,
|
731
|
+
targetUrl: string,
|
732
|
+
createdAt: number,
|
733
|
+
updatedAt: number,
|
734
|
+
status: number,
|
735
|
+
message: string,
|
736
|
+
}
|