@amityco/ts-sdk 7.29.0 → 7.29.1-0bbc9cd8.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 (148) hide show
  1. package/dist/@types/core/errors.d.ts +4 -1
  2. package/dist/@types/core/errors.d.ts.map +1 -1
  3. package/dist/@types/domains/channel.d.ts +13 -1
  4. package/dist/@types/domains/channel.d.ts.map +1 -1
  5. package/dist/@types/domains/content.d.ts +11 -0
  6. package/dist/@types/domains/content.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 +95 -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/commentRepository/api/flagComment.d.ts +72 -5
  29. package/dist/commentRepository/api/flagComment.d.ts.map +1 -1
  30. package/dist/commentRepository/internalApi/flagCommentWithOptions.d.ts +13 -0
  31. package/dist/commentRepository/internalApi/flagCommentWithOptions.d.ts.map +1 -0
  32. package/dist/commentRepository/internalApi/flagCommentWithReasonString.d.ts +17 -0
  33. package/dist/commentRepository/internalApi/flagCommentWithReasonString.d.ts.map +1 -0
  34. package/dist/commentRepository/internalApi/index.d.ts +2 -0
  35. package/dist/commentRepository/internalApi/index.d.ts.map +1 -1
  36. package/dist/commentRepository/internalApi/tests/integration/flagCommentWithOptions.integration.test.d.ts +2 -0
  37. package/dist/commentRepository/internalApi/tests/integration/flagCommentWithOptions.integration.test.d.ts.map +1 -0
  38. package/dist/commentRepository/internalApi/tests/integration/flagCommentWithReasonString.integration.test.d.ts +2 -0
  39. package/dist/commentRepository/internalApi/tests/integration/flagCommentWithReasonString.integration.test.d.ts.map +1 -0
  40. package/dist/communityRepository/communityMembership/events/onUserDeleted.d.ts.map +1 -1
  41. package/dist/communityRepository/utils/payload.d.ts.map +1 -1
  42. package/dist/core/microtasks.d.ts.map +1 -1
  43. package/dist/core/query/sorting.d.ts +10 -0
  44. package/dist/core/query/sorting.d.ts.map +1 -1
  45. package/dist/core/query/tests/sorting.test.d.ts +2 -0
  46. package/dist/core/query/tests/sorting.test.d.ts.map +1 -0
  47. package/dist/core/tests/microtasks.test.d.ts +2 -0
  48. package/dist/core/tests/microtasks.test.d.ts.map +1 -0
  49. package/dist/core/transports/tests/integration/serverErrorCodes.integration.test.d.ts +2 -0
  50. package/dist/core/transports/tests/integration/serverErrorCodes.integration.test.d.ts.map +1 -0
  51. package/dist/group/utils/withUser.d.ts +3 -3
  52. package/dist/group/utils/withUser.d.ts.map +1 -1
  53. package/dist/index.cjs.js +953 -148
  54. package/dist/index.esm.js +954 -150
  55. package/dist/index.umd.js +2 -2
  56. package/dist/messagePreview/utils/getChannelMessagePreviewWithUser.d.ts +1 -0
  57. package/dist/messagePreview/utils/getChannelMessagePreviewWithUser.d.ts.map +1 -1
  58. package/dist/messagePreview/utils/getSubChannelMessagePreviewWithUser.d.ts +1 -1
  59. package/dist/messagePreview/utils/getSubChannelMessagePreviewWithUser.d.ts.map +1 -1
  60. package/dist/messageRepository/api/createMessage.d.ts.map +1 -1
  61. package/dist/messageRepository/api/flagMessage.d.ts +73 -6
  62. package/dist/messageRepository/api/flagMessage.d.ts.map +1 -1
  63. package/dist/messageRepository/api/tests/integration/flagMessage.overloads.integration.test.d.ts +2 -0
  64. package/dist/messageRepository/api/tests/integration/flagMessage.overloads.integration.test.d.ts.map +1 -0
  65. package/dist/messageRepository/internalApi/flagMessageWithOptions.d.ts +13 -0
  66. package/dist/messageRepository/internalApi/flagMessageWithOptions.d.ts.map +1 -0
  67. package/dist/messageRepository/internalApi/flagMessageWithReasonString.d.ts +18 -0
  68. package/dist/messageRepository/internalApi/flagMessageWithReasonString.d.ts.map +1 -0
  69. package/dist/messageRepository/internalApi/tests/integration/flagMessageWithOptions.integration.test.d.ts +2 -0
  70. package/dist/messageRepository/internalApi/tests/integration/flagMessageWithOptions.integration.test.d.ts.map +1 -0
  71. package/dist/messageRepository/internalApi/tests/integration/flagMessageWithReasonString.integration.test.d.ts +2 -0
  72. package/dist/messageRepository/internalApi/tests/integration/flagMessageWithReasonString.integration.test.d.ts.map +1 -0
  73. package/dist/postRepository/api/flagPost.d.ts +73 -6
  74. package/dist/postRepository/api/flagPost.d.ts.map +1 -1
  75. package/dist/postRepository/api/tests/integration/flagPost.overloads.integration.test.d.ts +2 -0
  76. package/dist/postRepository/api/tests/integration/flagPost.overloads.integration.test.d.ts.map +1 -0
  77. package/dist/postRepository/api/tests/integration/setup.d.ts +3 -3
  78. package/dist/postRepository/internalApi/flagPostWithOptions.d.ts +13 -0
  79. package/dist/postRepository/internalApi/flagPostWithOptions.d.ts.map +1 -0
  80. package/dist/postRepository/internalApi/flagPostWithReasonString.d.ts +17 -0
  81. package/dist/postRepository/internalApi/flagPostWithReasonString.d.ts.map +1 -0
  82. package/dist/postRepository/internalApi/index.d.ts +2 -0
  83. package/dist/postRepository/internalApi/index.d.ts.map +1 -1
  84. package/dist/postRepository/internalApi/tests/integration/flagPostWithOptions.integration.test.d.ts +2 -0
  85. package/dist/postRepository/internalApi/tests/integration/flagPostWithOptions.integration.test.d.ts.map +1 -0
  86. package/dist/postRepository/internalApi/tests/integration/flagPostWithReasonString.integration.test.d.ts +2 -0
  87. package/dist/postRepository/internalApi/tests/integration/flagPostWithReasonString.integration.test.d.ts.map +1 -0
  88. package/dist/postRepository/utils/payload.d.ts.map +1 -1
  89. package/dist/report/api/isReportedByMe.d.ts.map +1 -1
  90. package/dist/userRepository/api/flagUser.d.ts +50 -9
  91. package/dist/userRepository/api/flagUser.d.ts.map +1 -1
  92. package/dist/userRepository/api/flagUserBehavior.d.ts +29 -0
  93. package/dist/userRepository/api/flagUserBehavior.d.ts.map +1 -0
  94. package/dist/userRepository/api/flagUserProfile.d.ts +29 -0
  95. package/dist/userRepository/api/flagUserProfile.d.ts.map +1 -0
  96. package/dist/userRepository/api/index.d.ts +2 -0
  97. package/dist/userRepository/api/index.d.ts.map +1 -1
  98. package/dist/userRepository/api/isUserFlaggedByMe.d.ts +26 -4
  99. package/dist/userRepository/api/isUserFlaggedByMe.d.ts.map +1 -1
  100. package/dist/userRepository/api/queryBlockedUsers.d.ts.map +1 -1
  101. package/dist/userRepository/api/tests/integration/flagUser.overloads.integration.test.d.ts +2 -0
  102. package/dist/userRepository/api/tests/integration/flagUser.overloads.integration.test.d.ts.map +1 -0
  103. package/dist/userRepository/api/tests/integration/flagUserBehavior.integration.test.d.ts +2 -0
  104. package/dist/userRepository/api/tests/integration/flagUserBehavior.integration.test.d.ts.map +1 -0
  105. package/dist/userRepository/api/tests/integration/flagUserProfile.integration.test.d.ts +2 -0
  106. package/dist/userRepository/api/tests/integration/flagUserProfile.integration.test.d.ts.map +1 -0
  107. package/dist/userRepository/api/unflagUser.d.ts +26 -4
  108. package/dist/userRepository/api/unflagUser.d.ts.map +1 -1
  109. package/dist/userRepository/api/updateUser.d.ts.map +1 -1
  110. package/dist/userRepository/internalApi/getFlagsByMe.d.ts +21 -0
  111. package/dist/userRepository/internalApi/getFlagsByMe.d.ts.map +1 -0
  112. package/dist/userRepository/observers/getBlockedUsers/BlockedUserLiveCollectionController.d.ts +2 -2
  113. package/dist/userRepository/observers/getBlockedUsers/BlockedUserLiveCollectionController.d.ts.map +1 -1
  114. package/dist/userRepository/observers/getBlockingUsers/LiveCollectionController.d.ts +1 -1
  115. package/dist/userRepository/observers/getBlockingUsers/LiveCollectionController.d.ts.map +1 -1
  116. package/dist/userRepository/observers/getUsers/UserLiveCollectionController.d.ts +2 -2
  117. package/dist/userRepository/observers/getUsers/UserLiveCollectionController.d.ts.map +1 -1
  118. package/dist/userRepository/observers/searchUserByDisplayName/SearchUserLiveCollectionController.d.ts +2 -2
  119. package/dist/userRepository/observers/searchUserByDisplayName/SearchUserLiveCollectionController.d.ts.map +1 -1
  120. package/dist/userRepository/observers/searchUserByDisplayName.d.ts +1 -1
  121. package/dist/userRepository/observers/searchUserByDisplayName.d.ts.map +1 -1
  122. package/dist/userRepository/observers/searchUsers.d.ts +1 -1
  123. package/dist/userRepository/observers/searchUsers.d.ts.map +1 -1
  124. package/dist/userRepository/utils/submitUserReport.d.ts +10 -0
  125. package/dist/userRepository/utils/submitUserReport.d.ts.map +1 -0
  126. package/dist/userRepository/utils/userReport.d.ts +50 -0
  127. package/dist/userRepository/utils/userReport.d.ts.map +1 -0
  128. package/dist/utils/bloomFilter.d.ts +9 -0
  129. package/dist/utils/bloomFilter.d.ts.map +1 -0
  130. package/dist/utils/contentFlag.d.ts +28 -0
  131. package/dist/utils/contentFlag.d.ts.map +1 -0
  132. package/dist/utils/linkedObject/tests/userLinkedObject.test.d.ts +2 -0
  133. package/dist/utils/linkedObject/tests/userLinkedObject.test.d.ts.map +1 -0
  134. package/dist/utils/linkedObject/userLinkedObject.d.ts.map +1 -1
  135. package/dist/utils/tests/bloomFilter.test.d.ts +2 -0
  136. package/dist/utils/tests/bloomFilter.test.d.ts.map +1 -0
  137. package/dist/utils/tests/client.d.ts +1 -1
  138. package/dist/utils/tests/client.d.ts.map +1 -1
  139. package/dist/utils/tests/dummy/channel.d.ts +31 -10
  140. package/dist/utils/tests/dummy/channel.d.ts.map +1 -1
  141. package/dist/utils/tests/dummy/comment.d.ts +1 -1
  142. package/dist/utils/tests/dummy/community.d.ts +2 -2
  143. package/dist/utils/tests/dummy/community.d.ts.map +1 -1
  144. package/dist/utils/tests/dummy/message.d.ts +1 -1
  145. package/dist/utils/tests/dummy/token.d.ts +1 -1
  146. package/dist/utils/tests/dummy/user.d.ts +10 -12
  147. package/dist/utils/tests/dummy/user.d.ts.map +1 -1
  148. package/package.json +1 -1
