Skip to content

feat(api): update via SDK Studio #256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ Methods:

# HelpCenter

Types:

```python
from python_intercom.types import HelpCenter, HelpCenterList
```

## Collections

Types:
Expand All @@ -104,16 +110,10 @@ Methods:

## HelpCenters

Types:

```python
from python_intercom.types.help_center import HelpCenter, HelpCenterList
```

Methods:

- <code title="get /help_center/help_centers/{id}">client.help_center.help_centers.<a href="./src/python_intercom/resources/help_center/help_centers.py">retrieve</a>(id) -> <a href="./src/python_intercom/types/help_center/help_center.py">HelpCenter</a></code>
- <code title="get /help_center/help_centers">client.help_center.help_centers.<a href="./src/python_intercom/resources/help_center/help_centers.py">list</a>() -> <a href="./src/python_intercom/types/help_center/help_center_list.py">HelpCenterList</a></code>
- <code title="get /help_center/help_centers">client.help_center.help_centers.<a href="./src/python_intercom/resources/help_center/help_centers.py">list</a>() -> <a href="./src/python_intercom/types/help_center_list.py">HelpCenterList</a></code>

# Companies

Expand Down
2 changes: 1 addition & 1 deletion src/python_intercom/resources/help_center/help_centers.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
async_to_streamed_response_wrapper,
)
from ..._base_client import make_request_options
from ...types.help_center_list import HelpCenterList
from ...types.help_center.help_center import HelpCenter
from ...types.help_center.help_center_list import HelpCenterList

__all__ = ["HelpCentersResource", "AsyncHelpCentersResource"]

Expand Down
2 changes: 2 additions & 0 deletions src/python_intercom/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
from .team_list import TeamList as TeamList
from .admin_list import AdminList as AdminList
from .data_export import DataExport as DataExport
from .help_center import HelpCenter as HelpCenter
from .ticket_list import TicketList as TicketList
from .ticket_type import TicketType as TicketType
from .article_list import ArticleList as ArticleList
Expand All @@ -48,6 +49,7 @@
from .data_attribute import DataAttribute as DataAttribute
from .contact_deleted import ContactDeleted as ContactDeleted
from .contact_archived import ContactArchived as ContactArchived
from .help_center_list import HelpCenterList as HelpCenterList
from .ticket_type_list import TicketTypeList as TicketTypeList
from .conversation_list import ConversationList as ConversationList
from .contact_unarchived import ContactUnarchived as ContactUnarchived
Expand Down
1 change: 0 additions & 1 deletion src/python_intercom/types/help_center/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from .collection import Collection as Collection
from .help_center import HelpCenter as HelpCenter
from .collection_list import CollectionList as CollectionList
from .help_center_list import HelpCenterList as HelpCenterList
from .deleted_collection import DeletedCollection as DeletedCollection
from .collection_create_params import CollectionCreateParams as CollectionCreateParams
from .collection_update_params import CollectionUpdateParams as CollectionUpdateParams
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from typing import List, Optional
from typing_extensions import Literal

from ..._models import BaseModel
from .help_center import HelpCenter
from .._models import BaseModel
from .help_center.help_center import HelpCenter

__all__ = ["HelpCenterList"]

Expand Down
3 changes: 2 additions & 1 deletion tests/api_resources/help_center/test_help_centers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

from tests.utils import assert_matches_type
from python_intercom import Intercom, AsyncIntercom
from python_intercom.types.help_center import HelpCenter, HelpCenterList
from python_intercom.types import HelpCenterList
from python_intercom.types.help_center import HelpCenter

base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")

Expand Down