MCPcopy Create free account

hub / github.com/MetapriseAI/OrgKernel / types & classes

Types & classes35 in github.com/MetapriseAI/OrgKernel

↓ 13 callersClassAgentIdentityService
Service for AgentIdentity full PKI lifecycle management. PKI Flow: 1. submit_csr() - Agent submits CSR (public key + meta
src/orgkernel/services/agent_identity_service.py:169
↓ 8 callersClassExecutionTokenService
Service for ExecutionToken lifecycle management. Usage:: svc = ExecutionTokenService(db=db_session) token = await svc
src/orgkernel/services/execution_token_service.py:120
↓ 7 callersClassAuditChainService
Service for AuditChain persistence and querying. All public methods are async and require an ``AsyncSession`` as the first positional ar
src/orgkernel/services/audit_chain_service.py:94
↓ 5 callersClassAgentIdentityVerifyResponse
Response from an AgentIdentity static verification.
src/orgkernel/schemas/agent_identity.py:487
↓ 4 callersClassAgentIdentityOut
Response schema for AgentIdentity queries.
src/orgkernel/schemas/agent_identity.py:453
↓ 3 callersClassAuditEntry
Single immutable record in the AuditChain. entry_hash = SHA-256(canonical JSON of this entry, excluding entry_hash itself). prev_hash
src/orgkernel/schemas/audit_chain.py:58
↓ 3 callersClassChallengeVerificationResult
Result of challenge-response verification.
src/orgkernel/schemas/agent_identity.py:421
↓ 3 callersClassExecutionTokenOut
Response schema for ExecutionToken queries.
src/orgkernel/schemas/execution_token.py:259
↓ 2 callersClassAgentCertificate
Signed certificate issued by the Org CA. This is the artifact returned after the CA validates a CSR and signs it. The agent stores t
src/orgkernel/schemas/agent_identity.py:275
↓ 2 callersClassAuditEntryModel
Stores individual AuditEntry records. Belongs to one AuditChain.
src/orgkernel/models.py:202
↓ 2 callersClassChallengeRequest
Request a cryptographic challenge for dynamic verification. The verifier sends a random challenge; the agent must sign it with its p
src/orgkernel/schemas/agent_identity.py:345
↓ 2 callersClassExecutionToken
Scoped, time-bounded permission token for a specific Mission execution. Issued at Mission APPROVED state. Enforced at the Tool Gateway
src/orgkernel/schemas/execution_token.py:94
↓ 2 callersClassScopeCheckResponse
Response from a scope check.
src/orgkernel/schemas/execution_token.py:286
↓ 1 callersClassAgentIdentity
Cryptographic organizational credential for an AI agent. Issued by AgentIdentityService using Ed25519 keypairs signed by the Org CA.
src/orgkernel/schemas/agent_identity.py:62
↓ 1 callersClassAgentIdentityCSR
Certificate Signing Request submitted by an agent. Step 1 of the PKI lifecycle: Agent generates a keypair locally, then submits this
src/orgkernel/schemas/agent_identity.py:207
↓ 1 callersClassAgentIdentityIssueResult
Result of issuing an AgentIdentity from a CSR. Returned to the agent for secure storage.
src/orgkernel/schemas/agent_identity.py:499
↓ 1 callersClassAgentIdentityModel
Stores AgentIdentity records. One identity per agent_id. Not linked to sys_user (org-scoped, not user-scoped).
src/orgkernel/models.py:31
↓ 1 callersClassAgentIdentityStatus
Lifecycle status of an AgentIdentity credential.
src/orgkernel/schemas/agent_identity.py:51
↓ 1 callersClassAuditChain
Append-only hash-chained audit log for one Mission. One chain per Mission. Initialized at CREATED state, closed at CLOSED state. Usa
src/orgkernel/schemas/audit_chain.py:155
↓ 1 callersClassAuditChainModel
Stores AuditChain metadata. One chain per Mission. Entries are stored in AuditEntryModel.
src/orgkernel/models.py:165
↓ 1 callersClassAuditChainVerifyResponse
Response from AuditChain integrity verification.
src/orgkernel/pyapi/router.py:657
↓ 1 callersClassAuditLayer
Layer of the AuditChain entry.
src/orgkernel/schemas/audit_chain.py:47
↓ 1 callersClassBoundedParam
A named tool call parameter with numeric bounds. Calls exceeding bounds are blocked at the Tool Gateway.
src/orgkernel/schemas/execution_token.py:51
↓ 1 callersClassExecutionTokenModel
Stores ExecutionToken records. One token per token_id. Tokens are immutable once issued.
src/orgkernel/models.py:98
↓ 1 callersClassScopeCheckResult
Result of a Tool Gateway scope check against an ExecutionToken.
src/orgkernel/schemas/execution_token.py:84
ClassAgentIdentityCreate
Request to issue a new AgentIdentity (legacy method — wraps CSR flow).
src/orgkernel/schemas/agent_identity.py:441
ClassAgentIdentityRevoke
Request to revoke an AgentIdentity.
src/orgkernel/schemas/agent_identity.py:473
ClassAgentIdentityVerify
Request to verify an AgentIdentity (static check). For cryptographic verification, use the challenge-response flow instead.
src/orgkernel/schemas/agent_identity.py:479
ClassAuditChainAppendRequest
Request to append an entry to an AuditChain.
src/orgkernel/pyapi/router.py:647
ClassAuditChainInitRequest
Request to initialize an AuditChain.
src/orgkernel/pyapi/router.py:641
ClassBaseModel
Base for all OrgKernel SQLAlchemy models.
src/orgkernel/models.py:26
ClassChallengeResponse
Response to a challenge — agent signs the nonce with its private key. The verifier checks: 1. challenge_id matches the request
src/orgkernel/schemas/agent_identity.py:387
ClassErrorResponse
Standard error response.
src/orgkernel/pyapi/router.py:83
ClassExecutionTokenCreate
Request to mint a new ExecutionToken.
src/orgkernel/schemas/execution_token.py:248
ClassScopeCheckRequest
Request to validate a tool call against an ExecutionToken.
src/orgkernel/schemas/execution_token.py:279