@amityco/ts-sdk 7.11.1-ea097a13.0 → 7.11.1-eae8a9d4.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 (195) hide show
  1. package/dist/@types/core/events.d.ts +9 -3
  2. package/dist/@types/core/events.d.ts.map +1 -1
  3. package/dist/@types/core/linkPreviewMetadata.d.ts +12 -0
  4. package/dist/@types/core/linkPreviewMetadata.d.ts.map +1 -0
  5. package/dist/@types/core/model.d.ts +4 -3
  6. package/dist/@types/core/model.d.ts.map +1 -1
  7. package/dist/@types/core/payload.d.ts +34 -4
  8. package/dist/@types/core/payload.d.ts.map +1 -1
  9. package/dist/@types/domains/client.d.ts +1 -0
  10. package/dist/@types/domains/client.d.ts.map +1 -1
  11. package/dist/@types/domains/community.d.ts +13 -3
  12. package/dist/@types/domains/community.d.ts.map +1 -1
  13. package/dist/@types/domains/event.d.ts +50 -9
  14. package/dist/@types/domains/event.d.ts.map +1 -1
  15. package/dist/@types/domains/notification.d.ts +11 -4
  16. package/dist/@types/domains/notification.d.ts.map +1 -1
  17. package/dist/@types/domains/post.d.ts +22 -0
  18. package/dist/@types/domains/post.d.ts.map +1 -1
  19. package/dist/@types/domains/room.d.ts +19 -3
  20. package/dist/@types/domains/room.d.ts.map +1 -1
  21. package/dist/client/api/fetchLinkPreview.d.ts +3 -0
  22. package/dist/client/api/fetchLinkPreview.d.ts.map +1 -1
  23. package/dist/client/api/getCurrentUser.d.ts +1 -1
  24. package/dist/client/api/getCurrentUser.d.ts.map +1 -1
  25. package/dist/client/api/getLinkPreviewMetadata.d.ts +14 -0
  26. package/dist/client/api/getLinkPreviewMetadata.d.ts.map +1 -0
  27. package/dist/client/api/getPresenceSetting.d.ts +2 -0
  28. package/dist/client/api/getPresenceSetting.d.ts.map +1 -0
  29. package/dist/client/api/index.d.ts +1 -0
  30. package/dist/client/api/index.d.ts.map +1 -1
  31. package/dist/client/api/resumeSession.d.ts.map +1 -1
  32. package/dist/client/events/onUserDeleted.d.ts +17 -0
  33. package/dist/client/events/onUserDeleted.d.ts.map +1 -0
  34. package/dist/client/services/ObjectResolver/objectResolverEngine.d.ts.map +1 -0
  35. package/dist/client/services/ObjectResolver/objectResolverEngineOnLoginHandler.d.ts.map +1 -0
  36. package/dist/client/services/ReadReceiptSync/legacyReadReceiptSyncEngine.d.ts.map +1 -0
  37. package/dist/client/services/ReadReceiptSync/legacyReadReceiptSyncEngineOnLoginHandler.d.ts.map +1 -0
  38. package/dist/client/services/ReadReceiptSync/readReceiptSyncEngine.d.ts.map +1 -0
  39. package/dist/client/services/ReadReceiptSync/readReceiptSyncEngineOnLoginHandler.d.ts.map +1 -0
  40. package/dist/client/utils/setBotClientToken.d.ts.map +1 -1
  41. package/dist/client/utils/setClientToken.d.ts.map +1 -1
  42. package/dist/client/utils/setCurrentUser.d.ts.map +1 -1
  43. package/dist/client/utils/setVisitorClientToken.d.ts.map +1 -1
  44. package/dist/core/events.d.ts +3 -3
  45. package/dist/core/events.d.ts.map +1 -1
  46. package/dist/core/model/idResolvers.d.ts.map +1 -1
  47. package/dist/core/model/index.d.ts.map +1 -1
  48. package/dist/eventRepository/events/enums.d.ts +3 -1
  49. package/dist/eventRepository/events/enums.d.ts.map +1 -1
  50. package/dist/eventRepository/events/index.d.ts +4 -0
  51. package/dist/eventRepository/events/index.d.ts.map +1 -1
  52. package/dist/eventRepository/events/onEventCreated.d.ts +1 -1
  53. package/dist/eventRepository/events/onLocalRSVPCreated.d.ts +17 -0
  54. package/dist/eventRepository/events/onLocalRSVPCreated.d.ts.map +1 -0
  55. package/dist/eventRepository/events/onLocalRSVPUpdated.d.ts +17 -0
  56. package/dist/eventRepository/events/onLocalRSVPUpdated.d.ts.map +1 -0
  57. package/dist/eventRepository/events/onRSVPCreated.d.ts +17 -0
  58. package/dist/eventRepository/events/onRSVPCreated.d.ts.map +1 -0
  59. package/dist/eventRepository/events/onRSVPUpdated.d.ts +17 -0
  60. package/dist/eventRepository/events/onRSVPUpdated.d.ts.map +1 -0
  61. package/dist/eventRepository/internalApi/createRSVP.d.ts +17 -0
  62. package/dist/eventRepository/internalApi/createRSVP.d.ts.map +1 -0
  63. package/dist/eventRepository/internalApi/getMyRSVP.d.ts +32 -0
  64. package/dist/eventRepository/internalApi/getMyRSVP.d.ts.map +1 -0
  65. package/dist/eventRepository/internalApi/index.d.ts +3 -0
  66. package/dist/eventRepository/internalApi/index.d.ts.map +1 -1
  67. package/dist/eventRepository/internalApi/updateRSVP.d.ts +17 -0
  68. package/dist/eventRepository/internalApi/updateRSVP.d.ts.map +1 -0
  69. package/dist/eventRepository/observers/getRSVPs/LiveCollectionController.d.ts +13 -0
  70. package/dist/eventRepository/observers/getRSVPs/LiveCollectionController.d.ts.map +1 -0
  71. package/dist/eventRepository/observers/getRSVPs/PaginationController.d.ts +5 -0
  72. package/dist/eventRepository/observers/getRSVPs/PaginationController.d.ts.map +1 -0
  73. package/dist/eventRepository/observers/getRSVPs/QueryStreamController.d.ts +15 -0
  74. package/dist/eventRepository/observers/getRSVPs/QueryStreamController.d.ts.map +1 -0
  75. package/dist/eventRepository/observers/getRSVPs.d.ts +12 -0
  76. package/dist/eventRepository/observers/getRSVPs.d.ts.map +1 -0
  77. package/dist/eventRepository/observers/index.d.ts +1 -0
  78. package/dist/eventRepository/observers/index.d.ts.map +1 -1
  79. package/dist/eventRepository/utils/createEventResponseSubscriber.d.ts +2 -0
  80. package/dist/eventRepository/utils/createEventResponseSubscriber.d.ts.map +1 -0
  81. package/dist/eventRepository/utils/index.d.ts +2 -0
  82. package/dist/eventRepository/utils/index.d.ts.map +1 -1
  83. package/dist/eventRepository/utils/prepareEventResponsePayload.d.ts +2 -0
  84. package/dist/eventRepository/utils/prepareEventResponsePayload.d.ts.map +1 -0
  85. package/dist/index.cjs.js +7503 -6378
  86. package/dist/index.d.ts +1 -0
  87. package/dist/index.d.ts.map +1 -1
  88. package/dist/index.esm.js +2749 -1625
  89. package/dist/index.umd.js +3 -3
  90. package/dist/invitationRepository/api/index.d.ts +0 -1
  91. package/dist/invitationRepository/api/index.d.ts.map +1 -1
  92. package/dist/invitationRepository/internalObservers/getInvitations/InvitationsLiveCollectionController.d.ts.map +1 -0
  93. package/dist/invitationRepository/internalObservers/getInvitations/InvitationsPaginationController.d.ts.map +1 -0
  94. package/dist/invitationRepository/internalObservers/getInvitations/InvitationsQueryStreamController.d.ts.map +1 -0
  95. package/dist/invitationRepository/internalObservers/getInvitations/enums.d.ts.map +1 -0
  96. package/dist/invitationRepository/internalObservers/getInvitations.d.ts +12 -0
  97. package/dist/invitationRepository/internalObservers/getInvitations.d.ts.map +1 -0
  98. package/dist/invitationRepository/observers/getInvitations.d.ts +28 -6
  99. package/dist/invitationRepository/observers/getInvitations.d.ts.map +1 -1
  100. package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsQueryStreamController.d.ts +1 -1
  101. package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsQueryStreamController.d.ts.map +1 -1
  102. package/dist/invitationRepository/observers/index.d.ts +1 -1
  103. package/dist/invitationRepository/observers/index.d.ts.map +1 -1
  104. package/dist/liveReactionRepository/internalApi/createLiveReaction.d.ts +2 -2
  105. package/dist/liveReactionRepository/internalApi/createLiveReaction.d.ts.map +1 -1
  106. package/dist/postRepository/api/createPost.d.ts +1 -0
  107. package/dist/postRepository/api/createPost.d.ts.map +1 -1
  108. package/dist/postRepository/api/editPost.d.ts +1 -0
  109. package/dist/postRepository/api/editPost.d.ts.map +1 -1
  110. package/dist/postRepository/observers/getCommunityLiveRoomPosts/CommunityLiveRoomPostLiveCollectionController.d.ts +14 -0
  111. package/dist/postRepository/observers/getCommunityLiveRoomPosts/CommunityLiveRoomPostLiveCollectionController.d.ts.map +1 -0
  112. package/dist/postRepository/observers/getCommunityLiveRoomPosts/CommunityLiveRoomPostPaginationController.d.ts +5 -0
  113. package/dist/postRepository/observers/getCommunityLiveRoomPosts/CommunityLiveRoomPostPaginationController.d.ts.map +1 -0
  114. package/dist/postRepository/observers/getCommunityLiveRoomPosts/CommunityLiveRoomPostQueryStreamController.d.ts +15 -0
  115. package/dist/postRepository/observers/getCommunityLiveRoomPosts/CommunityLiveRoomPostQueryStreamController.d.ts.map +1 -0
  116. package/dist/postRepository/observers/getCommunityLiveRoomPosts.d.ts +22 -0
  117. package/dist/postRepository/observers/getCommunityLiveRoomPosts.d.ts.map +1 -0
  118. package/dist/postRepository/observers/getLiveRoomPosts/LiveRoomPostLiveCollectionController.d.ts +14 -0
  119. package/dist/postRepository/observers/getLiveRoomPosts/LiveRoomPostLiveCollectionController.d.ts.map +1 -0
  120. package/dist/postRepository/observers/getLiveRoomPosts/LiveRoomPostPaginationController.d.ts +5 -0
  121. package/dist/postRepository/observers/getLiveRoomPosts/LiveRoomPostPaginationController.d.ts.map +1 -0
  122. package/dist/postRepository/observers/getLiveRoomPosts/LiveRoomPostQueryStreamController.d.ts +15 -0
  123. package/dist/postRepository/observers/getLiveRoomPosts/LiveRoomPostQueryStreamController.d.ts.map +1 -0
  124. package/dist/postRepository/observers/getLiveRoomPosts.d.ts +23 -0
  125. package/dist/postRepository/observers/getLiveRoomPosts.d.ts.map +1 -0
  126. package/dist/postRepository/observers/index.d.ts +2 -0
  127. package/dist/postRepository/observers/index.d.ts.map +1 -1
  128. package/dist/postRepository/observers/utils.d.ts +1 -0
  129. package/dist/postRepository/observers/utils.d.ts.map +1 -1
  130. package/dist/roomPresenceRepository/api/getRoomOnlineUsers.d.ts +18 -0
  131. package/dist/roomPresenceRepository/api/getRoomOnlineUsers.d.ts.map +1 -0
  132. package/dist/roomPresenceRepository/api/getRoomUserCount.d.ts +17 -0
  133. package/dist/roomPresenceRepository/api/getRoomUserCount.d.ts.map +1 -0
  134. package/dist/roomPresenceRepository/api/index.d.ts +5 -0
  135. package/dist/roomPresenceRepository/api/index.d.ts.map +1 -0
  136. package/dist/roomPresenceRepository/api/startHeartbeat.d.ts +15 -0
  137. package/dist/roomPresenceRepository/api/startHeartbeat.d.ts.map +1 -0
  138. package/dist/roomPresenceRepository/api/stopHeartbeat.d.ts +15 -0
  139. package/dist/roomPresenceRepository/api/stopHeartbeat.d.ts.map +1 -0
  140. package/dist/roomPresenceRepository/index.d.ts +2 -0
  141. package/dist/roomPresenceRepository/index.d.ts.map +1 -0
  142. package/dist/roomPresenceRepository/services/RoomPresenceSyncEngine/RoomPresenceSyncEngine.d.ts +38 -0
  143. package/dist/roomPresenceRepository/services/RoomPresenceSyncEngine/RoomPresenceSyncEngine.d.ts.map +1 -0
  144. package/dist/roomPresenceRepository/services/RoomPresenceSyncEngine/index.d.ts +2 -0
  145. package/dist/roomPresenceRepository/services/RoomPresenceSyncEngine/index.d.ts.map +1 -0
  146. package/dist/roomPresenceRepository/services/RoomPresenceSyncEngine/roomPresenceSyncEngineFactory.d.ts +32 -0
  147. package/dist/roomPresenceRepository/services/RoomPresenceSyncEngine/roomPresenceSyncEngineFactory.d.ts.map +1 -0
  148. package/dist/roomPresenceRepository/services/index.d.ts +2 -0
  149. package/dist/roomPresenceRepository/services/index.d.ts.map +1 -0
  150. package/dist/roomRepository/api/removeParticipant.d.ts.map +1 -1
  151. package/dist/roomRepository/events/index.d.ts +1 -0
  152. package/dist/roomRepository/events/index.d.ts.map +1 -1
  153. package/dist/roomRepository/events/onRoomCoHostInviteAccepted.d.ts +1 -1
  154. package/dist/roomRepository/events/onRoomCoHostInviteAccepted.d.ts.map +1 -1
  155. package/dist/roomRepository/events/onRoomParticipantRemovedLocal.d.ts +17 -0
  156. package/dist/roomRepository/events/onRoomParticipantRemovedLocal.d.ts.map +1 -0
  157. package/dist/roomRepository/events/onRoomTerminated.d.ts +17 -0
  158. package/dist/roomRepository/events/onRoomTerminated.d.ts.map +1 -0
  159. package/dist/roomRepository/observers/getRoom.d.ts.map +1 -1
  160. package/dist/utils/linkedObject/communityLinkedObject.d.ts.map +1 -1
  161. package/dist/utils/linkedObject/eventLinkObject.d.ts.map +1 -1
  162. package/dist/utils/linkedObject/eventResponseLinkObject.d.ts +2 -0
  163. package/dist/utils/linkedObject/eventResponseLinkObject.d.ts.map +1 -0
  164. package/dist/utils/linkedObject/index.d.ts +1 -0
  165. package/dist/utils/linkedObject/index.d.ts.map +1 -1
  166. package/dist/utils/linkedObject/notificationTrayLinkedObject.d.ts.map +1 -1
  167. package/dist/utils/linkedObject/postLinkedObject.d.ts.map +1 -1
  168. package/dist/utils/linkedObject/roomLinkedObject.d.ts.map +1 -1
  169. package/package.json +1 -1
  170. package/dist/client/utils/ObjectResolver/objectResolverEngine.d.ts.map +0 -1
  171. package/dist/client/utils/ObjectResolver/objectResolverEngineOnLoginHandler.d.ts.map +0 -1
  172. package/dist/client/utils/ReadReceiptSync/legacyReadReceiptSyncEngine.d.ts.map +0 -1
  173. package/dist/client/utils/ReadReceiptSync/legacyReadReceiptSyncEngineOnLoginHandler.d.ts.map +0 -1
  174. package/dist/client/utils/ReadReceiptSync/readReceiptSyncEngine.d.ts.map +0 -1
  175. package/dist/client/utils/ReadReceiptSync/readReceiptSyncEngineOnLoginHandler.d.ts.map +0 -1
  176. package/dist/invitationRepository/api/acceptInvitation.d.ts +0 -16
  177. package/dist/invitationRepository/api/acceptInvitation.d.ts.map +0 -1
  178. package/dist/invitationRepository/api/getMyInvitation.d.ts +0 -16
  179. package/dist/invitationRepository/api/getMyInvitation.d.ts.map +0 -1
  180. package/dist/invitationRepository/observers/getInvitations/InvitationsLiveCollectionController.d.ts.map +0 -1
  181. package/dist/invitationRepository/observers/getInvitations/InvitationsPaginationController.d.ts.map +0 -1
  182. package/dist/invitationRepository/observers/getInvitations/InvitationsQueryStreamController.d.ts.map +0 -1
  183. package/dist/invitationRepository/observers/getInvitations/enums.d.ts.map +0 -1
  184. package/dist/invitationRepository/observers/observeInvitations.d.ts +0 -34
  185. package/dist/invitationRepository/observers/observeInvitations.d.ts.map +0 -1
  186. /package/dist/client/{utils → services}/ObjectResolver/objectResolverEngine.d.ts +0 -0
  187. /package/dist/client/{utils → services}/ObjectResolver/objectResolverEngineOnLoginHandler.d.ts +0 -0
  188. /package/dist/client/{utils → services}/ReadReceiptSync/legacyReadReceiptSyncEngine.d.ts +0 -0
  189. /package/dist/client/{utils → services}/ReadReceiptSync/legacyReadReceiptSyncEngineOnLoginHandler.d.ts +0 -0
  190. /package/dist/client/{utils → services}/ReadReceiptSync/readReceiptSyncEngine.d.ts +0 -0
  191. /package/dist/client/{utils → services}/ReadReceiptSync/readReceiptSyncEngineOnLoginHandler.d.ts +0 -0
  192. /package/dist/invitationRepository/{observers → internalObservers}/getInvitations/InvitationsLiveCollectionController.d.ts +0 -0
  193. /package/dist/invitationRepository/{observers → internalObservers}/getInvitations/InvitationsPaginationController.d.ts +0 -0
  194. /package/dist/invitationRepository/{observers → internalObservers}/getInvitations/InvitationsQueryStreamController.d.ts +0 -0
  195. /package/dist/invitationRepository/{observers → internalObservers}/getInvitations/enums.d.ts +0 -0
