{
  "protocol": "gpgUi",
  "imports": [
    {
      "path": "common.avdl",
      "type": "idl"
    },
    {
      "path": "gpg_common.avdl",
      "type": "idl"
    }
  ],
  "types": [
    {
      "type": "record",
      "name": "SelectKeyRes",
      "fields": [
        {
          "type": "string",
          "name": "keyID"
        },
        {
          "type": "boolean",
          "name": "doSecretPush"
        }
      ]
    }
  ],
  "messages": {
    "wantToAddGPGKey": {
      "request": [
        {
          "name": "sessionID",
          "type": "int"
        }
      ],
      "response": "boolean"
    },
    "confirmDuplicateKeyChosen": {
      "request": [
        {
          "name": "sessionID",
          "type": "int"
        }
      ],
      "response": "boolean"
    },
    "selectKeyAndPushOption": {
      "request": [
        {
          "name": "sessionID",
          "type": "int"
        },
        {
          "name": "keys",
          "type": {
            "type": "array",
            "items": "GPGKey"
          }
        }
      ],
      "response": "SelectKeyRes"
    },
    "selectKey": {
      "request": [
        {
          "name": "sessionID",
          "type": "int"
        },
        {
          "name": "keys",
          "type": {
            "type": "array",
            "items": "GPGKey"
          }
        }
      ],
      "response": "string"
    },
    "sign": {
      "request": [
        {
          "name": "msg",
          "type": "bytes"
        },
        {
          "name": "fingerprint",
          "type": "bytes"
        }
      ],
      "response": "string"
    },
    "getTTY": {
      "request": [],
      "response": "string"
    }
  },
  "namespace": "keybase.1"
}