Skip to content

Commit 846164d

Browse files
SDK regeneration
1 parent 5c17cb2 commit 846164d

File tree

11 files changed

+43
-43
lines changed

11 files changed

+43
-43
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "python-intercom"
33

44
[tool.poetry]
55
name = "python-intercom"
6-
version = "5.0.1"
6+
version = "5.0.2"
77
description = ""
88
readme = "README.md"
99
authors = []

src/intercom/contacts/types/contact.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ class Contact(UncheckedBaseModel):
1717
Contacts represent your leads and users in Intercom.
1818
"""
1919

20-
type: typing.Optional[typing.Literal["contact"]] = pydantic.Field(default=None)
20+
type: typing.Literal["contact"] = pydantic.Field(default="contact")
2121
"""
2222
The type of object.
2323
"""
2424

25-
id: typing.Optional[str] = pydantic.Field(default=None)
25+
id: str = pydantic.Field()
2626
"""
2727
The unique identifier for the contact which is given by Intercom.
2828
"""
@@ -32,12 +32,12 @@ class Contact(UncheckedBaseModel):
3232
The unique identifier for the contact which is provided by the Client.
3333
"""
3434

35-
workspace_id: typing.Optional[str] = pydantic.Field(default=None)
35+
workspace_id: str = pydantic.Field()
3636
"""
3737
The id of the workspace which the contact belongs to.
3838
"""
3939

40-
role: typing.Optional[str] = pydantic.Field(default=None)
40+
role: str = pydantic.Field()
4141
"""
4242
The role of the contact.
4343
"""
@@ -67,27 +67,27 @@ class Contact(UncheckedBaseModel):
6767
The id of an admin that has been assigned account ownership of the contact.
6868
"""
6969

70-
has_hard_bounced: typing.Optional[bool] = pydantic.Field(default=None)
70+
has_hard_bounced: bool = pydantic.Field()
7171
"""
7272
Whether the contact has had an email sent to them hard bounce.
7373
"""
7474

75-
marked_email_as_spam: typing.Optional[bool] = pydantic.Field(default=None)
75+
marked_email_as_spam: bool = pydantic.Field()
7676
"""
7777
Whether the contact has marked an email sent to them as spam.
7878
"""
7979

80-
unsubscribed_from_emails: typing.Optional[bool] = pydantic.Field(default=None)
80+
unsubscribed_from_emails: bool = pydantic.Field()
8181
"""
8282
Whether the contact is unsubscribed from emails.
8383
"""
8484

85-
created_at: typing.Optional[int] = pydantic.Field(default=None)
85+
created_at: int = pydantic.Field()
8686
"""
8787
(UNIX timestamp) The time when the contact was created.
8888
"""
8989

90-
updated_at: typing.Optional[int] = pydantic.Field(default=None)
90+
updated_at: int = pydantic.Field()
9191
"""
9292
(UNIX timestamp) The time when the contact was last updated.
9393
"""

src/intercom/conversations/types/conversation.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ class Conversation(UncheckedBaseModel):
2626
Conversations are how you can communicate with users in Intercom. They are created when a contact replies to an outbound message, or when one admin directly sends a message to a single contact.
2727
"""
2828

29-
type: typing.Optional[str] = pydantic.Field(default=None)
29+
type: str = pydantic.Field()
3030
"""
3131
Always conversation.
3232
"""
3333

34-
id: typing.Optional[str] = pydantic.Field(default=None)
34+
id: str = pydantic.Field()
3535
"""
3636
The id representing the conversation.
3737
"""
@@ -41,12 +41,12 @@ class Conversation(UncheckedBaseModel):
4141
The title given to the conversation.
4242
"""
4343

44-
created_at: typing.Optional[int] = pydantic.Field(default=None)
44+
created_at: int = pydantic.Field()
4545
"""
4646
The time the conversation was created.
4747
"""
4848

49-
updated_at: typing.Optional[int] = pydantic.Field(default=None)
49+
updated_at: int = pydantic.Field()
5050
"""
5151
The last time the conversation was updated.
5252
"""
@@ -61,17 +61,17 @@ class Conversation(UncheckedBaseModel):
6161
If set this is the time in the future when this conversation will be marked as open. i.e. it will be in a snoozed state until this time. i.e. it will be in a snoozed state until this time.
6262
"""
6363

