@blocklet/server-js 1.16.52-beta-20250908-085420-224a58fa → 1.16.52-beta-20250911-023851-d988be85

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-09-04T09:05:10.443Z
3
+ > Updated on 2025-09-08T13:27:25.516Z
4
4
 
5
5
  ## Table of Contents
6
6
 
@@ -4471,6 +4471,12 @@ No arguments
4471
4471
  link
4472
4472
  name
4473
4473
  title
4474
+ utm {
4475
+ campaign
4476
+ content
4477
+ medium
4478
+ source
4479
+ }
4474
4480
  }
4475
4481
  activity {
4476
4482
  actor
@@ -4809,6 +4815,12 @@ No arguments
4809
4815
  total
4810
4816
  }
4811
4817
  }
4818
+ utm {
4819
+ campaign
4820
+ content
4821
+ medium
4822
+ source
4823
+ }
4812
4824
  }
4813
4825
  paging {
4814
4826
  page
@@ -4876,6 +4888,12 @@ No arguments
4876
4888
  link
4877
4889
  name
4878
4890
  title
4891
+ utm {
4892
+ campaign
4893
+ content
4894
+ medium
4895
+ source
4896
+ }
4879
4897
  }
4880
4898
  activity {
4881
4899
  actor
@@ -5214,6 +5232,12 @@ No arguments
5214
5232
  total
5215
5233
  }
5216
5234
  }
5235
+ utm {
5236
+ campaign
5237
+ content
5238
+ medium
5239
+ source
5240
+ }
5217
5241
  }
5218
5242
  paging {
5219
5243
  page
@@ -7221,6 +7245,157 @@ No arguments
7221
7245
  }
