Skip to content

Commit 7b99dc3

Browse files
committed
feat(api): OpenAPI spec update
1 parent 632e659 commit 7b99dc3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+246
-2298
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
configured_endpoints: 114
1+
configured_endpoints: 103

api.md

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -54,40 +54,6 @@ Methods:
5454

5555
- <code title="get /admins/activity_logs">client.admins.activity_logs.<a href="./src/intercom/resources/admins/activity_logs.py">list</a>(\*\*<a href="src/intercom/types/admins/activity_log_list_params.py">params</a>) -> <a href="./src/intercom/types/admins/activity_log_list.py">ActivityLogList</a></code>
5656

57-
# AI
58-
59-
## ContentImportSources
60-
61-
Types:
62-
63-
```python
64-
from intercom.types.ai import ContentImportSource, ContentImportSourcesList
65-
```
66-
67-
Methods:
68-
69-
- <code title="post /ai/content_import_sources">client.ai.content_import_sources.<a href="./src/intercom/resources/ai/content_import_sources.py">create</a>(\*\*<a href="src/intercom/types/ai/content_import_source_create_params.py">params</a>) -> <a href="./src/intercom/types/ai/content_import_source.py">ContentImportSource</a></code>
70-
- <code title="get /ai/content_import_sources/{id}">client.ai.content_import_sources.<a href="./src/intercom/resources/ai/content_import_sources.py">retrieve</a>(id) -> <a href="./src/intercom/types/ai/content_import_source.py">ContentImportSource</a></code>
71-
- <code title="put /ai/content_import_sources/{id}">client.ai.content_import_sources.<a href="./src/intercom/resources/ai/content_import_sources.py">update</a>(id, \*\*<a href="src/intercom/types/ai/content_import_source_update_params.py">params</a>) -> <a href="./src/intercom/types/ai/content_import_source.py">ContentImportSource</a></code>
72-
- <code title="get /ai/content_import_sources">client.ai.content_import_sources.<a href="./src/intercom/resources/ai/content_import_sources.py">list</a>() -> <a href="./src/intercom/types/ai/content_import_sources_list.py">ContentImportSourcesList</a></code>
73-
- <code title="delete /ai/content_import_sources/{id}">client.ai.content_import_sources.<a href="./src/intercom/resources/ai/content_import_sources.py">delete</a>(id) -> None</code>
74-
75-
## ExternalPages
76-
77-
Types:
78-
79-
```python
80-
from intercom.types.ai import ExternalPage, ExternalPagesList
81-
```
82-
83-
Methods:
84-
85-
- <code title="post /ai/external_pages">client.ai.external_pages.<a href="./src/intercom/resources/ai/external_pages.py">create</a>(\*\*<a href="src/intercom/types/ai/external_page_create_params.py">params</a>) -> <a href="./src/intercom/types/ai/external_page.py">ExternalPage</a></code>
86-
- <code title="get /ai/external_pages/{id}">client.ai.external_pages.<a href="./src/intercom/resources/ai/external_pages.py">retrieve</a>(id) -> <a href="./src/intercom/types/ai/external_page.py">ExternalPage</a></code>
87-
- <code title="put /ai/external_pages/{id}">client.ai.external_pages.<a href="./src/intercom/resources/ai/external_pages.py">update</a>(id, \*\*<a href="src/intercom/types/ai/external_page_update_params.py">params</a>) -> <a href="./src/intercom/types/ai/external_page.py">ExternalPage</a></code>
88-
- <code title="get /ai/external_pages">client.ai.external_pages.<a href="./src/intercom/resources/ai/external_pages.py">list</a>() -> <a href="./src/intercom/types/ai/external_pages_list.py">ExternalPagesList</a></code>
89-
- <code title="delete /ai/external_pages/{id}">client.ai.external_pages.<a href="./src/intercom/resources/ai/external_pages.py">remove_all</a>(id) -> <a href="./src/intercom/types/ai/external_page.py">ExternalPage</a></code>
90-
9157
# Articles
9258

9359
Types:
@@ -286,19 +252,12 @@ Methods:
286252

287253
# Conversations
288254

289-
Types:
290-
291-
```python
292-
from intercom.types import ConversationDeleted
293-
```
294-
295255
Methods:
296256

