agentguard-python-sdk 0.2.6__py3-none-any.whl → 0.2.7__py3-none-any.whl
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.
- agentguard/__init__.py +1 -1
- agentguard/client.py +3 -1
- agentguard/consent.py +3 -1
- {agentguard_python_sdk-0.2.6.dist-info → agentguard_python_sdk-0.2.7.dist-info}/METADATA +1 -1
- {agentguard_python_sdk-0.2.6.dist-info → agentguard_python_sdk-0.2.7.dist-info}/RECORD +8 -8
- {agentguard_python_sdk-0.2.6.dist-info → agentguard_python_sdk-0.2.7.dist-info}/WHEEL +0 -0
- {agentguard_python_sdk-0.2.6.dist-info → agentguard_python_sdk-0.2.7.dist-info}/licenses/LICENSE +0 -0
- {agentguard_python_sdk-0.2.6.dist-info → agentguard_python_sdk-0.2.7.dist-info}/top_level.txt +0 -0
agentguard/__init__.py
CHANGED
agentguard/client.py
CHANGED
|
@@ -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", ""),
|
agentguard/consent.py
CHANGED
|
@@ -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,8 +1,8 @@
|
|
|
1
|
-
agentguard/__init__.py,sha256=
|
|
1
|
+
agentguard/__init__.py,sha256=s1otC9vZUDz6ybfFFFJzrJKcX3psB5lbVBlpvW9AlLk,1368
|
|
2
2
|
agentguard/auth.py,sha256=fDMc79ObNCcRwd1d0zD5CB2kvW54Acx-rJfT3KSN6Qg,603
|
|
3
|
-
agentguard/client.py,sha256=
|
|
3
|
+
agentguard/client.py,sha256=cAcdksbbNv9ZU-mgngXiwVa8tYDZuU8mqc4aEp2QCWQ,31060
|
|
4
4
|
agentguard/config.py,sha256=zK7IMox6-CPMtnoUC6bJSh9ZGfIS2Y5vMrdeSIVje7s,1525
|
|
5
|
-
agentguard/consent.py,sha256=
|
|
5
|
+
agentguard/consent.py,sha256=nKbdmP-I1QLhYeScMJ1Rt1qwJF5NeVhVQTphLwFWxi0,2065
|
|
6
6
|
agentguard/errors.py,sha256=wIFcTLHYq6fIc2ibgsh45Zfq7CSZTl0fkgj1VHYfZuc,4983
|
|
7
7
|
agentguard/observability.py,sha256=2xSySYDtPhtiNUKXH0zQ0N4WG7j3ssQqPtOBDK6V2EQ,1706
|
|
8
8
|
agentguard/types.py,sha256=bk6PRB2mUjYaIV3EjrHl1p4Z404T0cRyNCA1yx9qdMg,1868
|
|
@@ -10,8 +10,8 @@ agentguard_crypto/__init__.py,sha256=fhK2gyw9TRWCxr_ax6XUItkbBCmlCi5pXEOLdMRKxDU
|
|
|
10
10
|
agentguard_crypto/canonical.py,sha256=TRz_ZW2JxobIXAkXEDIHR4Jk-alAzl6VSOSWpKwm9ag,1188
|
|
11
11
|
agentguard_crypto/models.py,sha256=t8p87XvoXhzMdnVTwBog0jbtevpYape_81TN9yFpcXg,3235
|
|
12
12
|
agentguard_crypto/signing.py,sha256=nzFuZQhxYORJNp6ZXF3d-ddLBjS1BibTlX_RgvsNZ6c,2906
|
|
13
|
-
agentguard_python_sdk-0.2.
|
|
14
|
-
agentguard_python_sdk-0.2.
|
|
15
|
-
agentguard_python_sdk-0.2.
|
|
16
|
-
agentguard_python_sdk-0.2.
|
|
17
|
-
agentguard_python_sdk-0.2.
|
|
13
|
+
agentguard_python_sdk-0.2.7.dist-info/licenses/LICENSE,sha256=Z1Q553BLX5ho8O0gS_1VmndaVnz2NWgKMcH9aoKwqmM,1093
|
|
14
|
+
agentguard_python_sdk-0.2.7.dist-info/METADATA,sha256=yQ9LPPcJCd_JF0vqSRUxhEu-c7Eb5h7NnjOFk564vms,5359
|
|
15
|
+
agentguard_python_sdk-0.2.7.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
16
|
+
agentguard_python_sdk-0.2.7.dist-info/top_level.txt,sha256=8cQ4cluQzmuln1QOqGfNlEpAt3QCW5szoNTbbgwWxFY,29
|
|
17
|
+
agentguard_python_sdk-0.2.7.dist-info/RECORD,,
|
|
File without changes
|
{agentguard_python_sdk-0.2.6.dist-info → agentguard_python_sdk-0.2.7.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{agentguard_python_sdk-0.2.6.dist-info → agentguard_python_sdk-0.2.7.dist-info}/top_level.txt
RENAMED
|
File without changes
|