-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): update via SDK Studio (#271)
- Loading branch information
1 parent
038341c
commit c29da78
Showing
14 changed files
with
126 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from typing import List, Union, Optional | ||
from typing_extensions import Literal | ||
|
||
from .newsfeed import Newsfeed | ||
from ..._models import BaseModel | ||
from .news_item import NewsItem | ||
from ..shared.cursor_pages import CursorPages | ||
|
||
__all__ = ["NewsfeedListResponse", "Data"] | ||
|
||
Data = Union[NewsItem, Newsfeed] | ||
|
||
|
||
class NewsfeedListResponse(BaseModel): | ||
data: Optional[List[Data]] = None | ||
"""An array of Objects""" | ||
|
||
pages: Optional[CursorPages] = None | ||
""" | ||
Cursor-based pagination is a technique used in the Intercom API to navigate | ||
through large amounts of data. A "cursor" or pointer is used to keep track of | ||
the current position in the result set, allowing the API to return the data in | ||
small chunks or "pages" as needed. | ||
""" | ||
|
||
total_count: Optional[int] = None | ||
"""A count of the total number of objects.""" | ||
|
||
type: Optional[Literal["list", "conversation.list"]] = None | ||
"""The type of object""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from __future__ import annotations | ||
|
||
from .item_list_response import ItemListResponse as ItemListResponse |
32 changes: 32 additions & 0 deletions
32
src/python_intercom/types/news/newsfeeds/item_list_response.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from typing import List, Union, Optional | ||
from typing_extensions import Literal | ||
|
||
from ..newsfeed import Newsfeed | ||
from ...._models import BaseModel | ||
from ..news_item import NewsItem | ||
from ...shared.cursor_pages import CursorPages | ||
|
||
__all__ = ["ItemListResponse", "Data"] | ||
|
||
Data = Union[NewsItem, Newsfeed] | ||
|
||
|
||
class ItemListResponse(BaseModel): | ||
data: Optional[List[Data]] = None | ||
"""An array of Objects""" | ||
|
||
pages: Optional[CursorPages] = None | ||
""" | ||
Cursor-based pagination is a technique used in the Intercom API to navigate | ||
through large amounts of data. A "cursor" or pointer is used to keep track of | ||
the current position in the result set, allowing the API to return the data in | ||
small chunks or "pages" as needed. | ||
""" | ||
|
||
total_count: Optional[int] = None | ||
"""A count of the total number of objects.""" | ||
|
||
type: Optional[Literal["list", "conversation.list"]] = None | ||
"""The type of object""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.