64-
open: typing.Optional[bool] = pydantic.Field(default=None)
64+
open: bool = pydantic.Field()
6565
"""
6666
Indicates whether a conversation is open (true) or closed (false).
6767
"""
6868

69-
state: typing.Optional[ConversationState] = pydantic.Field(default=None)
69+
state: ConversationState = pydantic.Field()
7070
"""
7171
Can be set to "open", "closed" or "snoozed".
7272
"""
7373

74-
read: typing.Optional[bool] = pydantic.Field(default=None)
74+
read: bool = pydantic.Field()
7575
"""
7676
Indicates whether a conversation has been read.
7777
"""
@@ -98,10 +98,10 @@ class Conversation(UncheckedBaseModel):
9898

9999
tags: typing.Optional[Tags] = None
100100
conversation_rating: typing.Optional[ConversationRating] = None
101-
source: typing.Optional[ConversationSource] = None
102-
contacts: typing.Optional[ConversationContacts] = None
101+
source: ConversationSource
102+
contacts: ConversationContacts
103103
teammates: typing.Optional[ConversationTeammates] = None
104-
custom_attributes: typing.Optional[CustomAttributes] = None
104+
custom_attributes: CustomAttributes
105105
first_contact_reply: typing.Optional[ConversationFirstContactReply] = None
106106
sla_applied: typing.Optional[SlaApplied] = None
107107
statistics: typing.Optional[ConversationStatistics] = None

