@amityco/ts-sdk 7.29.1-cc0fba8.0 → 7.30.0

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.
Files changed (99) hide show
  1. package/dist/@types/core/errors.d.ts +2 -1
  2. package/dist/@types/core/errors.d.ts.map +1 -1
  3. package/dist/@types/core/events.d.ts +4 -0
  4. package/dist/@types/core/events.d.ts.map +1 -1
  5. package/dist/@types/domains/channel.d.ts +13 -1
  6. package/dist/@types/domains/channel.d.ts.map +1 -1
  7. package/dist/@types/domains/event.d.ts +1 -1
  8. package/dist/@types/domains/event.d.ts.map +1 -1
  9. package/dist/@types/domains/group.d.ts +2 -2
  10. package/dist/@types/domains/group.d.ts.map +1 -1
  11. package/dist/@types/domains/user.d.ts +70 -0
  12. package/dist/@types/domains/user.d.ts.map +1 -1
  13. package/dist/channelRepository/events/onUserDeleted.d.ts.map +1 -1
  14. package/dist/channelRepository/observers/getChannels/ChannelLiveCollectionController.d.ts.map +1 -1
  15. package/dist/channelRepository/observers/searchChannels/SearchChannelLiveCollectionController.d.ts.map +1 -1
  16. package/dist/channelRepository/observers/tests/integrations/getChannelsSortByLastMessage.integration.test.d.ts +2 -0
  17. package/dist/channelRepository/observers/tests/integrations/getChannelsSortByLastMessage.integration.test.d.ts.map +1 -0
  18. package/dist/channelRepository/utils/channelActivityOnLoginHandler.d.ts +16 -0
  19. package/dist/channelRepository/utils/channelActivityOnLoginHandler.d.ts.map +1 -0
  20. package/dist/channelRepository/utils/tests/integrations/channelActivity.integration.test.d.ts +2 -0
  21. package/dist/channelRepository/utils/tests/integrations/channelActivity.integration.test.d.ts.map +1 -0
  22. package/dist/channelRepository/utils/tests/updateChannelActivityTimestamps.test.d.ts +2 -0
  23. package/dist/channelRepository/utils/tests/updateChannelActivityTimestamps.test.d.ts.map +1 -0
  24. package/dist/channelRepository/utils/updateChannelActivityTimestamps.d.ts +42 -0
  25. package/dist/channelRepository/utils/updateChannelActivityTimestamps.d.ts.map +1 -0
  26. package/dist/client/api/resumeSession.d.ts.map +1 -1
  27. package/dist/client/api/setupLoginSubscriptions.d.ts.map +1 -1
  28. package/dist/communityRepository/communityMembership/events/onUserDeleted.d.ts.map +1 -1
  29. package/dist/communityRepository/utils/payload.d.ts.map +1 -1
  30. package/dist/core/events.d.ts +3 -3
  31. package/dist/core/events.d.ts.map +1 -1
  32. package/dist/core/microtasks.d.ts.map +1 -1
  33. package/dist/core/query/sorting.d.ts +10 -0
  34. package/dist/core/query/sorting.d.ts.map +1 -1
  35. package/dist/core/query/tests/sorting.test.d.ts +2 -0
  36. package/dist/core/query/tests/sorting.test.d.ts.map +1 -0
  37. package/dist/core/tests/microtasks.test.d.ts +2 -0
  38. package/dist/core/tests/microtasks.test.d.ts.map +1 -0
  39. package/dist/group/utils/withUser.d.ts +3 -3
  40. package/dist/group/utils/withUser.d.ts.map +1 -1
  41. package/dist/index.cjs.js +826 -167
  42. package/dist/index.esm.js +827 -169
  43. package/dist/index.umd.js +2 -2
  44. package/dist/messagePreview/utils/getChannelMessagePreviewWithUser.d.ts +1 -0
  45. package/dist/messagePreview/utils/getChannelMessagePreviewWithUser.d.ts.map +1 -1
  46. package/dist/messagePreview/utils/getSubChannelMessagePreviewWithUser.d.ts +1 -1
  47. package/dist/messagePreview/utils/getSubChannelMessagePreviewWithUser.d.ts.map +1 -1
  48. package/dist/messageRepository/api/createMessage.d.ts.map +1 -1
  49. package/dist/postRepository/api/tests/integration/setup.d.ts +3 -3
  50. package/dist/postRepository/utils/payload.d.ts.map +1 -1
  51. package/dist/report/api/isReportedByMe.d.ts.map +1 -1
  52. package/dist/userRepository/api/flagUser.d.ts.map +1 -1
  53. package/dist/userRepository/api/isUserFlaggedByMe.d.ts +11 -3
  54. package/dist/userRepository/api/isUserFlaggedByMe.d.ts.map +1 -1
  55. package/dist/userRepository/api/queryBlockedUsers.d.ts.map +1 -1
  56. package/dist/userRepository/api/unflagUser.d.ts +27 -4
  57. package/dist/userRepository/api/unflagUser.d.ts.map +1 -1
  58. package/dist/userRepository/api/updateUser.d.ts.map +1 -1
  59. package/dist/userRepository/internalApi/getFlagsByMe.d.ts +22 -0
  60. package/dist/userRepository/internalApi/getFlagsByMe.d.ts.map +1 -0
  61. package/dist/userRepository/internalApi/tests/getFlagsByMe.test.d.ts +2 -0
  62. package/dist/userRepository/internalApi/tests/getFlagsByMe.test.d.ts.map +1 -0
  63. package/dist/userRepository/observers/getBlockedUsers/BlockedUserLiveCollectionController.d.ts +2 -2
  64. package/dist/userRepository/observers/getBlockedUsers/BlockedUserLiveCollectionController.d.ts.map +1 -1
  65. package/dist/userRepository/observers/getBlockingUsers/LiveCollectionController.d.ts +1 -1
  66. package/dist/userRepository/observers/getBlockingUsers/LiveCollectionController.d.ts.map +1 -1
  67. package/dist/userRepository/observers/getUser.d.ts.map +1 -1
  68. package/dist/userRepository/observers/getUsers/UserLiveCollectionController.d.ts +2 -2
  69. package/dist/userRepository/observers/getUsers/UserLiveCollectionController.d.ts.map +1 -1
  70. package/dist/userRepository/observers/searchUserByDisplayName/SearchUserLiveCollectionController.d.ts +2 -2
  71. package/dist/userRepository/observers/searchUserByDisplayName/SearchUserLiveCollectionController.d.ts.map +1 -1
  72. package/dist/userRepository/observers/searchUserByDisplayName.d.ts +1 -1
  73. package/dist/userRepository/observers/searchUserByDisplayName.d.ts.map +1 -1
  74. package/dist/userRepository/observers/searchUsers.d.ts +1 -1
  75. package/dist/userRepository/observers/searchUsers.d.ts.map +1 -1
  76. package/dist/userRepository/utils/submitUserReport.d.ts.map +1 -1
  77. package/dist/userRepository/utils/userFlagByMe.d.ts +68 -0
  78. package/dist/userRepository/utils/userFlagByMe.d.ts.map +1 -0
  79. package/dist/userRepository/utils/userReport.d.ts +16 -1
  80. package/dist/userRepository/utils/userReport.d.ts.map +1 -1
  81. package/dist/utils/bloomFilter.d.ts +14 -0
  82. package/dist/utils/bloomFilter.d.ts.map +1 -0
  83. package/dist/utils/linkedObject/tests/userLinkedObject.test.d.ts +2 -0
  84. package/dist/utils/linkedObject/tests/userLinkedObject.test.d.ts.map +1 -0
  85. package/dist/utils/linkedObject/userLinkedObject.d.ts.map +1 -1
  86. package/dist/utils/tests/bloomFilter.test.d.ts +2 -0
  87. package/dist/utils/tests/bloomFilter.test.d.ts.map +1 -0
  88. package/dist/utils/tests/client.d.ts +1 -1
  89. package/dist/utils/tests/client.d.ts.map +1 -1
  90. package/dist/utils/tests/dummy/channel.d.ts +31 -10
  91. package/dist/utils/tests/dummy/channel.d.ts.map +1 -1
  92. package/dist/utils/tests/dummy/comment.d.ts +1 -1
  93. package/dist/utils/tests/dummy/community.d.ts +2 -2
  94. package/dist/utils/tests/dummy/community.d.ts.map +1 -1
  95. package/dist/utils/tests/dummy/message.d.ts +1 -1
  96. package/dist/utils/tests/dummy/token.d.ts +1 -1
  97. package/dist/utils/tests/dummy/user.d.ts +10 -12
  98. package/dist/utils/tests/dummy/user.d.ts.map +1 -1
  99. package/package.json +1 -1
