Skip to content

Commit 4f7f783

Browse files
refactor(api): remove deprecated agent-auth endpoints from stainless.…
1 parent 5369f2c commit 4f7f783

28 files changed

+61
-3123
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 108
1+
configured_endpoints: 100
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-13e82ae9e725e2c3ca19da7248a7a9c8696a0dfe088654cf26aea07c76d6567a.yml
33
openapi_spec_hash: 6d4151a6066a8474bc56923299aec18a
4-
config_hash: 3b1fbbb6bda0dac7e8b42e155cd7da56
4+
config_hash: 82f0a04081a3ab7111d3a9c68cd3ff2b

api.md

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -318,46 +318,6 @@ Methods:
318318
- <code title="post /browser_pools/{id_or_name}/flush">client.browser_pools.<a href="./src/kernel/resources/browser_pools.py">flush</a>(id_or_name) -> None</code>
319319
- <code title="post /browser_pools/{id_or_name}/release">client.browser_pools.<a href="./src/kernel/resources/browser_pools.py">release</a>(id_or_name, \*\*<a href="src/kernel/types/browser_pool_release_params.py">params</a>) -> None</code>
320320

321-
# Agents
322-
323-
## Auth
324-
325-
Types:
326-
327-
```python
328-
from kernel.types.agents import (
329-
AgentAuthInvocationResponse,
330-
AgentAuthSubmitResponse,
331-
AuthAgent,
332-
AuthAgentCreateRequest,
333-
AuthAgentInvocationCreateRequest,
334-
AuthAgentInvocationCreateResponse,
335-
DiscoveredField,
336-
)
337-
```
338-
339-
Methods:
340-
341-
- <code title="post /agents/auth">client.agents.auth.<a href="./src/kernel/resources/agents/auth/auth.py">create</a>(\*\*<a href="src/kernel/types/agents/auth_create_params.py">params</a>) -> <a href="./src/kernel/types/agents/auth_agent.py">AuthAgent</a></code>
342-
- <code title="get /agents/auth/{id}">client.agents.auth.<a href="./src/kernel/resources/agents/auth/auth.py">retrieve</a>(id) -> <a href="./src/kernel/types/agents/auth_agent.py">AuthAgent</a></code>
343-
- <code title="get /agents/auth">client.agents.auth.<a href="./src/kernel/resources/agents/auth/auth.py">list</a>(\*\*<a href="src/kernel/types/agents/auth_list_params.py">params</a>) -> <a href="./src/kernel/types/agents/auth_agent.py">SyncOffsetPagination[AuthAgent]</a></code>
344-
- <code title="delete /agents/auth/{id}">client.agents.auth.<a href="./src/kernel/resources/agents/auth/auth.py">delete</a>(id) -> None</code>
345-
346-
### Invocations
347-
348-
Types:
349-
350-
```python
351-
from kernel.types.agents.auth import InvocationExchangeResponse
352-
```
353-
354-
Methods:
355-
356-
- <code title="post /agents/auth/invocations">client.agents.auth.invocations.<a href="./src/kernel/resources/agents/auth/invocations.py">create</a>(\*\*<a href="src/kernel/types/agents/auth/invocation_create_params.py">params</a>) -> <a href="./src/kernel/types/agents/auth_agent_invocation_create_response.py">AuthAgentInvocationCreateResponse</a></code>
357-
- <code title="get /agents/auth/invocations/{invocation_id}">client.agents.auth.invocations.<a href="./src/kernel/resources/agents/auth/invocations.py">retrieve</a>(invocation_id) -> <a href="./src/kernel/types/agents/agent_auth_invocation_response.py">AgentAuthInvocationResponse</a></code>
358-
- <code title="post /agents/auth/invocations/{invocation_id}/exchange">client.agents.auth.invocations.<a href="./src/kernel/resources/agents/auth/invocations.py">exchange</a>(invocation_id, \*\*<a href="src/kernel/types/agents/auth/invocation_exchange_params.py">params</a>) -> <a href="./src/kernel/types/agents/auth/invocation_exchange_response.py">InvocationExchangeResponse</a></code>
359-
- <code title="post /agents/auth/invocations/{invocation_id}/submit">client.agents.auth.invocations.<a href="./src/kernel/resources/agents/auth/invocations.py">submit</a>(invocation_id, \*\*<a href="src/kernel/types/agents/auth/invocation_submit_params.py">params</a>) -> <a href="./src/kernel/types/agents/agent_auth_submit_response.py">AgentAuthSubmitResponse</a></code>
360-
361321
# Credentials
362322

363323
Types:

