agentguard-python-sdk 0.2.6__tar.gz → 0.2.7__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.
Files changed (22) hide show
  1. {agentguard_python_sdk-0.2.6 → agentguard_python_sdk-0.2.7}/PKG-INFO +1 -1
  2. {agentguard_python_sdk-0.2.6 → agentguard_python_sdk-0.2.7}/agentguard/__init__.py +1 -1
  3. {agentguard_python_sdk-0.2.6 → agentguard_python_sdk-0.2.7}/agentguard/client.py +3 -1
  4. {agentguard_python_sdk-0.2.6 → agentguard_python_sdk-0.2.7}/agentguard/consent.py +3 -1
  5. {agentguard_python_sdk-0.2.6 → agentguard_python_sdk-0.2.7}/agentguard_python_sdk.egg-info/PKG-INFO +1 -1
  6. {agentguard_python_sdk-0.2.6 → agentguard_python_sdk-0.2.7}/pyproject.toml +1 -1
  7. {agentguard_python_sdk-0.2.6 → agentguard_python_sdk-0.2.7}/LICENSE +0 -0
  8. {agentguard_python_sdk-0.2.6 → agentguard_python_sdk-0.2.7}/README.md +0 -0
  9. {agentguard_python_sdk-0.2.6 → agentguard_python_sdk-0.2.7}/agentguard/auth.py +0 -0
  10. {agentguard_python_sdk-0.2.6 → agentguard_python_sdk-0.2.7}/agentguard/config.py +0 -0
  11. {agentguard_python_sdk-0.2.6 → agentguard_python_sdk-0.2.7}/agentguard/errors.py +0 -0
  12. {agentguard_python_sdk-0.2.6 → agentguard_python_sdk-0.2.7}/agentguard/observability.py +0 -0
  13. {agentguard_python_sdk-0.2.6 → agentguard_python_sdk-0.2.7}/agentguard/types.py +0 -0
  14. {agentguard_python_sdk-0.2.6 → agentguard_python_sdk-0.2.7}/agentguard_crypto/__init__.py +0 -0
  15. {agentguard_python_sdk-0.2.6 → agentguard_python_sdk-0.2.7}/agentguard_crypto/canonical.py +0 -0
  16. {agentguard_python_sdk-0.2.6 → agentguard_python_sdk-0.2.7}/agentguard_crypto/models.py +0 -0
  17. {agentguard_python_sdk-0.2.6 → agentguard_python_sdk-0.2.7}/agentguard_crypto/signing.py +0 -0
  18. {agentguard_python_sdk-0.2.6 → agentguard_python_sdk-0.2.7}/agentguard_python_sdk.egg-info/SOURCES.txt +0 -0
  19. {agentguard_python_sdk-0.2.6 → agentguard_python_sdk-0.2.7}/agentguard_python_sdk.egg-info/dependency_links.txt +0 -0
  20. {agentguard_python_sdk-0.2.6 → agentguard_python_sdk-0.2.7}/agentguard_python_sdk.egg-info/requires.txt +0 -0
  21. {agentguard_python_sdk-0.2.6 → agentguard_python_sdk-0.2.7}/agentguard_python_sdk.egg-info/top_level.txt +0 -0
  22. {agentguard_python_sdk-0.2.6 → agentguard_python_sdk-0.2.7}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentguard-python-sdk
3
- Version: 0.2.6
3
+ Version: 0.2.7
4
4
  Summary: A production-grade middleware for AI agents to perform on-chain payments and verifiable consent.
5
5
  Author: AgentGuard Team
6
6
  License-Expression: MIT
@@ -27,7 +27,7 @@ from .types import (
27
27
  RevocationReceipt
28
28
  )
29
29
 
30
- __version__ = "0.2.6"
30
+ __version__ = "0.2.7"
31
31
 
32
32
  __all__ = [
33
33
  "AgentGuardClient",
@@ -192,7 +192,8 @@ class AgentGuardClient:
192
192
  timestamp=timestamp,
193
193
  fiduciary_name=self.config.fiduciary_name,
194
194
  fiduciary_version=self.config.fiduciary_version,
195
- hash_version=self.config.hash_version
195
+ hash_version=self.config.hash_version,
196
+ signer_id=self.signer_id
196
197
  )
197
198
 
198
199
  from agentguard_crypto.models import CanonicalPaymentPayload
@@ -337,6 +338,7 @@ class AgentGuardClient:
337
338
  from agentguard_crypto.models import CanonicalPaymentPayload
338
339
 
339
340
  canonical_payload = CanonicalPaymentPayload(
341
+ signer_id=local_proof.get("signer_id", self.signer_id),
340
342
  principal_id=local_proof.get("principal_id", self.wallet_address),
341
343
  resource_url=local_proof.get("resource_url", ""),
342
344
  purpose=local_proof.get("purpose", ""),
@@ -30,7 +30,8 @@ def generate_consent_proof(
30
30
  hash_version: int = 4,
31
31
  authorization_id: str = "",
32
32
  correlation_id: str = "",
33
- idempotency_key: str = ""
33
+ idempotency_key: str = "",
34
+ signer_id: str = None
34
35
  ) -> tuple[str, int]:
35
36
  """
36
37
  High-level helper to generate a consent hash and return the timestamp used.
@@ -42,6 +43,7 @@ def generate_consent_proof(
42
43
 
43
44
  # Generate the canonical model
44
45
  canonical_model = CanonicalPaymentPayload(
46
+ signer_id=signer_id or principal_id,
45
47
  principal_id=principal_id,
46
48
  resource_url=resource_url,
47
49
  purpose=purpose,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentguard-python-sdk
3
- Version: 0.2.6
3
+ Version: 0.2.7
4
4
  Summary: A production-grade middleware for AI agents to perform on-chain payments and verifiable consent.
5
5
  Author: AgentGuard Team
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "agentguard-python-sdk"
7
- version = "0.2.6"
7
+ version = "0.2.7"
8
8
  description = "A production-grade middleware for AI agents to perform on-chain payments and verifiable consent."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"