@huni_ee/nazu 0.0.0-stage → 0.1.1

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 (280) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +72 -2
  3. package/dist/api/auth.d.ts +10 -0
  4. package/dist/api/auth.d.ts.map +1 -0
  5. package/dist/api/auth.js +81 -0
  6. package/dist/api/auth.js.map +1 -0
  7. package/dist/api/friends.d.ts +12 -0
  8. package/dist/api/friends.d.ts.map +1 -0
  9. package/dist/api/friends.js +126 -0
  10. package/dist/api/friends.js.map +1 -0
  11. package/dist/api/index.d.ts +5 -0
  12. package/dist/api/index.d.ts.map +1 -0
  13. package/dist/api/index.js +9 -0
  14. package/dist/api/index.js.map +1 -0
  15. package/dist/api/self-profile.d.ts +8 -0
  16. package/dist/api/self-profile.d.ts.map +1 -0
  17. package/dist/api/self-profile.js +89 -0
  18. package/dist/api/self-profile.js.map +1 -0
  19. package/dist/api/types.d.ts +133 -0
  20. package/dist/api/types.d.ts.map +1 -0
  21. package/dist/api/types.js +7 -0
  22. package/dist/api/types.js.map +1 -0
  23. package/dist/channel/channel.d.ts +122 -0
  24. package/dist/channel/channel.d.ts.map +1 -0
  25. package/dist/channel/channel.js +280 -0
  26. package/dist/channel/channel.js.map +1 -0
  27. package/dist/channel/index.d.ts +5 -0
  28. package/dist/channel/index.d.ts.map +1 -0
  29. package/dist/channel/index.js +9 -0
  30. package/dist/channel/index.js.map +1 -0
  31. package/dist/channel/media.d.ts +4 -0
  32. package/dist/channel/media.d.ts.map +1 -0
  33. package/dist/channel/media.js +42 -0
  34. package/dist/channel/media.js.map +1 -0
  35. package/dist/channel/normal-channel.d.ts +27 -0
  36. package/dist/channel/normal-channel.d.ts.map +1 -0
  37. package/dist/channel/normal-channel.js +39 -0
  38. package/dist/channel/normal-channel.js.map +1 -0
  39. package/dist/channel/open-channel.d.ts +25 -0
  40. package/dist/channel/open-channel.d.ts.map +1 -0
  41. package/dist/channel/open-channel.js +34 -0
  42. package/dist/channel/open-channel.js.map +1 -0
  43. package/dist/chat/attachment.d.ts +5 -0
  44. package/dist/chat/attachment.d.ts.map +1 -0
  45. package/dist/chat/attachment.js +90 -0
  46. package/dist/chat/attachment.js.map +1 -0
  47. package/dist/chat/chat-type.d.ts +31 -0
  48. package/dist/chat/chat-type.d.ts.map +1 -0
  49. package/dist/chat/chat-type.js +39 -0
  50. package/dist/chat/chat-type.js.map +1 -0
  51. package/dist/chat/chat.d.ts +15 -0
  52. package/dist/chat/chat.d.ts.map +1 -0
  53. package/dist/chat/chat.js +23 -0
  54. package/dist/chat/chat.js.map +1 -0
  55. package/dist/chat/feed.d.ts +231 -0
  56. package/dist/chat/feed.d.ts.map +1 -0
  57. package/dist/chat/feed.js +374 -0
  58. package/dist/chat/feed.js.map +1 -0
  59. package/dist/chat/index.d.ts +5 -0
  60. package/dist/chat/index.d.ts.map +1 -0
  61. package/dist/chat/index.js +9 -0
  62. package/dist/chat/index.js.map +1 -0
  63. package/dist/chat/message.d.ts +170 -0
  64. package/dist/chat/message.d.ts.map +1 -0
  65. package/dist/chat/message.js +345 -0
  66. package/dist/chat/message.js.map +1 -0
  67. package/dist/client/arisa-client.d.ts +150 -0
  68. package/dist/client/arisa-client.d.ts.map +1 -0
  69. package/dist/client/arisa-client.js +439 -0
  70. package/dist/client/arisa-client.js.map +1 -0
  71. package/dist/client/client-helper.d.ts +58 -0
  72. package/dist/client/client-helper.d.ts.map +1 -0
  73. package/dist/client/client-helper.js +270 -0
  74. package/dist/client/client-helper.js.map +1 -0
  75. package/dist/client/event-handler.d.ts +19 -0
  76. package/dist/client/event-handler.d.ts.map +1 -0
  77. package/dist/client/event-handler.js +243 -0
  78. package/dist/client/event-handler.js.map +1 -0
  79. package/dist/client/index.d.ts +4 -0
  80. package/dist/client/index.d.ts.map +1 -0
  81. package/dist/client/index.js +7 -0
  82. package/dist/client/index.js.map +1 -0
  83. package/dist/client/listeners.d.ts +34 -0
  84. package/dist/client/listeners.d.ts.map +1 -0
  85. package/dist/client/listeners.js +68 -0
  86. package/dist/client/listeners.js.map +1 -0
  87. package/dist/client/open-profile-watcher.d.ts +25 -0
  88. package/dist/client/open-profile-watcher.d.ts.map +1 -0
  89. package/dist/client/open-profile-watcher.js +85 -0
  90. package/dist/client/open-profile-watcher.js.map +1 -0
  91. package/dist/dashboard/server/client-adapter.d.ts +4 -0
  92. package/dist/dashboard/server/client-adapter.d.ts.map +1 -0
  93. package/dist/dashboard/server/client-adapter.js +277 -0
  94. package/dist/dashboard/server/client-adapter.js.map +1 -0
  95. package/dist/dashboard/server/credential.d.ts +5 -0
  96. package/dist/dashboard/server/credential.d.ts.map +1 -0
  97. package/dist/dashboard/server/credential.js +20 -0
  98. package/dist/dashboard/server/credential.js.map +1 -0
  99. package/dist/dashboard/server/handler.d.ts +8 -0
  100. package/dist/dashboard/server/handler.d.ts.map +1 -0
  101. package/dist/dashboard/server/handler.js +61 -0
  102. package/dist/dashboard/server/handler.js.map +1 -0
  103. package/dist/dashboard/server/http.d.ts +11 -0
  104. package/dist/dashboard/server/http.d.ts.map +1 -0
  105. package/dist/dashboard/server/http.js +60 -0
  106. package/dist/dashboard/server/http.js.map +1 -0
  107. package/dist/dashboard/server/index.d.ts +7 -0
  108. package/dist/dashboard/server/index.d.ts.map +1 -0
  109. package/dist/dashboard/server/index.js +252 -0
  110. package/dist/dashboard/server/index.js.map +1 -0
  111. package/dist/dashboard/server/posts.d.ts +5 -0
  112. package/dist/dashboard/server/posts.d.ts.map +1 -0
  113. package/dist/dashboard/server/posts.js +30 -0
  114. package/dist/dashboard/server/posts.js.map +1 -0
  115. package/dist/dashboard/server/role-store.d.ts +13 -0
  116. package/dist/dashboard/server/role-store.d.ts.map +1 -0
  117. package/dist/dashboard/server/role-store.js +60 -0
  118. package/dist/dashboard/server/role-store.js.map +1 -0
  119. package/dist/dashboard/server/routes/channels.d.ts +4 -0
  120. package/dist/dashboard/server/routes/channels.d.ts.map +1 -0
  121. package/dist/dashboard/server/routes/channels.js +262 -0
  122. package/dist/dashboard/server/routes/channels.js.map +1 -0
  123. package/dist/dashboard/server/routes/friends.d.ts +7 -0
  124. package/dist/dashboard/server/routes/friends.d.ts.map +1 -0
  125. package/dist/dashboard/server/routes/friends.js +130 -0
  126. package/dist/dashboard/server/routes/friends.js.map +1 -0
  127. package/dist/dashboard/server/routes/index.d.ts +8 -0
  128. package/dist/dashboard/server/routes/index.d.ts.map +1 -0
  129. package/dist/dashboard/server/routes/index.js +13 -0
  130. package/dist/dashboard/server/routes/index.js.map +1 -0
  131. package/dist/dashboard/server/routes/me.d.ts +4 -0
  132. package/dist/dashboard/server/routes/me.d.ts.map +1 -0
  133. package/dist/dashboard/server/routes/me.js +77 -0
  134. package/dist/dashboard/server/routes/me.js.map +1 -0
  135. package/dist/dashboard/server/routes/media-uploads.d.ts +8 -0
  136. package/dist/dashboard/server/routes/media-uploads.d.ts.map +1 -0
  137. package/dist/dashboard/server/routes/media-uploads.js +253 -0
  138. package/dist/dashboard/server/routes/media-uploads.js.map +1 -0
  139. package/dist/dashboard/server/routes/roles.d.ts +4 -0
  140. package/dist/dashboard/server/routes/roles.d.ts.map +1 -0
  141. package/dist/dashboard/server/routes/roles.js +57 -0
  142. package/dist/dashboard/server/routes/roles.js.map +1 -0
  143. package/dist/dashboard/server/routes/static.d.ts +4 -0
  144. package/dist/dashboard/server/routes/static.d.ts.map +1 -0
  145. package/dist/dashboard/server/routes/static.js +96 -0
  146. package/dist/dashboard/server/routes/static.js.map +1 -0
  147. package/dist/dashboard/server/routes/tools.d.ts +4 -0
  148. package/dist/dashboard/server/routes/tools.d.ts.map +1 -0
  149. package/dist/dashboard/server/routes/tools.js +355 -0
  150. package/dist/dashboard/server/routes/tools.js.map +1 -0
  151. package/dist/dashboard/server/self-profile.d.ts +19 -0
  152. package/dist/dashboard/server/self-profile.d.ts.map +1 -0
  153. package/dist/dashboard/server/self-profile.js +68 -0
  154. package/dist/dashboard/server/self-profile.js.map +1 -0
  155. package/dist/dashboard/server/sql.d.ts +3 -0
  156. package/dist/dashboard/server/sql.d.ts.map +1 -0
  157. package/dist/dashboard/server/sql.js +142 -0
  158. package/dist/dashboard/server/sql.js.map +1 -0
  159. package/dist/dashboard/server/types.d.ts +125 -0
  160. package/dist/dashboard/server/types.d.ts.map +1 -0
  161. package/dist/dashboard/server/types.js +7 -0
  162. package/dist/dashboard/server/types.js.map +1 -0
  163. package/dist/dashboard/server/validation.d.ts +9 -0
  164. package/dist/dashboard/server/validation.d.ts.map +1 -0
  165. package/dist/dashboard/server/validation.js +43 -0
  166. package/dist/dashboard/server/validation.js.map +1 -0
  167. package/dist/dashboard/web/assets/dashboard-Bta0crBA.js +3 -0
  168. package/dist/dashboard/web/assets/index-0JKvA2WI.js +2 -0
  169. package/dist/dashboard/web/assets/index-DIlIxwIo.css +1 -0
  170. package/dist/dashboard/web/assets/theme-init.js +32 -0
  171. package/dist/dashboard/web/fonts/PretendardVariable.woff2 +0 -0
  172. package/dist/dashboard/web/icons/profile-certified.svg +12 -0
  173. package/dist/dashboard/web/images/favicon.ico +0 -0
  174. package/dist/dashboard/web/index.html +16 -0
  175. package/dist/dashboard/web/licenses/LICENSE-FontAwesome-Free +165 -0
  176. package/dist/dashboard/web/licenses/LICENSE-Fuwari-MIT +21 -0
  177. package/dist/dashboard/web/licenses/LICENSE-KiwiTalk-APACHE +201 -0
  178. package/dist/dashboard/web/licenses/LICENSE-Lucide +43 -0
  179. package/dist/dashboard/web/licenses/LICENSE-MageIcons-APACHE +202 -0
  180. package/dist/dashboard/web/licenses/LICENSE-MaterialSymbols-APACHE +202 -0
  181. package/dist/dashboard/web/licenses/LICENSE-Pretendard-OFL +104 -0
  182. package/dist/dashboard/web/licenses/LICENSE-RemixIcon-APACHE +201 -0
  183. package/dist/dashboard/web/licenses/LICENSE-Tabler-MIT +21 -0
  184. package/dist/decorators/index.d.ts +47 -0
  185. package/dist/decorators/index.d.ts.map +1 -0
  186. package/dist/decorators/index.js +95 -0
  187. package/dist/decorators/index.js.map +1 -0
  188. package/dist/grpc/arisa-grpc.d.ts +62 -0
  189. package/dist/grpc/arisa-grpc.d.ts.map +1 -0
  190. package/dist/grpc/arisa-grpc.js +242 -0
  191. package/dist/grpc/arisa-grpc.js.map +1 -0
  192. package/dist/grpc/generated/arisa.pb.d.ts +493 -0
  193. package/dist/grpc/generated/arisa.pb.d.ts.map +1 -0
  194. package/dist/grpc/generated/arisa.pb.js +3315 -0
  195. package/dist/grpc/generated/arisa.pb.js.map +1 -0
  196. package/dist/grpc/generated/google/protobuf/empty.pb.d.ts +38 -0
  197. package/dist/grpc/generated/google/protobuf/empty.pb.d.ts.map +1 -0
  198. package/dist/grpc/generated/google/protobuf/empty.pb.js +49 -0
  199. package/dist/grpc/generated/google/protobuf/empty.pb.js.map +1 -0
  200. package/dist/grpc/grpc-store.d.ts +32 -0
  201. package/dist/grpc/grpc-store.d.ts.map +1 -0
  202. package/dist/grpc/grpc-store.js +376 -0
  203. package/dist/grpc/grpc-store.js.map +1 -0
  204. package/dist/grpc/store.d.ts +77 -0
  205. package/dist/grpc/store.d.ts.map +1 -0
  206. package/dist/grpc/store.js +7 -0
  207. package/dist/grpc/store.js.map +1 -0
  208. package/dist/index.d.ts +12 -0
  209. package/dist/index.d.ts.map +1 -0
  210. package/dist/index.js +12 -0
  211. package/dist/index.js.map +1 -0
  212. package/dist/kakao-link/index.d.ts +2 -0
  213. package/dist/kakao-link/index.d.ts.map +1 -0
  214. package/dist/kakao-link/index.js +7 -0
  215. package/dist/kakao-link/index.js.map +1 -0
  216. package/dist/kakao-link/kakao-link.d.ts +112 -0
  217. package/dist/kakao-link/kakao-link.d.ts.map +1 -0
  218. package/dist/kakao-link/kakao-link.js +334 -0
  219. package/dist/kakao-link/kakao-link.js.map +1 -0
  220. package/dist/types/channel.d.ts +83 -0
  221. package/dist/types/channel.d.ts.map +1 -0
  222. package/dist/types/channel.js +7 -0
  223. package/dist/types/channel.js.map +1 -0
  224. package/dist/types/chat.d.ts +233 -0
  225. package/dist/types/chat.d.ts.map +1 -0
  226. package/dist/types/chat.js +7 -0
  227. package/dist/types/chat.js.map +1 -0
  228. package/dist/types/client.d.ts +26 -0
  229. package/dist/types/client.d.ts.map +1 -0
  230. package/dist/types/client.js +7 -0
  231. package/dist/types/client.js.map +1 -0
  232. package/dist/types/event.d.ts +66 -0
  233. package/dist/types/event.d.ts.map +1 -0
  234. package/dist/types/event.js +7 -0
  235. package/dist/types/event.js.map +1 -0
  236. package/dist/types/user.d.ts +76 -0
  237. package/dist/types/user.d.ts.map +1 -0
  238. package/dist/types/user.js +7 -0
  239. package/dist/types/user.js.map +1 -0
  240. package/dist/user/bot-user.d.ts +16 -0
  241. package/dist/user/bot-user.d.ts.map +1 -0
  242. package/dist/user/bot-user.js +35 -0
  243. package/dist/user/bot-user.js.map +1 -0
  244. package/dist/user/event-user.d.ts +78 -0
  245. package/dist/user/event-user.d.ts.map +1 -0
  246. package/dist/user/event-user.js +123 -0
  247. package/dist/user/event-user.js.map +1 -0
  248. package/dist/user/index.d.ts +8 -0
  249. package/dist/user/index.d.ts.map +1 -0
  250. package/dist/user/index.js +12 -0
  251. package/dist/user/index.js.map +1 -0
  252. package/dist/user/normal-user.d.ts +18 -0
  253. package/dist/user/normal-user.d.ts.map +1 -0
  254. package/dist/user/normal-user.js +42 -0
  255. package/dist/user/normal-user.js.map +1 -0
  256. package/dist/user/open-user.d.ts +20 -0
  257. package/dist/user/open-user.d.ts.map +1 -0
  258. package/dist/user/open-user.js +73 -0
  259. package/dist/user/open-user.js.map +1 -0
  260. package/dist/user/user-self.d.ts +24 -0
  261. package/dist/user/user-self.d.ts.map +1 -0
  262. package/dist/user/user-self.js +72 -0
  263. package/dist/user/user-self.js.map +1 -0
  264. package/dist/user/user.d.ts +47 -0
  265. package/dist/user/user.d.ts.map +1 -0
  266. package/dist/user/user.js +108 -0
  267. package/dist/user/user.js.map +1 -0
  268. package/dist/utils/database/index.d.ts +6 -0
  269. package/dist/utils/database/index.d.ts.map +1 -0
  270. package/dist/utils/database/index.js +90 -0
  271. package/dist/utils/database/index.js.map +1 -0
  272. package/dist/utils/id/index.d.ts +3 -0
  273. package/dist/utils/id/index.d.ts.map +1 -0
  274. package/dist/utils/id/index.js +11 -0
  275. package/dist/utils/id/index.js.map +1 -0
  276. package/dist/utils/json/index.d.ts +6 -0
  277. package/dist/utils/json/index.d.ts.map +1 -0
  278. package/dist/utils/json/index.js +25 -0
  279. package/dist/utils/json/index.js.map +1 -0
  280. package/package.json +83 -4
