@blocklet/server-js 1.16.49-beta-20250823-082650-626c1473 → 1.16.49-beta-20250827-025603-2bb1a7ee

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/docs/QUERIES.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ABT Node GraphQL API List
2
2
 
3
- > Updated on 2025-08-22T10:17:28.922Z
3
+ > Updated on 2025-08-26T06:14:34.503Z
4
4
 
5
5
  ## Table of Contents
6
6
 
@@ -4490,6 +4490,7 @@ No arguments
4490
4490
  fullName
4491
4491
  generation
4492
4492
  inviter
4493
+ isFollowing
4493
4494
  lastLoginAt
4494
4495
  lastLoginIp
4495
4496
  locale
@@ -4658,6 +4659,7 @@ No arguments
4658
4659
  fullName
4659
4660
  generation
4660
4661
  inviter
4662
+ isFollowing
4661
4663
  lastLoginAt
4662
4664
  lastLoginIp
4663
4665
  locale
@@ -4892,6 +4894,7 @@ No arguments
4892
4894
  fullName
4893
4895
  generation
4894
4896
  inviter
4897
+ isFollowing
4895
4898
  lastLoginAt
4896
4899
  lastLoginIp
4897
4900
  locale
@@ -5060,6 +5063,7 @@ No arguments
5060
5063
  fullName
5061
5064
  generation
5062
5065
  inviter
5066
+ isFollowing
5063
5067
  lastLoginAt
5064
5068
  lastLoginIp
5065
5069
  locale
@@ -5274,6 +5278,7 @@ No arguments
5274
5278
  fullName
5275
5279
  generation
5276
5280
  inviter
5281
+ isFollowing
5277
5282
  lastLoginAt
5278
5283
  lastLoginIp
5279
5284
  locale
@@ -5973,6 +5978,7 @@ No arguments
5973
5978
  fullName
5974
5979
  generation
5975
5980
  inviter
5981
+ isFollowing
5976
5982
  lastLoginAt
5977
5983
  lastLoginIp
5978
5984
  locale
@@ -6124,6 +6130,7 @@ No arguments
6124
6130
  fullName
6125
6131
  generation
6126
6132
  inviter
6133
+ isFollowing
6127
6134
  lastLoginAt
6128
6135
  lastLoginIp
6129
6136
  locale
@@ -6268,6 +6275,7 @@ No arguments
6268
6275
  fullName
6269
6276
  generation
6270
6277
  inviter
6278
+ isFollowing
6271
6279
  lastLoginAt
6272
6280
  lastLoginIp
6273
6281
  locale
@@ -6501,6 +6509,7 @@ No arguments
6501
6509
  fullName
6502
6510
  generation
6503
6511
  inviter
6512
+ isFollowing
6504
6513
  lastLoginAt
6505
6514
  lastLoginIp
6506
6515
  locale
@@ -6710,6 +6719,7 @@ No arguments
6710
6719
  fullName
6711
6720
  generation
6712
6721
  inviter
6722
+ isFollowing
6713
6723
  lastLoginAt
6714
6724
  lastLoginIp
6715
6725
  locale
@@ -6859,6 +6869,7 @@ No arguments
6859
6869
  fullName
6860
6870
  generation
6861
6871
  inviter
6872
+ isFollowing
6862
6873
  lastLoginAt
6863
6874
  lastLoginIp
6864
6875
  locale
@@ -7015,6 +7026,7 @@ No arguments
7015
7026
  fullName
7016
7027
  generation
7017
7028
  inviter
7029
+ isFollowing
7018
7030
  lastLoginAt
7019
7031
  lastLoginIp
7020
7032
  locale
@@ -7153,8 +7165,56 @@ No arguments
7153
7165
  {
7154
7166
  getUserFollowStats {
7155
7167
  code
7156
- followers
7157
- following
7168
+ data
7169
+ }
7170
+ }
7171
+ ```
7172
+
7173
+ ### checkFollowing
7174
+
7175
+ #### Arguments
7176
+
7177
+ - **input**, optional, null
7178
+
7179
+ #### Result Format
7180
+
7181
+ ```graphql
7182
+ {
7183
+ checkFollowing {
7184
+ code
7185
+ data
7186
+ }
7187
+ }
7188
+ ```
7189
+
7190
+ ### followUser
7191
+
7192
+ #### Arguments
7193
+
7194
+ - **input**, optional, null
7195
+
7196
+ #### Result Format
7197
+
7198
+ ```graphql
7199
+ {
7200
+ followUser {
7201
+ code
7202
+ }
7203
+ }
7204
+ ```
7205
+
7206
+ ### unfollowUser
7207
+
7208
+ #### Arguments
7209
+
7210
+ - **input**, optional, null
7211
+
7212
+ #### Result Format
7213
+
7214
+ ```graphql
7215
+ {
7216
+ unfollowUser {
7217
+ code
7158
7218
  }
7159
7219
  }
