@abtnode/schema 1.4.14 → 1.5.3

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/index.js CHANGED
@@ -148,6 +148,7 @@ input RequestBlockletDiffInput {
148
148
 
149
149
  input RequestBlockletMetaFromUrlInput {
150
150
  url: String
151
+ checkPrice: Boolean
151
152
  }
152
153
 
153
154
  input RequestChangeBlockletRegistryInput {
@@ -580,6 +581,7 @@ type BlockletMeta {
580
581
  nftFactory: String
581
582
  lastPublishedAt: String
582
583
  capabilities: BlockletCapabilities
584
+ isFree: Boolean
583
585
  }
584
586
 
585
587
  type BlockletMetaInterface {
@@ -903,6 +905,11 @@ type ResponseBlockletDiff {
903
905
  blockletDiff: BlockletDiff
904
906
  }
905
907
 
908
+ type ResponseBlockletMeta {
909
+ code: StatusCode
910
+ meta: Any
911
+ }
912
+
906
913
  type ResponseBlockletMetaFromUrl {
907
914
  code: StatusCode
908
915
  meta: BlockletMeta
@@ -1362,6 +1369,7 @@ type Query {
1362
1369
  getNodeEnv: ResponseGetNodeEnv
1363
1370
  checkNodeVersion: ResponseCheckNodeVersion
1364
1371
  listBlocklets(input: RequestListBlockletsInput): ResponseListBlocklets
1372
+ getBlockletMeta(input: RequestBlockletInput): ResponseBlockletMeta
1365
1373
  getNotifications(input: RequestGetNotificationsInput): ResponseGetNotifications
1366
1374
  getRoutingSites(input: RequestGetRoutingSitesInput): ResponseGetRoutingSites
1367
1375
  getRoutingSnapshots(input: RequestGetRoutingSnapshotsInput): ResponseGetRoutingSnapshots
@@ -148,6 +148,7 @@ input RequestBlockletDiffInput {
148
148
 
149
149
  input RequestBlockletMetaFromUrlInput {
150
150
  url: String
151
+ checkPrice: Boolean
151
152
  }
152
153
 
153
154
  input RequestChangeBlockletRegistryInput {
@@ -580,6 +581,7 @@ type BlockletMeta {
580
581
  nftFactory: String
581
582
  lastPublishedAt: String
582
583
  capabilities: BlockletCapabilities
584
+ isFree: Boolean
583
585
  }
584
586
 
585
587
  type BlockletMetaInterface {
@@ -903,6 +905,11 @@ type ResponseBlockletDiff {
903
905
  blockletDiff: BlockletDiff
904
906
  }
905
907
 
908
+ type ResponseBlockletMeta {
909
+ code: StatusCode
910
+ meta: Any
911
+ }
912
+
906
913
  type ResponseBlockletMetaFromUrl {
907
914
  code: StatusCode
908
915
  meta: BlockletMeta
@@ -1364,6 +1371,7 @@ type Query {
1364
1371
  getNodeEnv: ResponseGetNodeEnv
1365
1372
  checkNodeVersion: ResponseCheckNodeVersion
1366
1373
  listBlocklets(input: RequestListBlockletsInput): ResponseListBlocklets
1374
+ getBlockletMeta(input: RequestBlockletInput): ResponseBlockletMeta
1367
1375
  getNotifications(input: RequestGetNotificationsInput): ResponseGetNotifications
1368
1376
  getRoutingSites(input: RequestGetRoutingSitesInput): ResponseGetRoutingSites
1369
1377
  getRoutingSnapshots(input: RequestGetRoutingSnapshotsInput): ResponseGetRoutingSnapshots
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.4.14",
6
+ "version": "1.5.3",
7
7
  "description": "",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -13,5 +13,5 @@
13
13
  "keywords": [],
14
14
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
15
15
  "license": "MIT",
16
- "gitHead": "9176b462ff92c787e18a8b218f06a451aad4cf1d"
16
+ "gitHead": "31e38c299c61c2a33caa93ed6a74d6e901409295"
17
17
  }
@@ -1,1331 +0,0 @@
1
- directive @Mutation on FIELD_DEFINITION
2
- directive @Query on FIELD_DEFINITION
3
- type AccessKey {
4
- accessKeyId: String
5
- remark: String
6
- createdAt: String
7
- lastUsedAt: String
8
- }
9
- """
10
- Any is any json type
11
- """
12
- scalar Any
13
- enum BackendServiceType {
14
- daemon
15
- blocklet
16
- redirect
17
- none
18
- general_proxy
19
- }
20
- type BlockletCapabilities {
21
- clusterMode: Boolean
22
- }
23
- type BlockletCharging {
24
- price: String
25
- shares: [BlockletChargingShare!]
26
- tokens: [BlockletChargingToken!]
27
- }
28
- type BlockletChargingShare {
29
- address: String
30
- name: String
31
- price: String
32
- }
33
- type BlockletChargingToken {
34
- address: String
35
- price: String
36
- }
37
- type BlockletDiff {
38
- hasBlocklet: Boolean
39
- version: String
40
- addSet: [String!]
41
- changeSet: [String!]
42
- deleteSet: [String!]
43
- }
44
- type BlockletDist {
45
- tarball: String
46
- integrity: String
47
- }
48
- type BlockletEngine {
49
- name: String
50
- displayName: String
51
- description: String
52
- version: String
53
- available: Boolean
54
- visible: Boolean
55
- }
56
- type BlockletMeta {
57
- did: String
58
- name: String
59
- version: String
60
- description: String
61
- interfaces: [BlockletMetaInterface!]
62
- author: BlockletMetaPerson
63
- main: String
64
- stats: BlockletStats
65
- homepage: String
66
- price: Float
67
- path: String
68
- community: String
69
- documentation: String
70
- support: String
71
- screenshots: [String!]
72
- keywords: [String!]
73
- group: String
74
- logo: String
75
- title: String
76
- dist: BlockletDist
77
- maintainers: [BlockletMetaPerson!]
78
- contributors: [BlockletMetaPerson!]
79
- repository: BlockletRepository
80
- charging: BlockletCharging
81
- nftFactory: String
82
- lastPublishedAt: String
83
- capabilities: BlockletCapabilities
84
- }
85
- type BlockletMetaInterface {
86
- type: String
87
- name: String
88
- path: String
89
- prefix: String
90
- protocol: String
91
- port: Any
92
- services: [BlockletMetaService!]
93
- }
94
- type BlockletMetaPerson {
95
- name: String
96
- email: String
97
- url: String
98
- }
99
- type BlockletMetaService {
100
- name: String
101
- config: Any
102
- }
103
- type BlockletPreInstallInfo {
104
- installId: String
105
- meta: BlockletMeta
106
- existingMeta: BlockletMeta
107
- }
108
- type BlockletPreUpdateInfo {
109
- updateId: String
110
- updateList: [BlockletMeta!]
111
- }
112
- type BlockletRegistry {
113
- name: String
114
- description: String
115
- url: String
116
- logoUrl: String
117
- maintainer: String
118
- cdnUrl: String
119
- selected: Boolean
120
- protected: Boolean
121
- id: String
122
- }
123
- input BlockletRegistryInput {
124
- name: String
125
- description: String
126
- url: String
127
- logoUrl: String
128
- maintainer: String
129
- cdnUrl: String
130
- selected: Boolean
131
- protected: Boolean
132
- id: String
133
- }
134
- type BlockletRepository {
135
- type: String
136
- url: String
137
- }
138
- type BlockletService {
139
- name: String
140
- description: String
141
- version: String
142
- """
143
- FIXME: make this a json string is a workaround for `@arcblock/sdk-util`
144
-
145
- """
146
- config: String
147
- schema: String
148
- }
149
- input BlockletServiceInput {
150
- name: String
151
- description: String
152
- version: String
153
- """
154
- FIXME: make this a json string is a workaround for `@arcblock/sdk-util`
155
-
156
- """
157
- config: String
158
- schema: String
159
- }
160
- enum BlockletSource {
161
- registry
162
- local
163
- upload
164
- url
165
- }
166
- type BlockletState {
167
- meta: BlockletMeta
168
- status: BlockletStatus
169
- createdAt: String
170
- installedAt: String
171
- startedAt: String
172
- pausedAt: String
173
- """
174
- daemon generated runtime config, usually sensitve
175
-
176
- """
177
- environments: [ConfigEntry!]
178
- """
179
- stored in blocklet extras
180
-
181
- """
182
- configs: [ConfigEntry!]
183
- diskInfo: DiskInfo
184
- runtimeInfo: RuntimeInfo
185
- source: BlockletSource
186
- deployedFrom: String
187
- """
188
- TODO: this only exist for backward compatibility
189
-
190
- """
191
- port: Float
192
- interfaces: [BlockletStateInterface!]
193
- engine: BlockletEngine
194
- mode: String
195
- """
196
- Added in v1.0.33 to support multiple ports, old `port` is still there for backward compatibility
197
- Should be a mapping of ports assigned to the blocklet
198
- Should be { BLOCKLET_PORT: port } in most cases
199
-
200
- """
201
- ports: Any
202
- }
203
- type BlockletStateInterface {
204
- ruleId: String
205
- type: String
206
- name: String
207
- url: String
208
- }
209
- input BlockletStateInterfaceInput {
210
- ruleId: String
211
- type: String
212
- name: String
213
- url: String
214
- }
215
- type BlockletStats {
216
- downloads: Float
217
- star: Float
218
- purchases: Float
219
- }
220
- enum BlockletStatus {
221
- added
222
- downloading
223
- downloaded
224
- installing
225
- installed
226
- starting
227
- running
228
- stopping
229
- stopped
230
- error
231
- upgrading
232
- restarting
233
- corrupted
234
- waiting
235
- unknown
236
- }
237
- type Certificate {
238
- name: String
239
- domain: String
240
- validFrom: Int
241
- validTo: Int
242
- issuer: CertificateIssuer
243
- sans: [String!]
244
- id: String
245
- fingerprintAlg: String
246
- fingerprint: String
247
- validityPeriod: Int
248
- matchedSites: [MatchedSites!]
249
- createdAt: String
250
- updatedAt: String
251
- public: Boolean
252
- isProtected: Boolean
253
- }
254
- type CertificateIssuer {
255
- countryName: String
256
- organizationName: String
257
- commonName: String
258
- }
259
- type ConfigEntry {
260
- key: String
261
- value: String
262
- required: Boolean
263
- description: String
264
- validation: String
265
- secure: Boolean
266
- custom: Boolean
267
- }
268
- input ConfigEntryInput {
269
- key: String
270
- value: String
271
- required: Boolean
272
- description: String
273
- validation: String
274
- secure: Boolean
275
- custom: Boolean
276
- }
277
- type CreateAccessKey {
278
- accessKeyId: String
279
- accessKeySecret: String
280
- remark: String
281
- createdAt: String
282
- lastUsedAt: String
283
- }
284
- type DiskInfo {
285
- app: Float
286
- data: Float
287
- log: Float
288
- cache: Float
289
- blocklets: Float
290
- }
291
- type GeneralResponse {
292
- code: StatusCode
293
- }
294
- input HashFileInput {
295
- file: String
296
- hash: String
297
- }
298
- enum HeaderMatchType {
299
- exact
300
- partial
301
- regexp
302
- }
303
- type IPInfo {
304
- internalV4: String
305
- externalV4: String
306
- internalV6: String
307
- externalV6: String
308
- }
309
- type InviteInfo {
310
- inviteId: String
311
- role: String
312
- remark: String
313
- expireDate: String
314
- inviter: MemberInfo
315
- teamDid: String
316
- interfaceName: String
317
- }
318
- type LatestBlockletVersion {
319
- did: String
320
- version: String
321
- registryUrl: String
322
- }
323
- type LauncherInfo {
324
- did: String
325
- type: String
326
- cloudService: String
327
- url: String
328
- }
329
- type MatchedSites {
330
- id: String
331
- domain: String
332
- }
333
- type MemberInfo {
334
- did: String
335
- pk: String
336
- role: String
337
- avatar: String
338
- fullName: String
339
- email: String
340
- approved: Boolean
341
- createdAt: String
342
- updatedAt: String
343
- locale: String
344
- passports: [Passport!]
345
- }
346
- input MemberInfoInput {
347
- did: String
348
- pk: String
349
- role: String
350
- avatar: String
351
- fullName: String
352
- email: String
353
- approved: Boolean
354
- createdAt: String
355
- updatedAt: String
356
- locale: String
357
- passports: [PassportInput!]
358
- }
359
- type Mutation {
360
- mutationInstallBlocklet(in: RequestVersionedBlockletInput): ResponseBlocklet
361
- mutationInstallBlockletFromUrl(in: RequestInstallFromUrlInput): ResponseInstallFromUrl
362
- mutationStartBlocklet(in: RequestBlockletInput): ResponseBlocklet
363
- mutationStopBlocklet(in: RequestBlockletInput): ResponseBlocklet
364
- mutationReloadBlocklet(in: RequestBlockletInput): ResponseBlocklet
365
- mutationRestartBlocklet(in: RequestBlockletInput): ResponseBlocklet
366
- mutationDeleteBlocklet(in: RequestDeleteBlockletInput): ResponseBlocklet
367
- mutationCancelDownloadBlocklet(in: RequestBlockletInput): ResponseBlocklet
368
- mutationUpgradeBlocklet(in: RequestUpgradeBlockletInput): ResponseBlocklet
369
- mutationConfigBlocklet(in: RequestConfigBlockletInput): ResponseConfigBlocklet
370
- mutationCheckChildBlockletsForUpdates(in: RequestBlockletInput): ResponseCheckChildBlockletsForUpdates
371
- mutationUpdateChildBlocklets(in: RequestUpdateChildBlockletsInput): ResponseBlocklet
372
- """
373
- Node state
374
-
375
- """
376
- mutationUpdateNodeInfo(in: NodeInfoInput): ResponseGetNodeInfo
377
- mutationUpdateNodeRouting(in: RequestNodeRoutingInput): ResponseGetNodeInfo
378
- mutationUpgradeNodeVersion: ResponseUpgradeNodeVersion
379
- mutationAddBlockletRegistry(in: RequestChangeBlockletRegistryInput): GeneralResponse
380
- mutationDeleteBlockletRegistry(in: RequestChangeBlockletRegistryInput): GeneralResponse
381
- mutationSelectBlockletRegistry(in: RequestChangeBlockletRegistryInput): GeneralResponse
382
- """
383
- just for test purpose
384
-
385
- """
386
- mutationResetNode(in: RequestResetNodeInput): ResponseResetNode
387
- """
388
- Team Invitation
389
-
390
- """
391
- mutationCreateInvitation(in: RequsetCreateInvitationInput): ResponseCreateInvitation
392
- mutationDeleteInvitation(in: RequsetDeleteInvitationInput): GeneralResponse
393
- """
394
- Issue passport
395
-
396
- """
397
- mutationCreatePassportIssuance(in: RequestCreatePassportIssuanceInput): ResponseCreatePassportIssuance
398
- mutationDeletePassportIssuance(in: RequestDeleteTeamSessionInput): GeneralResponse
399
- """
400
- Team User
401
-
402
- """
403
- mutationRemoveUser(in: RequestTeamUserInput): ResponseUser
404
- mutationUpdateUserApproval(in: RequestTeamUserInput): ResponseUser
405
- mutationUpdateUserRole(in: RequestTeamUserInput): ResponseUser
406
- mutationRevokeUserPassport(in: RequestRevokeUserPassportInput): ResponseUser
407
- """
408
- Team Access Control
409
-
410
- """
411
- mutationCreateRole(in: RequestCreateRoleInput): ResponseRole
412
- mutationUpdateRole(in: RequestTeamRoleInput): ResponseRole
413
- mutationDeleteRole(in: RequestDeleteRoleInput): GeneralResponse
414
- mutationCreatePermission(in: RequestCreatePermissionInput): ResponsePermission
415
- mutationUpdatePermission(in: RequestTeamPermissionInput): ResponsePermission
416
- mutationDeletePermission(in: RequestDeletePermissionInput): GeneralResponse
417
- mutationGrantRole(in: RequestGrantRoleInput): GeneralResponse
418
- mutationRevokeRole(in: RequestRevokeRoleInput): GeneralResponse
419
- mutationUpdateGrants(in: RequestUpdateGrantsInput): ResponseRole
420
- """
421
- Notification
422
-
423
- """
424
- mutationReadNotifications(in: RequestReadNotificationsInput): ResponseReadNotifications
425
- mutationUnreadNotifications(in: RequestReadNotificationsInput): ResponseReadNotifications
426
- """
427
- Routing Rules
428
-
429
- """
430
- mutationAddRoutingSite(in: RequestAddRoutingSiteInput): ResponseRoutingSite
431
- mutationAddDomainAlias(in: RequestAddDomainAliasInput): ResponseRoutingSite
432
- mutationDeleteDomainAlias(in: RequestDeleteDomainAliasInput): ResponseRoutingSite
433
- mutationDeleteRoutingSite(in: RequestDeleteRoutingSiteInput): GeneralResponse
434
- mutationUpdateRoutingSite(in: RequestUpdateRoutingSiteInput): ResponseRoutingSite
435
- mutationAddRoutingRule(in: RequestAddRoutingRuleInput): ResponseRoutingSite
436
- mutationUpdateRoutingRule(in: RequestUpdateRoutingRuleInput): ResponseRoutingSite
437
- mutationDeleteRoutingRule(in: RequestDeleteRoutingRuleInput): ResponseRoutingSite
438
- mutationTakeRoutingSnapshot(in: RequestTakeRoutingSnapshotInput): ResponseTakeRoutingSnapshot
439
- mutationUpdateNginxHttpsCert(in: RequestUpdateNginxHttpsCertInput): ResponseUpdateNginxHttpsCert
440
- mutationAddNginxHttpsCert(in: RequestAddNginxHttpsCertInput): ResponseAddNginxHttpsCert
441
- mutationDeleteNginxHttpsCert(in: RequestDeleteNginxHttpsCertInput): ResponseDeleteNginxHttpsCert
442
- """
443
- Access Keys
444
-
445
- """
446
- mutationCreateAccessKey(in: RequestCreateAccessKeyInput): ResponseCreateAccessKey
447
- mutationUpdateAccessKey(in: RequestUpdateAccessKeyInput): ResponseUpdateAccessKey
448
- mutationDeleteAccessKey(in: RequestDeleteAccessKeyInput): ResponseDeleteAccessKey
449
- """
450
- WebHook
451
-
452
- """
453
- mutationCreateWebHook(in: RequestCreateWebHookInput): ResponseCreateWebHook
454
- mutationDeleteWebHook(in: RequestDeleteWebHookInput): ResponseDeleteWebHook
455
- """
456
- Session
457
-
458
- """
459
- mutationStartSession(in: RequestStartSessionInput): ResponseGetSession
460
- mutationUpdateSession(in: RequestUpdateSessionInput): ResponseGetSession
461
- mutationEndSession(in: RequestEndSessionInput): ResponseGetSession
462
- }
463
- type NodeEnvInfo {
464
- ip: IPInfo
465
- os: String
466
- location: String
467
- docker: Boolean
468
- image: Boolean
469
- blockletEngines: [BlockletEngine!]
470
- gitpod: Boolean
471
- disk: DiskInfo
472
- }
473
- input NodeInfoInput {
474
- name: String
475
- description: String
476
- autoUpgrade: Boolean
477
- """
478
- Added in v1.0.33
479
-
480
- """
481
- enableWelcomePage: Boolean
482
- """
483
- Added in v1.1.1
484
-
485
- """
486
- registerUrl: String
487
- webWalletUrl: String
488
- """
489
- Added in v1.2.1
490
-
491
- """
492
- blockletRegistryList: [BlockletRegistryInput!]
493
- diskAlertThreshold: Int
494
- }
495
- type NodeRouting {
496
- provider: String
497
- snapshotHash: String
498
- adminPath: String
499
- }
500
- type NodeState {
501
- did: String
502
- pk: String
503
- version: String
504
- name: String
505
- description: String
506
- port: String
507
- initialized: Boolean
508
- nodeOwner: WalletInfo
509
- createdAt: String
510
- startedAt: String
511
- initializedAt: String
512
- mode: String
513
- routing: NodeRouting
514
- members: [MemberInfo!]
515
- """
516
- not persistent but get returned at runtime
517
-
518
- """
519
- environments: [ConfigEntry!]
520
- uptime: Float
521
- """
522
- Added in v1.0.25 to support autoUpgrading
523
-
524
- """
525
- autoUpgrade: Boolean
526
- nextVersion: String
527
- upgradeSessionId: String
528
- """
529
- Added in v1.0.25 to support register on "Install on ABT Node"
530
-
531
- """
532
- registerUrl: String
533
- """
534
- Added in v1.0.33
535
-
536
- """
537
- enableWelcomePage: Boolean
538
- """
539
- Added in v1.1.1
540
-
541
- """
542
- webWalletUrl: String
543
- """
544
- Added in v1.2.1
545
-
546
- """
547
- blockletRegistryList: [BlockletRegistry!]
548
- """
549
- Added in v1.2.6
550
-
551
- """
552
- ownerNft: OwnerNft
553
- diskAlertThreshold: Int
554
- launcherInfo: LauncherInfo
555
- }
556
- type Notification {
557
- """
558
- who is sending this notification: did
559
-
560
- """
561
- sender: String
562
- """
563
- who will receive this notification: did
564
-
565
- """
566
- receiver: String
567
- title: String
568
- description: String
569
- """
570
- a link when user open the notification
571
-
572
- """
573
- action: String
574
- """
575
- blocklet | node
576
-
577
- """
578
- entityType: String
579
- """
580
- did
581
-
582
- """
583
- entityId: String
584
- read: Boolean
585
- createdAt: String
586
- updatedAt: String
587
- id: String
588
- """
589
- severity: error, info, warning, success
590
-
591
- """
592
- severity: String
593
- }
594
- type OwnerNft {
595
- holder: String
596
- issuer: String
597
- }
598
- type Passport {
599
- name: String
600
- title: String
601
- }
602
- input PassportInput {
603
- name: String
604
- title: String
605
- }
606
- type PassportIssuanceInfo {
607
- id: String
608
- """
609
- passport name (as same as role name)
610
-
611
- """
612
- name: String
613
- """
614
- passport title (as same as role name)
615
-
616
- """
617
- title: String
618
- expireDate: String
619
- teamDid: String
620
- ownerDid: String
621
- }
622
- type Permission {
623
- name: String
624
- description: String
625
- isProtected: Boolean
626
- }
627
- input PermissionInput {
628
- name: String
629
- description: String
630
- isProtected: Boolean
631
- }
632
- type Query {
633
- """
634
- From Blocklet State
635
-
636
- """
637
- queryGetBlocklet(in: RequestBlockletInput): ResponseBlocklet
638
- queryGetBlockletDiff(in: RequestBlockletDiffInput): ResponseBlockletDiff
639
- queryGetBlocklets: ResponseGetBlocklets
640
- queryGetLatestBlockletVersion(in: RequestLatestBlockletVersionInput): ResponseLatestBlockletVersion
641
- """
642
- From NodeState
643
-
644
- """
645
- queryGetNodeInfo: ResponseGetNodeInfo
646
- queryGetNodeEnv: ResponseGetNodeEnv
647
- queryCheckNodeVersion: ResponseCheckNodeVersion
648
- """
649
- From Registry
650
-
651
- """
652
- queryListBlocklets(in: RequestListBlockletsInput): ResponseListBlocklets
653
- queryGetBlockletMeta(in: RequestBlockletInput): ResponseBlockletMeta
654
- """
655
- Notification
656
-
657
- """
658
- queryGetNotifications(in: RequestGetNotificationsInput): ResponseGetNotifications
659
- """
660
- Routing Rules
661
-
662
- """
663
- queryGetRoutingSites(in: RequestGetRoutingSitesInput): ResponseGetRoutingSites
664
- queryGetRoutingSnapshots(in: RequestGetRoutingSnapshotsInput): ResponseGetRoutingSnapshots
665
- queryGetSnapshotSites(in: RequestGetSnapshotSitesInput): ResponseGetSnapshotSites
666
- queryGetRoutingProviders: ResponseGetRoutingProviders
667
- """
668
- Services
669
-
670
- """
671
- queryGetServices: ResponseGetServices
672
- """
673
- Certificates
674
-
675
- """
676
- queryGetCertificates: ResponseGetCertificates
677
- """
678
- Utils
679
-
680
- """
681
- queryCheckDomains(in: RequestCheckDomainsInput): ResponseCheckDomains
682
- """
683
- Access Keys
684
-
685
- """
686
- queryGetAccessKeys: ResponseAccessKeys
687
- """
688
- WebHook
689
-
690
- """
691
- queryGetWebHooks: ResponseWebHooks
692
- queryGetWebhookSenders: ResponseSenderList
693
- querySendTestMessage(in: RequestSendMsgInput): ResponseSendMsg
694
- """
695
- Session
696
-
697
- """
698
- queryGetSession(in: RequestGetSessionInput): ResponseGetSession
699
- """
700
- Team && AccessControl
701
-
702
- """
703
- queryGetRoles(in: TeamInput): ResponseRoles
704
- queryGetPermissions(in: TeamInput): ResponsePermissions
705
- queryGetInvitations(in: TeamInput): ResponseGetInvitations
706
- queryGetUsers(in: TeamInput): ResponseUsers
707
- queryGetUser(in: RequestTeamUserInput): ResponseUser
708
- queryGetPermissionsByRole(in: RequestTeamRoleInput): ResponsePermissions
709
- queryGetPassportIssuances(in: RequestGetPassportIssuancesInput): ResponseGetPassportIssuances
710
- }
711
- input RequestAddDomainAliasInput {
712
- id: String
713
- domainAlias: String
714
- }
715
- input RequestAddNginxHttpsCertInput {
716
- name: String
717
- privateKey: String
718
- certificate: String
719
- public: Boolean
720
- }
721
- input RequestAddRoutingRuleInput {
722
- id: String
723
- rule: RoutingRuleInput
724
- }
725
- input RequestAddRoutingSiteInput {
726
- domain: String
727
- type: String
728
- rules: [RoutingRuleInput!]
729
- }
730
- input RequestBlockletDiffInput {
731
- did: String
732
- hashFiles: [HashFileInput!]
733
- }
734
- input RequestBlockletInput {
735
- did: String
736
- registryUrl: String
737
- }
738
- input RequestChangeBlockletRegistryInput {
739
- url: String
740
- }
741
- input RequestCheckDomainsInput {
742
- domains: [String!]
743
- }
744
- input RequestConfigBlockletInput {
745
- did: String
746
- childDid: String
747
- configs: [ConfigEntryInput!]
748
- }
749
- input RequestCreateAccessKeyInput {
750
- remark: String
751
- }
752
- input RequestCreatePassportIssuanceInput {
753
- """
754
- issuer
755
-
756
- """
757
- teamDid: String
758
- ownerDid: String
759
- """
760
- passport name, as same as role name
761
-
762
- """
763
- name: String
764
- }
765
- input RequestCreatePermissionInput {
766
- teamDid: String
767
- name: String
768
- description: String
769
- }
770
- input RequestCreateRoleInput {
771
- teamDid: String
772
- name: String
773
- title: String
774
- childName: String
775
- permissions: [String!]
776
- }
777
- """
778
- webhook
779
-
780
- """
781
- input RequestCreateWebHookInput {
782
- """
783
- slack/api
784
-
785
- """
786
- type: SenderType
787
- """
788
- Slack Notification
789
-
790
- """
791
- title: String
792
- description: String
793
- params: [WebHookParamInput!]
794
- }
795
- input RequestDeleteAccessKeyInput {
796
- accessKeyId: String
797
- }
798
- input RequestDeleteBlockletInput {
799
- did: String
800
- keepData: Boolean
801
- }
802
- input RequestDeleteDomainAliasInput {
803
- id: String
804
- domainAlias: String
805
- }
806
- input RequestDeleteNginxHttpsCertInput {
807
- id: String
808
- }
809
- input RequestDeletePermissionInput {
810
- teamDid: String
811
- name: String
812
- }
813
- input RequestDeleteRoleInput {
814
- teamDid: String
815
- name: String
816
- }
817
- input RequestDeleteRoutingRuleInput {
818
- id: String
819
- """
820
- rule item id
821
-
822
- """
823
- ruleId: String
824
- }
825
- input RequestDeleteRoutingSiteInput {
826
- id: String
827
- }
828
- input RequestDeleteTeamSessionInput {
829
- teamDid: String
830
- sessionId: String
831
- }
832
- input RequestDeleteWebHookInput {
833
- id: String
834
- }
835
- input RequestEndSessionInput {
836
- id: String
837
- }
838
- input RequestGetNotificationsInput {
839
- receiver: String
840
- sender: String
841
- read: Boolean
842
- }
843
- input RequestGetPassportIssuancesInput {
844
- teamDid: String
845
- ownerDid: String
846
- }
847
- input RequestGetRoutingSitesInput {
848
- snapshotHash: String
849
- }
850
- input RequestGetRoutingSnapshotsInput {
851
- limit: Int
852
- }
853
- input RequestGetSessionInput {
854
- id: String
855
- }
856
- input RequestGetSnapshotSitesInput {
857
- hash: String
858
- }
859
- input RequestGrantRoleInput {
860
- teamDid: String
861
- roleName: String
862
- grantName: String
863
- }
864
- input RequestInstallFromUrlInput {
865
- url: String
866
- }
867
- input RequestLatestBlockletVersionInput {
868
- did: String
869
- version: String
870
- }
871
- input RequestListBlockletsInput {
872
- registryUrl: String
873
- }
874
- input RequestNodeRoutingInput {
875
- provider: String
876
- snapshotHash: String
877
- forceRepopulate: Boolean
878
- }
879
- input RequestReadNotificationsInput {
880
- id: String
881
- }
882
- input RequestResetNodeInput {
883
- owner: Boolean
884
- blocklets: Boolean
885
- webhooks: Boolean
886
- certificates: Boolean
887
- accessKeys: Boolean
888
- blockletExtras: Boolean
889
- routingRules: Boolean
890
- users: Boolean
891
- invitations: Boolean
892
- }
893
- input RequestRevokeRoleInput {
894
- teamDid: String
895
- roleName: String
896
- grantName: String
897
- }
898
- input RequestRevokeUserPassportInput {
899
- teamDid: String
900
- userDid: String
901
- passportName: String
902
- }
903
- input RequestSendMsgInput {
904
- webhookId: String
905
- message: String
906
- }
907
- input RequestStartSessionInput {
908
- """
909
- json stringified
910
-
911
- """
912
- data: String
913
- }
914
- input RequestTakeRoutingSnapshotInput {
915
- dryRun: Boolean
916
- message: String
917
- }
918
- input RequestTeamPermissionInput {
919
- teamDid: String
920
- permission: PermissionInput
921
- }
922
- input RequestTeamRoleInput {
923
- teamDid: String
924
- role: RoleInput
925
- }
926
- input RequestTeamUserInput {
927
- teamDid: String
928
- user: MemberInfoInput
929
- }
930
- input RequestUpdateAccessKeyInput {
931
- accessKeyId: String
932
- remark: String
933
- }
934
- input RequestUpdateChildBlockletsInput {
935
- updateId: String
936
- }
937
- input RequestUpdateGrantsInput {
938
- teamDid: String
939
- roleName: String
940
- grantNames: [String!]
941
- }
942
- input RequestUpdateNginxHttpsCertInput {
943
- name: String
944
- domain: String
945
- privateKey: String
946
- certificate: String
947
- public: Boolean
948
- }
949
- input RequestUpdateRoutingRuleInput {
950
- id: String
951
- rule: RoutingRuleInput
952
- }
953
- input RequestUpdateRoutingSiteInput {
954
- id: String
955
- corsAllowedOrigins: [String!]
956
- domain: String
957
- }
958
- input RequestUpdateSessionInput {
959
- id: String
960
- """
961
- json stringified
962
-
963
- """
964
- data: String
965
- }
966
- input RequestUpgradeBlockletInput {
967
- did: String
968
- registryUrl: String
969
- }
970
- input RequestVersionedBlockletInput {
971
- did: String
972
- installId: String
973
- file: Upload
974
- diffVersion: String
975
- deleteSet: [String!]
976
- }
977
- input RequsetCreateInvitationInput {
978
- teamDid: String
979
- role: String
980
- remark: String
981
- interfaceName: String
982
- }
983
- input RequsetDeleteInvitationInput {
984
- teamDid: String
985
- inviteId: String
986
- }
987
- type ResponseAccessKeys {
988
- code: StatusCode
989
- list: [AccessKey!]
990
- }
991
- type ResponseAddNginxHttpsCert {
992
- code: StatusCode
993
- }
994
- type ResponseBlocklet {
995
- code: StatusCode
996
- blocklet: BlockletState
997
- }
998
- type ResponseBlockletDiff {
999
- code: StatusCode
1000
- blockletDiff: BlockletDiff
1001
- }
1002
- type ResponseBlockletMeta {
1003
- code: StatusCode
1004
- meta: Any
1005
- }
1006
- type ResponseCheckChildBlockletsForUpdates {
1007
- code: StatusCode
1008
- preUpdateInfo: BlockletPreUpdateInfo
1009
- }
1010
- type ResponseCheckDomains {
1011
- code: StatusCode
1012
- }
1013
- type ResponseCheckNodeVersion {
1014
- code: StatusCode
1015
- version: String
1016
- }
1017
- type ResponseConfigBlocklet {
1018
- code: StatusCode
1019
- blocklet: BlockletState
1020
- }
1021
- type ResponseCreateAccessKey {
1022
- code: StatusCode
1023
- data: CreateAccessKey
1024
- }
1025
- type ResponseCreateInvitation {
1026
- code: StatusCode
1027
- inviteInfo: InviteInfo
1028
- }
1029
- type ResponseCreatePassportIssuance {
1030
- code: StatusCode
1031
- info: PassportIssuanceInfo
1032
- }
1033
- type ResponseCreateWebHook {
1034
- code: StatusCode
1035
- webhook: WebHookSender
1036
- }
1037
- type ResponseDeleteAccessKey {
1038
- code: StatusCode
1039
- }
1040
- type ResponseDeleteNginxHttpsCert {
1041
- code: StatusCode
1042
- }
1043
- type ResponseDeleteWebHook {
1044
- code: StatusCode
1045
- }
1046
- type ResponseGetBlocklets {
1047
- code: StatusCode
1048
- blocklets: [BlockletState!]
1049
- }
1050
- type ResponseGetCertificates {
1051
- code: StatusCode
1052
- certificates: [Certificate!]
1053
- }
1054
- type ResponseGetInvitations {
1055
- code: StatusCode
1056
- invitations: [InviteInfo!]
1057
- }
1058
- type ResponseGetNodeEnv {
1059
- code: StatusCode
1060
- info: NodeEnvInfo
1061
- }
1062
- type ResponseGetNodeInfo {
1063
- code: StatusCode
1064
- info: NodeState
1065
- }
1066
- type ResponseGetNotifications {
1067
- code: StatusCode
1068
- notifications: [Notification!]
1069
- }
1070
- type ResponseGetPassportIssuances {
1071
- code: StatusCode
1072
- list: [PassportIssuanceInfo!]
1073
- }
1074
- type ResponseGetRoutingProviders {
1075
- code: StatusCode
1076
- providers: [RoutingProvider!]
1077
- }
1078
- type ResponseGetRoutingSites {
1079
- code: StatusCode
1080
- sites: [RoutingSite!]
1081
- }
1082
- type ResponseGetRoutingSnapshots {
1083
- code: StatusCode
1084
- snapshots: [RoutingSnapshot!]
1085
- }
1086
- type ResponseGetServices {
1087
- code: StatusCode
1088
- services: [BlockletService!]
1089
- }
1090
- type ResponseGetSession {
1091
- code: StatusCode
1092
- session: Any
1093
- }
1094
- type ResponseGetSnapshotSites {
1095
- code: StatusCode
1096
- sites: [RoutingSite!]
1097
- }
1098
- type ResponseInstallFromUrl {
1099
- code: StatusCode
1100
- preInstallInfo: BlockletPreInstallInfo
1101
- }
1102
- type ResponseLatestBlockletVersion {
1103
- code: StatusCode
1104
- data: LatestBlockletVersion
1105
- }
1106
- type ResponseListBlocklets {
1107
- code: StatusCode
1108
- blocklets: [BlockletMeta!]
1109
- }
1110
- type ResponsePermission {
1111
- code: StatusCode
1112
- permission: Permission
1113
- }
1114
- type ResponsePermissions {
1115
- code: StatusCode
1116
- permissions: [Permission!]
1117
- }
1118
- type ResponseReadNotifications {
1119
- code: StatusCode
1120
- numAffected: Int
1121
- }
1122
- type ResponseResetNode {
1123
- code: StatusCode
1124
- }
1125
- type ResponseRole {
1126
- code: StatusCode
1127
- role: Role
1128
- }
1129
- type ResponseRoles {
1130
- code: StatusCode
1131
- roles: [Role!]
1132
- }
1133
- type ResponseRoutingSite {
1134
- code: StatusCode
1135
- site: RoutingSite
1136
- }
1137
- type ResponseSendMsg {
1138
- code: StatusCode
1139
- }
1140
- type ResponseSenderList {
1141
- code: StatusCode
1142
- senders: [WebHookSender!]
1143
- }
1144
- type ResponseTakeRoutingSnapshot {
1145
- code: StatusCode
1146
- hash: String
1147
- }
1148
- type ResponseUpdateAccessKey {
1149
- code: StatusCode
1150
- data: AccessKey
1151
- }
1152
- type ResponseUpdateNginxHttpsCert {
1153
- code: StatusCode
1154
- }
1155
- type ResponseUpgradeNodeVersion {
1156
- code: StatusCode
1157
- sessionId: String
1158
- }
1159
- type ResponseUser {
1160
- code: StatusCode
1161
- user: MemberInfo
1162
- }
1163
- type ResponseUsers {
1164
- code: StatusCode
1165
- users: [MemberInfo!]
1166
- }
1167
- type ResponseWebHooks {
1168
- code: StatusCode
1169
- webhooks: [WebHookRecord!]
1170
- }
1171
- type Role {
1172
- name: String
1173
- grants: [String!]
1174
- title: String
1175
- isProtected: Boolean
1176
- }
1177
- input RoleInput {
1178
- name: String
1179
- grants: [String!]
1180
- title: String
1181
- isProtected: Boolean
1182
- }
1183
- type RoutingProvider {
1184
- name: String
1185
- description: String
1186
- running: Boolean
1187
- available: Boolean
1188
- error: String
1189
- }
1190
- type RoutingRule {
1191
- id: String
1192
- from: RoutingRuleFrom
1193
- to: RoutingRuleTo
1194
- isProtected: Boolean
1195
- interfaces: [BlockletStateInterface!]
1196
- services: [BlockletService!]
1197
- }
1198
- type RoutingRuleFrom {
1199
- pathPrefix: String
1200
- header: [RoutingRuleHeader!]
1201
- }
1202
- input RoutingRuleFromInput {
1203
- pathPrefix: String
1204
- header: [RoutingRuleHeaderInput!]
1205
- }
1206
- type RoutingRuleHeader {
1207
- key: String
1208
- value: String
1209
- type: HeaderMatchType
1210
- }
1211
- input RoutingRuleHeaderInput {
1212
- key: String
1213
- value: String
1214
- type: HeaderMatchType
1215
- }
1216
- input RoutingRuleInput {
1217
- id: String
1218
- from: RoutingRuleFromInput
1219
- to: RoutingRuleToInput
1220
- isProtected: Boolean
1221
- interfaces: [BlockletStateInterfaceInput!]
1222
- services: [BlockletServiceInput!]
1223
- }
1224
- type RoutingRuleTo {
1225
- port: Int
1226
- type: BackendServiceType
1227
- did: String
1228
- url: String
1229
- redirectCode: Int
1230
- interfaceName: String
1231
- }
1232
- input RoutingRuleToInput {
1233
- port: Int
1234
- type: BackendServiceType
1235
- did: String
1236
- url: String
1237
- redirectCode: Int
1238
- interfaceName: String
1239
- }
1240
- type RoutingSite {
1241
- id: String
1242
- domain: String
1243
- domainAliases: [Any!]
1244
- rules: [RoutingRule!]
1245
- isProtected: Boolean
1246
- corsAllowedOrigins: [String!]
1247
- }
1248
- type RoutingSnapshot {
1249
- hash: String
1250
- tree: String
1251
- message: String
1252
- author: String
1253
- createdAt: String
1254
- }
1255
- type RuntimeInfo {
1256
- pid: String
1257
- port: String
1258
- uptime: String
1259
- memoryUsage: Float
1260
- cpuUsage: Float
1261
- }
1262
- enum SenderType {
1263
- slack
1264
- api
1265
- }
1266
- enum StatusCode {
1267
- ok
1268
- blocklet_not_found
1269
- blocklet_not_purchased
1270
- forbidden
1271
- internal
1272
- timeout
1273
- }
1274
- input TeamInput {
1275
- teamDid: String
1276
- }
1277
- enum Upload {
1278
- scalar
1279
- }
1280
- type WalletInfo {
1281
- did: String
1282
- pk: String
1283
- }
1284
- type WebHookParam {
1285
- name: String
1286
- description: String
1287
- required: Boolean
1288
- defaultValue: String
1289
- value: String
1290
- type: String
1291
- }
1292
- input WebHookParamInput {
1293
- name: String
1294
- description: String
1295
- required: Boolean
1296
- defaultValue: String
1297
- value: String
1298
- type: String
1299
- }
1300
- """
1301
- 这是用户配置的 Sender 列表
1302
-
1303
- """
1304
- type WebHookRecord {
1305
- """
1306
- slack/api
1307
-
1308
- """
1309
- type: SenderType
1310
- id: String
1311
- params: [WebHookParam!]
1312
- createdAt: String
1313
- }
1314
- """
1315
- 描述了 Sender 是什么,需要设什么才能工作
1316
-
1317
- """
1318
- type WebHookSender {
1319
- """
1320
- slack/api
1321
-
1322
- """
1323
- type: SenderType
1324
- """
1325
- Slack Notification
1326
-
1327
- """
1328
- title: String
1329
- description: String
1330
- params: [WebHookParam!]
1331
- }