Skip to content

Commit 4d7884a

Browse files
authored
Merge pull request #7 from onkernel/release-please--branches--main--changes--next
release: 0.1.0-alpha.6
2 parents 816aea5 + 10ed58f commit 4d7884a

File tree

10 files changed

+15
-201
lines changed

10 files changed

+15
-201
lines changed

.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-alpha.5"
2+
".": "0.1.0-alpha.6"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 4
1+
configured_endpoints: 3
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-d168b58fcf39dbd0458d132091793d3e2d0930070b7dda2d5f7f1baff20dd31b.yml
33
openapi_spec_hash: b7e0fd7ee1656d7dbad57209d1584d92
4-
config_hash: 2d282609080a6011e3f6222451f72237
4+
config_hash: 9139d1eb064baf60fd2265aac382f097

CHANGELOG.md

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

3+
## 0.1.0-alpha.6 (2025-05-11)
4+
5+
Full Changelog: [v0.1.0-alpha.5...v0.1.0-alpha.6](https://github.com/onkernel/kernel-python-sdk/compare/v0.1.0-alpha.5...v0.1.0-alpha.6)
6+
7+
### Features
8+
9+
* **api:** update via SDK Studio ([d2d465e](https://github.com/onkernel/kernel-python-sdk/commit/d2d465ee112484eb9acd1b5f8714bc5650f2b4de))
10+
311
## 0.1.0-alpha.5 (2025-05-10)
412

513
Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/onkernel/kernel-python-sdk/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)

api.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
Types:
44

55
```python
6-
from kernel.types import AppDeployResponse, AppInvokeResponse, AppRetrieveInvocationResponse
6+
from kernel.types import AppDeployResponse, AppInvokeResponse
77
```
88

99
Methods:
1010

1111
- <code title="post /apps/deploy">client.apps.<a href="./src/kernel/resources/apps.py">deploy</a>(\*\*<a href="src/kernel/types/app_deploy_params.py">params</a>) -> <a href="./src/kernel/types/app_deploy_response.py">AppDeployResponse</a></code>
1212
- <code title="post /apps/invoke">client.apps.<a href="./src/kernel/resources/apps.py">invoke</a>(\*\*<a href="src/kernel/types/app_invoke_params.py">params</a>) -> <a href="./src/kernel/types/app_invoke_response.py">AppInvokeResponse</a></code>
13-
- <code title="get /apps/invocations/{id}">client.apps.<a href="./src/kernel/resources/apps.py">retrieve_invocation</a>(id) -> <a href="./src/kernel/types/app_retrieve_invocation_response.py">AppRetrieveInvocationResponse</a></code>
1413

1514
# Browser
1615

pyproject.toml

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

src/kernel/_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__ = "kernel"
4-
__version__ = "0.1.0-alpha.5" # x-release-please-version
4+
__version__ = "0.1.0-alpha.6" # x-release-please-version

src/kernel/resources/apps.py

Lines changed: 0 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from .._base_client import make_request_options
2121
from ..types.app_deploy_response import AppDeployResponse
2222
from ..types.app_invoke_response import AppInvokeResponse
23-
from ..types.app_retrieve_invocation_response import AppRetrieveInvocationResponse
2423

2524
__all__ = ["AppsResource", "AsyncAppsResource"]
2625

@@ -153,39 +152,6 @@ def invoke(
153152
cast_to=AppInvokeResponse,
154153
)
155154

156-
def retrieve_invocation(
157-
self,
158-
id: str,
159-
*,
160-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
161-
# The extra values given here take precedence over values defined on the client or passed to this method.
162-
extra_headers: Headers | None = None,
163-
extra_query: Query | None = None,
164-
extra_body: Body | None = None,
165-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
166-
) -> AppRetrieveInvocationResponse:
167-
"""
168-
Get an app invocation by id
169-
170-
Args:
171-
extra_headers: Send extra headers
172-
173-
extra_query: Add additional query parameters to the request
174-
175-
extra_body: Add additional JSON properties to the request
176-
177-
timeout: Override the client-level default timeout for this request, in seconds
178-
"""
179-
if not id:
180-
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
181-
return self._get(
182-
f"/apps/invocations/{id}",
183-
options=make_request_options(
184-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
185-
),
186-
cast_to=AppRetrieveInvocationResponse,
187-
)
188-
189155

190156
class AsyncAppsResource(AsyncAPIResource):
191157
@cached_property
@@ -315,39 +281,6 @@ async def invoke(
315281
cast_to=AppInvokeResponse,
316282
)
317283

318-
async def retrieve_invocation(
319-
self,
320-
id: str,
321-
*,
322-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
323-
# The extra values given here take precedence over values defined on the client or passed to this method.
324-
extra_headers: Headers | None = None,
325-
extra_query: Query | None = None,
326-
extra_body: Body | None = None,
327-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
328-
) -> AppRetrieveInvocationResponse:
329-
"""
330-
Get an app invocation by id
331-
332-
Args:
333-
extra_headers: Send extra headers
334-
335-
extra_query: Add additional query parameters to the request
336-
337-
extra_body: Add additional JSON properties to the request
338-
339-
timeout: Override the client-level default timeout for this request, in seconds
340-
"""
341-
if not id:
342-
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
343-
return await self._get(
344-
f"/apps/invocations/{id}",
345-
options=make_request_options(
346-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
347-
),
348-
cast_to=AppRetrieveInvocationResponse,
349-
)
350-
351284

352285
class AppsResourceWithRawResponse:
353286
def __init__(self, apps: AppsResource) -> None:
@@ -359,9 +292,6 @@ def __init__(self, apps: AppsResource) -> None:
359292
self.invoke = to_raw_response_wrapper(
360293
apps.invoke,
361294
)
362-
self.retrieve_invocation = to_raw_response_wrapper(
363-
apps.retrieve_invocation,
364-
)
365295

366296

367297
class AsyncAppsResourceWithRawResponse:
@@ -374,9 +304,6 @@ def __init__(self, apps: AsyncAppsResource) -> None:
374304
self.invoke = async_to_raw_response_wrapper(
375305
apps.invoke,
376306
)
377-
self.retrieve_invocation = async_to_raw_response_wrapper(
378-
apps.retrieve_invocation,
379-
)
380307

381308

382309
class AppsResourceWithStreamingResponse:
@@ -389,9 +316,6 @@ def __init__(self, apps: AppsResource) -> None:
389316
self.invoke = to_streamed_response_wrapper(
390317
apps.invoke,
391318
)
392-
self.retrieve_invocation = to_streamed_response_wrapper(
393-
apps.retrieve_invocation,
394-
)
395319

396320

397321
class AsyncAppsResourceWithStreamingResponse:
@@ -404,6 +328,3 @@ def __init__(self, apps: AsyncAppsResource) -> None:
404328
self.invoke = async_to_streamed_response_wrapper(
405329
apps.invoke,
406330
)
407-
self.retrieve_invocation = async_to_streamed_response_wrapper(
408-
apps.retrieve_invocation,
409-
)

src/kernel/types/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@
77
from .app_deploy_response import AppDeployResponse as AppDeployResponse
88
from .app_invoke_response import AppInvokeResponse as AppInvokeResponse
99
from .browser_create_session_response import BrowserCreateSessionResponse as BrowserCreateSessionResponse
10-
from .app_retrieve_invocation_response import AppRetrieveInvocationResponse as AppRetrieveInvocationResponse

src/kernel/types/app_retrieve_invocation_response.py

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

tests/api_resources/test_apps.py

Lines changed: 1 addition & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,7 @@
99

1010
from kernel import Kernel, AsyncKernel
1111
from tests.utils import assert_matches_type
12-
from kernel.types import (
13-
AppDeployResponse,
14-
AppInvokeResponse,
15-
AppRetrieveInvocationResponse,
16-
)
12+
from kernel.types import AppDeployResponse, AppInvokeResponse
1713

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

@@ -115,48 +111,6 @@ def test_streaming_response_invoke(self, client: Kernel) -> None:
115111

116112
assert cast(Any, response.is_closed) is True
117113

118-
@pytest.mark.skip()
119-
@parametrize
120-
def test_method_retrieve_invocation(self, client: Kernel) -> None:
121-
app = client.apps.retrieve_invocation(
122-
"id",
123-
)
124-
assert_matches_type(AppRetrieveInvocationResponse, app, path=["response"])
125-
126-
@pytest.mark.skip()
127-
@parametrize
128-
def test_raw_response_retrieve_invocation(self, client: Kernel) -> None:
129-
response = client.apps.with_raw_response.retrieve_invocation(
130-
"id",
131-
)
132-
133-
assert response.is_closed is True
134-
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
135-
app = response.parse()
136-
assert_matches_type(AppRetrieveInvocationResponse, app, path=["response"])
137-
138-
@pytest.mark.skip()
139-
@parametrize
140-
def test_streaming_response_retrieve_invocation(self, client: Kernel) -> None:
141-
with client.apps.with_streaming_response.retrieve_invocation(
142-
"id",
143-
) as response:
144-
assert not response.is_closed
145-
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
146-
147-
app = response.parse()
148-
assert_matches_type(AppRetrieveInvocationResponse, app, path=["response"])
149-
150-
assert cast(Any, response.is_closed) is True
151-
152-
@pytest.mark.skip()
153-
@parametrize
154-
def test_path_params_retrieve_invocation(self, client: Kernel) -> None:
155-
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
156-
client.apps.with_raw_response.retrieve_invocation(
157-
"",
158-
)
159-
160114

161115
class TestAsyncApps:
162116
parametrize = pytest.mark.parametrize("async_client", [False, True], indirect=True, ids=["loose", "strict"])
@@ -254,45 +208,3 @@ async def test_streaming_response_invoke(self, async_client: AsyncKernel) -> Non
254208
assert_matches_type(AppInvokeResponse, app, path=["response"])
255209

256210
assert cast(Any, response.is_closed) is True
257-
258-
@pytest.mark.skip()
259-
@parametrize
260-
async def test_method_retrieve_invocation(self, async_client: AsyncKernel) -> None:
261-
app = await async_client.apps.retrieve_invocation(
262-
"id",
263-
)
264-
assert_matches_type(AppRetrieveInvocationResponse, app, path=["response"])
265-
266-
@pytest.mark.skip()
267-
@parametrize
268-
async def test_raw_response_retrieve_invocation(self, async_client: AsyncKernel) -> None:
269-
response = await async_client.apps.with_raw_response.retrieve_invocation(
270-
"id",
271-
)
272-
273-
assert response.is_closed is True
274-
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
275-
app = await response.parse()
276-
assert_matches_type(AppRetrieveInvocationResponse, app, path=["response"])
277-
278-
@pytest.mark.skip()
279-
@parametrize
280-
async def test_streaming_response_retrieve_invocation(self, async_client: AsyncKernel) -> None:
281-
async with async_client.apps.with_streaming_response.retrieve_invocation(
282-
"id",
283-
) as response:
284-
assert not response.is_closed
285-
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
286-
287-
app = await response.parse()
288-
assert_matches_type(AppRetrieveInvocationResponse, app, path=["response"])
289-
290-
assert cast(Any, response.is_closed) is True
291-
292-
@pytest.mark.skip()
293-
@parametrize
294-
async def test_path_params_retrieve_invocation(self, async_client: AsyncKernel) -> None:
295-
with pytest.raises(ValueError, match=r"Expected a non-empty value for `id` but received ''"):
296-
await async_client.apps.with_raw_response.retrieve_invocation(
297-
"",
298-
)

0 commit comments

Comments
 (0)