src/intercom/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ def __init__(
2222

2323
def get_headers(self) -> typing.Dict[str, str]:
2424
headers: typing.Dict[str, str] = {
25-
"User-Agent": "python-intercom/5.0.1",
25+
"User-Agent": "python-intercom/5.0.2",
2626
"X-Fern-Language": "Python",
2727
"X-Fern-SDK-Name": "python-intercom",
28-
"X-Fern-SDK-Version": "5.0.1",
28+
"X-Fern-SDK-Version": "5.0.2",
2929
**(self.get_custom_headers() or {}),
3030
}
3131
headers["Authorization"] = f"Bearer {self._get_token()}"

src/intercom/data_events/types/data_event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class DataEvent(UncheckedBaseModel):
1212
Data events are used to notify Intercom of changes to your data.
1313
"""
1414

15-
type: typing.Optional[typing.Literal["event"]] = pydantic.Field(default=None)
15+
type: typing.Literal["event"] = pydantic.Field(default="event")
1616
"""
1717
The type of the object
1818
"""

src/intercom/messages/types/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Message(UncheckedBaseModel):
4343
The type of message that was sent. Can be email, inapp, facebook or twitter.
4444
"""
4545

46-
conversation_id: typing.Optional[str] = pydantic.Field(default=None)
46+
conversation_id: str = pydantic.Field()
4747
"""
4848
The associated conversation_id
4949
"""

src/intercom/notes/types/note.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ class Note(UncheckedBaseModel):
1414
Notes allow you to annotate and comment on your contacts.
1515
"""
1616

17-
type: typing.Optional[str] = pydantic.Field(default=None)
17+
type: str = pydantic.Field()
1818
"""
1919
String representing the object's type. Always has the value `note`.
2020
"""
2121

22-
id: typing.Optional[str] = pydantic.Field(default=None)
22+
id: str = pydantic.Field()
2323
"""
2424
The id of the note.
2525
"""
2626

27-
created_at: typing.Optional[int] = pydantic.Field(default=None)
27+
created_at: int = pydantic.Field()
2828
"""
2929
The time the note was created.
3030
"""
@@ -39,7 +39,7 @@ class Note(UncheckedBaseModel):
3939
Optional. Represents the Admin that created the note.
4040
"""
4141

42-
body: typing.Optional[str] = pydantic.Field(default=None)
42+
body: str = pydantic.Field()
4343
"""
4444
The body text of the note.
4545
"""

src/intercom/tickets/types/ticket.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,30 @@ class Ticket(UncheckedBaseModel):
1919
Tickets are how you track requests from your users.
2020
"""
2121

22-
type: typing.Optional[typing.Literal["ticket"]] = pydantic.Field(default=None)
22+
type: typing.Literal["ticket"] = pydantic.Field(default="ticket")
2323
"""
2424
Always ticket
2525
"""
2626

27-
id: typing.Optional[str] = pydantic.Field(default=None)
27+
id: str = pydantic.Field()
2828
"""
2929
The unique identifier for the ticket which is given by Intercom.
3030
"""
3131

32-
ticket_id: typing.Optional[str] = pydantic.Field(default=None)
32+
ticket_id: str = pydantic.Field()
3333
"""
3434
The ID of the Ticket used in the Intercom Inbox and Messenger. Do not use ticket_id for API queries.
3535
"""
3636

37-
category: typing.Optional[TicketCategory] = pydantic.Field(default=None)
37+
category: TicketCategory = pydantic.Field()
3838
"""
3939
Category of the Ticket.
4040
"""
4141

42-
ticket_attributes: typing.Optional[TicketCustomAttributes] = None
42+
ticket_attributes: TicketCustomAttributes
4343
ticket_state: typing.Optional[TicketState] = None
4444
ticket_type: typing.Optional[TicketType] = None
45-
contacts: typing.Optional[TicketContacts] = None
45+
contacts: TicketContacts
4646
admin_assignee_id: typing.Optional[str] = pydantic.Field(default=None)
4747
"""
4848
The id representing the admin assigned to the ticket.

src/intercom/types/multiple_filter_search_request.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ class Config:
3131
extra = pydantic.Extra.allow
3232

3333

34-
from .single_filter_search_request_value_two_item import SingleFilterSearchRequestValueTwoItem # noqa: E402, I001
35-
from .single_filter_search_request_operator import SingleFilterSearchRequestOperator # noqa: E402, I001
3634
from .single_filter_search_request_value import SingleFilterSearchRequestValue # noqa: E402, I001
37-
from .multiple_filter_search_request_value import MultipleFilterSearchRequestValue # noqa: E402, I001
3835
from .multiple_filter_search_request_operator import MultipleFilterSearchRequestOperator # noqa: E402, I001
36+
from .multiple_filter_search_request_value import MultipleFilterSearchRequestValue # noqa: E402, I001
37+
from .single_filter_search_request_value_two_item import SingleFilterSearchRequestValueTwoItem # noqa: E402, I001
38+
from .single_filter_search_request_operator import SingleFilterSearchRequestOperator # noqa: E402, I001
3939
from .single_filter_search_request import SingleFilterSearchRequest # noqa: E402, I001
4040

4141
update_forward_refs(

src/intercom/types/visitor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ class Visitor(UncheckedBaseModel):
1818
Visitors are useful for representing anonymous people that have not yet been identified. They usually represent website visitors. Visitors are not visible in Intercom platform. The Visitors resource provides methods to fetch, update, convert and delete.
1919
"""
2020

21-
type: typing.Optional[typing.Literal["visitor"]] = pydantic.Field(default=None)
21+
type: typing.Literal["visitor"] = pydantic.Field(default="visitor")
2222
"""
2323
Value is 'visitor'
2424
"""
2525

26-
id: typing.Optional[str] = pydantic.Field(default=None)
26+
id: str = pydantic.Field()
2727
"""
2828
The Intercom defined id representing the Visitor.
2929
"""
3030

31-
user_id: typing.Optional[str] = pydantic.Field(default=None)
31+
user_id: str = pydantic.Field()
3232
"""
3333
Automatically generated identifier for the Visitor.
3434
"""

0 commit comments

Comments
 (0)