@vibexnpm/talkx 8.11.0 → 8.12.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.
- package/dist/index.d.ts +9 -1
- package/dist/talkflow-sdk.esm.js +1 -1
- package/dist/talkflow-sdk.esm.js.map +1 -1
- package/dist/talkflow-sdk.standalone.js +1 -1
- package/dist/talkflow-sdk.standalone.js.map +1 -1
- package/dist/talkflow-sdk.umd.js +1 -1
- package/dist/talkflow-sdk.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/chat/ChatClient.js +4 -2
- package/types/__typetests__/files.types.ts +10 -9
- package/types/index.d.ts +9 -1
package/dist/index.d.ts
CHANGED
|
@@ -1290,10 +1290,18 @@ export interface ApiEnvelope<T> {
|
|
|
1290
1290
|
message?: string;
|
|
1291
1291
|
}
|
|
1292
1292
|
|
|
1293
|
+
/**
|
|
1294
|
+
* 파일 종류 — {@link ChatFile.category} 와 {@link ChatFileListParams.type} 이 같은 값을 쓴다.
|
|
1295
|
+
* {@code FILE} 은 «기타» — 이미지·동영상·음성·문서가 아닌 파일(zip 등).
|
|
1296
|
+
*/
|
|
1297
|
+
export type ChatFileCategory = 'IMAGE' | 'VIDEO' | 'AUDIO' | 'DOCUMENT' | 'FILE';
|
|
1298
|
+
|
|
1293
1299
|
/** {@link ChatClient.getFiles} 파라미터 — 파일함 한 페이지. */
|
|
1294
1300
|
export interface ChatFileListParams {
|
|
1295
1301
|
/** 방 하나로 거르기. 생략하면 내가 지금 참여 중인 방 전부. 참여하지 않은 방이면 403. */
|
|
1296
1302
|
roomId?: string;
|
|
1303
|
+
/** 종류로 거르기 — 생략하면 전부. 방·종류를 바꾸면 커서({@code lastId}·{@code lastSortValue}) 없이 처음부터 부른다. */
|
|
1304
|
+
type?: ChatFileCategory;
|
|
1297
1305
|
/** 페이지 크기(파일 수). 기본 50, max 100. */
|
|
1298
1306
|
size?: number;
|
|
1299
1307
|
/** 직전 응답의 {@code lastId} 그대로 — 불투명 값이라 만들어 쓰지 않는다. */
|
|
@@ -1326,7 +1334,7 @@ export interface ChatFile {
|
|
|
1326
1334
|
/** 올린 시각(epoch millis). */
|
|
1327
1335
|
uploadedAt: number;
|
|
1328
1336
|
/** 종류 — 파일 MIME 기준, 채팅 첨부 분류와 같다. */
|
|
1329
|
-
category:
|
|
1337
|
+
category: ChatFileCategory;
|
|
1330
1338
|
/** 파일명({@code fileName})·다운로드 링크({@code fileUrl})·MIME({@code fileType})·크기·썸네일 — 채팅 메시지 첨부와 같은 모양. */
|
|
1331
1339
|
file: FileMetaData;
|
|
1332
1340
|
}
|