@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.
@@ -2942,6 +2942,37 @@
2942
2942
  "enumValues": null,
2943
2943
  "possibleTypes": null
2944
2944
  },
2945
+ {
2946
+ "kind": "INPUT_OBJECT",
2947
+ "name": "QueryUserFollowOptionsInput",
2948
+ "description": null,
2949
+ "fields": null,
2950
+ "inputFields": [
2951
+ {
2952
+ "name": "includeUserInfo",
2953
+ "description": null,
2954
+ "type": {
2955
+ "kind": "SCALAR",
2956
+ "name": "Boolean",
2957
+ "ofType": null
2958
+ },
2959
+ "defaultValue": null
2960
+ },
2961
+ {
2962
+ "name": "includeFollowStatus",
2963
+ "description": null,
2964
+ "type": {
2965
+ "kind": "SCALAR",
2966
+ "name": "Boolean",
2967
+ "ofType": null
2968
+ },
2969
+ "defaultValue": null
2970
+ }
2971
+ ],
2972
+ "interfaces": null,
2973
+ "enumValues": null,
2974
+ "possibleTypes": null
2975
+ },
2945
2976
  {
2946
2977
  "kind": "INPUT_OBJECT",
2947
2978
  "name": "RequestAbortBlockletBackupInput",
@@ -4022,6 +4053,55 @@
4022
4053
  "enumValues": null,
4023
4054
  "possibleTypes": null
4024
4055
  },
4056
+ {
4057
+ "kind": "INPUT_OBJECT",
4058
+ "name": "RequestCheckFollowingInput",
4059
+ "description": null,
4060
+ "fields": null,
4061
+ "inputFields": [
4062
+ {
4063
+ "name": "teamDid",
4064
+ "description": null,
4065
+ "type": {
4066
+ "kind": "SCALAR",
4067
+ "name": "String",
4068
+ "ofType": null
4069
+ },
4070
+ "defaultValue": null
4071
+ },
4072
+ {
4073
+ "name": "userDids",
4074
+ "description": null,
4075
+ "type": {
4076
+ "kind": "LIST",
4077
+ "name": null,
4078
+ "ofType": {
4079
+ "kind": "NON_NULL",
4080
+ "name": null,
4081
+ "ofType": {
4082
+ "kind": "SCALAR",
4083
+ "name": "String",
4084
+ "ofType": null
4085
+ }
4086
+ }
4087
+ },
4088
+ "defaultValue": null
4089
+ },
4090
+ {
4091
+ "name": "followerDid",
4092
+ "description": null,
4093
+ "type": {
4094
+ "kind": "SCALAR",
4095
+ "name": "String",
4096
+ "ofType": null
4097
+ },
4098
+ "defaultValue": null
4099
+ }
4100
+ ],
4101
+ "interfaces": null,
4102
+ "enumValues": null,
4103
+ "possibleTypes": null
4104
+ },
4025
4105
  {
4026
4106
  "kind": "INPUT_OBJECT",
4027
4107
  "name": "RequestClearCacheInput",
@@ -6381,6 +6461,57 @@
6381
6461
  "enumValues": null,
6382
6462
  "possibleTypes": null
6383
6463
  },
