api-mapper-client 1.0.0__tar.gz → 1.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {api_mapper_client-1.0.0 → api_mapper_client-1.0.1}/.gitignore +5 -0
- {api_mapper_client-1.0.0 → api_mapper_client-1.0.1}/PKG-INFO +1 -1
- {api_mapper_client-1.0.0 → api_mapper_client-1.0.1}/api_mapper_client/auth/oauth2_client_credentials.py +4 -1
- {api_mapper_client-1.0.0 → api_mapper_client-1.0.1}/api_mapper_client/client.py +1 -1
- {api_mapper_client-1.0.0 → api_mapper_client-1.0.1}/pyproject.toml +1 -1
- {api_mapper_client-1.0.0 → api_mapper_client-1.0.1}/LICENSE +0 -0
- {api_mapper_client-1.0.0 → api_mapper_client-1.0.1}/README.md +0 -0
- {api_mapper_client-1.0.0 → api_mapper_client-1.0.1}/api_mapper_client/__init__.py +0 -0
- {api_mapper_client-1.0.0 → api_mapper_client-1.0.1}/api_mapper_client/auth/__init__.py +0 -0
- {api_mapper_client-1.0.0 → api_mapper_client-1.0.1}/api_mapper_client/auth/api_key.py +0 -0
- {api_mapper_client-1.0.0 → api_mapper_client-1.0.1}/api_mapper_client/auth/base.py +0 -0
- {api_mapper_client-1.0.0 → api_mapper_client-1.0.1}/api_mapper_client/auth/delegated_bearer.py +0 -0
- {api_mapper_client-1.0.0 → api_mapper_client-1.0.1}/api_mapper_client/contracts.py +0 -0
- {api_mapper_client-1.0.0 → api_mapper_client-1.0.1}/api_mapper_langchain/__init__.py +0 -0
- {api_mapper_client-1.0.0 → api_mapper_client-1.0.1}/api_mapper_langchain/toolkit.py +0 -0
- {api_mapper_client-1.0.0 → api_mapper_client-1.0.1}/api_mapper_langgraph/__init__.py +0 -0
- {api_mapper_client-1.0.0 → api_mapper_client-1.0.1}/api_mapper_langgraph/nodes.py +0 -0
|
@@ -62,7 +62,10 @@ class OAuth2ClientCredentialsProvider(RuntimeCredentialProvider):
|
|
|
62
62
|
self._resolved_endpoint = self._opts.token_endpoint
|
|
63
63
|
return self._resolved_endpoint
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
if not self._opts.authority:
|
|
66
|
+
raise ValueError("authority must be set when token_endpoint is not provided.")
|
|
67
|
+
|
|
68
|
+
discovery_url = f"{self._opts.authority.rstrip('/')}/.well-known/openid-configuration"
|
|
66
69
|
async with httpx.AsyncClient() as client:
|
|
67
70
|
res = await client.get(discovery_url)
|
|
68
71
|
res.raise_for_status()
|
|
@@ -26,7 +26,7 @@ class ApiMapperClientOptions:
|
|
|
26
26
|
credentials: RuntimeCredentialProvider
|
|
27
27
|
system_prompt_resource_uri: str | None = None
|
|
28
28
|
client_name: str = "ApiMapper.Client"
|
|
29
|
-
client_version: str = "1.0.
|
|
29
|
+
client_version: str = "1.0.1"
|
|
30
30
|
cache_tools: bool = False
|
|
31
31
|
cache_system_prompt: bool = False
|
|
32
32
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{api_mapper_client-1.0.0 → api_mapper_client-1.0.1}/api_mapper_client/auth/delegated_bearer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|