-
Notifications
You must be signed in to change notification settings - Fork 180
/
ViberVideoRequest.ts
63 lines (54 loc) · 1.25 KB
/
ViberVideoRequest.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
54
55
56
57
58
59
60
61
62
63
import { ViberService } from '../Channels';
/**
* Represents a request for sending a video message via the Viber Service channel.
*
* @group Viber
* @category Requests
*
* @remarks
* Vonage API's will return information using `snake_case`. This represents the
* pure response before the client will transform the keys into `camelCase`.
*/
export type ViberVideoRequest = {
/**
* A client-defined reference string for the message.
*/
client_ref: string;
/**
* The type of the message, which is 'video' for a video message.
*/
message_type: 'video';
/**
* The video content of the message, including its URL and optional caption and thumbnail URL.
*/
video: {
/**
* The URL of the video.
*/
url: string;
/**
* An optional caption for the video.
*/
caption?: string;
/**
* An optional URL for the video's thumbnail.
*/
thumb_url?: string;
};
/**
* The recipient's identifier.
*/
to: string;
/**
* The sender's identifier.
*/
from: string;
/**
* The channel through which the message will be sent, which is 'viber_service' for Viber Service.
*/
channel: 'viber_service';
/**
* The Viber service configuration.
*/
viber_service: ViberService;
}