UNPKG

2.84 kBTypeScriptView Raw
1/**
2 * LINE Messaging API
3 * This document describes LINE Messaging API.
4 *
5 * The version of the OpenAPI document: 0.0.1
6 *
7 *
8 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 * https://openapi-generator.tech
10 * Do not edit the class manually.
11 */
12import { AudienceGroupType } from "./audienceGroupType";
13/**
14 * Create audience for uploading user IDs (by JSON)
15 */
16export type CreateAudienceGroupResponse = {
17 /**
18 * The audience ID.
19 *
20 * @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-upload-audience-group">audienceGroupId Documentation</a>
21 */
22 audienceGroupId?: number;
23 /**
24 * How the audience was created. `MESSAGING_API`: An audience created with Messaging API.
25 *
26 * @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-upload-audience-group">createRoute Documentation</a>
27 */
28 createRoute?: CreateAudienceGroupResponse.CreateRouteEnum;
29 /**
30 *
31 * @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-upload-audience-group">type Documentation</a>
32 */
33 type?: AudienceGroupType;
34 /**
35 * The audience\'s name.
36 *
37 * @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-upload-audience-group">description Documentation</a>
38 */
39 description?: string;
40 /**
41 * When the audience was created (in UNIX time).
42 *
43 * @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-upload-audience-group">created Documentation</a>
44 */
45 created?: number;
46 /**
47 * Audience\'s update permission. Audiences linked to the same channel will be READ_WRITE. `READ`: Can use only. `READ_WRITE`: Can use and update.
48 *
49 * @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-upload-audience-group">permission Documentation</a>
50 */
51 permission?: CreateAudienceGroupResponse.PermissionEnum;
52 /**
53 * Time of audience expiration. Only returned for specific audiences.
54 *
55 * @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-upload-audience-group">expireTimestamp Documentation</a>
56 */
57 expireTimestamp?: number;
58 /**
59 * The value indicating the type of account to be sent, as specified when creating the audience for uploading user IDs. One of: `true`: Accounts are specified with IFAs. `false` (default): Accounts are specified with user IDs.
60 *
61 * @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-upload-audience-group">isIfaAudience Documentation</a>
62 */
63 isIfaAudience?: boolean;
64};
65export declare namespace CreateAudienceGroupResponse {
66 type CreateRouteEnum = "MESSAGING_API";
67 type PermissionEnum = "READ" | "READ_WRITE";
68}