aporthq-sdk-python 0.1.3__tar.gz → 0.1.4__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 (18) hide show
  1. {aporthq_sdk_python-0.1.3/src/aporthq_sdk_python.egg-info → aporthq_sdk_python-0.1.4}/PKG-INFO +5 -2
  2. {aporthq_sdk_python-0.1.3 → aporthq_sdk_python-0.1.4}/README.md +4 -1
  3. {aporthq_sdk_python-0.1.3 → aporthq_sdk_python-0.1.4}/pyproject.toml +1 -1
  4. {aporthq_sdk_python-0.1.3 → aporthq_sdk_python-0.1.4}/src/aporthq_sdk_python/__init__.py +1 -1
  5. {aporthq_sdk_python-0.1.3 → aporthq_sdk_python-0.1.4}/src/aporthq_sdk_python/client.py +12 -1
  6. {aporthq_sdk_python-0.1.3 → aporthq_sdk_python-0.1.4/src/aporthq_sdk_python.egg-info}/PKG-INFO +5 -2
  7. {aporthq_sdk_python-0.1.3 → aporthq_sdk_python-0.1.4}/LICENSE +0 -0
  8. {aporthq_sdk_python-0.1.3 → aporthq_sdk_python-0.1.4}/setup.cfg +0 -0
  9. {aporthq_sdk_python-0.1.3 → aporthq_sdk_python-0.1.4}/src/aporthq_sdk_python/decision_types.py +0 -0
  10. {aporthq_sdk_python-0.1.3 → aporthq_sdk_python-0.1.4}/src/aporthq_sdk_python/errors.py +0 -0
  11. {aporthq_sdk_python-0.1.3 → aporthq_sdk_python-0.1.4}/src/aporthq_sdk_python/exceptions.py +0 -0
  12. {aporthq_sdk_python-0.1.3 → aporthq_sdk_python-0.1.4}/src/aporthq_sdk_python/shared_types.py +0 -0
  13. {aporthq_sdk_python-0.1.3 → aporthq_sdk_python-0.1.4}/src/aporthq_sdk_python/thin_client.py +0 -0
  14. {aporthq_sdk_python-0.1.3 → aporthq_sdk_python-0.1.4}/src/aporthq_sdk_python.egg-info/SOURCES.txt +0 -0
  15. {aporthq_sdk_python-0.1.3 → aporthq_sdk_python-0.1.4}/src/aporthq_sdk_python.egg-info/dependency_links.txt +0 -0
  16. {aporthq_sdk_python-0.1.3 → aporthq_sdk_python-0.1.4}/src/aporthq_sdk_python.egg-info/requires.txt +0 -0
  17. {aporthq_sdk_python-0.1.3 → aporthq_sdk_python-0.1.4}/src/aporthq_sdk_python.egg-info/top_level.txt +0 -0
  18. {aporthq_sdk_python-0.1.3 → aporthq_sdk_python-0.1.4}/tests/test_thin_client.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aporthq-sdk-python
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Python SDK for The Passport for AI Agents
5
5
  Author-email: APort Team <team@aport.io>
6
6
  License: MIT
@@ -141,7 +141,7 @@ Initializes the APort client.
141
141
  #### `async verify_policy(agent_id: str, policy_id: str, context: Dict[str, Any] = None, idempotency_key: str = None, *, passport: Dict = None, policy: PolicyPack = None) -> PolicyVerificationResponse`
142
142
  Verifies a policy against an agent by calling the `/api/verify/policy/:pack_id` endpoint. Optionally pass `passport` and/or `policy` as keyword-only args for local/dynamic mode.
143
143
  - `agent_id` (str): The ID of the agent.
144
- - `policy_id` (str): The ID of the policy pack (e.g., `finance.payment.refund.v1`, `code.release.publish.v1`).
144
+ - `policy_id` (str): The ID of the policy pack (e.g., `finance.payment.refund.v1`, `deliverable.task.complete.v1`, `code.release.publish.v1`).
145
145
  - `context` (Dict[str, Any], optional): The policy-specific context data.
146
146
  - `idempotency_key` (str, optional): An optional idempotency key for the request.
147
147
  - `passport` (dict, optional, keyword-only): Passport object to send in body (local mode).
@@ -181,6 +181,9 @@ Verifies the `finance.payment.refund.v1` policy.
181
181
  #### `async verify_repository(agent_id: str, context: Dict[str, Any], idempotency_key: str = None) -> PolicyVerificationResponse`
182
182
  Verifies the `code.repository.merge.v1` policy.
183
183
 
184
+ #### `async verify_deliverable_task_complete(agent_id: str, context: Dict[str, Any], idempotency_key: str = None) -> PolicyVerificationResponse`
185
+ Verifies the `deliverable.task.complete.v1` policy (task completion gate).
186
+
184
187
  #### Additional Policy Methods
185
188
  The `PolicyVerifier` also includes convenience methods for other policies:
186
189
  - `verify_release()` - Verifies the `code.release.publish.v1` policy
@@ -105,7 +105,7 @@ Initializes the APort client.
105
105
  #### `async verify_policy(agent_id: str, policy_id: str, context: Dict[str, Any] = None, idempotency_key: str = None, *, passport: Dict = None, policy: PolicyPack = None) -> PolicyVerificationResponse`
