__init__.py 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. """Async Python client library for the Chatto Connect API."""
  2. from chattolib.client import ChattoClient
  3. from chattolib.exceptions import ChattoAuthError, ChattoConnectError, ChattoError
  4. from chattolib.realtime import (
  5. ChattoRealtimeCloseError,
  6. ChattoRealtimeError,
  7. RealtimeConnection,
  8. RealtimeEvent,
  9. RealtimeSnapshot,
  10. stream_events,
  11. )
  12. try: # the bot framework needs the optional realtime extra
  13. from chattolib.bot import Bot, BotError
  14. except ImportError: # pragma: no cover - realtime extra not installed
  15. Bot = None # type: ignore[assignment,misc]
  16. BotError = None # type: ignore[assignment,misc]
  17. from chattolib.types import (
  18. ActiveCall,
  19. ActiveCallParticipant,
  20. AdminMember,
  21. AdminRole,
  22. AdminRoomLayoutGroup,
  23. Asset,
  24. AssetUpload,
  25. AssetUploadStatus,
  26. AssetUrl,
  27. BotAccount,
  28. BotApiKey,
  29. BotInfo,
  30. BotOutboundWebhook,
  31. BotWebhookFailure,
  32. CallMediaPublisherKind,
  33. CredentialLastUsedState,
  34. CustomUserStatus,
  35. DirectoryMember,
  36. ExternalIdentityFlowKind,
  37. ExternalIdentityProvider,
  38. FollowedThread,
  39. FollowedThreadsPage,
  40. ImageFitMode,
  41. ImageTransformOptions,
  42. InviteLink,
  43. InviteLinkStatus,
  44. LinkedExternalIdentity,
  45. LinkPreview,
  46. Message,
  47. MessageAttachment,
  48. MessageReaction,
  49. MessageSearchGroupBy,
  50. MessageSearchOrder,
  51. MessageSearchScope,
  52. MessageSearchState,
  53. MessageViewerState,
  54. Neighbor,
  55. NeighborhoodServer,
  56. NeighborhoodServersPage,
  57. NotificationLevel,
  58. NotificationMessageReference,
  59. NotificationOccurrence,
  60. NotificationOccurrencesPage,
  61. NotificationPolicy,
  62. NotificationRoomUnreadCount,
  63. NotificationSignal,
  64. OAuthClient,
  65. OauthClientPolicy,
  66. OauthClientSource,
  67. Page,
  68. PendingExternalIdentity,
  69. PermissionDecision,
  70. PermissionScopeKind,
  71. PinnedMessage,
  72. PinnedMessagesPage,
  73. PresencePreference,
  74. PresenceStatus,
  75. PrivilegedModeState,
  76. ProviderMetadata,
  77. ReadMarker,
  78. Role,
  79. Room,
  80. RoomDirectoryScope,
  81. RoomGroup,
  82. RoomKind,
  83. RoomReadState,
  84. RoomSummary,
  85. RoomSuspension,
  86. RoomThreadingMode,
  87. RoomViewerState,
  88. RoomWithViewerState,
  89. SearchResultsPage,
  90. SearchStatus,
  91. ServerConfig,
  92. ServerLogin,
  93. ServerProfile,
  94. ServerRuntimeConfig,
  95. SidebarLink,
  96. ThreadReadState,
  97. ThreadRootAuthorFilter,
  98. ThreadSearchContext,
  99. ThreadSummary,
  100. TimeFormat,
  101. TimelineEvent,
  102. TimelinePage,
  103. User,
  104. UserSettings,
  105. VerifiedEmail,
  106. VideoProcessing,
  107. VideoProcessingStatus,
  108. VideoVariant,
  109. ViewerUser,
  110. )
  111. __all__ = [
  112. "Bot",
  113. "BotError",
  114. "ChattoClient",
  115. "ChattoError",
  116. "ChattoConnectError",
  117. "ChattoAuthError",
  118. "ChattoRealtimeCloseError",
  119. "ChattoRealtimeError",
  120. "RealtimeConnection",
  121. "RealtimeEvent",
  122. "RealtimeSnapshot",
  123. "stream_events",
  124. "ActiveCall",
  125. "ActiveCallParticipant",
  126. "AdminMember",
  127. "AdminRole",
  128. "AdminRoomLayoutGroup",
  129. "Asset",
  130. "AssetUpload",
  131. "AssetUploadStatus",
  132. "AssetUrl",
  133. "BotAccount",
  134. "BotApiKey",
  135. "BotInfo",
  136. "BotOutboundWebhook",
  137. "BotWebhookFailure",
  138. "CallMediaPublisherKind",
  139. "CredentialLastUsedState",
  140. "CustomUserStatus",
  141. "DirectoryMember",
  142. "ExternalIdentityFlowKind",
  143. "ExternalIdentityProvider",
  144. "FollowedThread",
  145. "FollowedThreadsPage",
  146. "ImageFitMode",
  147. "ImageTransformOptions",
  148. "InviteLink",
  149. "InviteLinkStatus",
  150. "LinkPreview",
  151. "LinkedExternalIdentity",
  152. "Message",
  153. "MessageAttachment",
  154. "MessageReaction",
  155. "MessageSearchGroupBy",
  156. "MessageSearchOrder",
  157. "MessageSearchScope",
  158. "MessageSearchState",
  159. "MessageViewerState",
  160. "Neighbor",
  161. "NeighborhoodServer",
  162. "NeighborhoodServersPage",
  163. "NotificationLevel",
  164. "NotificationMessageReference",
  165. "NotificationOccurrence",
  166. "NotificationOccurrencesPage",
  167. "NotificationPolicy",
  168. "NotificationRoomUnreadCount",
  169. "NotificationSignal",
  170. "OAuthClient",
  171. "OauthClientPolicy",
  172. "OauthClientSource",
  173. "Page",
  174. "PendingExternalIdentity",
  175. "PermissionDecision",
  176. "PermissionScopeKind",
  177. "PinnedMessage",
  178. "PinnedMessagesPage",
  179. "PresencePreference",
  180. "PresenceStatus",
  181. "PrivilegedModeState",
  182. "ProviderMetadata",
  183. "ReadMarker",
  184. "Role",
  185. "Room",
  186. "RoomDirectoryScope",
  187. "RoomGroup",
  188. "RoomKind",
  189. "RoomReadState",
  190. "RoomSummary",
  191. "RoomSuspension",
  192. "RoomThreadingMode",
  193. "RoomViewerState",
  194. "RoomWithViewerState",
  195. "SearchResultsPage",
  196. "SearchStatus",
  197. "ServerConfig",
  198. "ServerLogin",
  199. "ServerProfile",
  200. "ServerRuntimeConfig",
  201. "SidebarLink",
  202. "ThreadReadState",
  203. "ThreadRootAuthorFilter",
  204. "ThreadSearchContext",
  205. "ThreadSummary",
  206. "TimeFormat",
  207. "TimelineEvent",
  208. "TimelinePage",
  209. "User",
  210. "UserSettings",
  211. "VerifiedEmail",
  212. "VideoProcessing",
  213. "VideoProcessingStatus",
  214. "VideoVariant",
  215. "ViewerUser",
  216. ]