-
Notifications
You must be signed in to change notification settings - Fork 180
/
conversationResponse.ts
53 lines (46 loc) · 1.09 KB
/
conversationResponse.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { Conversation } from '../conversation';
import { APILinks } from '@vonage/server-client';
/**
* Represents a conversation as it is returned from the API.
*/
export type ConversationResponse = {
/**
* The public-facing name of the conversation.
*/
display_name?: string;
/**
* An image URL associated with the conversation.
*/
image_url?: string;
/**
*
* The last Event ID in this conversation. This ID can be used to retrieve a specific event.
*/
sequence_number: number;
/**
* The conversation's properties
*/
properties?: {
/**
* The conversation's time to leave.
*
* After how many seconds the conversation is deleted.
*/
ttl?: number;
/**
* The conversation's type.
*/
type: string;
/**
* The conversation's custom sort key.
*/
custom_sort_key: string;
/**
* Custom key-value pairs to be included with the conversation.
*/
custom_data: Record<string, unknown>;
},
} & Omit<
Conversation,
'sequenceNumber' | 'displayName' | 'imageUrl' | 'properties'
> & APILinks;