7222
7246
  ```
7223
7247
 
7248
+ ### getUserInvites
7249
+
7250
+ #### Arguments
7251
+
7252
+ - **input**, optional, null
7253
+
7254
+ #### Result Format
7255
+
7256
+ ```graphql
7257
+ {
7258
+ getUserInvites {
7259
+ code
7260
+ paging {
7261
+ page
7262
+ pageCount
7263
+ pageSize
7264
+ total
7265
+ }
7266
+ users {
7267
+ approved
7268
+ avatar
7269
+ createdAt
7270
+ did
7271
+ didSpace
7272
+ email
7273
+ emailVerified
7274
+ extra
7275
+ firstLoginAt
7276
+ fullName
7277
+ generation
7278
+ inviter
7279
+ isFollowing
7280
+ lastLoginAt
7281
+ lastLoginIp
7282
+ locale
7283
+ phone
7284
+ phoneVerified
7285
+ pk
7286
+ remark
7287
+ role
7288
+ sourceAppPid
7289
+ sourceProvider
7290
+ updatedAt
7291
+ url
7292
+ userSessionsCount
7293
+ address {
7294
+ city
7295
+ country
7296
+ line1
7297
+ line2
7298
+ postalCode
7299
+ province
7300
+ }
7301
+ connectedAccounts {
7302
+ did
7303
+ extra
7304
+ id
7305
+ lastLoginAt
7306
+ pk
7307
+ provider
7308
+ userInfo {
7309
+ email
7310
+ emailVerified
7311
+ extraData
7312
+ name
7313
+ picture
7314
+ sub
7315
+ }
7316
+ }
7317
+ metadata {
7318
+ bio
7319
+ cover
7320
+ location
7321
+ timezone
7322
+ links {
7323
+ favicon
7324
+ url
7325
+ }
7326
+ phone {
7327
+ country
7328
+ phoneNumber
7329
+ }
7330
+ status {
7331
+ dateRange
7332
+ duration
7333
+ icon
7334
+ label
7335
+ }
7336
+ }
7337
+ passports {
7338
+ expirationDate
7339
+ id
7340
+ issuanceDate
7341
+ lastLoginAt
7342
+ name
7343
+ parentDid
7344
+ role
7345
+ scope
7346
+ source
7347
+ status
7348
+ title
7349
+ type
7350
+ userDid
7351
+ display {
7352
+ content
7353
+ type
7354
+ }
7355
+ issuer {
7356
+ id
7357
+ name
7358
+ pk
7359
+ }
7360
+ user {
7361
+ approved
7362
+ avatar
7363
+ createdAt
7364
+ did
7365
+ email
7366
+ fullName
7367
+ locale
7368
+ pk
7369
+ role
7370
+ updatedAt
7371
+ }
7372
+ }
7373
+ tags {
7374
+ color
7375
+ createdAt
7376
+ description
7377
+ id
7378
+ title
7379
+ updatedAt
7380
+ }
7381
+ userSessions {
7382
+ appPid
7383
+ createdAt
7384
+ extra
7385
+ id
7386
+ lastLoginIp
7387
+ passportId
7388
+ status
7389
+ ua
7390
+ updatedAt
7391
+ userDid
7392
+ visitorId
7393
+ }
7394
+ }
7395
+ }
7396
+ }
7397
+ ```
7398
+
7224
7399
  ### getTags
7225
7400
 
7226
7401
  #### Arguments
package/lib/node.d.ts CHANGED
@@ -147,12 +147,13 @@ declare class ABTNodeClient {
147
147
  ): Promise<ABTNodeClient.ResponseUserFollows>;
148
148
  getUserFollowStats(
149
149
  params: PartialDeep<ABTNodeClient.GetUserFollowStatsParams>
150
- ): Promise<ABTNodeClient.ResponseFollowStats>;
150
+ ): Promise<ABTNodeClient.ResponseUserRelationCount>;
151
151
  checkFollowing(
152
152
  params: PartialDeep<ABTNodeClient.CheckFollowingParams>
153
153
  ): Promise<ABTNodeClient.ResponseCheckFollowing>;
154
154
  followUser(params: PartialDeep<ABTNodeClient.FollowUserParams>): Promise<ABTNodeClient.GeneralResponse>;
155
155
  unfollowUser(params: PartialDeep<ABTNodeClient.UnfollowUserParams>): Promise<ABTNodeClient.GeneralResponse>;
156
+ getUserInvites(params: PartialDeep<ABTNodeClient.GetUserInvitesParams>): Promise<ABTNodeClient.ResponseUsers>;
156
157
  getTags(params: PartialDeep<ABTNodeClient.GetTagsParams>): Promise<ABTNodeClient.ResponseTags>;
157
158
  getAuditLogs(params: PartialDeep<ABTNodeClient.GetAuditLogsParams>): Promise<ABTNodeClient.ResponseGetAuditLogs>;
158
159
  getLauncherSession(
@@ -2102,7 +2103,12 @@ declare namespace ABTNodeClient {
2102
2103
  sessionId: string;
2103
2104
  }
2104
2105
 
2105
- interface RequestUserFollowsInput {
2106
+ interface RequestUserRelationCountInput {
2107
+ teamDid: string;
2108
+ userDids: string[];
2109
+ }
2110
+
2111
+ interface RequestUserRelationQueryInput {
2106
2112
  teamDid: string;
2107
2113
  userDid: string;
2108
2114
  paging: ABTNodeClient.PagingInput;
@@ -2110,11 +2116,6 @@ declare namespace ABTNodeClient {
2110
2116
  options: ABTNodeClient.QueryUserFollowOptionsInput;
2111
2117
  }
2112
2118
 
2113
- interface RequestUserFollowsStatsInput {
2114
- teamDid: string;
2115
- userDids: string[];
2116
- }
2117
-
2118
2119
  interface RequestUserSessionsCountInput {
2119
2120
  teamDid: string;
2120
2121
  query: ABTNodeClient.UserSessionQueryInput;
@@ -3467,6 +3468,7 @@ declare namespace ABTNodeClient {
3467
3468
  activity: ABTNodeClient.NotificationActivity;
3468
3469
  actorInfo: ABTNodeClient.UserInfo;
3469
3470
  options: Record<string, any>;
3471
+ utm: ABTNodeClient.TUTM;
3470
3472
  }
3471
3473
 
3472
3474
  interface NotificationAction {
@@ -3475,6 +3477,7 @@ declare namespace ABTNodeClient {
3475
3477
  link: string;
3476
3478
  name: string;
3477
3479
  title: string;
3480
+ utm: ABTNodeClient.TUTM;
3478
3481
  }
3479
3482
 
3480
3483
  interface NotificationActivity {
@@ -3716,10 +3719,11 @@ declare namespace ABTNodeClient {
3716
3719
  destroySelf: ABTNodeClient.ResponseUser;
3717
3720
  getUserFollowers: ABTNodeClient.ResponseUserFollows;
3718
3721
  getUserFollowing: ABTNodeClient.ResponseUserFollows;
3719
- getUserFollowStats: ABTNodeClient.ResponseFollowStats;
3722
+ getUserFollowStats: ABTNodeClient.ResponseUserRelationCount;
3720
3723
  checkFollowing: ABTNodeClient.ResponseCheckFollowing;
3721
3724
  followUser: ABTNodeClient.GeneralResponse;
3722
3725
  unfollowUser: ABTNodeClient.GeneralResponse;
3726
+ getUserInvites: ABTNodeClient.ResponseUsers;
3723
3727
  getTags: ABTNodeClient.ResponseTags;
3724
3728
  getAuditLogs: ABTNodeClient.ResponseGetAuditLogs;
3725
3729
  getLauncherSession: ABTNodeClient.ResponseGetLauncherSession;
@@ -4010,11 +4014,6 @@ declare namespace ABTNodeClient {
4010
4014
  cert: ABTNodeClient.Certificate;
4011
4015
  }
4012
4016
 
4013
- interface ResponseFollowStats {
4014
- code: ABTNodeClient.StatusCode;
4015
- data: Record<string, any>;
4016
- }
4017
-
4018
4017
  interface ResponseGateway {
4019
4018
  code: ABTNodeClient.StatusCode;
4020
4019
  gateway: ABTNodeClient.Gateway;
@@ -4364,6 +4363,11 @@ declare namespace ABTNodeClient {
4364
4363
  paging: ABTNodeClient.Paging;
4365
4364
  }
4366
4365
 
4366
+ interface ResponseUserRelationCount {
4367
+ code: ABTNodeClient.StatusCode;
4368
+ data: Record<string, any>;
4369
+ }
4370
+
4367
4371
  interface ResponseUserSessions {
4368
4372
  code: ABTNodeClient.StatusCode;
4369
4373
  list: ABTNodeClient.UserSession[];
@@ -4508,6 +4512,13 @@ declare namespace ABTNodeClient {
4508
4512
  failed: number;
4509
4513
  }
4510
4514
 
4515
+ interface TUTM {
4516
+ source: string;
4517
+ medium: string;
4518
+ campaign: string;
4519
+ content: string;
4520
+ }
4521
+
4511
4522
  interface Tag {
4512
4523
  id: number;
4513
4524
  title: string;
@@ -4933,15 +4944,15 @@ declare namespace ABTNodeClient {
4933
4944
  }
4934
4945
 
4935
4946
  interface GetUserFollowersParams {
4936
- input: ABTNodeClient.RequestUserFollowsInput;
4947
+ input: ABTNodeClient.RequestUserRelationQueryInput;
4937
4948
  }
4938
4949
 
4939
4950
  interface GetUserFollowingParams {
4940
- input: ABTNodeClient.RequestUserFollowsInput;
4951
+ input: ABTNodeClient.RequestUserRelationQueryInput;
4941
4952
  }
4942
4953
 
4943
4954
  interface GetUserFollowStatsParams {
4944
- input: ABTNodeClient.RequestUserFollowsStatsInput;
4955
+ input: ABTNodeClient.RequestUserRelationCountInput;
4945
4956
  }
4946
4957
 
4947
4958
  interface CheckFollowingParams {
@@ -4956,6 +4967,10 @@ declare namespace ABTNodeClient {
4956
4967
  input: ABTNodeClient.RequestFollowUserActionInput;
4957
4968
  }
4958
4969
 
4970
+ interface GetUserInvitesParams {
4971
+ input: ABTNodeClient.RequestUserRelationQueryInput;
4972
+ }
4973
+
4959
4974
  interface GetTagsParams {
4960
4975
  input: ABTNodeClient.RequestTagsInput;
4961
4976
  }
@@ -10900,7 +10900,46 @@
10900
10900
  },
10901
10901
  {
10902
10902
  "kind": "INPUT_OBJECT",
10903
- "name": "RequestUserFollowsInput",
10903
+ "name": "RequestUserRelationCountInput",
10904
+ "description": null,
10905
+ "fields": null,
10906
+ "inputFields": [
10907
+ {
10908
+ "name": "teamDid",
10909
+ "description": null,
10910
+ "type": {
10911
+ "kind": "SCALAR",
10912
+ "name": "String",
10913
+ "ofType": null
10914
+ },
10915
+ "defaultValue": null
10916
+ },
10917
+ {
10918
+ "name": "userDids",
10919
+ "description": null,
10920
+ "type": {
10921
+ "kind": "LIST",
10922
+ "name": null,
10923
+ "ofType": {
10924
+ "kind": "NON_NULL",
10925
+ "name": null,
10926
+ "ofType": {
10927
+ "kind": "SCALAR",
10928
+ "name": "String",
10929
+ "ofType": null
10930
+ }
10931
+ }
10932
+ },
10933
+ "defaultValue": null
10934
+ }
10935
+ ],
10936
+ "interfaces": null,
10937
+ "enumValues": null,
10938
+ "possibleTypes": null
10939
+ },
10940
+ {
10941
+ "kind": "INPUT_OBJECT",
10942
+ "name": "RequestUserRelationQueryInput",
10904
10943
  "description": null,
10905
10944
  "fields": null,
10906
10945
  "inputFields": [
@@ -10959,45 +10998,6 @@
10959
10998
  "enumValues": null,
10960
10999
  "possibleTypes": null
10961
11000
  },
10962
- {
10963
- "kind": "INPUT_OBJECT",
10964
- "name": "RequestUserFollowsStatsInput",
10965
- "description": null,
10966
- "fields": null,
10967
- "inputFields": [
10968
- {
10969
- "name": "teamDid",
10970
- "description": null,
10971
- "type": {
10972
- "kind": "SCALAR",
10973
- "name": "String",
10974
- "ofType": null
10975
- },
10976
- "defaultValue": null
10977
- },
10978
- {
10979
- "name": "userDids",
10980
- "description": null,
10981
- "type": {
10982
- "kind": "LIST",
10983
- "name": null,
10984
- "ofType": {
10985
- "kind": "NON_NULL",
10986
- "name": null,
10987
- "ofType": {
10988
- "kind": "SCALAR",
10989
- "name": "String",
10990
- "ofType": null
10991
- }
10992
- }
10993
- },
10994
- "defaultValue": null
10995
- }
10996
- ],
10997
- "interfaces": null,
10998
- "enumValues": null,
10999
- "possibleTypes": null
11000
- },
11001
11001
  {
11002
11002
  "kind": "INPUT_OBJECT",
11003
11003
  "name": "RequestUserSessionsInput",
@@ -22603,6 +22603,18 @@
22603
22603
  },
22604
22604
  "isDeprecated": false,
22605
22605
  "deprecationReason": null
22606
+ },
22607
+ {
22608
+ "name": "utm",
22609
+ "description": null,
22610
+ "args": [],
22611
+ "type": {
22612
+ "kind": "OBJECT",
22613
+ "name": "TUTM",
22614
+ "ofType": null
22615
+ },
22616
+ "isDeprecated": false,
22617
+ "deprecationReason": null
22606
22618
  }
22607
22619
  ],
22608
22620
  "inputFields": null,
@@ -22674,6 +22686,18 @@
22674
22686
  },
22675
22687
  "isDeprecated": false,
22676
22688
  "deprecationReason": null
22689
+ },
22690
+ {
22691
+ "name": "utm",
22692
+ "description": null,
22693
+ "args": [],
22694
+ "type": {
22695
+ "kind": "OBJECT",
22696
+ "name": "TUTM",
22697
+ "ofType": null
22698
+ },
22699
+ "isDeprecated": false,
22700
+ "deprecationReason": null
22677
22701
  }
22678
22702
  ],
22679
22703
  "inputFields": null,
@@ -26648,41 +26672,6 @@
26648
26672
  "enumValues": null,
26649
26673
  "possibleTypes": null
26650
26674
  },
26651
- {
26652
- "kind": "OBJECT",
26653
- "name": "ResponseFollowStats",
26654
- "description": null,
26655
- "fields": [
26656
- {
26657
- "name": "code",
26658
- "description": null,
26659
- "args": [],
26660
- "type": {
26661
- "kind": "ENUM",
26662
- "name": "StatusCode",
26663
- "ofType": null
26664
- },
26665
- "isDeprecated": false,
26666
- "deprecationReason": null
26667
- },
26668
- {
26669
- "name": "data",
26670
- "description": null,
26671
- "args": [],
26672
- "type": {
26673
- "kind": "SCALAR",
26674
- "name": "Any",
26675
- "ofType": null
26676
- },
26677
- "isDeprecated": false,
26678
- "deprecationReason": null
26679
- }
26680
- ],
26681
- "inputFields": null,
26682
- "interfaces": [],
26683
- "enumValues": null,
26684
- "possibleTypes": null
26685
- },
26686
26675
  {
26687
26676
  "kind": "OBJECT",
26688
26677
  "name": "ResponseGateway",
@@ -29418,6 +29407,41 @@
29418
29407
  "enumValues": null,
29419
29408
  "possibleTypes": null
29420
29409
  },
29410
+ {
29411
+ "kind": "OBJECT",
29412
+ "name": "ResponseUserRelationCount",
29413
+ "description": null,
29414
+ "fields": [
29415
+ {
29416
+ "name": "code",
29417
+ "description": null,
29418
+ "args": [],
29419
+ "type": {
29420
+ "kind": "ENUM",
29421
+ "name": "StatusCode",
29422
+ "ofType": null
29423
+ },
29424
+ "isDeprecated": false,
29425
+ "deprecationReason": null
29426
+ },
29427
+ {
29428
+ "name": "data",
29429
+ "description": null,
29430
+ "args": [],
29431
+ "type": {
29432
+ "kind": "SCALAR",
29433
+ "name": "Any",
29434
+ "ofType": null
29435
+ },
29436
+ "isDeprecated": false,
29437
+ "deprecationReason": null
29438
+ }
29439
+ ],
29440
+ "inputFields": null,
29441
+ "interfaces": [],
29442
+ "enumValues": null,
29443
+ "possibleTypes": null
29444
+ },
29421
29445
  {
29422
29446
  "kind": "OBJECT",
29423
29447
  "name": "ResponseUserSessions",
@@ -30735,6 +30759,65 @@
30735
30759
  "enumValues": null,
30736
30760
  "possibleTypes": null
30737
30761
  },
30762
+ {
30763
+ "kind": "OBJECT",
30764
+ "name": "TUTM",
30765
+ "description": null,
30766
+ "fields": [
30767
+ {
30768
+ "name": "source",
30769
+ "description": null,
30770
+ "args": [],
30771
+ "type": {
30772
+ "kind": "SCALAR",
30773
+ "name": "String",
30774
+ "ofType": null
30775
+ },
30776
+ "isDeprecated": false,
30777
+ "deprecationReason": null
30778
+ },
30779
+ {
30780
+ "name": "medium",
30781
+ "description": null,
30782
+ "args": [],
30783
+ "type": {
30784
+ "kind": "SCALAR",
30785
+ "name": "String",
30786
+ "ofType": null
30787
+ },
30788
+ "isDeprecated": false,
30789
+ "deprecationReason": null
30790
+ },
30791
+ {
30792
+ "name": "campaign",
30793
+ "description": null,
30794
+ "args": [],
30795
+ "type": {
30796
+ "kind": "SCALAR",
30797
+ "name": "String",
30798
+ "ofType": null
30799
+ },
30800
+ "isDeprecated": false,
30801
+ "deprecationReason": null
30802
+ },
30803
+ {
30804
+ "name": "content",
30805
+ "description": null,
30806
+ "args": [],
30807
+ "type": {
30808
+ "kind": "SCALAR",
30809
+ "name": "String",
30810
+ "ofType": null
30811
+ },
30812
+ "isDeprecated": false,
30813
+ "deprecationReason": null
30814
+ }
30815
+ ],
30816
+ "inputFields": null,
30817
+ "interfaces": [],
30818
+ "enumValues": null,
30819
+ "possibleTypes": null
30820
+ },
30738
30821
  {
30739
30822
  "kind": "OBJECT",
30740
30823
  "name": "Tag",
@@ -38164,7 +38247,7 @@
38164
38247
  "description": null,
38165
38248
  "type": {
38166
38249
  "kind": "INPUT_OBJECT",
38167
- "name": "RequestUserFollowsInput",
38250
+ "name": "RequestUserRelationQueryInput",
38168
38251
  "ofType": null
38169
38252
  },
38170
38253
  "defaultValue": null
@@ -38187,7 +38270,7 @@
38187
38270
  "description": null,
38188
38271
  "type": {
38189
38272
  "kind": "INPUT_OBJECT",
38190
- "name": "RequestUserFollowsInput",
38273
+ "name": "RequestUserRelationQueryInput",
38191
38274
  "ofType": null
38192
38275
  },
38193
38276
  "defaultValue": null
@@ -38210,7 +38293,7 @@
38210
38293
  "description": null,
38211
38294
  "type": {
38212
38295
  "kind": "INPUT_OBJECT",
38213
- "name": "RequestUserFollowsStatsInput",
38296
+ "name": "RequestUserRelationCountInput",
38214
38297
  "ofType": null
38215
38298
  },
38216
38299
  "defaultValue": null
@@ -38218,7 +38301,7 @@
38218
38301
  ],
38219
38302
  "type": {
38220
38303
  "kind": "OBJECT",
38221
- "name": "ResponseFollowStats",
38304
+ "name": "ResponseUserRelationCount",
38222
38305
  "ofType": null
38223
38306
  },
38224
38307
  "isDeprecated": false,
@@ -38293,6 +38376,29 @@
38293
38376
  "isDeprecated": false,
38294
38377
  "deprecationReason": null
38295
38378
  },
38379
+ {
38380
+ "name": "getUserInvites",
38381
+ "description": null,
38382
+ "args": [
38383
+ {
38384
+ "name": "input",
38385
+ "description": null,
38386
+ "type": {
38387
+ "kind": "INPUT_OBJECT",
38388
+ "name": "RequestUserRelationQueryInput",
38389
+ "ofType": null
38390
+ },
38391
+ "defaultValue": null
38392
+ }
38393
+ ],
38394
+ "type": {
38395
+ "kind": "OBJECT",
38396
+ "name": "ResponseUsers",
38397
+ "ofType": null
38398
+ },
38399
+ "isDeprecated": false,
38400
+ "deprecationReason": null
38401
+ },
38296
38402
  {
38297
38403
  "name": "getTags",
38298
38404
  "description": null,