stream-chat 8.33.1 → 8.34.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/browser.es.js +678 -584
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.full-bundle.min.js +1 -1
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/browser.js +678 -584
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +678 -584
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +678 -584
- package/dist/index.js.map +1 -1
- package/dist/types/client.d.ts +4 -1
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/types.d.ts +19 -0
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +19 -0
- package/src/types.ts +25 -0
package/src/types.ts
CHANGED
|
@@ -697,6 +697,30 @@ export type MuteUserResponse<StreamChatGenerics extends ExtendableGenerics = Def
|
|
|
697
697
|
own_user?: OwnUserResponse<StreamChatGenerics>;
|
|
698
698
|
};
|
|
699
699
|
|
|
700
|
+
export type BlockUserResponse = APIResponse & {
|
|
701
|
+
blocked_at: string;
|
|
702
|
+
blocked_by_user_id: string;
|
|
703
|
+
blocked_user_id: string;
|
|
704
|
+
};
|
|
705
|
+
|
|
706
|
+
export type BlockUserAPIResponse = APIResponse & {
|
|
707
|
+
blocked_users: BlockUserResponse[];
|
|
708
|
+
};
|
|
709
|
+
|
|
710
|
+
export type GetBlockedUsersAPIResponse = APIResponse & {
|
|
711
|
+
blocks: BlockedUser[];
|
|
712
|
+
};
|
|
713
|
+
export type BlockedUser = APIResponse & {
|
|
714
|
+
blocked_user: UserResponse;
|
|
715
|
+
blocked_user_id: string;
|
|
716
|
+
|
|
717
|
+
created_at: string;
|
|
718
|
+
|
|
719
|
+
user: UserResponse;
|
|
720
|
+
|
|
721
|
+
user_id: string;
|
|
722
|
+
};
|
|
723
|
+
|
|
700
724
|
export type OwnUserBase<StreamChatGenerics extends ExtendableGenerics = DefaultGenerics> = {
|
|
701
725
|
channel_mutes: ChannelMute<StreamChatGenerics>[];
|
|
702
726
|
devices: Device<StreamChatGenerics>[];
|
|
@@ -2040,6 +2064,7 @@ export type ChannelConfigWithInfo<
|
|
|
2040
2064
|
export type ChannelData<
|
|
2041
2065
|
StreamChatGenerics extends ExtendableGenerics = DefaultGenerics
|
|
2042
2066
|
> = StreamChatGenerics['channelType'] & {
|
|
2067
|
+
blocked?: boolean;
|
|
2043
2068
|
members?: string[];
|
|
2044
2069
|
name?: string;
|
|
2045
2070
|
};
|