capiscio-sdk 0.3.0__py3-none-any.whl → 2.3.1__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.
capiscio_sdk/__init__.py CHANGED
@@ -6,9 +6,15 @@ validation, signature verification, and protocol compliance checking.
6
6
  Example:
7
7
  >>> from capiscio_sdk import secure
8
8
  >>> agent = secure(MyAgentExecutor())
9
+
10
+ >>> from capiscio_sdk.badge import verify_badge
11
+ >>> result = verify_badge(token, trusted_issuers=["https://registry.capisc.io"])
12
+
13
+ >>> from capiscio_sdk import validate_agent_card
14
+ >>> result = validate_agent_card(card_dict) # Uses Go core
9
15
  """
10
16
 
11
- __version__ = "0.2.0"
17
+ __version__ = "2.3.1"
12
18
 
13
19
  # Core exports
14
20
  from .executor import CapiscioSecurityExecutor, secure, secure_agent
@@ -23,22 +29,82 @@ from .errors import (
23
29
  )
24
30
  from .types import ValidationResult, ValidationIssue, ValidationSeverity
25
31
 
32
+ # Go core-backed validation (RECOMMENDED)
33
+ from .validators import CoreValidator, validate_agent_card
34
+
35
+ # Trust Badge API
36
+ from .badge import (
37
+ verify_badge,
38
+ parse_badge,
39
+ request_badge,
40
+ request_badge_sync,
41
+ request_pop_badge,
42
+ request_pop_badge_sync,
43
+ start_badge_keeper,
44
+ BadgeClaims,
45
+ VerifyOptions,
46
+ VerifyResult,
47
+ VerifyMode,
48
+ TrustLevel,
49
+ )
50
+
51
+ # Badge lifecycle management
52
+ from .badge_keeper import BadgeKeeper, BadgeKeeperConfig
53
+
54
+ # Domain Validation (DV) API
55
+ from .dv import (
56
+ create_dv_order,
57
+ get_dv_order,
58
+ finalize_dv_order,
59
+ DVOrder,
60
+ DVGrant,
61
+ )
62
+
26
63
  __all__ = [
27
64
  "__version__",
65
+ # Security middleware
28
66
  "CapiscioSecurityExecutor",
29
67
  "SimpleGuard",
30
68
  "secure",
31
69
  "secure_agent",
70
+ # Configuration
32
71
  "SecurityConfig",
33
72
  "DownstreamConfig",
34
73
  "UpstreamConfig",
74
+ # Errors
35
75
  "CapiscioSecurityError",
36
76
  "CapiscioValidationError",
37
77
  "CapiscioSignatureError",
38
78
  "CapiscioRateLimitError",
39
79
  "CapiscioUpstreamError",
80
+ # Types
40
81
  "ValidationResult",
41
82
  "ValidationIssue",
42
83
  "ValidationSeverity",
84
+ # Validation (Go core-backed)
85
+ "CoreValidator",
86
+ "validate_agent_card",
87
+ # Trust Badge API
88
+ "verify_badge",
89
+ "parse_badge",
90
+ "request_badge",
91
+ "request_badge_sync",
92
+ "request_pop_badge",
93
+ "request_pop_badge_sync",
94
+ "start_badge_keeper",
95
+ "BadgeClaims",
96
+ "VerifyOptions",
97
+ "VerifyResult",
98
+ "VerifyMode",
99
+ "TrustLevel",
100
+ # Badge lifecycle management
101
+ "BadgeKeeper",
102
+ "BadgeKeeperConfig",
103
+ # Domain Validation (DV) API
104
+ "create_dv_order",
105
+ "get_dv_order",
106
+ "finalize_dv_order",
107
+ "DVOrder",
108
+ "DVGrant",
43
109
  ]
44
110
 
@@ -0,0 +1,7 @@
1
+ # CapiscIO RPC Client Package
2
+ # This module provides the gRPC client wrapper for communicating with capiscio-core.
3
+
4
+ from capiscio_sdk._rpc.client import CapiscioRPCClient
5
+ from capiscio_sdk._rpc.process import ProcessManager
6
+
7
+ __all__ = ["CapiscioRPCClient", "ProcessManager"]