# Generated by scripts/binding-api.py from bindings/aitp-py/aitp.pyi. Do not edit.
@property @deprecated def aitp.DelegationVerified.cnf(self) -> str
@property def aitp.AitpAgent.aid(self) -> str
@property def aitp.SpkiPinVerifier.len(self) -> int
@staticmethod def aitp.AitpAgent.from_seed(seed: bytes, suite: Literal['ed25519', 'p256']='ed25519') -> 'AitpAgent'
@staticmethod def aitp.AitpAgent.generate(suite: Literal['ed25519', 'p256']='ed25519') -> 'AitpAgent'
attr aitp.DelegationVerified.cnf_jkt: str
attr aitp.DelegationVerified.delegatee: str
attr aitp.DelegationVerified.delegator: str
attr aitp.DelegationVerified.expires_at: int
attr aitp.DelegationVerified.grants: list[str]
attr aitp.DelegationVerified.issued_by: str
attr aitp.EnvelopeVerificationError.code: str
attr aitp.ManifestVerificationError.code: str
attr aitp.RevocationVerificationError.code: str
attr aitp.TctIdentity.expires_at: int
attr aitp.TctIdentity.grants: list[str]
attr aitp.TctIdentity.jti: str
attr aitp.TctIdentity.peer_aid: str
class aitp.AitpAgent
class aitp.DelegationVerified
class aitp.EnvelopeVerificationError(RuntimeError)
class aitp.InitiatorSession
class aitp.JwksProvider
class aitp.ManifestVerificationError(RuntimeError)
class aitp.ResponderSession
class aitp.RevocationVerificationError(RuntimeError)
class aitp.SpkiPinVerifier
class aitp.TctIdentity
class aitp.TctStore
const aitp.REVOCATION_LIST_PATH: str
def aitp.AitpAgent.build_delegation(self, voucher_token: str, delegatee_aid: str, scope: list[str], ttl_secs: Optional[int]=...) -> str
def aitp.AitpAgent.build_manifest(self, display_name: str, handshake_endpoint: str, offered_caps: list[str], required_caps: Optional[list[str]]=..., ttl_secs: Optional[int]=..., identity_type: Literal['pinned_key', 'oidc']='pinned_key', oidc_issuer: Optional[str]=..., oidc_subject: Optional[str]=..., accepted_trust_anchors: Optional[list[str]]=..., revocation_list_uri: Optional[str]=None, accepted_identity_types: Optional[list[str]]=None) -> str
def aitp.AitpAgent.issue_tct_for_delegatee(self, verified: DelegationVerified, ttl_secs: Optional[int]=...) -> str
def aitp.AitpAgent.new_pop_challenge(self, tct_token: str, ttl_secs: int=60) -> str
def aitp.AitpAgent.new_responder(self, jwks: Optional[JwksProvider]=..., trust_anchors: Optional[list[str]]=..., pinned_keys: Optional[list[str]]=None, *, insecure_localhost_dangerous: bool=False) -> ResponderSession
def aitp.AitpAgent.new_session(self, jwks: Optional[JwksProvider]=..., trust_anchors: Optional[list[str]]=..., pinned_keys: Optional[list[str]]=None, *, insecure_localhost_dangerous: bool=False) -> InitiatorSession
def aitp.AitpAgent.sign_envelope(self, message_type: str, payload_json: str, extensions_json: Optional[str]=..., message_id: Optional[str]=..., timestamp: Optional[int]=...) -> str
def aitp.AitpAgent.sign_pop_response(self, challenge_json: str) -> str
def aitp.AitpAgent.sign_revocation_list(self, entries: list[dict], expires_in_secs: Optional[int]=...) -> str
def aitp.AitpAgent.verify_tct(self, tct_token: str, required_grant: str, expected_audience: Optional[str]=..., revoked_jtis: Optional[RevokedJtis]=..., revocation: Optional[Revocation]=..., pop: Optional[PopExchange]=...) -> TctIdentity
def aitp.AitpAgent.verify_tct_cached(self, tct_token: str, required_grant: str, store: TctStore, expected_audience: Optional[str]=..., revoked_jtis: Optional[RevokedJtis]=..., revocation: Optional[Revocation]=..., pop: Optional[PopExchange]=...) -> TctIdentity
def aitp.InitiatorSession.build_hello(self, peer_manifest_json: str, requested_grants: list[str], oidc_mint_jwt: Optional[Callable[[str], str]]=...) -> str
def aitp.InitiatorSession.complete(self, commit_ack_json: str, revoked_jtis: Optional[RevokedJtis]=..., revocation: Optional[Revocation]=...) -> str
def aitp.InitiatorSession.process_hello_ack(self, hello_ack_json: str, session_id: str) -> str
def aitp.JwksProvider.__init__(self, keys: Optional[dict[str, list[dict]]]=...) -> None
def aitp.JwksProvider.issuers(self) -> list[str]
def aitp.JwksProvider.remove(self, issuer: str) -> None
def aitp.JwksProvider.upsert(self, issuer: str, keys: list[dict]) -> None
def aitp.ResponderSession.process_commit(self, commit_json: str, revoked_jtis: Optional[RevokedJtis]=..., revocation: Optional[Revocation]=...) -> tuple[str, str]
def aitp.ResponderSession.process_hello(self, hello_json: str, oidc_mint_jwt: Optional[Callable[[str], str]]=...) -> tuple[str, str]
def aitp.SpkiPinVerifier.__init__(self, pins: list[bytes]) -> None
def aitp.SpkiPinVerifier.is_pinned(self, cert_der: bytes) -> bool
def aitp.TctStore.__init__(self, max_entries: int) -> None
def aitp.TctStore.clear(self) -> None
def aitp.TctStore.len(self) -> int
def aitp.compute_aid_jkt(aid: str) -> str
def aitp.compute_spki_hash(cert_der: bytes) -> bytes
def aitp.revocation_signing_bytes(envelope_json: str) -> bytes
def aitp.verify_delegation(delegation_token: str, verifier_aid: str, issuer_manifests: Sequence[str], revoked_jtis: Optional[RevokedJtis]=None, revocation: Optional[Revocation]=None, *, insecure_localhost_dangerous: bool=False) -> DelegationVerified
def aitp.verify_envelope(envelope_json: str, expected_sender_aid: str) -> None
def aitp.verify_manifest_json(manifest_envelope_json: str, now_unix_secs: Optional[int]=..., *, insecure_localhost_dangerous: bool=False) -> None
def aitp.verify_pop_response(challenge_json: str, response_json: str, tct_token: str) -> str
def aitp.verify_revocation_list(envelope_json: str, expected_issuer_aid: str, now_unix_secs: Optional[int]=...) -> None
type aitp.PopExchange = tuple[str, str]
type aitp.Revocation = Literal['fail_closed', 'fail_open']
type aitp.RevokedJtis = Union[set[str], frozenset[str]]
