{"components":{"schemas":{"Error":{"description":"Every error: a message that never holds key material, passphrases or plaintext.","properties":{"error":{"type":"string"}},"required":["error"],"type":"object"},"aegis.v1.AccessGrant":{"additionalProperties":false,"description":"Route patterns and the operations allowed on them.","properties":{"operations":{"description":"Operations, such as `key.sign` or `key.*`.","items":{"type":"string"},"type":"array"},"paths":{"description":"Route patterns, such as `/v1/keys/payments-*/**`.","items":{"type":"string"},"type":"array"}},"type":"object"},"aegis.v1.AccessInForce":{"additionalProperties":false,"description":"What is in force for a tenant.","properties":{"break_glass_max":{"description":"The longest break-glass session, in seconds.","format":"int64","minimum":0,"type":"integer"},"dual_control":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.DualControl"},{"type":"null"}],"description":"Dual control: the stricter of the system's and the tenant's."}},"type":"object"},"aegis.v1.AccessOperation":{"additionalProperties":false,"description":"One row of the authorisation matrix.","properties":{"class":{"description":"`read`, `use`, `manage`, `audit`, `access` or `system`.","type":"string"},"method":{"description":"`GET` or `POST`.","type":"string"},"operation":{"description":"The operation, such as `key.sign`.","type":"string"},"path":{"description":"The route.","type":"string"},"reach":{"description":"`any`, `tenant` or `system`.","type":"string"},"role":{"description":"The lowest built-in role.","type":"string"}},"type":"object"},"aegis.v1.AccessPolicy":{"additionalProperties":false,"description":"One tenant's access policy. What is left out takes the built-in value.","properties":{"break_glass":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.BreakGlassLimits"},{"type":"null"}],"description":"Break-glass limits (system policy only)."},"certificates":{"description":"Client certificates accepted as principals (system policy only).","items":{"$ref":"#/components/schemas/aegis.v1.CertificateMapping"},"type":"array"},"dual_control":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.DualControl"},{"type":"null"}],"description":"Dual control; for a tenant other than the default one, at least the system's."},"oidc":{"description":"OpenID Connect claims mapped to roles (system policy only).","items":{"$ref":"#/components/schemas/aegis.v1.ClaimMapping"},"type":"array"},"roles":{"description":"Custom roles.","items":{"$ref":"#/components/schemas/aegis.v1.CustomRole"},"type":"array"},"set_at":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"When the policy was last replaced, set by the daemon, in seconds since the Unix epoch."}},"type":"object"},"aegis.v1.AccessPolicyView":{"additionalProperties":false,"description":"A tenant's access policy and what is in force for it.","properties":{"in_force":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.AccessInForce"},{"type":"null"}],"description":"What is in force for the tenant."},"operations":{"description":"Every operation a policy can name.","items":{"$ref":"#/components/schemas/aegis.v1.AccessOperation"},"type":"array"},"policy":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.AccessPolicy"},{"type":"null"}],"description":"The policy as stored; empty when the tenant has none."},"tenant":{"description":"The tenant.","type":"string"},"writable":{"description":"Whether runtime changes can be kept.","type":"boolean"}},"type":"object"},"aegis.v1.ActivatePolicyResponse":{"additionalProperties":false,"description":"The policy now in force.","properties":{"policy":{"description":"The engine's name for it.","type":"string"}},"type":"object"},"aegis.v1.AdvisorySource":{"additionalProperties":false,"description":"Where an advisory's finding is published.","properties":{"checked":{"description":"When it was checked.","type":"string"},"title":{"description":"The finding's title.","type":"string"},"url":{"description":"Where it is published.","type":"string"}},"type":"object"},"aegis.v1.AgreeResponse":{"additionalProperties":false,"description":"The raw shared secret.","properties":{"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"shared_secret":{"contentEncoding":"base64","description":"The shared secret.","type":"string"}},"type":"object"},"aegis.v1.Algorithm":{"additionalProperties":false,"description":"A catalogue entry and what this build can do with it.","properties":{"advisory":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.AlgorithmAdvisoryStatus"},{"type":"null"}],"description":"The signed advisory in force for it, if any (SVC-005)."},"apply":{"description":"New protection: `ready`, `not built` or `refused: <gate and why>`.","type":"string"},"category":{"anyOf":[{"format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},{"type":"null"}],"description":"The NIST security category, if it has one."},"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"checked":{"description":"When that standing was checked.","type":"string"},"ephemeral_only":{"description":"Whether its keys may only be ephemeral.","type":"boolean"},"family":{"description":"The family.","type":"string"},"id":{"description":"The identifier.","type":"string"},"kind":{"description":"The kind: kem, signature, aead and the rest.","type":"string"},"maturity":{"description":"The maturity.","type":"string"},"module":{"description":"The licensed module.","type":"string"},"name":{"description":"The name.","type":"string"},"process":{"description":"Handling what exists: the same answers.","type":"string"},"production":{"description":"Whether a production deployment may use it.","type":"boolean"},"providers":{"description":"The providers that implement it.","items":{"type":"string"},"type":"array"},"quantum_safe":{"description":"Whether it resists a quantum attacker.","type":"boolean"},"reach":{"description":"Where it may run.","type":"string"},"revision":{"description":"The specification revision the identifier is bound to.","type":"string"},"standards":{"description":"The standards that define it.","items":{"type":"string"},"type":"array"},"status":{"description":"Its standing in the standards.","type":"string"},"variable_time":{"description":"Whether the set's implementation runs in variable time; such sets are refused unless the daemon was started with the flag that allows them (a laboratory only).","type":"boolean"}},"type":"object"},"aegis.v1.AlgorithmAdvisory":{"additionalProperties":false,"description":"An algorithm advisory, as signed.","properties":{"algorithm":{"description":"The algorithm identifier.","type":"string"},"effective":{"description":"The first day it applies (ISO 8601).","type":"string"},"issued":{"description":"When it was issued.","type":"string"},"maturity":{"description":"The maturity from `effective` on.","type":"string"},"reason":{"description":"Why, in one or two sentences.","type":"string"},"sequence":{"description":"Rises with every advisory, across all algorithms.","format":"int64","minimum":0,"type":"integer"},"source":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.AdvisorySource"},{"type":"null"}],"description":"The published finding."},"spec_version":{"description":"Always `1`.","type":"string"},"type":{"description":"Always `algorithm-advisory`.","type":"string"}},"type":"object"},"aegis.v1.AlgorithmAdvisoryStatus":{"additionalProperties":false,"description":"A signed advisory in force for an algorithm: from `effective` on, it has `maturity` instead of its catalogue maturity.","properties":{"effective":{"description":"The first day it applies (ISO 8601).","type":"string"},"maturity":{"description":"The maturity from the effective day on.","type":"string"},"reason":{"description":"Why.","type":"string"},"sequence":{"description":"Its sequence number.","format":"int64","minimum":0,"type":"integer"},"source":{"description":"The published finding.","type":"string"}},"type":"object"},"aegis.v1.Approval":{"additionalProperties":false,"description":"A request under dual control. Approvers see the request's digest, never its body.","properties":{"approvals":{"description":"Approvals given.","items":{"$ref":"#/components/schemas/aegis.v1.ApprovalVote"},"type":"array"},"created":{"description":"When it was asked, in seconds since the Unix epoch.","format":"int64","minimum":0,"type":"integer"},"decided_by":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who denied or withdrew it, when decided so."},"expires":{"description":"When it stops waiting.","format":"int64","minimum":0,"type":"integer"},"id":{"description":"Its identifier.","type":"string"},"method":{"description":"The method.","type":"string"},"needed":{"description":"Approvals needed.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},"operation":{"description":"The operation.","type":"string"},"path":{"description":"The path with its query.","type":"string"},"request_sha256":{"description":"The SHA-256 of the method, path, tenants and body, in hexadecimal.","type":"string"},"requester":{"description":"Who asked.","type":"string"},"status":{"description":"`pending`, `approved`, `denied`, `cancelled`, `expired` or `used`.","type":"string"},"target":{"description":"The tenant the request acts on.","type":"string"},"tenant":{"description":"The requester's tenant.","type":"string"}},"type":"object"},"aegis.v1.ApprovalVote":{"additionalProperties":false,"description":"One approval given.","properties":{"at":{"description":"When, in seconds since the Unix epoch.","format":"int64","minimum":0,"type":"integer"},"by":{"description":"Who approved.","type":"string"}},"type":"object"},"aegis.v1.AuditRecord":{"additionalProperties":false,"description":"One audit record.","properties":{"action":{"description":"What.","type":"string"},"actor":{"description":"Who.","type":"string"},"algorithm":{"description":"The algorithm.","type":"string"},"key":{"description":"About which key or subject.","type":"string"},"outcome":{"description":"`ok`, `ok; <detail>` or `refused: <reason>`.","type":"string"},"sequence":{"description":"Its place in the chain.","format":"int64","minimum":0,"type":"integer"},"tag":{"description":"The record's HMAC in the chain (hexadecimal).","type":"string"},"time":{"description":"When, in seconds since the Unix epoch.","format":"int64","minimum":0,"type":"integer"},"version":{"description":"The key version.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.AuthMethodsResponse":{"additionalProperties":false,"description":"The ways to sign in.","properties":{"oidc":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.OidcMethod"},{"type":"null"}],"description":"OpenID Connect, when configured."},"token":{"description":"Bearer tokens: always.","type":"boolean"}},"type":"object"},"aegis.v1.BreakGlassLimits":{"additionalProperties":false,"description":"How long a break-glass session may last.","properties":{"max_seconds":{"description":"Seconds, at most four hours.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.BreakGlassReport":{"additionalProperties":false,"description":"The break-glass sessions running now (SVC-003).","properties":{"alarm":{"description":"Whether any session runs.","type":"boolean"},"sessions":{"description":"The sessions.","items":{"$ref":"#/components/schemas/aegis.v1.BreakGlassSession"},"type":"array"}},"type":"object"},"aegis.v1.BreakGlassSession":{"additionalProperties":false,"description":"A break-glass session.","properties":{"holder":{"description":"The holder of the `emergency` role.","type":"string"},"reason":{"description":"Why, one line.","type":"string"},"started":{"description":"When it started, in seconds since the Unix epoch.","format":"int64","minimum":0,"type":"integer"},"tenant":{"description":"Its tenant.","type":"string"},"until":{"description":"When it ends.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.Build":{"additionalProperties":false,"description":"How the daemon was built.","properties":{"profile":{"description":"`debug` or `release`.","type":"string"},"target":{"description":"The operating system and architecture.","type":"string"}},"type":"object"},"aegis.v1.BundleFile":{"additionalProperties":false,"description":"A file of a bundle.","properties":{"length":{"description":"Its length in bytes.","format":"int64","minimum":0,"type":"integer"},"path":{"description":"Where it goes in the release.","type":"string"},"sha2_256":{"description":"Its SHA2-256.","type":"string"}},"type":"object"},"aegis.v1.BundleReport":{"additionalProperties":false,"description":"What a bundle's verification found.","properties":{"created":{"description":"When it was made, in seconds since the Unix epoch.","format":"int64","minimum":0,"type":"integer"},"directives":{"description":"Whether it carries signed directives.","type":"boolean"},"files":{"description":"The files it installs.","items":{"$ref":"#/components/schemas/aegis.v1.BundleFile"},"type":"array"},"kind":{"description":"`full`, `module` or `advisory`.","type":"string"},"members":{"description":"Its members.","format":"int64","minimum":0,"type":"integer"},"product":{"description":"The product.","type":"string"},"root":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.RoleVersion"},{"type":"null"}],"description":"The root metadata's version and expiry."},"snapshot":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.RoleVersion"},{"type":"null"}],"description":"The snapshot metadata's."},"targets":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.RoleVersion"},{"type":"null"}],"description":"The targets metadata's."},"timestamp":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.RoleVersion"},{"type":"null"}],"description":"The timestamp metadata's."},"version":{"description":"The release.","type":"string"}},"type":"object"},"aegis.v1.CertificateMapping":{"additionalProperties":false,"description":"A client certificate accepted as a principal.","properties":{"name":{"description":"The principal's name in the audit chain.","type":"string"},"role":{"description":"Its role.","type":"string"},"spki_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The SHA-256 of its public key, lowercase hex: when given, only that key is accepted."},"subject":{"description":"The certificate's subject common name.","type":"string"},"tenant":{"description":"Its tenant, or `*`.","type":"string"}},"type":"object"},"aegis.v1.CertificationRequestResponse":{"additionalProperties":false,"description":"The certification request.","properties":{"request":{"description":"PKCS #10, PEM.","type":"string"}},"type":"object"},"aegis.v1.ChainHead":{"additionalProperties":false,"description":"The newest record.","properties":{"sequence":{"description":"Its sequence.","format":"int64","minimum":0,"type":"integer"},"tag":{"description":"Its tag (hexadecimal).","type":"string"},"time":{"description":"Its time.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.CheckpointSignature":{"additionalProperties":false,"description":"One family's signature.","properties":{"public":{"contentEncoding":"base64","description":"The public key.","type":"string"},"signature":{"contentEncoding":"base64","description":"The signature.","type":"string"}},"type":"object"},"aegis.v1.ClaimMapping":{"additionalProperties":false,"description":"An OpenID Connect claim value that grants a role.","properties":{"claim":{"description":"The claim, such as `groups` or `email`.","type":"string"},"role":{"description":"The role it grants.","type":"string"},"tenant":{"description":"The tenant it grants it in, or `*`.","type":"string"},"value":{"description":"The value it must hold.","type":"string"}},"type":"object"},"aegis.v1.CmsDecryptResponse":{"additionalProperties":false,"description":"The decrypted content.","properties":{"content":{"contentEncoding":"base64","description":"The content.","type":"string"}},"type":"object"},"aegis.v1.CmsEncryptResponse":{"additionalProperties":false,"description":"The enveloped data.","properties":{"cms":{"contentEncoding":"base64","description":"`ContentInfo` holding `AuthEnvelopedData`, DER.","type":"string"}},"type":"object"},"aegis.v1.CmsSignResponse":{"additionalProperties":false,"description":"The signed data.","properties":{"cms":{"contentEncoding":"base64","description":"`ContentInfo` holding `SignedData`, DER.","type":"string"}},"type":"object"},"aegis.v1.CmsSigner":{"additionalProperties":false,"description":"One verified signer.","properties":{"algorithm":{"description":"The signature algorithm.","type":"string"},"certificate":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The signer's certificate (PEM), when one identified the signer."},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The signer certificate's subject, when a certificate identified the signer."}},"type":"object"},"aegis.v1.CmsVerifyResponse":{"additionalProperties":false,"description":"Whether the signed data verified.","properties":{"content":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The content, when it was encapsulated."},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The encapsulated content type."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why it did not verify."},"signers":{"description":"Every signer, each verified.","items":{"$ref":"#/components/schemas/aegis.v1.CmsSigner"},"type":"array"},"valid":{"description":"Whether every signer verified.","type":"boolean"}},"type":"object"},"aegis.v1.ConvertKeyResponse":{"additionalProperties":false,"description":"The converted key.","properties":{"algorithm":{"description":"The key's algorithm.","type":"string"},"output":{"description":"The key in the requested encoding.","type":"string"},"private":{"description":"Whether the input held a private key.","type":"boolean"},"public_key":{"contentEncoding":"base64","description":"The public key.","type":"string"}},"type":"object"},"aegis.v1.CoseSignResponse":{"additionalProperties":false,"description":"The signed message.","properties":{"cose":{"contentEncoding":"base64","description":"The tagged `COSE_Sign1`.","type":"string"}},"type":"object"},"aegis.v1.CoseVerifyResponse":{"additionalProperties":false,"description":"Whether the message verified.","properties":{"algorithm":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The key's algorithm."},"payload":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The payload."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why it did not verify."},"valid":{"description":"Whether it verified.","type":"boolean"}},"type":"object"},"aegis.v1.CustomRole":{"additionalProperties":false,"description":"A role the policy defines: a built-in base, narrowed by grants.","properties":{"allow":{"description":"What it may do: a request must match one grant.","items":{"$ref":"#/components/schemas/aegis.v1.AccessGrant"},"type":"array"},"base":{"description":"`auditor`, `operator` or `admin`: the most the role can ever do.","type":"string"},"name":{"description":"Its name.","type":"string"}},"type":"object"},"aegis.v1.DecapsulateResponse":{"additionalProperties":false,"description":"The shared secret.","properties":{"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"shared_secret":{"contentEncoding":"base64","description":"The shared secret.","type":"string"}},"type":"object"},"aegis.v1.DecryptResponse":{"additionalProperties":false,"description":"The plaintext.","properties":{"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"plaintext":{"contentEncoding":"base64","description":"The plaintext.","type":"string"}},"type":"object"},"aegis.v1.DescribeEnvelopeResponse":{"additionalProperties":false,"description":"What it says about itself.","properties":{"aead":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The HPKE AEAD of an envelope sealed to a KEM."},"algorithm":{"description":"The algorithm.","type":"string"},"associated_data":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether associated data is bound (AGV2)."},"context":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether a signature was made with a context."},"form":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The message form of a signature: `pure`, `prehash:<function>`, `external-mu`, `internal`."},"format":{"description":"`AGV1`, `AGV2` or `AGS2`.","type":"string"},"kdf":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The HPKE KDF of an envelope sealed to a KEM."},"key":{"description":"The key that made it.","type":"string"},"kind":{"description":"`ciphertext` or `signature`.","type":"string"},"revision":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The specification revision (not in AGV1)."},"version":{"description":"The key version.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.DirectiveException":{"additionalProperties":false,"description":"A release allowed below the floor.","properties":{"reason":{"description":"Why.","type":"string"},"release":{"description":"The release.","type":"string"}},"type":"object"},"aegis.v1.DirectiveRevocation":{"additionalProperties":false,"description":"A release revoked.","properties":{"malicious":{"description":"Whether it is revoked as malicious: it is then refused outright.","type":"boolean"},"reason":{"description":"Why.","type":"string"},"release":{"description":"The release.","type":"string"}},"type":"object"},"aegis.v1.Directives":{"additionalProperties":false,"description":"Signed directives (ADR 0024, section 2).","properties":{"exceptions":{"description":"Releases below the floor allowed by name.","items":{"$ref":"#/components/schemas/aegis.v1.DirectiveException"},"type":"array"},"expires":{"description":"When they expire.","format":"int64","minimum":0,"type":"integer"},"floor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The signed floor: no release below it may be installed or run."},"issued":{"description":"When they were issued, in seconds since the Unix epoch.","format":"int64","minimum":0,"type":"integer"},"product":{"description":"The product they are for.","type":"string"},"revoked":{"description":"Releases revoked.","items":{"$ref":"#/components/schemas/aegis.v1.DirectiveRevocation"},"type":"array"},"version":{"description":"Their version; a newer file has a higher one and an older one is refused.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.DualControl":{"additionalProperties":false,"description":"M-of-N approval of the operations listed.","properties":{"approvals":{"description":"Approvals needed from principals other than the requester; 0 turns dual control off.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},"operations":{"description":"The operations covered.","items":{"type":"string"},"type":"array"},"window":{"description":"Seconds a request waits for its approvals, and an approved request for its use.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.EncodedKeyResponse":{"additionalProperties":false,"description":"An encoded key.","properties":{"algorithm":{"description":"The key's algorithm.","type":"string"},"format":{"description":"The format asked for.","type":"string"},"key":{"description":"The key: PEM, a JWK as JSON text, or a `COSE_Key` in base64.","type":"string"}},"type":"object"},"aegis.v1.EncryptResponse":{"additionalProperties":false,"description":"The envelope.","properties":{"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"envelope":{"contentEncoding":"base64","description":"The self-describing envelope (AGV2).","type":"string"}},"type":"object"},"aegis.v1.EndBreakGlassResponse":{"additionalProperties":false,"description":"The session ended.","properties":{"ended":{"description":"Always true.","type":"boolean"},"holder":{"description":"Whose it was.","type":"string"}},"type":"object"},"aegis.v1.Exchange":{"additionalProperties":false,"description":"One key exchange's outputs, for a combiner.","properties":{"info":{"contentEncoding":"base64","description":"The info.","type":"string"},"initiator":{"contentEncoding":"base64","description":"The initiator's public value.","type":"string"},"label":{"contentEncoding":"base64","description":"The label.","type":"string"},"responder":{"contentEncoding":"base64","description":"The responder's public value.","type":"string"},"secret":{"contentEncoding":"base64","description":"The shared secret.","type":"string"}},"type":"object"},"aegis.v1.ExportKeyResponse":{"additionalProperties":false,"description":"The exported material: in clear, or wrapped.","properties":{"aead":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The HPKE AEAD."},"algorithm":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The key's algorithm."},"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"ciphertext":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The ciphertext."},"enc":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The encapsulated key."},"export":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The source's export policy."},"info":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The HPKE info, which binds the source's terms."},"kdf":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The HPKE KDF."},"kem":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The HPKE KEM."},"material":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The material in clear."},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The source's state."},"usages":{"description":"The source's usages.","items":{"type":"string"},"type":"array"},"version":{"anyOf":[{"format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},{"type":"null"}],"description":"The version wrapped."}},"type":"object"},"aegis.v1.ExportRecipient":{"additionalProperties":false,"description":"The recipient of a wrapped export.","properties":{"aead":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The HPKE AEAD."},"kdf":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The HPKE KDF."},"kem":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Or an HPKE KEM."},"key":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A vault escrow key."},"public_key":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"And a public key from outside."}},"type":"object"},"aegis.v1.ExportedRecord":{"additionalProperties":false,"description":"A record with its link and tag.","properties":{"action":{"description":"What.","type":"string"},"actor":{"description":"Who.","type":"string"},"algorithm":{"description":"The algorithm.","type":"string"},"key":{"description":"About which key or subject.","type":"string"},"outcome":{"description":"The outcome.","type":"string"},"previous":{"description":"The previous record's tag (hexadecimal).","type":"string"},"sequence":{"description":"Its place in the chain.","format":"int64","minimum":0,"type":"integer"},"tag":{"description":"This record's tag (hexadecimal).","type":"string"},"time":{"description":"When.","format":"int64","minimum":0,"type":"integer"},"version":{"description":"The key version.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.ExternalSource":{"additionalProperties":false,"description":"An external entropy source mixed into every request.","properties":{"configured":{"description":"Whether one is configured.","type":"boolean"},"failed":{"description":"Whether it failed.","type":"boolean"},"mixed":{"description":"Requests it was mixed into.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.ForcedMinimum":{"additionalProperties":false,"description":"A forced minimum: until the component reaches it, new protective use of what it names is restricted; nothing that exists stops working (DLV-006).","properties":{"affects":{"description":"The algorithms it restricts.","items":{"type":"string"},"type":"array"},"component":{"description":"The component: `core` or a module.","type":"string"},"grace_until":{"description":"When the restriction starts, in seconds since the Unix epoch.","format":"int64","minimum":0,"type":"integer"},"id":{"description":"Its identifier.","type":"string"},"installed":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The release of the component installed, if known."},"minimum":{"description":"The release that fixes it.","type":"string"},"reason":{"description":"Why.","type":"string"},"state":{"description":"`met`, `warning` (in its grace), `restricting` or `not-installed`.","type":"string"}},"type":"object"},"aegis.v1.HealthResponse":{"additionalProperties":false,"description":"The daemon is alive.","properties":{"status":{"description":"Always `ok`.","type":"string"}},"type":"object"},"aegis.v1.HealthSummary":{"additionalProperties":false,"description":"Counts of self-test results.","properties":{"failed":{"description":"Failed.","format":"int64","minimum":0,"type":"integer"},"passed":{"description":"Passed.","format":"int64","minimum":0,"type":"integer"},"untested":{"description":"Not tested yet.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.Holder":{"additionalProperties":false,"description":"A token holder.","properties":{"actor":{"description":"The actor in the audit chain: the name with its tenant.","type":"string"},"bound":{"description":"Whether it is bound to a client certificate's key (sender-constrained).","type":"boolean"},"expires":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"When it stops working, in seconds since the Unix epoch."},"issued":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"When, in seconds since the Unix epoch."},"issued_by":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who issued it, for an issued token."},"name":{"description":"The name.","type":"string"},"role":{"description":"The role: built-in or a custom role of the access policy.","type":"string"},"scope":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.TokenScope"},{"type":"null"}],"description":"What the token may reach, when it is scoped."},"source":{"description":"`file` or `issued`.","type":"string"},"tenant":{"description":"The tenant, `default`, or `*` for the cross-tenant role.","type":"string"}},"type":"object"},"aegis.v1.HpkeOpenResponse":{"additionalProperties":false,"description":"The plaintext.","properties":{"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"plaintext":{"contentEncoding":"base64","description":"The plaintext.","type":"string"}},"type":"object"},"aegis.v1.ImportAdvisoryResponse":{"additionalProperties":false,"description":"The advisory now in force.","properties":{"algorithm":{"description":"The algorithm it concerns.","type":"string"},"maturity":{"description":"The maturity it sets.","type":"string"},"sequence":{"description":"Its sequence.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.ImportOutcome":{"additionalProperties":false,"description":"What an import did.","properties":{"advisory":{"description":"Whether it was an advisory bundle: directives only, no release.","type":"boolean"},"already":{"description":"Whether it had been imported before, so nothing changed.","type":"boolean"},"directives":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"The version of the directives kept, when the bundle carried newer ones."},"files":{"description":"Files installed.","format":"int64","minimum":0,"type":"integer"},"text":{"description":"The outcome in a sentence.","type":"string"},"version":{"description":"The release.","type":"string"}},"type":"object"},"aegis.v1.ImportPolicyPackResponse":{"additionalProperties":false,"description":"The pack imported.","properties":{"active":{"description":"Always false: a pack is in force only once activated.","type":"boolean"},"id":{"description":"Its identifier.","type":"string"},"version":{"description":"Its version.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.ImportedBundle":{"additionalProperties":false,"description":"A bundle imported.","properties":{"imported":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.ImportOutcome"},{"type":"null"}],"description":"What the import did."},"status":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.UpdatesStatus"},{"type":"null"}],"description":"The installation now."}},"type":"object"},"aegis.v1.InfoResponse":{"additionalProperties":false,"description":"What this daemon is.","properties":{"break_glass":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.BreakGlassReport"},{"type":"null"}],"description":"Break-glass sessions running now, and whether that raises the alarm."},"build":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.Build"},{"type":"null"}],"description":"How it was built."},"deployment":{"description":"The deployment profile.","type":"string"},"licence":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.Licence"},{"type":"null"}],"description":"What the licence covers."},"memory":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.Memory"},{"type":"null"}],"description":"The locked memory the vault's keys live in (VLT-008)."},"policy":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.Policy"},{"type":"null"}],"description":"The policy in force."},"randomness":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.Randomness"},{"type":"null"}],"description":"The engine's generator, when it has one."},"sealed":{"description":"Whether the vault is sealed.","type":"boolean"},"started":{"description":"When it started, in seconds since the Unix epoch.","format":"int64","minimum":0,"type":"integer"},"state":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.RuntimeState"},{"type":"null"}],"description":"The runtime state and how far the audit chain vouches for it."},"state_file":{"description":"Whether a state file keeps runtime changes.","type":"boolean"},"updates":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.InfoUpdates"},{"type":"null"}],"description":"Updates: whether the directives' restrictions are held because they could not be checked."},"uptime":{"description":"Seconds since it started.","format":"int64","minimum":0,"type":"integer"},"variable_time_allowed":{"description":"Whether this daemon allows the sets that run in variable time.","type":"boolean"},"version":{"description":"The release.","type":"string"},"witness":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.Witness"},{"type":"null"}],"description":"The signed-checkpoint export (VLT-006)."}},"type":"object"},"aegis.v1.InfoUpdates":{"additionalProperties":false,"description":"The updates part of the daemon's information.","properties":{"degraded":{"description":"The audit chain could not be read, so the directives' restrictions in force are held.","type":"boolean"},"modules":{"description":"The algorithm modules not running freely: limited or refused, each with the reason.","items":{"$ref":"#/components/schemas/aegis.v1.ModuleReport"},"type":"array"}},"type":"object"},"aegis.v1.Installation":{"additionalProperties":false,"description":"An installation of side-by-side releases.","properties":{"busy":{"description":"Whether another process holds the installation.","type":"boolean"},"committed":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The last release committed."},"current":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The release linked as current."},"current_standing":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.ReleaseStanding"},{"type":"null"}],"description":"Where the current release stands under the directives."},"directives_error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the installation's directives could not be read, if they could not."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the installation could not be read, if it could not."},"floor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The local floor: the lowest release a rollback may reach."},"previous":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The release before it."},"releases":{"description":"The releases installed.","items":{"$ref":"#/components/schemas/aegis.v1.InstalledRelease"},"type":"array"},"transition":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.Transition"},{"type":"null"}],"description":"A switch in flight, if any."}},"type":"object"},"aegis.v1.InstalledRelease":{"additionalProperties":false,"description":"A release installed.","properties":{"pinned":{"description":"Whether it is kept whatever the clean-up.","type":"boolean"},"standing":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.ReleaseStanding"},{"type":"null"}],"description":"Where it stands under the directives."},"version":{"description":"Its version.","type":"string"}},"type":"object"},"aegis.v1.IssueCertificateResponse":{"additionalProperties":false,"description":"The issued certificate.","properties":{"certificate":{"description":"The certificate, PEM.","type":"string"}},"type":"object"},"aegis.v1.IssueTokenResponse":{"additionalProperties":false,"description":"The token, shown once.","properties":{"expires":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"When it stops working, in seconds since the Unix epoch."},"name":{"description":"The holder's name.","type":"string"},"role":{"description":"The role.","type":"string"},"tenant":{"description":"The holder's tenant.","type":"string"},"token":{"description":"The token.","type":"string"}},"type":"object"},"aegis.v1.IssuedShare":{"additionalProperties":false,"description":"A new share, shown once.","properties":{"officer":{"description":"Its officer.","type":"string"},"share":{"description":"The share.","type":"string"},"x":{"description":"Its point.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.JweDecryptResponse":{"additionalProperties":false,"description":"The decrypted JWE.","properties":{"plaintext":{"contentEncoding":"base64","description":"The plaintext.","type":"string"}},"type":"object"},"aegis.v1.JweEncryptResponse":{"additionalProperties":false,"description":"The JWE.","properties":{"jwe":{"description":"The compact serialisation.","type":"string"}},"type":"object"},"aegis.v1.JwsSignResponse":{"additionalProperties":false,"description":"The JWS.","properties":{"jws":{"description":"The compact serialisation.","type":"string"}},"type":"object"},"aegis.v1.JwsVerifyResponse":{"additionalProperties":false,"description":"Whether the JWS verified.","properties":{"algorithm":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The key's algorithm."},"payload":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The payload."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why it did not verify."},"valid":{"description":"Whether it verified.","type":"boolean"}},"type":"object"},"aegis.v1.Key":{"additionalProperties":false,"description":"A key and its versions.","properties":{"activation":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"Activation date, in seconds since the Unix epoch."},"algorithm":{"description":"The algorithm.","type":"string"},"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"created":{"description":"When it was created.","format":"int64","minimum":0,"type":"integer"},"current_version":{"description":"The newest version.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},"deactivation":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"Deactivation date."},"deletion_due":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"When a scheduled deletion falls due."},"description":{"description":"A description, at most 500 characters.","type":"string"},"export":{"description":"`none`, `wrapped` or `plain`.","type":"string"},"exportable":{"description":"Whether it may leave in clear.","type":"boolean"},"kind":{"description":"The algorithm's kind.","type":"string"},"labels":{"additionalProperties":{"type":"string"},"description":"Labels, at most 16.","type":"object"},"maturity":{"description":"The algorithm's maturity.","type":"string"},"name":{"description":"The name.","type":"string"},"origin":{"description":"`generated` or `imported`.","type":"string"},"qualified":{"description":"The name as the vault stores it: `tenant/name` for a tenant's key, the plain name for the default tenant's.","type":"string"},"revision":{"description":"The specification revision it was made under.","type":"string"},"state":{"description":"The state now, with its dates applied.","type":"string"},"tenant":{"description":"The tenant whose key-encryption key wraps it.","type":"string"},"updated":{"description":"When it last changed.","format":"int64","minimum":0,"type":"integer"},"usages":{"description":"What the key may do.","items":{"type":"string"},"type":"array"},"versions":{"description":"Every version.","items":{"$ref":"#/components/schemas/aegis.v1.KeyVersion"},"type":"array"}},"type":"object"},"aegis.v1.KeyVersion":{"additionalProperties":false,"description":"One version of a key.","properties":{"created":{"description":"When it was made.","format":"int64","minimum":0,"type":"integer"},"destroyed":{"description":"Whether its material is erased.","type":"boolean"},"number":{"description":"Its number.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},"origin":{"description":"`generated` or `imported`.","type":"string"},"provider":{"description":"The provider that generated or checked it.","type":"string"},"public_key":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"Its public key, for an asymmetric key."},"software":{"description":"The Aegis release that made it.","type":"string"}},"type":"object"},"aegis.v1.Licence":{"additionalProperties":false,"description":"What the licence covers.","properties":{"modules":{"description":"The licensed modules; absent when every module is licensed.","items":{"type":"string"},"type":"array"}},"type":"object"},"aegis.v1.LicenceCustomer":{"additionalProperties":false,"description":"Who a licence is for.","properties":{"id":{"description":"The identifier.","type":"string"},"name":{"description":"The name.","type":"string"}},"type":"object"},"aegis.v1.LicenceDetail":{"additionalProperties":false,"description":"A verified licence.","properties":{"customer":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.LicenceCustomer"},{"type":"null"}],"description":"The customer."},"digest":{"description":"The SHA2-256 of the file.","type":"string"},"edition":{"description":"`community`, `professional`, `enterprise` or `sovereign`.","type":"string"},"expires":{"description":"When it expires.","format":"int64","minimum":0,"type":"integer"},"grace_ends":{"description":"When its grace ends.","format":"int64","minimum":0,"type":"integer"},"id":{"description":"Its identifier.","type":"string"},"issued":{"description":"When it was issued, in seconds since the Unix epoch.","format":"int64","minimum":0,"type":"integer"},"issuer":{"description":"The SHA2-256 of its issuer.","type":"string"},"limits":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.LicenceLimits"},{"type":"null"}],"description":"Its limits."},"modules":{"description":"The modules it opens.","items":{"type":"string"},"type":"array"},"not_before":{"description":"When it starts.","format":"int64","minimum":0,"type":"integer"},"serial":{"description":"Its serial; a newer licence has a higher one.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.LicenceInstalled":{"additionalProperties":false,"description":"Who installed the licence.","properties":{"at":{"description":"When, in seconds since the Unix epoch.","format":"int64","minimum":0,"type":"integer"},"by":{"description":"The caller.","type":"string"}},"type":"object"},"aegis.v1.LicenceLimits":{"additionalProperties":false,"description":"A licence's limits; absent means unlimited.","properties":{"keys":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"Live keys."},"overage_percent":{"description":"How far over a limit new keys or tenants may still go, in percent.","format":"int64","minimum":0,"type":"integer"},"tenants":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"Tenants."}},"type":"object"},"aegis.v1.LicenceLimitsInForce":{"additionalProperties":false,"description":"The ceilings enforced; absent means unlimited.","properties":{"keys":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"Live keys."},"tenants":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"Tenants."}},"type":"object"},"aegis.v1.LicenceStatus":{"additionalProperties":false,"description":"The licence and where it stands.","properties":{"days_left":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"Days until it expires, or until its grace ends."},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why, for a development build."},"installed":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.LicenceInstalled"},{"type":"null"}],"description":"Who installed it, and when."},"licence":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.LicenceDetail"},{"type":"null"}],"description":"The licence in force, if any."},"limits_in_force":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.LicenceLimitsInForce"},{"type":"null"}],"description":"The limits in force, overage included; absent when unlimited."},"mode":{"description":"`development` (a build that pins no issuer and gates nothing), `community` or `licensed`.","type":"string"},"modules":{"description":"The modules open for new protection; absent when every module is.","items":{"type":"string"},"type":"array"},"never_gated":{"description":"What no licence state ever blocks.","items":{"$ref":"#/components/schemas/aegis.v1.NeverGated"},"type":"array"},"refused":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the licence file on disk was refused, if it was."},"standing":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`none`, `not-yet-valid`, `valid`, `grace` or `expired`."},"trusted_issuers":{"description":"The SHA2-256 of each trusted issuer.","items":{"type":"string"},"type":"array"},"used":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.LicenceUse"},{"type":"null"}],"description":"Keys and tenants in use, when the vault is unsealed."},"warning":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"The warning threshold reached (90, 60, 30, 7, or 0 in grace)."}},"type":"object"},"aegis.v1.LicenceUse":{"additionalProperties":false,"description":"What is in use.","properties":{"keys":{"description":"Live keys.","format":"int64","minimum":0,"type":"integer"},"tenants":{"description":"Tenants.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.ListAdvisoriesResponse":{"additionalProperties":false,"description":"The advisories accepted.","properties":{"advisories":{"description":"Each advisory as signed.","items":{"$ref":"#/components/schemas/aegis.v1.AlgorithmAdvisory"},"type":"array"},"last_sequence":{"description":"The highest sequence accepted; the next advisory must exceed it.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.ListAlgorithmsResponse":{"additionalProperties":false,"description":"The catalogue.","properties":{"algorithms":{"description":"Every entry.","items":{"$ref":"#/components/schemas/aegis.v1.Algorithm"},"type":"array"}},"type":"object"},"aegis.v1.ListApprovalsResponse":{"additionalProperties":false,"description":"The requests under dual control.","properties":{"approvals":{"description":"Newest first.","items":{"$ref":"#/components/schemas/aegis.v1.Approval"},"type":"array"},"policy":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.DualControl"},{"type":"null"}],"description":"Dual control in force for the caller's tenant."}},"type":"object"},"aegis.v1.ListBreakGlassResponse":{"additionalProperties":false,"description":"The break-glass sessions running.","properties":{"limit":{"description":"The longest session the system's policy allows, in seconds.","format":"int64","minimum":0,"type":"integer"},"sessions":{"description":"The sessions the caller's tenant can see.","items":{"$ref":"#/components/schemas/aegis.v1.BreakGlassSession"},"type":"array"}},"type":"object"},"aegis.v1.ListKeysResponse":{"additionalProperties":false,"description":"Every key.","properties":{"keys":{"description":"The keys.","items":{"$ref":"#/components/schemas/aegis.v1.Key"},"type":"array"}},"type":"object"},"aegis.v1.ListPolicyResponse":{"additionalProperties":false,"description":"The packs and the one in force.","properties":{"active":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.PolicyActivation"},{"type":"null"}],"description":"The activation in force; absent while the baseline applies."},"packs":{"description":"Every pack known, the newest version of each.","items":{"$ref":"#/components/schemas/aegis.v1.PolicyPackSummary"},"type":"array"},"policy":{"description":"The engine's name for the policy in force.","type":"string"},"trust":{"description":"Whether a policy trust is configured, so that signed documents can be imported.","type":"boolean"}},"type":"object"},"aegis.v1.ListRecordsResponse":{"additionalProperties":false,"description":"A page of records.","properties":{"next":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"The `after` of the next page, if any."},"records":{"description":"The records.","items":{"$ref":"#/components/schemas/aegis.v1.AuditRecord"},"type":"array"}},"type":"object"},"aegis.v1.ListRewrapJobsResponse":{"additionalProperties":false,"description":"The jobs.","properties":{"jobs":{"description":"The jobs the caller may see.","items":{"$ref":"#/components/schemas/aegis.v1.RewrapJob"},"type":"array"}},"type":"object"},"aegis.v1.ListSwitchesResponse":{"additionalProperties":false,"description":"The switches.","properties":{"algorithms":{"description":"Every algorithm's standing.","items":{"$ref":"#/components/schemas/aegis.v1.SwitchedAlgorithm"},"type":"array"},"modules":{"description":"The modules.","items":{"$ref":"#/components/schemas/aegis.v1.Module"},"type":"array"},"switches":{"description":"The switches that are off.","items":{"$ref":"#/components/schemas/aegis.v1.Switch"},"type":"array"}},"type":"object"},"aegis.v1.ListTenantsResponse":{"additionalProperties":false,"description":"The tenants.","properties":{"tenants":{"description":"Every tenant.","items":{"$ref":"#/components/schemas/aegis.v1.Tenant"},"type":"array"}},"type":"object"},"aegis.v1.ListTokensResponse":{"additionalProperties":false,"description":"The holders.","properties":{"holders":{"description":"Every holder the caller may see.","items":{"$ref":"#/components/schemas/aegis.v1.Holder"},"type":"array"},"retired":{"description":"Names never issued again.","items":{"type":"string"},"type":"array"},"writable":{"description":"Whether runtime changes can be kept.","type":"boolean"}},"type":"object"},"aegis.v1.LogoutResponse":{"additionalProperties":false,"description":"Whether a session ended.","properties":{"signed_out":{"description":"Whether the caller's session was found and ended.","type":"boolean"}},"type":"object"},"aegis.v1.Memory":{"additionalProperties":false,"description":"Locked memory.","properties":{"failed":{"description":"Secrets that could not be locked since start.","format":"int64","minimum":0,"type":"integer"},"live":{"description":"Allocations held now.","format":"int64","minimum":0,"type":"integer"},"locked_pages":{"description":"Pages locked now.","format":"int64","minimum":0,"type":"integer"},"policy":{"description":"`required` or `best-effort`.","type":"string"}},"type":"object"},"aegis.v1.Module":{"additionalProperties":false,"description":"A licensed module.","properties":{"algorithms":{"description":"Algorithms in it.","format":"int64","minimum":0,"type":"integer"},"algorithms_off":{"description":"Algorithms switched off in it.","format":"int64","minimum":0,"type":"integer"},"licensed":{"description":"Whether the licence includes it.","type":"boolean"},"name":{"description":"Its name.","type":"string"},"off":{"description":"Whether it is switched off.","type":"boolean"}},"type":"object"},"aegis.v1.ModuleReport":{"additionalProperties":false,"description":"An algorithm module installed on its own (DLV-007, ADR 0024, section 4).","properties":{"limited":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why it is limited."},"name":{"description":"The module.","type":"string"},"protocol":{"anyOf":[{"format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},{"type":"null"}],"description":"The provider protocol it speaks."},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The provider it runs."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why it was refused."},"requires_core":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The core releases it supports, as a version range."},"root":{"description":"Its installation's directory.","type":"string"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The SHA2-256 of the binary started."},"state":{"description":"`running`, `limited` (revoked, not as malicious: new protection refused) or `refused`.","type":"string"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Its release."}},"type":"object"},"aegis.v1.NeverGated":{"additionalProperties":false,"description":"Something no licence state blocks.","properties":{"detail":{"description":"Why.","type":"string"},"name":{"description":"What it is.","type":"string"}},"type":"object"},"aegis.v1.Offering":{"additionalProperties":false,"description":"One algorithm a provider offers.","properties":{"algorithm":{"description":"The algorithm.","type":"string"},"health":{"description":"`untested`, `passed` or `failed`.","type":"string"},"kind":{"description":"Its kind.","type":"string"}},"type":"object"},"aegis.v1.Officer":{"additionalProperties":false,"description":"An officer who holds a share.","properties":{"name":{"description":"The officer's name.","type":"string"},"sealed":{"description":"Whether the share is sealed to the officer's passphrase.","type":"boolean"},"x":{"description":"The share's point.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.OfficerIn":{"additionalProperties":false,"description":"A new officer.","properties":{"name":{"description":"The name.","type":"string"},"passphrase":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A passphrase to seal the officer's share to."}},"type":"object"},"aegis.v1.OidcCallbackResponse":{"additionalProperties":false,"description":"The session.","properties":{"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The configured name claim, for display only; absent when it cannot be trusted to name anyone."},"expires":{"description":"When the session ends, in seconds since the Unix epoch.","format":"int64","minimum":0,"type":"integer"},"name":{"description":"The holder: `oidc.` and a digest of the issuer and `sub`, the same for one person always.","type":"string"},"role":{"description":"The role.","type":"string"},"tenant":{"description":"The tenant.","type":"string"},"token":{"description":"The session token (`ags_` and 64 hex digits), shown once.","type":"string"}},"type":"object"},"aegis.v1.OidcMethod":{"additionalProperties":false,"description":"The OpenID Connect provider this daemon trusts.","properties":{"issuer":{"description":"Its issuer.","type":"string"}},"type":"object"},"aegis.v1.OidcStartResponse":{"additionalProperties":false,"description":"Where to send the browser.","properties":{"authorization_url":{"description":"The provider's authorisation URL.","type":"string"},"expires":{"description":"When the sign-in stops waiting, in seconds since the Unix epoch.","format":"int64","minimum":0,"type":"integer"},"state":{"description":"The state to send back with the code.","type":"string"}},"type":"object"},"aegis.v1.PasswordCost":{"additionalProperties":false,"description":"The cost of a password-based function.","properties":{"block_size":{"anyOf":[{"format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},{"type":"null"}],"description":"scrypt r."},"lanes":{"anyOf":[{"format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},{"type":"null"}],"description":"Argon2id lanes."},"log_n":{"anyOf":[{"format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},{"type":"null"}],"description":"scrypt log2 N."},"memory_kib":{"anyOf":[{"format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},{"type":"null"}],"description":"Argon2id memory in KiB."},"parallelism":{"anyOf":[{"format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},{"type":"null"}],"description":"scrypt p."},"passes":{"anyOf":[{"format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},{"type":"null"}],"description":"Argon2id passes."}},"type":"object"},"aegis.v1.Policy":{"additionalProperties":false,"description":"The policy in force.","properties":{"contextless_refusals":{"description":"Operations refused because no context was installed while the policy reads the caller or the key: each is a daemon path that forgot its context.","format":"int64","minimum":0,"type":"integer"},"name":{"description":"Its name.","type":"string"},"rules":{"description":"Its rules, one line each.","items":{"type":"string"},"type":"array"}},"type":"object"},"aegis.v1.PolicyActivation":{"additionalProperties":false,"description":"Who put a pack in force, when and why.","properties":{"by":{"description":"Who activated it.","type":"string"},"id":{"description":"The pack's identifier.","type":"string"},"reason":{"description":"Why.","type":"string"},"time":{"description":"When, in seconds since the Unix epoch.","format":"int64","minimum":0,"type":"integer"},"version":{"description":"Its version.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.PolicyPack":{"additionalProperties":false,"description":"A policy pack, as signed.","properties":{"built_in":{"description":"Whether it is built into this release.","type":"boolean"},"hybrid":{"description":"The hybrid rule: `required`, `allowed` or `forbidden`.","type":"string"},"hybrid_basis":{"description":"Why, with its source.","type":"string"},"id":{"description":"Stable identifier.","type":"string"},"issued":{"description":"When this version was issued.","type":"string"},"notes":{"description":"What was left out and why.","items":{"type":"string"},"type":"array"},"rules":{"description":"The rules.","items":{"$ref":"#/components/schemas/aegis.v1.PolicyRule"},"type":"array"},"sources":{"description":"Every document a rule cites.","items":{"$ref":"#/components/schemas/aegis.v1.PolicySource"},"type":"array"},"spec_version":{"description":"The pack format's version.","type":"string"},"title":{"description":"Its name for people.","type":"string"},"type":{"description":"Always `policy-pack`.","type":"string"},"version":{"description":"Rises with every change of the pack.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.PolicyPackSummary":{"additionalProperties":false,"description":"A pack, in short.","properties":{"active":{"description":"Whether it is in force.","type":"boolean"},"built_in":{"description":"Whether it is built into this release.","type":"boolean"},"hybrid":{"description":"The hybrid rule: `required`, `allowed` or `forbidden`.","type":"string"},"id":{"description":"Stable identifier, for example `us-cnsa-2.0`.","type":"string"},"issued":{"description":"When this version was issued.","type":"string"},"sources":{"description":"The documents its rules cite.","items":{"$ref":"#/components/schemas/aegis.v1.PolicySource"},"type":"array"},"title":{"description":"Its name for people.","type":"string"},"version":{"description":"Rises with every change of the pack.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.PolicyRule":{"additionalProperties":false,"description":"One rule of a pack.","properties":{"algorithms":{"description":"Algorithm identifiers, `family:<key>`, or `*` for every algorithm.","items":{"type":"string"},"type":"array"},"effect":{"description":"`allow` or `deny`.","type":"string"},"from":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"First day it applies (ISO 8601), if not from the start."},"id":{"description":"Unique within the pack.","type":"string"},"keys":{"description":"Key names it applies to (`*` as a trailing wildcard); all when empty.","items":{"type":"string"},"type":"array"},"min_category":{"anyOf":[{"format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},{"type":"null"}],"description":"The lowest NIST security category it applies to."},"operations":{"description":"`any`, `apply` (new protection) or `process` (existing protection).","type":"string"},"roles":{"description":"Caller roles it applies to; all when empty.","items":{"type":"string"},"type":"array"},"section":{"description":"Where in the source.","type":"string"},"source":{"description":"The source it comes from.","type":"string"},"until":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Last day it applies (ISO 8601, inclusive), if it ends."},"warning":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A warning shown with the algorithm from `warning_from` on, without refusing anything."},"warning_from":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When the warning starts."}},"type":"object"},"aegis.v1.PolicySource":{"additionalProperties":false,"description":"A document a pack cites.","properties":{"checked":{"description":"The date it was checked against the rules.","type":"string"},"date":{"description":"Its date of publication (in a full pack only).","type":"string"},"id":{"description":"How rules refer to it.","type":"string"},"title":{"description":"Its title.","type":"string"},"url":{"description":"Where it was read.","type":"string"},"version":{"description":"Its version.","type":"string"}},"type":"object"},"aegis.v1.ProtocolAnswersResponse":{"additionalProperties":false,"description":"The code points the policy in force allows, protocol by protocol.","properties":{"cose":{"description":"COSE algorithm values.","items":{"$ref":"#/components/schemas/aegis.v1.ProtocolCodePoint"},"type":"array"},"ike_authentication":{"description":"IKEv2 authentication methods.","items":{"$ref":"#/components/schemas/aegis.v1.ProtocolCodePoint"},"type":"array"},"ike_key_exchange":{"description":"IKEv2 key exchange methods (transform type 4).","items":{"$ref":"#/components/schemas/aegis.v1.ProtocolCodePoint"},"type":"array"},"jose":{"description":"JOSE `alg` values.","items":{"$ref":"#/components/schemas/aegis.v1.ProtocolCodePoint"},"type":"array"},"policy":{"description":"The policy that answered.","type":"string"},"ssh_key_exchange":{"description":"SSH key exchange methods.","items":{"$ref":"#/components/schemas/aegis.v1.ProtocolCodePoint"},"type":"array"},"ssh_public_keys":{"description":"SSH public key algorithms.","items":{"$ref":"#/components/schemas/aegis.v1.ProtocolCodePoint"},"type":"array"},"tls_groups":{"description":"TLS 1.3 supported groups.","items":{"$ref":"#/components/schemas/aegis.v1.ProtocolCodePoint"},"type":"array"},"tls_signature_schemes":{"description":"TLS 1.3 signature schemes.","items":{"$ref":"#/components/schemas/aegis.v1.ProtocolCodePoint"},"type":"array"},"x509_signatures":{"description":"X.509 and CMS signature algorithm identifiers.","items":{"$ref":"#/components/schemas/aegis.v1.ProtocolCodePoint"},"type":"array"}},"type":"object"},"aegis.v1.ProtocolCodePoint":{"additionalProperties":false,"description":"One code point in an answer.","properties":{"algorithm":{"description":"The algorithm it stands for.","type":"string"},"name":{"description":"The registry's name.","type":"string"},"reference":{"description":"The document that assigns it.","type":"string"},"standing":{"description":"`published` or `draft` (a draft appears only in a laboratory).","type":"string"},"value":{"description":"The value on the wire.","type":"string"}},"type":"object"},"aegis.v1.Provider":{"additionalProperties":false,"description":"One provider.","properties":{"id":{"description":"Its identifier.","type":"string"},"implementation":{"description":"How it is implemented.","type":"string"},"isolation":{"description":"How it is isolated.","type":"string"},"licence":{"description":"Its licence (SPDX).","type":"string"},"name":{"description":"Its name.","type":"string"},"offerings":{"description":"What it offers and the self-test health of each.","items":{"$ref":"#/components/schemas/aegis.v1.Offering"},"type":"array"},"origin":{"description":"Where its code comes from.","type":"string"},"summary":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.HealthSummary"},{"type":"null"}],"description":"Counts of the self-test results."},"validation":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A validation certificate quoted exactly, if any."},"version":{"description":"Its version.","type":"string"}},"type":"object"},"aegis.v1.ProvidersResponse":{"additionalProperties":false,"description":"Every provider.","properties":{"providers":{"description":"The providers, in the engine's order.","items":{"$ref":"#/components/schemas/aegis.v1.Provider"},"type":"array"}},"type":"object"},"aegis.v1.PublicKeyResponse":{"additionalProperties":false,"description":"A public key.","properties":{"public_key":{"contentEncoding":"base64","description":"Its public key.","type":"string"},"version":{"description":"The current version.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.Randomness":{"additionalProperties":false,"description":"The engine's random generator (ADR 0004, addendum).","properties":{"external":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.ExternalSource"},{"type":"null"}],"description":"The external source."},"failed":{"description":"Whether the generator is in its error state.","type":"boolean"},"generator":{"description":"The SP 800-90A generator.","type":"string"},"mechanism":{"description":"Its mechanism, in words.","type":"string"},"requests":{"description":"Requests served.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.ReadyCheck":{"additionalProperties":false,"description":"One readiness check.","properties":{"detail":{"description":"What it found.","type":"string"},"name":{"description":"`vault`, `randomness`, `state`, `selftests` or `witness`.","type":"string"},"ok":{"description":"Whether it passes.","type":"boolean"}},"type":"object"},"aegis.v1.ReadyResponse":{"additionalProperties":false,"description":"Whether the daemon is ready.","properties":{"checks":{"description":"Each check (`/v1/sys/ready` only).","items":{"$ref":"#/components/schemas/aegis.v1.ReadyCheck"},"type":"array"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why not, when not ready."},"ready":{"description":"Ready for work.","type":"boolean"}},"type":"object"},"aegis.v1.ReaffirmStateResponse":{"additionalProperties":false,"description":"The state accepted.","properties":{"condition":{"description":"`vouched`.","type":"string"},"generation":{"description":"Its generation.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.ReceiveResponse":{"additionalProperties":false,"description":"The secret.","properties":{"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"plaintext":{"contentEncoding":"base64","description":"The secret.","type":"string"}},"type":"object"},"aegis.v1.ReceivedShare":{"additionalProperties":false,"description":"A share handed in.","properties":{"by":{"description":"Who handed it in.","type":"string"},"officer":{"description":"The officer it belongs to.","type":"string"},"x":{"description":"The share's point.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.RekeyResponse":{"additionalProperties":false,"description":"The new unlock.","properties":{"mode":{"description":"`passphrase` or `shamir`.","type":"string"},"shares":{"description":"The new shares, shown once.","items":{"$ref":"#/components/schemas/aegis.v1.IssuedShare"},"type":"array"}},"type":"object"},"aegis.v1.ReleaseStanding":{"additionalProperties":false,"description":"Where a release stands under the signed directives.","properties":{"detail":{"description":"Why, in a sentence.","type":"string"},"state":{"description":"`allowed`, `excepted`, `below-floor`, `revoked` or `revoked-malicious`.","type":"string"}},"type":"object"},"aegis.v1.ReplaceAccessPolicyResponse":{"additionalProperties":false,"description":"The policy now in force.","properties":{"policy":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.AccessPolicy"},{"type":"null"}],"description":"The policy as stored."},"tenant":{"description":"The tenant.","type":"string"}},"type":"object"},"aegis.v1.ResetUnsealResponse":{"additionalProperties":false,"description":"The shares wiped.","properties":{"discarded":{"description":"How many.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.RetireRootResponse":{"additionalProperties":false,"description":"The root versions forgotten.","properties":{"retired":{"description":"Their numbers.","items":{"format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},"type":"array"}},"type":"object"},"aegis.v1.RevokeTokenResponse":{"additionalProperties":false,"description":"The revocation.","properties":{"name":{"description":"The holder.","type":"string"},"recorded":{"description":"`now`, or `at the next unseal` while sealed.","type":"string"},"revoked":{"description":"Always true.","type":"boolean"}},"type":"object"},"aegis.v1.RewrapItem":{"additionalProperties":false,"description":"One envelope to re-wrap.","properties":{"associated_data":{"contentEncoding":"base64","description":"The associated data it is bound to.","type":"string"},"envelope":{"contentEncoding":"base64","description":"The envelope.","type":"string"}},"type":"object"},"aegis.v1.RewrapJob":{"additionalProperties":false,"description":"A bulk re-wrap job.","properties":{"by":{"description":"Who started it.","type":"string"},"done":{"description":"Envelopes handled.","format":"int64","minimum":0,"type":"integer"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why it failed."},"failed":{"description":"Envelopes refused.","format":"int64","minimum":0,"type":"integer"},"finished":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"When it ended."},"id":{"description":"Its identifier.","type":"string"},"key":{"description":"The source key.","type":"string"},"rewrapped":{"description":"Envelopes re-wrapped.","format":"int64","minimum":0,"type":"integer"},"started":{"description":"When it started.","format":"int64","minimum":0,"type":"integer"},"state":{"description":"`running`, `done`, `cancelled` or `failed`.","type":"string"},"to":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The target key, if another."},"total":{"description":"Envelopes in the job.","format":"int64","minimum":0,"type":"integer"},"unchanged":{"description":"Envelopes already current.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.RewrapJobResultsResponse":{"additionalProperties":false,"description":"Results by item.","properties":{"next":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"The `after` of the next page, if any."},"results":{"description":"The page.","items":{"$ref":"#/components/schemas/aegis.v1.RewrapResult"},"type":"array"},"state":{"description":"The job's state.","type":"string"}},"type":"object"},"aegis.v1.RewrapLevel":{"additionalProperties":false,"description":"One level of the hierarchy.","properties":{"behind":{"description":"Items still under an older version.","format":"int64","minimum":0,"type":"integer"},"level":{"description":"The level.","type":"string"},"total":{"description":"Items in all.","format":"int64","minimum":0,"type":"integer"},"version":{"description":"Its current version.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.RewrapProgressResponse":{"additionalProperties":false,"description":"The job's progress per level.","properties":{"done":{"description":"Whether every level is on its current version.","type":"boolean"},"levels":{"description":"`root`, then `tenant:<name>`.","items":{"$ref":"#/components/schemas/aegis.v1.RewrapLevel"},"type":"array"}},"type":"object"},"aegis.v1.RewrapResponse":{"additionalProperties":false,"description":"The re-wrapped envelope.","properties":{"envelope":{"contentEncoding":"base64","description":"The envelope, in the newest format.","type":"string"}},"type":"object"},"aegis.v1.RewrapResult":{"additionalProperties":false,"description":"What happened to one envelope.","properties":{"envelope":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The new envelope."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why it was refused."},"index":{"description":"Its index in the job.","format":"int64","minimum":0,"type":"integer"},"unchanged":{"description":"Already in the newest format under the target's newest version.","type":"boolean"}},"type":"object"},"aegis.v1.RoleVersion":{"additionalProperties":false,"description":"A metadata role's version and expiry.","properties":{"expires":{"description":"When it expires, in seconds since the Unix epoch.","format":"int64","minimum":0,"type":"integer"},"version":{"description":"The version.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.RotateRootResponse":{"additionalProperties":false,"description":"The new root version.","properties":{"version":{"description":"Its number.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.RuntimeState":{"additionalProperties":false,"description":"The runtime state (ADR 0010).","properties":{"condition":{"description":"`unchecked`, `vouched`, `unaudited` or `degraded`.","type":"string"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why, when not vouched."},"generation":{"description":"Its generation.","format":"int64","minimum":0,"type":"integer"},"pending":{"description":"Records waiting for the next unseal.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.SealResponse":{"additionalProperties":false,"description":"The vault sealed.","properties":{"sealed":{"description":"Always true.","type":"boolean"}},"type":"object"},"aegis.v1.SelfTestResponse":{"additionalProperties":false,"description":"The self-test run.","properties":{"failed":{"description":"Tests failed.","format":"int64","minimum":0,"type":"integer"},"not_in_deployment":{"description":"Algorithms outside this deployment.","format":"int64","minimum":0,"type":"integer"},"not_run":{"description":"Tests that could not run.","format":"int64","minimum":0,"type":"integer"},"passed":{"description":"Tests passed.","format":"int64","minimum":0,"type":"integer"},"results":{"description":"Each test.","items":{"$ref":"#/components/schemas/aegis.v1.SelfTestResult"},"type":"array"}},"type":"object"},"aegis.v1.SelfTestResult":{"additionalProperties":false,"description":"One self-test.","properties":{"algorithm":{"description":"The algorithm.","type":"string"},"deployed":{"description":"Whether the algorithm is in this deployment.","type":"boolean"},"passed":{"description":"Whether it passed.","type":"boolean"},"provider":{"description":"The provider.","type":"string"},"ran":{"description":"Whether the test ran.","type":"boolean"}},"type":"object"},"aegis.v1.SetSwitchResponse":{"additionalProperties":false,"description":"The switch set.","properties":{"enabled":{"description":"On or off now.","type":"boolean"},"name":{"description":"Its name.","type":"string"},"scope":{"description":"`module`, `family` or `algorithm`.","type":"string"}},"type":"object"},"aegis.v1.ShareIn":{"additionalProperties":false,"description":"A share of the current unlock.","properties":{"passphrase":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Its passphrase, if sealed."},"share":{"description":"The share.","type":"string"}},"type":"object"},"aegis.v1.ShredTenantResponse":{"additionalProperties":false,"description":"What was shredded.","properties":{"keys":{"description":"Keys destroyed.","format":"int64","minimum":0,"type":"integer"},"versions":{"description":"Key versions erased.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.SignResponse":{"additionalProperties":false,"description":"A signature.","properties":{"algorithm":{"description":"The algorithm.","type":"string"},"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"envelope":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The signature envelope (AGS2), when asked for: its signature covers the envelope's signing input, which holds every field of its header."},"signature":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The bare signature, unless an envelope was asked for."},"version":{"description":"The version that signed.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.SignedCheckpoint":{"additionalProperties":false,"description":"A signed checkpoint (`aegis-audit-checkpoint-v2`).","properties":{"digest":{"description":"SHA-256 over the records up to `sequence`.","type":"string"},"ed25519":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.CheckpointSignature"},{"type":"null"}],"description":"The Ed25519 signature."},"format":{"description":"The format.","type":"string"},"head":{"description":"Its tag.","type":"string"},"ml_dsa_87":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.CheckpointSignature"},{"type":"null"}],"description":"The ML-DSA-87 signature."},"sequence":{"description":"The newest record covered.","format":"int64","minimum":0,"type":"integer"},"statement":{"description":"The statement signed.","type":"string"},"time":{"description":"When it was signed.","format":"int64","minimum":0,"type":"integer"},"vault":{"description":"The vault's identifier.","type":"string"}},"type":"object"},"aegis.v1.SnapshotResponse":{"additionalProperties":false,"description":"A backup kept by the daemon.","properties":{"file":{"description":"The file.","type":"string"},"keys":{"description":"Keys verified.","format":"int64","minimum":0,"type":"integer"},"records":{"description":"Audit records verified.","format":"int64","minimum":0,"type":"integer"},"sealed":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The copy sealed to the recovery key, if one is set."},"versions":{"description":"Key versions verified.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.StatusResponse":{"additionalProperties":false,"description":"The daemon's standing.","properties":{"deployment":{"description":"`laboratory`, `production` or a regional profile.","type":"string"},"policy":{"description":"The policy's name.","type":"string"},"providers":{"description":"The providers' identifiers.","items":{"type":"string"},"type":"array"},"sealed":{"description":"Whether the vault is sealed.","type":"boolean"}},"type":"object"},"aegis.v1.Switch":{"additionalProperties":false,"description":"A switch that is off.","properties":{"by":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Who switched it off."},"name":{"description":"A module, family or algorithm.","type":"string"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why it is off."},"scope":{"description":"`module`, `family`, `algorithm` or `unknown`.","type":"string"},"time":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"When, in seconds since the Unix epoch."}},"type":"object"},"aegis.v1.SwitchedAlgorithm":{"additionalProperties":false,"description":"An algorithm and the switch that holds it off, if any.","properties":{"family":{"description":"The family.","type":"string"},"id":{"description":"The identifier.","type":"string"},"kind":{"description":"The kind.","type":"string"},"module":{"description":"The module.","type":"string"},"name":{"description":"The name.","type":"string"},"off_by":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The switch that holds it off."}},"type":"object"},"aegis.v1.Tenant":{"additionalProperties":false,"description":"A key-encryption domain.","properties":{"created":{"description":"When it was created.","format":"int64","minimum":0,"type":"integer"},"current_version":{"description":"The current key-encryption key version.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},"name":{"description":"The name.","type":"string"},"state":{"description":"`active` or `destroyed`.","type":"string"},"versions":{"description":"Every version.","items":{"$ref":"#/components/schemas/aegis.v1.TenantVersion"},"type":"array"}},"type":"object"},"aegis.v1.TenantVersion":{"additionalProperties":false,"description":"A tenant key-encryption key version.","properties":{"created":{"description":"When it was made.","format":"int64","minimum":0,"type":"integer"},"number":{"description":"Its number.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},"retired":{"description":"Whether it is erased.","type":"boolean"}},"type":"object"},"aegis.v1.TokenScope":{"additionalProperties":false,"description":"What a scoped token may reach: each list, when given, narrows it.","properties":{"keys":{"description":"Key names as the holder writes them, for example `payments-*`.","items":{"type":"string"},"type":"array"},"operations":{"description":"Operations, for example `key.sign` or `key.*`.","items":{"type":"string"},"type":"array"},"paths":{"description":"Route patterns, for example `/v1/keys/payments-*/sign` (`*` within a segment, `**` below).","items":{"type":"string"},"type":"array"}},"type":"object"},"aegis.v1.ToolsCombineResponse":{"additionalProperties":false,"description":"The combined key.","properties":{"algorithm":{"description":"The combiner.","type":"string"},"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"key_material":{"contentEncoding":"base64","description":"The key material.","type":"string"}},"type":"object"},"aegis.v1.ToolsDecryptResponse":{"additionalProperties":false,"description":"The plaintext.","properties":{"algorithm":{"description":"The algorithm.","type":"string"},"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"plaintext":{"contentEncoding":"base64","description":"The plaintext.","type":"string"}},"type":"object"},"aegis.v1.ToolsDeriveResponse":{"additionalProperties":false,"description":"Derived output.","properties":{"algorithm":{"description":"The KDF.","type":"string"},"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"legacy":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"For a password-based function: whether the cost was below the floor."},"output":{"contentEncoding":"base64","description":"The output.","type":"string"}},"type":"object"},"aegis.v1.ToolsEncapsulateResponse":{"additionalProperties":false,"description":"The encapsulation.","properties":{"algorithm":{"description":"The KEM.","type":"string"},"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"ciphertext":{"contentEncoding":"base64","description":"The ciphertext to send.","type":"string"},"shared_secret":{"contentEncoding":"base64","description":"The shared secret.","type":"string"}},"type":"object"},"aegis.v1.ToolsEncryptResponse":{"additionalProperties":false,"description":"The ciphertext.","properties":{"algorithm":{"description":"The algorithm.","type":"string"},"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"ciphertext":{"contentEncoding":"base64","description":"The ciphertext with its tag.","type":"string"},"nonce":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The nonce, for an AEAD."}},"type":"object"},"aegis.v1.ToolsHashResponse":{"additionalProperties":false,"description":"A digest.","properties":{"algorithm":{"description":"The function.","type":"string"},"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"digest":{"contentEncoding":"base64","description":"The digest.","type":"string"}},"type":"object"},"aegis.v1.ToolsHpkeExportResponse":{"additionalProperties":false,"description":"The exported secret.","properties":{"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"enc":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"A fresh encapsulated key, as the sender."},"exported":{"contentEncoding":"base64","description":"The exported secret.","type":"string"}},"type":"object"},"aegis.v1.ToolsHpkeOpenResponse":{"additionalProperties":false,"description":"The opened message.","properties":{"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"plaintext":{"contentEncoding":"base64","description":"The plaintext.","type":"string"}},"type":"object"},"aegis.v1.ToolsHpkeSealResponse":{"additionalProperties":false,"description":"The sealed message.","properties":{"aead":{"description":"The AEAD.","type":"string"},"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"ciphertext":{"contentEncoding":"base64","description":"The ciphertext.","type":"string"},"enc":{"contentEncoding":"base64","description":"The encapsulated key.","type":"string"},"kdf":{"description":"The KDF.","type":"string"},"kem":{"description":"The KEM.","type":"string"}},"type":"object"},"aegis.v1.ToolsMacResponse":{"additionalProperties":false,"description":"A tag.","properties":{"algorithm":{"description":"The MAC.","type":"string"},"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"tag":{"contentEncoding":"base64","description":"The tag.","type":"string"}},"type":"object"},"aegis.v1.ToolsRandomResponse":{"additionalProperties":false,"description":"Random bytes.","properties":{"bytes":{"contentEncoding":"base64","description":"The bytes.","type":"string"}},"type":"object"},"aegis.v1.ToolsTransportResponse":{"additionalProperties":false,"description":"The transported secret.","properties":{"algorithm":{"description":"The algorithm.","type":"string"},"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"ciphertext":{"contentEncoding":"base64","description":"The ciphertext.","type":"string"}},"type":"object"},"aegis.v1.ToolsUnwrapResponse":{"additionalProperties":false,"description":"The unwrapped key.","properties":{"algorithm":{"description":"The algorithm.","type":"string"},"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"key":{"contentEncoding":"base64","description":"The key.","type":"string"}},"type":"object"},"aegis.v1.ToolsVerifyResponse":{"additionalProperties":false,"description":"Whether it verifies.","properties":{"algorithm":{"description":"The algorithm.","type":"string"},"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"valid":{"description":"Whether the signature is valid.","type":"boolean"}},"type":"object"},"aegis.v1.ToolsWrapResponse":{"additionalProperties":false,"description":"A wrapped key.","properties":{"algorithm":{"description":"The algorithm.","type":"string"},"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"wrapped":{"contentEncoding":"base64","description":"The wrapped key.","type":"string"}},"type":"object"},"aegis.v1.Transition":{"additionalProperties":false,"description":"A switch between releases in flight.","properties":{"kind":{"description":"`apply` or `rollback`.","type":"string"},"step":{"description":"The step reached.","type":"string"},"to":{"description":"The release it goes to.","type":"string"}},"type":"object"},"aegis.v1.UnsealStatusResponse":{"additionalProperties":false,"description":"The seal state and, while sealed, the progress of an unseal by shares.","properties":{"expires":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"When the shares are wiped unless the threshold is reached."},"mode":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`passphrase` or `shamir`."},"officers":{"description":"The officers.","items":{"$ref":"#/components/schemas/aegis.v1.Officer"},"type":"array"},"received":{"description":"The shares received.","items":{"$ref":"#/components/schemas/aegis.v1.ReceivedShare"},"type":"array"},"sealed":{"description":"Whether the vault is sealed.","type":"boolean"},"started":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"When the first share arrived."},"threshold":{"anyOf":[{"format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},{"type":"null"}],"description":"Shares needed."}},"type":"object"},"aegis.v1.UpdateResult":{"additionalProperties":false,"description":"The outcome of an apply, a rollback or a commit.","properties":{"result":{"description":"The outcome in a sentence.","type":"string"},"status":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.UpdatesStatus"},{"type":"null"}],"description":"The installation now."}},"type":"object"},"aegis.v1.UpdatesStatus":{"additionalProperties":false,"description":"The installation, its directives and the restrictions in force.","properties":{"can_apply":{"description":"Whether the console may apply and roll back (a health check is configured).","type":"boolean"},"core_version":{"description":"The release running.","type":"string"},"directives":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.Directives"},{"type":"null"}],"description":"The signed directives in force, if any."},"directives_error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the directives file was refused, if it was; the restrictions already in force stay."},"installation":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.Installation"},{"type":"null"}],"description":"The installation, when the daemon runs from one (`--install-root`)."},"managed":{"description":"Whether the daemon runs from an installation.","type":"boolean"},"minimums":{"description":"The forced minimums and where each stands.","items":{"$ref":"#/components/schemas/aegis.v1.ForcedMinimum"},"type":"array"},"modules":{"description":"The algorithm modules started from their own installations (DLV-007).","items":{"$ref":"#/components/schemas/aegis.v1.ModuleReport"},"type":"array"},"restrictions":{"additionalProperties":{"type":"string"},"description":"The algorithms whose new protective use is restricted, each with the reason.","type":"object"},"uploads":{"description":"Bundles uploaded and verified, waiting for import.","items":{"$ref":"#/components/schemas/aegis.v1.UploadSummary"},"type":"array"}},"type":"object"},"aegis.v1.UploadSummary":{"additionalProperties":false,"description":"A bundle waiting for import.","properties":{"bundle":{"description":"Its SHA2-256.","type":"string"},"created":{"description":"When it was made.","format":"int64","minimum":0,"type":"integer"},"directives":{"description":"Whether it carries signed directives.","type":"boolean"},"files":{"description":"The files it installs.","format":"int64","minimum":0,"type":"integer"},"kind":{"description":"`full`, `module` or `advisory`.","type":"string"},"length":{"description":"Its length in bytes.","format":"int64","minimum":0,"type":"integer"},"product":{"description":"The product.","type":"string"},"version":{"description":"The release.","type":"string"}},"type":"object"},"aegis.v1.UploadedBundle":{"additionalProperties":false,"description":"A bundle uploaded and verified.","properties":{"bundle":{"description":"Its SHA2-256, which names it for the import.","type":"string"},"length":{"description":"Its length in bytes.","format":"int64","minimum":0,"type":"integer"},"report":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.BundleReport"},{"type":"null"}],"description":"What the verification found."}},"type":"object"},"aegis.v1.VerifyChainResponse":{"additionalProperties":false,"description":"The chain is intact (a broken chain is an error).","properties":{"checked":{"description":"When it was checked.","format":"int64","minimum":0,"type":"integer"},"head":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.ChainHead"},{"type":"null"}],"description":"The newest record."},"intact":{"description":"Always true.","type":"boolean"},"records":{"description":"Records checked.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.VerifyResponse":{"additionalProperties":false,"description":"Whether it verifies.","properties":{"caution":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The caution of a retired or broken algorithm."},"valid":{"description":"Whether the signature is valid.","type":"boolean"}},"type":"object"},"aegis.v1.WhoAmIResponse":{"additionalProperties":false,"description":"The caller.","properties":{"actor":{"description":"The actor in the audit chain: the name with its tenant, and `+break-glass` during a session.","type":"string"},"break_glass":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"When the caller's break-glass session ends, while one runs."},"expires":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"When the credential stops working, in seconds since the Unix epoch."},"granted":{"description":"The role as granted: a custom role's name, or the built-in one.","type":"string"},"name":{"description":"The holder's name.","type":"string"},"role":{"description":"The built-in role the request runs with: `emergency`, `monitor`, `auditor`, `operator` or `admin` (`admin` during a break-glass session).","type":"string"},"scope":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.TokenScope"},{"type":"null"}],"description":"What a scoped token may reach."},"tenant":{"description":"The tenant, `default`, or `*` for the cross-tenant role.","type":"string"},"via":{"description":"How the caller proved who it is: `token`, `oidc` or `certificate`.","type":"string"}},"type":"object"},"aegis.v1.Witness":{"additionalProperties":false,"description":"The signed-checkpoint export.","properties":{"configured":{"description":"Whether exports are configured.","type":"boolean"},"degraded":{"description":"Whether exports are failing now.","type":"boolean"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The last error while they fail."},"exported":{"description":"The newest record exported.","format":"int64","minimum":0,"type":"integer"},"failures":{"description":"Failed exports since start.","format":"int64","minimum":0,"type":"integer"},"last":{"description":"When, in seconds since the Unix epoch.","format":"int64","minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.WrappedMaterial":{"additionalProperties":false,"description":"Material sealed to a vault escrow key for import.","properties":{"aead":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The HPKE AEAD."},"ciphertext":{"contentEncoding":"base64","description":"The ciphertext.","type":"string"},"enc":{"contentEncoding":"base64","description":"The encapsulated key.","type":"string"},"kdf":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The HPKE KDF."},"key":{"description":"The escrow key.","type":"string"},"source":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.WrappedSource"},{"type":"null"}],"description":"For a wrapped export: the terms its `info` names."},"version":{"description":"Its version.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.WrappedSource":{"additionalProperties":false,"description":"The terms a wrapped export declared.","properties":{"export":{"description":"Its export policy.","type":"string"},"key":{"description":"The exported key.","type":"string"},"state":{"description":"Its state.","type":"string"},"usages":{"description":"Its usages.","items":{"type":"string"},"type":"array"},"version":{"description":"Its version.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"}},"type":"object"},"aegis.v1.X509CertificateInfo":{"additionalProperties":false,"description":"One certificate of a verified chain.","properties":{"ca":{"description":"Whether the basic constraints say it is an authority.","type":"boolean"},"issuer":{"description":"The issuer, RFC 4514.","type":"string"},"key_algorithms":{"description":"The subject key's algorithm, when Aegis knows it (an ambiguous key names several).","items":{"type":"string"},"type":"array"},"not_after":{"description":"End of validity.","format":"int64","minimum":0,"type":"integer"},"not_before":{"description":"Start of validity, seconds since the Unix epoch.","format":"int64","minimum":0,"type":"integer"},"path_len":{"anyOf":[{"format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},{"type":"null"}],"description":"Its path length constraint."},"serial":{"description":"The serial number, hexadecimal.","type":"string"},"signature_oid":{"description":"The signature algorithm's object identifier.","type":"string"},"subject":{"description":"The subject, RFC 4514.","type":"string"}},"type":"object"},"aegis.v1.X509VerifyChainResponse":{"additionalProperties":false,"description":"Whether the chain verified, and what it holds.","properties":{"algorithms":{"description":"The algorithm of each signature checked, leaf first.","items":{"type":"string"},"type":"array"},"certificates":{"description":"The certificates, leaf first, anchor last.","items":{"$ref":"#/components/schemas/aegis.v1.X509CertificateInfo"},"type":"array"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why it did not verify."},"valid":{"description":"Whether it verified.","type":"boolean"}},"type":"object"}},"securitySchemes":{"bearer":{"description":"An access token (`agt_…`).","scheme":"bearer","type":"http"}}},"info":{"description":"qblackbit Aegis Core. Every operation is one RPC of the protobuf contract (`proto/aegis/v1`), served as gRPC and as this REST route on the same TLS listener, with the same implementation and the same roles (ADR 0023). Binary values are standard base64 with padding.","title":"Aegis API","version":"0.13.0"},"openapi":"3.1.0","paths":{"/v1/algorithms":{"get":{"operationId":"AlgorithmService.ListAlgorithms","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ListAlgorithmsResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"The whole catalogue with what this build can do.","tags":["AlgorithmService"],"x-aegis-grpc":"/aegis.v1.AlgorithmService/ListAlgorithms","x-aegis-role":"auditor"}},"/v1/algorithms/{id}":{"get":{"operationId":"AlgorithmService.GetAlgorithm","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.Algorithm"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"One catalogue entry.","tags":["AlgorithmService"],"x-aegis-grpc":"/aegis.v1.AlgorithmService/GetAlgorithm","x-aegis-role":"auditor"}},"/v1/audit":{"get":{"operationId":"AuditService.ListRecords","parameters":[{"description":"Records after this sequence number; 0 starts at the beginning.","in":"query","name":"after","schema":{"format":"int64","minimum":0,"type":"integer"}},{"description":"At most this many (100 by default, at most 1,000).","in":"query","name":"limit","schema":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}]}},{"description":"Only records by this actor.","in":"query","name":"actor","schema":{"anyOf":[{"type":"string"},{"type":"null"}]}},{"description":"Only this action, or every action under it.","in":"query","name":"action","schema":{"anyOf":[{"type":"string"},{"type":"null"}]}},{"description":"Only records about this key or subject.","in":"query","name":"key","schema":{"anyOf":[{"type":"string"},{"type":"null"}]}},{"description":"`ok` or `refused`.","in":"query","name":"outcome","schema":{"anyOf":[{"type":"string"},{"type":"null"}]}},{"description":"At or after this time.","in":"query","name":"since","schema":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}]}},{"description":"At or before this time.","in":"query","name":"until","schema":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ListRecordsResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"A page of records, filtered; a tenant's callers see their tenant's records alone.","tags":["AuditService"],"x-aegis-grpc":"/aegis.v1.AuditService/ListRecords","x-aegis-role":"auditor"}},"/v1/audit/checkpoint":{"get":{"operationId":"AuditService.Checkpoint","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.SignedCheckpoint"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"A checkpoint of the chain signed with Ed25519 and ML-DSA-87.","tags":["AuditService"],"x-aegis-grpc":"/aegis.v1.AuditService/Checkpoint","x-aegis-role":"auditor"}},"/v1/audit/export":{"get":{"operationId":"AuditService.ExportRecords","parameters":[{"description":"Records after this sequence number.","in":"query","name":"after","schema":{"format":"int64","minimum":0,"type":"integer"}},{"description":"At most this many (1,000 by default and at most).","in":"query","name":"limit","schema":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}]}}],"responses":{"200":{"content":{"application/x-ndjson":{"description":"One JSON object per line","schema":{"$ref":"#/components/schemas/aegis.v1.ExportedRecord"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Records with their links and tags, for offline verification.","tags":["AuditService"],"x-aegis-grpc":"/aegis.v1.AuditService/ExportRecords","x-aegis-role":"admin"}},"/v1/audit/verify":{"get":{"operationId":"AuditService.VerifyChain","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.VerifyChainResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Checks every record, link and the sealed head.","tags":["AuditService"],"x-aegis-grpc":"/aegis.v1.AuditService/VerifyChain","x-aegis-role":"auditor"}},"/v1/auth/logout":{"post":{"operationId":"AccessService.Logout","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.LogoutResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Ends the caller's own sign-in session.","tags":["AccessService"],"x-aegis-grpc":"/aegis.v1.AccessService/Logout","x-aegis-role":"emergency"}},"/v1/auth/methods":{"get":{"operationId":"AccessService.AuthMethods","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.AuthMethodsResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"summary":"The ways to sign in this daemon offers. Open to anyone.","tags":["AccessService"],"x-aegis-grpc":"/aegis.v1.AccessService/AuthMethods","x-aegis-role":"none"}},"/v1/auth/oidc/callback":{"post":{"operationId":"AccessService.OidcCallback","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"code":{"description":"The authorisation code.","type":"string"},"code_verifier":{"description":"The PKCE verifier whose S256 challenge the start was given (43 to 128 unreserved characters).","type":"string"},"state":{"description":"The state from the start.","type":"string"},"tenant":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The tenant to sign in to, when the identity has roles in several."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.OidcCallbackResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"summary":"Finishes an OpenID Connect sign-in: the code exchanged, the ID token checked, a session started. Open to anyone.","tags":["AccessService"],"x-aegis-grpc":"/aegis.v1.AccessService/OidcCallback","x-aegis-role":"none"}},"/v1/auth/oidc/start":{"post":{"operationId":"AccessService.OidcStart","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"code_challenge":{"description":"BASE64URL(SHA-256(verifier)), 43 characters (RFC 7636, section 4.2).","type":"string"},"code_challenge_method":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`S256`, the only method accepted; absent means `S256`."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.OidcStartResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"summary":"Starts an OpenID Connect sign-in: the provider's authorisation URL, with a fresh state, nonce and PKCE challenge. Open to anyone.","tags":["AccessService"],"x-aegis-grpc":"/aegis.v1.AccessService/OidcStart","x-aegis-role":"none"}},"/v1/encoding/cms/encrypt":{"post":{"operationId":"EncodingService.CmsEncrypt","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"content":{"contentEncoding":"base64","description":"The content.","type":"string"},"recipients":{"description":"Each recipient's ML-KEM public key or certificate (PEM).","items":{"type":"string"},"type":"array"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.CmsEncryptResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"CMS `AuthEnvelopedData` to ML-KEM recipients (RFC 9629, RFC 9936).","tags":["EncodingService"],"x-aegis-grpc":"/aegis.v1.EncodingService/CmsEncrypt","x-aegis-role":"operator"}},"/v1/encoding/cms/verify":{"post":{"operationId":"EncodingService.CmsVerify","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"certificates":{"description":"Certificates (PEM) that may identify the signers.","items":{"type":"string"},"type":"array"},"cms":{"contentEncoding":"base64","description":"`ContentInfo` holding `SignedData`, DER.","type":"string"},"content":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The content, for detached signed data."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.CmsVerifyResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Verifies a CMS `SignedData`.","tags":["EncodingService"],"x-aegis-grpc":"/aegis.v1.EncodingService/CmsVerify","x-aegis-role":"operator"}},"/v1/encoding/cose/verify":{"post":{"operationId":"EncodingService.CoseVerify","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"aad":{"contentEncoding":"base64","description":"External associated data.","type":"string"},"cose":{"contentEncoding":"base64","description":"The tagged `COSE_Sign1`.","type":"string"},"key":{"contentEncoding":"base64","description":"The signer's `COSE_Key`.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.CoseVerifyResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Verifies a `COSE_Sign1` under a `COSE_Key`.","tags":["EncodingService"],"x-aegis-grpc":"/aegis.v1.EncodingService/CoseVerify","x-aegis-role":"operator"}},"/v1/encoding/jwe/encrypt":{"post":{"operationId":"EncodingService.JweEncrypt","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"algorithm":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The algorithm, when the JWK fits several."},"jwk":{"description":"The recipient's public JWK, as JSON text.","type":"string"},"plaintext":{"contentEncoding":"base64","description":"The plaintext.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.JweEncryptResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"A compact JWE (`A256GCM`) to a recipient's JWK: `RSA-OAEP-256` or `ECDH-ES`.","tags":["EncodingService"],"x-aegis-grpc":"/aegis.v1.EncodingService/JweEncrypt","x-aegis-role":"operator"}},"/v1/encoding/jws/verify":{"post":{"operationId":"EncodingService.JwsVerify","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"algorithm":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The algorithm, when the JWK fits several."},"jwk":{"description":"The signer's public JWK, as JSON text.","type":"string"},"jws":{"description":"The compact serialisation.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.JwsVerifyResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Verifies a compact JWS under a JWK.","tags":["EncodingService"],"x-aegis-grpc":"/aegis.v1.EncodingService/JwsVerify","x-aegis-role":"operator"}},"/v1/encoding/keys/convert":{"post":{"operationId":"EncodingService.ConvertKey","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"algorithm":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The algorithm, when the input fits several (ECDH or ECDSA, the RSA sets)."},"form":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The PKCS #8 form, for `pkcs8`."},"input":{"description":"PEM (PUBLIC KEY or PRIVATE KEY), a JWK, or a `COSE_Key` in base64.","type":"string"},"to":{"description":"`spki`, `pkcs8`, `jwk` or `cose-key`.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ConvertKeyResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Reads a key in any supported encoding, checks it and writes it in another. Nothing is stored.","tags":["EncodingService"],"x-aegis-grpc":"/aegis.v1.EncodingService/ConvertKey","x-aegis-role":"operator"}},"/v1/encoding/x509/verify":{"post":{"operationId":"EncodingService.X509VerifyChain","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"anchors":{"description":"The trust anchors (PEM).","items":{"type":"string"},"type":"array"},"at":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"The time to verify at, in seconds since the Unix epoch; now by default."},"chain":{"description":"The certificates (PEM), leaf first.","items":{"type":"string"},"type":"array"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.X509VerifyChainResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Verifies a certificate chain, leaf first, up to one of the anchors.","tags":["EncodingService"],"x-aegis-grpc":"/aegis.v1.EncodingService/X509VerifyChain","x-aegis-role":"operator"}},"/v1/envelopes/describe":{"post":{"operationId":"EnvelopeService.Describe","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"envelope":{"contentEncoding":"base64","description":"The envelope.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.DescribeEnvelopeResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"What an envelope says about itself, without opening it.","tags":["EnvelopeService"],"x-aegis-grpc":"/aegis.v1.EnvelopeService/Describe","x-aegis-role":"auditor"}},"/v1/health":{"get":{"operationId":"SystemService.Health","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.HealthResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"summary":"Liveness: the process answers. Open to anyone.","tags":["SystemService"],"x-aegis-grpc":"/aegis.v1.SystemService/Health","x-aegis-role":"none"}},"/v1/keys":{"get":{"operationId":"KeyService.ListKeys","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ListKeysResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Every key.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/ListKeys","x-aegis-role":"auditor"},"post":{"operationId":"KeyService.CreateKey","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"activation":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"Activation date."},"algorithm":{"description":"The algorithm.","type":"string"},"deactivation":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"Deactivation date."},"description":{"description":"A description.","type":"string"},"export":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`none` (the default), `wrapped` or `plain`, fixed for the key's life."},"exportable":{"description":"`true` alone means `plain`.","type":"boolean"},"labels":{"additionalProperties":{"type":"string"},"description":"Labels.","type":"object"},"name":{"description":"The name.","type":"string"},"pre_active":{"description":"Starts pre-active.","type":"boolean"},"tenant":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The tenant whose key-encryption key wraps it."},"usages":{"description":"What it may do; every operation of its kind by default.","items":{"type":"string"},"type":"array"}},"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.Key"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Creates a key.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/CreateKey","x-aegis-role":"admin"}},"/v1/keys/{name}":{"get":{"operationId":"KeyService.GetKey","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.Key"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"One key.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/GetKey","x-aegis-role":"auditor"}},"/v1/keys/{name}/agree":{"post":{"operationId":"KeyService.Agree","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"peer_public_key":{"contentEncoding":"base64","description":"The peer's public value.","type":"string"},"version":{"description":"The version to use.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.AgreeResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"The raw key-agreement output with a peer's public value.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/Agree","x-aegis-role":"operator"}},"/v1/keys/{name}/certificate":{"post":{"operationId":"EncodingService.IssueCertificate","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"ca":{"description":"Whether the certificate is an authority's.","type":"boolean"},"days":{"description":"Days of validity from now, 1 to 36525.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},"issuer_certificate":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The issuer's certificate (PEM); absent for a self-signed certificate."},"path_len":{"anyOf":[{"format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},{"type":"null"}],"description":"Its path length constraint."},"request":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The subject's PKCS #10 request (PEM), checked before anything is signed."},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The subject (RFC 4514); taken from `request` when that is given."},"subject_public_key":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The subject's public key (PEM), when no request is given."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.IssueCertificateResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"A certificate signed by a vault key: self-signed, or issued under the key's own certificate for another key (from a checked request or a public key).","tags":["EncodingService"],"x-aegis-grpc":"/aegis.v1.EncodingService/IssueCertificate","x-aegis-role":"admin"}},"/v1/keys/{name}/cms/decrypt":{"post":{"operationId":"EncodingService.CmsDecrypt","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"cms":{"contentEncoding":"base64","description":"`ContentInfo` holding `AuthEnvelopedData`, DER.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.CmsDecryptResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Decrypts a CMS `AuthEnvelopedData` with a vault ML-KEM key.","tags":["EncodingService"],"x-aegis-grpc":"/aegis.v1.EncodingService/CmsDecrypt","x-aegis-role":"operator"}},"/v1/keys/{name}/cms/sign":{"post":{"operationId":"EncodingService.CmsSign","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"certificate":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The signer's certificate (PEM), included and naming the signer; without one the signer is named by its key identifier."},"content":{"contentEncoding":"base64","description":"The content.","type":"string"},"detached":{"description":"Leave the content out.","type":"boolean"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.CmsSignResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"CMS `SignedData` over a content, signed by a vault key.","tags":["EncodingService"],"x-aegis-grpc":"/aegis.v1.EncodingService/CmsSign","x-aegis-role":"operator"}},"/v1/keys/{name}/cose/sign":{"post":{"operationId":"EncodingService.CoseSign","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"aad":{"contentEncoding":"base64","description":"External associated data.","type":"string"},"kid":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"A key identifier for the header."},"payload":{"contentEncoding":"base64","description":"The payload.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.CoseSignResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"A tagged `COSE_Sign1` signed by a vault key.","tags":["EncodingService"],"x-aegis-grpc":"/aegis.v1.EncodingService/CoseSign","x-aegis-role":"operator"}},"/v1/keys/{name}/csr":{"post":{"operationId":"EncodingService.CertificationRequest","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"subject":{"description":"The subject (RFC 4514).","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.CertificationRequestResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"A PKCS #10 certification request for a signature key, signed by the vault.","tags":["EncodingService"],"x-aegis-grpc":"/aegis.v1.EncodingService/CertificationRequest","x-aegis-role":"operator"}},"/v1/keys/{name}/dates":{"post":{"operationId":"KeyService.SetDates","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"activation":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"Activation, or absent for none."},"deactivation":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"Deactivation, or absent for none."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.Key"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Changes the activation and deactivation dates.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/SetDates","x-aegis-role":"admin"}},"/v1/keys/{name}/decapsulate":{"post":{"operationId":"KeyService.Decapsulate","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"ciphertext":{"contentEncoding":"base64","description":"The KEM ciphertext.","type":"string"},"version":{"description":"The version it was sent to.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.DecapsulateResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Recovers a shared secret from a KEM ciphertext.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/Decapsulate","x-aegis-role":"operator"}},"/v1/keys/{name}/decrypt":{"post":{"operationId":"KeyService.Decrypt","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"associated_data":{"contentEncoding":"base64","description":"The associated data it is bound to.","type":"string"},"envelope":{"contentEncoding":"base64","description":"The envelope.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.DecryptResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Decrypts an envelope.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/Decrypt","x-aegis-role":"operator"}},"/v1/keys/{name}/delete":{"post":{"operationId":"KeyService.ScheduleDeletion","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"confirm":{"description":"The key's name again.","type":"string"},"wait_days":{"description":"The waiting period in days.","format":"int64","minimum":0,"type":"integer"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.Key"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Schedules a deletion after a waiting period.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/ScheduleDeletion","x-aegis-role":"admin"}},"/v1/keys/{name}/delete/cancel":{"post":{"operationId":"KeyService.CancelDeletion","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.Key"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Cancels a scheduled deletion.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/CancelDeletion","x-aegis-role":"admin"}},"/v1/keys/{name}/destroy":{"post":{"operationId":"KeyService.DestroyKey","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"confirm":{"description":"The key's name again.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.Key"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Crypto-shreds every version now.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/DestroyKey","x-aegis-role":"admin"}},"/v1/keys/{name}/encrypt":{"post":{"operationId":"KeyService.Encrypt","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"associated_data":{"contentEncoding":"base64","description":"Associated data bound to the envelope.","type":"string"},"plaintext":{"contentEncoding":"base64","description":"The plaintext.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.EncryptResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Encrypts into a self-describing envelope.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/Encrypt","x-aegis-role":"operator"}},"/v1/keys/{name}/export":{"post":{"operationId":"KeyService.ExportKey","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"to":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.ExportRecipient"},{"type":"null"}],"description":"Wrap to a recipient instead of exporting in clear."},"version":{"anyOf":[{"format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},{"type":"null"}],"description":"The version; the newest by default."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ExportKeyResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Exports a version in clear, or wrapped to a recipient with HPKE.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/ExportKey","x-aegis-role":"admin"}},"/v1/keys/{name}/export/encoded":{"post":{"operationId":"EncodingService.ExportEncoded","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"form":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The PKCS #8 form: `seed`, `expanded`, `both` or `single`; the seed for ML-KEM and ML-DSA by default."},"format":{"description":"`pkcs8`, `jwk` or `cose-key`.","type":"string"},"version":{"anyOf":[{"format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},{"type":"null"}],"description":"The version; the newest by default."},"with_public":{"description":"Include the public key in the PKCS #8 structure.","type":"boolean"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.EncodedKeyResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"The private key of an exportable key as PKCS #8 (PEM), JWK or `COSE_Key`, through the vault's audited export.","tags":["EncodingService"],"x-aegis-grpc":"/aegis.v1.EncodingService/ExportEncoded","x-aegis-role":"admin"}},"/v1/keys/{name}/hpke/open":{"post":{"operationId":"KeyService.HpkeOpen","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"aad":{"contentEncoding":"base64","description":"HPKE aad.","type":"string"},"aead":{"description":"The HPKE AEAD.","type":"string"},"ciphertext":{"contentEncoding":"base64","description":"The ciphertext.","type":"string"},"enc":{"contentEncoding":"base64","description":"The encapsulated key.","type":"string"},"info":{"contentEncoding":"base64","description":"HPKE info.","type":"string"},"kdf":{"description":"The HPKE KDF.","type":"string"},"psk":{"contentEncoding":"base64","description":"A pre-shared key.","type":"string"},"psk_id":{"contentEncoding":"base64","description":"Its identifier.","type":"string"},"sender_public_key":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The sender's public key (mode auth)."},"version":{"description":"The version it was sealed to.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.HpkeOpenResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Opens an HPKE message sealed to a vault HPKE key.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/HpkeOpen","x-aegis-role":"operator"}},"/v1/keys/{name}/import":{"post":{"operationId":"KeyService.ImportKey","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"activation":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"Activation date."},"algorithm":{"description":"The algorithm.","type":"string"},"deactivation":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"Deactivation date."},"description":{"description":"A description.","type":"string"},"export":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`none`, `wrapped` or `plain`."},"exportable":{"description":"`true` alone means `plain`.","type":"boolean"},"labels":{"additionalProperties":{"type":"string"},"description":"Labels.","type":"object"},"loosen_export":{"description":"Allow the export policy asked for, for material from outside (audited).","type":"boolean"},"material":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The material in clear."},"name":{"description":"The name.","type":"string"},"pre_active":{"description":"Starts pre-active.","type":"boolean"},"public_key":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The public key, checked against the material."},"tenant":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The tenant."},"usages":{"description":"What it may do.","items":{"type":"string"},"type":"array"},"wrapped":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.WrappedMaterial"},{"type":"null"}],"description":"Or sealed to an escrow key."}},"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.Key"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Imports a key made elsewhere, after the algorithm's key checks.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/ImportKey","x-aegis-role":"admin"}},"/v1/keys/{name}/jwe/decrypt":{"post":{"operationId":"EncodingService.JweDecrypt","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"jwe":{"description":"The compact serialisation.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.JweDecryptResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Decrypts a compact JWE with a vault key-transport or agreement key.","tags":["EncodingService"],"x-aegis-grpc":"/aegis.v1.EncodingService/JweDecrypt","x-aegis-role":"operator"}},"/v1/keys/{name}/jws/sign":{"post":{"operationId":"EncodingService.JwsSign","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"kid":{"description":"Name the key in the header (`kid`).","type":"boolean"},"payload":{"contentEncoding":"base64","description":"The payload.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.JwsSignResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"A compact JWS signed by a vault key.","tags":["EncodingService"],"x-aegis-grpc":"/aegis.v1.EncodingService/JwsSign","x-aegis-role":"operator"}},"/v1/keys/{name}/metadata":{"post":{"operationId":"KeyService.SetMetadata","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"description":{"description":"The description.","type":"string"},"labels":{"additionalProperties":{"type":"string"},"description":"The labels.","type":"object"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.Key"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Replaces the description and labels.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/SetMetadata","x-aegis-role":"admin"}},"/v1/keys/{name}/public":{"get":{"operationId":"KeyService.PublicKey","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.PublicKeyResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"The current version's public key.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/PublicKey","x-aegis-role":"auditor"}},"/v1/keys/{name}/public/encoded":{"get":{"operationId":"EncodingService.EncodedPublicKey","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}},{"description":"`spki`, `jwk` or `cose-key`.","in":"query","name":"format","schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.EncodedKeyResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"The public key of a key's newest version as SPKI (PEM), JWK or `COSE_Key` (base64).","tags":["EncodingService"],"x-aegis-grpc":"/aegis.v1.EncodingService/EncodedPublicKey","x-aegis-role":"auditor"}},"/v1/keys/{name}/receive":{"post":{"operationId":"KeyService.Receive","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"ciphertext":{"contentEncoding":"base64","description":"The ciphertext.","type":"string"},"label":{"contentEncoding":"base64","description":"The OAEP label.","type":"string"},"version":{"description":"The version it was sent to.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ReceiveResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Recovers a secret transported (RSA-OAEP) to a key-transport key.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/Receive","x-aegis-role":"operator"}},"/v1/keys/{name}/rewrap":{"post":{"operationId":"KeyService.Rewrap","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"associated_data":{"contentEncoding":"base64","description":"The associated data it is bound to.","type":"string"},"envelope":{"contentEncoding":"base64","description":"The envelope.","type":"string"},"to":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Another key to move it to."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.RewrapResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Re-encrypts an envelope under the newest version, or another key, inside the daemon.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/Rewrap","x-aegis-role":"operator"}},"/v1/keys/{name}/rotate":{"post":{"operationId":"KeyService.RotateKey","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.Key"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"A new current version.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/RotateKey","x-aegis-role":"admin"}},"/v1/keys/{name}/sign":{"post":{"operationId":"KeyService.Sign","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"context":{"contentEncoding":"base64","description":"The context string (FIPS 204, 205), at most 255 bytes.","type":"string"},"deterministic":{"description":"The deterministic variant instead of hedged signing.","type":"boolean"},"envelope":{"description":"Sign into a self-describing envelope (AGS2) instead of a bare signature.","type":"boolean"},"message":{"contentEncoding":"base64","description":"The message.","type":"string"},"prehash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The pre-hash function, for HashML-DSA and HashSLH-DSA."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.SignResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Signs with the newest version.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/Sign","x-aegis-role":"operator"}},"/v1/keys/{name}/state":{"post":{"operationId":"KeyService.SetState","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"state":{"description":"`active`, `suspended`, `deactivated` or `compromised`.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.Key"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Activates, suspends, resumes, deactivates or marks compromised.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/SetState","x-aegis-role":"admin"}},"/v1/keys/{name}/verify":{"post":{"operationId":"KeyService.Verify","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"context":{"contentEncoding":"base64","description":"The context string.","type":"string"},"envelope":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"Or the signature envelope, which names the version."},"message":{"contentEncoding":"base64","description":"The message.","type":"string"},"prehash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The pre-hash function expected; pure when absent. An envelope must name exactly this form."},"signature":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The bare signature."},"version":{"anyOf":[{"format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},{"type":"null"}],"description":"The version that signed (with `signature`)."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.VerifyResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Verifies a signature, bare with its version or in its envelope.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/Verify","x-aegis-role":"auditor"}},"/v1/keys/{name}/versions":{"post":{"operationId":"KeyService.ImportVersion","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"loosen_export":{"description":"Allow it into an exportable key, for material from outside (audited).","type":"boolean"},"material":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The material in clear."},"public_key":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The public key, checked against the material."},"wrapped":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.WrappedMaterial"},{"type":"null"}],"description":"Or sealed to an escrow key."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.Key"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Imports a further version.","tags":["KeyService"],"x-aegis-grpc":"/aegis.v1.KeyService/ImportVersion","x-aegis-role":"admin"}},"/v1/openapi.json":{"get":{"operationId":"SystemService.OpenApi","responses":{"200":{"content":{"application/json":{"schema":{"type":"string"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"summary":"This contract as an OpenAPI 3.1 document. Open to anyone.","tags":["SystemService"],"x-aegis-grpc":"/aegis.v1.SystemService/OpenApi","x-aegis-role":"none"}},"/v1/policy":{"get":{"operationId":"PolicyService.ListPolicy","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ListPolicyResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"The packs, the one in force and whether imports can be verified.","tags":["PolicyService"],"x-aegis-grpc":"/aegis.v1.PolicyService/ListPolicy","x-aegis-role":"auditor"}},"/v1/policy/activate":{"post":{"operationId":"PolicyService.ActivatePolicy","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"id":{"description":"The pack's identifier.","type":"string"},"reason":{"description":"Why, on one line, at most 200 characters.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ActivatePolicyResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Puts a pack in force, with a reason.","tags":["PolicyService"],"x-aegis-grpc":"/aegis.v1.PolicyService/ActivatePolicy","x-aegis-role":"admin"}},"/v1/policy/advisories":{"get":{"operationId":"PolicyService.ListAdvisories","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ListAdvisoriesResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"The advisories accepted, with the sequence the next one must exceed.","tags":["PolicyService"],"x-aegis-grpc":"/aegis.v1.PolicyService/ListAdvisories","x-aegis-role":"auditor"},"post":{"operationId":"PolicyService.ImportAdvisory","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"document":{"description":"The signed document: the envelope's JSON as text, or base64 of it.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ImportAdvisoryResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Imports a signed advisory and puts it in force; it can only narrow.","tags":["PolicyService"],"x-aegis-grpc":"/aegis.v1.PolicyService/ImportAdvisory","x-aegis-role":"admin"}},"/v1/policy/packs":{"post":{"operationId":"PolicyService.ImportPolicyPack","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"document":{"description":"The signed document: the envelope's JSON as text, or base64 of it.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ImportPolicyPackResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Imports a signed pack from a file. It is not in force until activated.","tags":["PolicyService"],"x-aegis-grpc":"/aegis.v1.PolicyService/ImportPolicyPack","x-aegis-role":"admin"}},"/v1/policy/packs/{id}":{"get":{"operationId":"PolicyService.GetPolicyPack","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.PolicyPack"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"One pack in full: its rules with their sources, its hybrid rule and notes.","tags":["PolicyService"],"x-aegis-grpc":"/aegis.v1.PolicyService/GetPolicyPack","x-aegis-role":"auditor"}},"/v1/policy/protocols":{"get":{"operationId":"PolicyService.ProtocolAnswers","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ProtocolAnswersResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"What the policy in force allows, as TLS, IKEv2, SSH, JOSE, COSE and X.509 code points.","tags":["PolicyService"],"x-aegis-grpc":"/aegis.v1.PolicyService/ProtocolAnswers","x-aegis-role":"auditor"}},"/v1/ready":{"get":{"operationId":"SystemService.Ready","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ReadyResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"summary":"Readiness: whether the daemon is ready for work (vault unsealed, generator healthy, runtime state not degraded). Open to anyone, and says only whether; unavailable (503) when not ready.","tags":["SystemService"],"x-aegis-grpc":"/aegis.v1.SystemService/Ready","x-aegis-role":"none"}},"/v1/rewrap/jobs":{"get":{"operationId":"EnvelopeService.ListRewrapJobs","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ListRewrapJobsResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"The jobs the caller may see: their own, or every job for an administrator.","tags":["EnvelopeService"],"x-aegis-grpc":"/aegis.v1.EnvelopeService/ListRewrapJobs","x-aegis-role":"operator"},"post":{"operationId":"EnvelopeService.StartRewrapJob","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"items":{"description":"1 to 10,000 envelopes.","items":{"$ref":"#/components/schemas/aegis.v1.RewrapItem"},"type":"array"},"key":{"description":"The key whose envelopes these are.","type":"string"},"to":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Another key, possibly of another algorithm, to move them to."}},"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.RewrapJob"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Starts a job that re-wraps many envelopes to the newest version or another key.","tags":["EnvelopeService"],"x-aegis-grpc":"/aegis.v1.EnvelopeService/StartRewrapJob","x-aegis-role":"operator"}},"/v1/rewrap/jobs/{id}":{"get":{"operationId":"EnvelopeService.GetRewrapJob","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.RewrapJob"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"A job's progress.","tags":["EnvelopeService"],"x-aegis-grpc":"/aegis.v1.EnvelopeService/GetRewrapJob","x-aegis-role":"operator"}},"/v1/rewrap/jobs/{id}/cancel":{"post":{"operationId":"EnvelopeService.CancelRewrapJob","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.RewrapJob"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Stops a job after the batch under way.","tags":["EnvelopeService"],"x-aegis-grpc":"/aegis.v1.EnvelopeService/CancelRewrapJob","x-aegis-role":"operator"}},"/v1/rewrap/jobs/{id}/results":{"get":{"operationId":"EnvelopeService.RewrapJobResults","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}},{"description":"The first item index (0 is the first item).","in":"query","name":"after","schema":{"format":"int64","minimum":0,"type":"integer"}},{"description":"At most this many (100 by default, at most 1,000).","in":"query","name":"limit","schema":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.RewrapJobResultsResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"A job's results so far, by item.","tags":["EnvelopeService"],"x-aegis-grpc":"/aegis.v1.EnvelopeService/RewrapJobResults","x-aegis-role":"operator"}},"/v1/sys/access/policy":{"get":{"operationId":"AccessService.GetAccessPolicy","parameters":[{"description":"For a cross-tenant caller: whose policy; the default tenant's when absent.","in":"query","name":"tenant","schema":{"anyOf":[{"type":"string"},{"type":"null"}]}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.AccessPolicyView"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"The access policy of the caller's tenant, what is in force for it, and the operations a policy can name.","tags":["AccessService"],"x-aegis-grpc":"/aegis.v1.AccessService/GetAccessPolicy","x-aegis-role":"auditor"},"post":{"operationId":"AccessService.ReplaceAccessPolicy","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"policy":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.AccessPolicy"},{"type":"null"}],"description":"The new policy, whole. An empty policy removes the tenant's."},"tenant":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"For a cross-tenant caller: whose policy; the default tenant's when absent."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ReplaceAccessPolicyResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Replaces the access policy of the caller's tenant, whole; under dual control by default.","tags":["AccessService"],"x-aegis-grpc":"/aegis.v1.AccessService/ReplaceAccessPolicy","x-aegis-role":"admin"}},"/v1/sys/approvals":{"get":{"operationId":"AccessService.ListApprovals","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ListApprovalsResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"The requests under dual control the caller's tenant can see, newest first.","tags":["AccessService"],"x-aegis-grpc":"/aegis.v1.AccessService/ListApprovals","x-aegis-role":"auditor"}},"/v1/sys/approvals/{id}":{"get":{"operationId":"AccessService.GetApproval","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.Approval"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"One request under dual control.","tags":["AccessService"],"x-aegis-grpc":"/aegis.v1.AccessService/GetApproval","x-aegis-role":"auditor"}},"/v1/sys/approvals/{id}/approve":{"post":{"operationId":"AccessService.Approve","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.Approval"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Approves a pending request, as a principal independent of the requester.","tags":["AccessService"],"x-aegis-grpc":"/aegis.v1.AccessService/Approve","x-aegis-role":"admin"}},"/v1/sys/approvals/{id}/cancel":{"post":{"operationId":"AccessService.CancelApproval","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.Approval"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Withdraws one's own request while it is open.","tags":["AccessService"],"x-aegis-grpc":"/aegis.v1.AccessService/CancelApproval","x-aegis-role":"admin"}},"/v1/sys/approvals/{id}/deny":{"post":{"operationId":"AccessService.DenyApproval","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.Approval"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Denies a pending request.","tags":["AccessService"],"x-aegis-grpc":"/aegis.v1.AccessService/DenyApproval","x-aegis-role":"admin"}},"/v1/sys/backup":{"post":{"operationId":"SystemService.Backup","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/octet-stream":{"schema":{"contentMediaType":"application/octet-stream","type":"string"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"The vault as a backup file; restore it with `aegisd restore`.","tags":["SystemService"],"x-aegis-grpc":"/aegis.v1.SystemService/Backup","x-aegis-role":"admin"}},"/v1/sys/backup/snapshot":{"post":{"operationId":"SystemService.Snapshot","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.SnapshotResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"A verified backup kept by the daemon in its backup directory.","tags":["SystemService"],"x-aegis-grpc":"/aegis.v1.SystemService/Snapshot","x-aegis-role":"admin"}},"/v1/sys/break-glass":{"get":{"operationId":"AccessService.ListBreakGlass","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ListBreakGlassResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"The break-glass sessions running in the caller's tenant, and the longest one allowed.","tags":["AccessService"],"x-aegis-grpc":"/aegis.v1.AccessService/ListBreakGlass","x-aegis-role":"auditor"},"post":{"operationId":"AccessService.StartBreakGlass","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"reason":{"description":"Why, one line of 8 to 300 characters.","type":"string"},"seconds":{"description":"How long, in seconds: 60 up to the policy's limit.","format":"int64","minimum":0,"type":"integer"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.BreakGlassSession"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Starts a break-glass session for a holder of the `emergency` role, with a reason.","tags":["AccessService"],"x-aegis-grpc":"/aegis.v1.AccessService/StartBreakGlass","x-aegis-role":"emergency"}},"/v1/sys/break-glass/end":{"post":{"operationId":"AccessService.EndBreakGlass","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"holder":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Whose session, for an administrator ending another's; the caller's own when absent."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.EndBreakGlassResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Ends a break-glass session: the caller's own, or another's in the tenant by an administrator.","tags":["AccessService"],"x-aegis-grpc":"/aegis.v1.AccessService/EndBreakGlass","x-aegis-role":"emergency"}},"/v1/sys/info":{"get":{"operationId":"SystemService.Info","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.InfoResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"What this daemon is: version, build, deployment, policy, licence, randomness, seal state, locked memory, the witness and the runtime state.","tags":["SystemService"],"x-aegis-grpc":"/aegis.v1.SystemService/Info","x-aegis-role":"auditor"}},"/v1/sys/licence":{"get":{"operationId":"LicenceService.GetLicence","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.LicenceStatus"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"The licence, where it stands, the modules open for new protection, the limits with their use and what no licence state ever blocks.","tags":["LicenceService"],"x-aegis-grpc":"/aegis.v1.LicenceService/GetLicence","x-aegis-role":"auditor"},"post":{"operationId":"LicenceService.InstallLicence","requestBody":{"content":{"application/octet-stream":{"schema":{"contentMediaType":"application/octet-stream","type":"string"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.LicenceStatus"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Installs a licence file as issued, if it verifies against a trusted issuer and is not older than the one in force. Allowed sealed or unsealed; audited when unsealed.","tags":["LicenceService"],"x-aegis-grpc":"/aegis.v1.LicenceService/InstallLicence","x-aegis-role":"admin"}},"/v1/sys/metrics":{"get":{"operationId":"SystemService.Metrics","responses":{"200":{"content":{"text/plain; version=0.0.4":{"schema":{"type":"string"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"The daemon's metrics in the Prometheus text format: the `monitor` role, which may read this and readiness and nothing else, and above.","tags":["SystemService"],"x-aegis-grpc":"/aegis.v1.SystemService/Metrics","x-aegis-monitor":true,"x-aegis-role":"monitor"}},"/v1/sys/providers":{"get":{"operationId":"SystemService.Providers","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ProvidersResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Every provider's manifest, its offerings and their self-test health.","tags":["SystemService"],"x-aegis-grpc":"/aegis.v1.SystemService/Providers","x-aegis-role":"auditor"}},"/v1/sys/ready":{"get":{"operationId":"SystemService.ReadyDetail","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ReadyResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Readiness with every check and the reasons: the `monitor` role and above.","tags":["SystemService"],"x-aegis-grpc":"/aegis.v1.SystemService/ReadyDetail","x-aegis-monitor":true,"x-aegis-role":"monitor"}},"/v1/sys/rekey":{"post":{"operationId":"SealService.Rekey","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"new_passphrase":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A new passphrase."},"officers":{"description":"The new officers.","items":{"$ref":"#/components/schemas/aegis.v1.OfficerIn"},"type":"array"},"passphrase":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The current passphrase."},"shares":{"description":"Or the current shares.","items":{"$ref":"#/components/schemas/aegis.v1.ShareIn"},"type":"array"},"threshold":{"anyOf":[{"format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},{"type":"null"}],"description":"Or a new threshold and officers."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.RekeyResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Changes the unlock: a new passphrase or new shares; the seal key stays.","tags":["SealService"],"x-aegis-grpc":"/aegis.v1.SealService/Rekey","x-aegis-role":"admin"}},"/v1/sys/rewrap":{"get":{"operationId":"HierarchyService.RewrapProgress","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.RewrapProgressResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"How far the background job has moved each level.","tags":["HierarchyService"],"x-aegis-grpc":"/aegis.v1.HierarchyService/RewrapProgress","x-aegis-role":"auditor"}},"/v1/sys/root/retire":{"post":{"operationId":"HierarchyService.RetireRoot","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"override_backup":{"description":"Retire although no backup was taken since the last rotation (recorded).","type":"boolean"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.RetireRootResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Forgets every root version but the current one.","tags":["HierarchyService"],"x-aegis-grpc":"/aegis.v1.HierarchyService/RetireRoot","x-aegis-role":"admin"}},"/v1/sys/root/rotate":{"post":{"operationId":"HierarchyService.RotateRoot","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.RotateRootResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"A new root key version.","tags":["HierarchyService"],"x-aegis-grpc":"/aegis.v1.HierarchyService/RotateRoot","x-aegis-role":"admin"}},"/v1/sys/seal":{"post":{"operationId":"SealService.Seal","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.SealResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Seals the vault: its keys leave memory.","tags":["SealService"],"x-aegis-grpc":"/aegis.v1.SealService/Seal","x-aegis-role":"admin"}},"/v1/sys/selftest":{"post":{"operationId":"SystemService.SelfTest","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"algorithm":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One algorithm, or every offered one when absent."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.SelfTestResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Runs the self-tests again, for every offered algorithm or one.","tags":["SystemService"],"x-aegis-grpc":"/aegis.v1.SystemService/SelfTest","x-aegis-role":"admin"}},"/v1/sys/state/reaffirm":{"post":{"operationId":"SystemService.ReaffirmState","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ReaffirmStateResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Accepts a state file the audit chain does not vouch for, as it stands.","tags":["SystemService"],"x-aegis-grpc":"/aegis.v1.SystemService/ReaffirmState","x-aegis-role":"admin"}},"/v1/sys/status":{"get":{"operationId":"SystemService.Status","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.StatusResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Whether the vault is sealed, the deployment, the policy and the providers.","tags":["SystemService"],"x-aegis-grpc":"/aegis.v1.SystemService/Status","x-aegis-role":"auditor"}},"/v1/sys/switches":{"get":{"operationId":"SystemService.ListSwitches","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ListSwitchesResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"The modules, the switches that are off and every algorithm's standing.","tags":["SystemService"],"x-aegis-grpc":"/aegis.v1.SystemService/ListSwitches","x-aegis-role":"auditor"},"post":{"operationId":"SystemService.SetSwitch","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"enabled":{"description":"On or off.","type":"boolean"},"name":{"description":"A module, family or algorithm.","type":"string"},"reason":{"description":"One line, at most 300 characters.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.SetSwitchResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Switches a module, family or algorithm off or on, with a reason.","tags":["SystemService"],"x-aegis-grpc":"/aegis.v1.SystemService/SetSwitch","x-aegis-role":"admin"}},"/v1/sys/tokens":{"get":{"operationId":"AccessService.ListTokens","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ListTokensResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Every holder of the caller's tenant with their role, scope and where the token came from. Never a token or a hash.","tags":["AccessService"],"x-aegis-grpc":"/aegis.v1.AccessService/ListTokens","x-aegis-role":"admin"},"post":{"operationId":"AccessService.IssueToken","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"bound":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The SHA-256 of a client certificate's public key (64 hex digits): the token then works only over mutual TLS with that key."},"expires_in":{"anyOf":[{"format":"int64","minimum":0,"type":"integer"},{"type":"null"}],"description":"Seconds from now until it stops working: 60 to a year. Without it, it does not expire."},"name":{"description":"The holder's name.","type":"string"},"role":{"description":"`emergency`, `monitor`, `auditor`, `operator`, `admin` or a custom role.","type":"string"},"scope":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.TokenScope"},{"type":"null"}],"description":"What the token may reach."},"tenant":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The holder's tenant (`*` for the cross-tenant role); the caller's own by default."}},"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.IssueTokenResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Issues a token, shown once: optionally scoped, expiring, bound to a client key, or in another tenant (the system's administrators only).","tags":["AccessService"],"x-aegis-grpc":"/aegis.v1.AccessService/IssueToken","x-aegis-role":"admin"}},"/v1/sys/tokens/{name}/revoke":{"post":{"operationId":"AccessService.RevokeToken","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.RevokeTokenResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Revokes a holder's token and retires the name for good.","tags":["AccessService"],"x-aegis-grpc":"/aegis.v1.AccessService/RevokeToken","x-aegis-role":"admin"}},"/v1/sys/unseal":{"get":{"operationId":"SealService.UnsealStatus","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.UnsealStatusResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Whether the vault is sealed, how it unseals and the shares received so far.","tags":["SealService"],"x-aegis-grpc":"/aegis.v1.SealService/UnsealStatus","x-aegis-role":"auditor"},"post":{"operationId":"SealService.Unseal","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"passphrase":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The passphrase."},"share":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"One officer's share."},"share_passphrase":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The passphrase a sealed share is sealed to."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.UnsealStatusResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Unseals with the passphrase, or hands in one officer's share.","tags":["SealService"],"x-aegis-grpc":"/aegis.v1.SealService/Unseal","x-aegis-role":"admin"}},"/v1/sys/unseal/reset":{"post":{"operationId":"SealService.ResetUnseal","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ResetUnsealResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Wipes the shares handed in so far.","tags":["SealService"],"x-aegis-grpc":"/aegis.v1.SealService/ResetUnseal","x-aegis-role":"admin"}},"/v1/sys/updates":{"get":{"operationId":"UpdatesService.GetUpdates","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.UpdatesStatus"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"The running release, the installation, the directives in force, the forced minimums and the algorithms whose new protective use they restrict.","tags":["UpdatesService"],"x-aegis-grpc":"/aegis.v1.UpdatesService/GetUpdates","x-aegis-role":"auditor"}},"/v1/sys/updates/apply":{"post":{"operationId":"UpdatesService.ApplyRelease","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"version":{"description":"Its version.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.UpdateResult"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Applies an imported release after a verified backup and the configured health check; a failed check goes back by itself. The daemon runs the new release once its service restarts.","tags":["UpdatesService"],"x-aegis-grpc":"/aegis.v1.UpdatesService/ApplyRelease","x-aegis-role":"admin"}},"/v1/sys/updates/commit":{"post":{"operationId":"UpdatesService.CommitRelease","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.UpdateResult"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Commits the current release: ends its soak and prunes old releases, as `aegis update commit`.","tags":["UpdatesService"],"x-aegis-grpc":"/aegis.v1.UpdatesService/CommitRelease","x-aegis-role":"admin"}},"/v1/sys/updates/import":{"post":{"operationId":"UpdatesService.ImportBundle","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"bundle":{"description":"Its SHA2-256, as the upload named it.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ImportedBundle"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Imports an uploaded bundle into the installation, as `aegis update import` does.","tags":["UpdatesService"],"x-aegis-grpc":"/aegis.v1.UpdatesService/ImportBundle","x-aegis-role":"admin"}},"/v1/sys/updates/rollback":{"post":{"operationId":"UpdatesService.RollbackRelease","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"to":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The release to go back to; the previous one when absent."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.UpdateResult"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Rolls back to the previous release, or to one named, above the signed floor.","tags":["UpdatesService"],"x-aegis-grpc":"/aegis.v1.UpdatesService/RollbackRelease","x-aegis-role":"admin"}},"/v1/sys/updates/upload":{"post":{"operationId":"UpdatesService.UploadBundle","requestBody":{"content":{"application/octet-stream":{"schema":{"contentMediaType":"application/octet-stream","type":"string"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.UploadedBundle"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Uploads a bundle file and verifies it against the installation's trusted root without changing anything; it is kept, under its SHA2-256, only if it verifies. Over REST the body is streamed to disk up to the daemon's upload limit; a gRPC message is limited to 768 KiB, so larger bundles go over REST or `aegis update import` on the host.","tags":["UpdatesService"],"x-aegis-grpc":"/aegis.v1.UpdatesService/UploadBundle","x-aegis-role":"admin"}},"/v1/sys/whoami":{"get":{"operationId":"SystemService.WhoAmI","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.WhoAmIResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"The caller: name, role, tenant, how it signed in, its scope and expiry. Any principal, the `emergency` role included.","tags":["SystemService"],"x-aegis-grpc":"/aegis.v1.SystemService/WhoAmI","x-aegis-role":"emergency"}},"/v1/tenants":{"get":{"operationId":"HierarchyService.ListTenants","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ListTenantsResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"The key-encryption domains.","tags":["HierarchyService"],"x-aegis-grpc":"/aegis.v1.HierarchyService/ListTenants","x-aegis-role":"admin"},"post":{"operationId":"HierarchyService.CreateTenant","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"name":{"description":"The name.","type":"string"}},"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.Tenant"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Creates a tenant with its first key-encryption key.","tags":["HierarchyService"],"x-aegis-grpc":"/aegis.v1.HierarchyService/CreateTenant","x-aegis-role":"admin"}},"/v1/tenants/{name}/retire":{"post":{"operationId":"HierarchyService.RetireTenant","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"override_backup":{"description":"Retire although no backup was taken since the last rotation (recorded).","type":"boolean"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.Tenant"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Erases the tenant's older key-encryption keys.","tags":["HierarchyService"],"x-aegis-grpc":"/aegis.v1.HierarchyService/RetireTenant","x-aegis-role":"admin"}},"/v1/tenants/{name}/rotate":{"post":{"operationId":"HierarchyService.RotateTenant","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.Tenant"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"A new current key-encryption key version.","tags":["HierarchyService"],"x-aegis-grpc":"/aegis.v1.HierarchyService/RotateTenant","x-aegis-role":"admin"}},"/v1/tenants/{name}/shred":{"post":{"operationId":"HierarchyService.ShredTenant","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"confirm":{"description":"The tenant's name again.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ShredTenantResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Erases the tenant's key-encryption keys and destroys every key under it.","tags":["HierarchyService"],"x-aegis-grpc":"/aegis.v1.HierarchyService/ShredTenant","x-aegis-role":"admin"}},"/v1/tools/combine":{"post":{"operationId":"ToolsService.Combine","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"algorithm":{"description":"The combiner.","type":"string"},"exchanges":{"description":"The exchanges, in order.","items":{"$ref":"#/components/schemas/aegis.v1.Exchange"},"type":"array"},"length":{"description":"Output length.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},"psk":{"contentEncoding":"base64","description":"A pre-shared key of the combiner's length; none when empty.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ToolsCombineResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Combines shared secrets with an ETSI TS 103 744 combiner.","tags":["ToolsService"],"x-aegis-grpc":"/aegis.v1.ToolsService/Combine","x-aegis-role":"operator"}},"/v1/tools/decrypt":{"post":{"operationId":"ToolsService.Decrypt","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"algorithm":{"description":"An AEAD or a storage cipher.","type":"string"},"associated_data":{"contentEncoding":"base64","description":"Associated data, for an AEAD.","type":"string"},"data":{"contentEncoding":"base64","description":"The ciphertext.","type":"string"},"key":{"contentEncoding":"base64","description":"The key.","type":"string"},"nonce":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The nonce, for an AEAD."},"tweak":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The tweak, for a storage cipher (XTS)."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ToolsDecryptResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Decrypts; an AEAD returns nothing unless every byte authenticates.","tags":["ToolsService"],"x-aegis-grpc":"/aegis.v1.ToolsService/Decrypt","x-aegis-role":"operator"}},"/v1/tools/derive":{"post":{"operationId":"ToolsService.Derive","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"algorithm":{"description":"The KDF.","type":"string"},"associated_data":{"contentEncoding":"base64","description":"Argon2id's associated data, at most 32 bytes.","type":"string"},"cost":{"anyOf":[{"$ref":"#/components/schemas/aegis.v1.PasswordCost"},{"type":"null"}],"description":"The cost of a password-based function."},"info":{"contentEncoding":"base64","description":"The info (for SP 800-108, the context).","type":"string"},"legacy":{"description":"Reproduce a hash made elsewhere at a cost below the floor for new derivations.","type":"boolean"},"length":{"description":"1 to 1,024 bytes.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},"pepper":{"contentEncoding":"base64","description":"Argon2id's secret input (a pepper).","type":"string"},"salt":{"contentEncoding":"base64","description":"The salt (for SP 800-108, the label).","type":"string"},"secret":{"contentEncoding":"base64","description":"The secret, or for a password-based function the password.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ToolsDeriveResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Key derivation: HKDF, SP 800-108, Argon2id, scrypt.","tags":["ToolsService"],"x-aegis-grpc":"/aegis.v1.ToolsService/Derive","x-aegis-role":"operator"}},"/v1/tools/encapsulate":{"post":{"operationId":"ToolsService.Encapsulate","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"algorithm":{"description":"The KEM.","type":"string"},"public_key":{"contentEncoding":"base64","description":"The encapsulation key.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ToolsEncapsulateResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Encapsulates to a public key.","tags":["ToolsService"],"x-aegis-grpc":"/aegis.v1.ToolsService/Encapsulate","x-aegis-role":"operator"}},"/v1/tools/encrypt":{"post":{"operationId":"ToolsService.Encrypt","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"algorithm":{"description":"An AEAD or a storage cipher.","type":"string"},"associated_data":{"contentEncoding":"base64","description":"Associated data, for an AEAD.","type":"string"},"data":{"contentEncoding":"base64","description":"The plaintext.","type":"string"},"key":{"contentEncoding":"base64","description":"The key.","type":"string"},"tweak":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The tweak, for a storage cipher (XTS)."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ToolsEncryptResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"An AEAD under a fresh nonce, or a storage cipher under the tweak given.","tags":["ToolsService"],"x-aegis-grpc":"/aegis.v1.ToolsService/Encrypt","x-aegis-role":"operator"}},"/v1/tools/hash":{"post":{"operationId":"ToolsService.Hash","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"algorithm":{"description":"The hash or extendable-output function.","type":"string"},"customisation":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"Customisation string (cSHAKE)."},"data":{"contentEncoding":"base64","description":"The data.","type":"string"},"length":{"anyOf":[{"format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},{"type":"null"}],"description":"Output length of an extendable-output function (32 by default, at most 1,024)."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ToolsHashResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"A digest, or extendable output.","tags":["ToolsService"],"x-aegis-grpc":"/aegis.v1.ToolsService/Hash","x-aegis-role":"operator"}},"/v1/tools/hpke/export":{"post":{"operationId":"ToolsService.HpkeExport","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"aead":{"description":"The AEAD, or `export-only`.","type":"string"},"enc":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"As the recipient: the encapsulated key."},"exporter_context":{"contentEncoding":"base64","description":"The exporter context.","type":"string"},"info":{"contentEncoding":"base64","description":"HPKE info.","type":"string"},"kdf":{"description":"The KDF.","type":"string"},"kem":{"description":"The KEM.","type":"string"},"length":{"description":"1 to 1,024 bytes.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},"psk":{"contentEncoding":"base64","description":"A pre-shared key.","type":"string"},"psk_id":{"contentEncoding":"base64","description":"Its identifier.","type":"string"},"public_key":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"As the sender: the recipient's public key."},"secret_key":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"As the recipient: the private key."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ToolsHpkeExportResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"HPKE secret export, as the sender or the recipient.","tags":["ToolsService"],"x-aegis-grpc":"/aegis.v1.ToolsService/HpkeExport","x-aegis-role":"operator"}},"/v1/tools/hpke/open":{"post":{"operationId":"ToolsService.HpkeOpen","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"aad":{"contentEncoding":"base64","description":"HPKE aad.","type":"string"},"aead":{"description":"The AEAD.","type":"string"},"ciphertext":{"contentEncoding":"base64","description":"The ciphertext.","type":"string"},"enc":{"contentEncoding":"base64","description":"The encapsulated key.","type":"string"},"info":{"contentEncoding":"base64","description":"HPKE info.","type":"string"},"kdf":{"description":"The KDF.","type":"string"},"kem":{"description":"The KEM.","type":"string"},"psk":{"contentEncoding":"base64","description":"A pre-shared key.","type":"string"},"psk_id":{"contentEncoding":"base64","description":"Its identifier.","type":"string"},"secret_key":{"contentEncoding":"base64","description":"The recipient's private key.","type":"string"},"sender_public_key":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The sender's public key (mode auth)."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ToolsHpkeOpenResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Single-shot HPKE decryption.","tags":["ToolsService"],"x-aegis-grpc":"/aegis.v1.ToolsService/HpkeOpen","x-aegis-role":"operator"}},"/v1/tools/hpke/seal":{"post":{"operationId":"ToolsService.HpkeSeal","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"aad":{"contentEncoding":"base64","description":"HPKE aad.","type":"string"},"aead":{"description":"The AEAD.","type":"string"},"info":{"contentEncoding":"base64","description":"HPKE info.","type":"string"},"kdf":{"description":"The KDF.","type":"string"},"kem":{"description":"The KEM.","type":"string"},"plaintext":{"contentEncoding":"base64","description":"The plaintext.","type":"string"},"psk":{"contentEncoding":"base64","description":"A pre-shared key (mode psk), at least 32 bytes.","type":"string"},"psk_id":{"contentEncoding":"base64","description":"Its identifier.","type":"string"},"public_key":{"contentEncoding":"base64","description":"The recipient's public key.","type":"string"},"sender_key":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"The sender's private key (mode auth)."}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ToolsHpkeSealResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Single-shot HPKE encryption (RFC 9180).","tags":["ToolsService"],"x-aegis-grpc":"/aegis.v1.ToolsService/HpkeSeal","x-aegis-role":"operator"}},"/v1/tools/mac":{"post":{"operationId":"ToolsService.Mac","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"algorithm":{"description":"The MAC.","type":"string"},"customisation":{"anyOf":[{"contentEncoding":"base64","type":"string"},{"type":"null"}],"description":"Customisation string (KMAC)."},"key":{"contentEncoding":"base64","description":"The key.","type":"string"},"length":{"anyOf":[{"format":"int64","maximum":4294967295,"minimum":0,"type":"integer"},{"type":"null"}],"description":"Tag length (KMAC, which binds it into the tag)."},"message":{"contentEncoding":"base64","description":"The message.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ToolsMacResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"A MAC under the key given.","tags":["ToolsService"],"x-aegis-grpc":"/aegis.v1.ToolsService/Mac","x-aegis-role":"operator"}},"/v1/tools/random":{"post":{"operationId":"ToolsService.Random","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"length":{"description":"1 to 1,024.","format":"int64","maximum":4294967295,"minimum":0,"type":"integer"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ToolsRandomResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Random bytes from the engine's health-tested source.","tags":["ToolsService"],"x-aegis-grpc":"/aegis.v1.ToolsService/Random","x-aegis-role":"operator"}},"/v1/tools/transport":{"post":{"operationId":"ToolsService.Transport","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"algorithm":{"description":"The key-transport algorithm.","type":"string"},"label":{"contentEncoding":"base64","description":"The OAEP label.","type":"string"},"plaintext":{"contentEncoding":"base64","description":"The secret.","type":"string"},"public_key":{"contentEncoding":"base64","description":"The recipient's public key.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ToolsTransportResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Encrypts a short secret to a key-transport public key (RSA-OAEP).","tags":["ToolsService"],"x-aegis-grpc":"/aegis.v1.ToolsService/Transport","x-aegis-role":"operator"}},"/v1/tools/unwrap":{"post":{"operationId":"ToolsService.Unwrap","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"algorithm":{"description":"AES-KW or AES-KWP.","type":"string"},"kek":{"contentEncoding":"base64","description":"The key-encryption key.","type":"string"},"wrapped":{"contentEncoding":"base64","description":"The wrapped key.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ToolsUnwrapResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Unwraps a key; nothing unless its integrity check passes.","tags":["ToolsService"],"x-aegis-grpc":"/aegis.v1.ToolsService/Unwrap","x-aegis-role":"operator"}},"/v1/tools/verify":{"post":{"operationId":"ToolsService.Verify","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"algorithm":{"description":"The signature algorithm.","type":"string"},"context":{"contentEncoding":"base64","description":"The context string (FIPS 204, 205), at most 255 bytes.","type":"string"},"message":{"contentEncoding":"base64","description":"The message.","type":"string"},"prehash":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The pre-hash function, for HashML-DSA and HashSLH-DSA."},"public_key":{"contentEncoding":"base64","description":"The verification key.","type":"string"},"signature":{"contentEncoding":"base64","description":"The signature.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ToolsVerifyResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Verifies a signature under a public key the caller supplies.","tags":["ToolsService"],"x-aegis-grpc":"/aegis.v1.ToolsService/Verify","x-aegis-role":"operator"}},"/v1/tools/wrap":{"post":{"operationId":"ToolsService.Wrap","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"algorithm":{"description":"AES-KW or AES-KWP.","type":"string"},"kek":{"contentEncoding":"base64","description":"The key-encryption key.","type":"string"},"key":{"contentEncoding":"base64","description":"The key to wrap.","type":"string"}},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aegis.v1.ToolsWrapResponse"}}},"description":"Success"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request is malformed, or an input is invalid"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No token, or an unknown token"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The role is too low, or a gate refused"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No such key, algorithm or route"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"A conflict with the current state"},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than the limit"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An internal failure; the daemon's log has the detail"},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The vault is sealed, or the daemon is busy"}},"security":[{"bearer":[]}],"summary":"Wraps a key under a key-encryption key (AES-KW, AES-KWP).","tags":["ToolsService"],"x-aegis-grpc":"/aegis.v1.ToolsService/Wrap","x-aegis-role":"operator"}}}}