@@ -57,6 +57,8 @@ declare global {
57
57
  myReactions?: string[];
58
58
  hashtags?: string[];
59
59
  structureType: Amity.PostStructureType;
60
+ eventId?: string;
61
+ links?: Amity.Link[];
60
62
  } & Amity.Content<T> & Amity.Mentionable<'user'>;
61
63
  type InternalPost<T extends PostContentType = any> = RawPost<T> & {
62
64
  feedType?: 'reviewing' | 'published';
@@ -68,6 +70,7 @@ declare global {
68
70
  analytics: {
69
71
  markAsViewed: () => void;
70
72
  };
73
+ targetCommunity?: Amity.Community;
71
74
  getImageInfo: () => Amity.File<'image'> | undefined;
72
75
  getVideoInfo: () => Amity.File<'video'> | undefined;
73
76
  getVideoThumbnailInfo: () => Amity.File<'image'> | undefined;
@@ -122,6 +125,25 @@ declare global {
122
125
  type SemanticSearchPostLiveCollection = Amity.LiveCollectionParams<Omit<QuerySemanticSearchPosts, 'page'>>;
123
126
  type SemanticSearchPostLiveCollectionCache = Amity.LiveCollectionCache<Amity.InternalPost['postId'], // postId:score
124
127
  QuerySemanticSearchPosts>;
128
+ type QueryLiveRoomPosts = {
129
+ limit?: number;
130
+ };
131
+ type LiveRoomPostLiveCollection = Amity.LiveCollectionParams<QueryLiveRoomPosts>;
132
+ type LiveRoomPostLiveCollectionCache = Amity.LiveCollectionCache<Amity.InternalPost['postId'], Pick<QueryLiveRoomPosts, 'limit'>>;
133
+ type QueryCommunityLiveRoomPosts = {
134
+ communityIds: string[];
135
+ };
136
+ type CommunityLiveRoomPostLiveCollection = Amity.LiveCollectionParams<QueryCommunityLiveRoomPosts>;
137
+ type CommunityLiveRoomPostLiveCollectionCache = Amity.LiveCollectionCache<Amity.InternalPost['postId'], QueryCommunityLiveRoomPosts>;
138
+ type Link = {
139
+ index?: number;
140
+ length?: number;
141
+ url: string;
142
+ renderPreview: boolean;
143
+ domain?: string;
144
+ title?: string;
145
+ imageUrl?: string;
146
+ };
125
147
  }
126
148
  }
127
149
  //# sourceMappingURL=post.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/post.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;;;EAU1B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;EAO5B,CAAC;AAEH,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QAEd,KAAK,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,SAAS,GAAG,KAAK,CAAC;QAEnE,KAAK,eAAe,GAAG,OAAO,CAAC,OAAO,eAAe,CAAC,GAAG,MAAM,CAAC;QAEhE,KAAK,yBAAyB,GAAG,OAAO,CACtC,OAAO,CAAC,OAAO,eAAe,CAAC,EAC/B,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,MAAM,CACxC,CAAC;QAEF,KAAK,cAAc,GACf,SAAS,GACT,UAAU,GACV,UAAU,GACV,UAAU,GACV,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,aAAa,GACb,iBAAiB,GACjB,mBAAmB,CAAC;QAExB,KAAK,iBAAiB,GAAG,OAAO,CAAC,OAAO,iBAAiB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EAAE,MAAM,CAAC;YACZ,aAAa,EAAE,OAAO,CAAC;YACvB,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,QAAQ,CAAC,EAAE,MAAM,CAAC;SACnB,CAAC;KACH;CACF"}
@@ -5,11 +5,16 @@ declare global {
5
5
  type RoomTargetType = 'community' | 'user';
6
6
  type RoomTargetVisibility = 'public' | 'private';
7
7
  type RoomReferenceType = 'post' | 'event';
8
- type RoomStatus = 'idle' | 'live' | 'waiting_reconnect' | 'ended' | 'recorded';
8
+ type RoomStatus = 'idle' | 'live' | 'waitingReconnect' | 'ended' | 'recorded';
9
9
  type RawRoomParticipant = {
10
10
  type: 'host' | 'coHost';
11
11
  userId: string;
12
12
  };
13
+ type RoomModeration = {
14
+ flagLabels: Amity.StreamModerationLabel[];
15
+ terminateLabels: Amity.StreamModerationLabel[];
16
+ updatedAt: Amity.timestamp;
17
+ };
13
18
  type RawRoom = {
14
19
  _id: string;
15
20
  roomId: string;
@@ -33,7 +38,8 @@ declare global {
33
38
  thumbnailUrl: string;
34
39
  }[];
35
40
  durationSeconds?: number;
36
- moderation?: Record<string, any>;
41
+ moderationId?: string;
42
+ moderation?: RoomModeration;
37
43
  parentRoomId?: string;
38
44
  childRoomIds?: string[];
39
45
  createdAt: string;
@@ -54,7 +60,6 @@ declare global {
54
60
  };
55
61
  type RoomLinkedObject = {
56
62
  participants: RoomParticipant[];
57
- moderation?: Amity.StreamModeration;
58
63
  post?: Amity.InternalPost;
59
64
  childRooms: Amity.Room[];
60
65
  getLiveChat: () => Promise<Amity.Channel<'live'> | undefined>;
@@ -79,6 +84,17 @@ declare global {
79
84
  coHostUrl?: string;
80
85
  directStreamUrl?: string;
81
86
  };
87
+ type RoomWatchingCount = {
88
+ count: number;
89
+ referenceTimestamp?: Amity.Timestamps;
90
+ };
91
+ type RawRoomViewer = {
92
+ userId: string;
93
+ joinedAt: Amity.Timestamps;
94
+ };
95
+ type RoomWatchingUser = RawRoomViewer & {
96
+ user?: Amity.User;
97
+ };
82
98
  }
83
99
  }
84
100
  //# sourceMappingURL=room.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"room.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/room.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,QAAQ,GAAG,iBAAiB,GAAG,SAAS,CAAC;QAE9C,KAAK,cAAc,GAAG,WAAW,GAAG,MAAM,CAAC;QAE3C,KAAK,oBAAoB,GAAG,QAAQ,GAAG,SAAS,CAAC;QAEjD,KAAK,iBAAiB,GAAG,MAAM,GAAG,OAAO,CAAC;QAE1C,KAAK,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,mBAAmB,GAAG,OAAO,GAAG,UAAU,CAAC;QAE/E,KAAK,kBAAkB,GAAG;YACxB,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAC;YACxB,MAAM,EAAE,MAAM,CAAC;SAChB,CAAC;QAEF,KAAK,OAAO,GAAG;YACb,GAAG,EAAE,MAAM,CAAC;YACZ,MAAM,EAAE,MAAM,CAAC;YACf,IAAI,EAAE,QAAQ,CAAC;YAGf,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,UAAU,CAAC,EAAE,cAAc,CAAC;YAC5B,gBAAgB,CAAC,EAAE,oBAAoB,CAAC;YAExC,aAAa,CAAC,EAAE,iBAAiB,CAAC;YAClC,WAAW,CAAC,EAAE,MAAM,CAAC;YAGrB,aAAa,CAAC,EAAE,MAAM,CAAC;YACvB,eAAe,EAAE,OAAO,CAAC;YAGzB,KAAK,EAAE,MAAM,CAAC;YACd,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,eAAe,CAAC,EAAE,MAAM,CAAC;YAGzB,MAAM,EAAE,UAAU,CAAC;YAGnB,YAAY,EAAE,kBAAkB,EAAE,CAAC;YAEnC,eAAe,CAAC,EAAE,MAAM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C,YAAY,CAAC;YACxB,eAAe,EAAE,MAAM,OAAO,CAAC,KAAK,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;SAC9D,CAAC;QAEF,KAAK,IAAI,GAAG,IAAI,CAAC,YAAY,EAAE,cAAc,CAAC,GAAG,gBAAgB,CAAC;QAElE,KAAK,kBAAkB,GAAG;YACxB,IAAI,CAAC,EAAE,QAAQ,CAAC;YAChB,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC;YACxB,MAAM,CAAC,EAAE,cAAc,GAAG,aAAa,CAAC;YACxC,KAAK,CAAC,EAAE,MAAM,CAAC;YAEf,cAAc,CAAC,EAAE,OAAO,CAAC;SAC1B,CAAC;QAEF,KAAK,uBAAuB,GAAG;YAC7B,IAAI,EAAE,MAAM,EAAE,CAAC;YACf,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;SAC7B,CAAC;QAEF,KAAK,eAAe,GAAG;YACrB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,eAAe,CAAC,EAAE,MAAM,CAAC;SAC1B,CAAC;QAEF,KAAK,iBAAiB,GAAG;YACvB,KAAK,EAAE,MAAM,CAAC;YACd,kBAAkB,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC;SACvC,CAAC;QAEF,KAAK,aAAa,GAAG;YACnB,MAAM,EAAE,MAAM,CAAC;YACf,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC;SAC5B,CAAC;QAEF,KAAK,gBAAgB,GAAG,aAAa,GAAG;YAAE,IAAI,CAAC,EAAE,KAAK,CAAC,IAAI,CAAA;SAAE,CAAC;KAC/D;CACF"}
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated This function will to be deprecated and use the new getLinkPreviewMetadata
3
+ */
1
4
  /**
2
5
  * ```js
3
6
  * import { fetchLinkPreview } from '@amityco/ts-sdk'
@@ -1 +1 @@
1
- {"version":3,"file":"fetchLinkPreview.d.ts","sourceRoot":"","sources":["../../../src/client/api/fetchLinkPreview.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;KAWK;AAEL,eAAO,MAAM,gBAAgB,QAAe,MAAM,KAAG,QAAQ,MAAM,WAAW,CAc7E,CAAC"}
1
+ {"version":3,"file":"fetchLinkPreview.d.ts","sourceRoot":"","sources":["../../../src/client/api/fetchLinkPreview.ts"],"names":[],"mappings":"AAEA;;GAEG;AAEH;;;;;;;;;;;KAWK;AAEL,eAAO,MAAM,gBAAgB,QAAe,MAAM,KAAG,QAAQ,MAAM,WAAW,CAc7E,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const getCurrentUser: () => Amity.User;
1
+ export declare const getCurrentUser: () => Amity.User | null;
2
2
  //# sourceMappingURL=getCurrentUser.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getCurrentUser.d.ts","sourceRoot":"","sources":["../../../src/client/api/getCurrentUser.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc,QAAO,MAAM,IAsBvC,CAAC"}
1
+ {"version":3,"file":"getCurrentUser.d.ts","sourceRoot":"","sources":["../../../src/client/api/getCurrentUser.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,cAAc,QAAO,MAAM,IAAI,GAAG,IAc9C,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * ```js
3
+ * import { getLinkPreviewMetadata } from '@amityco/ts-sdk'
4
+ * const { title, description, imageUrl } = getLinkPreviewMetadata('https://www.example.com/')
5
+ * ```
6
+ *
7
+ *
8
+ * @param url the url to fetch link preview
9
+ * @returns A {@link Amity.LinkPreviewMetadata} instance
10
+ *
11
+ * @category Client API
12
+ * */
13
+ export declare const getLinkPreviewMetadata: (url: string) => Promise<Amity.LinkPreviewMetadata>;
14
+ //# sourceMappingURL=getLinkPreviewMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getLinkPreviewMetadata.d.ts","sourceRoot":"","sources":["../../../src/client/api/getLinkPreviewMetadata.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;KAWK;AAEL,eAAO,MAAM,sBAAsB,QAAe,MAAM,KAAG,QAAQ,MAAM,mBAAmB,CAc3F,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const getPresenceSetting: () => Promise<Amity.PresenceSettingPayload>;
2
+ //# sourceMappingURL=getPresenceSetting.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPresenceSetting.d.ts","sourceRoot":"","sources":["../../../src/client/api/getPresenceSetting.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,QAAa,QAAQ,MAAM,sBAAsB,CAS/E,CAAC"}
@@ -12,6 +12,7 @@ export * from './markerSync';
12
12
  export * from './enableUnreadCount';
13
13
  export * from './setUploadedFileAccessType';
14
14
  export * from './fetchLinkPreview';
15
+ export * from './getLinkPreviewMetadata';
15
16
  export * from './getSocialSettings';
16
17
  export * from './getShareableLinkConfiguration';
17
18
  export * from './loginAsVisitor';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,cAAc,cAAc,CAAC;AAE7B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,eAAe,CAAC;AAE9B,cAAc,mBAAmB,CAAC;AAElC,cAAc,WAAW,CAAC;AAE1B,cAAc,cAAc,CAAC;AAE7B,cAAc,qBAAqB,CAAC;AAEpC,cAAc,6BAA6B,CAAC;AAE5C,cAAc,oBAAoB,CAAC;AAEnC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,iCAAiC,CAAC;AAEhD,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAE7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,cAAc,cAAc,CAAC;AAE7B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,eAAe,CAAC;AAE9B,cAAc,mBAAmB,CAAC;AAElC,cAAc,WAAW,CAAC;AAE1B,cAAc,cAAc,CAAC;AAE7B,cAAc,qBAAqB,CAAC;AAEpC,cAAc,6BAA6B,CAAC;AAE5C,cAAc,oBAAoB,CAAC;AAEnC,cAAc,0BAA0B,CAAC;AAEzC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,iCAAiC,CAAC;AAEhD,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAE7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"resumeSession.d.ts","sourceRoot":"","sources":["../../../src/client/api/resumeSession.ts"],"names":[],"mappings":"AA0CA,UAAU,MAAM;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE;QACL,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AA4DD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,aAAa,WAChB,MAAM,kBACE,MAAM,cAAc,WAC3B,MAAM,mBAAmB,KACjC,QAAQ,OAAO,CAsIjB,CAAC"}
1
+ {"version":3,"file":"resumeSession.d.ts","sourceRoot":"","sources":["../../../src/client/api/resumeSession.ts"],"names":[],"mappings":"AAyCA,UAAU,MAAM;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE;QACL,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AA4DD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,aAAa,WAChB,MAAM,kBACE,MAAM,cAAc,WAC3B,MAAM,mBAAmB,KACjC,QAAQ,OAAO,CAsIjB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ```js
3
+ * import { onUserDeleted } from '@amityco/ts-sdk'
4
+ * const dispose = onUserDeleted(() => {
5
+ * // ...
6
+ * })
7
+ * ```
8
+ *
9
+ * Fired when any {@link Amity.Client} have been banned from the platform
10
+ *
11
+ * @param callback The function to call when the event was fired
12
+ * @returns an {@link Amity.Unsubscriber} function to stop listening
13
+ *
14
+ * @category Client Events
15
+ */
16
+ export declare const onUserDeleted: (callback: Amity.Listener<Amity.UserPayload>) => Amity.Unsubscriber;
17
+ //# sourceMappingURL=onUserDeleted.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onUserDeleted.d.ts","sourceRoot":"","sources":["../../../src/client/events/onUserDeleted.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,aAAc,MAAM,QAAQ,CAAC,MAAM,WAAW,CAAC,KAAG,MAAM,YAUjF,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"objectResolverEngine.d.ts","sourceRoot":"","sources":["../../../../src/client/services/ObjectResolver/objectResolverEngine.ts"],"names":[],"mappings":"AAOA,cAAM,oBAAoB;IACxB,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAU;IAE5C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAO;IAEvC,OAAO,CAAC,MAAM,CAGZ;IAEF,OAAO,CAAC,KAAK,CAA2B;IAExC,OAAO,CAAC,eAAe,CAAS;IAEhC,OAAO,CAAC,kBAAkB,CAAsB;IAEhD,OAAO,CAAC,WAAW,CAAQ;;IAM3B,aAAa;IAQb,YAAY;IAOZ,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,CAAC,aAAa;IAYtD,OAAO,CAAC,qBAAqB;IAe7B,OAAO,CAAC,wBAAwB;IAIhC,OAAO,CAAC,cAAc;IAyBtB,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,SAAS;IAKjB,oBAAoB;IAKpB,kBAAkB;IAclB,cAAc;CAGf;;;;AAID,wBAKE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"objectResolverEngineOnLoginHandler.d.ts","sourceRoot":"","sources":["../../../../src/client/services/ObjectResolver/objectResolverEngineOnLoginHandler.ts"],"names":[],"mappings":";AAGA,wBAiBE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacyReadReceiptSyncEngine.d.ts","sourceRoot":"","sources":["../../../../src/client/services/ReadReceiptSync/legacyReadReceiptSyncEngine.ts"],"names":[],"mappings":"AAMA,qBAAa,kCAAkC;IAC7C,OAAO,CAAC,MAAM,CAAe;IAE7B,OAAO,CAAC,QAAQ,CAAQ;IAExB,OAAO,CAAC,SAAS,CAAK;IAEtB,OAAO,CAAC,cAAc,CAAO;IAE7B,OAAO,CAAC,QAAQ,CAAwC;IAExD,OAAO,CAAC,KAAK,CAA2B;IAGxC,OAAO,CAAC,qBAAqB,CAAK;;IASlC,oBAAoB;IAQpB,gBAAgB,IAAI,IAAI;IASxB,OAAO,CAAC,aAAa;IAcrB,OAAO,CAAC,cAAc;YA2BR,WAAW;IA8BzB,OAAO,CAAC,kBAAkB;IAU1B,OAAO,CAAC,8BAA8B;IAOtC,OAAO,CAAC,6BAA6B;IAgBrC,oBAAoB,IAAI,IAAI;IAI5B,kBAAkB,IAAI,IAAI;IAK1B,cAAc,IAAI,IAAI;IAKtB,gBAAgB,IAAI,IAAI;IAKxB,eAAe,IAAI,IAAI;IAKvB,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;IAoBrD,OAAO,CAAC,kBAAkB;IAsC1B,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,UAAU;IAUlB,OAAO,CAAC,kBAAkB;CAM3B;;;;AAID,wBAME"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacyReadReceiptSyncEngineOnLoginHandler.d.ts","sourceRoot":"","sources":["../../../../src/client/services/ReadReceiptSync/legacyReadReceiptSyncEngineOnLoginHandler.ts"],"names":[],"mappings":";AAGA,wBAiBE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readReceiptSyncEngine.d.ts","sourceRoot":"","sources":["../../../../src/client/services/ReadReceiptSync/readReceiptSyncEngine.ts"],"names":[],"mappings":"AAKA,qBAAa,4BAA4B;IACvC,OAAO,CAAC,MAAM,CAAe;IAE7B,OAAO,CAAC,QAAQ,CAAQ;IAExB,OAAO,CAAC,SAAS,CAAK;IAEtB,OAAO,CAAC,cAAc,CAAO;IAE7B,OAAO,CAAC,QAAQ,CAAkC;IAElD,OAAO,CAAC,KAAK,CAA2B;IAGxC,OAAO,CAAC,qBAAqB,CAAK;;IASlC,oBAAoB;IAQpB,gBAAgB,IAAI,IAAI;IASxB,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,eAAe;YAaT,WAAW;IAuCzB,OAAO,CAAC,8BAA8B;IAOtC,OAAO,CAAC,6BAA6B;IAerC,oBAAoB,IAAI,IAAI;IAI5B,kBAAkB,IAAI,IAAI;IAK1B,cAAc,IAAI,IAAI;IAKtB,gBAAgB,IAAI,IAAI;IAKxB,eAAe,IAAI,IAAI;IAKvB,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI;IAqBlD,OAAO,CAAC,kBAAkB;IAmC1B,OAAO,CAAC,UAAU;IAMlB,OAAO,CAAC,UAAU;CASnB;;;;AAID,wBAME"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readReceiptSyncEngineOnLoginHandler.d.ts","sourceRoot":"","sources":["../../../../src/client/services/ReadReceiptSync/readReceiptSyncEngineOnLoginHandler.ts"],"names":[],"mappings":";AAGA,wBAiBE"}
@@ -1 +1 @@
1
- {"version":3,"file":"setBotClientToken.d.ts","sourceRoot":"","sources":["../../../src/client/utils/setBotClientToken.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,WAAkB,WAAW,kBAAkB,CAAC,CAAC,CAAC,CAAC;;;;EAqBhF,CAAC"}
1
+ {"version":3,"file":"setBotClientToken.d.ts","sourceRoot":"","sources":["../../../src/client/utils/setBotClientToken.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAIjD;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,WAAkB,WAAW,kBAAkB,CAAC,CAAC,CAAC,CAAC;;;;EA4BhF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"setClientToken.d.ts","sourceRoot":"","sources":["../../../src/client/utils/setClientToken.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,WAAkB,WAAW,eAAe,CAAC,CAAC,CAAC,CAAC;;;;EA6B1E,CAAC"}
1
+ {"version":3,"file":"setClientToken.d.ts","sourceRoot":"","sources":["../../../src/client/utils/setClientToken.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAI3C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,WAAkB,WAAW,eAAe,CAAC,CAAC,CAAC,CAAC;;;;EAoC1E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"setCurrentUser.d.ts","sourceRoot":"","sources":["../../../src/client/utils/setCurrentUser.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc;UAInB,MAAM,OAAO;cACT,MAAM,QAAQ;UAKzB,CAAC"}
1
+ {"version":3,"file":"setCurrentUser.d.ts","sourceRoot":"","sources":["../../../src/client/utils/setCurrentUser.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc;UAInB,MAAM,OAAO;cACT,MAAM,QAAQ;UAIzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"setVisitorClientToken.d.ts","sourceRoot":"","sources":["../../../src/client/utils/setVisitorClientToken.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,qBAAqB,WAAkB,WAAW,sBAAsB,CAAC,CAAC,CAAC,CAAC;;;;EAqBxF,CAAC"}
1
+ {"version":3,"file":"setVisitorClientToken.d.ts","sourceRoot":"","sources":["../../../src/client/utils/setVisitorClientToken.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAIzD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,qBAAqB,WAAkB,WAAW,sBAAsB,CAAC,CAAC,CAAC,CAAC;;;;EA8BxF,CAAC"}
@@ -13,12 +13,12 @@ export declare const proxyMqttEvents: (mqttClient: Amity.Client['mqtt'], emitter
13
13
  * @category Transport
14
14
  * @hidden
15
15
  */
16
- export declare const createEventSubscriber: <T extends "message" | "error" | "disconnected" | "connect_error" | "reconnect_error" | "reconnect_failed" | "connect" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "video-streaming.viewerDidBan" | "video-streaming.viewerDidUnban" | "user.didGlobalBan" | "liveReaction.created" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.setMutedUsers" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "room.startBroadcasting" | "room.waitingReconnect" | "room.endBroadcasting" | "room.recordedAvailable" | "room.participantInviting" | "room.participantJoined" | "room.participantLeft" | "room.didCohostInvite" | "room.didCoHostInviteAccept" | "room.didCoHostInviteReject" | "room.didCoHostInviteCancel" | "event.created" | "event.updated" | "event.deleted" | "event.started" | "event.ended" | "event.cancelled" | "event.rsvp.changed" | "event.reminder" | "event.invitation" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.notificationTraySeen.updated" | "local.notificationTrayItem.updated" | "local.invitation.created" | "local.invitation.updated" | "local.invitation.canceled" | "v4.local.community.joined" | "local.joinRequest.created" | "local.joinRequest.updated" | "local.joinRequest.deleted" | "local.liveReaction.created" | "local.room.created" | "local.room.updated" | "local.room.deleted" | "local.room.stopped" | "local.room.participantRemoved" | "local.room.left" | "sessionStateChange" | "tokenExpired" | "tokenTerminated" | "unreadCountEnabled" | "local.post.updated" | "local.post.deleted" | "local.post.addReaction" | "local.post.removeReaction" | "local.comment.created" | "local.comment.deleted" | "local.comment.addReaction" | "local.comment.removeReaction" | "local.community.joined" | "local.community.left" | "local.community.roleAdded" | "local.community.roleRemoved" | "local.community.userAdded" | "local.community.userRemoved" | "local.follow.created" | "local.follow.requested" | "local.follow.accepted" | "local.follow.unfollowed" | "local.follow.requestDeclined" | "local.event.created" | "local.event.updated" | "local.event.deleted" | "local.event.started" | "local.event.ended" | "local.event.cancelled" | "local.event.rsvp.changed" | "local.event.reminder" | "local.event.invitation">(client: Amity.Client, namespace: string, event: T, fn: Amity.Listener<Amity.Events[T]>) => Amity.Unsubscriber;
17
- export declare const createMqttMessageSubscriber: <T extends "message" | "error" | "disconnected" | "connect_error" | "reconnect_error" | "reconnect_failed" | "connect" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "video-streaming.viewerDidBan" | "video-streaming.viewerDidUnban" | "user.didGlobalBan" | "liveReaction.created" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.setMutedUsers" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "room.startBroadcasting" | "room.waitingReconnect" | "room.endBroadcasting" | "room.recordedAvailable" | "room.participantInviting" | "room.participantJoined" | "room.participantLeft" | "room.didCohostInvite" | "room.didCoHostInviteAccept" | "room.didCoHostInviteReject" | "room.didCoHostInviteCancel" | "event.created" | "event.updated" | "event.deleted" | "event.started" | "event.ended" | "event.cancelled" | "event.rsvp.changed" | "event.reminder" | "event.invitation" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.notificationTraySeen.updated" | "local.notificationTrayItem.updated" | "local.invitation.created" | "local.invitation.updated" | "local.invitation.canceled" | "v4.local.community.joined" | "local.joinRequest.created" | "local.joinRequest.updated" | "local.joinRequest.deleted" | "local.liveReaction.created" | "local.room.created" | "local.room.updated" | "local.room.deleted" | "local.room.stopped" | "local.room.participantRemoved" | "local.room.left" | "sessionStateChange" | "tokenExpired" | "tokenTerminated" | "unreadCountEnabled" | "local.post.updated" | "local.post.deleted" | "local.post.addReaction" | "local.post.removeReaction" | "local.comment.created" | "local.comment.deleted" | "local.comment.addReaction" | "local.comment.removeReaction" | "local.community.joined" | "local.community.left" | "local.community.roleAdded" | "local.community.roleRemoved" | "local.community.userAdded" | "local.community.userRemoved" | "local.follow.created" | "local.follow.requested" | "local.follow.accepted" | "local.follow.unfollowed" | "local.follow.requestDeclined" | "local.event.created" | "local.event.updated" | "local.event.deleted" | "local.event.started" | "local.event.ended" | "local.event.cancelled" | "local.event.rsvp.changed" | "local.event.reminder" | "local.event.invitation">(client: Amity.Client, namespace: string, event: T, fn: (params: Record<string, unknown>) => void) => Amity.Unsubscriber;
16
+ export declare const createEventSubscriber: <T extends "message" | "error" | "disconnected" | "connect_error" | "reconnect_error" | "reconnect_failed" | "connect" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "video-streaming.viewerDidBan" | "video-streaming.viewerDidUnban" | "user.didGlobalBan" | "liveReaction.created" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.setMutedUsers" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "room.startBroadcasting" | "room.waitingReconnect" | "room.endBroadcasting" | "room.recordedAvailable" | "room.participantInviting" | "room.participantJoined" | "room.participantLeft" | "room.participantRemoved" | "room.didCohostInvite" | "room.didCohostInviteAccept" | "room.didCohostInviteReject" | "room.didCohostInviteCancel" | "room.terminated" | "event.created" | "event.updated" | "event.deleted" | "event.started" | "event.ended" | "event.cancelled" | "event.rsvp.created" | "event.rsvp.updated" | "event.rsvp.changed" | "event.reminder" | "event.invitation" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.notificationTraySeen.updated" | "local.notificationTrayItem.updated" | "local.invitation.created" | "local.invitation.updated" | "local.invitation.canceled" | "v4.local.community.joined" | "local.joinRequest.created" | "local.joinRequest.updated" | "local.joinRequest.deleted" | "local.liveReaction.created" | "local.room.created" | "local.room.updated" | "local.room.deleted" | "local.room.stopped" | "local.room.participantRemoved" | "local.room.left" | "sessionStateChange" | "tokenExpired" | "tokenTerminated" | "unreadCountEnabled" | "local.post.updated" | "local.post.deleted" | "local.post.addReaction" | "local.post.removeReaction" | "local.comment.created" | "local.comment.deleted" | "local.comment.addReaction" | "local.comment.removeReaction" | "local.community.joined" | "local.community.left" | "local.community.roleAdded" | "local.community.roleRemoved" | "local.community.userAdded" | "local.community.userRemoved" | "local.follow.created" | "local.follow.requested" | "local.follow.accepted" | "local.follow.unfollowed" | "local.follow.requestDeclined" | "local.event.created" | "local.event.updated" | "local.event.deleted" | "local.event.started" | "local.event.ended" | "local.event.cancelled" | "local.event.rsvp.changed" | "local.rsvp.created" | "local.rsvp.updated" | "local.event.reminder" | "local.event.invitation">(client: Amity.Client, namespace: string, event: T, fn: Amity.Listener<Amity.Events[T]>) => Amity.Unsubscriber;
17
+ export declare const createMqttMessageSubscriber: <T extends "message" | "error" | "disconnected" | "connect_error" | "reconnect_error" | "reconnect_failed" | "connect" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "video-streaming.viewerDidBan" | "video-streaming.viewerDidUnban" | "user.didGlobalBan" | "liveReaction.created" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.setMutedUsers" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "room.startBroadcasting" | "room.waitingReconnect" | "room.endBroadcasting" | "room.recordedAvailable" | "room.participantInviting" | "room.participantJoined" | "room.participantLeft" | "room.participantRemoved" | "room.didCohostInvite" | "room.didCohostInviteAccept" | "room.didCohostInviteReject" | "room.didCohostInviteCancel" | "room.terminated" | "event.created" | "event.updated" | "event.deleted" | "event.started" | "event.ended" | "event.cancelled" | "event.rsvp.created" | "event.rsvp.updated" | "event.rsvp.changed" | "event.reminder" | "event.invitation" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.notificationTraySeen.updated" | "local.notificationTrayItem.updated" | "local.invitation.created" | "local.invitation.updated" | "local.invitation.canceled" | "v4.local.community.joined" | "local.joinRequest.created" | "local.joinRequest.updated" | "local.joinRequest.deleted" | "local.liveReaction.created" | "local.room.created" | "local.room.updated" | "local.room.deleted" | "local.room.stopped" | "local.room.participantRemoved" | "local.room.left" | "sessionStateChange" | "tokenExpired" | "tokenTerminated" | "unreadCountEnabled" | "local.post.updated" | "local.post.deleted" | "local.post.addReaction" | "local.post.removeReaction" | "local.comment.created" | "local.comment.deleted" | "local.comment.addReaction" | "local.comment.removeReaction" | "local.community.joined" | "local.community.left" | "local.community.roleAdded" | "local.community.roleRemoved" | "local.community.userAdded" | "local.community.userRemoved" | "local.follow.created" | "local.follow.requested" | "local.follow.accepted" | "local.follow.unfollowed" | "local.follow.requestDeclined" | "local.event.created" | "local.event.updated" | "local.event.deleted" | "local.event.started" | "local.event.ended" | "local.event.cancelled" | "local.event.rsvp.changed" | "local.rsvp.created" | "local.rsvp.updated" | "local.event.reminder" | "local.event.invitation">(client: Amity.Client, namespace: string, event: T, fn: (params: Record<string, unknown>) => void) => Amity.Unsubscriber;
18
18
  /**
19
19
  * Wrapper around dispatch event
20
20
  *
21
21
  * @hidden
22
22
  */
23
- export declare const fireEvent: <T extends "message" | "error" | "disconnected" | "connect_error" | "reconnect_error" | "reconnect_failed" | "connect" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "video-streaming.viewerDidBan" | "video-streaming.viewerDidUnban" | "user.didGlobalBan" | "liveReaction.created" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.setMutedUsers" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "room.startBroadcasting" | "room.waitingReconnect" | "room.endBroadcasting" | "room.recordedAvailable" | "room.participantInviting" | "room.participantJoined" | "room.participantLeft" | "room.didCohostInvite" | "room.didCoHostInviteAccept" | "room.didCoHostInviteReject" | "room.didCoHostInviteCancel" | "event.created" | "event.updated" | "event.deleted" | "event.started" | "event.ended" | "event.cancelled" | "event.rsvp.changed" | "event.reminder" | "event.invitation" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.notificationTraySeen.updated" | "local.notificationTrayItem.updated" | "local.invitation.created" | "local.invitation.updated" | "local.invitation.canceled" | "v4.local.community.joined" | "local.joinRequest.created" | "local.joinRequest.updated" | "local.joinRequest.deleted" | "local.liveReaction.created" | "local.room.created" | "local.room.updated" | "local.room.deleted" | "local.room.stopped" | "local.room.participantRemoved" | "local.room.left" | "sessionStateChange" | "tokenExpired" | "tokenTerminated" | "unreadCountEnabled" | "local.post.updated" | "local.post.deleted" | "local.post.addReaction" | "local.post.removeReaction" | "local.comment.created" | "local.comment.deleted" | "local.comment.addReaction" | "local.comment.removeReaction" | "local.community.joined" | "local.community.left" | "local.community.roleAdded" | "local.community.roleRemoved" | "local.community.userAdded" | "local.community.userRemoved" | "local.follow.created" | "local.follow.requested" | "local.follow.accepted" | "local.follow.unfollowed" | "local.follow.requestDeclined" | "local.event.created" | "local.event.updated" | "local.event.deleted" | "local.event.started" | "local.event.ended" | "local.event.cancelled" | "local.event.rsvp.changed" | "local.event.reminder" | "local.event.invitation">(event: T, payload: Amity.Events[T]) => void;
23
+ export declare const fireEvent: <T extends "message" | "error" | "disconnected" | "connect_error" | "reconnect_error" | "reconnect_failed" | "connect" | "disconnect" | "close" | "end" | "reconnect" | "video-streaming.didStart" | "video-streaming.didRecord" | "video-streaming.didStop" | "video-streaming.didFlag" | "video-streaming.didTerminate" | "video-streaming.viewerDidBan" | "video-streaming.viewerDidUnban" | "user.didGlobalBan" | "liveReaction.created" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.setMutedUsers" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "room.startBroadcasting" | "room.waitingReconnect" | "room.endBroadcasting" | "room.recordedAvailable" | "room.participantInviting" | "room.participantJoined" | "room.participantLeft" | "room.participantRemoved" | "room.didCohostInvite" | "room.didCohostInviteAccept" | "room.didCohostInviteReject" | "room.didCohostInviteCancel" | "room.terminated" | "event.created" | "event.updated" | "event.deleted" | "event.started" | "event.ended" | "event.cancelled" | "event.rsvp.created" | "event.rsvp.updated" | "event.rsvp.changed" | "event.reminder" | "event.invitation" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnreadInfo.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.notificationTraySeen.updated" | "local.notificationTrayItem.updated" | "local.invitation.created" | "local.invitation.updated" | "local.invitation.canceled" | "v4.local.community.joined" | "local.joinRequest.created" | "local.joinRequest.updated" | "local.joinRequest.deleted" | "local.liveReaction.created" | "local.room.created" | "local.room.updated" | "local.room.deleted" | "local.room.stopped" | "local.room.participantRemoved" | "local.room.left" | "sessionStateChange" | "tokenExpired" | "tokenTerminated" | "unreadCountEnabled" | "local.post.updated" | "local.post.deleted" | "local.post.addReaction" | "local.post.removeReaction" | "local.comment.created" | "local.comment.deleted" | "local.comment.addReaction" | "local.comment.removeReaction" | "local.community.joined" | "local.community.left" | "local.community.roleAdded" | "local.community.roleRemoved" | "local.community.userAdded" | "local.community.userRemoved" | "local.follow.created" | "local.follow.requested" | "local.follow.accepted" | "local.follow.unfollowed" | "local.follow.requestDeclined" | "local.event.created" | "local.event.updated" | "local.event.deleted" | "local.event.started" | "local.event.ended" | "local.event.cancelled" | "local.event.rsvp.changed" | "local.rsvp.created" | "local.rsvp.updated" | "local.event.reminder" | "local.event.invitation">(event: T, payload: Amity.Events[T]) => void;
24
24
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/core/events.ts"],"names":[],"mappings":"AAwCA,cAAc;AACd,eAAO,MAAM,kBAAkB,4CAE9B,CAAC;AAEF,eAAO,MAAM,eAAe,eACd,MAAM,MAAM,CAAC,MAAM,CAAC,WACvB,MAAM,MAAM,CAAC,SAAS,CAAC,SAejC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,svJACxB,MAAM,MAAM,aACT,MAAM,oDAGhB,MAAM,YAsBR,CAAC;AAEF,eAAO,MAAM,2BAA2B,svJAC9B,MAAM,MAAM,aACT,MAAM,yBAEJ,OAAO,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,KAC5C,MAAM,YAQR,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,yxJAKrB,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/core/events.ts"],"names":[],"mappings":"AAwCA,cAAc;AACd,eAAO,MAAM,kBAAkB,4CAE9B,CAAC;AAEF,eAAO,MAAM,eAAe,eACd,MAAM,MAAM,CAAC,MAAM,CAAC,WACvB,MAAM,MAAM,CAAC,SAAS,CAAC,SAajC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,k4JACxB,MAAM,MAAM,aACT,MAAM,oDAGhB,MAAM,YAsBR,CAAC;AAEF,eAAO,MAAM,2BAA2B,k4JAC9B,MAAM,MAAM,aACT,MAAM,yBAEJ,OAAO,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,KAC5C,MAAM,YAQR,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,q6JAKrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"idResolvers.d.ts","sourceRoot":"","sources":["../../../src/core/model/idResolvers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,aAAK,QAAQ,CAAC,CAAC,SAAS,KAAK,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;AAuE5E;;;;;GAKG;AACH,eAAO,MAAM,WAAW,wDAAsE,CAAC"}
1
+ {"version":3,"file":"idResolvers.d.ts","sourceRoot":"","sources":["../../../src/core/model/idResolvers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,aAAK,QAAQ,CAAC,CAAC,SAAS,KAAK,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;AAyE5E;;;;;GAKG;AACH,eAAO,MAAM,WAAW,wDAAsE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAEhC;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CA0DtD,CAAC;AAEF,aAAa;AACb,eAAO,MAAM,UAAU,2DAA0D,OAOhF,CAAC;AAEF,aAAa;AACb,wBAAgB,aAAa,CAAC,IAAI,GAAE,MAAM,GAAG,SAAoC,GAAG,MAAM,CAEzF;AAED,aAAa;AACb,wBAAgB,WAAW,CAAC,IAAI,GAAE,MAAM,GAAG,SAAoC,GAAG,MAAM,CAEvF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAEhC;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CA4DtD,CAAC;AAEF,aAAa;AACb,eAAO,MAAM,UAAU,2DAA0D,OAOhF,CAAC;AAEF,aAAa;AACb,wBAAgB,aAAa,CAAC,IAAI,GAAE,MAAM,GAAG,SAAoC,GAAG,MAAM,CAEzF;AAED,aAAa;AACb,wBAAgB,WAAW,CAAC,IAAI,GAAE,MAAM,GAAG,SAAoC,GAAG,MAAM,CAEvF"}
@@ -1,6 +1,8 @@
1
1
  export declare enum EventActionsEnum {
2
2
  OnEventCreated = "onEventCreated",
3
3
  OnEventUpdated = "onEventUpdated",
4
- OnEventDeleted = "onEventDeleted"
4
+ OnEventDeleted = "onEventDeleted",
5
+ OnRSVPCreated = "onRSVPCreated",
6
+ OnRSVPUpdated = "onRSVPUpdated"
5
7
  }
6
8
  //# sourceMappingURL=enums.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/events/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC1B,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;CAClC"}
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/events/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC1B,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;CAChC"}
@@ -4,4 +4,8 @@ export * from './onEventDeleted';
4
4
  export * from './onLocalEventCreated';
5
5
  export * from './onLocalEventUpdated';
6
6
  export * from './onLocalEventDeleted';
7
+ export * from './onRSVPCreated';
8
+ export * from './onRSVPUpdated';
9
+ export * from './onLocalRSVPCreated';
10
+ export * from './onLocalRSVPUpdated';
7
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
@@ -6,7 +6,7 @@
6
6
  * })
7
7
  * ```
8
8
  *
9
- * Fired when a {@link Amity.Event} has been created
9
+ * Fired when an RSVP response for a {@link Amity.Event} has been created
10
10
  *
11
11
  * @param callback The function to call when the event was fired
12
12
  * @returns an {@link Amity.Unsubscriber} function to stop listening
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ```js
3
+ * import { EventRepository } from '@amityco/ts-sdk'
4
+ * const dispose = EventRepository.onLocalRSVPCreated(event => {
5
+ * // ...
6
+ * })
7
+ * ```
8
+ *
9
+ * Fired when an RSVP response for a {@link Amity.EventResponse} has been created
10
+ *
11
+ * @param callback The function to call when the event was fired
12
+ * @returns an {@link Amity.Unsubscriber} function to stop listening
13
+ *
14
+ * @category Event Events
15
+ */
16
+ export declare const onLocalRSVPCreated: (callback: Amity.Listener<Amity.InternalEventResponse>) => Amity.Unsubscriber;
17
+ //# sourceMappingURL=onLocalRSVPCreated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onLocalRSVPCreated.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/events/onLocalRSVPCreated.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,aAAc,MAAM,QAAQ,CAAC,MAAM,qBAAqB,CAAC,uBACzB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ```js
3
+ * import { EventRepository } from '@amityco/ts-sdk'
4
+ * const dispose = EventRepository.onLocalEventUpdated(event => {
5
+ * // ...
6
+ * })
7
+ * ```
8
+ *
9
+ * Fired when an RSVP response for a {@link Amity.EventResponse} has been updated
10
+ *
11
+ * @param callback The function to call when the event was fired
12
+ * @returns an {@link Amity.Unsubscriber} function to stop listening
13
+ *
14
+ * @category Event Events
15
+ */
16
+ export declare const onLocalRSVPUpdated: (callback: Amity.Listener<Amity.InternalEventResponse>) => Amity.Unsubscriber;
17
+ //# sourceMappingURL=onLocalRSVPUpdated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onLocalRSVPUpdated.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/events/onLocalRSVPUpdated.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,aAAc,MAAM,QAAQ,CAAC,MAAM,qBAAqB,CAAC,uBACzB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ```js
3
+ * import { EventRepository } from '@amityco/ts-sdk'
4
+ * const dispose = EventRepository.onRSVPCreated(event => {
5
+ * // ...
6
+ * })
7
+ * ```
8
+ *
9
+ * Fired when a {@link Amity.Event} has been created
10
+ *
11
+ * @param callback The function to call when the event was fired
12
+ * @returns an {@link Amity.Unsubscriber} function to stop listening
13
+ *
14
+ * @category Event Events
15
+ */
16
+ export declare const onRSVPCreated: (callback: Amity.Listener<Amity.InternalEventResponse>) => Amity.Unsubscriber;
17
+ //# sourceMappingURL=onRSVPCreated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onRSVPCreated.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/events/onRSVPCreated.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,aAAc,MAAM,QAAQ,CAAC,MAAM,qBAAqB,CAAC,uBACpB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ```js
3
+ * import { EventRepository } from '@amityco/ts-sdk'
4
+ * const dispose = EventRepository.onRSVPUpdated(event => {
5
+ * // ...
6
+ * })
7
+ * ```
8
+ *
9
+ * Fired when a {@link Amity.InternalEventResponse} has been updated
10
+ *
11
+ * @param callback The function to call when the event was fired
12
+ * @returns an {@link Amity.Unsubscriber} function to stop listening
13
+ *
14
+ * @category Event Events
15
+ */
16
+ export declare const onRSVPUpdated: (callback: Amity.Listener<Amity.InternalEventResponse>) => Amity.Unsubscriber;
17
+ //# sourceMappingURL=onRSVPUpdated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onRSVPUpdated.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/events/onRSVPUpdated.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,aAAc,MAAM,QAAQ,CAAC,MAAM,qBAAqB,CAAC,uBACpB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ```js
3
+ * import { event } from '@amityco/ts-sdk'
4
+ * const response = await event.createRSVP(eventId, status)
5
+ * ```
6
+ *
7
+ * Creates an {@link Amity.EventResponse} for the active user for a specific event.
8
+ *
9
+ * @param eventId The ID of the {@link Amity.EventResponse} to create an RSVP for
10
+ * @param status The RSVP status to set for the event
11
+ * @returns The {@link Amity.EventResponse} with updated RSVP information
12
+ *
13
+ * @category Event API
14
+ * @async
15
+ */
16
+ export declare const createRSVP: (eventId: string, status: Amity.EventResponseStatus) => Promise<Amity.Cached<Amity.EventResponse>>;
17
+ //# sourceMappingURL=createRSVP.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createRSVP.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/internalApi/createRSVP.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,YACZ,MAAM,UACP,MAAM,mBAAmB,KAChC,QAAQ,MAAM,MAAM,CAAC,MAAM,aAAa,CAAC,CAqB3C,CAAC"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * ```js
3
+ * import { event } from '@amityco/ts-sdk'
4
+ * const myRSVP = await event.getMyRSVP()
5
+ * ```
6
+ *
7
+ * Joins a {@link Amity.EventResponse} object
8
+ *
9
+ * @param eventId the {@link Amity.EventResponse} to get RSVP for
10
+ * @returns A success boolean if the {@link Amity.EventResponse} RSVP was retrieved
11
+ *
12
+ * @category Event API
13
+ * @async
14
+ */
15
+ export declare const getMyRSVP: {
16
+ (eventId: Amity.InternalEvent['eventId']): Promise<Amity.Cached<Amity.EventResponse | undefined>>;
17
+ /**
18
+ * ```js
19
+ * import { event } from '@amityco/ts-sdk'
20
+ * const event = event.getMyRSVP.locally(eventId)
21
+ * ```
22
+ *
23
+ * Fetches a {@link Amity.EventResponse} object in cache
24
+ *
25
+ * @param eventId the ID of the {@link Amity.EventResponse} to fetch
26
+ * @returns the associated {@link Amity.EventResponse} object
27
+ *
28
+ * @category Event API
29
+ */
30
+ locally(eventId: Amity.InternalEvent['eventId']): Amity.Cached<Amity.EventResponse> | undefined;
31
+ };
32
+ //# sourceMappingURL=getMyRSVP.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMyRSVP.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/internalApi/getMyRSVP.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,SAAS;cACX,MAAM,aAAa,CAAC,SAAS,CAAC,GACtC,QAAQ,MAAM,MAAM,CAAC,MAAM,aAAa,GAAG,SAAS,CAAC,CAAC;IAqBzD;;;;;;;;;;;;OAYG;qBAEQ,MAAM,aAAa,CAAC,SAAS,CAAC,GACtC,MAAM,MAAM,CAAC,MAAM,aAAa,CAAC,GAAG,SAAS;CAlB/C,CAAC"}