UNPKG

braze-api

Version:

Track users, send messages, export data, and more with Braze API.

48 lines 1.94 kB
/** * A Connected Audience Object is a selector that identifies the audience to send the message to. It is composed of either a single Connected Audience Filter or several Connected Audience Filters in a logical expression using either AND or OR operators. * * {@link https://www.braze.com/docs/api/objects_filters/connected_audience/} */ export interface ConnectedAudienceObject { AND?: (ConnectedAudienceFilter | ConnectedAudienceObject)[]; OR?: (ConnectedAudienceFilter | ConnectedAudienceObject)[]; } interface ConnectedAudienceFilter { custom_attribute?: { custom_attribute_name: string; comparison: Comparison; value: string | number | boolean; }; push_subscription_status?: { comparison: 'is' | 'is_not'; value: 'opted_in' | 'subscribed' | 'unsubscribed'; }; email_subscription_status?: { comparison: 'is' | 'is_not'; value: 'opted_in' | 'subscribed' | 'unsubscribed'; }; last_used_app?: { comparison: 'after' | 'before'; value: string; }; } type Comparison = 'after' | 'before' | 'does_not_equal' | 'does_not_exist' | 'does_not_include_value' | 'does_not_match_regex' | 'equals' | 'exists' | 'greater_than' | 'greater_than_or_equal_to' | 'greater_than_x_days_ago' | 'greater_than_x_days_in_the_future' | 'includes_value' | 'less_than' | 'less_than_or_equal_to' | 'less_than_x_days_ago' | 'less_than_x_days_in_the_future' | 'matches_regex' | 'not_equal'; export type TriggerProperties = object; export type Properties = object; export type Attributes = object; export interface UserAlias { alias_name: string; alias_label: string; } /** * Schedule object specification. * * {@link https://www.braze.com/docs/api/objects_filters/schedule_object/} */ export interface ScheduleObject { time: string; in_local_time?: boolean; at_optimal_time?: boolean; } export {}; //# sourceMappingURL=types.d.ts.map