@amityco/ts-sdk 7.11.1-7526ae66.0 → 7.11.1-78c2ad3f.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 (169) hide show
  1. package/dist/@types/core/events.d.ts +48 -10
  2. package/dist/@types/core/events.d.ts.map +1 -1
  3. package/dist/@types/core/model.d.ts +4 -0
  4. package/dist/@types/core/model.d.ts.map +1 -1
  5. package/dist/@types/core/payload.d.ts +17 -0
  6. package/dist/@types/core/payload.d.ts.map +1 -1
  7. package/dist/@types/core/permissions.d.ts +5 -1
  8. package/dist/@types/core/permissions.d.ts.map +1 -1
  9. package/dist/@types/core/transport.d.ts +3 -0
  10. package/dist/@types/core/transport.d.ts.map +1 -1
  11. package/dist/@types/domains/channel.d.ts +1 -0
  12. package/dist/@types/domains/channel.d.ts.map +1 -1
  13. package/dist/@types/domains/community.d.ts +11 -1
  14. package/dist/@types/domains/community.d.ts.map +1 -1
  15. package/dist/@types/domains/event.d.ts +81 -0
  16. package/dist/@types/domains/event.d.ts.map +1 -0
  17. package/dist/@types/domains/feed.d.ts +2 -1
  18. package/dist/@types/domains/feed.d.ts.map +1 -1
  19. package/dist/@types/domains/invitation.d.ts +7 -2
  20. package/dist/@types/domains/invitation.d.ts.map +1 -1
  21. package/dist/@types/domains/partials.d.ts +2 -2
  22. package/dist/@types/domains/partials.d.ts.map +1 -1
  23. package/dist/@types/domains/room.d.ts +25 -17
  24. package/dist/@types/domains/room.d.ts.map +1 -1
  25. package/dist/@types/index.d.ts +1 -0
  26. package/dist/@types/index.d.ts.map +1 -1
  27. package/dist/channelRepository/api/createChannel.d.ts +1 -0
  28. package/dist/channelRepository/api/createChannel.d.ts.map +1 -1
  29. package/dist/core/events.d.ts +3 -3
  30. package/dist/core/events.d.ts.map +1 -1
  31. package/dist/core/model/idResolvers.d.ts.map +1 -1
  32. package/dist/core/model/index.d.ts.map +1 -1
  33. package/dist/core/subscription.d.ts +2 -0
  34. package/dist/core/subscription.d.ts.map +1 -1
  35. package/dist/eventRepository/api/createEvent.d.ts +16 -0
  36. package/dist/eventRepository/api/createEvent.d.ts.map +1 -0
  37. package/dist/eventRepository/api/deleteEvent.d.ts +15 -0
  38. package/dist/eventRepository/api/deleteEvent.d.ts.map +1 -0
  39. package/dist/eventRepository/api/index.d.ts +4 -0
  40. package/dist/eventRepository/api/index.d.ts.map +1 -0
  41. package/dist/eventRepository/api/updateEvent.d.ts +17 -0
  42. package/dist/eventRepository/api/updateEvent.d.ts.map +1 -0
  43. package/dist/eventRepository/events/enums.d.ts +6 -0
  44. package/dist/eventRepository/events/enums.d.ts.map +1 -0
  45. package/dist/eventRepository/events/index.d.ts +7 -0
  46. package/dist/eventRepository/events/index.d.ts.map +1 -0
  47. package/dist/eventRepository/events/onEventCreated.d.ts +17 -0
  48. package/dist/eventRepository/events/onEventCreated.d.ts.map +1 -0
  49. package/dist/eventRepository/events/onEventDeleted.d.ts +17 -0
  50. package/dist/eventRepository/events/onEventDeleted.d.ts.map +1 -0
  51. package/dist/eventRepository/events/onEventUpdated.d.ts +17 -0
  52. package/dist/eventRepository/events/onEventUpdated.d.ts.map +1 -0
  53. package/dist/eventRepository/events/onLocalEventCreated.d.ts +17 -0
  54. package/dist/eventRepository/events/onLocalEventCreated.d.ts.map +1 -0
  55. package/dist/eventRepository/events/onLocalEventDeleted.d.ts +17 -0
  56. package/dist/eventRepository/events/onLocalEventDeleted.d.ts.map +1 -0
  57. package/dist/eventRepository/events/onLocalEventUpdated.d.ts +17 -0
  58. package/dist/eventRepository/events/onLocalEventUpdated.d.ts.map +1 -0
  59. package/dist/eventRepository/index.d.ts +4 -0
  60. package/dist/eventRepository/index.d.ts.map +1 -0
  61. package/dist/eventRepository/internalApi/getEvent.d.ts +32 -0
  62. package/dist/eventRepository/internalApi/getEvent.d.ts.map +1 -0
  63. package/dist/eventRepository/internalApi/index.d.ts +2 -0
  64. package/dist/eventRepository/internalApi/index.d.ts.map +1 -0
  65. package/dist/eventRepository/observers/getEvent.d.ts +21 -0
  66. package/dist/eventRepository/observers/getEvent.d.ts.map +1 -0
  67. package/dist/eventRepository/observers/getEvents/LiveCollectionController.d.ts +13 -0
  68. package/dist/eventRepository/observers/getEvents/LiveCollectionController.d.ts.map +1 -0
  69. package/dist/eventRepository/observers/getEvents/PaginationController.d.ts +5 -0
  70. package/dist/eventRepository/observers/getEvents/PaginationController.d.ts.map +1 -0
  71. package/dist/eventRepository/observers/getEvents/QueryStreamController.d.ts +15 -0
  72. package/dist/eventRepository/observers/getEvents/QueryStreamController.d.ts.map +1 -0
  73. package/dist/eventRepository/observers/getEvents.d.ts +12 -0
  74. package/dist/eventRepository/observers/getEvents.d.ts.map +1 -0
  75. package/dist/eventRepository/observers/getMyEvents/LiveCollectionController.d.ts +13 -0
  76. package/dist/eventRepository/observers/getMyEvents/LiveCollectionController.d.ts.map +1 -0
  77. package/dist/eventRepository/observers/getMyEvents/PaginationController.d.ts +5 -0
  78. package/dist/eventRepository/observers/getMyEvents/PaginationController.d.ts.map +1 -0
  79. package/dist/eventRepository/observers/getMyEvents/QueryStreamController.d.ts +15 -0
  80. package/dist/eventRepository/observers/getMyEvents/QueryStreamController.d.ts.map +1 -0
  81. package/dist/eventRepository/observers/getMyEvents.d.ts +12 -0
  82. package/dist/eventRepository/observers/getMyEvents.d.ts.map +1 -0
  83. package/dist/eventRepository/observers/index.d.ts +4 -0
  84. package/dist/eventRepository/observers/index.d.ts.map +1 -0
  85. package/dist/eventRepository/utils/createEventEventSubscriber.d.ts +2 -0
  86. package/dist/eventRepository/utils/createEventEventSubscriber.d.ts.map +1 -0
  87. package/dist/eventRepository/utils/index.d.ts +3 -0
  88. package/dist/eventRepository/utils/index.d.ts.map +1 -0
  89. package/dist/eventRepository/utils/prepareEventPayload.d.ts +2 -0
  90. package/dist/eventRepository/utils/prepareEventPayload.d.ts.map +1 -0
  91. package/dist/index.cjs.js +3858 -2738
  92. package/dist/index.d.ts +1 -0
  93. package/dist/index.d.ts.map +1 -1
  94. package/dist/index.esm.js +2140 -1023
  95. package/dist/index.umd.js +3 -3
  96. package/dist/invitationRepository/api/acceptInvitation.d.ts +16 -0
  97. package/dist/invitationRepository/api/acceptInvitation.d.ts.map +1 -0
  98. package/dist/invitationRepository/api/cancelInvitation.d.ts +16 -0
  99. package/dist/invitationRepository/api/cancelInvitation.d.ts.map +1 -0
  100. package/dist/invitationRepository/api/getMyInvitation.d.ts +16 -0
  101. package/dist/invitationRepository/api/getMyInvitation.d.ts.map +1 -0
  102. package/dist/invitationRepository/api/index.d.ts +3 -0
  103. package/dist/invitationRepository/api/index.d.ts.map +1 -0
  104. package/dist/invitationRepository/events/index.d.ts +1 -1
  105. package/dist/invitationRepository/events/index.d.ts.map +1 -1
  106. package/dist/invitationRepository/events/onLocalInvitationCanceled.d.ts +17 -0
  107. package/dist/invitationRepository/events/onLocalInvitationCanceled.d.ts.map +1 -0
  108. package/dist/invitationRepository/index.d.ts +1 -0
  109. package/dist/invitationRepository/index.d.ts.map +1 -1
  110. package/dist/invitationRepository/internalApi/getInvitation.d.ts +1 -1
  111. package/dist/invitationRepository/internalApi/getInvitation.d.ts.map +1 -1
  112. package/dist/invitationRepository/observers/getInvitations/enums.d.ts +1 -1
  113. package/dist/invitationRepository/observers/getInvitations/enums.d.ts.map +1 -1
  114. package/dist/invitationRepository/observers/index.d.ts +1 -0
  115. package/dist/invitationRepository/observers/index.d.ts.map +1 -1
  116. package/dist/invitationRepository/observers/observeInvitations.d.ts +34 -0
  117. package/dist/invitationRepository/observers/observeInvitations.d.ts.map +1 -0
  118. package/dist/liveReactionRepository/api/createReaction.d.ts +2 -2
  119. package/dist/liveReactionRepository/api/createReaction.d.ts.map +1 -1
  120. package/dist/liveReactionRepository/internalApi/createLiveReaction.d.ts +2 -2
  121. package/dist/liveReactionRepository/internalApi/createLiveReaction.d.ts.map +1 -1
  122. package/dist/liveReactionRepository/service/ReactionSyncEngine.d.ts +1 -1
  123. package/dist/liveReactionRepository/service/ReactionSyncEngine.d.ts.map +1 -1
  124. package/dist/messagePreview/utils/getChannelMessagePreviewWithUser.d.ts +2 -1
  125. package/dist/messagePreview/utils/getChannelMessagePreviewWithUser.d.ts.map +1 -1
  126. package/dist/roomRepository/api/getBroadcasterData.d.ts +16 -0
  127. package/dist/roomRepository/api/getBroadcasterData.d.ts.map +1 -0
  128. package/dist/roomRepository/api/index.d.ts +3 -1
  129. package/dist/roomRepository/api/index.d.ts.map +1 -1
  130. package/dist/roomRepository/api/leaveRoom.d.ts +16 -0
  131. package/dist/roomRepository/api/leaveRoom.d.ts.map +1 -0
  132. package/dist/roomRepository/api/removeParticipant.d.ts +17 -0
  133. package/dist/roomRepository/api/removeParticipant.d.ts.map +1 -0
  134. package/dist/roomRepository/api/updateRoom.d.ts +1 -1
  135. package/dist/roomRepository/api/updateRoom.d.ts.map +1 -1
  136. package/dist/roomRepository/events/index.d.ts +6 -1
  137. package/dist/roomRepository/events/index.d.ts.map +1 -1
  138. package/dist/roomRepository/events/onRoomCoHostInviteAccepted.d.ts +17 -0
  139. package/dist/roomRepository/events/onRoomCoHostInviteAccepted.d.ts.map +1 -0
  140. package/dist/roomRepository/events/onRoomCoHostInviteCanceled.d.ts +17 -0
  141. package/dist/roomRepository/events/onRoomCoHostInviteCanceled.d.ts.map +1 -0
  142. package/dist/roomRepository/events/onRoomCoHostInviteRejected.d.ts +17 -0
  143. package/dist/roomRepository/events/onRoomCoHostInviteRejected.d.ts.map +1 -0
  144. package/dist/roomRepository/events/{onRoomParticipantInviting.d.ts → onRoomCoHostInvited.d.ts} +2 -2
  145. package/dist/roomRepository/events/onRoomCoHostInvited.d.ts.map +1 -0
  146. package/dist/roomRepository/events/onRoomLeft.d.ts +17 -0
  147. package/dist/roomRepository/events/onRoomLeft.d.ts.map +1 -0
  148. package/dist/roomRepository/events/onRoomParticipantRemoved.d.ts +17 -0
  149. package/dist/roomRepository/events/onRoomParticipantRemoved.d.ts.map +1 -0
  150. package/dist/roomRepository/internalApi/getLiveChat.d.ts +16 -0
  151. package/dist/roomRepository/internalApi/getLiveChat.d.ts.map +1 -0
  152. package/dist/roomRepository/internalApi/index.d.ts +1 -0
  153. package/dist/roomRepository/internalApi/index.d.ts.map +1 -1
  154. package/dist/roomRepository/observers/getRoom.d.ts.map +1 -1
  155. package/dist/roomRepository/observers/utils.d.ts +1 -1
  156. package/dist/utils/linkedObject/communityLinkedObject.d.ts.map +1 -1
  157. package/dist/utils/linkedObject/eventLinkObject.d.ts +2 -0
  158. package/dist/utils/linkedObject/eventLinkObject.d.ts.map +1 -0
  159. package/dist/utils/linkedObject/index.d.ts +2 -0
  160. package/dist/utils/linkedObject/index.d.ts.map +1 -1
  161. package/dist/utils/linkedObject/postLinkedObject.d.ts.map +1 -1
  162. package/dist/utils/linkedObject/roomLinkedObject.d.ts +2 -0
  163. package/dist/utils/linkedObject/roomLinkedObject.d.ts.map +1 -0
  164. package/package.json +1 -1
  165. package/dist/invitationRepository/events/onLocalInvitationDeleted.d.ts +0 -17
  166. package/dist/invitationRepository/events/onLocalInvitationDeleted.d.ts.map +0 -1
  167. package/dist/roomRepository/api/getRoomToken.d.ts +0 -16
  168. package/dist/roomRepository/api/getRoomToken.d.ts.map +0 -1
  169. package/dist/roomRepository/events/onRoomParticipantInviting.d.ts.map +0 -1