6464
+ {
6465
+ "kind": "INPUT_OBJECT",
6466
+ "name": "RequestFollowUserActionInput",
6467
+ "description": null,
6468
+ "fields": null,
6469
+ "inputFields": [
6470
+ {
6471
+ "name": "teamDid",
6472
+ "description": null,
6473
+ "type": {
6474
+ "kind": "SCALAR",
6475
+ "name": "String",
6476
+ "ofType": null
6477
+ },
6478
+ "defaultValue": null
6479
+ },
6480
+ {
6481
+ "name": "userDid",
6482
+ "description": null,
6483
+ "type": {
6484
+ "kind": "SCALAR",
6485
+ "name": "String",
6486
+ "ofType": null
6487
+ },
6488
+ "defaultValue": null
6489
+ },
6490
+ {
6491
+ "name": "followerDid",
6492
+ "description": null,
6493
+ "type": {
6494
+ "kind": "SCALAR",
6495
+ "name": "String",
6496
+ "ofType": null
6497
+ },
6498
+ "defaultValue": null
6499
+ },
6500
+ {
6501
+ "name": "options",
6502
+ "description": null,
6503
+ "type": {
6504
+ "kind": "INPUT_OBJECT",
6505
+ "name": "UserFollowOptionsInput",
6506
+ "ofType": null
6507
+ },
6508
+ "defaultValue": null
6509
+ }
6510
+ ],
6511
+ "interfaces": null,
6512
+ "enumValues": null,
6513
+ "possibleTypes": null
6514
+ },
6384
6515
  {
6385
6516
  "kind": "INPUT_OBJECT",
6386
6517
  "name": "RequestGetAuditLogsInput",
@@ -10802,6 +10933,16 @@
10802
10933
  "ofType": null
10803
10934
  },
10804
10935
  "defaultValue": null
10936
+ },
10937
+ {
10938
+ "name": "options",
10939
+ "description": null,
10940
+ "type": {
10941
+ "kind": "INPUT_OBJECT",
10942
+ "name": "QueryUserFollowOptionsInput",
10943
+ "ofType": null
10944
+ },
10945
+ "defaultValue": null
10805
10946
  }
10806
10947
  ],
10807
10948
  "interfaces": null,
@@ -10825,12 +10966,20 @@
10825
10966
  "defaultValue": null
10826
10967
  },
10827
10968
  {
10828
- "name": "userDid",
10969
+ "name": "userDids",
10829
10970
  "description": null,
10830
10971
  "type": {
10831
- "kind": "SCALAR",
10832
- "name": "String",
10833
- "ofType": null
10972
+ "kind": "LIST",
10973
+ "name": null,
10974
+ "ofType": {
10975
+ "kind": "NON_NULL",
10976
+ "name": null,
10977
+ "ofType": {
10978
+ "kind": "SCALAR",
10979
+ "name": "String",
10980
+ "ofType": null
10981
+ }
10982
+ }
10834
10983
  },
10835
10984
  "defaultValue": null
10836
10985
  }
@@ -12041,6 +12190,27 @@
12041
12190
  "enumValues": null,
12042
12191
  "possibleTypes": null
12043
12192
  },
12193
+ {
12194
+ "kind": "INPUT_OBJECT",
12195
+ "name": "UserFollowOptionsInput",
12196
+ "description": null,
12197
+ "fields": null,
12198
+ "inputFields": [
12199
+ {
12200
+ "name": "skipNotification",
12201
+ "description": null,
12202
+ "type": {
12203
+ "kind": "SCALAR",
12204
+ "name": "Boolean",
12205
+ "ofType": null
12206
+ },
12207
+ "defaultValue": null
12208
+ }
12209
+ ],
12210
+ "interfaces": null,
12211
+ "enumValues": null,
12212
+ "possibleTypes": null
12213
+ },
12044
12214
  {
12045
12215
  "kind": "INPUT_OBJECT",
12046
12216
  "name": "UserInfoInput",
@@ -12388,6 +12558,16 @@
12388
12558
  "ofType": null
12389
12559
  },
12390
12560
  "defaultValue": null
12561
+ },
12562
+ {
12563
+ "name": "isFollowing",
12564
+ "description": null,
12565
+ "type": {
12566
+ "kind": "SCALAR",
12567
+ "name": "Boolean",
12568
+ "ofType": null
12569
+ },
12570
+ "defaultValue": null
12391
12571
  }
12392
12572
  ],
12393
12573
  "interfaces": null,
@@ -12788,6 +12968,16 @@
12788
12968
  "ofType": null
12789
12969
  },
12790
12970
  "defaultValue": null
12971
+ },
12972
+ {
12973
+ "name": "includeFollowStatus",
12974
+ "description": null,
12975
+ "type": {
12976
+ "kind": "SCALAR",
12977
+ "name": "Boolean",
12978
+ "ofType": null
12979
+ },
12980
+ "defaultValue": null
12791
12981
  }
