@abtnode/schema 1.16.41-beta-20250325-154552-2bf78c26 → 1.16.41-beta-20250331-010247-966fcfb0

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
@@ -31,6 +31,19 @@ input AutoCheckUpdateInput {
31
31
  enabled: Boolean
32
32
  }
33
33
 
34
+ input BaseUserInfoInput {
35
+ did: String
36
+ pk: String
37
+ role: String
38
+ avatar: String
39
+ fullName: String
40
+ email: String
41
+ approved: Boolean
42
+ createdAt: Uint32
43
+ updatedAt: Uint32
44
+ locale: String
45
+ }
46
+
34
47
  input BlockPolicyInput {
35
48
  enabled: Boolean
36
49
  blacklist: [String!]
@@ -263,6 +276,10 @@ input PassportInput {
263
276
  lastLoginAt: Uint32
264
277
  scope: String
265
278
  display: PassportDisplayInput
279
+ source: String
280
+ parentDid: String
281
+ userDid: String
282
+ user: BaseUserInfoInput
266
283
  }
267
284
 
268
285
  input PassportDisplayInput {
@@ -270,6 +287,16 @@ input PassportDisplayInput {
270
287
  content: String
271
288
  }
272
289
 
290
+ input PassportLogQueryInput {
291
+ passportId: String
292
+ }
293
+
294
+ input PassportQueryInput {
295
+ role: String
296
+ search: String
297
+ status: String
298
+ }
299
+
273
300
  input PermissionInput {
274
301
  name: String
275
302
  description: String
@@ -489,6 +516,7 @@ input RequestCreateInvitationInput {
489
516
  remark: String
490
517
  sourceAppPid: String
491
518
  display: PassportDisplayInput
519
+ passportExpireTime: String
492
520
  }
493
521
 
494
522
  input RequestCreatePassportIssuanceInput {
@@ -496,6 +524,7 @@ input RequestCreatePassportIssuanceInput {
496
524
  ownerDid: String
497
525
  name: String
498
526
  display: PassportDisplayInput
527
+ passportExpireTime: String
499
528
  }
500
529
 
501
530
  input RequestCreatePermissionInput {
@@ -746,10 +775,10 @@ input RequestGetNotificationsInput {
746
775
  read: Boolean
747
776
  paging: PagingInput
748
777
  teamDid: String
749
- severity: String
750
- componentDid: String
751
- entityId: String
752
- source: String
778
+ severity: [String!]
779
+ componentDid: [String!]
780
+ entityId: [String!]
781
+ source: [String!]
753
782
  }
754
783
 
755
784
  input RequestGetPassportIssuancesInput {
@@ -924,6 +953,18 @@ input RequestNotificationSendLogInput {
924
953
  severities: [String!]
925
954
  }
926
955
 
956
+ input RequestPassportInput {
957
+ teamDid: String
958
+ query: PassportQueryInput
959
+ paging: PagingInput
960
+ }
961
+
962
+ input RequestPassportLogInput {
963
+ teamDid: String
964
+ query: PassportLogQueryInput
965
+ paging: PagingInput
966
+ }
967
+
927
968
  input RequestProjectInput {
928
969
  did: String
929
970
  projectId: String
@@ -961,6 +1002,12 @@ input RequestReceiversInput {
961
1002
  notificationId: String
962
1003
  }
963
1004
 
1005
+ input RequestRelatedPassportsInput {
1006
+ teamDid: String
1007
+ passportId: String
1008
+ paging: PagingInput
1009
+ }
1010
+
964
1011
  input RequestReleaseInput {
965
1012
  did: String
966
1013
  projectId: String
@@ -1206,6 +1253,11 @@ input RequestUpdateUserExtraInput {
1206
1253
  extra: String
1207
1254
  }
1208
1255
 
1256
+ input RequestUpdateUserInfoInput {
1257
+ teamDid: String
1258
+ user: UserInfoInput
1259
+ }
1260
+
1209
1261
  input RequestUpdateUserProfileInput {
1210
1262
  teamDid: String
1211
1263
  did: String
@@ -1572,6 +1624,19 @@ type BackupSummaryItem {
1572
1624
  errorCount: Int32
1573
1625
  }
1574
1626
 
1627
+ type BaseUserInfo {
1628
+ did: String
1629
+ pk: String
1630
+ role: String
1631
+ avatar: String
1632
+ fullName: String
1633
+ email: String
1634
+ approved: Boolean
1635
+ createdAt: Uint32
1636
+ updatedAt: Uint32
1637
+ locale: String
1638
+ }
1639
+
1575
1640
  type BlockPolicy {
1576
1641
  enabled: Boolean
1577
1642
  blacklist: [String!]
@@ -1642,6 +1707,9 @@ type BlockletDocker {
1642
1707
 
1643
1708
  type BlockletDockerMeta {
1644
1709
  image: String
1710
+ shell: String
1711
+ runBaseScript: Boolean
1712
+ installNodeModules: Boolean
1645
1713
  }
1646
1714
 
1647
1715
  type BlockletEngine {
@@ -2316,6 +2384,8 @@ type Notification {
2316
2384
  data: Any
2317
2385
  feedType: String
2318
2386
  statistics: NotificationStatistics
2387
+ activity: NotificationActivity
2388
+ actorInfo: UserInfo
2319
2389
  }
2320
2390
 
2321
2391
  type NotificationAction {
@@ -2326,6 +2396,13 @@ type NotificationAction {
2326
2396
  title: String
2327
2397
  }
2328
2398
 
2399
+ type NotificationActivity {
2400
+ type: NotificationActivity_ActivityTypeEnum
2401
+ actor: String
2402
+ target: Any
2403
+ meta: Any
2404
+ }
2405
+
2329
2406
  type NotificationAttachment {
2330
2407
  data: Any
2331
2408
  fields: Any
@@ -2413,6 +2490,10 @@ type Passport {
2413
2490
  lastLoginAt: Uint32
2414
2491
  scope: String
2415
2492
  display: PassportDisplay
2493
+ source: String
2494
+ parentDid: String
2495
+ userDid: String
2496
+ user: BaseUserInfo
2416
2497
  }
2417
2498
 
2418
2499
  type PassportDisplay {
@@ -2430,6 +2511,17 @@ type PassportIssuanceInfo {
2430
2511
  display: PassportDisplay
2431
2512
  }
2432
2513
 
2514
+ type PassportLogState {
2515
+ id: Uint32
2516
+ passportId: String
2517
+ action: String
2518
+ operatorIp: String
2519
+ operatorUa: String
2520
+ operatorDid: String
2521
+ metadata: Any
2522
+ createdAt: Uint32
2523
+ }
2524
+
2433
2525
  type Permission {
2434
2526
  name: String
2435
2527
  description: String
@@ -2748,6 +2840,12 @@ type ResponseGetNotifications {
2748
2840
  code: StatusCode
2749
2841
  list: [Notification!]
2750
2842
  paging: Paging
2843
+ unreadCount: Int32
2844
+ }
2845
+
2846
+ type ResponseGetPassportCountPerRole {
2847
+ code: StatusCode
2848
+ counts: [KeyValue!]
2751
2849
  }
2752
2850
 
2753
2851
  type ResponseGetPassportIssuances {
@@ -2868,6 +2966,17 @@ type ResponseNotificationSendLog {
2868
2966
  paging: Paging
2869
2967
  }
2870
2968
 
2969
+ type ResponsePassport {
2970
+ code: StatusCode
2971
+ passports: [Passport!]
2972
+ paging: Paging
2973
+ }
2974
+
2975
+ type ResponsePassportLog {
2976
+ passportLogs: [PassportLogState!]
2977
+ paging: Paging
2978
+ }
2979
+
2871
2980
  type ResponsePermission {
2872
2981
  code: StatusCode
2873
2982
  permission: Permission
@@ -3434,6 +3543,15 @@ enum Notification_NotificationType {
3434
3543
  passthrough
3435
3544
  }
3436
3545
 
3546
+ enum NotificationActivity_ActivityTypeEnum {
3547
+ comment
3548
+ like
3549
+ follow
3550
+ tips
3551
+ mention
3552
+ assign
3553
+ }
3554
+
3437
3555
  enum NotificationAttachmentType {
3438
3556
  asset
3439
3557
  vc
@@ -3540,6 +3658,7 @@ type Mutation {
3540
3658
  removeUserPassport(input: RequestRevokeUserPassportInput): GeneralResponse
3541
3659
  switchProfile(input: RequestSwitchProfileInput): ResponseUser
3542
3660
  updateUserAddress(input: RequestUpdateUserAddressInput): ResponseUser
3661
+ updateUserInfo(input: RequestUpdateUserInfoInput): ResponseUser
3543
3662
  createRole(input: RequestCreateRoleInput): ResponseRole
3544
3663
  updateRole(input: RequestTeamRoleInput): ResponseRole
3545
3664
  deleteRole(input: RequestDeleteRoleInput): GeneralResponse
@@ -3667,4 +3786,8 @@ type Query {
3667
3786
  getWebhookEndpoints(input: RequestGetWebhookEndpointsInput): ResponseGetWebhookEndpoints
3668
3787
  getWebhookEndpoint(input: RequestGetWebhookEndpointInput): ResponseGetWebhookEndpoint
3669
3788
  getWebhookAttempts(input: RequestGetWebhookAttemptsInput): ResponseGetWebhookAttempts
3789
+ getPassportRoleCounts(input: TeamInput): ResponseGetPassportCountPerRole
3790
+ getPassportsByRole(input: RequestPassportInput): ResponsePassport
3791
+ getPassportLogs(input: RequestPassportLogInput): ResponsePassportLog
3792
+ getRelatedPassports(input: RequestRelatedPassportsInput): ResponsePassport
3670
3793
  }`;
@@ -31,6 +31,19 @@ input AutoCheckUpdateInput {
31
31
  enabled: Boolean
32
32
  }
33
33
 
34
+ input BaseUserInfoInput {
35
+ did: String
36
+ pk: String
37
+ role: String
38
+ avatar: String
39
+ fullName: String
40
+ email: String
41
+ approved: Boolean
42
+ createdAt: Uint32
43
+ updatedAt: Uint32
44
+ locale: String
45
+ }
46
+
34
47
  input BlockPolicyInput {
35
48
  enabled: Boolean
36
49
  blacklist: [String!]
@@ -263,6 +276,10 @@ input PassportInput {
263
276
  lastLoginAt: Uint32
264
277
  scope: String
265
278
  display: PassportDisplayInput
279
+ source: String
280
+ parentDid: String
281
+ userDid: String
282
+ user: BaseUserInfoInput
266
283
  }
267
284
 
268
285
  input PassportDisplayInput {
@@ -270,6 +287,16 @@ input PassportDisplayInput {
270
287
  content: String
271
288
  }
272
289
 
290
+ input PassportLogQueryInput {
291
+ passportId: String
292
+ }
293
+
294
+ input PassportQueryInput {
295
+ role: String
296
+ search: String
297
+ status: String
298
+ }
299
+
273
300
  input PermissionInput {
274
301
  name: String
275
302
  description: String
@@ -489,6 +516,7 @@ input RequestCreateInvitationInput {
489
516
  remark: String
490
517
  sourceAppPid: String
491
518
  display: PassportDisplayInput
519
+ passportExpireTime: String
492
520
  }
493
521
 
494
522
  input RequestCreatePassportIssuanceInput {
@@ -496,6 +524,7 @@ input RequestCreatePassportIssuanceInput {
496
524
  ownerDid: String
497
525
  name: String
498
526
  display: PassportDisplayInput
527
+ passportExpireTime: String
499
528
  }
500
529
 
501
530
  input RequestCreatePermissionInput {
@@ -746,10 +775,10 @@ input RequestGetNotificationsInput {
746
775
  read: Boolean
747
776
  paging: PagingInput
748
777
  teamDid: String
749
- severity: String
750
- componentDid: String
751
- entityId: String
752
- source: String
778
+ severity: [String!]
779
+ componentDid: [String!]
780
+ entityId: [String!]
781
+ source: [String!]
753
782
  }
754
783
 
755
784
  input RequestGetPassportIssuancesInput {
@@ -924,6 +953,18 @@ input RequestNotificationSendLogInput {
924
953
  severities: [String!]
925
954
  }
926
955
 
956
+ input RequestPassportInput {
957
+ teamDid: String
958
+ query: PassportQueryInput
959
+ paging: PagingInput
960
+ }
961
+
962
+ input RequestPassportLogInput {
963
+ teamDid: String
964
+ query: PassportLogQueryInput
965
+ paging: PagingInput
966
+ }
967
+
927
968
  input RequestProjectInput {
928
969
  did: String
929
970
  projectId: String
@@ -961,6 +1002,12 @@ input RequestReceiversInput {
961
1002
  notificationId: String
962
1003
  }
963
1004
 
1005
+ input RequestRelatedPassportsInput {
1006
+ teamDid: String
1007
+ passportId: String
1008
+ paging: PagingInput
1009
+ }
1010
+
964
1011
  input RequestReleaseInput {
965
1012
  did: String
966
1013
  projectId: String
@@ -1206,6 +1253,11 @@ input RequestUpdateUserExtraInput {
1206
1253
  extra: String
1207
1254
  }
1208
1255
 
1256
+ input RequestUpdateUserInfoInput {
1257
+ teamDid: String
1258
+ user: UserInfoInput
1259
+ }
1260
+
1209
1261
  input RequestUpdateUserProfileInput {
1210
1262
  teamDid: String
1211
1263
  did: String
@@ -1572,6 +1624,19 @@ type BackupSummaryItem {
1572
1624
  errorCount: Int32
1573
1625
  }
1574
1626
 
1627
+ type BaseUserInfo {
1628
+ did: String
1629
+ pk: String
1630
+ role: String
1631
+ avatar: String
1632
+ fullName: String
1633
+ email: String
1634
+ approved: Boolean
1635
+ createdAt: Uint32
1636
+ updatedAt: Uint32
1637
+ locale: String
1638
+ }
1639
+
1575
1640
  type BlockPolicy {
1576
1641
  enabled: Boolean
1577
1642
  blacklist: [String!]
@@ -1642,6 +1707,9 @@ type BlockletDocker {
1642
1707
 
1643
1708
  type BlockletDockerMeta {
1644
1709
  image: String
1710
+ shell: String
1711
+ runBaseScript: Boolean
1712
+ installNodeModules: Boolean
1645
1713
  }
1646
1714
 
1647
1715
  type BlockletEngine {
@@ -2316,6 +2384,8 @@ type Notification {
2316
2384
  data: Any
2317
2385
  feedType: String
2318
2386
  statistics: NotificationStatistics
2387
+ activity: NotificationActivity
2388
+ actorInfo: UserInfo
2319
2389
  }
2320
2390
 
2321
2391
  type NotificationAction {
@@ -2326,6 +2396,13 @@ type NotificationAction {
2326
2396
  title: String
2327
2397
  }
2328
2398
 
2399
+ type NotificationActivity {
2400
+ type: NotificationActivity_ActivityTypeEnum
2401
+ actor: String
2402
+ target: Any
2403
+ meta: Any
2404
+ }
2405
+
2329
2406
  type NotificationAttachment {
2330
2407
  data: Any
2331
2408
  fields: Any
@@ -2413,6 +2490,10 @@ type Passport {
2413
2490
  lastLoginAt: Uint32
2414
2491
  scope: String
2415
2492
  display: PassportDisplay
2493
+ source: String
2494
+ parentDid: String
2495
+ userDid: String
2496
+ user: BaseUserInfo
2416
2497
  }
2417
2498
 
2418
2499
  type PassportDisplay {
@@ -2430,6 +2511,17 @@ type PassportIssuanceInfo {
2430
2511
  display: PassportDisplay
2431
2512
  }
2432
2513
 
2514
+ type PassportLogState {
2515
+ id: Uint32
2516
+ passportId: String
2517
+ action: String
2518
+ operatorIp: String
2519
+ operatorUa: String
2520
+ operatorDid: String
2521
+ metadata: Any
2522
+ createdAt: Uint32
2523
+ }
2524
+
2433
2525
  type Permission {
2434
2526
  name: String
2435
2527
  description: String
@@ -2748,6 +2840,12 @@ type ResponseGetNotifications {
2748
2840
  code: StatusCode
2749
2841
  list: [Notification!]
2750
2842
  paging: Paging
2843
+ unreadCount: Int32
2844
+ }
2845
+
2846
+ type ResponseGetPassportCountPerRole {
2847
+ code: StatusCode
2848
+ counts: [KeyValue!]
2751
2849
  }
2752
2850
 
2753
2851
  type ResponseGetPassportIssuances {
@@ -2868,6 +2966,17 @@ type ResponseNotificationSendLog {
2868
2966
  paging: Paging
2869
2967
  }
2870
2968
 
2969
+ type ResponsePassport {
2970
+ code: StatusCode
2971
+ passports: [Passport!]
2972
+ paging: Paging
2973
+ }
2974
+
2975
+ type ResponsePassportLog {
2976
+ passportLogs: [PassportLogState!]
2977
+ paging: Paging
2978
+ }
2979
+
2871
2980
  type ResponsePermission {
2872
2981
  code: StatusCode
2873
2982
  permission: Permission
@@ -3434,6 +3543,15 @@ enum Notification_NotificationType {
3434
3543
  passthrough
3435
3544
  }
3436
3545
 
3546
+ enum NotificationActivity_ActivityTypeEnum {
3547
+ comment
3548
+ like
3549
+ follow
3550
+ tips
3551
+ mention
3552
+ assign
3553
+ }
3554
+
3437
3555
  enum NotificationAttachmentType {
3438
3556
  asset
3439
3557
  vc
@@ -3542,6 +3660,7 @@ type Mutation {
3542
3660
  removeUserPassport(input: RequestRevokeUserPassportInput): GeneralResponse
3543
3661
  switchProfile(input: RequestSwitchProfileInput): ResponseUser
3544
3662
  updateUserAddress(input: RequestUpdateUserAddressInput): ResponseUser
3663
+ updateUserInfo(input: RequestUpdateUserInfoInput): ResponseUser
3545
3664
  createRole(input: RequestCreateRoleInput): ResponseRole
3546
3665
  updateRole(input: RequestTeamRoleInput): ResponseRole
3547
3666
  deleteRole(input: RequestDeleteRoleInput): GeneralResponse
@@ -3669,5 +3788,9 @@ type Query {
3669
3788
  getWebhookEndpoints(input: RequestGetWebhookEndpointsInput): ResponseGetWebhookEndpoints
3670
3789
  getWebhookEndpoint(input: RequestGetWebhookEndpointInput): ResponseGetWebhookEndpoint
3671
3790
  getWebhookAttempts(input: RequestGetWebhookAttemptsInput): ResponseGetWebhookAttempts
3791
+ getPassportRoleCounts(input: TeamInput): ResponseGetPassportCountPerRole
3792
+ getPassportsByRole(input: RequestPassportInput): ResponsePassport
3793
+ getPassportLogs(input: RequestPassportLogInput): ResponsePassportLog
3794
+ getRelatedPassports(input: RequestRelatedPassportsInput): ResponsePassport
3672
3795
  }
3673
3796
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.41-beta-20250325-154552-2bf78c26",
6
+ "version": "1.16.41-beta-20250331-010247-966fcfb0",
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": "Apache-2.0",
16
- "gitHead": "5342bdb7acbcba223a94817f686331c1beeb49c0",
16
+ "gitHead": "3c7f691205d82118ef5e8d60fbb2dd84fe7b7b7c",
17
17
  "devDependencies": {
18
18
  "@wangshijun/ts-protoc-gen": "^0.16.2"
19
19
  }