(feat): adjust to new calls array from ident res
This commit is contained in:
parent
dd09ca943d
commit
8e5ed8217d
6 changed files with 27 additions and 11 deletions
|
|
@ -45,6 +45,7 @@ export type Contacts = z.infer<
|
|||
export type Communities = z.infer<
|
||||
typeof ttp.challenge_response.response.shape.communities
|
||||
>;
|
||||
export type Calls = z.infer<typeof ttp.challenge_response.response.shape.calls>;
|
||||
|
||||
// TTP
|
||||
export const ttp = {
|
||||
|
|
@ -67,9 +68,6 @@ export const ttp = {
|
|||
communities: z.array(z.object({})).optional(),
|
||||
contacts: z.array(
|
||||
z.object({
|
||||
calls: z
|
||||
.array(z.object({ call_id: z.string(), call_secret: z.base64() }))
|
||||
.optional(),
|
||||
last_message_at: z.number(),
|
||||
user_id: z.number(),
|
||||
last_message: z
|
||||
|
|
@ -81,6 +79,13 @@ export const ttp = {
|
|||
messages: z.array(message),
|
||||
}),
|
||||
),
|
||||
calls: z.array(
|
||||
z.object({
|
||||
call_id: z.string(),
|
||||
call_secret: z.base64().optional(),
|
||||
call_members: z.array(z.number()),
|
||||
}),
|
||||
),
|
||||
}),
|
||||
},
|
||||
get_user_data: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue