-
Notifications
You must be signed in to change notification settings - Fork 143
Expand file tree
/
Copy pathvisitor.py
More file actions
175 lines (110 loc) · 4.59 KB
/
visitor.py
File metadata and controls
175 lines (110 loc) · 4.59 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import Dict, List, Optional
from typing_extensions import Literal
from .._models import BaseModel
from .shared.company import Company
__all__ = ["Visitor", "Avatar", "Companies", "LocationData", "Segments", "SocialProfiles", "Tags", "TagsTag"]
class Avatar(BaseModel):
image_url: Optional[str] = None
"""This object represents the avatar associated with the visitor."""
type: Optional[str] = None
class Companies(BaseModel):
companies: Optional[List[Company]] = None
type: Optional[Literal["company.list"]] = None
"""The type of the object"""
class LocationData(BaseModel):
city_name: Optional[str] = None
"""The city name of the visitor."""
continent_code: Optional[str] = None
"""The continent code of the visitor."""
country_code: Optional[str] = None
"""The country code of the visitor."""
country_name: Optional[str] = None
"""The country name of the visitor."""
postal_code: Optional[str] = None
"""The postal code of the visitor."""
region_name: Optional[str] = None
"""The region name of the visitor."""
timezone: Optional[str] = None
"""The timezone of the visitor."""
type: Optional[str] = None
class Segments(BaseModel):
segments: Optional[List[str]] = None
type: Optional[Literal["segment.list"]] = None
"""The type of the object"""
class SocialProfiles(BaseModel):
social_profiles: Optional[List[str]] = None
type: Optional[Literal["social_profile.list"]] = None
"""The type of the object"""
class TagsTag(BaseModel):
id: Optional[str] = None
"""The id of the tag."""
name: Optional[str] = None
"""The name of the tag."""
type: Optional[Literal["tag"]] = None
"""The type of the object"""
class Tags(BaseModel):
tags: Optional[List[TagsTag]] = None
type: Optional[Literal["tag.list"]] = None
"""The type of the object"""
class Visitor(BaseModel):
id: Optional[str] = None
"""The Intercom defined id representing the Visitor."""
anonymous: Optional[bool] = None
"""Identifies if this visitor is anonymous."""
app_id: Optional[str] = None
"""The id of the app the visitor is associated with."""
avatar: Optional[Avatar] = None
companies: Optional[Companies] = None
created_at: Optional[int] = None
"""The time the Visitor was added to Intercom."""
custom_attributes: Optional[Dict[str, str]] = None
"""The custom attributes you have set on the Visitor."""
do_not_track: Optional[bool] = None
"""Identifies if this visitor has do not track enabled."""
email: Optional[str] = None
"""The email of the visitor."""
has_hard_bounced: Optional[bool] = None
"""Identifies if this visitor has had a hard bounce."""
las_request_at: Optional[int] = None
"""The time the Lead last recorded making a request."""
location_data: Optional[LocationData] = None
marked_email_as_spam: Optional[bool] = None
"""Identifies if this visitor has marked an email as spam."""
name: Optional[str] = None
"""The name of the visitor."""
owner_id: Optional[str] = None
"""The id of the admin that owns the Visitor."""
phone: Optional[str] = None
"""The phone number of the visitor."""
pseudonym: Optional[str] = None
"""The pseudonym of the visitor."""
referrer: Optional[str] = None
"""The referer of the visitor."""
remote_created_at: Optional[int] = None
"""The time the Visitor was added to Intercom."""
segments: Optional[Segments] = None
session_count: Optional[int] = None
"""The number of sessions the Visitor has had."""
signed_up_at: Optional[int] = None
"""The time the Visitor signed up for your product."""
social_profiles: Optional[SocialProfiles] = None
tags: Optional[Tags] = None
type: Optional[str] = None
"""Value is 'visitor'"""
unsubscribed_from_emails: Optional[bool] = None
"""Whether the Visitor is unsubscribed from emails."""
updated_at: Optional[int] = None
"""The last time the Visitor was updated."""
user_id: Optional[str] = None
"""Automatically generated identifier for the Visitor."""
utm_campaign: Optional[str] = None
"""The utm_campaign of the visitor."""
utm_content: Optional[str] = None
"""The utm_content of the visitor."""
utm_medium: Optional[str] = None
"""The utm_medium of the visitor."""
utm_source: Optional[str] = None
"""The utm_source of the visitor."""
utm_term: Optional[str] = None
"""The utm_term of the visitor."""