7160
7220
  ```
@@ -7883,6 +7943,7 @@ No arguments
7883
7943
  fullName
7884
7944
  generation
7885
7945
  inviter
7946
+ isFollowing
7886
7947
  lastLoginAt
7887
7948
  lastLoginIp
7888
7949
  locale
@@ -8015,6 +8076,7 @@ No arguments
8015
8076
  fullName
8016
8077
  generation
8017
8078
  inviter
8079
+ isFollowing
8018
8080
  lastLoginAt
8019
8081
  lastLoginIp
8020
8082
  locale
@@ -8174,6 +8236,7 @@ No arguments
8174
8236
  fullName
8175
8237
  generation
8176
8238
  inviter
8239
+ isFollowing
8177
8240
  lastLoginAt
8178
8241
  lastLoginIp
8179
8242
  locale
@@ -8306,6 +8369,7 @@ No arguments
8306
8369
  fullName
8307
8370
  generation
8308
8371
  inviter
8372
+ isFollowing
8309
8373
  lastLoginAt
8310
8374
  lastLoginIp
8311
8375
  locale
@@ -8767,6 +8831,7 @@ No arguments
8767
8831
  fullName
8768
8832
  generation
8769
8833
  inviter
8834
+ isFollowing
8770
8835
  lastLoginAt
8771
8836
  lastLoginIp
8772
8837
  locale
@@ -8933,6 +8998,7 @@ No arguments
8933
8998
  fullName
8934
8999
  generation
8935
9000
  inviter
9001
+ isFollowing
8936
9002
  lastLoginAt
8937
9003
  lastLoginIp
8938
9004
  locale
@@ -9099,6 +9165,7 @@ No arguments
9099
9165
  fullName
9100
9166
  generation
9101
9167
  inviter
9168
+ isFollowing
9102
9169
  lastLoginAt
9103
9170
  lastLoginIp
9104
9171
  locale
@@ -43845,6 +43912,7 @@ mutation {
43845
43912
  fullName
43846
43913
  generation
43847
43914
  inviter
43915
+ isFollowing
43848
43916
  lastLoginAt
43849
43917
  lastLoginIp
43850
43918
  locale
@@ -44001,6 +44069,7 @@ mutation {
44001
44069
  fullName
44002
44070
  generation
44003
44071
  inviter
44072
+ isFollowing
44004
44073
  lastLoginAt
44005
44074
  lastLoginIp
44006
44075
  locale
@@ -44254,6 +44323,7 @@ mutation {
44254
44323
  fullName
44255
44324
  generation
44256
44325
  inviter
44326
+ isFollowing
44257
44327
  lastLoginAt
44258
44328
  lastLoginIp
44259
44329
  locale
@@ -44398,6 +44468,7 @@ mutation {
44398
44468
  fullName
44399
44469
  generation
44400
44470
  inviter
44471
+ isFollowing
44401
44472
  lastLoginAt
44402
44473
  lastLoginIp
44403
44474
  locale
@@ -44542,6 +44613,7 @@ mutation {
44542
44613
  fullName
44543
44614
  generation
44544
44615
  inviter
44616
+ isFollowing
44545
44617
  lastLoginAt
44546
44618
  lastLoginIp
44547
44619
  locale
@@ -44686,6 +44758,7 @@ mutation {
44686
44758
  fullName
44687
44759
  generation
44688
44760
  inviter
44761
+ isFollowing
44689
44762
  lastLoginAt
44690
44763
  lastLoginIp
44691
44764
  locale
@@ -44830,6 +44903,7 @@ mutation {
44830
44903
  fullName
44831
44904
  generation
44832
44905
  inviter
44906
+ isFollowing
44833
44907
  lastLoginAt
44834
44908
  lastLoginIp
44835
44909
  locale
@@ -44974,6 +45048,7 @@ mutation {
44974
45048
  fullName
44975
45049
  generation
44976
45050
  inviter
45051
+ isFollowing
44977
45052
  lastLoginAt
44978
45053
  lastLoginIp
44979
45054
  locale
@@ -45118,6 +45193,7 @@ mutation {
45118
45193
  fullName
45119
45194
  generation
45120
45195
  inviter
45196
+ isFollowing
45121
45197
  lastLoginAt
45122
45198
  lastLoginIp
45123
45199
  locale
@@ -45278,6 +45354,7 @@ mutation {
45278
45354
  fullName
45279
45355
  generation
45280
45356
  inviter
45357
+ isFollowing
45281
45358
  lastLoginAt
45282
45359
  lastLoginIp
45283
45360
  locale
@@ -45422,6 +45499,7 @@ mutation {
45422
45499
  fullName
45423
45500
  generation
45424
45501
  inviter
45502
+ isFollowing
45425
45503
  lastLoginAt
45426
45504
  lastLoginIp
45427
45505
  locale
@@ -45566,6 +45644,7 @@ mutation {
45566
45644
  fullName
45567
45645
  generation
45568
45646
  inviter
45647
+ isFollowing
45569
45648
  lastLoginAt
45570
45649
  lastLoginIp
45571
45650
  locale
package/lib/node.d.ts CHANGED
@@ -148,6 +148,11 @@ declare class ABTNodeClient {
148
148
  getUserFollowStats(
149
149
  params: PartialDeep<ABTNodeClient.GetUserFollowStatsParams>
150
150
  ): Promise<ABTNodeClient.ResponseFollowStats>;
151
+ checkFollowing(
152
+ params: PartialDeep<ABTNodeClient.CheckFollowingParams>
153
+ ): Promise<ABTNodeClient.ResponseCheckFollowing>;
154
+ followUser(params: PartialDeep<ABTNodeClient.FollowUserParams>): Promise<ABTNodeClient.GeneralResponse>;
155
+ unfollowUser(params: PartialDeep<ABTNodeClient.UnfollowUserParams>): Promise<ABTNodeClient.GeneralResponse>;
151
156
  getTags(params: PartialDeep<ABTNodeClient.GetTagsParams>): Promise<ABTNodeClient.ResponseTags>;
152
157
  getAuditLogs(params: PartialDeep<ABTNodeClient.GetAuditLogsParams>): Promise<ABTNodeClient.ResponseGetAuditLogs>;
153
158
  getLauncherSession(
@@ -1002,6 +1007,11 @@ declare namespace ABTNodeClient {
1002
1007
  realIpHeader: string;
1003
1008
  }
1004
1009
 
1010
+ interface QueryUserFollowOptionsInput {
1011
+ includeUserInfo: boolean;
1012
+ includeFollowStatus: boolean;
1013
+ }
1014
+
1005
1015
  interface RequestAbortBlockletBackupInput {
1006
1016
  appPid: string;
1007
1017
  }
@@ -1157,6 +1167,12 @@ declare namespace ABTNodeClient {
1157
1167
  did: string;
1158
1168
  }
1159
1169
 
1170
+ interface RequestCheckFollowingInput {
1171
+ teamDid: string;
1172
+ userDids: string[];
1173
+ followerDid: string;
1174
+ }
1175
+
1160
1176
  interface RequestClearCacheInput {
1161
1177
  teamDid: string;
1162
1178
  pattern: string;
@@ -1481,6 +1497,13 @@ declare namespace ABTNodeClient {
1481
1497
  did: string;
1482
1498
  }
1483
1499
 
1500
+ interface RequestFollowUserActionInput {
1501
+ teamDid: string;
1502
+ userDid: string;
1503
+ followerDid: string;
1504
+ options: ABTNodeClient.UserFollowOptionsInput;
1505
+ }
1506
+
1484
1507
  interface RequestGetAuditLogsInput {
1485
1508
  paging: ABTNodeClient.PagingInput;
1486
1509
  scope: string;
@@ -2083,11 +2106,12 @@ declare namespace ABTNodeClient {
2083
2106
  userDid: string;
2084
2107
  paging: ABTNodeClient.PagingInput;
2085
2108
  sort: ABTNodeClient.UserSortInput;
2109
+ options: ABTNodeClient.QueryUserFollowOptionsInput;
2086
2110
  }
2087
2111
 
2088
2112
  interface RequestUserFollowsStatsInput {
2089
2113
  teamDid: string;
2090
- userDid: string;
2114
+ userDids: string[];
2091
2115
  }
2092
2116
 
2093
2117
  interface RequestUserSessionsCountInput {
@@ -2248,6 +2272,10 @@ declare namespace ABTNodeClient {
2248
2272
  line2: string;
2249
2273
  }
2250
2274
 
2275
+ interface UserFollowOptionsInput {
2276
+ skipNotification: boolean;
2277
+ }
2278
+
2251
2279
  interface UserInfoInput {
2252
2280
  did: string;
2253
2281
  pk: string;
@@ -2280,6 +2308,7 @@ declare namespace ABTNodeClient {
2280
2308
  metadata: ABTNodeClient.UserMetadataInput;
2281
2309
  address: ABTNodeClient.UserAddressInput;
2282
2310
  userSessionsCount: number;
2311
+ isFollowing: boolean;
2283
2312
  }
2284
2313
 
2285
2314
  interface UserMetadataInput {
@@ -2329,6 +2358,7 @@ declare namespace ABTNodeClient {
2329
2358
  includeUserSessions: boolean;
2330
2359
  includePassports: boolean;
2331
2360
  includeConnectedAccounts: boolean;
2361
+ includeFollowStatus: boolean;
2332
2362
  }
2333
2363
 
2334
2364
  interface UserSessionInput {
@@ -3685,6 +3715,9 @@ declare namespace ABTNodeClient {
3685
3715
  getUserFollowers: ABTNodeClient.ResponseUserFollows;
3686
3716
  getUserFollowing: ABTNodeClient.ResponseUserFollows;
3687
3717
  getUserFollowStats: ABTNodeClient.ResponseFollowStats;
3718
+ checkFollowing: ABTNodeClient.ResponseCheckFollowing;
3719
+ followUser: ABTNodeClient.GeneralResponse;
3720
+ unfollowUser: ABTNodeClient.GeneralResponse;
3688
3721
  getTags: ABTNodeClient.ResponseTags;
3689
3722
  getAuditLogs: ABTNodeClient.ResponseGetAuditLogs;
3690
3723
  getLauncherSession: ABTNodeClient.ResponseGetLauncherSession;
@@ -3874,6 +3907,11 @@ declare namespace ABTNodeClient {
3874
3907
  code: ABTNodeClient.StatusCode;
3875
3908
  }
3876
3909
 
3910
+ interface ResponseCheckFollowing {
3911
+ code: ABTNodeClient.StatusCode;
3912
+ data: Record<string, any>;
3913
+ }
3914
+
3877
3915
  interface ResponseCheckNodeVersion {
3878
3916
  code: ABTNodeClient.StatusCode;
3879
3917
  version: string;
@@ -3972,8 +4010,7 @@ declare namespace ABTNodeClient {
3972
4010
 
3973
4011
  interface ResponseFollowStats {
3974
4012
  code: ABTNodeClient.StatusCode;
3975
- followers: number;
3976
- following: number;
4013
+ data: Record<string, any>;
3977
4014
  }
3978
4015
 
3979
4016
  interface ResponseGateway {
@@ -4578,6 +4615,7 @@ declare namespace ABTNodeClient {
4578
4615
  metadata: ABTNodeClient.UserMetadata;
4579
4616
  address: ABTNodeClient.UserAddress;
4580
4617
  userSessionsCount: number;
4618
+ isFollowing: boolean;
4581
4619
  }
4582
4620
 
4583
4621
  interface UserMetadata {
@@ -4904,6 +4942,18 @@ declare namespace ABTNodeClient {
4904
4942
  input: ABTNodeClient.RequestUserFollowsStatsInput;
4905
4943
  }
4906
4944
 
4945
+ interface CheckFollowingParams {
4946
+ input: ABTNodeClient.RequestCheckFollowingInput;
4947
+ }
4948
+
4949
+ interface FollowUserParams {
4950
+ input: ABTNodeClient.RequestFollowUserActionInput;
4951
+ }
4952
+
4953
+ interface UnfollowUserParams {
4954
+ input: ABTNodeClient.RequestFollowUserActionInput;
4955
+ }
4956
+
4907
4957
  interface GetTagsParams {
4908
4958
  input: ABTNodeClient.RequestTagsInput;
4909
4959
  }