src/kernel/_client.py

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
from .resources import (
3535
apps,
3636
auth,
37-
agents,
3837
proxies,
3938
browsers,
4039
profiles,
@@ -53,7 +52,6 @@
5352
from .resources.credentials import CredentialsResource, AsyncCredentialsResource
5453
from .resources.deployments import DeploymentsResource, AsyncDeploymentsResource
5554
from .resources.invocations import InvocationsResource, AsyncInvocationsResource
56-
from .resources.agents.agents import AgentsResource, AsyncAgentsResource
5755
from .resources.browser_pools import BrowserPoolsResource, AsyncBrowserPoolsResource
5856
from .resources.browsers.browsers import BrowsersResource, AsyncBrowsersResource
5957
from .resources.credential_providers import CredentialProvidersResource, AsyncCredentialProvidersResource
@@ -209,12 +207,6 @@ def browser_pools(self) -> BrowserPoolsResource:
209207

210208
return BrowserPoolsResource(self)
211209

212-
@cached_property
213-
def agents(self) -> AgentsResource:
214-
from .resources.agents import AgentsResource
215-
216-
return AgentsResource(self)
217-
218210
@cached_property
219211
def credentials(self) -> CredentialsResource:
220212
from .resources.credentials import CredentialsResource
@@ -475,12 +467,6 @@ def browser_pools(self) -> AsyncBrowserPoolsResource:
475467

476468
return AsyncBrowserPoolsResource(self)
477469

478-
@cached_property
479-
def agents(self) -> AsyncAgentsResource:
480-
from .resources.agents import AsyncAgentsResource
481-
482-
return AsyncAgentsResource(self)
483-
484470
@cached_property
485471
def credentials(self) -> AsyncCredentialsResource:
486472
from .resources.credentials import AsyncCredentialsResource
@@ -668,12 +654,6 @@ def browser_pools(self) -> browser_pools.BrowserPoolsResourceWithRawResponse:
668654

669655
return BrowserPoolsResourceWithRawResponse(self._client.browser_pools)
670656

671-
@cached_property
672-
def agents(self) -> agents.AgentsResourceWithRawResponse:
673-
from .resources.agents import AgentsResourceWithRawResponse
674-
675-
return AgentsResourceWithRawResponse(self._client.agents)
676-
677657
@cached_property
678658
def credentials(self) -> credentials.CredentialsResourceWithRawResponse:
679659
from .resources.credentials import CredentialsResourceWithRawResponse
@@ -747,12 +727,6 @@ def browser_pools(self) -> browser_pools.AsyncBrowserPoolsResourceWithRawRespons
747727

748728
return AsyncBrowserPoolsResourceWithRawResponse(self._client.browser_pools)
749729

750-
@cached_property
751-
def agents(self) -> agents.AsyncAgentsResourceWithRawResponse:
752-
from .resources.agents import AsyncAgentsResourceWithRawResponse
753-
754-
return AsyncAgentsResourceWithRawResponse(self._client.agents)
755-
756730
@cached_property
757731
def credentials(self) -> credentials.AsyncCredentialsResourceWithRawResponse:
758732
from .resources.credentials import AsyncCredentialsResourceWithRawResponse
@@ -826,12 +800,6 @@ def browser_pools(self) -> browser_pools.BrowserPoolsResourceWithStreamingRespon
826800

827801
return BrowserPoolsResourceWithStreamingResponse(self._client.browser_pools)
828802

829-
@cached_property
830-
def agents(self) -> agents.AgentsResourceWithStreamingResponse:
831-
from .resources.agents import AgentsResourceWithStreamingResponse
832-
833-
return AgentsResourceWithStreamingResponse(self._client.agents)
834-
835803
@cached_property
836804
def credentials(self) -> credentials.CredentialsResourceWithStreamingResponse:
837805
from .resources.credentials import CredentialsResourceWithStreamingResponse
@@ -905,12 +873,6 @@ def browser_pools(self) -> browser_pools.AsyncBrowserPoolsResourceWithStreamingR
905873

906874
return AsyncBrowserPoolsResourceWithStreamingResponse(self._client.browser_pools)
907875

908-
@cached_property
909-
def agents(self) -> agents.AsyncAgentsResourceWithStreamingResponse:
910-
from .resources.agents import AsyncAgentsResourceWithStreamingResponse
911-
912-
return AsyncAgentsResourceWithStreamingResponse(self._client.agents)
913-
914876
@cached_property
915877
def credentials(self) -> credentials.AsyncCredentialsResourceWithStreamingResponse:
916878
from .resources.credentials import AsyncCredentialsResourceWithStreamingResponse

src/kernel/resources/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@
1616
AuthResourceWithStreamingResponse,
1717
AsyncAuthResourceWithStreamingResponse,
1818
)
19-
from .agents import (
20-
AgentsResource,
21-
AsyncAgentsResource,
22-
AgentsResourceWithRawResponse,
23-
AsyncAgentsResourceWithRawResponse,
24-
AgentsResourceWithStreamingResponse,
25-
AsyncAgentsResourceWithStreamingResponse,
26-
)
2719
from .proxies import (
2820
ProxiesResource,
2921
AsyncProxiesResource,
@@ -152,12 +144,6 @@
152144
"AsyncBrowserPoolsResourceWithRawResponse",
153145
"BrowserPoolsResourceWithStreamingResponse",
154146
"AsyncBrowserPoolsResourceWithStreamingResponse",
155-
"AgentsResource",
156-
"AsyncAgentsResource",
157-
"AgentsResourceWithRawResponse",
158-
"AsyncAgentsResourceWithRawResponse",
159-
"AgentsResourceWithStreamingResponse",
160-
"AsyncAgentsResourceWithStreamingResponse",
161147
"CredentialsResource",
162148
"AsyncCredentialsResource",
163149
"CredentialsResourceWithRawResponse",

src/kernel/resources/agents/__init__.py

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

src/kernel/resources/agents/agents.py

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

src/kernel/resources/agents/auth/__init__.py

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

0 commit comments

Comments
 (0)