Skip to content

Commit 87e2fc5

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#429)
1 parent 425939f commit 87e2fc5

File tree

6 files changed

+781
-16
lines changed

6 files changed

+781
-16
lines changed

api.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,9 @@ Methods:
223223

224224
Types:
225225

226-
- <code><a href="./src/resources/conversations/conversations.ts">ConversationList</a></code>
226+
- <code><a href="./src/resources/conversations/conversations.ts">Conversation</a></code>
227227
- <code><a href="./src/resources/conversations/conversations.ts">ConversationListResponse</a></code>
228+
- <code><a href="./src/resources/conversations/conversations.ts">ConversationSearchResponse</a></code>
228229

229230
Methods:
230231

@@ -234,7 +235,7 @@ Methods:
234235
- <code title="get /conversations">client.conversations.<a href="./src/resources/conversations/conversations.ts">list</a>({ ...params }) -> ConversationListResponsesCursorPagination</code>
235236
- <code title="post /conversations/{id}/convert">client.conversations.<a href="./src/resources/conversations/conversations.ts">convert</a>(id, { ...params }) -> Ticket | null</code>
236237
- <code title="post /conversations/redact">client.conversations.<a href="./src/resources/conversations/conversations.ts">redact</a>({ ...params }) -> Conversation</code>
237-
- <code title="post /conversations/search">client.conversations.<a href="./src/resources/conversations/conversations.ts">search</a>({ ...params }) -> ConversationList</code>
238+
- <code title="post /conversations/search">client.conversations.<a href="./src/resources/conversations/conversations.ts">search</a>({ ...params }) -> ConversationSearchResponse</code>
238239

239240
## Tags
240241

scripts/mock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ echo "==> Starting mock server with URL ${URL}"
2121

2222
# Run prism mock on the given spec
2323
if [ "$1" == "--daemon" ]; then
24-
npm exec --package=@stainless-api/[email protected].4 -- prism mock "$URL" &> .prism.log &
24+
npm exec --package=@stoplight/prism-cli@~5.8 -- prism mock "$URL" &> .prism.log &
2525

2626
# Wait for server to come online
2727
echo -n "Waiting for server"
@@ -37,5 +37,5 @@ if [ "$1" == "--daemon" ]; then
3737

3838
echo
3939
else
40-
npm exec --package=@stainless-api/[email protected].4 -- prism mock "$URL"
40+
npm exec --package=@stoplight/prism-cli@~5.8 -- prism mock "$URL"
4141
fi

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,9 @@ export namespace Intercom {
289289
export import ContactUnarchiveParams = API.ContactUnarchiveParams;
290290

291291
export import Conversations = API.Conversations;
292-
export import ConversationList = API.ConversationList;
292+
export import Conversation = API.Conversation;
293293
export import ConversationListResponse = API.ConversationListResponse;
294+
export import ConversationSearchResponse = API.ConversationSearchResponse;
294295
export import ConversationCreateParams = API.ConversationCreateParams;
295296
export import ConversationRetrieveParams = API.ConversationRetrieveParams;
296297
export import ConversationUpdateParams = API.ConversationUpdateParams;

0 commit comments

Comments
 (0)