@@ -0,0 +1,233 @@
1
+ import type { ChannelRaw } from './channel.js';
2
+ import type { UserRaw } from './user.js';
3
+ /** 메세지가 속한 범위 */
4
+ export type MessageScopeName = 'unknown' | 'channel' | 'thread' | 'all';
5
+ /**
6
+ * 메세지 첨부 데이터. 키는 카카오톡이 보낸 원본 그대로이며, 아래에 없는 키가 더 있을 수 있습니다.
7
+ * 메세지 종류별 첨부 데이터는 이 타입을 확장합니다.
8
+ */
9
+ export interface Attachment extends Record<string, unknown> {
10
+ /** 외치기 메세지 여부 */
11
+ readonly shout?: boolean;
12
+ /** 멘션 목록 */
13
+ readonly mentions?: {
14
+ /** 멘션된 유저 ID */
15
+ readonly user_id: string;
16
+ /** 이 유저가 메세지의 몇 번째 멘션인지 담은 목록. 1부터 셉니다. */
17
+ readonly at: number[];
18
+ /** `@`를 뺀 멘션 이름 길이 */
19
+ readonly len: number;
20
+ }[];
21
+ /** `@all`로 전체를 멘션했을 때만 있습니다. 한 명씩 한 멘션은 `mentions`에 들어갑니다. */
22
+ readonly all_mention?: {
23
+ /** 멘션 위치. `mentions`의 `at`과 달리 숫자 하나 */
24
+ readonly at: number;
25
+ };
26
+ /** 메세지에 들어 있는 URL 목록 */
27
+ readonly urls?: string[];
28
+ }
29
+ /** 메세지 수정 기록 한 건 */
30
+ export interface MessageRevisionRaw {
31
+ /** 수정 번호 */
32
+ readonly revision: number;
33
+ /** 이 수정의 메세지 내용 */
34
+ readonly message: string;
35
+ }
36
+ /** 메세지 원본 데이터 */
37
+ export interface MessageChatRaw {
38
+ /** 메세지 로그 ID */
39
+ readonly logId: string;
40
+ /** 스레드 ID. 스레드에 속하지 않으면 `null` */
41
+ readonly threadId: string | null;
42
+ /** 원본 메세지 타입 번호 */
43
+ readonly type: number;
44
+ /** 메세지가 속한 범위 */
45
+ readonly scope: MessageScopeName;
46
+ /** 메세지 내용 */
47
+ readonly message: string;
48
+ /** 첨부 데이터 */
49
+ readonly attachment: Attachment;
50
+ /** 수정 기록 */
51
+ readonly modifyLog: MessageRevisionRaw[];
52
+ /** 보낸 유저. 정보가 없으면 `null` */
53
+ readonly user: UserRaw | null;
54
+ /** 메세지가 온 채팅방 */
55
+ readonly channel: ChannelRaw;
56
+ }
57
+ /** 멘션이 있는 메세지의 첨부 데이터 */
58
+ export interface MentionAttachment extends Attachment {
59
+ /** 멘션 목록 */
60
+ readonly mentions?: {
61
+ /** 멘션된 유저 ID */
62
+ readonly user_id: string;
63
+ /** 이 유저가 메세지의 몇 번째 멘션인지 담은 목록. 1부터 셉니다. */
64
+ readonly at: number[];
65
+ /** `@`를 뺀 멘션 이름 길이 */
66
+ readonly len: number;
67
+ }[];
68
+ /** `@all`로 전체를 멘션했을 때만 있습니다. 한 명씩 한 멘션은 `mentions`에 들어갑니다. */
69
+ readonly all_mention?: {
70
+ /** 멘션 위치. `mentions`의 `at`과 달리 숫자 하나 */
71
+ readonly at: number;
72
+ };
73
+ }
74
+ /** 사진 메세지의 첨부 데이터 */
75
+ export interface PhotoAttachment extends Attachment {
76
+ readonly cmt?: string;
77
+ readonly cs: string;
78
+ readonly expire: number;
79
+ /** 원본 사진 높이 */
80
+ readonly h: number;
81
+ readonly k: string;
82
+ readonly mt: string;
83
+ readonly s: number;
84
+ /** 미리보기 높이 */
85
+ readonly thumbnailHeight: number;
86
+ /** 미리보기 이미지 주소 */
87
+ readonly thumbnailUrl: string;
88
+ /** 미리보기 너비 */
89
+ readonly thumbnailWidth: number;
90
+ /** 사진 주소 */
91
+ readonly url: string;
92
+ /** 원본 사진 너비 */
93
+ readonly w: number;
94
+ }
95
+ /** 동영상 메세지의 첨부 데이터 */
96
+ export interface VideoAttachment extends Attachment {
97
+ readonly cmt?: string;
98
+ readonly cs: string;
99
+ readonly csh?: string;
100
+ readonly d: number;
101
+ readonly dh?: number;
102
+ readonly expire: number;
103
+ /** 동영상 높이 */
104
+ readonly h: number;
105
+ readonly hh?: number;
106
+ readonly s: number;
107
+ readonly sh?: number;
108
+ readonly tk: string;
109
+ readonly tkh?: string;
110
+ /** 동영상 주소 */
111
+ readonly url: string;
112
+ readonly urlh?: string;
113
+ /** 동영상 너비 */
114
+ readonly w: number;
115
+ readonly wh?: number;
116
+ }
117
+ /** 음성 메세지의 첨부 데이터 */
118
+ export interface AudioAttachment extends Attachment {
119
+ readonly d: number;
120
+ readonly expire: number;
121
+ readonly k: string;
122
+ readonly s: number;
123
+ /** 음성 파일 주소 */
124
+ readonly url: string;
125
+ }
126
+ /** 이모티콘 메세지의 첨부 데이터 */
127
+ export interface EmoticonAttachment extends Attachment {
128
+ /** 이모티콘 대체 텍스트 */
129
+ readonly alt: string;
130
+ readonly height?: string | number;
131
+ readonly msg?: string;
132
+ /** 이모티콘 이름 */
133
+ readonly name: string;
134
+ /** 이모티콘 경로 */
135
+ readonly path: string;
136
+ readonly sound?: string;
137
+ readonly type?: string;
138
+ readonly welcome?: boolean;
139
+ readonly width?: string | number;
140
+ readonly s?: string | number;
141
+ readonly xconVersion?: string | number;
142
+ }
143
+ /** 미니 이모티콘이 들어 있는 메세지의 첨부 데이터 */
144
+ export interface MiniEmoticonAttachment {
145
+ /** 메세지 안의 미니 이모티콘 목록 */
146
+ readonly items: {
147
+ readonly at: number[];
148
+ readonly id: string;
149
+ readonly len: number;
150
+ }[];
151
+ readonly total_item: number;
152
+ readonly total_len: number;
153
+ }
154
+ /** 지도 메세지의 첨부 데이터 */
155
+ export interface MapAttachment {
156
+ /** 위도 */
157
+ readonly lat: number;
158
+ /** 경도 */
159
+ readonly lng: number;
160
+ /** 장소 이름. 장소를 공유하지 않았으면 `null` */
161
+ readonly name: string | null;
162
+ /** 주소. 없으면 `null` */
163
+ readonly address: string | null;
164
+ /** 카카오맵 링크 */
165
+ readonly url: string;
166
+ }
167
+ /** 프로필 공유 메세지의 첨부 데이터 */
168
+ export interface ProfileAttachment extends Attachment {
169
+ readonly accessPermit: string;
170
+ /** 큰 프로필 이미지 주소 */
171
+ readonly fullProfileImageUrl: string;
172
+ /** 닉네임 */
173
+ readonly nickName: string;
174
+ /** 프로필 이미지 주소 */
175
+ readonly profileImageUrl: string;
176
+ /** 상태 메세지 */
177
+ readonly statusMessage?: string;
178
+ /** 유저 ID */
179
+ readonly userId: string;
180
+ }
181
+ /** 파일 메세지의 첨부 데이터 */
182
+ export interface FileAttachment extends Attachment {
183
+ readonly cs: string;
184
+ readonly expire: number;
185
+ readonly k: string;
186
+ /** 파일 이름 */
187
+ readonly name: string;
188
+ readonly s: number;
189
+ /** 파일 크기 */
190
+ readonly size: number;
191
+ /** 파일 주소 */
192
+ readonly url: string;
193
+ }
194
+ /** 여러 장의 사진을 묶은 메세지의 첨부 데이터 */
195
+ export interface MultiPhotoAttachment extends Attachment {
196
+ readonly cmtl: string[];
197
+ readonly csl: string[];
198
+ readonly ctMeta?: string;
199
+ readonly expire: number;
200
+ readonly hl: number[];
201
+ /** 사진 주소 목록 */
202
+ readonly imageUrls: string[];
203
+ readonly kl: string[];
204
+ readonly lastFeedId?: string;
205
+ readonly mtl: string[];
206
+ readonly sl: number[];
207
+ /** 미리보기 높이 목록 */
208
+ readonly thumbnailHeights: number[];
209
+ /** 미리보기 이미지 주소 목록 */
210
+ readonly thumbnailUrls: string[];
211
+ /** 미리보기 너비 목록 */
212
+ readonly thumbnailWidths: number[];
213
+ readonly wl: number[];
214
+ }
215
+ /** 답장 메세지의 첨부 데이터. `src_`로 시작하는 키는 답장 대상 메세지의 정보 */
216
+ export interface ReplyAttachment extends Attachment {
217
+ readonly attach_only?: boolean;
218
+ /** 답장에 붙은 이모티콘 데이터 */
219
+ readonly attach_content?: EmoticonAttachment;
220
+ readonly attach_type?: number;
221
+ readonly src_linkId: string;
222
+ /** 답장 대상 메세지의 로그 ID. `getSource()`가 이 값으로 메세지를 찾습니다. */
223
+ readonly src_logId: string;
224
+ /** 답장 대상 메세지 내용 */
225
+ readonly src_message: string;
226
+ /** 답장 대상 메세지 타입 번호 */
227
+ readonly src_type: number;
228
+ /** 답장 대상 메세지를 보낸 유저 ID */
229
+ readonly src_userId: string;
230
+ /** 답장 대상 메세지에서 멘션된 유저 ID 목록. 원본 멘션 객체의 `user_id`만 중복 없이 모았습니다. */
231
+ readonly src_mentions?: string[];
232
+ }
233
+ //# sourceMappingURL=chat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/types/chat.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,iBAAiB;AACjB,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,KAAK,CAAC;AAExE;;;GAGG;AACH,MAAM,WAAW,UAAW,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACzD,iBAAiB;IACjB,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY;IACZ,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAClB,gBAAgB;QAChB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,2CAA2C;QAC3C,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC;QACtB,sBAAsB;QACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;KACtB,EAAE,CAAC;IACJ,8DAA8D;IAC9D,QAAQ,CAAC,WAAW,CAAC,EAAE;QACrB,wCAAwC;QACxC,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C,cAAc,CAAC,EAAE,kBAAkB,CAAC;IAC7C,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,wDAAwD;IACxD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,mBAAmB;IACnB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,sBAAsB;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,0BAA0B;IAC1B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,kEAAkE;IAClE,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CAClC"}
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Created on Fri Nov 13 2026
3
+ *
4
+ * Copyright (c) huni-ee. Licensed under the Apache-2.0 License.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=chat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/types/chat.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,26 @@
1
+ /** {@link ArisaClient} 생성자 옵션 */
2
+ export type ArisaClientOptions = {
3
+ /**
4
+ * Arisa gRPC 서버 주소. 비우거나 공백만 넣으면 기본값을 씁니다.
5
+ * @defaultValue `127.0.0.1:3000`
6
+ */
7
+ readonly target?: string;
8
+ /** 이벤트의 `UserSelf`에 표시할 내 이름. 대시보드에는 쓰지 않습니다. */
9
+ readonly botName?: string;
10
+ /**
11
+ * 오픈프로필 변경을 확인하는 간격(밀리초)
12
+ * @defaultValue `1500`
13
+ */
14
+ readonly openProfileIntervalMs?: number;
15
+ /**
16
+ * `start()`할 때 대시보드도 켤지 여부
17
+ * @defaultValue `true`
18
+ */
19
+ readonly dashboard?: boolean;
20
+ /**
21
+ * 대시보드 포트
22
+ * @defaultValue `3001`
23
+ */
24
+ readonly dashboardPort?: number;
25
+ };
26
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/types/client.ts"],"names":[],"mappings":"AAMA,iCAAiC;AACjC,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,iDAAiD;IACjD,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Created on Fri Nov 13 2026
3
+ *
4
+ * Copyright (c) huni-ee. Licensed under the Apache-2.0 License.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/types/client.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,66 @@
1
+ import type { Channel } from '../channel/channel.js';
2
+ import type { DeleteFeedChat, EditFeedChat, FeedChat, HideFeedChat, InviteFeedChat, JoinFeedChat, KickFeedChat, LeaveFeedChat, MemberTypeChangeFeedChat } from '../chat/feed.js';
3
+ import type { MessageChat } from '../chat/message.js';
4
+ /** `error` 이벤트로 전달되는 오류 정보 */
5
+ export type ErrorContext = {
6
+ /** 오류가 난 이벤트 이름. 연결 중 오류는 `connect` */
7
+ readonly event: string;
8
+ /** 오류가 난 리스너 함수. 리스너 밖에서 난 오류는 `null` */
9
+ readonly func: unknown;
10
+ /** 발생한 오류 */
11
+ readonly exception: unknown;
12
+ /** 오류가 났을 때 리스너에 전달된 인자 */
13
+ readonly args: readonly unknown[];
14
+ };
15
+ /** `open_profile_change` 이벤트의 변경 전후 오픈프로필 */
16
+ export type OpenProfileChangeUser = {
17
+ /** 유저 ID */
18
+ readonly id: string;
19
+ /** 프로필 이름 */
20
+ readonly name: string;
21
+ /** 프로필 이미지 주소. 없으면 `null` */
22
+ readonly profileImageUrl: string | null;
23
+ };
24
+ /** 오픈프로필에서 바뀐 항목. 이름과 이미지가 모두 바뀌면 두 메서드 모두 `true` */
25
+ export type OpenProfileChange = {
26
+ /** 프로필 이름 변경 여부 */
27
+ isNickname(): boolean;
28
+ /** 프로필 이미지 주소 변경 여부 */
29
+ isProfileImage(): boolean;
30
+ };
31
+ /** `message` 이벤트 리스너. 메세지가 도착하면 호출합니다. */
32
+ export type MessageListener = (chat: MessageChat, channel: Channel) => void | Promise<void>;
33
+ /**
34
+ * `error` 이벤트 리스너. 이벤트 처리나 연결 중 오류가 나면 호출합니다.
35
+ * 오류 리스너가 없거나 리스너 안에서 다시 오류가 나면 콘솔에 출력합니다.
36
+ */
37
+ export type ErrorListener = (error: ErrorContext) => void | Promise<void>;
38
+ /**
39
+ * `feed` 이벤트 리스너. 입장, 퇴장, 삭제 같은 피드를 모두 받습니다.
40
+ * 알 수 없는 피드는 `UnknownFeedChat`으로 전달합니다.
41
+ */
42
+ export type FeedListener = (chat: FeedChat, channel: Channel) => void | Promise<void>;
43
+ /** `delete` 이벤트 리스너. 메세지가 삭제되면 호출하고, 원본을 찾지 못하면 호출하지 않습니다. */
44
+ export type DeleteListener = (chat: DeleteFeedChat, channel: Channel) => void | Promise<void>;
45
+ /** `edit` 이벤트 리스너. 메세지가 수정되면 호출하고, 수정 전 메세지를 찾지 못하면 호출하지 않습니다. */
46
+ export type EditListener = (chat: EditFeedChat, channel: Channel) => void | Promise<void>;
47
+ /** `hide` 이벤트 리스너. 방장이나 부방장이 메세지를 가리면 호출합니다. */
48
+ export type HideListener = (chat: HideFeedChat, channel: Channel) => void | Promise<void>;
49
+ /** `join` 이벤트 리스너. 오픈채팅방에 유저가 들어오면 호출합니다. */
50
+ export type JoinListener = (chat: JoinFeedChat, channel: Channel) => void | Promise<void>;
51
+ /** `invite` 이벤트 리스너. 일반 채팅방에 유저가 초대되면 호출합니다. */
52
+ export type InviteListener = (chat: InviteFeedChat, channel: Channel) => void | Promise<void>;
53
+ /** `leave` 이벤트 리스너. 유저가 채팅방을 나가면 호출합니다. */
54
+ export type LeaveListener = (chat: LeaveFeedChat, channel: Channel) => void | Promise<void>;
55
+ /** `kick` 이벤트 리스너. 오픈채팅방에서 유저가 강퇴되면 호출합니다. 팀채팅 강퇴는 `leave`로 받습니다. */
56
+ export type KickListener = (chat: KickFeedChat, channel: Channel) => void | Promise<void>;
57
+ /** `member_type_change` 이벤트 리스너. 방장이 바뀌거나 부방장이 임명·해제되면 호출합니다. */
58
+ export type MemberTypeChangeListener = (chat: MemberTypeChangeFeedChat, channel: Channel) => void | Promise<void>;
59
+ /**
60
+ * `open_profile_change` 이벤트 리스너. 오픈프로필 이름이나 이미지가 바뀌면 호출합니다.
61
+ *
62
+ * 리스너가 있는 동안 {@link ArisaClientOptions.openProfileIntervalMs} 간격으로 프로필을 확인합니다.
63
+ * 확인 사이에 여러 번 바뀌면 중간 변경은 놓칠 수 있습니다.
64
+ */
65
+ export type OpenProfileChangeListener = (beforeUser: OpenProfileChangeUser, afterUser: OpenProfileChangeUser, channel: Channel, change: OpenProfileChange) => void | Promise<void>;
66
+ //# sourceMappingURL=event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/types/event.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,wBAAwB,EACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEtD,8B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created on Fri Nov 13 2026
3
+ *
4
+ * Copyright (c) huni-ee. Licensed under the Apache-2.0 License.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/types/event.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,76 @@
1
+ /** 일반 채팅방 멤버 종류. `member` 일반 멤버, `host` 방장, `moderator` 부방장 */
2
+ export type NormalMemberType = 'member' | 'host' | 'moderator';
3
+ /** 오픈채팅 프로필 종류 */
4
+ export type OpenProfileType = 'unknown' | 'default' | 'kakao' | 'open';
5
+ /** 오픈채팅방 멤버 종류 */
6
+ export type OpenMemberType = 'unknown' | 'host' | 'member' | 'moderator' | 'bot';
7
+ /** 유저 원본 데이터 */
8
+ export type UserRaw = {
9
+ /** 유저 ID */
10
+ readonly id: string;
11
+ /** 내 계정 여부 */
12
+ readonly isMine: boolean;
13
+ /** 유저 이름 */
14
+ readonly name: string;
15
+ /** 친구 정보에서 내가 지정한 이름. 없으면 `null` */
16
+ readonly customName: string | null;
17
+ /** 프로필 이미지 주소. 없으면 `null` */
18
+ readonly profileImageUrl: string | null;
19
+ };
20
+ /** 일반 채팅방 유저의 원본 데이터 */
21
+ export type NormalUserRaw = UserRaw & {
22
+ /** 채팅방 멤버 종류 */
23
+ readonly memberType: NormalMemberType;
24
+ /** 프로필 종류. 일반 채팅방은 항상 `default` */
25
+ readonly profileType: 'default';
26
+ };
27
+ /** 오픈채팅방 유저의 원본 데이터 */
28
+ export type OpenUserRaw = UserRaw & {
29
+ /** 오픈채팅방 안의 멤버 정보 */
30
+ readonly openChannel: {
31
+ /** 오픈채팅방 멤버 종류 */
32
+ readonly memberType: OpenMemberType;
33
+ /** 오픈채팅 프로필 종류 */
34
+ readonly profileType: OpenProfileType;
35
+ /** 오픈프로필 링크 ID */
36
+ readonly profileLinkId: string;
37
+ };
38
+ };
39
+ /** 채팅방에 추가된 챗봇의 원본 데이터 */
40
+ export type BotUserRaw = UserRaw & {
41
+ /** 멤버 종류. 항상 `bot` */
42
+ readonly memberType: 'bot';
43
+ /** 프로필 종류. 항상 `default` */
44
+ readonly profileType: 'default';
45
+ };
46
+ /** 내 계정의 원본 데이터. 일반 채팅방이면 `memberType`과 `profileType`을, 오픈채팅방이면 `openChannel`을 가집니다. */
47
+ export type UserSelfRaw = UserRaw & ({
48
+ /** 채팅방 멤버 종류 */
49
+ readonly memberType: OpenMemberType;
50
+ /** 프로필 종류 */
51
+ readonly profileType: 'default';
52
+ } | {
53
+ /** 오픈채팅방 안의 멤버 정보 */
54
+ readonly openChannel: {
55
+ /** 오픈채팅방 멤버 종류 */
56
+ readonly memberType: OpenMemberType;
57
+ /** 오픈채팅 프로필 종류 */
58
+ readonly profileType: OpenProfileType;
59
+ /** 오픈프로필 링크 ID */
60
+ readonly profileLinkId: string;
61
+ };
62
+ });
63
+ /** 내 카카오톡 프로필 */
64
+ export type SelfProfile = {
65
+ /** 내 유저 ID */
66
+ readonly userId: string;
67
+ /** 닉네임 */
68
+ readonly nickname: string;
69
+ /** 상태 메세지 */
70
+ readonly statusMessage: string;
71
+ /** 원본 크기 프로필 이미지 주소 */
72
+ readonly originalProfileImageUrl: string;
73
+ /** 기본 프로필 여부 */
74
+ readonly main: true;
75
+ };
76
+ //# sourceMappingURL=user.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/types/user.ts"],"names":[],"mappings":"AAMA,+DAA+D;AAC/D,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,MAAM,GAAG,WAAW,CAAC;AAE/D,kBAAkB;AAClB,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAEvE,kBAAkB;AAClB,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,WAAW,GAAG,KAAK,CAAC;AAEjF,gBAAgB;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AAC,WAAW,EAAE;QACpB,kBAAkB;QAClB,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;QACpC,kBAAkB;QAClB,QAAQ,CAAC,WAAW,EAAE,eAAe,CAAC;QACtC,kBAAkB;QAClB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;KAChC,CAAC;CACH,CACJ,CAAC;AAEJ,iBAAiB;AACjB,MAAM,MAAM,WAAW,GAAG;IACxB,cAAc;IACd,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,UAAU;IACV,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,aAAa;IACb,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,uBAAuB;IACvB,QAAQ,CAAC,uBAAuB,EAAE,MAAM,CAAC;IACzC,gBAAgB;IAChB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;CACrB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Created on Fri Nov 13 2026
3
+ *
4
+ * Copyright (c) huni-ee. Licensed under the Apache-2.0 License.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/types/user.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,16 @@
1
+ import type { Member } from '../grpc/generated/arisa.pb.js';
2
+ import type { BotUserRaw } from '../types/user.js';
3
+ import { User } from './user.js';
4
+ /** 채팅방에 추가된 챗봇 */
5
+ export declare class BotUser extends User {
6
+ /** 멤버 종류. 항상 `bot` */
7
+ readonly memberType: "bot";
8
+ /** 프로필 종류. 항상 `default` */
9
+ readonly profileType: "default";
10
+ constructor(id: string, name: string, profileImageUrl: string | null);
11
+ get raw(): BotUserRaw;
12
+ /** @internal 서버의 멤버 데이터로 챗봇 유저를 만듭니다. */
13
+ static from(member: Member): BotUser;
14
+ isBotUser(): this is BotUser;
15
+ }
16
+ //# sourceMappingURL=bot-user.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bot-user.d.ts","sourceRoot":"","sources":["../../src/user/bot-user.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,kBAAkB;AAClB,qBAAa,OAAQ,SAAQ,IAAI;IAC/B,sBAAsB;IACtB,QAAQ,CAAC,UAAU,EAAG,KAAK,CAAU;IACrC,2BAA2B;IAC3B,QAAQ,CAAC,WAAW,EAAG,SAAS,CAAU;gBAE9B,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,IAAI;IAIpE,IAAa,GAAG,IAAI,UAAU,CAU7B;IAED,yCAAyC;IACzC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAI3B,SAAS,IAAI,IAAI,IAAI,OAAO;CAGtC"}
@@ -0,0 +1,35 @@
1
+ /*
2
+ * Created on Fri Nov 13 2026
3
+ *
4
+ * Copyright (c) huni-ee. Licensed under the Apache-2.0 License.
5
+ */
6
+ import { User } from './user.js';
7
+ /** 채팅방에 추가된 챗봇 */
8
+ export class BotUser extends User {
9
+ /** 멤버 종류. 항상 `bot` */
10
+ memberType = 'bot';
11
+ /** 프로필 종류. 항상 `default` */
12
+ profileType = 'default';
13
+ constructor(id, name, profileImageUrl) {
14
+ super(id, name, profileImageUrl);
15
+ }
16
+ get raw() {
17
+ return {
18
+ id: this.id,
19
+ isMine: false,
20
+ name: this.name,
21
+ customName: null,
22
+ profileImageUrl: this.profileImageUrl,
23
+ memberType: 'bot',
24
+ profileType: 'default'
25
+ };
26
+ }
27
+ /** @internal 서버의 멤버 데이터로 챗봇 유저를 만듭니다. */
28
+ static from(member) {
29
+ return new BotUser(member.id, member.nickname, member.profileImageUrl ?? null);
30
+ }
31
+ isBotUser() {
32
+ return true;
33
+ }
34
+ }
35
+ //# sourceMappingURL=bot-user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bot-user.js","sourceRoot":"","sources":["../../src/user/bot-user.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,kBAAkB;AAClB,MAAM,OAAO,OAAQ,SAAQ,IAAI;IAC/B,sBAAsB;IACb,UAAU,GAAG,KAAc,CAAC;IACrC,2BAA2B;IAClB,WAAW,GAAG,SAAkB,CAAC;IAE1C,YAAY,EAAU,EAAE,IAAY,EAAE,eAA8B;QAClE,KAAK,CAAC,EAAE,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC;IACnC,CAAC;IAED,IAAa,GAAG;QACd,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,UAAU,EAAE,IAAI;YAChB,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,UAAU,EAAE,KAAK;YACjB,WAAW,EAAE,SAAS;SACvB,CAAC;IACJ,CAAC;IAED,yCAAyC;IACzC,MAAM,CAAC,IAAI,CAAC,MAAc;QACxB,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,eAAe,IAAI,IAAI,CAAC,CAAC;IACjF,CAAC;IAEQ,SAAS;QAChB,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -0,0 +1,78 @@
1
+ import type { FeedMessageHidden, FeedUser, Member } from '../grpc/generated/arisa.pb.js';
2
+ import { User } from './user.js';
3
+ /** 메세지를 삭제한 유저를 담는 객체. `User`를 상속하지 않습니다. */
4
+ export declare class DeleteUser {
5
+ /** 삭제한 유저. 정보가 없으면 `null` */
6
+ readonly deletedBy: User | null;
7
+ constructor(deletedBy: User | null);
8
+ }
9
+ /** 메세지를 수정한 유저를 담는 객체. `User`를 상속하지 않습니다. */
10
+ export declare class EditUser {
11
+ /** 수정한 유저. 정보가 없으면 `null` */
12
+ readonly editedBy: User | null;
13
+ constructor(editedBy: User | null);
14
+ }
15
+ /** 오픈채팅방에 들어온 유저를 담는 객체. `User`를 상속하지 않습니다. */
16
+ export declare class JoinUser {
17
+ /** 들어온 유저 */
18
+ readonly joinedUser: User;
19
+ /** @internal */
20
+ constructor(user: FeedUser);
21
+ }
22
+ /** 채팅방을 나간 유저를 담는 객체. `User`를 상속하지 않습니다. */
23
+ export declare class LeaveUser {
24
+ /** 나간 유저 */
25
+ readonly leftUser: User;
26
+ /** @internal */
27
+ constructor(user: FeedUser);
28
+ }
29
+ /** 강퇴한 유저와 강퇴된 유저를 담는 객체. `User`를 상속하지 않습니다. */
30
+ export declare class KickUser {
31
+ /** 강퇴한 유저. 정보가 없으면 `null` */
32
+ readonly kickedBy: User | null;
33
+ /** 강퇴된 유저 */
34
+ readonly kickedUser: User;
35
+ /** @internal */
36
+ constructor(kickedBy: User | null, kickedUser: FeedUser);
37
+ }
38
+ /** 초대한 유저와 초대된 유저를 담는 객체. `User`를 상속하지 않습니다. */
39
+ export declare class InviteUser {
40
+ /** 초대한 유저. 정보가 없으면 `null` */
41
+ readonly invitedBy: User | null;
42
+ /** 초대된 유저 목록 */
43
+ readonly invitedUsers: [User, ...User[]];
44
+ constructor(invitedBy: User | null, invitedUsers: [User, ...User[]]);
45
+ /** @internal */
46
+ static from(invitedBy: User | null, users: readonly FeedUser[], loadUsers: (userIds: string[]) => Promise<User[]>): Promise<InviteUser | null>;
47
+ }
48
+ /** 메세지를 가린 유저와 가려진 메세지의 작성자를 담는 객체. `User`를 상속하지 않습니다. */
49
+ export declare class HideUser {
50
+ /** 메세지를 가린 유저. 정보가 없으면 `null` */
51
+ readonly hiddenBy: User | null;
52
+ /** 가려진 메세지를 보낸 유저 목록. 찾지 못한 유저는 `null` */
53
+ readonly hiddenUsers: [User | null, ...(User | null)[]];
54
+ constructor(hiddenBy: User | null, hiddenUsers: [User | null, ...(User | null)[]]);
55
+ /** @internal */
56
+ static from(hiddenBy: User | null, data: FeedMessageHidden, loadUser: (member: Member | undefined) => Promise<User | null>): Promise<HideUser | null>;
57
+ }
58
+ /** 부방장 임명·해제나 방장 위임에 관련된 유저를 담는 객체. `User`를 상속하지 않습니다. */
59
+ export declare class MemberTypeChangeUser {
60
+ readonly promotedUser?: User | undefined;
61
+ readonly demotedUser?: User | undefined;
62
+ readonly previousHost?: User | undefined;
63
+ readonly newHost?: User | undefined;
64
+ /**
65
+ * @param promotedUser 부방장으로 임명된 유저
66
+ * @param demotedUser 부방장에서 해제된 유저
67
+ * @param previousHost 이전 방장
68
+ * @param newHost 새 방장
69
+ */
70
+ private constructor();
71
+ /** 부방장으로 임명된 유저 정보를 만듭니다. */
72
+ static promote(user: User): MemberTypeChangeUser;
73
+ /** 부방장에서 해제된 유저 정보를 만듭니다. */
74
+ static demote(user: User): MemberTypeChangeUser;
75
+ /** 이전 방장과 새 방장 정보를 만듭니다. */
76
+ static handover(previousHost: User, newHost: User): MemberTypeChangeUser;
77
+ }
78
+ //# sourceMappingURL=event-user.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-user.d.ts","sourceRoot":"","sources":["../../src/user/event-user.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAEzF,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,6CAA6C;AAC7C,qBAAa,UAAU;IACrB,6BAA6B;IAC7B,QAAQ,CAAC,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;gBAEpB,SAAS,EAAE,IAAI,GAAG,IAAI;CAGnC;AAED,6CAA6C;AAC7C,qBAAa,QAAQ;IACnB,6BAA6B;IAC7B,QAAQ,CAAC,QAAQ,EAAE,IAAI,GAAG,I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