Skip to content

Commit f4c176c

Browse files
Release 2.9.0
1 parent 039c8b5 commit f4c176c

24 files changed

+1287
-129
lines changed

reference.md

Lines changed: 250 additions & 24 deletions
Large diffs are not rendered by default.

src/klavis/__init__.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
from .types import (
66
ApiKeyAuth,
7+
AzureAdoAuthErrorResponse,
8+
AzureAdoAuthSuccessResponse,
79
CallToolResponse,
810
CallToolResult,
911
ConnectionType,
@@ -38,14 +40,14 @@
3840
ValidationErrorLocItem,
3941
WhiteLabelingResponse,
4042
)
41-
from .errors import UnprocessableEntityError
42-
from . import mcp_server, oauth, teams_oauth, user, white_labeling
43+
from .errors import BadRequestError, UnprocessableEntityError
44+
from . import mcp_server, oauth, onedrive_oauth, outlook_oauth, teams_oauth, user, white_labeling
4345
from .client import AsyncKlavis, Klavis
4446
from .environment import KlavisEnvironment
4547
from .mcp_server import (
4648
Authdata,
4749
DeleteServersFromStrataMcpServerStrataStrataIdServersDeleteRequestServersItem,
48-
McpServerGetToolsResponse,
50+
GetServerToolsResponse,
4951
Servers,
5052
SetAuthRequestAuthData,
5153
)
@@ -57,6 +59,9 @@
5759
"ApiKeyAuth",
5860
"AsyncKlavis",
5961
"Authdata",
62+
"AzureAdoAuthErrorResponse",
63+
"AzureAdoAuthSuccessResponse",
64+
"BadRequestError",
6065
"CallToolResponse",
6166
"CallToolResult",
6267
"ConnectionType",
@@ -71,6 +76,7 @@
7176
"GetAuthDataResponse",
7277
"GetInstanceResponse",
7378
"GetMcpServersResponse",
79+
"GetServerToolsResponse",
7480
"GetUserAuthResponse",
7581
"GetUserIntegrationsResponse",
7682
"GetUserResponse",
@@ -79,7 +85,6 @@
7985
"KlavisEnvironment",
8086
"ListToolsResponse",
8187
"McpServer",
82-
"McpServerGetToolsResponse",
8388
"McpServerName",
8489
"MultiServerToolsResponse",
8590
"OAuthServerName",
@@ -102,6 +107,8 @@
102107
"__version__",
103108
"mcp_server",
104109
"oauth",
110+
"onedrive_oauth",
111+
"outlook_oauth",
105112
"teams_oauth",
106113
"user",
107114
"white_labeling",

src/klavis/client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
from .environment import KlavisEnvironment
88
from .mcp_server.client import AsyncMcpServerClient, McpServerClient
99
from .oauth.client import AsyncOauthClient, OauthClient
10+
from .onedrive_oauth.client import AsyncOnedriveOauthClient, OnedriveOauthClient
11+
from .outlook_oauth.client import AsyncOutlookOauthClient, OutlookOauthClient
1012
from .teams_oauth.client import AsyncTeamsOauthClient, TeamsOauthClient
1113
from .user.client import AsyncUserClient, UserClient
1214
from .white_labeling.client import AsyncWhiteLabelingClient, WhiteLabelingClient
@@ -76,6 +78,8 @@ def __init__(
7678
self.white_labeling = WhiteLabelingClient(client_wrapper=self._client_wrapper)
7779
self.user = UserClient(client_wrapper=self._client_wrapper)
7880
self.oauth = OauthClient(client_wrapper=self._client_wrapper)
81+
self.onedrive_oauth = OnedriveOauthClient(client_wrapper=self._client_wrapper)
82+
self.outlook_oauth = OutlookOauthClient(client_wrapper=self._client_wrapper)
7983
self.teams_oauth = TeamsOauthClient(client_wrapper=self._client_wrapper)
8084

8185

@@ -143,6 +147,8 @@ def __init__(
143147
self.white_labeling = AsyncWhiteLabelingClient(client_wrapper=self._client_wrapper)
144148
self.user = AsyncUserClient(client_wrapper=self._client_wrapper)
145149
self.oauth = AsyncOauthClient(client_wrapper=self._client_wrapper)
150+
self.onedrive_oauth = AsyncOnedriveOauthClient(client_wrapper=self._client_wrapper)
151+
self.outlook_oauth = AsyncOutlookOauthClient(client_wrapper=self._client_wrapper)
146152
self.teams_oauth = AsyncTeamsOauthClient(client_wrapper=self._client_wrapper)
147153

148154

src/klavis/errors/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# isort: skip_file
44

5+
from .bad_request_error import BadRequestError
56
from .unprocessable_entity_error import UnprocessableEntityError
67

7-
__all__ = ["UnprocessableEntityError"]
8+
__all__ = ["BadRequestError", "UnprocessableEntityError"]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
5+
from ..core.api_error import ApiError
6+
from ..types.azure_ado_auth_error_response import AzureAdoAuthErrorResponse
7+
8+
9+
class BadRequestError(ApiError):
10+
def __init__(self, body: AzureAdoAuthErrorResponse, headers: typing.Optional[typing.Dict[str, str]] = None):
11+
super().__init__(status_code=400, headers=headers, body=body)

src/klavis/mcp_server/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
from .types import (
66
Authdata,
77
DeleteServersFromStrataMcpServerStrataStrataIdServersDeleteRequestServersItem,
8-
McpServerGetToolsResponse,
8+
GetServerToolsResponse,
99
Servers,
1010
SetAuthRequestAuthData,
1111
)
1212

1313
__all__ = [
1414
"Authdata",
1515
"DeleteServersFromStrataMcpServerStrataStrataIdServersDeleteRequestServersItem",
16-
"McpServerGetToolsResponse",
16+
"GetServerToolsResponse",
1717
"Servers",
1818
"SetAuthRequestAuthData",
1919
]

0 commit comments

Comments
 (0)