Skip to content

Commit 35af217

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#263)
1 parent c7a1a2f commit 35af217

File tree

4 files changed

+23
-12
lines changed

4 files changed

+23
-12
lines changed

.stats.yml

+1-1
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-61fd2f21fb0fb6a94c5e87ea423d828bf37d1dd90ca1511eda9b91d58ccb5d39.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/intercom%2Fintercom-a52cc0e4313a38d4329e6c2f40afa341d800389762fc643b9bf5b13248f8c5da.yml

bin/check-release-environment

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
#!/usr/bin/env bash
22

3+
warnings=()
34
errors=()
45

56
if [ -z "${PYPI_TOKEN}" ]; then
6-
errors+=("The INTERCOM_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
7+
warnings+=("The INTERCOM_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
8+
fi
9+
10+
lenWarnings=${#warnings[@]}
11+
12+
if [[ lenWarnings -gt 0 ]]; then
13+
echo -e "Found the following warnings in the release environment:\n"
14+
15+
for warning in "${warnings[@]}"; do
16+
echo -e "- $warning\n"
17+
done
718
fi
819

920
lenErrors=${#errors[@]}

scripts/mock

+2-2
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

tests/api_resources/contacts/test_companies.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,22 @@ def test_path_params_create(self, client: Intercom) -> None:
7272
@parametrize
7373
def test_method_list(self, client: Intercom) -> None:
7474
company = client.contacts.companies.list(
75-
contact_id="contact_id",
75+
contact_id="63a07ddf05a32042dffac965",
7676
)
7777
assert_matches_type(ContactAttachedCompanies, company, path=["response"])
7878

7979
@parametrize
8080
def test_method_list_with_all_params(self, client: Intercom) -> None:
8181
company = client.contacts.companies.list(
82-
contact_id="contact_id",
82+
contact_id="63a07ddf05a32042dffac965",
8383
intercom_version="2.11",
8484
)
8585
assert_matches_type(ContactAttachedCompanies, company, path=["response"])
8686

8787
@parametrize
8888
def test_raw_response_list(self, client: Intercom) -> None:
8989
response = client.contacts.companies.with_raw_response.list(
90-
contact_id="contact_id",
90+
contact_id="63a07ddf05a32042dffac965",
9191
)
9292

9393
assert response.is_closed is True
@@ -98,7 +98,7 @@ def test_raw_response_list(self, client: Intercom) -> None:
9898
@parametrize
9999
def test_streaming_response_list(self, client: Intercom) -> None:
100100
with client.contacts.companies.with_streaming_response.list(
101-
contact_id="contact_id",
101+
contact_id="63a07ddf05a32042dffac965",
102102
) as response:
103103
assert not response.is_closed
104104
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
@@ -230,22 +230,22 @@ async def test_path_params_create(self, async_client: AsyncIntercom) -> None:
230230
@parametrize
231231
async def test_method_list(self, async_client: AsyncIntercom) -> None:
232232
company = await async_client.contacts.companies.list(
233-
contact_id="contact_id",
233+
contact_id="63a07ddf05a32042dffac965",
234234
)
235235
assert_matches_type(ContactAttachedCompanies, company, path=["response"])
236236

237237
@parametrize
238238
async def test_method_list_with_all_params(self, async_client: AsyncIntercom) -> None:
239239
company = await async_client.contacts.companies.list(
240-
contact_id="contact_id",
240+
contact_id="63a07ddf05a32042dffac965",
241241
intercom_version="2.11",
242242
)
243243
assert_matches_type(ContactAttachedCompanies, company, path=["response"])
244244

245245
@parametrize
246246
async def test_raw_response_list(self, async_client: AsyncIntercom) -> None:
247247
response = await async_client.contacts.companies.with_raw_response.list(
248-
contact_id="contact_id",
248+
contact_id="63a07ddf05a32042dffac965",
249249
)
250250

251251
assert response.is_closed is True
@@ -256,7 +256,7 @@ async def test_raw_response_list(self, async_client: AsyncIntercom) -> None:
256256
@parametrize
257257
async def test_streaming_response_list(self, async_client: AsyncIntercom) -> None:
258258
async with async_client.contacts.companies.with_streaming_response.list(
259-
contact_id="contact_id",
259+
contact_id="63a07ddf05a32042dffac965",
260260
) as response:
261261
assert not response.is_closed
262262
assert response.http_request.headers.get("X-Stainless-Lang") == "python"

0 commit comments

Comments
 (0)