@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/dist/browser.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
  }