@abtnode/types 1.16.49-beta-20250822-070545-6d3344cc → 1.16.49-beta-20250826-112154-8ca981fa

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/enum_pb.d.ts CHANGED
@@ -96,3 +96,7 @@ export interface NotificationSendChannelMap {
96
96
  PUSH: 2;
97
97
  WEBHOOK: 3;
98
98
  }
99
+ export interface UserRelationTypeMap {
100
+ FOLLOWING: 0;
101
+ FOLLOWERS: 1;
102
+ }
package/lib/rpc_pb.d.ts CHANGED
@@ -736,6 +736,33 @@ export type TRequestUpdateUserExtra = {
736
736
  remark: string;
737
737
  extra: string;
738
738
  };
739
+ export type TRequestUserFollows = {
740
+ teamDid: string;
741
+ userDid: string;
742
+ paging?: type_pb.TPaging;
743
+ sort?: type_pb.TUserSort;
744
+ };
745
+ export type TRequestUserFollowsStats = {
746
+ teamDid: string;
747
+ userDid: string;
748
+ };
749
+ export type TUserFollows = {
750
+ userDid: string;
751
+ followerDid: string;
752
+ createdAt: number;
753
+ user?: type_pb.TUserInfo;
754
+ isFollowing: boolean;
755
+ };
756
+ export type TResponseUserFollows = {
757
+ code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
758
+ data: TUserFollows[];
759
+ paging?: type_pb.TPaging;
760
+ };
761
+ export type TResponseFollowStats = {
762
+ code: enum_pb.StatusCodeMap[keyof enum_pb.StatusCodeMap];
763
+ followers: number;
764
+ following: number;
765
+ };
739
766
  export type TRequestUpdateUserAddress = {
740
767
  teamDid: string;
741
768
  did: string;
package/lib/type_pb.d.ts CHANGED
@@ -887,6 +887,10 @@ export type TUserProfile = {
887
887
  fullName: string;
888
888
  email: string;
889
889
  };
890
+ export type TRelationshipType = {
891
+ type: enum_pb.UserRelationTypeMap[keyof enum_pb.UserRelationTypeMap];
892
+ userDid: string;
893
+ };
890
894
  export type TUserQuery = {
891
895
  role: string;
892
896
  approved: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/types",
3
- "version": "1.16.49-beta-20250822-070545-6d3344cc",
3
+ "version": "1.16.49-beta-20250826-112154-8ca981fa",
4
4
  "description": "Typescript definitions generated from protobuf",
5
5
  "keywords": [
6
6
  "abtnode",
@@ -36,5 +36,5 @@
36
36
  "bugs": {
37
37
  "url": "https://github.com/ArcBlock/abt-node/issues"
38
38
  },
39
- "gitHead": "c5560fe749fe495b03003ac7325da29c71f5e62b"
39
+ "gitHead": "f31434546e024c4ce20a1d3c0d34b64f12980536"
40
40
  }