106
106
  Verifies a policy against an agent by calling the `/api/verify/policy/:pack_id` endpoint. Optionally pass `passport` and/or `policy` as keyword-only args for local/dynamic mode.
107
107
  - `agent_id` (str): The ID of the agent.
108
- - `policy_id` (str): The ID of the policy pack (e.g., `finance.payment.refund.v1`, `code.release.publish.v1`).
108
+ - `policy_id` (str): The ID of the policy pack (e.g., `finance.payment.refund.v1`, `deliverable.task.complete.v1`, `code.release.publish.v1`).
109
109
  - `context` (Dict[str, Any], optional): The policy-specific context data.
110
110
  - `idempotency_key` (str, optional): An optional idempotency key for the request.
111
111
  - `passport` (dict, optional, keyword-only): Passport object to send in body (local mode).
@@ -145,6 +145,9 @@ Verifies the `finance.payment.refund.v1` policy.
145
145
  #### `async verify_repository(agent_id: str, context: Dict[str, Any], idempotency_key: str = None) -> PolicyVerificationResponse`
146
146
  Verifies the `code.repository.merge.v1` policy.
147
147
 
148
+ #### `async verify_deliverable_task_complete(agent_id: str, context: Dict[str, Any], idempotency_key: str = None) -> PolicyVerificationResponse`
149
+ Verifies the `deliverable.task.complete.v1` policy (task completion gate).
150
+
148
151
  #### Additional Policy Methods
149
152
  The `PolicyVerifier` also includes convenience methods for other policies:
150
153
  - `verify_release()` - Verifies the `code.release.publish.v1` policy
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "aporthq-sdk-python"
7
- version = "0.1.3"
7
+ version = "0.1.4"
8
8
  description = "Python SDK for The Passport for AI Agents"
9
9
  authors = [
10
10
  {name = "APort Team", email = "team@aport.io"}
@@ -22,7 +22,7 @@ from .errors import AportError
22
22
  # Backward compatibility - re-export from shared_types
23
23
  from .shared_types import PassportData, AgentPassport
24
24
 
25
- __version__ = "0.1.3"
25
+ __version__ = "0.1.4"
26
26
  __all__ = [
27
27
  # Core SDK
28
28
  "APortClient",
@@ -384,4 +384,15 @@ class PolicyVerifier:
384
384
  """Verify the code.repository.merge.v1 policy."""
385
385
  return await self.client.verify_policy(
386
386
  agent_id, "code.repository.merge.v1", context, idempotency_key
387
- )
387
+ )
388
+
389
+ async def verify_deliverable_task_complete(
390
+ self,
391
+ agent_id: str,
392
+ context: Dict[str, Any],
393
+ idempotency_key: Optional[str] = None,
394
+ ) -> PolicyVerificationResponse:
395
+ """Verify the deliverable.task.complete.v1 policy (task completion gate)."""
396
+ return await self.client.verify_policy(
397
+ agent_id, "deliverable.task.complete.v1", context, idempotency_key
398
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aporthq-sdk-python
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Python SDK for The Passport for AI Agents
5
5
  Author-email: APort Team <team@aport.io>
6
6
  License: MIT
@@ -141,7 +141,7 @@ Initializes the APort client.
141
141
  #### `async verify_policy(agent_id: str, policy_id: str, context: Dict[str, Any] = None, idempotency_key: str = None, *, passport: Dict = None, policy: PolicyPack = None) -> PolicyVerificationResponse`
142
142
  Verifies a policy against an agent by calling the `/api/verify/policy/:pack_id` endpoint. Optionally pass `passport` and/or `policy` as keyword-only args for local/dynamic mode.
143
143
  - `agent_id` (str): The ID of the agent.
144
- - `policy_id` (str): The ID of the policy pack (e.g., `finance.payment.refund.v1`, `code.release.publish.v1`).
144
+ - `policy_id` (str): The ID of the policy pack (e.g., `finance.payment.refund.v1`, `deliverable.task.complete.v1`, `code.release.publish.v1`).
145
145
  - `context` (Dict[str, Any], optional): The policy-specific context data.
146
146
  - `idempotency_key` (str, optional): An optional idempotency key for the request.
147
147
  - `passport` (dict, optional, keyword-only): Passport object to send in body (local mode).
@@ -181,6 +181,9 @@ Verifies the `finance.payment.refund.v1` policy.
181
181
  #### `async verify_repository(agent_id: str, context: Dict[str, Any], idempotency_key: str = None) -> PolicyVerificationResponse`
182
182
  Verifies the `code.repository.merge.v1` policy.
183
183
 
184
+ #### `async verify_deliverable_task_complete(agent_id: str, context: Dict[str, Any], idempotency_key: str = None) -> PolicyVerificationResponse`
185
+ Verifies the `deliverable.task.complete.v1` policy (task completion gate).
186
+
184
187
  #### Additional Policy Methods
185
188
  The `PolicyVerifier` also includes convenience methods for other policies:
186
189
  - `verify_release()` - Verifies the `code.release.publish.v1` policy