-
Notifications
You must be signed in to change notification settings - Fork 143
Expand file tree
/
Copy pathdata_attribute.py
More file actions
71 lines (48 loc) · 2.11 KB
/
data_attribute.py
File metadata and controls
71 lines (48 loc) · 2.11 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
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
from typing_extensions import Literal
from .._models import BaseModel
__all__ = ["DataAttribute"]
class DataAttribute(BaseModel):
id: Optional[int] = None
"""The unique identifier for the data attribute which is given by Intercom.
Only available for custom attributes.
"""
admin_id: Optional[str] = None
"""Teammate who created the attribute. Only applicable to CDAs"""
api_writable: Optional[bool] = None
"""Can this attribute be updated through API"""
archived: Optional[bool] = None
"""Is this attribute archived. (Only applicable to CDAs)"""
created_at: Optional[int] = None
"""The time the attribute was created as a UTC Unix timestamp"""
custom: Optional[bool] = None
"""Set to true if this is a CDA"""
data_type: Optional[Literal["string", "integer", "float", "boolean", "date"]] = None
"""The data type of the attribute."""
description: Optional[str] = None
"""Readable description of the attribute."""
full_name: Optional[str] = None
"""Full name of the attribute.
Should match the name unless it's a nested attribute. We can split full_name on
`.` to access nested user object values.
"""
label: Optional[str] = None
"""Readable name of the attribute (i.e. name you see in the UI)"""
messenger_writable: Optional[bool] = None
"""Can this attribute be updated by the Messenger"""
model: Optional[Literal["contact", "company"]] = None
"""
Value is `contact` for user/lead attributes and `company` for company
attributes.
"""
name: Optional[str] = None
"""Name of the attribute."""
options: Optional[List[str]] = None
"""List of predefined options for attribute value."""
type: Optional[Literal["data_attribute"]] = None
"""Value is `data_attribute`."""
ui_writable: Optional[bool] = None
"""Can this attribute be updated in the UI"""
updated_at: Optional[int] = None
"""The time the attribute was last updated as a UTC Unix timestamp"""