12792
12982
  ],
12793
12983
  "interfaces": null,
@@ -25741,6 +25931,41 @@
25741
25931
  "enumValues": null,
25742
25932
  "possibleTypes": null
25743
25933
  },
25934
+ {
25935
+ "kind": "OBJECT",
25936
+ "name": "ResponseCheckFollowing",
25937
+ "description": null,
25938
+ "fields": [
25939
+ {
25940
+ "name": "code",
25941
+ "description": null,
25942
+ "args": [],
25943
+ "type": {
25944
+ "kind": "ENUM",
25945
+ "name": "StatusCode",
25946
+ "ofType": null
25947
+ },
25948
+ "isDeprecated": false,
25949
+ "deprecationReason": null
25950
+ },
25951
+ {
25952
+ "name": "data",
25953
+ "description": null,
25954
+ "args": [],
25955
+ "type": {
25956
+ "kind": "SCALAR",
25957
+ "name": "Any",
25958
+ "ofType": null
25959
+ },
25960
+ "isDeprecated": false,
25961
+ "deprecationReason": null
25962
+ }
25963
+ ],
25964
+ "inputFields": null,
25965
+ "interfaces": [],
25966
+ "enumValues": null,
25967
+ "possibleTypes": null
25968
+ },
25744
25969
  {
25745
25970
  "kind": "OBJECT",
25746
25971
  "name": "ResponseCheckNodeVersion",
@@ -26419,24 +26644,12 @@
26419
26644
  "deprecationReason": null
26420
26645
  },
26421
26646
  {
26422
- "name": "followers",
26423
- "description": null,
26424
- "args": [],
26425
- "type": {
26426
- "kind": "SCALAR",
26427
- "name": "Uint32",
26428
- "ofType": null
26429
- },
26430
- "isDeprecated": false,
26431
- "deprecationReason": null
26432
- },
26433
- {
26434
- "name": "following",
26647
+ "name": "data",
26435
26648
  "description": null,
26436
26649
  "args": [],
26437
26650
  "type": {
26438
26651
  "kind": "SCALAR",
26439
- "name": "Uint32",
26652
+ "name": "Any",
26440
26653
  "ofType": null
26441
26654
  },
26442
26655
  "isDeprecated": false,
@@ -31590,6 +31803,18 @@
31590
31803
  },
31591
31804
  "isDeprecated": false,
31592
31805
  "deprecationReason": null
31806
+ },
31807
+ {
31808
+ "name": "isFollowing",
31809
+ "description": null,
31810
+ "args": [],
31811
+ "type": {
31812
+ "kind": "SCALAR",
31813
+ "name": "Boolean",
31814
+ "ofType": null
31815
+ },
31816
+ "isDeprecated": false,
31817
+ "deprecationReason": null
31593
31818
  }
31594
31819
  ],
31595
31820
  "inputFields": null,
@@ -37977,6 +38202,75 @@
37977
38202
  "isDeprecated": false,
37978
38203
  "deprecationReason": null
37979
38204
  },
