Skip to content

Commit 2dbc6f6

Browse files
louis70109xingoxu
andauthored
Support usert-mention API and add narrowcast properties (#277)
* feat: make box's contents can empty and add animated property * Modify to original * feat: narrowcast properties and user mention Co-authored-by: xingo xu <xingoxu@users.noreply.github.com> Co-authored-by: xingoxu <xingoxu@gmail.com>
1 parent 6396d88 commit 2dbc6f6

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

lib/types.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,28 @@ export type TextEventMessage = {
386386
productId: string;
387387
emojiId: string;
388388
}[];
389+
/**
390+
* Object containing the contents of the mentioned user.
391+
*/
392+
mention?: {
393+
/**
394+
* Mentioned user information.
395+
* Max: 20 mentions
396+
*/
397+
mentionees: {
398+
/**
399+
* Index position of the user mention for a character in `text`,
400+
* with the first character being at position 0.
401+
*/
402+
index: number;
403+
/**
404+
* The length of the text of the mentioned user. For a mention `@example`,
405+
* 8 is the length.
406+
*/
407+
length: number;
408+
userId: string;
409+
}[];
410+
};
389411
} & EventMessageBase;
390412

391413
export type ContentProvider<WithPreview extends boolean = true> =
@@ -2499,6 +2521,8 @@ export type NarrowcastProgressResponse = (
24992521
successCount: number;
25002522
failureCount: number;
25012523
targetCount: string;
2524+
acceptedTime: string;
2525+
completedTime: string;
25022526
})
25032527
) & {
25042528
errorCode?: 1 | 2;

0 commit comments

Comments
 (0)