@abtnode/types 1.16.8-beta-186fd5aa → 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/enum_pb.d.ts
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
// package: abt_node
|
2
|
+
// file: enum.proto
|
3
|
+
export interface StatusCodeMap {
|
4
|
+
OK: 0;
|
5
|
+
BLOCKLET_NOT_FOUND: 1;
|
6
|
+
BLOCKLET_NOT_PURCHASED: 2;
|
7
|
+
FORBIDDEN: 403;
|
8
|
+
INTERNAL: 500;
|
9
|
+
TIMEOUT: 504;
|
10
|
+
}
|
11
|
+
export interface BlockletStatusMap {
|
12
|
+
ADDED: 0;
|
13
|
+
DOWNLOADING: 1;
|
14
|
+
DOWNLOADED: 2;
|
15
|
+
INSTALLING: 3;
|
16
|
+
INSTALLED: 4;
|
17
|
+
STARTING: 5;
|
18
|
+
RUNNING: 6;
|
19
|
+
STOPPING: 7;
|
20
|
+
STOPPED: 8;
|
21
|
+
ERROR: 9;
|
22
|
+
UPGRADING: 10;
|
23
|
+
RESTARTING: 11;
|
24
|
+
CORRUPTED: 12;
|
25
|
+
WAITING: 13;
|
26
|
+
DELETED: 14;
|
27
|
+
UNKNOWN: 15;
|
28
|
+
}
|
29
|
+
export interface BlockletSourceMap {
|
30
|
+
REGISTRY: 0;
|
31
|
+
LOCAL: 1;
|
32
|
+
UPLOAD: 2;
|
33
|
+
URL: 3;
|
34
|
+
CUSTOM: 4;
|
35
|
+
}
|
36
|
+
export interface HeaderMatchTypeMap {
|
37
|
+
EXACT: 0;
|
38
|
+
PARTIAL: 1;
|
39
|
+
REGEXP: 2;
|
40
|
+
}
|
41
|
+
export interface BackendServiceTypeMap {
|
42
|
+
DAEMON: 0;
|
43
|
+
BLOCKLET: 1;
|
44
|
+
REDIRECT: 2;
|
45
|
+
NONE: 3;
|
46
|
+
GENERAL_PROXY: 4;
|
47
|
+
DIRECT_RESPONSE: 5;
|
48
|
+
}
|
49
|
+
export interface UploadMap {
|
50
|
+
SCALAR: 0;
|
51
|
+
}
|
52
|
+
export interface SenderTypeMap {
|
53
|
+
SLACK: 0;
|
54
|
+
API: 1;
|
55
|
+
}
|
56
|
+
export interface BackupToMap {
|
57
|
+
SPACES: 0;
|
58
|
+
DISK: 1;
|
59
|
+
}
|
package/lib/rpc_pb.d.ts
ADDED
@@ -0,0 +1,674 @@
|
|
1
|
+
// package: abt_node
|
2
|
+
// file: rpc.proto
|
3
|
+
import * as enum_pb from "./enum_pb";
|
4
|
+
import * as type_pb from "./type_pb";
|
5
|
+
export type TEmptyRequest = {
|
6
|
+
}
|
7
|
+
export type TGeneralResponse = {
|
8
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
9
|
+
}
|
10
|
+
export type TBooleanResponse = {
|
11
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
12
|
+
result: boolean,
|
13
|
+
}
|
14
|
+
export type TRequestBlocklet = {
|
15
|
+
did: string,
|
16
|
+
}
|
17
|
+
export type TRequestBlockletDetail = {
|
18
|
+
did: string,
|
19
|
+
attachRuntimeInfo: boolean,
|
20
|
+
}
|
21
|
+
export type TResponseBlocklet = {
|
22
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
23
|
+
blocklet?: type_pb.TBlockletState,
|
24
|
+
}
|
25
|
+
export type TRequestBlockletMetaFromUrl = {
|
26
|
+
url: string,
|
27
|
+
checkPrice: boolean,
|
28
|
+
}
|
29
|
+
export type TResponseBlockletMetaFromUrl = {
|
30
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
31
|
+
meta?: type_pb.TBlockletMeta,
|
32
|
+
isFree: boolean,
|
33
|
+
inStore: boolean,
|
34
|
+
registryUrl: string,
|
35
|
+
}
|
36
|
+
export type TRequestBlockletForLauncher = {
|
37
|
+
did: string,
|
38
|
+
}
|
39
|
+
export type TResponseBlockletForLauncher = {
|
40
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
41
|
+
did: string,
|
42
|
+
isInstalled: boolean,
|
43
|
+
isRunning: boolean,
|
44
|
+
}
|
45
|
+
export type TRequestBlockletDiff = {
|
46
|
+
did: string,
|
47
|
+
hashFiles: type_pb.THashFile[],
|
48
|
+
rootDid: string,
|
49
|
+
}
|
50
|
+
export type TResponseBlockletDiff = {
|
51
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
52
|
+
blockletDiff?: type_pb.TBlockletDiff,
|
53
|
+
}
|
54
|
+
export type TRequestGetBlocklets = {
|
55
|
+
usecache: boolean,
|
56
|
+
query?: type_pb.TBlockletQuery,
|
57
|
+
}
|
58
|
+
export type TResponseGetBlocklets = {
|
59
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
60
|
+
blocklets: type_pb.TBlockletState[],
|
61
|
+
}
|
62
|
+
export type TResponseBlockletsFromBackup = {
|
63
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
64
|
+
backups: type_pb.TBlockletBackupState[],
|
65
|
+
}
|
66
|
+
export type TRequestGetNodeInfo = {
|
67
|
+
}
|
68
|
+
export type TResponseGetNodeInfo = {
|
69
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
70
|
+
info?: type_pb.TNodeState,
|
71
|
+
}
|
72
|
+
export type TResponseGetNodeEnv = {
|
73
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
74
|
+
info?: type_pb.TNodeEnvInfo,
|
75
|
+
}
|
76
|
+
export type TRequestResetNode = {
|
77
|
+
owner: boolean,
|
78
|
+
blocklets: boolean,
|
79
|
+
webhooks: boolean,
|
80
|
+
certificates: boolean,
|
81
|
+
accessKeys: boolean,
|
82
|
+
blockletExtras: boolean,
|
83
|
+
routingRules: boolean,
|
84
|
+
users: boolean,
|
85
|
+
invitations: boolean,
|
86
|
+
}
|
87
|
+
export type TResponseResetNode = {
|
88
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
89
|
+
}
|
90
|
+
export type TRequestDelegationState = {
|
91
|
+
}
|
92
|
+
export type TResponseDelegationState = {
|
93
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
94
|
+
state?: type_pb.TDelegationState,
|
95
|
+
}
|
96
|
+
export type TRequestConfigBlocklet = {
|
97
|
+
did: string[],
|
98
|
+
configs: type_pb.TConfigEntry[],
|
99
|
+
}
|
100
|
+
export type TRequestVersionedBlocklet = {
|
101
|
+
type: string,
|
102
|
+
did: string,
|
103
|
+
storeUrl: string,
|
104
|
+
url: string,
|
105
|
+
file: enum_pb.UploadMap[keyof enum_pb.UploadMap],
|
106
|
+
diffVersion: string,
|
107
|
+
deleteSet: string[],
|
108
|
+
title: string,
|
109
|
+
description: string,
|
110
|
+
startImmediately: boolean,
|
111
|
+
downloadTokenList: type_pb.TDownloadToken[],
|
112
|
+
}
|
113
|
+
export type TRequestInstallComponent = {
|
114
|
+
rootDid: string,
|
115
|
+
mountPoint: string,
|
116
|
+
url: string,
|
117
|
+
file: enum_pb.UploadMap[keyof enum_pb.UploadMap],
|
118
|
+
did: string,
|
119
|
+
diffVersion: string,
|
120
|
+
deleteSet: string[],
|
121
|
+
name: string,
|
122
|
+
title: string,
|
123
|
+
configs: type_pb.TConfigEntry[],
|
124
|
+
downloadTokenList: type_pb.TDownloadToken[],
|
125
|
+
skipNavigation: boolean,
|
126
|
+
}
|
127
|
+
export type TResponseCheckComponentsForUpdates = {
|
128
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
129
|
+
preUpdateInfo?: type_pb.TBlockletPreUpdateInfo,
|
130
|
+
}
|
131
|
+
export type TRequestUpdateComponents = {
|
132
|
+
updateId: string,
|
133
|
+
rootDid: string,
|
134
|
+
selectedComponents: string[],
|
135
|
+
}
|
136
|
+
export type TRequestConfigPublicToStore = {
|
137
|
+
did: string,
|
138
|
+
publicToStore: boolean,
|
139
|
+
}
|
140
|
+
export type TRequestConfigNavigations = {
|
141
|
+
did: string,
|
142
|
+
navigations: type_pb.TConfigNavigation[],
|
143
|
+
}
|
144
|
+
export type TRequestConfigOAuth = {
|
145
|
+
did: string,
|
146
|
+
oauth: string,
|
147
|
+
}
|
148
|
+
export type TRequestConfigNotifiaction = {
|
149
|
+
did: string,
|
150
|
+
notification: string,
|
151
|
+
}
|
152
|
+
export type TRequestUpdateWhoCanAccess = {
|
153
|
+
did: string[],
|
154
|
+
whoCanAccess: string,
|
155
|
+
}
|
156
|
+
export type TRequestUpdateComponentTitle = {
|
157
|
+
did: string,
|
158
|
+
rootDid: string,
|
159
|
+
title: string,
|
160
|
+
}
|
161
|
+
export type TRequestUpdateComponentMountPoint = {
|
162
|
+
did: string,
|
163
|
+
rootDid: string,
|
164
|
+
mountPoint: string,
|
165
|
+
}
|
166
|
+
export type TRequestBackupBlocklet = {
|
167
|
+
appDid: string,
|
168
|
+
to: enum_pb.BackupToMap[keyof enum_pb.BackupToMap],
|
169
|
+
}
|
170
|
+
export type TRequestRestoreBlocklet = {
|
171
|
+
endpoint: string,
|
172
|
+
appDid: string,
|
173
|
+
delegation: string,
|
174
|
+
password: Uint8Array | string,
|
175
|
+
wallet?: Record<string, any>,
|
176
|
+
from: enum_pb.BackupToMap[keyof enum_pb.BackupToMap],
|
177
|
+
appPid: string,
|
178
|
+
}
|
179
|
+
export type TRequestDeleteBlocklet = {
|
180
|
+
did: string,
|
181
|
+
keepData: boolean,
|
182
|
+
}
|
183
|
+
export type TRequestDeleteComponent = {
|
184
|
+
did: string,
|
185
|
+
rootDid: string,
|
186
|
+
keepData: boolean,
|
187
|
+
}
|
188
|
+
export type TRequestRegistry = {
|
189
|
+
}
|
190
|
+
export type TRequestBlockletMeta = {
|
191
|
+
did: string,
|
192
|
+
storeUrl: string,
|
193
|
+
}
|
194
|
+
export type TResponseBlockletMeta = {
|
195
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
196
|
+
meta?: Record<string, any>,
|
197
|
+
}
|
198
|
+
export type TRequestGetNotifications = {
|
199
|
+
receiver: string,
|
200
|
+
sender: string,
|
201
|
+
read: boolean,
|
202
|
+
paging?: type_pb.TPaging,
|
203
|
+
}
|
204
|
+
export type TResponseGetNotifications = {
|
205
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
206
|
+
list: type_pb.TNotification[],
|
207
|
+
paging?: type_pb.TPaging,
|
208
|
+
}
|
209
|
+
export type TRequestReadNotifications = {
|
210
|
+
id: string,
|
211
|
+
}
|
212
|
+
export type TResponseReadNotifications = {
|
213
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
214
|
+
numAffected: number,
|
215
|
+
}
|
216
|
+
export type TRequestNodeRouting = {
|
217
|
+
provider: string,
|
218
|
+
snapshotHash: string,
|
219
|
+
forceRepopulate: boolean,
|
220
|
+
}
|
221
|
+
export type TRequestAddRoutingSite = {
|
222
|
+
domain: string,
|
223
|
+
type: string,
|
224
|
+
rules: type_pb.TRoutingRule[],
|
225
|
+
}
|
226
|
+
export type TRequestUpdateRoutingSite = {
|
227
|
+
id: string,
|
228
|
+
corsAllowedOrigins: string[],
|
229
|
+
domain: string,
|
230
|
+
teamDid: string,
|
231
|
+
}
|
232
|
+
export type TRequestAddDomainAlias = {
|
233
|
+
id: string,
|
234
|
+
domainAlias: string,
|
235
|
+
force: boolean,
|
236
|
+
teamDid: string,
|
237
|
+
}
|
238
|
+
export type TRequestDeleteDomainAlias = {
|
239
|
+
id: string,
|
240
|
+
domainAlias: string,
|
241
|
+
teamDid: string,
|
242
|
+
}
|
243
|
+
export type TRequestGetRoutingSites = {
|
244
|
+
snapshotHash: string,
|
245
|
+
}
|
246
|
+
export type TResponseGetRoutingSites = {
|
247
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
248
|
+
sites: type_pb.TRoutingSite[],
|
249
|
+
}
|
250
|
+
export type TResponseRoutingSite = {
|
251
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
252
|
+
site?: type_pb.TRoutingSite,
|
253
|
+
}
|
254
|
+
export type TRequestDeleteRoutingSite = {
|
255
|
+
id: string,
|
256
|
+
}
|
257
|
+
export type TRequestAddRoutingRule = {
|
258
|
+
id: string,
|
259
|
+
rule?: type_pb.TRoutingRule,
|
260
|
+
teamDid: string,
|
261
|
+
}
|
262
|
+
export type TRequestUpdateRoutingRule = {
|
263
|
+
id: string,
|
264
|
+
rule?: type_pb.TRoutingRule,
|
265
|
+
teamDid: string,
|
266
|
+
}
|
267
|
+
export type TRequestDeleteRoutingRule = {
|
268
|
+
id: string,
|
269
|
+
ruleId: string,
|
270
|
+
teamDid: string,
|
271
|
+
}
|
272
|
+
export type TRequestCheckDomains = {
|
273
|
+
domains: string[],
|
274
|
+
did: string,
|
275
|
+
}
|
276
|
+
export type TResponseCheckDomains = {
|
277
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
278
|
+
}
|
279
|
+
export type TRequestFindCertificateByDomain = {
|
280
|
+
domain: string,
|
281
|
+
did: string,
|
282
|
+
}
|
283
|
+
export type TResponseFindCertificateByDomain = {
|
284
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
285
|
+
cert?: type_pb.TCertificate,
|
286
|
+
}
|
287
|
+
export type TRequestTakeRoutingSnapshot = {
|
288
|
+
dryRun: boolean,
|
289
|
+
message: string,
|
290
|
+
}
|
291
|
+
export type TResponseTakeRoutingSnapshot = {
|
292
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
293
|
+
hash: string,
|
294
|
+
}
|
295
|
+
export type TRequestGetRoutingSnapshots = {
|
296
|
+
limit: number,
|
297
|
+
}
|
298
|
+
export type TResponseGetRoutingSnapshots = {
|
299
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
300
|
+
snapshots: type_pb.TRoutingSnapshot[],
|
301
|
+
}
|
302
|
+
export type TRequestGetSnapshotSites = {
|
303
|
+
hash: string,
|
304
|
+
}
|
305
|
+
export type TResponseGetSnapshotSites = {
|
306
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
307
|
+
sites: type_pb.TRoutingSite[],
|
308
|
+
}
|
309
|
+
export type TRequestGetRoutingProviders = {
|
310
|
+
}
|
311
|
+
export type TResponseGetRoutingProviders = {
|
312
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
313
|
+
providers: type_pb.TRoutingProvider[],
|
314
|
+
}
|
315
|
+
export type TRequestGetCertificates = {
|
316
|
+
}
|
317
|
+
export type TResponseGetCertificates = {
|
318
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
319
|
+
certificates: type_pb.TCertificate[],
|
320
|
+
}
|
321
|
+
export type TRequestAddNginxHttpsCert = {
|
322
|
+
name: string,
|
323
|
+
privateKey: string,
|
324
|
+
certificate: string,
|
325
|
+
}
|
326
|
+
export type TResponseAddNginxHttpsCert = {
|
327
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
328
|
+
}
|
329
|
+
export type TRequestUpdateNginxHttpsCert = {
|
330
|
+
id: string,
|
331
|
+
name: string,
|
332
|
+
}
|
333
|
+
export type TResponseUpdateNginxHttpsCert = {
|
334
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
335
|
+
}
|
336
|
+
export type TRequestDeleteNginxHttpsCert = {
|
337
|
+
id: string,
|
338
|
+
}
|
339
|
+
export type TResponseDeleteNginxHttpsCert = {
|
340
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
341
|
+
}
|
342
|
+
export type TRequestAddLetsEncryptCert = {
|
343
|
+
domain: string,
|
344
|
+
did: string,
|
345
|
+
}
|
346
|
+
export type TResponseAddLetsEncryptCert = {
|
347
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
348
|
+
}
|
349
|
+
export type TRequestAccessKeys = {
|
350
|
+
}
|
351
|
+
export type TResponseAccessKeys = {
|
352
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
353
|
+
list: type_pb.TAccessKey[],
|
354
|
+
}
|
355
|
+
export type TRequestCreateAccessKey = {
|
356
|
+
remark: string,
|
357
|
+
passport: string,
|
358
|
+
}
|
359
|
+
export type TResponseCreateAccessKey = {
|
360
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
361
|
+
data?: type_pb.TCreateAccessKey,
|
362
|
+
}
|
363
|
+
export type TRequestUpdateAccessKey = {
|
364
|
+
accessKeyId: string,
|
365
|
+
remark: string,
|
366
|
+
passport: string,
|
367
|
+
}
|
368
|
+
export type TResponseUpdateAccessKey = {
|
369
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
370
|
+
data?: type_pb.TAccessKey,
|
371
|
+
}
|
372
|
+
export type TRequestDeleteAccessKey = {
|
373
|
+
accessKeyId: string,
|
374
|
+
}
|
375
|
+
export type TResponseDeleteAccessKey = {
|
376
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
377
|
+
}
|
378
|
+
export type TRequestCreateWebHook = {
|
379
|
+
type: enum_pb.SenderTypeMap[keyof enum_pb.SenderTypeMap],
|
380
|
+
title: string,
|
381
|
+
description: string,
|
382
|
+
params: type_pb.TWebHookParam[],
|
383
|
+
}
|
384
|
+
export type TRequestDeleteWebHook = {
|
385
|
+
id: string,
|
386
|
+
}
|
387
|
+
export type TRequestWebHook = {
|
388
|
+
}
|
389
|
+
export type TRequestSenderList = {
|
390
|
+
}
|
391
|
+
export type TResponseSenderList = {
|
392
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
393
|
+
senders: type_pb.TWebHookSender[],
|
394
|
+
}
|
395
|
+
export type TResponseWebHooks = {
|
396
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
397
|
+
webhooks: type_pb.TWebHook[],
|
398
|
+
}
|
399
|
+
export type TResponseDeleteWebHook = {
|
400
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
401
|
+
}
|
402
|
+
export type TResponseCreateWebHook = {
|
403
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
404
|
+
webhook?: type_pb.TWebHookSender,
|
405
|
+
}
|
406
|
+
export type TRequestSendMsg = {
|
407
|
+
webhookId: string,
|
408
|
+
message: string,
|
409
|
+
}
|
410
|
+
export type TResponseSendMsg = {
|
411
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
412
|
+
}
|
413
|
+
export type TRequestUpgradeNodeVersion = {
|
414
|
+
}
|
415
|
+
export type TResponseUpgradeNodeVersion = {
|
416
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
417
|
+
sessionId: string,
|
418
|
+
}
|
419
|
+
export type TRequestCheckNodeVersion = {
|
420
|
+
}
|
421
|
+
export type TResponseCheckNodeVersion = {
|
422
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
423
|
+
version: string,
|
424
|
+
}
|
425
|
+
export type TRequestRestartServer = {
|
426
|
+
}
|
427
|
+
export type TResponseRestartServer = {
|
428
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
429
|
+
sessionId: string,
|
430
|
+
}
|
431
|
+
export type TRequestGetSession = {
|
432
|
+
id: string,
|
433
|
+
}
|
434
|
+
export type TResponseGetSession = {
|
435
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
436
|
+
session?: Record<string, any>,
|
437
|
+
}
|
438
|
+
export type TRequestStartSession = {
|
439
|
+
data: string,
|
440
|
+
}
|
441
|
+
export type TRequestUpdateSession = {
|
442
|
+
id: string,
|
443
|
+
data: string,
|
444
|
+
}
|
445
|
+
export type TRequestEndSession = {
|
446
|
+
id: string,
|
447
|
+
}
|
448
|
+
export type TRequestCreateInvitation = {
|
449
|
+
teamDid: string,
|
450
|
+
role: string,
|
451
|
+
remark: string,
|
452
|
+
}
|
453
|
+
export type TResponseCreateInvitation = {
|
454
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
455
|
+
inviteInfo?: type_pb.TInviteInfo,
|
456
|
+
}
|
457
|
+
export type TRequestCreateTransferNodeInvitation = {
|
458
|
+
teamDid: string,
|
459
|
+
remark: string,
|
460
|
+
}
|
461
|
+
export type TResponseCreateTransferNodeInvitation = {
|
462
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
463
|
+
inviteInfo?: type_pb.TInviteInfo,
|
464
|
+
}
|
465
|
+
export type TRequestDeleteTeamSession = {
|
466
|
+
teamDid: string,
|
467
|
+
sessionId: string,
|
468
|
+
}
|
469
|
+
export type TResponseGetInvitations = {
|
470
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
471
|
+
invitations: type_pb.TInviteInfo[],
|
472
|
+
}
|
473
|
+
export type TRequestDeleteInvitation = {
|
474
|
+
teamDid: string,
|
475
|
+
inviteId: string,
|
476
|
+
}
|
477
|
+
export type TRequestHasPermission = {
|
478
|
+
teamDid: string,
|
479
|
+
role: string,
|
480
|
+
permission: string,
|
481
|
+
}
|
482
|
+
export type TRequestCreatePassportIssuance = {
|
483
|
+
teamDid: string,
|
484
|
+
ownerDid: string,
|
485
|
+
name: string,
|
486
|
+
}
|
487
|
+
export type TResponseCreatePassportIssuance = {
|
488
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
489
|
+
info?: type_pb.TPassportIssuanceInfo,
|
490
|
+
}
|
491
|
+
export type TRequestGetPassportIssuances = {
|
492
|
+
teamDid: string,
|
493
|
+
ownerDid: string,
|
494
|
+
}
|
495
|
+
export type TResponseGetPassportIssuances = {
|
496
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
497
|
+
list: type_pb.TPassportIssuanceInfo[],
|
498
|
+
}
|
499
|
+
export type TRequestConfigTrustedPassports = {
|
500
|
+
teamDid: string,
|
501
|
+
trustedPassports: type_pb.TTrustedPassport[],
|
502
|
+
}
|
503
|
+
export type TRequestConfigTrustedFactories = {
|
504
|
+
teamDid: string,
|
505
|
+
trustedFactories: type_pb.TTrustedFactory[],
|
506
|
+
}
|
507
|
+
export type TRequestConfigPassportIssuance = {
|
508
|
+
teamDid: string,
|
509
|
+
enable: boolean,
|
510
|
+
}
|
511
|
+
export type TResponseRoles = {
|
512
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
513
|
+
roles: type_pb.TRole[],
|
514
|
+
}
|
515
|
+
export type TRequestCreateRole = {
|
516
|
+
teamDid: string,
|
517
|
+
name: string,
|
518
|
+
title: string,
|
519
|
+
description: string,
|
520
|
+
childName: string,
|
521
|
+
permissions: string[],
|
522
|
+
}
|
523
|
+
export type TResponseRole = {
|
524
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
525
|
+
role?: type_pb.TRole,
|
526
|
+
}
|
527
|
+
export type TResponsePermissions = {
|
528
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
529
|
+
permissions: type_pb.TPermission[],
|
530
|
+
}
|
531
|
+
export type TRequestCreatePermission = {
|
532
|
+
teamDid: string,
|
533
|
+
name: string,
|
534
|
+
description: string,
|
535
|
+
}
|
536
|
+
export type TRequestTeamPermission = {
|
537
|
+
teamDid: string,
|
538
|
+
permission?: type_pb.TPermission,
|
539
|
+
}
|
540
|
+
export type TResponsePermission = {
|
541
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
542
|
+
permission?: type_pb.TPermission,
|
543
|
+
}
|
544
|
+
export type TRequestGrantPermissionForRole = {
|
545
|
+
teamDid: string,
|
546
|
+
roleName: string,
|
547
|
+
grantName: string,
|
548
|
+
}
|
549
|
+
export type TRequestRevokePermissionFromRole = {
|
550
|
+
teamDid: string,
|
551
|
+
roleName: string,
|
552
|
+
grantName: string,
|
553
|
+
}
|
554
|
+
export type TRequestDeleteRole = {
|
555
|
+
teamDid: string,
|
556
|
+
name: string,
|
557
|
+
}
|
558
|
+
export type TRequestDeletePermission = {
|
559
|
+
teamDid: string,
|
560
|
+
name: string,
|
561
|
+
}
|
562
|
+
export type TRequestUpdatePermissionsForRole = {
|
563
|
+
teamDid: string,
|
564
|
+
roleName: string,
|
565
|
+
grantNames: string[],
|
566
|
+
}
|
567
|
+
export type TRequestTeamRole = {
|
568
|
+
teamDid: string,
|
569
|
+
role?: type_pb.TRole,
|
570
|
+
}
|
571
|
+
export type TRequestTeamUser = {
|
572
|
+
teamDid: string,
|
573
|
+
user?: type_pb.TUserInfo,
|
574
|
+
options?: TRequestTeamUserOptions,
|
575
|
+
}
|
576
|
+
export type TRequestTeamUserOptions = {
|
577
|
+
enableConnectedAccount: boolean,
|
578
|
+
}
|
579
|
+
export type TResponseUser = {
|
580
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
581
|
+
user?: type_pb.TUserInfo,
|
582
|
+
}
|
583
|
+
export type TRequestUsers = {
|
584
|
+
teamDid: string,
|
585
|
+
query?: type_pb.TUserQuery,
|
586
|
+
sort?: type_pb.TUserSort,
|
587
|
+
paging?: type_pb.TPaging,
|
588
|
+
dids: string[],
|
589
|
+
}
|
590
|
+
export type TResponseGetUsersCountPerRole = {
|
591
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
592
|
+
counts: type_pb.TKeyValue[],
|
593
|
+
}
|
594
|
+
export type TResponseUsers = {
|
595
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
596
|
+
users: type_pb.TUserInfo[],
|
597
|
+
paging?: type_pb.TPaging,
|
598
|
+
}
|
599
|
+
export type TRequestIssuePassportToUser = {
|
600
|
+
teamDid: string,
|
601
|
+
userDid: string,
|
602
|
+
role: string,
|
603
|
+
}
|
604
|
+
export type TRequestRevokeUserPassport = {
|
605
|
+
teamDid: string,
|
606
|
+
userDid: string,
|
607
|
+
passportId: string,
|
608
|
+
}
|
609
|
+
export type TRequestChangeBlockletStore = {
|
610
|
+
teamDid: string,
|
611
|
+
url: string,
|
612
|
+
}
|
613
|
+
export type TRequestGetAuditLogs = {
|
614
|
+
paging?: type_pb.TPaging,
|
615
|
+
scope: string,
|
616
|
+
category: string,
|
617
|
+
}
|
618
|
+
export type TResponseGetAuditLogs = {
|
619
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
620
|
+
list: type_pb.TAuditLog[],
|
621
|
+
paging?: type_pb.TPaging,
|
622
|
+
}
|
623
|
+
export type TRequestGateway = {
|
624
|
+
requestLimit?: type_pb.TRequestLimit,
|
625
|
+
cacheEnabled: boolean,
|
626
|
+
}
|
627
|
+
export type TResponseGateway = {
|
628
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
629
|
+
gateway?: type_pb.TGateway,
|
630
|
+
cacheEnabled: boolean,
|
631
|
+
}
|
632
|
+
export type TRequestBlockletRuntimeHistory = {
|
633
|
+
did: string,
|
634
|
+
hours: number,
|
635
|
+
}
|
636
|
+
export type TResponseNodeRuntimeHistory = {
|
637
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
638
|
+
history: type_pb.TNodeHistoryItem[],
|
639
|
+
}
|
640
|
+
export type TRequestNodeRuntimeHistory = {
|
641
|
+
hours: number,
|
642
|
+
}
|
643
|
+
export type TResponseBlockletRuntimeHistory = {
|
644
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
645
|
+
history: type_pb.TBlockletHistoryItem[],
|
646
|
+
}
|
647
|
+
export type TRequestMigrateApplicationToStructV2 = {
|
648
|
+
did: string,
|
649
|
+
appSk: string,
|
650
|
+
}
|
651
|
+
export type TRequestAddBlockletSpaceGateway = {
|
652
|
+
did: string,
|
653
|
+
spaceGateway?: type_pb.TSpaceGateway,
|
654
|
+
}
|
655
|
+
export type TRequestDeleteBlockletSpaceGateway = {
|
656
|
+
did: string,
|
657
|
+
url: string,
|
658
|
+
}
|
659
|
+
export type TRequestUpdateBlockletSpaceGateway = {
|
660
|
+
did: string,
|
661
|
+
where?: type_pb.TSpaceGateway,
|
662
|
+
spaceGateway?: type_pb.TSpaceGateway,
|
663
|
+
}
|
664
|
+
export type TResponseGetBlockletSpaceGateways = {
|
665
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
666
|
+
spaceGateways: type_pb.TSpaceGateway[],
|
667
|
+
}
|
668
|
+
export type TRequestGetBlockletBackups = {
|
669
|
+
did: string,
|
670
|
+
}
|
671
|
+
export type TResponseGetBlockletBackups = {
|
672
|
+
code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap],
|
673
|
+
backups: type_pb.TBackup[],
|
674
|
+
}
|