@@ -23,6 +23,7 @@ export declare const getChannelMessagePreviewWithUser: (channel: Amity.StaticInt
23
23
  pinnedMessage?: Amity.RawPinnedMessage<any> | null | undefined;
24
24
  isPublic?: boolean | undefined;
25
25
  lastActivity: string;
26
+ lastMessageAt: string | null;
26
27
  attachedTo?: {
27
28
  postId?: string | undefined;
28
29
  videoStreamId?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"getChannelMessagePreviewWithUser.d.ts","sourceRoot":"","sources":["../../../src/messagePreview/utils/getChannelMessagePreviewWithUser.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gCAAgC,YAClC,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAEpB,MAAM,cAAc,GAAG,IAAI;CAoB5C,CAAC"}
1
+ {"version":3,"file":"getChannelMessagePreviewWithUser.d.ts","sourceRoot":"","sources":["../../../src/messagePreview/utils/getChannelMessagePreviewWithUser.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gCAAgC,YAClC,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAEpB,MAAM,cAAc,GAAG,IAAI;CAoB5C,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export declare const getSubChannelMessagePreviewWithUser: (subChannel: Amity.SubChannel) => {
2
2
  messagePreview: {
3
- user: Amity.InternalUser | undefined;
3
+ user: Amity.User | undefined;
4
4
  messagePreviewId: string;
5
5
  subChannelName: string;
6
6
  data?: string | Record<string, unknown> | Amity.ContentDataText | Amity.ContentDataFile | Amity.ContentDataImage | Amity.ContentDataVideo | Amity.ContentDataAudio | Amity.ContentDataPoll | Amity.ContentDataStream | Amity.ContentDataClip | Amity.ContentDataRoom | Amity.ContentDataEvent | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"getSubChannelMessagePreviewWithUser.d.ts","sourceRoot":"","sources":["../../../src/messagePreview/utils/getSubChannelMessagePreviewWithUser.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mCAAmC,eAAgB,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa/E,CAAC"}
1
+ {"version":3,"file":"getSubChannelMessagePreviewWithUser.d.ts","sourceRoot":"","sources":["../../../src/messagePreview/utils/getSubChannelMessagePreviewWithUser.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mCAAmC,eAAgB,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoB/E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createMessage.d.ts","sourceRoot":"","sources":["../../../src/messageRepository/api/createMessage.ts"],"names":[],"mappings":"AAmBA,aAAK,kBAAkB,CAAC,CAAC,SAAS,KAAK,CAAC,kBAAkB,IAAI,IAAI,CAChE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAChB,cAAc,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,YAAY,CAC9E,GAAG;IACF,IAAI,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IAChC,MAAM,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAqEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,aAAa,yEAEvB,QAAQ,MAAM,MAAM,CAAC,MAAM,OAAO,CAAC,CAuCrC,CAAC"}
1
+ {"version":3,"file":"createMessage.d.ts","sourceRoot":"","sources":["../../../src/messageRepository/api/createMessage.ts"],"names":[],"mappings":"AAwBA,aAAK,kBAAkB,CAAC,CAAC,SAAS,KAAK,CAAC,kBAAkB,IAAI,IAAI,CAChE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAChB,cAAc,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,YAAY,CAC9E,GAAG;IACF,IAAI,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IAChC,MAAM,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAiFF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,aAAa,yEAEvB,QAAQ,MAAM,MAAM,CAAC,MAAM,OAAO,CAAC,CA2CrC,CAAC"}
@@ -15,7 +15,7 @@ export declare const roomPostWithProductTags: Amity.InternalPost<any>;
15
15
  export declare const roomPostWithPinnedProduct: Amity.InternalPost<any>;
16
16
  export declare const createPostPayload: {
17
17
  posts: Amity.Post<any>[];
18
- users: Amity.User[];
18
+ users: Amity.InternalUser[];
19
19
  postChildren: never[];
20
20
  communities: never[];
21
21
  communityUsers: never[];
@@ -30,7 +30,7 @@ export declare const createPostPayload: {
30
30
  };
31
31
  export declare const getPostPayload: {
32
32
  posts: Amity.Post<any>[];
33
- users: Amity.User[];
33
+ users: Amity.InternalUser[];
34
34
  postChildren: never[];
35
35
  communities: never[];
36
36
  communityUsers: never[];
@@ -45,7 +45,7 @@ export declare const getPostPayload: {
45
45
  };
46
46
  export declare const queryPostsPayload: {
47
47
  posts: Amity.Post<any>[];
48
- users: Amity.User[];
48
+ users: Amity.InternalUser[];
49
49
  paging: {
50
50
  next: undefined;
51
51
  };
@@ -1 +1 @@
1
- {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/postRepository/utils/payload.ts"],"names":[],"mappings":"AAyBA,eAAO,MAAM,kBAAkB,YAAa,MAAM,WAAW,KAAG,MAAM,oBAiFrE,CAAC;AAEF,eAAO,MAAM,gCAAgC,4CAI1C,MAAM,yBAAyB,KAAG,MAAM,kCAO1C,CAAC"}
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/postRepository/utils/payload.ts"],"names":[],"mappings":"AA2BA,eAAO,MAAM,kBAAkB,YAAa,MAAM,WAAW,KAAG,MAAM,oBAiFrE,CAAC;AAEF,eAAO,MAAM,gCAAgC,4CAI1C,MAAM,yBAAyB,KAAG,MAAM,kCAO1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"isReportedByMe.d.ts","sourceRoot":"","sources":["../../../src/report/api/isReportedByMe.ts"],"names":[],"mappings":"AAgEA;;;;;;;;;;;;KAYK;AACL,eAAO,MAAM,cAAc,kBACV,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,eACzC,MAAM,KAClB,QAAQ,OAAO,CAqBjB,CAAC"}
1
+ {"version":3,"file":"isReportedByMe.d.ts","sourceRoot":"","sources":["../../../src/report/api/isReportedByMe.ts"],"names":[],"mappings":"AAmEA;;;;;;;;;;;;KAYK;AACL,eAAO,MAAM,cAAc,kBACV,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,eACzC,MAAM,KAClB,QAAQ,OAAO,CAqBjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"flagUser.d.ts","sourceRoot":"","sources":["../../../src/userRepository/api/flagUser.ts"],"names":[],"mappings":"AAiBA,aAAK,QAAQ,GAAG;IACd;;;;;;;;;;;;;OAaG;IACH,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACzE;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;CACxF,CAAC;AAKF;;;;;;;;;;;;;;;;;;;KAmBK;AACL,eAAO,MAAM,QAAQ,EAAE,QAuBtB,CAAC"}
1
+ {"version":3,"file":"flagUser.d.ts","sourceRoot":"","sources":["../../../src/userRepository/api/flagUser.ts"],"names":[],"mappings":"AAmBA,aAAK,QAAQ,GAAG;IACd;;;;;;;;;;;;;OAaG;IACH,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACzE;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;CACxF,CAAC;AAKF;;;;;;;;;;;;;;;;;;;KAmBK;AACL,eAAO,MAAM,QAAQ,EAAE,QA4BtB,CAAC"}
@@ -1,11 +1,19 @@
1
1
  /**
2
2
  * ```js
3
3
  * import { UserRepository } from '@amityco/ts-sdk'
4
- * const isFlagged = await UserRepository.isUserFlaggedByMe(postId)
4
+ * const isFlagged = await UserRepository.isUserFlaggedByMe(userId)
5
5
  * ```
6
6
  *
7
- * @param userId The ID of the thing to check a report to.
8
- * @returns `true` if the report is created by me, `false` if doesn't.
7
+ * Whether the current user has reported a user. Sends one request per call and caches
8
+ * nothing.
9
+ *
10
+ * @deprecated Read `user.isFlaggedByMe` on an {@link Amity.User} for a yes/no hint that
11
+ * usually needs no request, and call `user.getUserFlagsByMe()` for the exact answer with the
12
+ * caller's reports by type. Observe the user with `UserRepository.getUser(userId, callback)`
13
+ * to follow a flag or unflag.
14
+ *
15
+ * @param userId The ID of the user to check
16
+ * @returns `true` if the current user has reported the user, `false` if not
9
17
  *
10
18
  * @category Report API
11
19
  * @async
@@ -1 +1 @@
1
- {"version":3,"file":"isUserFlaggedByMe.d.ts","sourceRoot":"","sources":["../../../src/userRepository/api/isUserFlaggedByMe.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;KAWK;AACL,eAAO,MAAM,iBAAiB,WAAkB,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAG,QAAQ,OAAO,CASrF,CAAC"}
1
+ {"version":3,"file":"isUserFlaggedByMe.d.ts","sourceRoot":"","sources":["../../../src/userRepository/api/isUserFlaggedByMe.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;KAmBK;AACL,eAAO,MAAM,iBAAiB,WAAkB,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAG,QAAQ,OAAO,CAOrF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"queryBlockedUsers.d.ts","sourceRoot":"","sources":["../../../src/userRepository/api/queryBlockedUsers.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,iBAAiB;aACpB,MAAM,gBAAgB;;;;;eAGrB,MAAM;;IAyCjB;;;;;;;;;;;;;OAaG;oBAEM,WAAW,wBAAwB,CAAC,CAAC,CAAC,CAAC,GAE5C,CAAC,MAAM,MAAM,CAAC,MAAM,KAAK,CAAC,MAAM,YAAY,EAAE,MAAM,OAAO,CAAC,CAAC,GAAG;QAC9D,KAAK,EAAE,MAAM,CAAC;KACf,CAAC,GACF,SAAS;CAtBZ,CAAC"}
1
+ {"version":3,"file":"queryBlockedUsers.d.ts","sourceRoot":"","sources":["../../../src/userRepository/api/queryBlockedUsers.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,iBAAiB;aACpB,MAAM,gBAAgB;;;;;eAGrB,MAAM;;IAyCjB;;;;;;;;;;;;;OAaG;oBAEM,WAAW,wBAAwB,CAAC,CAAC,CAAC,CAAC,GAE5C,CAAC,MAAM,MAAM,CAAC,MAAM,KAAK,CAAC,MAAM,YAAY,EAAE,MAAM,OAAO,CAAC,CAAC,GAAG;QAC9D,KAAK,EAAE,MAAM,CAAC;KACf,CAAC,GACF,SAAS;CAtBZ,CAAC"}
@@ -1,14 +1,37 @@
1
1
  /**
2
2
  * ```js
3
- * import { UserRepository } from '@amityco/ts-sdk'
4
- * const unflagged = await UserRepository.unflagUser('post', postId)
3
+ * import { UserRepository, UserReportTypeFilterEnum } from '@amityco/ts-sdk'
4
+ *
5
+ * // Withdraw every report I filed on the user.
6
+ * const unflagged = await UserRepository.unflagUser('userId')
7
+ *
8
+ * // Withdraw only my behavior report; my other reports on the user stay.
9
+ * await UserRepository.unflagUser('userId', { reportType: UserReportTypeFilterEnum.BEHAVIOR })
10
+ *
11
+ * // Withdraw only my typeless (legacy) report.
12
+ * await UserRepository.unflagUser('userId', { reportType: UserReportTypeFilterEnum.UNTYPED })
5
13
  * ```
6
14
  *
15
+ * Withdraws the caller's reports on a user. Without `reportType` every report the caller
16
+ * filed on that user is withdrawn, as before. With `reportType` only the caller's report
17
+ * of that type is withdrawn; the caller's other reports and other users' reports are
18
+ * untouched. Withdrawing a report that does not exist succeeds and changes nothing.
19
+ *
20
+ * The returned user is persisted to the cache, so its `hashFlag` says whether the caller
21
+ * may still hold a report on the user. Do not flip a local "flagged by me" flag to `false`
22
+ * after a per-type withdrawal; observe the user and read `isFlaggedByMe`, or call
23
+ * `user.getUserFlagsByMe()` for the remaining per-type state (`flags`). The SDK drops the
24
+ * answer it confirmed for this user, so the next "maybe" is confirmed again.
25
+ *
26
+ * Sends `DELETE /api/v4/me/flags/:userId`, with `?reportType=<type>` when one is given.
27
+ *
7
28
  * @param userId The ID of the user to unflag
8
- * @returns the deleted report result
29
+ * @param options Optional; `reportType` selects a single report to withdraw. For a report that `user.getUserFlagsByMe()` lists with `reportType: null`, pass `UserReportTypeFilterEnum.UNTYPED`
30
+ * @returns `true` once the server has processed the withdrawal
31
+ * @throws {ASCInvalidParameterError} `INVALID_PARAMETERS` when `reportType` is not a `UserReportTypeFilterEnum` value, before any request is made
9
32
  *
10
33
  * @category User API
11
34
  * @async
12
35
  * */
13
- export declare const unflagUser: (userId: Amity.User['userId']) => Promise<boolean>;
36
+ export declare const unflagUser: (userId: Amity.User['userId'], options?: Amity.UserReportTypeFilterOptions) => Promise<boolean>;
14
37
  //# sourceMappingURL=unflagUser.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"unflagUser.d.ts","sourceRoot":"","sources":["../../../src/userRepository/api/unflagUser.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;KAWK;AACL,eAAO,MAAM,UAAU,WAAkB,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAG,QAAQ,OAAO,CAiB9E,CAAC"}
1
+ {"version":3,"file":"unflagUser.d.ts","sourceRoot":"","sources":["../../../src/userRepository/api/unflagUser.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkCK;AACL,eAAO,MAAM,UAAU,WACb,MAAM,IAAI,CAAC,QAAQ,CAAC,YAClB,MAAM,2BAA2B,KAC1C,QAAQ,OAAO,CAuBjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"updateUser.d.ts","sourceRoot":"","sources":["../../../src/userRepository/api/updateUser.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,WACb,MAAM,IAAI,CAAC,QAAQ,CAAC,SACrB,MACL,MAAM,IAAI,EACV,aAAa,GAAG,aAAa,GAAG,cAAc,GAAG,iBAAiB,GAAG,UAAU,CAChF,KACA,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAqBlC,CAAC"}
1
+ {"version":3,"file":"updateUser.d.ts","sourceRoot":"","sources":["../../../src/userRepository/api/updateUser.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,WACb,MAAM,IAAI,CAAC,QAAQ,CAAC,SACrB,MACL,MAAM,IAAI,EACV,aAAa,GAAG,aAAa,GAAG,cAAc,GAAG,iBAAiB,GAAG,UAAU,CAChF,KACA,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAqBlC,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * ```js
3
+ * import { getFlagsByMe } from '~/userRepository/internalApi/getFlagsByMe'
4
+ * const { isFlagByMe, flags } = await getFlagsByMe('userId')
5
+ * ```
6
+ *
7
+ * The v4 read behind `user.getUserFlagsByMe()`, the background confirm of
8
+ * `user.isFlaggedByMe`, and the deprecated `UserRepository.isUserFlaggedByMe`:
9
+ * `GET /api/v4/users/:userId/isFlagByMe`, returned as received. Nothing is filtered, cached or
10
+ * persisted here, and `hashFlag` is not consulted.
11
+ * This is the Web counterpart of iOS `ASCUserService.getFlagsByMe` and Android
12
+ * `UserRepository.getFlagsByMe`, kept apart from the deprecated public function so the
13
+ * user-object read does not change if that function ever does.
14
+ *
15
+ * @param userId The ID of the user whose reports by the caller are read
16
+ * @returns the caller's {@link Amity.UserFlagByMe} on that user
17
+ *
18
+ * @category Private
19
+ * @async
20
+ */
21
+ export declare const getFlagsByMe: (userId: Amity.User['userId']) => Promise<Amity.UserFlagByMe>;
22
+ //# sourceMappingURL=getFlagsByMe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getFlagsByMe.d.ts","sourceRoot":"","sources":["../../../src/userRepository/internalApi/getFlagsByMe.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,YAAY,WAAkB,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAG,QAAQ,MAAM,YAAY,CAS3F,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=getFlagsByMe.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getFlagsByMe.test.d.ts","sourceRoot":"","sources":["../../../../src/userRepository/internalApi/tests/getFlagsByMe.test.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
- import { BlockedUserPaginationController } from './BlockedUserPaginationController';
2
1
  import { LiveCollectionController } from '~/core/liveCollection/LiveCollectionController';
2
+ import { BlockedUserPaginationController } from './BlockedUserPaginationController';
3
3
  export declare class BlockedUserLiveCollectionController extends LiveCollectionController<'blockUser', Amity.BlockedUsersLiveCollection, Amity.User, BlockedUserPaginationController> {
4
4
  private queryStreamController;
5
5
  private query;
@@ -9,6 +9,6 @@ export declare class BlockedUserLiveCollectionController extends LiveCollectionC
9
9
  protected persistQueryStream({ response, direction, refresh, }: Amity.LiveCollectionPersistQueryStreamParams<'blockUser'>): void;
10
10
  startSubscription(): Amity.Unsubscriber[];
11
11
  notifyChange({ origin, loading, error }: Amity.LiveCollectionNotifyParams): void;
12
- applyFilter(data: Amity.InternalUser[]): Amity.InternalUser[];
12
+ applyFilter(data: Amity.User[]): Amity.User[];
13
13
  }
14
14
  //# sourceMappingURL=BlockedUserLiveCollectionController.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BlockedUserLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../src/userRepository/observers/getBlockedUsers/BlockedUserLiveCollectionController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAa1F,qBAAa,mCAAoC,SAAQ,wBAAwB,CAC/E,WAAW,EACX,KAAK,CAAC,0BAA0B,EAChC,KAAK,CAAC,IAAI,EACV,+BAA+B,CAChC;IACC,OAAO,CAAC,qBAAqB,CAAmC;IAEhE,OAAO,CAAC,KAAK,CAAmC;gBAG9C,KAAK,EAAE,KAAK,CAAC,0BAA0B,EACvC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,IAAI,CAAC;IAoBpD,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,kBAAkB,GAAG,KAAK,CAAC,UAAU;IAItF,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,WAAW,CAAC;IAI5D,iBAAiB;IAmCjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAuBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,EAAE;CAOvC"}
1
+ {"version":3,"file":"BlockedUserLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../src/userRepository/observers/getBlockedUsers/BlockedUserLiveCollectionController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAa1F,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,qBAAa,mCAAoC,SAAQ,wBAAwB,CAC/E,WAAW,EACX,KAAK,CAAC,0BAA0B,EAChC,KAAK,CAAC,IAAI,EACV,+BAA+B,CAChC;IACC,OAAO,CAAC,qBAAqB,CAAmC;IAEhE,OAAO,CAAC,KAAK,CAAmC;gBAG9C,KAAK,EAAE,KAAK,CAAC,0BAA0B,EACvC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,IAAI,CAAC;IAoBpD,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,kBAAkB,GAAG,KAAK,CAAC,UAAU;IAItF,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,WAAW,CAAC;IAI5D,iBAAiB;IAmCjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAuBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE;CAO/B"}
@@ -8,6 +8,6 @@ export declare class BlockingUserLiveCollectionController extends LiveCollection
8
8
  protected persistQueryStream({ response, direction, refresh, }: Amity.LiveCollectionPersistQueryStreamParams<'blockingUser'>): void;
9
9
  startSubscription(): Amity.Unsubscriber[];
10
10
  notifyChange({ origin, loading, error }: Amity.LiveCollectionNotifyParams): void;
11
- applyFilter(data: Amity.InternalUser[]): Amity.InternalUser[];
11
+ applyFilter(data: Amity.User[]): Amity.User[];
12
12
  }
13
13
  //# sourceMappingURL=LiveCollectionController.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../src/userRepository/observers/getBlockingUsers/LiveCollectionController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAQ1F,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAG1E,qBAAa,oCAAqC,SAAQ,wBAAwB,CAChF,cAAc,EACd,KAAK,CAAC,2BAA2B,EACjC,KAAK,CAAC,IAAI,EACV,gCAAgC,CACjC;IACC,OAAO,CAAC,qBAAqB,CAAoC;gBAErD,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,IAAI,CAAC;IAmB9D,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,mBAAmB,GAAG,KAAK,CAAC,UAAU;IAIvF,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,cAAc,CAAC;IAI/D,iBAAiB;IA2BjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAsBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,EAAE;CAOvC"}
1
+ {"version":3,"file":"LiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../src/userRepository/observers/getBlockingUsers/LiveCollectionController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAQ1F,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAC;AAG1E,qBAAa,oCAAqC,SAAQ,wBAAwB,CAChF,cAAc,EACd,KAAK,CAAC,2BAA2B,EACjC,KAAK,CAAC,IAAI,EACV,gCAAgC,CACjC;IACC,OAAO,CAAC,qBAAqB,CAAoC;gBAErD,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,IAAI,CAAC;IAmB9D,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,mBAAmB,GAAG,KAAK,CAAC,UAAU;IAIvF,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,cAAc,CAAC;IAI/D,iBAAiB;IA2BjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAsBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE;CAO/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"getUser.d.ts","sourceRoot":"","sources":["../../../src/userRepository/observers/getUser.ts"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,OAAO,WACV,MAAM,IAAI,CAAC,QAAQ,CAAC,YAClB,MAAM,kBAAkB,CAAC,MAAM,IAAI,CAAC,KAC7C,MAAM,YAkBR,CAAC"}
1
+ {"version":3,"file":"getUser.d.ts","sourceRoot":"","sources":["../../../src/userRepository/observers/getUser.ts"],"names":[],"mappings":"AAgBA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,OAAO,WACV,MAAM,IAAI,CAAC,QAAQ,CAAC,YAClB,MAAM,kBAAkB,CAAC,MAAM,IAAI,CAAC,KAC7C,MAAM,YA+BR,CAAC"}
@@ -1,5 +1,5 @@
1
- import { UserPaginationController } from './UserPaginationController';
2
1
  import { LiveCollectionController } from '~/core/liveCollection/LiveCollectionController';
2
+ import { UserPaginationController } from './UserPaginationController';
3
3
  export declare class UserLiveCollectionController extends LiveCollectionController<'user', Amity.UserLiveCollection, Amity.User, UserPaginationController> {
4
4
  private queryStreamController;
5
5
  private query;
@@ -9,6 +9,6 @@ export declare class UserLiveCollectionController extends LiveCollectionControll
9
9
  protected persistQueryStream({ response, direction, refresh, }: Amity.LiveCollectionPersistQueryStreamParams<'user'>): void;
10
10
  startSubscription(): Amity.Unsubscriber[];
11
11
  notifyChange({ origin, loading, error }: Amity.LiveCollectionNotifyParams): void;
12
- applyFilter(data: Amity.InternalUser[]): Amity.InternalUser[];
12
+ applyFilter(data: Amity.User[]): Amity.User[];
13
13
  }
14
14
  //# sourceMappingURL=UserLiveCollectionController.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../src/userRepository/observers/getUsers/UserLiveCollectionController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAc1F,qBAAa,4BAA6B,SAAQ,wBAAwB,CACxE,MAAM,EACN,KAAK,CAAC,kBAAkB,EACxB,KAAK,CAAC,IAAI,EACV,wBAAwB,CACzB;IACC,OAAO,CAAC,qBAAqB,CAA4B;IAEzD,OAAO,CAAC,KAAK,CAA2B;gBAE5B,KAAK,EAAE,KAAK,CAAC,kBAAkB,EAAE,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,IAAI,CAAC;IAmB/F,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC,UAAU;IAI/E,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,MAAM,CAAC;IAIvD,iBAAiB;IAUjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAuBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,EAAE;CAwBvC"}
1
+ {"version":3,"file":"UserLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../src/userRepository/observers/getUsers/UserLiveCollectionController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAe1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,qBAAa,4BAA6B,SAAQ,wBAAwB,CACxE,MAAM,EACN,KAAK,CAAC,kBAAkB,EACxB,KAAK,CAAC,IAAI,EACV,wBAAwB,CACzB;IACC,OAAO,CAAC,qBAAqB,CAA4B;IAEzD,OAAO,CAAC,KAAK,CAA2B;gBAE5B,KAAK,EAAE,KAAK,CAAC,kBAAkB,EAAE,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,IAAI,CAAC;IAmB/F,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC,UAAU;IAI/E,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,MAAM,CAAC;IAIvD,iBAAiB;IAoBjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAuBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE;CAwB/B"}
@@ -1,5 +1,5 @@
1
- import { SearchUserPaginationController } from './SearchUserPaginationController';
2
1
  import { LiveCollectionController } from '~/core/liveCollection/LiveCollectionController';
2
+ import { SearchUserPaginationController } from './SearchUserPaginationController';
3
3
  export declare class SearchUserLiveCollectionController extends LiveCollectionController<'user', Amity.SearchUserLiveCollection, Amity.User, SearchUserPaginationController> {
4
4
  private queryStreamController;
5
5
  private query;
@@ -9,6 +9,6 @@ export declare class SearchUserLiveCollectionController extends LiveCollectionCo
9
9
  protected persistQueryStream({ response, direction, refresh, }: Amity.LiveCollectionPersistQueryStreamParams<'user'>): void;
10
10
  startSubscription(): Amity.Unsubscriber[];
11
11
  notifyChange({ origin, loading, error }: Amity.LiveCollectionNotifyParams): void;
12
- applyFilter(data: Amity.InternalUser[]): Amity.InternalUser[];
12
+ applyFilter(data: Amity.User[]): Amity.User[];
13
13
  }
14
14
  //# sourceMappingURL=SearchUserLiveCollectionController.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SearchUserLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../src/userRepository/observers/searchUserByDisplayName/SearchUserLiveCollectionController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAElF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAa1F,qBAAa,kCAAmC,SAAQ,wBAAwB,CAC9E,MAAM,EACN,KAAK,CAAC,wBAAwB,EAC9B,KAAK,CAAC,IAAI,EACV,8BAA8B,CAC/B;IACC,OAAO,CAAC,qBAAqB,CAAkC;IAE/D,OAAO,CAAC,KAAK,CAAiC;gBAG5C,KAAK,EAAE,KAAK,CAAC,wBAAwB,EACrC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,IAAI,CAAC;IAoBpD,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC,UAAU;IAI/E,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,MAAM,CAAC;IAIvD,iBAAiB;IAUjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAuBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,YAAY,EAAE;CAWvC"}
1
+ {"version":3,"file":"SearchUserLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../src/userRepository/observers/searchUserByDisplayName/SearchUserLiveCollectionController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAc1F,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAElF,qBAAa,kCAAmC,SAAQ,wBAAwB,CAC9E,MAAM,EACN,KAAK,CAAC,wBAAwB,EAC9B,KAAK,CAAC,IAAI,EACV,8BAA8B,CAC/B;IACC,OAAO,CAAC,qBAAqB,CAAkC;IAE/D,OAAO,CAAC,KAAK,CAAiC;gBAG5C,KAAK,EAAE,KAAK,CAAC,wBAAwB,EACrC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,IAAI,CAAC;IAoBpD,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC,UAAU;IAI/E,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,MAAM,CAAC;IAIvD,iBAAiB;IAoBjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAuBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE;CAW/B"}
@@ -17,5 +17,5 @@
17
17
  *
18
18
  * @category Category Live Collection
19
19
  */
20
- export declare const searchUserByDisplayName: (params: Amity.UserSearchLiveCollection, callback: Amity.LiveCollectionCallback<Amity.InternalUser>, config?: Amity.LiveCollectionConfig) => () => void;
20
+ export declare const searchUserByDisplayName: (params: Amity.UserSearchLiveCollection, callback: Amity.LiveCollectionCallback<Amity.User>, config?: Amity.LiveCollectionConfig) => () => void;
21
21
  //# sourceMappingURL=searchUserByDisplayName.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"searchUserByDisplayName.d.ts","sourceRoot":"","sources":["../../../src/userRepository/observers/searchUserByDisplayName.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,uBAAuB,WAC1B,MAAM,wBAAwB,YAC5B,MAAM,sBAAsB,CAAC,MAAM,YAAY,CAAC,WACjD,MAAM,oBAAoB,eAuBpC,CAAC"}
1
+ {"version":3,"file":"searchUserByDisplayName.d.ts","sourceRoot":"","sources":["../../../src/userRepository/observers/searchUserByDisplayName.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,uBAAuB,WAC1B,MAAM,wBAAwB,YAC5B,MAAM,sBAAsB,CAAC,MAAM,IAAI,CAAC,WACzC,MAAM,oBAAoB,eAuBpC,CAAC"}
@@ -22,5 +22,5 @@
22
22
  *
23
23
  * @category Category Live Collection
24
24
  */
25
- export declare const searchUsers: (params: Amity.UserSearchLiveCollection, callback: Amity.LiveCollectionCallback<Amity.InternalUser>, config?: Amity.LiveCollectionConfig) => () => void;
25
+ export declare const searchUsers: (params: Amity.UserSearchLiveCollection, callback: Amity.LiveCollectionCallback<Amity.User>, config?: Amity.LiveCollectionConfig) => () => void;
26
26
  //# sourceMappingURL=searchUsers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"searchUsers.d.ts","sourceRoot":"","sources":["../../../src/userRepository/observers/searchUsers.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,WAAW,WACd,MAAM,wBAAwB,YAC5B,MAAM,sBAAsB,CAAC,MAAM,YAAY,CAAC,WACjD,MAAM,oBAAoB,eAuBpC,CAAC"}
1
+ {"version":3,"file":"searchUsers.d.ts","sourceRoot":"","sources":["../../../src/userRepository/observers/searchUsers.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,WAAW,WACd,MAAM,wBAAwB,YAC5B,MAAM,sBAAsB,CAAC,MAAM,IAAI,CAAC,WACzC,MAAM,oBAAoB,eAuBpC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"submitUserReport.d.ts","sourceRoot":"","sources":["../../../src/userRepository/utils/submitUserReport.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,YAClB,iBAAiB,GAAG,kBAAkB,UACvC,MAAM,IAAI,CAAC,QAAQ,CAAC,QACtB,cAAc,KACnB,QAAQ,MAAM,IAAI,CAkBpB,CAAC"}
1
+ {"version":3,"file":"submitUserReport.d.ts","sourceRoot":"","sources":["../../../src/userRepository/utils/submitUserReport.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,YAClB,iBAAiB,GAAG,kBAAkB,UACvC,MAAM,IAAI,CAAC,QAAQ,CAAC,QACtB,cAAc,KACnB,QAAQ,MAAM,IAAI,CAuBpB,CAAC"}
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Flag state of the current user on a target user, behind `Amity.User.isFlaggedByMe` and
3
+ * `Amity.User.getUserFlagsByMe()` (`user.check_flag_by_me` v1, REQ-011, REQ-012, REQ-016).
4
+ *
5
+ * `hashFlag` is a Bloom filter of reporter ids. "Definitely not" is exact. "Maybe" can be a
6
+ * false positive caused by other reporters, so the SDK confirms it with the server once per
7
+ * `hashFlag` value and records the answer in the cache under its own key, never on the user's
8
+ * cache row (REQ-015). Observers are told through `local.user.flagConfirmed` when a recorded
9
+ * answer changes what a user object would show.
10
+ *
11
+ * Not exported from the public API.
12
+ */
13
+ /** Confirms for the same user are at least this far apart, as Android's `EkoFlag.expired`. */
14
+ export declare const FLAG_CONFIRM_INTERVAL = 1000;
15
+ declare type HashFlag = NonNullable<Amity.Flaggable['hashFlag']>;
16
+ /** The current user's id, or `undefined` when there is no active client. Never throws. */
17
+ export declare const currentUserId: () => string | undefined;
18
+ /**
19
+ * The server's answer recorded for this user and this exact `hashFlag`, or `undefined` when there
20
+ * is none for the current user. Never throws.
21
+ */
22
+ export declare const readConfirmedFlag: (userId: Amity.InternalUser['userId'], hashFlag: Amity.Flaggable['hashFlag'] | undefined) => boolean | undefined;
23
+ /**
24
+ * Starts one background confirm of a "maybe" (REQ-016): at most one in flight per user, and
25
+ * confirms for the same user at least {@link FLAG_CONFIRM_INTERVAL} apart. A failed confirm
26
+ * records nothing, surfaces no error, and a later read tries again.
27
+ */
28
+ export declare const confirmFlagByMe: (userId: Amity.InternalUser['userId'], hashFlag: HashFlag) => void;
29
+ /**
30
+ * The value of `Amity.User.isFlaggedByMe` for a user object whose confirmed answer was captured
31
+ * (`confirmed`) when the object was linked, so a held object never changes (REQ-014).
32
+ *
33
+ * - No current user, `hashFlag: null` or a missing `hashFlag`, or "definitely not": `false`.
34
+ * - "Maybe" with a confirmed answer: that answer, no request.
35
+ * - "Maybe" without one: `true`, and one background confirm (REQ-016).
36
+ *
37
+ * The linked object declares this as a getter inside an object spread, which the build compiles
38
+ * to `Object.assign`, so it runs once when the user is linked and the object keeps that value.
39
+ */
40
+ export declare const isFlaggedByMeFor: (user: Amity.InternalUser, confirmed: boolean | undefined) => boolean;
41
+ export declare const getUserFlagsByMeFor: (user: Amity.InternalUser) => () => Promise<Amity.UserFlagByMe>;
42
+ /**
43
+ * The current user's own flag succeeded (REQ-016). Their report may leave `hashFlag` unchanged
44
+ * when other reporters had already set all of their bits, so the answer is known: record `true`
45
+ * for the `hashFlag` the response carries, or drop the answer when it carries none.
46
+ */
47
+ export declare const onFlaggedByMe: (user: Amity.InternalUser | undefined, userId: string) => void;
48
+ /**
49
+ * The current user's own unflag succeeded (`user.unflag` REQ-010, REQ-016). A per-type unflag can
50
+ * leave other reports in place, so the answer is dropped, never set to `false`; the next "maybe"
51
+ * is confirmed again.
52
+ */
53
+ export declare const onUnflaggedByMe: (userId: string) => void;
54
+ /** Forgets every in-memory trace of the current user's flag state. Records live in the cache. */
55
+ export declare const resetUserFlagByMe: () => void;
56
+ /**
57
+ * Registered through `setupLoginSubscriptions`. Every confirmed answer belongs to the current
58
+ * user, so the state is cleared on logout; the records themselves go with the cache, and each
59
+ * also carries the reporter's id.
60
+ */
61
+ export declare const userFlagByMeOnLoginHandler: () => Amity.Unsubscriber;
62
+ /**
63
+ * Called with the cached user when a recorded answer changes what that user would show, so live
64
+ * objects and live collections deliver it again (REQ-016, delivery).
65
+ */
66
+ export declare const onUserFlagConfirmed: (callback: Amity.Listener<Amity.InternalUser>) => Amity.Unsubscriber;
67
+ export {};
68
+ //# sourceMappingURL=userFlagByMe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userFlagByMe.d.ts","sourceRoot":"","sources":["../../../src/userRepository/utils/userFlagByMe.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;GAWG;AAEH,8FAA8F;AAC9F,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAU1C,aAAK,QAAQ,GAAG,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;AAgBzD,0FAA0F;AAC1F,eAAO,MAAM,aAAa,QAAO,MAAM,GAAG,SAMzC,CAAC;AAUF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WACpB,MAAM,YAAY,CAAC,QAAQ,CAAC,YAC1B,MAAM,SAAS,CAAC,UAAU,CAAC,GAAG,SAAS,KAChD,OAAO,GAAG,SAQZ,CAAC;AAiDF;;;;GAIG;AACH,eAAO,MAAM,eAAe,WAAY,MAAM,YAAY,CAAC,QAAQ,CAAC,YAAY,QAAQ,SAqBvF,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,SACrB,MAAM,YAAY,aACb,OAAO,GAAG,SAAS,KAC7B,OASF,CAAC;AAiDF,eAAO,MAAM,mBAAmB,SAAU,MAAM,YAAY,WA9BJ,QAAQ,MAAM,YAAY,CAyCjF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,SAAU,MAAM,YAAY,GAAG,SAAS,UAAU,MAAM,SAWjF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,WAAY,MAAM,SAM7C,CAAC;AAEF,iGAAiG;AACjG,eAAO,MAAM,iBAAiB,YAK7B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,QAAO,MAAM,YAWnD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,aAAc,MAAM,QAAQ,CAAC,MAAM,YAAY,CAAC,uBAS7E,CAAC"}
@@ -1,4 +1,4 @@
1
- import { UserProfileFieldEnum } from '~/@types';
1
+ import { UserProfileFieldEnum, UserReportTypeFilterEnum } from '~/@types';
2
2
  /** Maximum `comment` length, in string length units, after trimming. */
3
3
  export declare const USER_REPORT_COMMENT_MAX_LENGTH = 300;
4
4
  /** Request body sent to `POST /api/v4/me/flags/:userId` by the split user-report calls. */
@@ -32,4 +32,19 @@ export declare const toUserProfileReportBody: (options: unknown) => UserReportBo
32
32
  * @throws {ASCInvalidParameterError} `INVALID_PARAMETERS` when the options are malformed
33
33
  */
34
34
  export declare const toUserBehaviorReportBody: (options: unknown) => UserReportBody;
35
+ /** Query parameters sent with `DELETE /api/v4/me/flags/:userId` for a per-type withdrawal. */
36
+ export declare type UserReportTypeFilterParams = {
37
+ reportType: `${UserReportTypeFilterEnum}`;
38
+ };
39
+ /**
40
+ * Validates the optional `{ reportType? }` of `unflagUser` and builds its query parameters.
41
+ * Returns `undefined` when no `reportType` is given, so the request carries no query string
42
+ * and withdraws every report the caller filed on the user. The server validates the value
43
+ * too (422); this local check only saves the round-trip for the string alias, which admits
44
+ * raw strings. Untyped callers can pass anything at runtime, so nothing is trusted from the
45
+ * declared type.
46
+ *
47
+ * @throws {ASCInvalidParameterError} `INVALID_PARAMETERS` when the options are malformed or `reportType` is unknown
48
+ */
49
+ export declare const toUserReportTypeFilter: (options: unknown) => UserReportTypeFilterParams | undefined;
35
50
  //# sourceMappingURL=userReport.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"userReport.d.ts","sourceRoot":"","sources":["../../../src/userRepository/utils/userReport.ts"],"names":[],"mappings":"AACA,OAAO,EAAyB,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEvE,wEAAwE;AACxE,eAAO,MAAM,8BAA8B,MAAM,CAAC;AAElD,2FAA2F;AAC3F,oBAAY,cAAc,GAAG;IAC3B,UAAU,EAAE,GAAG,oBAAoB,EAAE,GAAG,UAAU,CAAC;IACnD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAiBF;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,YAC5B,MAAM,WACN,OAAO,KACf,MAAM,GAAG,SAkBX,CAAC;AAKF;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,YAAa,OAAO,KAAG,cAc1D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,YAAa,OAAO,KAAG,cAc3D,CAAC"}
1
+ {"version":3,"file":"userReport.d.ts","sourceRoot":"","sources":["../../../src/userRepository/utils/userReport.ts"],"names":[],"mappings":"AACA,OAAO,EAAyB,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEjG,wEAAwE;AACxE,eAAO,MAAM,8BAA8B,MAAM,CAAC;AAElD,2FAA2F;AAC3F,oBAAY,cAAc,GAAG;IAC3B,UAAU,EAAE,GAAG,oBAAoB,EAAE,GAAG,UAAU,CAAC;IACnD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAkBF;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,YAC5B,MAAM,WACN,OAAO,KACf,MAAM,GAAG,SAkBX,CAAC;AAKF;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,YAAa,OAAO,KAAG,cAc1D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,YAAa,OAAO,KAAG,cAc3D,CAAC;AAEF,8FAA8F;AAC9F,oBAAY,0BAA0B,GAAG;IACvC,UAAU,EAAE,GAAG,wBAAwB,EAAE,CAAC;CAC3C,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,YACxB,OAAO,KACf,0BAA0B,GAAG,SAe/B,CAAC"}
@@ -0,0 +1,14 @@
1
+ /** FNV-1a with the same mixing step and signed-byte handling as the native SDKs. */
2
+ export declare const fnv1a: (bytes: Uint8Array, seed: number) => number;
3
+ /**
4
+ * Whether `value` is probably in the filter. `false` is exact; `true` means "maybe", which may be
5
+ * a false positive. `null` (the server's value when nobody has flagged the object), a missing
6
+ * filter or a missing value answer `false`.
7
+ *
8
+ * A filter that cannot be read answers `true` ("maybe") and never throws, so the caller asks the
9
+ * server instead of trusting a "definitely not" it cannot back up (REQ-017): `bits` or `hashes`
10
+ * not a positive integer, a `hash` that is not base64, or a `hash` shorter than `ceil(bits / 8)`
11
+ * bytes.
12
+ */
13
+ export declare const testBloomFilter: (hashFlag: Amity.Flaggable['hashFlag'] | undefined, value: string | undefined) => boolean;
14
+ //# sourceMappingURL=bloomFilter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bloomFilter.d.ts","sourceRoot":"","sources":["../../src/utils/bloomFilter.ts"],"names":[],"mappings":"AAmBA,oFAAoF;AACpF,eAAO,MAAM,KAAK,UAAW,UAAU,QAAQ,MAAM,KAAG,MAgBvD,CAAC;AAqBF;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,aAChB,MAAM,SAAS,CAAC,UAAU,CAAC,GAAG,SAAS,SAC1C,MAAM,GAAG,SAAS,KACxB,OA0BF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=userLinkedObject.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userLinkedObject.test.d.ts","sourceRoot":"","sources":["../../../../src/utils/linkedObject/tests/userLinkedObject.test.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"userLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/userLinkedObject.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,SAAU,MAAM,YAAY,KAAG,MAAM,IAcjE,CAAC"}
1
+ {"version":3,"file":"userLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/userLinkedObject.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,gBAAgB,SAAU,MAAM,YAAY,KAAG,MAAM,IA2BjE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=bloomFilter.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bloomFilter.test.d.ts","sourceRoot":"","sources":["../../../src/utils/tests/bloomFilter.test.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- export declare const activeUser: Amity.User;
1
+ export declare const activeUser: Amity.InternalUser;
2
2
  export declare const client: Amity.Client;
3
3
  export declare const connectClient: () => Promise<void>;
4
4
  export declare const disconnectClient: () => Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/utils/tests/client.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,UAAU,YAAS,CAAC;AAYjC,eAAO,MAAM,MAAM,cAA4B,CAAC;AAMhD,eAAO,MAAM,aAAa,qBAiBzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,qBAE5B,CAAC;;AAEF,wBAAkB"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/utils/tests/client.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,UAAU,oBAAS,CAAC;AAYjC,eAAO,MAAM,MAAM,cAA4B,CAAC;AAMhD,eAAO,MAAM,aAAa,qBAiBzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,qBAE5B,CAAC;;AAEF,wBAAkB"}
@@ -60,7 +60,7 @@ export declare const channelGetResponseWithMessagePreview: {
60
60
  channels: Amity.RawChannel<any>[];
61
61
  channelUsers: never[];
62
62
  files: never[];
63
- users: Amity.User[];
63
+ users: Amity.InternalUser[];
64
64
  messagePreviews: Amity.MessagePreviewPayload<any>[];
65
65
  messageFeedsInfo: Amity.messageFeedsInfoPayload[];
66
66
  };
@@ -70,7 +70,7 @@ export declare const channelGetResponseWithNoMessagePreview: {
70
70
  channels: Amity.RawChannel<any>[];
71
71
  channelUsers: never[];
72
72
  files: never[];
73
- users: Amity.User[];
73
+ users: Amity.InternalUser[];
74
74
  messagePreviews: never[];
75
75
  messageFeedsInfo: never[];
76
76
  };
@@ -84,7 +84,7 @@ export declare const channelQueryResponseWithMessagePreview: {
84
84
  channels: Amity.RawChannel<any>[];
85
85
  channelUsers: never[];
86
86
  files: never[];
87
- users: Amity.User[];
87
+ users: Amity.InternalUser[];
88
88
  messagePreviews: Amity.MessagePreviewPayload<any>[];
89
89
  messageFeedsInfo: Amity.messageFeedsInfoPayload[];
90
90
  };
@@ -98,7 +98,7 @@ export declare const channelQueryResponseWithNoMessagePreview: {
98
98
  channels: Amity.RawChannel<any>[];
99
99
  channelUsers: never[];
100
100
  files: never[];
101
- users: Amity.User[];
101
+ users: Amity.InternalUser[];
102
102
  messagePreviews: never[];
103
103
  messageFeedsInfo: never[];
104
104
  };
@@ -163,7 +163,7 @@ export declare const channelUserQueryResponse: {
163
163
  };
164
164
  channels: Amity.RawChannel<any>[];
165
165
  channelUsers: Amity.RawMembership<"channel">[];
166
- users: Amity.User[];
166
+ users: Amity.InternalUser[];
167
167
  files: never[];
168
168
  messagePreviews: never[];
169
169
  };
@@ -181,7 +181,24 @@ export declare const emptyChannelUserQueryResponse: {
181
181
  messagePreviews: never[];
182
182
  };
183
183
  };
184
- export declare const channelUserModel: Amity.Membership<"channel">[];
184
+ export declare const channelUserModel: (Amity.Membership<"channel"> | {
185
+ user: Amity.InternalUser;
186
+ isBanned: boolean;
187
+ isMuted: boolean;
188
+ muteTimeout: string;
189
+ lastActivity: string;
190
+ userId: string;
191
+ userInternalId: string;
192
+ userPublicId: string;
193
+ channelId: string;
194
+ membership: Amity.GroupMembership;
195
+ readToSegment: number;
196
+ lastMentionedSegment: number;
197
+ createdAt: string;
198
+ updatedAt?: string | undefined;
199
+ roles: string[];
200
+ permissions: Amity.Permission[];
201
+ })[];
185
202
  export declare const channelUserQueryResponsePage2: {
186
203
  data: {
187
204
  paging: {
@@ -190,7 +207,7 @@ export declare const channelUserQueryResponsePage2: {
190
207
  };
191
208
  channels: Amity.RawChannel<any>[];
192
209
  channelUsers: Amity.RawMembership<"channel">[];
193
- users: Amity.User[];
210
+ users: Amity.InternalUser[];
194
211
  files: never[];
195
212
  messagePreviews: never[];
196
213
  };
@@ -203,7 +220,7 @@ export declare const channelUserQueryResponsePage3: {
203
220
  };
204
221
  channels: Amity.RawChannel<any>[];
205
222
  channelUsers: Amity.RawMembership<"channel">[];
206
- users: Amity.User[];
223
+ users: Amity.InternalUser[];
207
224
  files: never[];
208
225
  messagePreviews: never[];
209
226
  };
@@ -213,14 +230,14 @@ export declare const channelPayload: Amity.ProcessedChannelPayload;
213
230
  export declare const liveChannelPayload: {
214
231
  channels: Amity.RawChannel<any>[];
215
232
  channelUsers: Amity.RawMembership<"channel">[];
216
- users: Amity.User[];
233
+ users: Amity.InternalUser[];
217
234
  files: Amity.File<"image">[];
218
235
  messagePreviews: never[];
219
236
  };
220
237
  export declare const conversationChannelPayload: {
221
238
  channels: Amity.RawChannel<any>[];
222
239
  channelUsers: Amity.RawMembership<"channel">[];
223
- users: Amity.User[];
240
+ users: Amity.InternalUser[];
224
241
  files: Amity.File<"image">[];
225
242
  messagePreviews: never[];
226
243
  };
@@ -234,4 +251,8 @@ export declare const channelCreatedAt3: Amity.RawChannel<any>;
234
251
  export declare const channelLastActivity1: Amity.RawChannel<any>;
235
252
  export declare const channelLastActivity2: Amity.RawChannel<any>;
236
253
  export declare const channelLastActivity3: Amity.RawChannel<any>;
254
+ export declare const channelLastMessageAt1: Amity.RawChannel<any>;
255
+ export declare const channelLastMessageAt2: Amity.RawChannel<any>;
256
+ export declare const channelLastMessageAt3: Amity.RawChannel<any>;
257
+ export declare const channelLastMessageAtNull: Amity.RawChannel<any>;
237
258
  //# sourceMappingURL=channel.d.ts.map