File tree Expand file tree Collapse file tree 5 files changed +16
-23
lines changed
Expand file tree Collapse file tree 5 files changed +16
-23
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name = "klavis"
33
44[tool .poetry ]
55name = " klavis"
6- version = " 2.2 .0"
6+ version = " 2.3 .0"
77description = " "
88readme = " README.md"
99authors = []
Original file line number Diff line number Diff line change @@ -604,9 +604,7 @@ client = Klavis(
604604client.mcp_server.set_strata_auth(
605605 strata_id = " strataId" ,
606606 server_name = McpServerName.AFFINITY ,
607- auth_data = ApiKeyAuth(
608- api_key = " api_key" ,
609- ),
607+ auth_data = ApiKeyAuth(),
610608)
611609
612610```
@@ -1226,9 +1224,7 @@ client = Klavis(
12261224)
12271225client.mcp_server.set_instance_auth(
12281226 instance_id = " instanceId" ,
1229- auth_data = ApiKeyAuth(
1230- api_key = " api_key" ,
1231- ),
1227+ auth_data = ApiKeyAuth(),
12321228)
12331229
12341230```
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ def __init__(
2020
2121 def get_headers (self ) -> typing .Dict [str , str ]:
2222 headers : typing .Dict [str , str ] = {
23- "User-Agent" : "klavis/2.2 .0" ,
23+ "User-Agent" : "klavis/2.3 .0" ,
2424 "X-Fern-Language" : "Python" ,
2525 "X-Fern-SDK-Name" : "klavis" ,
26- "X-Fern-SDK-Version" : "2.2 .0" ,
26+ "X-Fern-SDK-Version" : "2.3 .0" ,
2727 }
2828 api_key = self ._get_api_key ()
2929 if api_key is not None :
Original file line number Diff line number Diff line change @@ -412,9 +412,7 @@ def set_strata_auth(
412412 client.mcp_server.set_strata_auth(
413413 strata_id="strataId",
414414 server_name=McpServerName.AFFINITY,
415- auth_data=ApiKeyAuth(
416- api_key="api_key",
417- ),
415+ auth_data=ApiKeyAuth(),
418416 )
419417 """
420418 _response = self ._raw_client .set_strata_auth (
@@ -723,9 +721,7 @@ def set_instance_auth(
723721 )
724722 client.mcp_server.set_instance_auth(
725723 instance_id="instanceId",
726- auth_data=ApiKeyAuth(
727- api_key="api_key",
728- ),
724+ auth_data=ApiKeyAuth(),
729725 )
730726 """
731727 _response = self ._raw_client .set_instance_auth (
@@ -1265,9 +1261,7 @@ async def main() -> None:
12651261 await client.mcp_server.set_strata_auth(
12661262 strata_id="strataId",
12671263 server_name=McpServerName.AFFINITY,
1268- auth_data=ApiKeyAuth(
1269- api_key="api_key",
1270- ),
1264+ auth_data=ApiKeyAuth(),
12711265 )
12721266
12731267
@@ -1642,9 +1636,7 @@ async def set_instance_auth(
16421636 async def main() -> None:
16431637 await client.mcp_server.set_instance_auth(
16441638 instance_id="instanceId",
1645- auth_data=ApiKeyAuth(
1646- api_key="api_key",
1647- ),
1639+ auth_data=ApiKeyAuth(),
16481640 )
16491641
16501642
Original file line number Diff line number Diff line change 77
88
99class ApiKeyAuth (UniversalBaseModel ):
10- api_key : str = pydantic .Field ()
10+ token : typing . Optional [ str ] = pydantic .Field (default = None )
1111 """
12- The API key to save
12+ The API key to save (token field)
13+ """
14+
15+ api_key : typing .Optional [str ] = pydantic .Field (default = None )
16+ """
17+ The API key to save (api_key field)
1318 """
1419
1520 if IS_PYDANTIC_V2 :
You can’t perform that action at this time.
0 commit comments