@@ -0,0 +1,16 @@
1
+ /**
2
+ * ```js
3
+ * import { acceptInvitation } from '@amityco/ts-sdk'
4
+ * const isAccepted = await acceptInvitation(invitationId)
5
+ * ```
6
+ *
7
+ * Accepts a {@link Amity.Invitation} object
8
+ *
9
+ * @param invitationId the {@link Amity.Invitation} to accept
10
+ * @returns A success boolean if the {@link Amity.Invitation} was accepted
11
+ *
12
+ * @category Invitation API
13
+ * @async
14
+ */
15
+ export declare const acceptInvitation: (invitationId: Amity.Invitation['_id']) => Promise<boolean>;
16
+ //# sourceMappingURL=acceptInvitation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acceptInvitation.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/api/acceptInvitation.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,iBAAwB,MAAM,UAAU,CAAC,KAAK,CAAC,KAAG,QAAQ,OAAO,CAE7F,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * ```js
3
+ * import { rejectInvitation } from '@amityco/ts-sdk'
4
+ * const isRejected = await rejectInvitation(invitationId)
5
+ * ```
6
+ *
7
+ * Rejects a {@link Amity.Invitation} object
8
+ *
9
+ * @param invitationId the {@link Amity.Invitation} to reject
10
+ * @returns A success boolean if the {@link Amity.Invitation} was rejected
11
+ *
12
+ * @category Invitation API
13
+ * @async
14
+ */
15
+ export declare const cancelInvitation: (invitationId: Amity.Invitation['_id']) => Promise<boolean>;
16
+ //# sourceMappingURL=cancelInvitation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancelInvitation.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/api/cancelInvitation.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,iBAAwB,MAAM,UAAU,CAAC,KAAK,CAAC,KAAG,QAAQ,OAAO,CAmB7F,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * ```js
3
+ * import { acceptInvitation } from '@amityco/ts-sdk'
4
+ * const isAccepted = await acceptInvitation(invitationId)
5
+ * ```
6
+ *
7
+ * Accepts a {@link Amity.Invitation} object
8
+ *
9
+ * @param invitationId the {@link Amity.Invitation} to accept
10
+ * @returns A success boolean if the {@link Amity.Invitation} was accepted
11
+ *
12
+ * @category Invitation API
13
+ * @async
14
+ */
15
+ export declare const acceptInvitation: (invitationId: Amity.Invitation['_id']) => Promise<boolean>;
16
+ //# sourceMappingURL=getMyInvitation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMyInvitation.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/api/getMyInvitation.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,iBAAwB,MAAM,UAAU,CAAC,KAAK,CAAC,KAAG,QAAQ,OAAO,CAE7F,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './cancelInvitation';
2
+ export * from './acceptInvitation';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  export * from './onLocalInvitationCreated';
2
2
  export * from './onLocalInvitationUpdated';
3
- export * from './onLocalInvitationDeleted';
3
+ export * from './onLocalInvitationCanceled';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ```js
3
+ * import { onLocalInvitationCanceled } from '@amityco/ts-sdk'
4
+ * const dispose = onLocalInvitationCanceled(data => {
5
+ * // ...
6
+ * })
7
+ * ```
8
+ *
9
+ * Fired when an {@link Amity.InvitationPayload} has been deleted
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 Invitation Events
15
+ */
16
+ export declare const onLocalInvitationCanceled: (callback: Amity.Listener<Amity.InternalInvitation[]>) => Amity.Unsubscriber;
17
+ //# sourceMappingURL=onLocalInvitationCanceled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onLocalInvitationCanceled.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/events/onLocalInvitationCanceled.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,yBAAyB,aAC1B,MAAM,QAAQ,CAAC,MAAM,kBAAkB,EAAE,CAAC,KACnD,MAAM,YAeR,CAAC"}
@@ -1,3 +1,4 @@
1
+ export * from './api';
1
2
  export * from './events';
2
3
  export * from './observers';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/invitationRepository/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/invitationRepository/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
@@ -13,5 +13,5 @@
13
13
  * @category Invitation API
14
14
  * @async
15
15
  */
16
- export declare const getInvitation: (targetType: Amity.Invitation['targetType'], targetId: Amity.Invitation['targetId']) => Promise<Amity.Cached<Amity.Invitation | undefined>>;
16
+ export declare const getInvitation: (params: Pick<Amity.QueryMyInvitations, 'targetId' | 'targetType' | 'type' | 'statuses'>) => Promise<Amity.Cached<Amity.Invitation | undefined>>;
17
17
  //# sourceMappingURL=getInvitation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getInvitation.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/internalApi/getInvitation.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,eACZ,MAAM,UAAU,CAAC,YAAY,CAAC,YAChC,MAAM,UAAU,CAAC,UAAU,CAAC,KACrC,QAAQ,MAAM,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAAC,CAmBpD,CAAC"}
1
+ {"version":3,"file":"getInvitation.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/internalApi/getInvitation.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,WAChB,KAAK,MAAM,kBAAkB,EAAE,UAAU,GAAG,YAAY,GAAG,MAAM,GAAG,UAAU,CAAC,KACtF,QAAQ,MAAM,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAAC,CAmBpD,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export declare enum InvitationActionsEnum {
2
2
  OnLocalInvitationCreated = "onLocalInvitationCreated",
3
3
  OnLocalInvitationUpdated = "onLocalInvitationUpdated",
4
- OnLocalInvitationDeleted = "onLocalInvitationDeleted"
4
+ OnLocalInvitationCanceled = "onLocalInvitationCanceled"
5
5
  }
6
6
  //# sourceMappingURL=enums.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/invitationRepository/observers/getInvitations/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB;IAC/B,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;CACtD"}
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../../src/invitationRepository/observers/getInvitations/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB;IAC/B,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IACrD,yBAAyB,8BAA8B;CACxD"}
@@ -1,2 +1,3 @@
1
1
  export * from './getMyCommunityInvitations';
2
+ export * from './observeInvitations';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/observers/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/observers/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ *
3
+ * ```js
4
+ * import { observeInvitations } from '@amityco/ts-sdk';
5
+ *
6
+ * // For room invitations
7
+ * const unsubscribe = observeInvitations(
8
+ * { targetId: 'room123', targetType: 'room' },
9
+ * response => {
10
+ * console.log('Room invitation event:', response.room, response.users, response.eventType)
11
+ * }
12
+ * );
13
+ *
14
+ * // For community invitations (when implemented)
15
+ * const unsubscribe2 = observeInvitations(
16
+ * { targetId: 'community456', targetType: 'community' },
17
+ * response => {
18
+ * console.log('Community invitation event:', response.community, response.users, response.eventType)
19
+ * }
20
+ * );
21
+ * ```
22
+ *
23
+ * Observe invitations events including invited, accepted, rejected, and canceled
24
+ *
25
+ * @param params The target ID and type to observe invitations for
26
+ * @param callback The function to call when new invitation events are available
27
+ * @returns An {@link Amity.Unsubscriber} function to run when willing to stop observing the events
28
+ *
29
+ * @category Invitation Observable
30
+ */
31
+ export declare const observeInvitations: <T extends "community" | "room">(params: Pick<Amity.QueryInvitations, "targetId" | "targetType"> & {
32
+ targetType: T;
33
+ }, callback: Amity.Listener<Amity.Invitation[]>) => Amity.Unsubscriber;
34
+ //# sourceMappingURL=observeInvitations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"observeInvitations.d.ts","sourceRoot":"","sources":["../../../src/invitationRepository/observers/observeInvitations.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,kBAAkB;;aAEnB,MAAM,QAAQ,CAAC,MAAM,UAAU,EAAE,CAAC,KAC3C,MAAM,YA4CR,CAAC"}
@@ -19,8 +19,8 @@
19
19
  * @category Live Reaction API
20
20
  * @async
21
21
  */
22
- export declare const createReaction: ({ referenceId, referenceType, reactionName, streamId, }: Pick<Amity.CreateLiveReactionRequest, "referenceType" | "reactionName"> & {
22
+ export declare const createReaction: ({ referenceId, referenceType, reactionName, roomId, }: Pick<Amity.CreateLiveReactionRequest, "referenceType" | "reactionName"> & {
23
23
  referenceId: string;
24
- streamId: string;
24
+ roomId: string;
25
25
  }) => Promise<boolean>;
26
26
  //# sourceMappingURL=createReaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createReaction.d.ts","sourceRoot":"","sources":["../../../src/liveReactionRepository/api/createReaction.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,cAAc;iBAMZ,MAAM;cACT,MAAM;MACd,QAAQ,OAAO,CAwBlB,CAAC"}
1
+ {"version":3,"file":"createReaction.d.ts","sourceRoot":"","sources":["../../../src/liveReactionRepository/api/createReaction.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,cAAc;iBAMZ,MAAM;YACX,MAAM;MACZ,QAAQ,OAAO,CAwBlB,CAAC"}
@@ -13,8 +13,8 @@
13
13
  * @category Live Reaction API
14
14
  * @async
15
15
  */
16
- export declare const createLiveReaction: ({ reactions, liveStreamId, }: {
16
+ export declare const createLiveReaction: ({ reactions, roomId, }: {
17
17
  reactions: Amity.CreateLiveReactionRequest[];
18
- liveStreamId: string;
18
+ roomId: string;
19
19
  }) => Promise<Amity.CreateLiveReactionResponse>;
20
20
  //# sourceMappingURL=createLiveReaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createLiveReaction.d.ts","sourceRoot":"","sources":["../../../src/liveReactionRepository/internalApi/createLiveReaction.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB;eAIlB,MAAM,yBAAyB,EAAE;kBAC9B,MAAM;MAClB,QAAQ,MAAM,0BAA0B,CAc3C,CAAC"}
1
+ {"version":3,"file":"createLiveReaction.d.ts","sourceRoot":"","sources":["../../../src/liveReactionRepository/internalApi/createLiveReaction.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB;eAIlB,MAAM,yBAAyB,EAAE;YACpC,MAAM;MACZ,QAAQ,MAAM,0BAA0B,CAc3C,CAAC"}
@@ -9,7 +9,7 @@ declare class LiveReactionSyncEngine {
9
9
  startReactionsSync(): void;
10
10
  stopReactionsSync(): void;
11
11
  createLiveReaction(liveReaction: Amity.CreateLiveReactionRequest & {
12
- streamId: string;
12
+ roomId: string;
13
13
  }): void;
14
14
  private addConnectionListener;
15
15
  private removeConnectionListener;
@@ -1 +1 @@
1
- {"version":3,"file":"ReactionSyncEngine.d.ts","sourceRoot":"","sources":["../../../src/liveReactionRepository/service/ReactionSyncEngine.ts"],"names":[],"mappings":"AAKA,cAAM,sBAAsB;IAC1B,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAc;IAEhD,OAAO,CAAC,MAAM,CAAkE;IAEhF,OAAO,CAAC,KAAK,CAA2B;IAExC,OAAO,CAAC,SAAS,CAAS;IAE1B,OAAO,CAAC,kBAAkB,CAAsB;IAEhD,OAAO,CAAC,WAAW,CAAQ;;IAM3B,kBAAkB;IAQlB,iBAAiB;IAOjB,kBAAkB,CAAC,YAAY,EAAE,KAAK,CAAC,yBAAyB,GAAG;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE;IAIvF,OAAO,CAAC,qBAAqB;IAe7B,OAAO,CAAC,wBAAwB;IAOhC,OAAO,CAAC,iBAAiB;IAoCzB,OAAO,CAAC,WAAW;IAKnB,oBAAoB;IAKpB,kBAAkB;IAclB,cAAc;CAGf;;;;AAID,wBAOE"}
1
+ {"version":3,"file":"ReactionSyncEngine.d.ts","sourceRoot":"","sources":["../../../src/liveReactionRepository/service/ReactionSyncEngine.ts"],"names":[],"mappings":"AAKA,cAAM,sBAAsB;IAC1B,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAc;IAEhD,OAAO,CAAC,MAAM,CAAgE;IAE9E,OAAO,CAAC,KAAK,CAA2B;IAExC,OAAO,CAAC,SAAS,CAAS;IAE1B,OAAO,CAAC,kBAAkB,CAAsB;IAEhD,OAAO,CAAC,WAAW,CAAQ;;IAM3B,kBAAkB;IAQlB,iBAAiB;IAOjB,kBAAkB,CAAC,YAAY,EAAE,KAAK,CAAC,yBAAyB,GAAG;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE;IAIrF,OAAO,CAAC,qBAAqB;IAe7B,OAAO,CAAC,wBAAwB;IAOhC,OAAO,CAAC,iBAAiB;IAoCzB,OAAO,CAAC,WAAW;IAKnB,oBAAoB;IAKpB,kBAAkB;IAclB,cAAc;CAGf;;;;AAID,wBAOE"}
@@ -24,8 +24,9 @@ export declare const getChannelMessagePreviewWithUser: (channel: Amity.StaticInt
24
24
  attachedTo?: {
25
25
  postId?: string | undefined;
26
26
  videoStreamId?: string | undefined;
27
+ roomId?: string | undefined;
27
28
  } | undefined;
28
- } & Amity.Metadata & Amity.Taggable & Amity.CreatedAt & Amity.UpdatedAt & Amity.DeletedAt & {
29
+ } & Amity.Metadata<Record<string, any>> & Amity.Taggable & Amity.CreatedAt & Amity.UpdatedAt & Amity.DeletedAt & {
29
30
  isDeleted?: boolean | undefined;
30
31
  } & Amity.Subscribable & {
31
32
  defaultSubChannelId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"getChannelMessagePreviewWithUser.d.ts","sourceRoot":"","sources":["../../../src/messagePreview/utils/getChannelMessagePreviewWithUser.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gCAAgC,YAClC,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAEpB,MAAM,cAAc,GAAG,IAAI;CAoB5C,CAAC"}
1
+ {"version":3,"file":"getChannelMessagePreviewWithUser.d.ts","sourceRoot":"","sources":["../../../src/messagePreview/utils/getChannelMessagePreviewWithUser.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,gCAAgC,YAClC,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAEpB,MAAM,cAAc,GAAG,IAAI;CAoB5C,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * ```js
3
+ * import { getBroadcasterData } from '@amityco/ts-sdk'
4
+ * const token = await getBroadcasterData('roomId')
5
+ * ```
6
+ *
7
+ * Gets broadcaster data for a room
8
+ *
9
+ * @param roomId The ID of the room to get token for
10
+ * @returns The broadcaster data of the room including coHostToken, coHostUrl and direactStreamUrl
11
+ *
12
+ * @category Room API
13
+ * @async
14
+ */
15
+ export declare const getBroadcasterData: (roomId: string) => Promise<Amity.BroadcasterData>;
16
+ //# sourceMappingURL=getBroadcasterData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getBroadcasterData.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/getBroadcasterData.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,WAAkB,MAAM,KAAG,QAAQ,MAAM,eAAe,CAOtF,CAAC"}
@@ -2,6 +2,8 @@ export * from './createRoom';
2
2
  export * from './updateRoom';
3
3
  export * from './deleteRoom';
4
4
  export * from './stopRoom';
5
- export * from './getRoomToken';
5
+ export * from './getBroadcasterData';
6
6
  export * from './getRecordedUrl';
7
+ export * from './removeParticipant';
8
+ export * from './leaveRoom';
7
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * ```js
3
+ * import { leaveRoom } from '@amityco/ts-sdk'
4
+ * const result = await leaveRoom('roomId')
5
+ * ```
6
+ *
7
+ * Leaves an {@link Amity.Room}
8
+ *
9
+ * @param roomId The ID of the room to leave
10
+ * @returns Promise that resolves when the user has left the room
11
+ *
12
+ * @category Room API
13
+ * @async
14
+ */
15
+ export declare const leaveRoom: (roomId: string) => Promise<void>;
16
+ //# sourceMappingURL=leaveRoom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"leaveRoom.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/leaveRoom.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,SAAS,WAAkB,MAAM,KAAG,QAAQ,IAAI,CAS5D,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ```js
3
+ * import { removeParticipant } from '@amityco/ts-sdk'
4
+ * const result = await removeParticipant('roomId', 'participantUserId')
5
+ * ```
6
+ *
7
+ * Removes a participant from an {@link Amity.Room}
8
+ *
9
+ * @param roomId The ID of the room to remove participant from
10
+ * @param participantUserId The ID of the user to remove as participant
11
+ * @returns Promise that resolves when the participant is removed
12
+ *
13
+ * @category Room API
14
+ * @async
15
+ */
16
+ export declare const removeParticipant: (roomId: string, participantUserId: string) => Promise<void>;
17
+ //# sourceMappingURL=removeParticipant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"removeParticipant.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/removeParticipant.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,iBAAiB,WACpB,MAAM,qBACK,MAAM,KACxB,QAAQ,IAAI,CAYd,CAAC"}
@@ -18,7 +18,7 @@ export declare const updateRoom: (roomId: string, bundle: Partial<{
18
18
  thumbnailFileId: string;
19
19
  description: string;
20
20
  metadata: Record<string, any>;
21
- channelEnabled: boolean;
21
+ liveChatEnabled: boolean;
22
22
  parentRoomId: string;
23
23
  }>) => Promise<Amity.Cached<Amity.Room>>;
24
24
  //# sourceMappingURL=updateRoom.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"updateRoom.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/updateRoom.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,WACb,MAAM,UACN,QAAQ;IACd,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC,KACD,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAiBlC,CAAC"}
1
+ {"version":3,"file":"updateRoom.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/updateRoom.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,WACb,MAAM,UACN,QAAQ;IACd,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC,KACD,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAiBlC,CAAC"}
@@ -2,11 +2,16 @@ export * from './onRoomStartBroadcasting';
2
2
  export * from './onRoomWaitingReconnect';
3
3
  export * from './onRoomEndBroadcasting';
4
4
  export * from './onRoomRecordedAvailable';
5
- export * from './onRoomParticipantInviting';
5
+ export * from './onRoomCoHostInvited';
6
+ export * from './onRoomCoHostInviteAccepted';
7
+ export * from './onRoomCoHostInviteRejected';
8
+ export * from './onRoomCoHostInviteCanceled';
6
9
  export * from './onRoomParticipantJoined';
7
10
  export * from './onRoomParticipantLeft';
8
11
  export * from './onRoomCreated';
9
12
  export * from './onRoomUpdated';
10
13
  export * from './onRoomDeleted';
11
14
  export * from './onRoomStopped';
15
+ export * from './onRoomParticipantRemoved';
16
+ export * from './onRoomLeft';
12
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AAGxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AAGxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ```js
3
+ * import { onRoomCoHostInviteAccepted } from '@amityco/ts-sdk'
4
+ * const dispose = onRoomCoHostInviteAccepted(room => {
5
+ * // ...
6
+ * })
7
+ * ```
8
+ *
9
+ * Fired when a co-host invitation is accepted for a {@link Amity.Room}
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 Room Events
15
+ */
16
+ export declare const onRoomCoHostInviteAccepted: (callback: Amity.Listener<Amity.InternalInvitation[]>) => Amity.Unsubscriber;
17
+ //# sourceMappingURL=onRoomCoHostInviteAccepted.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onRoomCoHostInviteAccepted.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomCoHostInviteAccepted.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,0BAA0B,aAC3B,MAAM,QAAQ,CAAC,MAAM,kBAAkB,EAAE,CAAC,KACnD,MAAM,YAgBR,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ```js
3
+ * import { onRoomCoHostInviteCanceled } from '@amityco/ts-sdk'
4
+ * const dispose = onRoomCoHostInviteCanceled(room => {
5
+ * // ...
6
+ * })
7
+ * ```
8
+ *
9
+ * Fired when a co-host invitation is canceled for a {@link Amity.Room}
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 Room Events
15
+ */
16
+ export declare const onRoomCoHostInviteCanceled: (callback: Amity.Listener<Amity.InternalInvitation[]>) => Amity.Unsubscriber;
17
+ //# sourceMappingURL=onRoomCoHostInviteCanceled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onRoomCoHostInviteCanceled.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomCoHostInviteCanceled.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,0BAA0B,aAC3B,MAAM,QAAQ,CAAC,MAAM,kBAAkB,EAAE,CAAC,KACnD,MAAM,YAgBR,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ```js
3
+ * import { onRoomCoHostInviteRejected } from '@amityco/ts-sdk'
4
+ * const dispose = onRoomCoHostInviteRejected(room => {
5
+ * // ...
6
+ * })
7
+ * ```
8
+ *
9
+ * Fired when a co-host invitation is rejected for a {@link Amity.Room}
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 Room Events
15
+ */
16
+ export declare const onRoomCoHostInviteRejected: (callback: Amity.Listener<Amity.InternalInvitation[]>) => Amity.Unsubscriber;
17
+ //# sourceMappingURL=onRoomCoHostInviteRejected.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onRoomCoHostInviteRejected.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomCoHostInviteRejected.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,0BAA0B,aAC3B,MAAM,QAAQ,CAAC,MAAM,kBAAkB,EAAE,CAAC,KACnD,MAAM,YAgBR,CAAC"}
@@ -13,5 +13,5 @@
13
13
  *
14
14
  * @category Room Events
15
15
  */
16
- export declare const onRoomParticipantInviting: (callback: Amity.Listener<Amity.Room>) => Amity.Unsubscriber;
17
- //# sourceMappingURL=onRoomParticipantInviting.d.ts.map
16
+ export declare const onRoomCoHostInvited: (callback: Amity.Listener<Amity.InternalInvitation[]>) => Amity.Unsubscriber;
17
+ //# sourceMappingURL=onRoomCoHostInvited.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onRoomCoHostInvited.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomCoHostInvited.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB,aACpB,MAAM,QAAQ,CAAC,MAAM,kBAAkB,EAAE,CAAC,KACnD,MAAM,YAWR,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ```js
3
+ * import { onRoomLeft } from '@amityco/ts-sdk'
4
+ * const dispose = onRoomLeft(room => {
5
+ * // ...
6
+ * })
7
+ * ```
8
+ *
9
+ * Fired when a user has left a {@link Amity.Room} locally
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 Room Events
15
+ */
16
+ export declare const onRoomLeft: (callback: Amity.Listener<Amity.InternalRoom>) => Amity.Unsubscriber;
17
+ //# sourceMappingURL=onRoomLeft.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onRoomLeft.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomLeft.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,aAAc,MAAM,QAAQ,CAAC,MAAM,YAAY,CAAC,KAAG,MAAM,YAS/E,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ```js
3
+ * import { onRoomParticipantRemoved } from '@amityco/ts-sdk'
4
+ * const dispose = onRoomParticipantRemoved(room => {
5
+ * // ...
6
+ * })
7
+ * ```
8
+ *
9
+ * Fired when a participant has been removed from a {@link Amity.Room} locally
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 Room Events
15
+ */
16
+ export declare const onRoomParticipantRemoved: (callback: Amity.Listener<Amity.InternalRoom>) => Amity.Unsubscriber;
17
+ //# sourceMappingURL=onRoomParticipantRemoved.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onRoomParticipantRemoved.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/events/onRoomParticipantRemoved.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,wBAAwB,aACzB,MAAM,QAAQ,CAAC,MAAM,YAAY,CAAC,KAC3C,MAAM,YAcR,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * ```js
3
+ * import { RoomRepository } from '@amityco/ts-sdk'
4
+ * const stream = await getStream('foobar')
5
+ * ```
6
+ *
7
+ * Fetches a {@link Amity.Channel} object linked with a current stream
8
+ *
9
+ * @param stream {@link Amity.Stream} that has linked live channel
10
+ * @returns the associated {@link Amity.Channel<'live'>} object
11
+ *
12
+ * @category Stream API
13
+ * @async
14
+ */
15
+ export declare const getLiveChat: (room: Amity.InternalRoom) => Promise<Amity.Channel<'live'> | undefined>;
16
+ //# sourceMappingURL=getLiveChat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getLiveChat.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/internalApi/getLiveChat.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,WAAW,SAChB,MAAM,YAAY,KACvB,QAAQ,MAAM,OAAO,CAAC,MAAM,CAAC,GAAG,SAAS,CAkC3C,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './getRoomById';
2
+ export * from './getLiveChat';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/internalApi/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/internalApi/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getRoom.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/observers/getRoom.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,OAAO,WACV,MAAM,YACJ,MAAM,kBAAkB,CAAC,MAAM,IAAI,CAAC,KAC7C,MAAM,YAQR,CAAC"}
1
+ {"version":3,"file":"getRoom.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/observers/getRoom.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,OAAO,WACV,MAAM,YACJ,MAAM,kBAAkB,CAAC,MAAM,IAAI,CAAC,KAC7C,MAAM,YAoBR,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { EnumRoomActions } from './enums';
2
2
  export declare const getRoomSubscription: () => {
3
- fn: (callback: Amity.Listener<Amity.RawRoom>) => Amity.Unsubscriber;
3
+ fn: (callback: Amity.Listener<Amity.Room>) => Amity.Unsubscriber;
4
4
  action: EnumRoomActions;
5
5
  }[];
6
6
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"communityLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/communityLinkedObject.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,qBAAqB,cAAe,MAAM,iBAAiB,KAAG,MAAM,SAyDhF,CAAC"}
1
+ {"version":3,"file":"communityLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/communityLinkedObject.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,qBAAqB,cAAe,MAAM,iBAAiB,KAAG,MAAM,SA4DhF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const eventLinkedObject: (event: Amity.InternalEvent) => Amity.Event;
2
+ //# sourceMappingURL=eventLinkObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventLinkObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/eventLinkObject.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB,UAAW,MAAM,aAAa,KAAG,WAqC9D,CAAC"}
@@ -16,5 +16,7 @@ export declare const LinkedObject: {
16
16
  invitation: (invitation: Amity.InternalInvitation) => Amity.Invitation;
17
17
  joinRequest: (joinRequest: Amity.InternalJoinRequest) => Amity.JoinRequest;
18
18
  channelMember: (channelMember: Amity.Membership<"channel">) => Amity.Membership<"channel">;
19
+ room: (room: Amity.RawRoom) => Amity.Room;
20
+ event: (event: Amity.RawEvent) => Amity.Event;
19
21
  };
20
22
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/index.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;CAkBxB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/index.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;CAoBxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"postLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/postLinkedObject.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,gBAAgB,SAAU,MAAM,YAAY,KAAG,MAAM,IAmGjE,CAAC"}
1
+ {"version":3,"file":"postLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/postLinkedObject.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,gBAAgB,SAAU,MAAM,YAAY,KAAG,MAAM,IAoGjE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const roomLinkedObject: (room: Amity.InternalRoom) => Amity.Room;
2
+ //# sourceMappingURL=roomLinkedObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roomLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/roomLinkedObject.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,gBAAgB,SAAU,MAAM,YAAY,KAAG,MAAM,IAoEjE,CAAC"}