@@ -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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flagUser.overloads.integration.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flagUser.overloads.integration.test.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/api/tests/integration/flagUser.overloads.integration.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flagUserBehavior.integration.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flagUserBehavior.integration.test.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/api/tests/integration/flagUserBehavior.integration.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flagUserProfile.integration.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flagUserProfile.integration.test.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/api/tests/integration/flagUserProfile.integration.test.ts"],"names":[],"mappings":""}
@@ -1,14 +1,36 @@
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
+ * still holds any report on the user. Do not flip a local "flagged by me" flag to `false`
22
+ * after a per-type withdrawal; read the fresh user, or call `isUserFlaggedByMe` for the
23
+ * remaining per-type state (`flags`).
24
+ *
25
+ * Sends `DELETE /api/v4/me/flags/:userId`, with `?reportType=<type>` when one is given.
26
+ *
7
27
  * @param userId The ID of the user to unflag
8
- * @returns the deleted report result
28
+ * @param options Optional; `reportType` selects a single report to withdraw. For a report that `isUserFlaggedByMe` lists with `reportType: null`, pass `UserReportTypeFilterEnum.UNTYPED`
29
+ * @returns `true` once the server has processed the withdrawal
30
+ * @throws {ASCInvalidParameterError} `INVALID_PARAMETERS` when `reportType` is not a `UserReportTypeFilterEnum` value, before any request is made
9
31
  *