297257
- <code title="post /conversations">client.conversations.<a href="./src/intercom/resources/conversations/conversations.py">create</a>(\*\*<a href="src/intercom/types/conversation_create_params.py">params</a>) -> <a href="./src/intercom/types/shared/message.py">Message</a></code>
298258
- <code title="get /conversations/{id}">client.conversations.<a href="./src/intercom/resources/conversations/conversations.py">retrieve</a>(id, \*\*<a href="src/intercom/types/conversation_retrieve_params.py">params</a>) -> <a href="./src/intercom/types/shared/conversation.py">Conversation</a></code>
299259
- <code title="put /conversations/{id}">client.conversations.<a href="./src/intercom/resources/conversations/conversations.py">update</a>(id, \*\*<a href="src/intercom/types/conversation_update_params.py">params</a>) -> <a href="./src/intercom/types/shared/conversation.py">Conversation</a></code>
300260
- <code title="get /conversations">client.conversations.<a href="./src/intercom/resources/conversations/conversations.py">list</a>(\*\*<a href="src/intercom/types/conversation_list_params.py">params</a>) -> <a href="./src/intercom/types/shared/paginated_response.py">PaginatedResponse</a></code>
301-
- <code title="delete /conversations/{id}">client.conversations.<a href="./src/intercom/resources/conversations/conversations.py">delete</a>(id) -> <a href="./src/intercom/types/conversation_deleted.py">ConversationDeleted</a></code>
302261
- <code title="post /conversations/{id}/convert">client.conversations.<a href="./src/intercom/resources/conversations/conversations.py">convert</a>(id, \*\*<a href="src/intercom/types/conversation_convert_params.py">params</a>) -> <a href="./src/intercom/types/shared/ticket.py">Optional[Ticket]</a></code>
303262
- <code title="post /conversations/redact">client.conversations.<a href="./src/intercom/resources/conversations/conversations.py">redact</a>(\*\*<a href="src/intercom/types/conversation_redact_params.py">params</a>) -> <a href="./src/intercom/types/shared/conversation.py">Conversation</a></code>
304263

src/intercom/_client.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
class Intercom(SyncAPIClient):
5050
me: resources.Me
5151
admins: resources.Admins
52-
ai: resources.AI
5352
articles: resources.Articles
5453
help_center: resources.HelpCenter
5554
companies: resources.Companies
@@ -151,7 +150,6 @@ def __init__(
151150

152151
self.me = resources.Me(self)
153152
self.admins = resources.Admins(self)
154-
self.ai = resources.AI(self)
155153
self.articles = resources.Articles(self)
156154
self.help_center = resources.HelpCenter(self)
157155
self.companies = resources.Companies(self)
@@ -285,7 +283,6 @@ def _make_status_error(
285283
class AsyncIntercom(AsyncAPIClient):
286284
me: resources.AsyncMe
287285
admins: resources.AsyncAdmins
288-
ai: resources.AsyncAI
289286
articles: resources.AsyncArticles
290287
help_center: resources.AsyncHelpCenter
291288
companies: resources.AsyncCompanies
@@ -387,7 +384,6 @@ def __init__(
387384

388385
self.me = resources.AsyncMe(self)
389386
self.admins = resources.AsyncAdmins(self)
390-
self.ai = resources.AsyncAI(self)
391387
self.articles = resources.AsyncArticles(self)
392388
self.help_center = resources.AsyncHelpCenter(self)
393389
self.companies = resources.AsyncCompanies(self)
@@ -522,7 +518,6 @@ class IntercomWithRawResponse:
522518
def __init__(self, client: Intercom) -> None:
523519
self.me = resources.MeWithRawResponse(client.me)
524520
self.admins = resources.AdminsWithRawResponse(client.admins)
525-
self.ai = resources.AIWithRawResponse(client.ai)
526521
self.articles = resources.ArticlesWithRawResponse(client.articles)
527522
self.help_center = resources.HelpCenterWithRawResponse(client.help_center)
528523
self.companies = resources.CompaniesWithRawResponse(client.companies)
@@ -550,7 +545,6 @@ class AsyncIntercomWithRawResponse:
550545
def __init__(self, client: AsyncIntercom) -> None:
551546
self.me = resources.AsyncMeWithRawResponse(client.me)
552547
self.admins = resources.AsyncAdminsWithRawResponse(client.admins)
553-
self.ai = resources.AsyncAIWithRawResponse(client.ai)
554548
self.articles = resources.AsyncArticlesWithRawResponse(client.articles)
555549
self.help_center = resources.AsyncHelpCenterWithRawResponse(client.help_center)
556550
self.companies = resources.AsyncCompaniesWithRawResponse(client.companies)

src/intercom/resources/__init__.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# File generated from our OpenAPI spec by Stainless.
22

3-
from .ai import AI, AsyncAI, AIWithRawResponse, AsyncAIWithRawResponse
43
from .me import Me, AsyncMe, MeWithRawResponse, AsyncMeWithRawResponse
54
from .news import News, AsyncNews, NewsWithRawResponse, AsyncNewsWithRawResponse
65
from .tags import Tags, AsyncTags, TagsWithRawResponse, AsyncTagsWithRawResponse
@@ -124,10 +123,6 @@
124123
"AsyncAdmins",
125124
"AdminsWithRawResponse",
126125
"AsyncAdminsWithRawResponse",
127-
"AI",
128-
"AsyncAI",
129-
"AIWithRawResponse",
130-
"AsyncAIWithRawResponse",
131126
"Articles",
132127
"AsyncArticles",
133128
"ArticlesWithRawResponse",

src/intercom/resources/ai/__init__.py

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/intercom/resources/ai/ai.py

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)