Skip to content

Commit a0bec91

Browse files
authored
Removed x-language and x-sdk-version from openapi spec (#1515)
# why Once [this PR](browserbase/stagehand-python#264) is merged into core, we no longer need to send `x-language` and `x-sdk-version` headers in our generated SDKs, since they send the `x-stainless` equivalents automatically. # what changed Thus, this PR removes these from the openapi spec, so that the generated clients will stop having these fields. # test plan Will ensure that new generated sdks work successfully. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Removed x-language and x-sdk-version headers from the OpenAPI spec and server types, since generated SDKs now send x-stainless headers automatically. This simplifies SDK generation and removes redundant headers. - **Migration** - Regenerate SDKs after the core change that adds x-stainless headers is merged. - Stop sending x-language and x-sdk-version in clients; rely on x-stainless headers. <sup>Written for commit df65fe9. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. -->
1 parent 191663d commit a0bec91

2 files changed

Lines changed: 0 additions & 149 deletions

File tree

packages/core/lib/v3/types/public/api.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -157,17 +157,6 @@ export const SessionHeadersSchema = z
157157
description: "Whether to stream the response via SSE",
158158
example: "true",
159159
}),
160-
"x-language": z
161-
.enum(["typescript", "python", "playground"])
162-
.optional()
163-
.meta({
164-
description: "Client SDK language",
165-
example: "typescript",
166-
}),
167-
"x-sdk-version": z.string().optional().meta({
168-
description: "Version of the Stagehand SDK",
169-
example: "3.0.6",
170-
}),
171160
"x-sent-at": z.string().datetime().optional().meta({
172161
description: "ISO timestamp when request was sent",
173162
example: "2025-01-15T10:30:00Z",

packages/server/openapi.v3.yaml

Lines changed: 0 additions & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,18 +1587,6 @@ components:
15871587
enum:
15881588
- "true"
15891589
- "false"
1590-
x-language:
1591-
description: Client SDK language
1592-
example: typescript
1593-
type: string
1594-
enum:
1595-
- typescript
1596-
- python
1597-
- playground
1598-
x-sdk-version:
1599-
description: Version of the Stagehand SDK
1600-
example: 3.0.6
1601-
type: string
16021590
x-sent-at:
16031591
description: ISO timestamp when request was sent
16041592
example: 2025-01-15T10:30:00Z
@@ -1737,24 +1725,6 @@ paths:
17371725
in: header
17381726
name: x-stream-response
17391727
description: Whether to stream the response via SSE
1740-
- schema:
1741-
description: Client SDK language
1742-
example: typescript
1743-
type: string
1744-
enum:
1745-
- typescript
1746-
- python
1747-
- playground
1748-
in: header
1749-
name: x-language
1750-
description: Client SDK language
1751-
- schema:
1752-
description: Version of the Stagehand SDK
1753-
example: 3.0.6
1754-
type: string
1755-
in: header
1756-
name: x-sdk-version
1757-
description: Version of the Stagehand SDK
17581728
- schema:
17591729
description: ISO timestamp when request was sent
17601730
example: 2025-01-15T10:30:00Z
@@ -1801,24 +1771,6 @@ paths:
18011771
in: header
18021772
name: x-stream-response
18031773
description: Whether to stream the response via SSE
1804-
- schema:
1805-
description: Client SDK language
1806-
example: typescript
1807-
type: string
1808-
enum:
1809-
- typescript
1810-
- python
1811-
- playground
1812-
in: header
1813-
name: x-language
1814-
description: Client SDK language
1815-
- schema:
1816-
description: Version of the Stagehand SDK
1817-
example: 3.0.6
1818-
type: string
1819-
in: header
1820-
name: x-sdk-version
1821-
description: Version of the Stagehand SDK
18221774
- schema:
18231775
description: ISO timestamp when request was sent
18241776
example: 2025-01-15T10:30:00Z
@@ -1865,24 +1817,6 @@ paths:
18651817
in: header
18661818
name: x-stream-response
18671819
description: Whether to stream the response via SSE
1868-
- schema:
1869-
description: Client SDK language
1870-
example: typescript
1871-
type: string
1872-
enum:
1873-
- typescript
1874-
- python
1875-
- playground
1876-
in: header
1877-
name: x-language
1878-
description: Client SDK language
1879-
- schema:
1880-
description: Version of the Stagehand SDK
1881-
example: 3.0.6
1882-
type: string
1883-
in: header
1884-
name: x-sdk-version
1885-
description: Version of the Stagehand SDK
18861820
- schema:
18871821
description: ISO timestamp when request was sent
18881822
example: 2025-01-15T10:30:00Z
@@ -1929,24 +1863,6 @@ paths:
19291863
in: header
19301864
name: x-stream-response
19311865
description: Whether to stream the response via SSE
1932-
- schema:
1933-
description: Client SDK language
1934-
example: typescript
1935-
type: string
1936-
enum:
1937-
- typescript
1938-
- python
1939-
- playground
1940-
in: header
1941-
name: x-language
1942-
description: Client SDK language
1943-
- schema:
1944-
description: Version of the Stagehand SDK
1945-
example: 3.0.6
1946-
type: string
1947-
in: header
1948-
name: x-sdk-version
1949-
description: Version of the Stagehand SDK
19501866
- schema:
19511867
description: ISO timestamp when request was sent
19521868
example: 2025-01-15T10:30:00Z
@@ -1995,24 +1911,6 @@ paths:
19951911
in: header
19961912
name: x-stream-response
19971913
description: Whether to stream the response via SSE
1998-
- schema:
1999-
description: Client SDK language
2000-
example: typescript
2001-
type: string
2002-
enum:
2003-
- typescript
2004-
- python
2005-
- playground
2006-
in: header
2007-
name: x-language
2008-
description: Client SDK language
2009-
- schema:
2010-
description: Version of the Stagehand SDK
2011-
example: 3.0.6
2012-
type: string
2013-
in: header
2014-
name: x-sdk-version
2015-
description: Version of the Stagehand SDK
20161914
- schema:
20171915
description: ISO timestamp when request was sent
20181916
example: 2025-01-15T10:30:00Z
@@ -2094,24 +1992,6 @@ paths:
20941992
in: header
20951993
name: x-stream-response
20961994
description: Whether to stream the response via SSE
2097-
- schema:
2098-
description: Client SDK language
2099-
example: typescript
2100-
type: string
2101-
enum:
2102-
- typescript
2103-
- python
2104-
- playground
2105-
in: header
2106-
name: x-language
2107-
description: Client SDK language
2108-
- schema:
2109-
description: Version of the Stagehand SDK
2110-
example: 3.0.6
2111-
type: string
2112-
in: header
2113-
name: x-sdk-version
2114-
description: Version of the Stagehand SDK
21151995
- schema:
21161996
description: ISO timestamp when request was sent
21171997
example: 2025-01-15T10:30:00Z
@@ -2160,24 +2040,6 @@ paths:
21602040
in: header
21612041
name: x-stream-response
21622042
description: Whether to stream the response via SSE
2163-
- schema:
2164-
description: Client SDK language
2165-
example: typescript
2166-
type: string
2167-
enum:
2168-
- typescript
2169-
- python
2170-
- playground
2171-
in: header
2172-
name: x-language
2173-
description: Client SDK language
2174-
- schema:
2175-
description: Version of the Stagehand SDK
2176-
example: 3.0.6
2177-
type: string
2178-
in: header
2179-
name: x-sdk-version
2180-
description: Version of the Stagehand SDK
21812043
- schema:
21822044
description: ISO timestamp when request was sent
21832045
example: 2025-01-15T10:30:00Z

0 commit comments

Comments
 (0)