Skip to content

Commit b565f5d

Browse files
release: 4.0.0-alpha.1 (#258)
* chore(internal): version bump (#254) * feat(api): update via SDK Studio (#255) * feat(api): update via SDK Studio (#256) * feat(api): update via SDK Studio (#257) * release: 4.0.0-alpha.1 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 7727515 commit b565f5d

File tree

13 files changed

+60
-16
lines changed

13 files changed

+60
-16
lines changed

.github/workflows/release-doctor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Release Doctor
22
on:
33
pull_request:
4+
branches:
5+
- v3
46
workflow_dispatch:
57

68
jobs:

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0"
2+
".": "4.0.0-alpha.1"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 108
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/intercom%2Fintercom-a202b2b4aa0e356eb61376a3bf484132be2e9e3bff3796e1fe4606ab2a3734fd.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/intercom%2Fintercom-61fd2f21fb0fb6a94c5e87ea423d828bf37d1dd90ca1511eda9b91d58ccb5d39.yml

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
11
# Changelog
22

3+
## 4.0.0-alpha.1 (2024-07-19)
4+
5+
Full Changelog: [v0.1.0...v4.0.0-alpha.1](https://github.com/intercom/python-intercom/compare/v0.1.0...v4.0.0-alpha.1)
6+
7+
### Features
8+
9+
* **api:** OpenAPI spec update ([7b99dc3](https://github.com/intercom/python-intercom/commit/7b99dc3ea6ce3c61845510a06f313624d92db628))
10+
* **api:** OpenAPI spec update ([632e659](https://github.com/intercom/python-intercom/commit/632e659f6a0694e1c262e77d8a1da664e67488fa))
11+
* **api:** OpenAPI spec update ([a561dff](https://github.com/intercom/python-intercom/commit/a561dffa1225722412e78890ea2668f58a3d6aa9))
12+
* **api:** update via SDK Studio ([44d360a](https://github.com/intercom/python-intercom/commit/44d360a2e477e2e3cbc2441a2f1ef6dae51e6331))
13+
* **api:** update via SDK Studio ([4f981c5](https://github.com/intercom/python-intercom/commit/4f981c5818eb35a61bcd98952c30322cce6b4e77))
14+
* **api:** update via SDK Studio ([1802937](https://github.com/intercom/python-intercom/commit/1802937e0c6c1366861f4d54d62335b132a6aca8))
15+
* **api:** update via SDK Studio ([c5ee578](https://github.com/intercom/python-intercom/commit/c5ee5781b766f90017b9e40e040dc6ee4010b403))
16+
* **api:** update via SDK Studio ([8d1d513](https://github.com/intercom/python-intercom/commit/8d1d5135cd2ad5a9e92116611e42e5ce471e4c55))
17+
* **api:** update via SDK Studio ([4b7275f](https://github.com/intercom/python-intercom/commit/4b7275faddb82e20d8beb21ad5d1edf8d1ff4e39))
18+
* **api:** update via SDK Studio ([cd48024](https://github.com/intercom/python-intercom/commit/cd480246a573bc08a1cc1182a318f1b3a3b6d709))
19+
* **api:** update via SDK Studio ([dfd8fba](https://github.com/intercom/python-intercom/commit/dfd8fbaea39b1e55b22ee632f7558e96a349e473))
20+
* **api:** update via SDK Studio ([0bd7ae4](https://github.com/intercom/python-intercom/commit/0bd7ae43a2ecfb9f6a190e50a72a139e772a279f))
21+
* **api:** update via SDK Studio ([638c48b](https://github.com/intercom/python-intercom/commit/638c48b6b6aa01b49232d89b8a8e8509055fc062))
22+
* **api:** update via SDK Studio ([bce089e](https://github.com/intercom/python-intercom/commit/bce089efbaf0406130d1ded51c15b752f332bc94))
23+
* **api:** update via SDK Studio ([635b1d1](https://github.com/intercom/python-intercom/commit/635b1d18a40f730ab28529301297a809e1c9d5dc))
24+
* **api:** update via SDK Studio ([b1b9219](https://github.com/intercom/python-intercom/commit/b1b92197c2758c1f121f52cf636033c4b9ba6f42))
25+
* **api:** update via SDK Studio ([e3069e9](https://github.com/intercom/python-intercom/commit/e3069e903f7188941c2a6f69a982bf6e49a04313))
26+
* **api:** update via SDK Studio ([6210114](https://github.com/intercom/python-intercom/commit/62101148adf4ecf0b5aeea53b110feaaba296ede))
27+
* **api:** update via SDK Studio ([aff3c46](https://github.com/intercom/python-intercom/commit/aff3c46f12717bee8bc2a662cd99f34c73e959af))
28+
* **api:** update via SDK Studio ([#255](https://github.com/intercom/python-intercom/issues/255)) ([8deb42a](https://github.com/intercom/python-intercom/commit/8deb42ab24714983c947bdef4efef870daaec3fc))
29+
* **api:** update via SDK Studio ([#256](https://github.com/intercom/python-intercom/issues/256)) ([0d233e4](https://github.com/intercom/python-intercom/commit/0d233e4dbe68cb7c248482730102077e0db7de08))
30+
* **api:** update via SDK Studio ([#257](https://github.com/intercom/python-intercom/issues/257)) ([e046f2f](https://github.com/intercom/python-intercom/commit/e046f2fd31706c3cb6c2b94e57d712a4f3323fc6))
31+
32+
33+
### Chores
34+
35+
* **internal:** version bump ([#254](https://github.com/intercom/python-intercom/issues/254)) ([6d19734](https://github.com/intercom/python-intercom/commit/6d197342dd213266ed131ed30aba33ef2f8840b7))
36+
337
## 0.1.0 (2024-07-17)
438

539
Full Changelog: [v0.0.1...v0.1.0](https://github.com/intercom/python-intercom/compare/v0.0.1...v0.1.0)

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,12 @@ client = Intercom(
283283
)
284284
```
285285

286+
You can also customize the client on a per-request basis by using `with_options()`:
287+
288+
```python
289+
client.with_options(http_client=DefaultHttpxClient(...))
290+
```
291+
286292
### Managing HTTP resources
287293

288294
By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting.

api.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ Methods:
8686

8787
# HelpCenter
8888

89+
Types:
90+
91+
```python
92+
from python_intercom.types import HelpCenter, HelpCenterList
93+
```
94+
8995
## Collections
9096

9197
Types:
@@ -104,16 +110,10 @@ Methods:
104110

105111
## HelpCenters
106112

107-
Types:
108-
109-
```python
110-
from python_intercom.types.help_center import HelpCenter, HelpCenterList
111-
```
112-
113113
Methods:
114114

115115
- <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>
116-
- <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>
116+
- <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>
117117

118118
# Companies
119119

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "python-intercom"
3-
version = "0.1.0"
3+
version = "4.0.0-alpha.1"
44
description = "The official Python library for the intercom API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/python_intercom/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "python_intercom"
4-
__version__ = "0.1.0" # x-release-please-version
4+
__version__ = "4.0.0-alpha.1" # x-release-please-version

src/python_intercom/resources/help_center/help_centers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
async_to_streamed_response_wrapper,
1818
)
1919
from ..._base_client import make_request_options
20+
from ...types.help_center_list import HelpCenterList
2021
from ...types.help_center.help_center import HelpCenter
21-
from ...types.help_center.help_center_list import HelpCenterList
2222

2323
__all__ = ["HelpCentersResource", "AsyncHelpCentersResource"]
2424

src/python_intercom/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
from .team_list import TeamList as TeamList
3636
from .admin_list import AdminList as AdminList
3737
from .data_export import DataExport as DataExport
38+
from .help_center import HelpCenter as HelpCenter
3839
from .ticket_list import TicketList as TicketList
3940
from .ticket_type import TicketType as TicketType
4041
from .article_list import ArticleList as ArticleList
@@ -48,6 +49,7 @@
4849
from .data_attribute import DataAttribute as DataAttribute
4950
from .contact_deleted import ContactDeleted as ContactDeleted
5051
from .contact_archived import ContactArchived as ContactArchived
52+
from .help_center_list import HelpCenterList as HelpCenterList
5153
from .ticket_type_list import TicketTypeList as TicketTypeList
5254
from .conversation_list import ConversationList as ConversationList
5355
from .contact_unarchived import ContactUnarchived as ContactUnarchived

src/python_intercom/types/help_center/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from .collection import Collection as Collection
66
from .help_center import HelpCenter as HelpCenter
77
from .collection_list import CollectionList as CollectionList
8-
from .help_center_list import HelpCenterList as HelpCenterList
98
from .deleted_collection import DeletedCollection as DeletedCollection
109
from .collection_create_params import CollectionCreateParams as CollectionCreateParams
1110
from .collection_update_params import CollectionUpdateParams as CollectionUpdateParams

src/python_intercom/types/help_center/help_center_list.py renamed to src/python_intercom/types/help_center_list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from typing import List, Optional
44
from typing_extensions import Literal
55

6-
from ..._models import BaseModel
7-
from .help_center import HelpCenter
6+
from .._models import BaseModel
7+
from .help_center.help_center import HelpCenter
88

99
__all__ = ["HelpCenterList"]
1010

tests/api_resources/help_center/test_help_centers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99

1010
from tests.utils import assert_matches_type
1111
from python_intercom import Intercom, AsyncIntercom
12-
from python_intercom.types.help_center import HelpCenter, HelpCenterList
12+
from python_intercom.types import HelpCenterList
13+
from python_intercom.types.help_center import HelpCenter
1314

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

0 commit comments

Comments
 (0)