Vapi · Schema

PublicKeyEncryptionPlan

AIVoiceAgentsRealtimeCPaaS

Properties

Name Type Description
type string The type of encryption plan.
algorithm string The encryption algorithm to use.
publicKey object The public key configuration.
View JSON Schema on GitHub

JSON Schema

vapi-publickeyencryptionplan-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/PublicKeyEncryptionPlan",
  "title": "PublicKeyEncryptionPlan",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "The type of encryption plan.",
      "enum": [
        "public-key"
      ]
    },
    "algorithm": {
      "type": "string",
      "description": "The encryption algorithm to use.",
      "enum": [
        "RSA-OAEP-256"
      ]
    },
    "publicKey": {
      "description": "The public key configuration.",
      "oneOf": [
        {
          "$ref": "#/components/schemas/SpkiPemPublicKeyConfig"
        }
      ],
      "discriminator": {
        "propertyName": "format",
        "mapping": {
          "spki-pem": "#/components/schemas/SpkiPemPublicKeyConfig"
        }
      },
      "allOf": [
        {
          "$ref": "#/components/schemas/SpkiPemPublicKeyConfig"
        }
      ]
    }
  },
  "required": [
    "type",
    "algorithm",
    "publicKey"
  ]
}