38205
+ {
38206
+ "name": "checkFollowing",
38207
+ "description": null,
38208
+ "args": [
38209
+ {
38210
+ "name": "input",
38211
+ "description": null,
38212
+ "type": {
38213
+ "kind": "INPUT_OBJECT",
38214
+ "name": "RequestCheckFollowingInput",
38215
+ "ofType": null
38216
+ },
38217
+ "defaultValue": null
38218
+ }
38219
+ ],
38220
+ "type": {
38221
+ "kind": "OBJECT",
38222
+ "name": "ResponseCheckFollowing",
38223
+ "ofType": null
38224
+ },
38225
+ "isDeprecated": false,
38226
+ "deprecationReason": null
38227
+ },
38228
+ {
38229
+ "name": "followUser",
38230
+ "description": null,
38231
+ "args": [
38232
+ {
38233
+ "name": "input",
38234
+ "description": null,
38235
+ "type": {
38236
+ "kind": "INPUT_OBJECT",
38237
+ "name": "RequestFollowUserActionInput",
38238
+ "ofType": null
38239
+ },
38240
+ "defaultValue": null
38241
+ }
38242
+ ],
38243
+ "type": {
38244
+ "kind": "OBJECT",
38245
+ "name": "GeneralResponse",
38246
+ "ofType": null
38247
+ },
38248
+ "isDeprecated": false,
38249
+ "deprecationReason": null
38250
+ },
38251
+ {
38252
+ "name": "unfollowUser",
38253
+ "description": null,
38254
+ "args": [
38255
+ {
38256
+ "name": "input",
38257
+ "description": null,
38258
+ "type": {
38259
+ "kind": "INPUT_OBJECT",
38260
+ "name": "RequestFollowUserActionInput",
38261
+ "ofType": null
38262
+ },
38263
+ "defaultValue": null
38264
+ }
38265
+ ],
38266
+ "type": {
38267
+ "kind": "OBJECT",
38268
+ "name": "GeneralResponse",
38269
+ "ofType": null
38270
+ },
38271
+ "isDeprecated": false,
38272
+ "deprecationReason": null
38273
+ },
37980
38274
  {
37981
38275
  "name": "getTags",
37982
38276
  "description": null,
package/dist/types.js CHANGED
@@ -61,6 +61,9 @@
61
61
  * // getUserFollowers,
62
62
  * // getUserFollowing,
63
63
  * // getUserFollowStats,
64
+ * // checkFollowing,
65
+ * // followUser,
66
+ * // unfollowUser,
64
67
  * // getTags,
65
68
  * // getAuditLogs,
66
69
  * // getLauncherSession,
@@ -803,6 +806,15 @@
803
806
  * @property {string} realIpHeader
804
807
  */
805
808
 
809
+ /**
810
+ * Structure of ABTNodeClient.QueryUserFollowOptionsInput
811
+ *
812
+ * @memberof ABTNodeClient
813
+ * @typedef {object} ABTNodeClient.QueryUserFollowOptionsInput
814
+ * @property {boolean} includeUserInfo
815
+ * @property {boolean} includeFollowStatus
816
+ */
817
+
806
818
  /**
807
819
  * Structure of ABTNodeClient.RequestAbortBlockletBackupInput
808
820
  *
@@ -1062,6 +1074,16 @@
1062
1074
  * @property {string} did
1063
1075
  */
1064
1076
 
1077
+ /**
1078
+ * Structure of ABTNodeClient.RequestCheckFollowingInput
1079
+ *
1080
+ * @memberof ABTNodeClient
1081
+ * @typedef {object} ABTNodeClient.RequestCheckFollowingInput
1082
+ * @property {string} teamDid
1083
+ * @property {Array<...ABTNodeClient.null>} userDids
1084
+ * @property {string} followerDid
1085
+ */
1086
+
1065
1087
  /**
1066
1088
  * Structure of ABTNodeClient.RequestClearCacheInput
1067
1089
  *
@@ -1590,6 +1612,17 @@
1590
1612
  * @property {string} did
1591
1613
  */
1592
1614
 
1615
+ /**
1616
+ * Structure of ABTNodeClient.RequestFollowUserActionInput
1617
+ *
1618
+ * @memberof ABTNodeClient
1619
+ * @typedef {object} ABTNodeClient.RequestFollowUserActionInput
1620
+ * @property {string} teamDid
1621
+ * @property {string} userDid
1622
+ * @property {string} followerDid
1623
+ * @property {...ABTNodeClient.UserFollowOptionsInput} options
1624
+ */
1625
+
1593
1626
  /**
1594
1627
  * Structure of ABTNodeClient.RequestGetAuditLogsInput
1595
1628
  *
@@ -2572,6 +2605,7 @@
2572
2605
  * @property {string} userDid
2573
2606
  * @property {...ABTNodeClient.PagingInput} paging
2574
2607
  * @property {...ABTNodeClient.UserSortInput} sort
2608
+ * @property {...ABTNodeClient.QueryUserFollowOptionsInput} options
2575
2609
  */
2576
2610
 
2577
2611
  /**
@@ -2580,7 +2614,7 @@
2580
2614
  * @memberof ABTNodeClient
2581
2615
  * @typedef {object} ABTNodeClient.RequestUserFollowsStatsInput
2582
2616
  * @property {string} teamDid
2583
- * @property {string} userDid
2617
+ * @property {Array<...ABTNodeClient.null>} userDids
2584
2618
  */
2585
2619
 
2586
2620
  /**
@@ -2829,6 +2863,14 @@
2829
2863
  * @property {string} line2
2830
2864
  */
2831
2865
 
2866
+ /**
2867
+ * Structure of ABTNodeClient.UserFollowOptionsInput
2868
+ *
2869
+ * @memberof ABTNodeClient
2870
+ * @typedef {object} ABTNodeClient.UserFollowOptionsInput
2871
+ * @property {boolean} skipNotification
2872
+ */
2873
+
2832
2874
  /**
2833
2875
  * Structure of ABTNodeClient.UserInfoInput
2834
2876
  *
@@ -2865,6 +2907,7 @@
2865
2907
  * @property {...ABTNodeClient.UserMetadataInput} metadata
2866
2908
  * @property {...ABTNodeClient.UserAddressInput} address
2867
2909
  * @property {number} userSessionsCount
2910
+ * @property {boolean} isFollowing
2868
2911
  */
2869
2912
 
2870
2913
  /**
@@ -2938,6 +2981,7 @@
2938
2981
  * @property {boolean} includeUserSessions
2939
2982
  * @property {boolean} includePassports
2940
2983
  * @property {boolean} includeConnectedAccounts
2984
+ * @property {boolean} includeFollowStatus
2941
2985
  */
2942
2986
 
2943
2987
  /**
@@ -4766,6 +4810,9 @@
4766
4810
  * @property {...ABTNodeClient.ResponseUserFollows} getUserFollowers
4767
4811
  * @property {...ABTNodeClient.ResponseUserFollows} getUserFollowing
4768
4812
  * @property {...ABTNodeClient.ResponseFollowStats} getUserFollowStats
4813
+ * @property {...ABTNodeClient.ResponseCheckFollowing} checkFollowing
4814
+ * @property {...ABTNodeClient.GeneralResponse} followUser
4815
+ * @property {...ABTNodeClient.GeneralResponse} unfollowUser
4769
4816
  * @property {...ABTNodeClient.ResponseTags} getTags
4770
4817
  * @property {...ABTNodeClient.ResponseGetAuditLogs} getAuditLogs
4771
4818
  * @property {...ABTNodeClient.ResponseGetLauncherSession} getLauncherSession
@@ -5186,6 +5233,22 @@
5186
5233
  * @property {...ABTNodeClient.StatusCode} code
5187
5234
  */
5188
5235
 
5236
+ /**
5237
+ * Structure of ABTNodeClient.ResponseCheckFollowing
5238
+ *
5239
+ * Checkout the following snippet for the format of ResponseCheckFollowing:
5240
+ * ```json
5241
+ {
5242
+ "code": "ok"
5243
+ }
5244
+ * ```
5245
+ *
5246
+ * @memberof ABTNodeClient
5247
+ * @typedef {object} ABTNodeClient.ResponseCheckFollowing
5248
+ * @property {...ABTNodeClient.StatusCode} code
5249
+ * @property {any} data
5250
+ */
5251
+
5189
5252
  /**
5190
5253
  * Structure of ABTNodeClient.ResponseCheckNodeVersion
5191
5254
  *
@@ -5501,8 +5564,7 @@
5501
5564
  * @memberof ABTNodeClient
5502
5565
  * @typedef {object} ABTNodeClient.ResponseFollowStats
5503
5566
  * @property {...ABTNodeClient.StatusCode} code
5504
- * @property {number} followers
5505
- * @property {number} following
5567
+ * @property {any} data
5506
5568
  */
5507
5569
 
5508
5570
  /**
@@ -6695,6 +6757,7 @@
6695
6757
  * @property {...ABTNodeClient.UserMetadata} metadata
6696
6758
  * @property {...ABTNodeClient.UserAddress} address
6697
6759
  * @property {number} userSessionsCount
6760
+ * @property {boolean} isFollowing
6698
6761
  */
6699
6762
 
6700
6763
  /**
@@ -7463,6 +7526,45 @@
7463
7526
  * @property {...ABTNodeClient.RequestUserFollowsStatsInput} input
7464
7527
  */
7465
7528
 
7529
+ /**
7530
+ * Structure of ABTNodeClient.CheckFollowingParams
7531
+ *
7532
+ * Checkout the following snippet for the format of CheckFollowingParams:
7533
+ * ```json
7534
+ {}
7535
+ * ```
7536
+ *
7537
+ * @memberof ABTNodeClient
7538
+ * @typedef {object} ABTNodeClient.CheckFollowingParams
7539
+ * @property {...ABTNodeClient.RequestCheckFollowingInput} input
7540
+ */
7541
+
7542
+ /**
7543
+ * Structure of ABTNodeClient.FollowUserParams
7544
+ *
7545
+ * Checkout the following snippet for the format of FollowUserParams:
7546
+ * ```json
7547
+ {}
7548
+ * ```
7549
+ *
7550
+ * @memberof ABTNodeClient
7551
+ * @typedef {object} ABTNodeClient.FollowUserParams
7552
+ * @property {...ABTNodeClient.RequestFollowUserActionInput} input
7553
+ */
7554
+
7555
+ /**
7556
+ * Structure of ABTNodeClient.UnfollowUserParams
7557
+ *
7558
+ * Checkout the following snippet for the format of UnfollowUserParams:
7559
+ * ```json
7560
+ {}
7561
+ * ```
7562
+ *
7563
+ * @memberof ABTNodeClient
7564
+ * @typedef {object} ABTNodeClient.UnfollowUserParams
7565
+ * @property {...ABTNodeClient.RequestFollowUserActionInput} input
7566
+ */
7567
+
7466
7568
  /**
7467
7569
  * Structure of ABTNodeClient.GetTagsParams
7468
7570
  *
@@ -10105,6 +10207,36 @@
10105
10207
  * @returns {Promise<ABTNodeClient.ResponseFollowStats>} Checkout {@link ABTNodeClient.ResponseFollowStats} for resolved data format
10106
10208
  */
10107
10209
 
10210
+ /**
10211
+ * checkFollowing
10212
+ *
10213
+ * @name ABTNodeClient#checkFollowing
10214
+ * @param {ABTNodeClient.CheckFollowingParams} params
10215
+ * @function
10216
+ * @memberof ABTNodeClient
10217
+ * @returns {Promise<ABTNodeClient.ResponseCheckFollowing>} Checkout {@link ABTNodeClient.ResponseCheckFollowing} for resolved data format
10218
+ */
10219
+
10220
+ /**
10221
+ * followUser
10222
+ *
10223
+ * @name ABTNodeClient#followUser
10224
+ * @param {ABTNodeClient.FollowUserParams} params
10225
+ * @function
10226
+ * @memberof ABTNodeClient
10227
+ * @returns {Promise<ABTNodeClient.GeneralResponse>} Checkout {@link ABTNodeClient.GeneralResponse} for resolved data format
10228
+ */
10229
+
10230
+ /**
10231
+ * unfollowUser
10232
+ *
10233
+ * @name ABTNodeClient#unfollowUser
10234
+ * @param {ABTNodeClient.UnfollowUserParams} params
10235
+ * @function
10236
+ * @memberof ABTNodeClient
10237
+ * @returns {Promise<ABTNodeClient.GeneralResponse>} Checkout {@link ABTNodeClient.GeneralResponse} for resolved data format
10238
+ */
10239
+
10108
10240
  /**
10109
10241
  * getTags
10110
10242
  *