10
32
  * @category User API
11
33
  * @async
12
34
  * */
13
- export declare const unflagUser: (userId: Amity.User['userId']) => Promise<boolean>;
35
+ export declare const unflagUser: (userId: Amity.User['userId'], options?: Amity.UserReportTypeFilterOptions) => Promise<boolean>;
14
36
  //# 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":"AAUA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiCK;AACL,eAAO,MAAM,UAAU,WACb,MAAM,IAAI,CAAC,QAAQ,CAAC,YAClB,MAAM,2BAA2B,KAC1C,QAAQ,OAAO,CAoBjB,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,21 @@
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()` and the deprecated
8
+ * `UserRepository.isUserFlaggedByMe`: `GET /api/v4/users/:userId/isFlagByMe`, returned as
9
+ * received. Nothing is filtered, cached or persisted, and `hashFlag` is not consulted here.
10
+ * This is the Web counterpart of iOS `ASCUserService.getFlagsByMe` and Android
11
+ * `UserRepository.getFlagsByMe`, kept apart from the deprecated public function so the
12
+ * user-object read does not change if that function ever does.
13
+ *
14
+ * @param userId The ID of the user whose reports by the caller are read
15
+ * @returns the caller's {@link Amity.UserFlagByMe} on that user
16
+ *
17
+ * @category Private
18
+ * @async
19
+ */
20
+ export declare const getFlagsByMe: (userId: Amity.User['userId']) => Promise<Amity.UserFlagByMe>;
21
+ //# 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;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,YAAY,WAAkB,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAG,QAAQ,MAAM,YAAY,CAS3F,CAAC"}
@@ -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,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;AAc1F,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;IAUjB,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;AAa1F,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;IAUjB,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"}
@@ -0,0 +1,10 @@
1
+ import type { UserReportBody } from './userReport';
2
+ /**
3
+ * Sends a validated split user report (`flagUserProfile` / `flagUserBehavior`) to the
4
+ * same endpoint as `flagUser`, then persists the returned user and fires `user.flagged`
5
+ * exactly as `flagUser` does, so all three calls share return, cache and event behaviour.
6
+ *
7
+ * Not exported from the public API.
8
+ */
9
+ export declare const submitUserReport: (apiName: 'flagUserProfile' | 'flagUserBehavior', userId: Amity.User['userId'], body: UserReportBody) => Promise<Amity.User>;
10
+ //# sourceMappingURL=submitUserReport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"submitUserReport.d.ts","sourceRoot":"","sources":["../../../src/userRepository/utils/submitUserReport.ts"],"names":[],"mappings":"AAOA,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"}
@@ -0,0 +1,50 @@
1
+ import { UserProfileFieldEnum, UserReportTypeFilterEnum } from '~/@types';
2
+ /** Maximum `comment` length, in string length units, after trimming. */
3
+ export declare const USER_REPORT_COMMENT_MAX_LENGTH = 300;
4
+ /** Request body sent to `POST /api/v4/me/flags/:userId` by the split user-report calls. */
5
+ export declare type UserReportBody = {
6
+ reportType: `${UserProfileFieldEnum}` | 'behavior';
7
+ reason?: string;
8
+ comment?: string;
9
+ };
10
+ /**
11
+ * Normalizes an optional reporter `comment`: it must be a string when supplied (`null`
12
+ * is not a valid supplied comment); it is trimmed; a blank result is omitted (the
13
+ * backend rejects `""`); a result longer than 300 characters is rejected before any
14
+ * request. Otherwise the trimmed text is returned unchanged.
15
+ *
16
+ * @throws {ASCInvalidParameterError} `INVALID_PARAMETERS` for a non-string or over-length comment
17
+ */
18
+ export declare const normalizeUserReportComment: (apiName: string, comment: unknown) => string | undefined;
19
+ /**
20
+ * Validates `flagUserProfile` options and builds its request body. Untyped callers can
21
+ * pass anything at runtime, so nothing is trusted from the declared type. Any `reason`
22
+ * key is ignored and never sent.
23
+ *
24
+ * @throws {ASCInvalidParameterError} `INVALID_PARAMETERS` when the options are malformed
25
+ */
26
+ export declare const toUserProfileReportBody: (options: unknown) => UserReportBody;
27
+ /**
28
+ * Validates `flagUserBehavior` options and builds its request body. `reason` must be one
29
+ * of the nine `ContentFlagReasonEnum` values and is sent as that canonical label;
30
+ * `reportType` is always `behavior`.
31
+ *
32
+ * @throws {ASCInvalidParameterError} `INVALID_PARAMETERS` when the options are malformed
33
+ */
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;
50
+ //# sourceMappingURL=userReport.d.ts.map
@@ -0,0 +1 @@
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,9 @@
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` may be a false positive.
5
+ * A missing filter (`null`, the server's value when nobody has flagged the object), a missing
6
+ * value or a malformed filter all answer `false`.
7
+ */
8
+ export declare const testBloomFilter: (hashFlag: Amity.Flaggable['hashFlag'] | undefined, value: string | undefined) => boolean;
9
+ //# 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;AAkBF;;;;GAIG;AACH,eAAO,MAAM,eAAe,aAChB,MAAM,SAAS,CAAC,UAAU,CAAC,GAAG,SAAS,SAC1C,MAAM,GAAG,SAAS,KACxB,OAsBF,CAAC"}
@@ -0,0 +1,28 @@
1
+ /** Request body shared by the post, comment and message flag endpoints. */
2
+ export declare type ContentFlagBody = {
3
+ reason: string;
4
+ detail?: string;
5
+ };
6
+ /**
7
+ * True when a public `flagX(id, input)` argument is the legacy shape (a reason string
8
+ * or nothing). Anything else is routed to the `Amity.ContentFlagOptions` path, whose
9
+ * validation rejects malformed values before any request is made.
10
+ */
11
+ export declare const isLegacyContentFlagReason: (input: unknown) => input is Amity.ContentFlagReason | undefined;
12
+ /**
13
+ * Validates an `Amity.ContentFlagOptions` argument. Untyped (plain JS) callers can pass
14
+ * anything at runtime, so the checks do not trust the declared type: the value must be a
15
+ * plain object, `reason` must be one of the nine `ContentFlagReasonEnum` values and
16
+ * `detail`, when supplied, must be a string (`null` is not a valid supplied detail).
17
+ *
18
+ * @param apiName used in the error message, e.g. `flagPost`
19
+ * @throws {ASCInvalidParameterError} `INVALID_PARAMETERS` when the options are malformed
20
+ */
21
+ export declare const validateContentFlagOptions: (apiName: string, options: unknown) => Amity.ContentFlagOptions;
22
+ /**
23
+ * Builds the request body for validated options. `detail` is forwarded unchanged (empty
24
+ * and whitespace-only strings included) and omitted from the body when `undefined`; the
25
+ * backend enforces the 300-character limit.
26
+ */
27
+ export declare const toContentFlagBody: ({ reason, detail }: Amity.ContentFlagOptions) => ContentFlagBody;
28
+ //# sourceMappingURL=contentFlag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contentFlag.d.ts","sourceRoot":"","sources":["../../src/utils/contentFlag.ts"],"names":[],"mappings":"AAGA,2EAA2E;AAC3E,oBAAY,eAAe,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAIlE;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,UAC7B,OAAO,iDACmF,CAAC;AAEpG;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B,YAC5B,MAAM,WACN,OAAO,KACf,MAAM,kBAoBR,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,uBAAwB,MAAM,kBAAkB,KAAG,eACzB,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":"AA0DA,eAAO,MAAM,gBAAgB,SAAU,MAAM,YAAY,KAAG,MAAM,IAuBjE,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
@@ -1 +1 @@
1
- {"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/channel.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,qBAAqB,YAAa,MAAM,UAAU,KAAG,MAAM,eAGvE,CAAC;AAEF,eAAO,MAAM,wBAAwB,eACvB,MAAM,cAAc,KAC/B,MAAM,uBAKuC,CAAC;AAEjD,wBAAgB,kBAAkB,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,UAAU,CAmBvF;AAED,wBAAgB,sBAAsB,CACpC,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,GAC/C,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAkBhC;AAED,eAAO,MAAM,yBAAyB,WAC5B,MAAM,aAAa,CAAC,SAAS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AAO,MAAM,8BAA8B;;;;;;;;;;;;CAS1C,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;CASpC,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;CASzC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;IAAsD,CAAC;AAEpF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;CASzC,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;CASzC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,cAMrC,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,uBAKlC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;CAM9B,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;CAMtC,CAAC;AAEF,eAAO,MAAM,mBAAmB,uBAI9B,CAAC;AAEH,eAAO,MAAM,mBAAmB,uBAI9B,CAAC;AAEH,eAAO,MAAM,mBAAmB,uBAI9B,CAAC;AAEH,eAAO,MAAM,mBAAmB,uBAI9B,CAAC;AAEH,eAAO,MAAM,iBAAiB,uBAI5B,CAAC;AAEH,eAAO,MAAM,iBAAiB,uBAI5B,CAAC;AAEH,eAAO,MAAM,iBAAiB,uBAI5B,CAAC;AAEH,eAAO,MAAM,oBAAoB,uBAG/B,CAAC;AAEH,eAAO,MAAM,oBAAoB,uBAG/B,CAAC;AAEH,eAAO,MAAM,oBAAoB,uBAG/B,CAAC;AAEH,eAAO,MAAM,qBAAqB,uBAIhC,CAAC;AAEH,eAAO,MAAM,qBAAqB,uBAIhC,CAAC;AAEH,eAAO,MAAM,qBAAqB,uBAIhC,CAAC;AAGH,eAAO,MAAM,wBAAwB,uBAKnC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { createComment } from '~/commentRepository/api';
2
2
  export declare function generateInternalComment(params?: Partial<Amity.InternalComment>): Amity.InternalComment;
3
3
  export declare const generateComment: (params?: Partial<Amity.InternalComment>) => {
4
- creator: Amity.User;
4
+ creator: Amity.InternalUser;
5
5
  childrenComment: never[];
6
6
  target: {
7
7
  type: string;
@@ -29,7 +29,7 @@ export declare const communityUserQueryResponse: {
29
29
  };
30
30
  communities: Amity.Community[];
31
31
  communityUsers: Amity.RawMembership<"community">[];
32
- users: Amity.User[];
32
+ users: Amity.InternalUser[];
33
33
  files: never[];
34
34
  categories: never[];
35
35
  feeds: never[];
@@ -44,7 +44,7 @@ export declare const communityUserQueryResponsePage2: {
44
44
  };
45
45
  communities: Amity.Community[];
46
46
  communityUsers: Amity.RawMembership<"community">[];
47
- users: Amity.User[];
47
+ users: Amity.InternalUser[];
48
48
  files: never[];
49
49
  categories: never[];
50
50
  feeds: never[];
@@ -1 +1 @@
1
- {"version":3,"file":"community.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/community.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,SAajC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,SAoB/B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,SAI/B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAa5D,CAAC;AAEF,eAAO,MAAM,uBAAuB,+BAAuD,CAAC;AAE5F,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAO5D,CAAC;AAEF,eAAO,MAAM,uBAAuB,+BAAuD,CAAC;AAE5F,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAO5D,CAAC;AAEF,eAAO,MAAM,uBAAuB,+BAAuD,CAAC;AAE5F,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAM5D,CAAC;AAEF,eAAO,MAAM,qBAAqB,+BAAuD,CAAC;AAE1F,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,W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M,qBAAqB,+BAAuD,CAAC;AAE1F,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAK5D,CAAC;AAEF,eAAO,MAAM,mBAAmB,+BAAuD,CAAC;AAExF,eAAO,MAAM,qBAAqB;;;;;;;CAOjC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,gBAOpC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;CAUtC,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;CAU3C,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;GAG9B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;CAuBzB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;CAuBzB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;CAqBlC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;CAqBvC,CAAC"}
@@ -30,6 +30,6 @@ export declare const messageQueryResponse: {
30
30
  export declare const messagePayload: {
31
31
  messages: Amity.InternalMessage<any>[];
32
32
  files: Amity.File<"image">[];
33
- users: Amity.User[];
33
+ users: Amity.InternalUser[];
34
34
  };
35
35
  //# sourceMappingURL=message.d.ts.map
@@ -3,7 +3,7 @@ export declare const sessionResponse: {
3
3
  accessToken: string;
4
4
  issuedAt: Date;
5
5
  expiresAt: Date;
6
- users: Amity.User[];
6
+ users: Amity.InternalUser[];
7
7
  files: never[];
8
8
  };
9
9
  };