@abtnode/schema 1.8.35 → 1.8.37

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
@@ -11,16 +11,15 @@ scalar Int64
11
11
 
12
12
  scalar Uint32
13
13
 
14
- input BlockletRegistryInput {
15
- name: String
16
- description: String
17
- url: String
18
- logoUrl: String
19
- maintainer: String
20
- cdnUrl: String
21
- selected: Boolean
22
- protected: Boolean
14
+ input BlockletControllerInput {
23
15
  id: String
16
+ nftId: String
17
+ nftOwner: String
18
+ expireDate: Uint32
19
+ }
20
+
21
+ input BlockletQueryInput {
22
+ controller: BlockletControllerInput
24
23
  }
25
24
 
26
25
  input BlockletServiceInput {
@@ -31,11 +30,15 @@ input BlockletServiceInput {
31
30
  schema: String
32
31
  }
33
32
 
34
- input BlockletStateInterfaceInput {
35
- ruleId: String
36
- type: String
33
+ input BlockletStoreInput {
37
34
  name: String
35
+ description: String
38
36
  url: String
37
+ logoUrl: String
38
+ maintainer: String
39
+ cdnUrl: String
40
+ protected: Boolean
41
+ id: String
39
42
  }
40
43
 
41
44
  input ConfigEntryInput {
@@ -67,7 +70,7 @@ input NodeInfoInput {
67
70
  enableWelcomePage: Boolean
68
71
  registerUrl: String
69
72
  webWalletUrl: String
70
- blockletRegistryList: [BlockletRegistryInput!]
73
+ blockletRegistryList: [BlockletStoreInput!]
71
74
  diskAlertThreshold: Uint32
72
75
  }
73
76
 
@@ -127,7 +130,7 @@ input RequestAddRoutingSiteInput {
127
130
 
128
131
  input RequestBlockletInput {
129
132
  did: String
130
- registryUrl: String
133
+ storeUrl: String
131
134
  attachRuntimeInfo: Boolean
132
135
  }
133
136
 
@@ -148,6 +151,7 @@ input RequestBlockletMetaFromUrlInput {
148
151
  }
149
152
 
150
153
  input RequestChangeBlockletStoreInput {
154
+ teamDid: String
151
155
  url: String
152
156
  }
153
157
 
@@ -294,6 +298,7 @@ input RequestGetAuditLogsInput {
294
298
 
295
299
  input RequestGetBlockletsInput {
296
300
  useCache: Boolean
301
+ query: BlockletQueryInput
297
302
  }
298
303
 
299
304
  input RequestGetNotificationsInput {
@@ -495,7 +500,7 @@ input RequestUpdateWhoCanAccessInput {
495
500
 
496
501
  input RequestUpgradeBlockletInput {
497
502
  did: String
498
- registryUrl: String
503
+ storeUrl: String
499
504
  }
500
505
 
501
506
  input RequestUsersInput {
@@ -508,6 +513,7 @@ input RequestUsersInput {
508
513
 
509
514
  input RequestVersionedBlockletInput {
510
515
  did: String
516
+ storeUrl: String
511
517
  url: String
512
518
  file: Upload
513
519
  diffVersion: String
@@ -536,7 +542,6 @@ input RoutingRuleInput {
536
542
  from: RoutingRuleFromInput
537
543
  to: RoutingRuleToInput
538
544
  isProtected: Boolean
539
- interfaces: [BlockletStateInterfaceInput!]
540
545
  services: [BlockletServiceInput!]
541
546
  }
542
547
 
@@ -672,7 +677,8 @@ type BlockletCapabilities {
672
677
 
673
678
  type BlockletController {
674
679
  id: String
675
- vcId: String
680
+ nftId: String
681
+ nftOwner: String
676
682
  expireDate: Uint32
677
683
  }
678
684
 
@@ -776,18 +782,6 @@ type BlockletPreUpdateInfo {
776
782
  updateList: [UpdateList!]
777
783
  }
778
784
 
779
- type BlockletRegistry {
780
- name: String
781
- description: String
782
- url: String
783
- logoUrl: String
784
- maintainer: String
785
- cdnUrl: String
786
- selected: Boolean
787
- protected: Boolean
788
- id: String
789
- }
790
-
791
785
  type BlockletRepository {
792
786
  type: String
793
787
  url: String
@@ -809,6 +803,7 @@ type BlockletSettings {
809
803
  owner: WalletInfo
810
804
  children: [DeletedBlockletState!]
811
805
  publicToStore: Boolean
806
+ storeList: [BlockletStore!]
812
807
  }
813
808
 
814
809
  type BlockletState {
@@ -827,11 +822,10 @@ type BlockletState {
827
822
  deployedFrom: String
828
823
  bundleSource: Any
829
824
  port: Float32
830
- interfaces: [BlockletStateInterface!]
831
825
  engine: BlockletEngine
832
826
  mode: String
833
827
  ports: Any
834
- children: [BlockletState!]
828
+ children: [ComponentState!]
835
829
  trustedPassports: [TrustedPassport!]
836
830
  enablePassportIssuance: Boolean
837
831
  dynamic: Boolean
@@ -842,19 +836,23 @@ type BlockletState {
842
836
  controller: BlockletController
843
837
  }
844
838
 
845
- type BlockletStateInterface {
846
- ruleId: String
847
- type: String
848
- name: String
849
- url: String
850
- }
851
-
852
839
  type BlockletStats {
853
840
  downloads: Float32
854
841
  star: Float32
855
842
  purchases: Float32
856
843
  }
857
844
 
845
+ type BlockletStore {
846
+ name: String
847
+ description: String
848
+ url: String
849
+ logoUrl: String
850
+ maintainer: String
851
+ cdnUrl: String
852
+ protected: Boolean
853
+ id: String
854
+ }
855
+
858
856
  type BooleanResponse {
859
857
  code: StatusCode
860
858
  result: Boolean
@@ -894,6 +892,30 @@ type ChildConfig {
894
892
  mountPoint: String
895
893
  }
896
894
 
895
+ type ComponentState {
896
+ meta: BlockletMeta
897
+ status: BlockletStatus
898
+ createdAt: String
899
+ installedAt: String
900
+ startedAt: String
901
+ pausedAt: String
902
+ stoppedAt: String
903
+ environments: [ConfigEntry!]
904
+ configs: [ConfigEntry!]
905
+ diskInfo: DiskInfo
906
+ runtimeInfo: RuntimeInfo
907
+ source: BlockletSource
908
+ deployedFrom: String
909
+ bundleSource: Any
910
+ port: Float32
911
+ engine: BlockletEngine
912
+ mode: String
913
+ ports: Any
914
+ children: [ComponentState!]
915
+ dynamic: Boolean
916
+ mountPoint: String
917
+ }
918
+
897
919
  type ConfigEntry {
898
920
  key: String
899
921
  value: String
@@ -1057,7 +1079,7 @@ type NodeState {
1057
1079
  registerUrl: String
1058
1080
  enableWelcomePage: Boolean
1059
1081
  webWalletUrl: String
1060
- blockletRegistryList: [BlockletRegistry!]
1082
+ blockletRegistryList: [BlockletStore!]
1061
1083
  ownerNft: OwnerNft
1062
1084
  diskAlertThreshold: Uint32
1063
1085
  trustedPassports: [TrustedPassport!]
@@ -1431,7 +1453,6 @@ type RoutingRule {
1431
1453
  from: RoutingRuleFrom
1432
1454
  to: RoutingRuleTo
1433
1455
  isProtected: Boolean
1434
- interfaces: [BlockletStateInterface!]
1435
1456
  services: [BlockletService!]
1436
1457
  }
1437
1458
 
@@ -1630,9 +1651,6 @@ type Mutation {
1630
1651
  updateNodeInfo(input: NodeInfoInput): ResponseGetNodeInfo
1631
1652
  updateNodeRouting(input: RequestNodeRoutingInput): ResponseGetNodeInfo
1632
1653
  upgradeNodeVersion: ResponseUpgradeNodeVersion
1633
- addBlockletStore(input: RequestChangeBlockletStoreInput): GeneralResponse
1634
- deleteBlockletStore(input: RequestChangeBlockletStoreInput): GeneralResponse
1635
- selectBlockletStore(input: RequestChangeBlockletStoreInput): GeneralResponse
1636
1654
  resetNode(input: RequestResetNodeInput): ResponseResetNode
1637
1655
  updateGateway(input: RequestGatewayInput): ResponseGateway
1638
1656
  createMemberInvitation(input: RequestCreateInvitationInput): ResponseCreateInvitation
@@ -1658,6 +1676,8 @@ type Mutation {
1658
1676
  revokePermissionFromRole(input: RequestRevokePermissionFromRoleInput): GeneralResponse
1659
1677
  updatePermissionsForRole(input: RequestUpdatePermissionsForRoleInput): ResponseRole
1660
1678
  hasPermission(input: RequestHasPermissionInput): BooleanResponse
1679
+ addBlockletStore(input: RequestChangeBlockletStoreInput): GeneralResponse
1680
+ deleteBlockletStore(input: RequestChangeBlockletStoreInput): GeneralResponse
1661
1681
  readNotifications(input: RequestReadNotificationsInput): ResponseReadNotifications
1662
1682
  unreadNotifications(input: RequestReadNotificationsInput): ResponseReadNotifications
1663
1683
  addRoutingSite(input: RequestAddRoutingSiteInput): ResponseRoutingSite
@@ -11,16 +11,15 @@ scalar Int64
11
11
 
12
12
  scalar Uint32
13
13
 
14
- input BlockletRegistryInput {
15
- name: String
16
- description: String
17
- url: String
18
- logoUrl: String
19
- maintainer: String
20
- cdnUrl: String
21
- selected: Boolean
22
- protected: Boolean
14
+ input BlockletControllerInput {
23
15
  id: String
16
+ nftId: String
17
+ nftOwner: String
18
+ expireDate: Uint32
19
+ }
20
+
21
+ input BlockletQueryInput {
22
+ controller: BlockletControllerInput
24
23
  }
25
24
 
26
25
  input BlockletServiceInput {
@@ -31,11 +30,15 @@ input BlockletServiceInput {
31
30
  schema: String
32
31
  }
33
32
 
34
- input BlockletStateInterfaceInput {
35
- ruleId: String
36
- type: String
33
+ input BlockletStoreInput {
37
34
  name: String
35
+ description: String
38
36
  url: String
37
+ logoUrl: String
38
+ maintainer: String
39
+ cdnUrl: String
40
+ protected: Boolean
41
+ id: String
39
42
  }
40
43
 
41
44
  input ConfigEntryInput {
@@ -67,7 +70,7 @@ input NodeInfoInput {
67
70
  enableWelcomePage: Boolean
68
71
  registerUrl: String
69
72
  webWalletUrl: String
70
- blockletRegistryList: [BlockletRegistryInput!]
73
+ blockletRegistryList: [BlockletStoreInput!]
71
74
  diskAlertThreshold: Uint32
72
75
  }
73
76
 
@@ -127,7 +130,7 @@ input RequestAddRoutingSiteInput {
127
130
 
128
131
  input RequestBlockletInput {
129
132
  did: String
130
- registryUrl: String
133
+ storeUrl: String
131
134
  attachRuntimeInfo: Boolean
132
135
  }
133
136
 
@@ -148,6 +151,7 @@ input RequestBlockletMetaFromUrlInput {
148
151
  }
149
152
 
150
153
  input RequestChangeBlockletStoreInput {
154
+ teamDid: String
151
155
  url: String
152
156
  }
153
157
 
@@ -294,6 +298,7 @@ input RequestGetAuditLogsInput {
294
298
 
295
299
  input RequestGetBlockletsInput {
296
300
  useCache: Boolean
301
+ query: BlockletQueryInput
297
302
  }
298
303
 
299
304
  input RequestGetNotificationsInput {
@@ -495,7 +500,7 @@ input RequestUpdateWhoCanAccessInput {
495
500
 
496
501
  input RequestUpgradeBlockletInput {
497
502
  did: String
498
- registryUrl: String
503
+ storeUrl: String
499
504
  }
500
505
 
501
506
  input RequestUsersInput {
@@ -508,6 +513,7 @@ input RequestUsersInput {
508
513
 
509
514
  input RequestVersionedBlockletInput {
510
515
  did: String
516
+ storeUrl: String
511
517
  url: String
512
518
  file: Upload
513
519
  diffVersion: String
@@ -536,7 +542,6 @@ input RoutingRuleInput {
536
542
  from: RoutingRuleFromInput
537
543
  to: RoutingRuleToInput
538
544
  isProtected: Boolean
539
- interfaces: [BlockletStateInterfaceInput!]
540
545
  services: [BlockletServiceInput!]
541
546
  }
542
547
 
@@ -672,7 +677,8 @@ type BlockletCapabilities {
672
677
 
673
678
  type BlockletController {
674
679
  id: String
675
- vcId: String
680
+ nftId: String
681
+ nftOwner: String
676
682
  expireDate: Uint32
677
683
  }
678
684
 
@@ -776,18 +782,6 @@ type BlockletPreUpdateInfo {
776
782
  updateList: [UpdateList!]
777
783
  }
778
784
 
779
- type BlockletRegistry {
780
- name: String
781
- description: String
782
- url: String
783
- logoUrl: String
784
- maintainer: String
785
- cdnUrl: String
786
- selected: Boolean
787
- protected: Boolean
788
- id: String
789
- }
790
-
791
785
  type BlockletRepository {
792
786
  type: String
793
787
  url: String
@@ -809,6 +803,7 @@ type BlockletSettings {
809
803
  owner: WalletInfo
810
804
  children: [DeletedBlockletState!]
811
805
  publicToStore: Boolean
806
+ storeList: [BlockletStore!]
812
807
  }
813
808
 
814
809
  type BlockletState {
@@ -827,11 +822,10 @@ type BlockletState {
827
822
  deployedFrom: String
828
823
  bundleSource: Any
829
824
  port: Float32
830
- interfaces: [BlockletStateInterface!]
831
825
  engine: BlockletEngine
832
826
  mode: String
833
827
  ports: Any
834
- children: [BlockletState!]
828
+ children: [ComponentState!]
835
829
  trustedPassports: [TrustedPassport!]
836
830
  enablePassportIssuance: Boolean
837
831
  dynamic: Boolean
@@ -842,19 +836,23 @@ type BlockletState {
842
836
  controller: BlockletController
843
837
  }
844
838
 
845
- type BlockletStateInterface {
846
- ruleId: String
847
- type: String
848
- name: String
849
- url: String
850
- }
851
-
852
839
  type BlockletStats {
853
840
  downloads: Float32
854
841
  star: Float32
855
842
  purchases: Float32
856
843
  }
857
844
 
845
+ type BlockletStore {
846
+ name: String
847
+ description: String
848
+ url: String
849
+ logoUrl: String
850
+ maintainer: String
851
+ cdnUrl: String
852
+ protected: Boolean
853
+ id: String
854
+ }
855
+
858
856
  type BooleanResponse {
859
857
  code: StatusCode
860
858
  result: Boolean
@@ -894,6 +892,30 @@ type ChildConfig {
894
892
  mountPoint: String
895
893
  }
896
894
 
895
+ type ComponentState {
896
+ meta: BlockletMeta
897
+ status: BlockletStatus
898
+ createdAt: String
899
+ installedAt: String
900
+ startedAt: String
901
+ pausedAt: String
902
+ stoppedAt: String
903
+ environments: [ConfigEntry!]
904
+ configs: [ConfigEntry!]
905
+ diskInfo: DiskInfo
906
+ runtimeInfo: RuntimeInfo
907
+ source: BlockletSource
908
+ deployedFrom: String
909
+ bundleSource: Any
910
+ port: Float32
911
+ engine: BlockletEngine
912
+ mode: String
913
+ ports: Any
914
+ children: [ComponentState!]
915
+ dynamic: Boolean
916
+ mountPoint: String
917
+ }
918
+
897
919
  type ConfigEntry {
898
920
  key: String
899
921
  value: String
@@ -1057,7 +1079,7 @@ type NodeState {
1057
1079
  registerUrl: String
1058
1080
  enableWelcomePage: Boolean
1059
1081
  webWalletUrl: String
1060
- blockletRegistryList: [BlockletRegistry!]
1082
+ blockletRegistryList: [BlockletStore!]
1061
1083
  ownerNft: OwnerNft
1062
1084
  diskAlertThreshold: Uint32
1063
1085
  trustedPassports: [TrustedPassport!]
@@ -1431,7 +1453,6 @@ type RoutingRule {
1431
1453
  from: RoutingRuleFrom
1432
1454
  to: RoutingRuleTo
1433
1455
  isProtected: Boolean
1434
- interfaces: [BlockletStateInterface!]
1435
1456
  services: [BlockletService!]
1436
1457
  }
1437
1458
 
@@ -1632,9 +1653,6 @@ type Mutation {
1632
1653
  updateNodeInfo(input: NodeInfoInput): ResponseGetNodeInfo
1633
1654
  updateNodeRouting(input: RequestNodeRoutingInput): ResponseGetNodeInfo
1634
1655
  upgradeNodeVersion: ResponseUpgradeNodeVersion
1635
- addBlockletStore(input: RequestChangeBlockletStoreInput): GeneralResponse
1636
- deleteBlockletStore(input: RequestChangeBlockletStoreInput): GeneralResponse
1637
- selectBlockletStore(input: RequestChangeBlockletStoreInput): GeneralResponse
1638
1656
  resetNode(input: RequestResetNodeInput): ResponseResetNode
1639
1657
  updateGateway(input: RequestGatewayInput): ResponseGateway
1640
1658
  createMemberInvitation(input: RequestCreateInvitationInput): ResponseCreateInvitation
@@ -1660,6 +1678,8 @@ type Mutation {
1660
1678
  revokePermissionFromRole(input: RequestRevokePermissionFromRoleInput): GeneralResponse
1661
1679
  updatePermissionsForRole(input: RequestUpdatePermissionsForRoleInput): ResponseRole
1662
1680
  hasPermission(input: RequestHasPermissionInput): BooleanResponse
1681
+ addBlockletStore(input: RequestChangeBlockletStoreInput): GeneralResponse
1682
+ deleteBlockletStore(input: RequestChangeBlockletStoreInput): GeneralResponse
1663
1683
  readNotifications(input: RequestReadNotificationsInput): ResponseReadNotifications
1664
1684
  unreadNotifications(input: RequestReadNotificationsInput): ResponseReadNotifications
1665
1685
  addRoutingSite(input: RequestAddRoutingSiteInput): ResponseRoutingSite
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.35",
6
+ "version": "1.8.37",
7
7
  "description": "",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -13,7 +13,7 @@
13
13
  "keywords": [],
14
14
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
15
15
  "license": "MIT",
16
- "gitHead": "dd89e7a61dc8cff64302608ad5ab6545dd903daa",
16
+ "gitHead": "f26f451c6e2b1168b36f78269eafdf3f671236bf",
17
17
  "devDependencies": {
18
18
  "@wangshijun/ts-protoc-gen": "^0.16.2"
19
19
  }