{
  "components": {
    "schemas": {
      "JsonRpcAccountConnectionsCompleteClassicalError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition",
                              "GatewayError.ResourceExhausted",
                              "SyncError.ServiceResourceConflict",
                              "SyncError.AuthExpired",
                              "SyncError.CredentialsRejected",
                              "SyncError.AuthenticationUnsupported",
                              "SyncError.CredentialUnreadable",
                              "SyncError.ProviderUnavailable",
                              "SyncError.ProviderTimeout",
                              "SyncError.NotSupported"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcAccountConnectionsCompleteClassicalRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AccountConnections/complete_classical"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_CompleteClassicalServiceConnectionRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition",
          "GatewayError.ResourceExhausted",
          "SyncError.ServiceResourceConflict",
          "SyncError.AuthExpired",
          "SyncError.CredentialsRejected",
          "SyncError.AuthenticationUnsupported",
          "SyncError.CredentialUnreadable",
          "SyncError.ProviderUnavailable",
          "SyncError.ProviderTimeout",
          "SyncError.NotSupported"
        ]
      },
      "JsonRpcAccountConnectionsCompleteClassicalResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_AccountConnection"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcAccountConnectionsCompleteClassicalError"
          }
        ]
      },
      "JsonRpcAccountConnectionsGetError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcAccountConnectionsGetRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AccountConnections/get"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_GetServiceConnectionRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition"
        ]
      },
      "JsonRpcAccountConnectionsGetResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_AccountConnection"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcAccountConnectionsGetError"
          }
        ]
      },
      "JsonRpcAccountConnectionsPrepareError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition",
                              "GatewayError.AlreadyExists",
                              "GatewayError.ResourceExhausted"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcAccountConnectionsPrepareRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AccountConnections/prepare"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PrepareServiceConnectionRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition",
          "GatewayError.AlreadyExists",
          "GatewayError.ResourceExhausted"
        ]
      },
      "JsonRpcAccountConnectionsPrepareResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_PrepareServiceConnectionResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcAccountConnectionsPrepareError"
          }
        ]
      },
      "JsonRpcAccountConnectionsStartError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition",
                              "GatewayError.ResourceExhausted",
                              "SyncError.ProviderUnavailable",
                              "SyncError.ProviderTimeout",
                              "SyncError.NotSupported"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcAccountConnectionsStartRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AccountConnections/start"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_StartServiceConnectionRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition",
          "GatewayError.ResourceExhausted",
          "SyncError.ProviderUnavailable",
          "SyncError.ProviderTimeout",
          "SyncError.NotSupported"
        ]
      },
      "JsonRpcAccountConnectionsStartResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_StartServiceConnectionResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcAccountConnectionsStartError"
          }
        ]
      },
      "JsonRpcAccountSynchronizationsGetCoverageRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AccountSynchronizations/get_coverage"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_GetSynchronizationCoverageRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": []
      },
      "JsonRpcAccountSynchronizationsGetCoverageResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_GetSynchronizationCoverageResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAccountSynchronizationsGetRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AccountSynchronizations/get"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_GetSynchronizationRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": []
      },
      "JsonRpcAccountSynchronizationsGetResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Synchronization"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAccountSynchronizationsListRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AccountSynchronizations/list"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListSynchronizationsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": []
      },
      "JsonRpcAccountSynchronizationsListResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListSynchronizationsResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAccountSynchronizationsStartRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AccountSynchronizations/start"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_StartSynchronizationRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": []
      },
      "JsonRpcAccountSynchronizationsStartResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAccountsDisconnectRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Accounts/disconnect"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DisconnectAccountRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": []
      },
      "JsonRpcAccountsDisconnectResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAccountsGetError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition",
                              "SyncError.DependencyUnavailable"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcAccountsGetPresentationError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcAccountsGetPresentationRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Accounts/get_presentation"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_GetAccountPresentationRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition"
        ]
      },
      "JsonRpcAccountsGetPresentationResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_GetAccountPresentationResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcAccountsGetPresentationError"
          }
        ]
      },
      "JsonRpcAccountsGetRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Accounts/get"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_GetAccountRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition",
          "SyncError.DependencyUnavailable"
        ]
      },
      "JsonRpcAccountsGetResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Account"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcAccountsGetError"
          }
        ]
      },
      "JsonRpcAccountsListError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition",
                              "SyncError.DependencyUnavailable"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcAccountsListRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Accounts/list"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListAccountsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition",
          "SyncError.DependencyUnavailable"
        ]
      },
      "JsonRpcAccountsListResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListAccountsResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcAccountsListError"
          }
        ]
      },
      "JsonRpcAccountsListTimelineRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Accounts/list_timeline"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListAccountTimelineRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": []
      },
      "JsonRpcAccountsListTimelineResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListAccountTimelineResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAccountsPurgeRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Accounts/purge"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PurgeAccountRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": []
      },
      "JsonRpcAccountsRemoveProviderAgentOptinRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Accounts/remove_provider_agent_optin"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_RemoveProviderAgentOptinRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition",
          "SyncError.AccountNotFound",
          "SyncError.ResourceExhausted",
          "SyncError.DependencyUnavailable"
        ]
      },
      "JsonRpcAccountsPurgeResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_PurgeAccountResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAccountsRemoveProviderAgentOptinResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_RemoveProviderAgentOptinResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAccountsUpdateError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition",
                              "GatewayError.ConcurrentModification",
                              "GatewayError.ResourceExhausted"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcAccountsUpdateRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Accounts/update"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_UpdateAccountRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition",
          "GatewayError.Conflict",
          "GatewayError.ResourceExhausted"
        ]
      },
      "JsonRpcAccountsUpdateResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_UpdateAccountResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcAccountsUpdateError"
          }
        ]
      },
      "JsonRpcAdminAccountListRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AdminAccount/list"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListAdminAccountsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcAdminAccountListResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListAdminAccountsResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAdminAppListRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AdminApp/list"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListAdminAppsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcAdminAppListResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListAdminAppsResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAdminAppPairInboxClientError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition",
                              "GatewayError.AlreadyExists"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcAdminAppPairInboxClientRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AdminApp/pair_inbox_client"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PairInboxClientRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition",
          "GatewayError.AlreadyExists"
        ]
      },
      "JsonRpcAdminAppPairInboxClientResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_PairInboxClientResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcAdminAppPairInboxClientError"
          }
        ]
      },
      "JsonRpcAdminAppSetDelegatedLoginRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AdminApp/set_delegated_login"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_SetDelegatedLoginRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcAdminProviderIntegrationListRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AdminProviderIntegration/list"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListProviderIntegrationsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcAdminProviderIntegrationRecheckRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AdminProviderIntegration/recheck"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_RecheckProviderIntegrationsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcAdminAppSetDelegatedLoginResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_SetDelegatedLoginResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAdminProviderIntegrationListResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListProviderIntegrationsResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAdminProviderIntegrationRecheckResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListProviderIntegrationsResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAdminUserListRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AdminUser/list"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListAdminUsersRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcAdminUserListResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListAdminUsersResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAdminUserWhoamiRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AdminUser/whoami"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AdminWhoamiRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcAdminUserWhoamiResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_AdminUser"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAppCreateRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "App/create"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_CreateAppRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcAppCreateResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_CreateAppResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAppDelegatedLoginCreateLinkTicketRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AppDelegatedLogin/create_link_ticket"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_CreateDelegatedLinkTicketRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "client",
        "x-errors": []
      },
      "JsonRpcAppDelegatedLoginCreateLinkTicketResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_CreateDelegatedLinkTicketResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAppDelegatedLoginCreateTicketRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AppDelegatedLogin/create_ticket"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_CreateDelegatedLoginTicketRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "client",
        "x-errors": []
      },
      "JsonRpcAppDelegatedLoginCreateTicketResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_CreateDelegatedLoginTicketResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAppDelegatedLoginProvisionRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AppDelegatedLogin/provision"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ProvisionDelegatedUserRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "client",
        "x-errors": []
      },
      "JsonRpcAppDelegatedLoginProvisionResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ProvisionDelegatedUserResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAppDeleteRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "App/delete"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DeleteAppRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcAppDeleteResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_DeleteAppResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAppGetRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "App/get"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_GetAppRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcAppGetResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_OidcApp"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAppGrantApproveError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.NotFound",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition",
                              "GatewayError.AlreadyExists"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcAppGrantApproveRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AppGrant/approve"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ApproveConsentRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.NotFound",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition",
          "GatewayError.AlreadyExists"
        ]
      },
      "JsonRpcAppGrantApproveResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ApproveConsentResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcAppGrantApproveError"
          }
        ]
      },
      "JsonRpcAppGrantDenyRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AppGrant/deny"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DenyConsentRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcAppGrantDenyResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_DenyConsentResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAppGrantGetRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AppGrant/get"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_GetConsentRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcAppGrantGetResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ConsentRequest"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAppListGrantsRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "App/list_grants"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListAppGrantsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcAppListGrantsResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListAppGrantsResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAppListRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "App/list"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListAppsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcAppListResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListAppsResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAppRotateSecretRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "App/rotate_secret"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_RotateSecretRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcAppRotateSecretResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_RotateSecretResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAppUpdateRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "App/update"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_UpdateAppRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcAppUpdateResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_OidcApp"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAuthListLoginMethodsForUsernameRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Auth/list_login_methods_for_username"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListLoginMethodsForUsernameRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "public",
        "x-errors": []
      },
      "JsonRpcAuthListLoginMethodsForUsernameResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListLoginMethodsForUsernameResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAuthListSessionsRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Auth/list_sessions"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListSessionsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcAuthListSessionsResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListSessionsResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAuthLoginRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Auth/login"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_LoginRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "public",
        "x-errors": []
      },
      "JsonRpcAuthLoginResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_LoginResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAuthLogoutRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Auth/logout"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_LogoutRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcAuthLogoutResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_LogoutResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAuthRevokeSessionRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Auth/revoke_session"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_RevokeSessionRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcAuthRevokeSessionResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_RevokeSessionResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAuthWhoamiRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Auth/whoami"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_WhoamiRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcAuthWhoamiResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_WhoamiResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcDraftsDeleteRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Drafts/delete"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DeleteDraftRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcDraftsDeleteResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcDraftsGetRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Drafts/get"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_GetDraftRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcDraftsGetResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Draft"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcDraftsListRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Drafts/list"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListDraftsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcDraftsListResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListDraftsResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcDraftsPutRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Drafts/put"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PutDraftRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcDraftsPutResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {},
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcEventConsumerConfigCreateRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "EventConsumerConfig/create"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_CreateEventConsumerRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": []
      },
      "JsonRpcEventConsumerConfigCreateResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_CreateEventConsumerResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcEventConsumerConfigDeleteRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "EventConsumerConfig/delete"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DeleteEventConsumerRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": []
      },
      "JsonRpcEventConsumerConfigDeleteResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_DeleteEventConsumerResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcEventConsumerConfigGetRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "EventConsumerConfig/get"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_GetEventConsumerRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": []
      },
      "JsonRpcEventConsumerConfigGetResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_EventConsumer"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcEventConsumerConfigListRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "EventConsumerConfig/list"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListEventConsumersRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": []
      },
      "JsonRpcEventConsumerConfigListResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListEventConsumersResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcEventConsumerConfigPauseRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "EventConsumerConfig/pause"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PauseEventConsumerRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": []
      },
      "JsonRpcEventConsumerConfigPauseResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_EventConsumer"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcEventConsumerConfigResumeRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "EventConsumerConfig/resume"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ResumeEventConsumerRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": []
      },
      "JsonRpcEventConsumerConfigResumeResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_EventConsumer"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcEventConsumerConfigUpdateRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "EventConsumerConfig/update"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_UpdateEventConsumerRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": []
      },
      "JsonRpcEventConsumerConfigUpdateResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_EventConsumer"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcEventsGetRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Events/get"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_GetEventRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcEventsGetResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Event"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcEventsListRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Events/list"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListEventsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcEventsListResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListEventsResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcFromAddressSuggestionsListProviderFromAddressSuggestionsRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "FromAddressSuggestions/list_provider_from_address_suggestions"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListProviderFromAddressSuggestionsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcFromAddressSuggestionsListProviderFromAddressSuggestionsResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListProviderFromAddressSuggestionsResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcGrantListRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Grant/list"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListGrantsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcGrantListResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListGrantsResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcGrantRevokeRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Grant/revoke"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_RevokeGrantRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcGrantRevokeResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_RevokeGrantResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcInboxMailboxConnectDescribeError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.FailedPrecondition"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcInboxMailboxConnectDescribeRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "InboxMailboxConnect/describe"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DescribeInboxMailboxConnectRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.FailedPrecondition"
        ]
      },
      "JsonRpcInboxMailboxConnectDescribeResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_DescribeInboxMailboxConnectResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcInboxMailboxConnectDescribeError"
          }
        ]
      },
      "JsonRpcInboxMailboxConnectStartError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition",
                              "GatewayError.ResourceExhausted"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcInboxMailboxConnectStartRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "InboxMailboxConnect/start"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_StartInboxMailboxConnectRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition",
          "GatewayError.ResourceExhausted"
        ]
      },
      "JsonRpcInboxMailboxConnectStartResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_StartInboxMailboxConnectResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcInboxMailboxConnectStartError"
          }
        ]
      },
      "JsonRpcMailDiscoveryDiscoverRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "MailDiscovery/discover"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DiscoverMailRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcMailDiscoveryDiscoverResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_DiscoverMailResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcMailProviderListRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "MailProvider/list"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListMailProvidersRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": []
      },
      "JsonRpcMailProviderListResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListMailProvidersResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcMessageSubmissionsCancelRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "MessageSubmissions/cancel"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_CancelMessageSubmissionRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcMessageSubmissionsCancelResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_MessageSubmission"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcMessageSubmissionsCreateFromDraftRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "MessageSubmissions/create_from_draft"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_CreateDraftMessageSubmissionRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcMessageSubmissionsCreateFromDraftResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_MessageSubmission"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcMessageSubmissionsCreateRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "MessageSubmissions/create"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_CreateMessageSubmissionRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcMessageSubmissionsCreateResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_MessageSubmission"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcMessageSubmissionsGetRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "MessageSubmissions/get"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_GetMessageSubmissionRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcMessageSubmissionsGetResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_MessageSubmission"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcMessageSubmissionsListRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "MessageSubmissions/list"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListMessageSubmissionsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcMessageSubmissionsListResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListMessageSubmissionsResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcMessagesArchiveError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition",
                              "SyncError.AccountNotFound",
                              "SyncError.AuthExpired",
                              "SyncError.CredentialsRejected",
                              "SyncError.AuthenticationUnsupported",
                              "SyncError.CredentialUnreadable",
                              "SyncError.CredentialsNotFound",
                              "SyncError.ProviderUnavailable",
                              "SyncError.ProviderTimeout",
                              "SyncError.ProviderRateLimited",
                              "SyncError.StateMismatch",
                              "SyncError.NotSupported"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcMessagesArchiveRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Messages/archive"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MessageTargetRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition",
          "SyncError.AccountNotFound",
          "SyncError.AuthExpired",
          "SyncError.CredentialsRejected",
          "SyncError.AuthenticationUnsupported",
          "SyncError.CredentialUnreadable",
          "SyncError.CredentialsNotFound",
          "SyncError.ProviderUnavailable",
          "SyncError.ProviderTimeout",
          "SyncError.ProviderRateLimited",
          "SyncError.StateMismatch",
          "SyncError.NotSupported"
        ]
      },
      "JsonRpcMessagesArchiveResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcMessagesArchiveError"
          }
        ]
      },
      "JsonRpcMessagesDeleteError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition",
                              "SyncError.AccountNotFound",
                              "SyncError.AuthExpired",
                              "SyncError.CredentialsRejected",
                              "SyncError.AuthenticationUnsupported",
                              "SyncError.CredentialUnreadable",
                              "SyncError.CredentialsNotFound",
                              "SyncError.ProviderUnavailable",
                              "SyncError.ProviderTimeout",
                              "SyncError.ProviderRateLimited",
                              "SyncError.StateMismatch",
                              "SyncError.NotSupported"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcMessagesDeleteRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Messages/delete"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MessageTargetRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition",
          "SyncError.AccountNotFound",
          "SyncError.AuthExpired",
          "SyncError.CredentialsRejected",
          "SyncError.AuthenticationUnsupported",
          "SyncError.CredentialUnreadable",
          "SyncError.CredentialsNotFound",
          "SyncError.ProviderUnavailable",
          "SyncError.ProviderTimeout",
          "SyncError.ProviderRateLimited",
          "SyncError.StateMismatch",
          "SyncError.NotSupported"
        ]
      },
      "JsonRpcMessagesDeleteResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcMessagesDeleteError"
          }
        ]
      },
      "JsonRpcMessagesMarkSpamError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition",
                              "SyncError.AccountNotFound",
                              "SyncError.AuthExpired",
                              "SyncError.CredentialsRejected",
                              "SyncError.AuthenticationUnsupported",
                              "SyncError.CredentialUnreadable",
                              "SyncError.CredentialsNotFound",
                              "SyncError.ProviderUnavailable",
                              "SyncError.ProviderTimeout",
                              "SyncError.ProviderRateLimited",
                              "SyncError.StateMismatch",
                              "SyncError.NotSupported"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcMessagesMarkSpamRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Messages/mark_spam"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MessageTargetRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition",
          "SyncError.AccountNotFound",
          "SyncError.AuthExpired",
          "SyncError.CredentialsRejected",
          "SyncError.AuthenticationUnsupported",
          "SyncError.CredentialUnreadable",
          "SyncError.CredentialsNotFound",
          "SyncError.ProviderUnavailable",
          "SyncError.ProviderTimeout",
          "SyncError.ProviderRateLimited",
          "SyncError.StateMismatch",
          "SyncError.NotSupported"
        ]
      },
      "JsonRpcMessagesMarkSpamResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcMessagesMarkSpamError"
          }
        ]
      },
      "JsonRpcMessagesMoveError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition",
                              "SyncError.AccountNotFound",
                              "SyncError.AuthExpired",
                              "SyncError.CredentialsRejected",
                              "SyncError.AuthenticationUnsupported",
                              "SyncError.CredentialUnreadable",
                              "SyncError.CredentialsNotFound",
                              "SyncError.ProviderUnavailable",
                              "SyncError.ProviderTimeout",
                              "SyncError.ProviderRateLimited",
                              "SyncError.StateMismatch",
                              "SyncError.NotSupported"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcMessagesMoveRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Messages/move"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MoveMessageRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition",
          "SyncError.AccountNotFound",
          "SyncError.AuthExpired",
          "SyncError.CredentialsRejected",
          "SyncError.AuthenticationUnsupported",
          "SyncError.CredentialUnreadable",
          "SyncError.CredentialsNotFound",
          "SyncError.ProviderUnavailable",
          "SyncError.ProviderTimeout",
          "SyncError.ProviderRateLimited",
          "SyncError.StateMismatch",
          "SyncError.NotSupported"
        ]
      },
      "JsonRpcMessagesMoveResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcMessagesMoveError"
          }
        ]
      },
      "JsonRpcMessagesPatchLabelsError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition",
                              "SyncError.AccountNotFound",
                              "SyncError.AuthExpired",
                              "SyncError.CredentialsRejected",
                              "SyncError.AuthenticationUnsupported",
                              "SyncError.CredentialUnreadable",
                              "SyncError.CredentialsNotFound",
                              "SyncError.ProviderUnavailable",
                              "SyncError.ProviderTimeout",
                              "SyncError.ProviderRateLimited",
                              "SyncError.StateMismatch",
                              "SyncError.NotSupported"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcMessagesPatchLabelsRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Messages/patch_labels"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PatchMessageLabelsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition",
          "SyncError.AccountNotFound",
          "SyncError.AuthExpired",
          "SyncError.CredentialsRejected",
          "SyncError.AuthenticationUnsupported",
          "SyncError.CredentialUnreadable",
          "SyncError.CredentialsNotFound",
          "SyncError.ProviderUnavailable",
          "SyncError.ProviderTimeout",
          "SyncError.ProviderRateLimited",
          "SyncError.StateMismatch",
          "SyncError.NotSupported"
        ]
      },
      "JsonRpcMessagesPatchLabelsResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcMessagesPatchLabelsError"
          }
        ]
      },
      "JsonRpcMessagesRestoreError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition",
                              "SyncError.AccountNotFound",
                              "SyncError.AuthExpired",
                              "SyncError.CredentialsRejected",
                              "SyncError.AuthenticationUnsupported",
                              "SyncError.CredentialUnreadable",
                              "SyncError.CredentialsNotFound",
                              "SyncError.ProviderUnavailable",
                              "SyncError.ProviderTimeout",
                              "SyncError.ProviderRateLimited",
                              "SyncError.StateMismatch",
                              "SyncError.NotSupported"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcMessagesRestoreRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Messages/restore"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MessageTargetRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition",
          "SyncError.AccountNotFound",
          "SyncError.AuthExpired",
          "SyncError.CredentialsRejected",
          "SyncError.AuthenticationUnsupported",
          "SyncError.CredentialUnreadable",
          "SyncError.CredentialsNotFound",
          "SyncError.ProviderUnavailable",
          "SyncError.ProviderTimeout",
          "SyncError.ProviderRateLimited",
          "SyncError.StateMismatch",
          "SyncError.NotSupported"
        ]
      },
      "JsonRpcMessagesRestoreResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcMessagesRestoreError"
          }
        ]
      },
      "JsonRpcMessagesSetFlagsError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition",
                              "SyncError.AccountNotFound",
                              "SyncError.AuthExpired",
                              "SyncError.CredentialsRejected",
                              "SyncError.AuthenticationUnsupported",
                              "SyncError.CredentialUnreadable",
                              "SyncError.CredentialsNotFound",
                              "SyncError.ProviderUnavailable",
                              "SyncError.ProviderTimeout",
                              "SyncError.ProviderRateLimited",
                              "SyncError.StateMismatch",
                              "SyncError.NotSupported"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcMessagesSetFlagsRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Messages/set_flags"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_SetMessageFlagsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition",
          "SyncError.AccountNotFound",
          "SyncError.AuthExpired",
          "SyncError.CredentialsRejected",
          "SyncError.AuthenticationUnsupported",
          "SyncError.CredentialUnreadable",
          "SyncError.CredentialsNotFound",
          "SyncError.ProviderUnavailable",
          "SyncError.ProviderTimeout",
          "SyncError.ProviderRateLimited",
          "SyncError.StateMismatch",
          "SyncError.NotSupported"
        ]
      },
      "JsonRpcMessagesSetFlagsResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcMessagesSetFlagsError"
          }
        ]
      },
      "JsonRpcMessagesTrashError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition",
                              "SyncError.AccountNotFound",
                              "SyncError.AuthExpired",
                              "SyncError.CredentialsRejected",
                              "SyncError.AuthenticationUnsupported",
                              "SyncError.CredentialUnreadable",
                              "SyncError.CredentialsNotFound",
                              "SyncError.ProviderUnavailable",
                              "SyncError.ProviderTimeout",
                              "SyncError.ProviderRateLimited",
                              "SyncError.StateMismatch",
                              "SyncError.NotSupported"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcMessagesTrashRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Messages/trash"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MessageTargetRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition",
          "SyncError.AccountNotFound",
          "SyncError.AuthExpired",
          "SyncError.CredentialsRejected",
          "SyncError.AuthenticationUnsupported",
          "SyncError.CredentialUnreadable",
          "SyncError.CredentialsNotFound",
          "SyncError.ProviderUnavailable",
          "SyncError.ProviderTimeout",
          "SyncError.ProviderRateLimited",
          "SyncError.StateMismatch",
          "SyncError.NotSupported"
        ]
      },
      "JsonRpcMessagesTrashResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcMessagesTrashError"
          }
        ]
      },
      "JsonRpcMessagesUnarchiveError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition",
                              "SyncError.AccountNotFound",
                              "SyncError.AuthExpired",
                              "SyncError.CredentialsRejected",
                              "SyncError.AuthenticationUnsupported",
                              "SyncError.CredentialUnreadable",
                              "SyncError.CredentialsNotFound",
                              "SyncError.ProviderUnavailable",
                              "SyncError.ProviderTimeout",
                              "SyncError.ProviderRateLimited",
                              "SyncError.StateMismatch",
                              "SyncError.NotSupported"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcMessagesUnarchiveRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Messages/unarchive"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MessageTargetRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition",
          "SyncError.AccountNotFound",
          "SyncError.AuthExpired",
          "SyncError.CredentialsRejected",
          "SyncError.AuthenticationUnsupported",
          "SyncError.CredentialUnreadable",
          "SyncError.CredentialsNotFound",
          "SyncError.ProviderUnavailable",
          "SyncError.ProviderTimeout",
          "SyncError.ProviderRateLimited",
          "SyncError.StateMismatch",
          "SyncError.NotSupported"
        ]
      },
      "JsonRpcMessagesUnarchiveResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcMessagesUnarchiveError"
          }
        ]
      },
      "JsonRpcMessagesUnmarkSpamError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition",
                              "SyncError.AccountNotFound",
                              "SyncError.AuthExpired",
                              "SyncError.CredentialsRejected",
                              "SyncError.AuthenticationUnsupported",
                              "SyncError.CredentialUnreadable",
                              "SyncError.CredentialsNotFound",
                              "SyncError.ProviderUnavailable",
                              "SyncError.ProviderTimeout",
                              "SyncError.ProviderRateLimited",
                              "SyncError.StateMismatch",
                              "SyncError.NotSupported"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcMessagesUnmarkSpamRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Messages/unmark_spam"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MessageTargetRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition",
          "SyncError.AccountNotFound",
          "SyncError.AuthExpired",
          "SyncError.CredentialsRejected",
          "SyncError.AuthenticationUnsupported",
          "SyncError.CredentialUnreadable",
          "SyncError.CredentialsNotFound",
          "SyncError.ProviderUnavailable",
          "SyncError.ProviderTimeout",
          "SyncError.ProviderRateLimited",
          "SyncError.StateMismatch",
          "SyncError.NotSupported"
        ]
      },
      "JsonRpcMessagesUnmarkSpamResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcMessagesUnmarkSpamError"
          }
        ]
      },
      "JsonRpcOperationsCancelRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Operations/cancel"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_CancelOperationRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcOperationsCancelResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcOperationsGetRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Operations/get"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_GetOperationRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcOperationsGetResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcOperationsListRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Operations/list"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListOperationsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcOperationsListResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListOperationsResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcServiceBindingChangeRouteError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcServiceBindingChangeRouteRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "ServiceBinding/change_route"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ChangeServiceBindingRouteRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition"
        ]
      },
      "JsonRpcServiceBindingChangeRouteResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ServiceBindingRoute"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcServiceBindingChangeRouteError"
          }
        ]
      },
      "JsonRpcServiceBindingGetRouteError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.InvalidArgument"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcServiceBindingGetRouteRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "ServiceBinding/get_route"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_GetServiceBindingRouteRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.InvalidArgument"
        ]
      },
      "JsonRpcServiceBindingGetRouteResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ServiceBindingRoute"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcServiceBindingGetRouteError"
          }
        ]
      },
      "JsonRpcTunnelApproveManifestError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcTunnelApproveManifestRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Tunnel/approve_manifest"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ApproveTunnelManifestRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition"
        ]
      },
      "JsonRpcTunnelApproveManifestResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Tunnel"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcTunnelApproveManifestError"
          }
        ]
      },
      "JsonRpcTunnelRejectManifestError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcTunnelRejectManifestRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Tunnel/reject_manifest"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_RejectTunnelManifestRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition"
        ]
      },
      "JsonRpcTunnelRejectManifestResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_EmptyTunnelResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcTunnelRejectManifestError"
          }
        ]
      },
      "JsonRpcTunnelGetSetupInfoError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcTunnelGetSetupInfoRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Tunnel/get_setup_info"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_GetTunnelSetupInfoRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": [
          "GatewayError.Unauthenticated"
        ]
      },
      "JsonRpcTunnelGetSetupInfoResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_GetTunnelSetupInfoResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcTunnelGetSetupInfoError"
          }
        ]
      },
      "JsonRpcTunnelCreateError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.InvalidArgument",
                              "GatewayError.AlreadyExists"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcTunnelCreateRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Tunnel/create"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_CreateTunnelRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.InvalidArgument",
          "GatewayError.AlreadyExists"
        ]
      },
      "JsonRpcTunnelCreateResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Tunnel"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcTunnelCreateError"
          }
        ]
      },
      "JsonRpcTunnelDeleteError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.FailedPrecondition",
                              "GatewayError.InvalidArgument"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcTunnelDeleteRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Tunnel/delete"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DeleteTunnelRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.FailedPrecondition",
          "GatewayError.InvalidArgument"
        ]
      },
      "JsonRpcTunnelDeleteResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_EmptyTunnelResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcTunnelDeleteError"
          }
        ]
      },
      "JsonRpcTunnelGetError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.InvalidArgument"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcTunnelGetRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Tunnel/get"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_GetTunnelRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.InvalidArgument"
        ]
      },
      "JsonRpcTunnelGetResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Tunnel"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcTunnelGetError"
          }
        ]
      },
      "JsonRpcTunnelGetStatusError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.InvalidArgument"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcTunnelGetStatusRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Tunnel/get_status"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_GetTunnelStatusRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.InvalidArgument"
        ]
      },
      "JsonRpcTunnelGetStatusResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_TunnelStatus"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcTunnelGetStatusError"
          }
        ]
      },
      "JsonRpcTunnelListDependentsError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.InvalidArgument"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcTunnelListDependentsRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Tunnel/list_dependents"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListTunnelDependentsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.InvalidArgument"
        ]
      },
      "JsonRpcTunnelListDependentsResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListTunnelDependentsResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcTunnelListDependentsError"
          }
        ]
      },
      "JsonRpcTunnelListError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcTunnelListRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Tunnel/list"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListTunnelsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied"
        ]
      },
      "JsonRpcTunnelListResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListTunnelsResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcTunnelListError"
          }
        ]
      },
      "JsonRpcTunnelRevokeError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.FailedPrecondition",
                              "GatewayError.InvalidArgument"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcTunnelRevokeRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Tunnel/revoke"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_RevokeTunnelRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.FailedPrecondition",
          "GatewayError.InvalidArgument"
        ]
      },
      "JsonRpcTunnelRevokeResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_EmptyTunnelResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcTunnelRevokeError"
          }
        ]
      },
      "JsonRpcTunnelRuntimeCredentialCreateApiKeyError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.FailedPrecondition",
                              "GatewayError.InvalidArgument"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcTunnelRuntimeCredentialCreateApiKeyRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "TunnelRuntimeCredential/create_api_key"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_CreateTunnelApiKeyRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.FailedPrecondition",
          "GatewayError.InvalidArgument"
        ]
      },
      "JsonRpcTunnelRuntimeCredentialCreateApiKeyResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_TunnelApiKeyResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialCreateApiKeyError"
          }
        ]
      },
      "JsonRpcTunnelRuntimeCredentialRevokeError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.FailedPrecondition",
                              "GatewayError.InvalidArgument"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcTunnelRuntimeCredentialRevokeRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "TunnelRuntimeCredential/revoke"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_RevokeTunnelApiKeyRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.FailedPrecondition",
          "GatewayError.InvalidArgument"
        ]
      },
      "JsonRpcTunnelRuntimeCredentialRevokeResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_EmptyTunnelResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialRevokeError"
          }
        ]
      },
      "JsonRpcTunnelRuntimeCredentialRotateError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.FailedPrecondition",
                              "GatewayError.InvalidArgument"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcTunnelRuntimeCredentialRotateRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "TunnelRuntimeCredential/rotate"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_RotateTunnelApiKeyRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.FailedPrecondition",
          "GatewayError.InvalidArgument"
        ]
      },
      "JsonRpcTunnelRuntimeCredentialRotateResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_TunnelApiKeyResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialRotateError"
          }
        ]
      },
      "JsonRpcTunnelServiceDeleteError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.FailedPrecondition",
                              "GatewayError.InvalidArgument"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcTunnelServiceDeleteRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "TunnelService/delete"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DeleteTunnelServiceRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.FailedPrecondition",
          "GatewayError.InvalidArgument"
        ]
      },
      "JsonRpcTunnelServiceDeleteResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_EmptyTunnelResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcTunnelServiceDeleteError"
          }
        ]
      },
      "JsonRpcTunnelServiceGetError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.InvalidArgument"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcTunnelServiceGetRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "TunnelService/get"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_GetTunnelServiceRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.InvalidArgument"
        ]
      },
      "JsonRpcTunnelServiceGetResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_TunnelServiceResource"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcTunnelServiceGetError"
          }
        ]
      },
      "JsonRpcTunnelServiceListError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.InvalidArgument"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcTunnelServiceListRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "TunnelService/list"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListTunnelServicesRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.InvalidArgument"
        ]
      },
      "JsonRpcTunnelServiceListResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListTunnelServicesResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcTunnelServiceListError"
          }
        ]
      },
      "JsonRpcTunnelServiceRevokeError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.FailedPrecondition",
                              "GatewayError.InvalidArgument"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcTunnelServiceRevokeRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "TunnelService/revoke"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_RevokeTunnelServiceRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.FailedPrecondition",
          "GatewayError.InvalidArgument"
        ]
      },
      "JsonRpcTunnelServiceRevokeResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_EmptyTunnelResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcTunnelServiceRevokeError"
          }
        ]
      },
      "JsonRpcTunnelUpdateError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.NotFound",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcTunnelUpdateRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Tunnel/update"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_UpdateTunnelRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.NotFound",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition"
        ]
      },
      "JsonRpcTunnelUpdateResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Tunnel"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcTunnelUpdateError"
          }
        ]
      },
      "JsonRpcUserAddLoginMethodRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "User/add_login_method"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AddLoginMethodRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcUserAddLoginMethodResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_AddLoginMethodResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcUserChangePasswordRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "User/change_password"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ChangePasswordRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcUserChangePasswordResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ChangePasswordResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcUserDeleteSelfRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "User/delete_self"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DeleteSelfRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcUserDeleteSelfResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_DeleteSelfResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcUserListLoginMethodsRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "User/list_login_methods"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListLoginMethodsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcUserListLoginMethodsResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListLoginMethodsResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcUserRegisterRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "User/register"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_RegisterRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "public",
        "x-errors": []
      },
      "JsonRpcUserRegisterResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_User"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcUserRemoveLoginMethodRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "User/remove_login_method"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_RemoveLoginMethodRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": []
      },
      "JsonRpcUserRemoveLoginMethodResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_RemoveLoginMethodResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "traummail_gateway_v1_Account": {
        "additionalProperties": false,
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "lifecycle": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountLifecycle",
            "x-traummail-catalog": "strict"
          },
          "owner_user_id": {
            "type": "string"
          },
          "presentation": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountPresentation"
          },
          "replication": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountReplication"
          },
          "service_bindings": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_ServiceBinding"
            },
            "type": "array"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "provider_agent_optin": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ProviderAgentOptin",
            "x-traummail-catalog": "strict"
          },
          "access": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountAccess"
          }
        },
        "required": [
          "id",
          "lifecycle",
          "access",
          "presentation"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ClassicalConnectionSettings": {
        "additionalProperties": false,
        "properties": {
          "host": {
            "type": "string"
          },
          "port": {
            "format": "int32",
            "type": "integer"
          },
          "security": {
            "$ref": "#/components/schemas/traummail_gateway_v1_TransportSecurity",
            "x-traummail-catalog": "strict"
          },
          "tunnel_service_id": {
            "type": "string"
          },
          "username": {
            "type": "string"
          }
        },
        "required": [
          "host",
          "port",
          "security",
          "username"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_GetAccountConnectionSettingsRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          }
        },
        "required": [
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_GetAccountConnectionSettingsResponse": {
        "additionalProperties": false,
        "properties": {
          "imap": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ClassicalConnectionSettings"
          },
          "smtp": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ClassicalConnectionSettings"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_GetTunnelSetupInfoRequest": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_GetTunnelSetupInfoResponse": {
        "additionalProperties": false,
        "properties": {
          "daemon_image": {
            "type": "string"
          },
          "desktop_download_url": {
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_InboxMailboxConnectAccount": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          }
        },
        "required": [
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_InboxMailboxConnectAddMailbox": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_InboxMailboxConnectIntent": {
        "additionalProperties": false,
        "oneOf": [
          {
            "not": {
              "anyOf": [
                {
                  "required": [
                    "allow_sending"
                  ]
                },
                {
                  "required": [
                    "reconnect"
                  ]
                }
              ]
            },
            "required": [
              "add_mailbox"
            ]
          },
          {
            "not": {
              "anyOf": [
                {
                  "required": [
                    "add_mailbox"
                  ]
                },
                {
                  "required": [
                    "reconnect"
                  ]
                }
              ]
            },
            "required": [
              "allow_sending"
            ]
          },
          {
            "not": {
              "anyOf": [
                {
                  "required": [
                    "add_mailbox"
                  ]
                },
                {
                  "required": [
                    "allow_sending"
                  ]
                }
              ]
            },
            "required": [
              "reconnect"
            ]
          }
        ],
        "properties": {
          "add_mailbox": {
            "$ref": "#/components/schemas/traummail_gateway_v1_InboxMailboxConnectAddMailbox"
          },
          "allow_sending": {
            "$ref": "#/components/schemas/traummail_gateway_v1_InboxMailboxConnectAccount"
          },
          "reconnect": {
            "$ref": "#/components/schemas/traummail_gateway_v1_InboxMailboxConnectAccount"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ProviderAgentOptin": {
        "type": "string",
        "enum": [
          "not_required",
          "active",
          "authorization_required",
          "reauthorization_required",
          "unavailable"
        ],
        "description": "Whether AI agents may act on an account's mail provider. Some providers (Gmail) require every agent call to use a separate OAuth client the owner authorizes once per mailbox; agent requests fail until the state is `active`."
      },
      "traummail_gateway_v1_AccountConnection": {
        "additionalProperties": false,
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "services": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_ServiceConnectionResult"
            },
            "type": "array"
          },
          "target": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PreparedServiceConnectionTarget"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_AccountDisposition": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "disposition": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountDisposition_Disposition",
            "x-traummail-catalog": "strict"
          }
        },
        "required": [
          "account_id",
          "disposition"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_AccountDisposition_Disposition": {
        "enum": [
          "DISPOSITION_UNSPECIFIED",
          "DISPOSITION_PURGE",
          "DISPOSITION_HANDED_OFF"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_AccountLifecycle": {
        "enum": [
          "ACCOUNT_LIFECYCLE_UNSPECIFIED",
          "ACCOUNT_LIFECYCLE_ACTIVE",
          "ACCOUNT_LIFECYCLE_DISCONNECTING",
          "ACCOUNT_LIFECYCLE_DISCONNECTED",
          "ACCOUNT_LIFECYCLE_PURGING"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_AccountPresentation": {
        "additionalProperties": false,
        "properties": {
          "default_display_name": {
            "description": "Owner-authored default sender name. For updates, absence keeps the value and an empty string clears it.",
            "type": "string"
          },
          "personal_label": {
            "type": "string"
          },
          "revision": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "revision",
          "updated_at"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_AccountReplication": {
        "additionalProperties": false,
        "properties": {
          "acquisition": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountReplicationAcquisition",
            "description": "RFC 35 acquisition progress. Present only in phase INITIAL_CAPTURE or RECAPTURING, and absent there while no acquisition progress is known."
          },
          "action": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountReplicationAction",
            "x-traummail-catalog": "strict"
          },
          "activity": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountReplicationActivity",
            "x-traummail-catalog": "strict"
          },
          "condition": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountReplicationCondition",
            "x-traummail-catalog": "strict"
          },
          "excluded_messages": {
            "type": "integer",
            "minimum": 1,
            "maximum": 4294967295,
            "description": "RFC 35: provider messages Traummail cannot represent, excluded from the replica (for example a message with more MIME parts than the normalizer admits). Allowed in every phase; absent when there is none, never zero."
          },
          "failure": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountReplicationFailure"
          },
          "last_attempt_at": {
            "format": "date-time",
            "type": "string"
          },
          "last_published_at": {
            "format": "date-time",
            "type": "string"
          },
          "next_attempt_at": {
            "format": "date-time",
            "type": "string"
          },
          "phase": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountReplicationPhase",
            "x-traummail-catalog": "strict"
          },
          "removal_reason": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountReplicationRemovalReason",
            "x-traummail-catalog": "strict"
          },
          "unsupported_reason": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountReplicationUnsupportedReason",
            "x-traummail-catalog": "strict"
          },
          "reconnect_cause": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/traummail_gateway_v1_AccountReplicationReconnectCause"
              },
              {
                "type": "string",
                "pattern": "^ACCOUNT_REPLICATION_RECONNECT_CAUSE_[A-Z][A-Z0-9_]*$",
                "not": {
                  "enum": [
                    "ACCOUNT_REPLICATION_RECONNECT_CAUSE_UNSPECIFIED",
                    "ACCOUNT_REPLICATION_RECONNECT_CAUSE_AUTHORIZATION_EXPIRED",
                    "ACCOUNT_REPLICATION_RECONNECT_CAUSE_CREDENTIALS_REJECTED",
                    "ACCOUNT_REPLICATION_RECONNECT_CAUSE_AUTHENTICATION_UNSUPPORTED",
                    "ACCOUNT_REPLICATION_RECONNECT_CAUSE_CREDENTIAL_UNREADABLE",
                    "ACCOUNT_REPLICATION_RECONNECT_CAUSE_UNCLASSIFIED"
                  ]
                },
                "description": "A value registered after this reader was built (open catalog): not retryable, no authority, no action."
              }
            ],
            "x-traummail-catalog": "open"
          }
        },
        "required": [
          "phase",
          "condition",
          "activity"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_AccountReplicationAcquisition": {
        "additionalProperties": false,
        "description": "How far the provider acquisition of an account's mailbox has come (RFC 35). Operational facts, never proof; for one acquisition both counts only grow, except by provider deletions.",
        "properties": {
          "acquired_messages": {
            "type": "integer",
            "minimum": 0,
            "maximum": 4294967295,
            "description": "Messages whose current state the Producer has acquired."
          },
          "estimated_completion_at": {
            "format": "date-time",
            "type": "string",
            "description": "last_progress_at + (listed_messages - acquired_messages) / rate, where rate is the recent acquisition rate. Absent while no rate is known or listing_complete is false. An estimate made at the last step, meaningful only while the condition is HEALTHY."
          },
          "last_progress_at": {
            "format": "date-time",
            "type": "string",
            "description": "When the last acquisition step completed, or started_at before the first one."
          },
          "listed_messages": {
            "type": "integer",
            "minimum": 0,
            "maximum": 4294967295,
            "description": "Distinct messages the acquisition's provider listing found so far: exact for the listing, an estimate of the mailbox's final size."
          },
          "listing_complete": {
            "description": "Whether the provider listing finished.",
            "type": "boolean"
          },
          "started_at": {
            "format": "date-time",
            "type": "string"
          },
          "throttled_since": {
            "format": "date-time",
            "type": "string",
            "description": "Since when the provider has been limiting the account's requests; absent while it is not."
          }
        },
        "required": [
          "listed_messages",
          "listing_complete",
          "acquired_messages",
          "started_at",
          "last_progress_at"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_AccountReplicationAction": {
        "enum": [
          "ACCOUNT_REPLICATION_ACTION_UNSPECIFIED",
          "ACCOUNT_REPLICATION_ACTION_RETRY",
          "ACCOUNT_REPLICATION_ACTION_RECONNECT",
          "ACCOUNT_REPLICATION_ACTION_REMOVE_ACCOUNT"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_AccountReplicationActivity": {
        "enum": [
          "ACCOUNT_REPLICATION_ACTIVITY_UNSPECIFIED",
          "ACCOUNT_REPLICATION_ACTIVITY_IDLE",
          "ACCOUNT_REPLICATION_ACTIVITY_QUEUED",
          "ACCOUNT_REPLICATION_ACTIVITY_RUNNING"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_AccountReplicationCondition": {
        "enum": [
          "ACCOUNT_REPLICATION_CONDITION_UNSPECIFIED",
          "ACCOUNT_REPLICATION_CONDITION_HEALTHY",
          "ACCOUNT_REPLICATION_CONDITION_RETRYING",
          "ACCOUNT_REPLICATION_CONDITION_DELAYED",
          "ACCOUNT_REPLICATION_CONDITION_ACTION_REQUIRED",
          "ACCOUNT_REPLICATION_CONDITION_UNSUPPORTED"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_AccountReplicationFailure": {
        "additionalProperties": false,
        "properties": {
          "category": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountReplicationFailureCategory",
            "x-traummail-catalog": "strict"
          },
          "consecutive_failures": {
            "minimum": 0,
            "type": "integer"
          },
          "failing_since": {
            "format": "date-time",
            "type": "string"
          },
          "last_failed_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "category",
          "consecutive_failures"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_AccountReplicationFailureCategory": {
        "enum": [
          "ACCOUNT_REPLICATION_FAILURE_CATEGORY_UNSPECIFIED",
          "ACCOUNT_REPLICATION_FAILURE_CATEGORY_PROVIDER_UNAVAILABLE",
          "ACCOUNT_REPLICATION_FAILURE_CATEGORY_PROVIDER_RATE_LIMITED",
          "ACCOUNT_REPLICATION_FAILURE_CATEGORY_PROVIDER_TIMEOUT",
          "ACCOUNT_REPLICATION_FAILURE_CATEGORY_AUTHORIZATION_EXPIRED",
          "ACCOUNT_REPLICATION_FAILURE_CATEGORY_SERVICE_ERROR",
          "ACCOUNT_REPLICATION_FAILURE_CATEGORY_PROVIDER_PERMISSION_DENIED"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_AccountReplicationPhase": {
        "enum": [
          "ACCOUNT_REPLICATION_PHASE_UNSPECIFIED",
          "ACCOUNT_REPLICATION_PHASE_INITIAL_CAPTURE",
          "ACCOUNT_REPLICATION_PHASE_REPLICATING",
          "ACCOUNT_REPLICATION_PHASE_RECAPTURING"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_AccountReplicationRemovalReason": {
        "enum": [
          "ACCOUNT_REPLICATION_REMOVAL_REASON_UNSPECIFIED",
          "ACCOUNT_REPLICATION_REMOVAL_REASON_SOURCE_LOST",
          "ACCOUNT_REPLICATION_REMOVAL_REASON_STATE_UNREADABLE"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_AccountReplicationReconnectCause": {
        "enum": [
          "ACCOUNT_REPLICATION_RECONNECT_CAUSE_UNSPECIFIED",
          "ACCOUNT_REPLICATION_RECONNECT_CAUSE_AUTHORIZATION_EXPIRED",
          "ACCOUNT_REPLICATION_RECONNECT_CAUSE_CREDENTIALS_REJECTED",
          "ACCOUNT_REPLICATION_RECONNECT_CAUSE_AUTHENTICATION_UNSUPPORTED",
          "ACCOUNT_REPLICATION_RECONNECT_CAUSE_CREDENTIAL_UNREADABLE",
          "ACCOUNT_REPLICATION_RECONNECT_CAUSE_UNCLASSIFIED"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_AccountReplicationUnsupportedReason": {
        "enum": [
          "ACCOUNT_REPLICATION_UNSUPPORTED_REASON_UNSPECIFIED",
          "ACCOUNT_REPLICATION_UNSUPPORTED_REASON_CAPTURE_TOO_LARGE",
          "ACCOUNT_REPLICATION_UNSUPPORTED_REASON_PROVIDER_UNSUPPORTED"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_AddLoginMethodRequest": {
        "additionalProperties": false,
        "properties": {
          "password": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PasswordCredential"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_AddLoginMethodResponse": {
        "additionalProperties": false,
        "properties": {
          "method": {
            "$ref": "#/components/schemas/traummail_gateway_v1_LoginMethod"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_AdminAccount": {
        "additionalProperties": false,
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "lifecycle": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountLifecycle",
            "x-traummail-catalog": "strict"
          },
          "owner_user_id": {
            "type": "string"
          },
          "service_bindings": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_ServiceBinding"
            },
            "type": "array"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "lifecycle",
          "owner_user_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_AdminApp": {
        "additionalProperties": false,
        "properties": {
          "confidential": {
            "type": "boolean"
          },
          "created": {
            "format": "date-time",
            "type": "string"
          },
          "delegated_login_enabled": {
            "type": "boolean"
          },
          "delegated_login_grant_count": {
            "pattern": "^-?[0-9]+$",
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "grant_count": {
            "pattern": "^-?[0-9]+$",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "owner_user_id": {
            "type": "string"
          },
          "redirect_uris": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "required_scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "name",
          "redirect_uris",
          "scopes",
          "confidential",
          "owner_user_id",
          "grant_count",
          "required_scopes",
          "delegated_login_enabled",
          "delegated_login_grant_count"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_AdminUser": {
        "additionalProperties": false,
        "properties": {
          "admin": {
            "type": "boolean"
          },
          "allow_app_create": {
            "type": "boolean"
          },
          "created": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "username": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "username",
          "admin",
          "allow_app_create"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_AdminWhoamiRequest": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_AppGrant": {
        "additionalProperties": false,
        "properties": {
          "all_accounts": {
            "type": "boolean"
          },
          "covered_accounts": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_GrantAccount"
            },
            "type": "array"
          },
          "created": {
            "format": "date-time",
            "type": "string"
          },
          "grant_id": {
            "type": "string"
          },
          "last_used": {
            "format": "date-time",
            "type": "string"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "user_id": {
            "type": "string"
          },
          "user_username": {
            "type": "string"
          }
        },
        "required": [
          "grant_id",
          "user_id",
          "user_username",
          "all_accounts",
          "scopes"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ApproveConsentRequest": {
        "additionalProperties": false,
        "properties": {
          "all_accounts": {
            "type": "boolean"
          },
          "request_id": {
            "type": "string"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "single_account_id": {
            "type": "string"
          }
        },
        "required": [
          "request_id",
          "scopes"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ApproveConsentResponse": {
        "additionalProperties": false,
        "properties": {
          "redirect_url": {
            "type": "string"
          }
        },
        "required": [
          "redirect_url"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ApproveTunnelManifestRequest": {
        "additionalProperties": false,
        "properties": {
          "expected_tunnel_generation": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "manifest": {
            "$ref": "#/components/schemas/traummail_gateway_v1_TunnelManifestProposal"
          },
          "tunnel_id": {
            "type": "string"
          }
        },
        "required": [
          "tunnel_id",
          "expected_tunnel_generation"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ApproveTunnelManifestRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_NOT_FOUND",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT",
          "ERROR_CODE_GATEWAY_ERROR_FAILED_PRECONDITION"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_AuthorizationInput": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "new_authorization": {
            "$ref": "#/components/schemas/traummail_gateway_v1_NewAuthorizationSource"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_CancelMessageSubmissionRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "submission_id": {
            "type": "string"
          }
        },
        "required": [
          "submission_id",
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_CancelOperationRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          }
        },
        "required": [
          "operation_id",
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_Capability": {
        "enum": [
          "CAPABILITY_UNSPECIFIED",
          "CAPABILITY_MAIL_READ",
          "CAPABILITY_MAIL_MODIFY",
          "CAPABILITY_MAIL_SEND",
          "CAPABILITY_CONTACTS_READ",
          "CAPABILITY_CALENDAR_READ"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_ChangePasswordRequest": {
        "additionalProperties": false,
        "properties": {
          "current_password": {
            "type": "string"
          },
          "new_password": {
            "type": "string"
          }
        },
        "required": [
          "current_password",
          "new_password"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ChangePasswordResponse": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ChangeServiceBindingRouteRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "direct": {
            "type": "boolean"
          },
          "expected_binding_generation": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "expected_route_generation": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "service_binding_id": {
            "type": "string"
          },
          "tunnel_service_id": {
            "type": "string"
          }
        },
        "required": [
          "account_id",
          "service_binding_id",
          "expected_binding_generation"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ChangeServiceBindingRouteRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_NOT_FOUND",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT",
          "ERROR_CODE_GATEWAY_ERROR_FAILED_PRECONDITION"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_ClassicalEndpoint": {
        "additionalProperties": false,
        "properties": {
          "host": {
            "type": "string"
          },
          "password": {
            "type": "string"
          },
          "port": {
            "format": "int32",
            "type": "integer"
          },
          "security": {
            "$ref": "#/components/schemas/traummail_gateway_v1_TransportSecurity",
            "x-traummail-catalog": "strict"
          },
          "username": {
            "type": "string"
          }
        },
        "required": [
          "host",
          "port",
          "username",
          "password",
          "security"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ClassicalSmtpCoordinates": {
        "additionalProperties": false,
        "properties": {
          "host": {
            "type": "string"
          },
          "port": {
            "format": "int32",
            "type": "integer"
          },
          "security": {
            "$ref": "#/components/schemas/traummail_gateway_v1_TransportSecurity",
            "x-traummail-catalog": "strict"
          }
        },
        "required": [
          "host",
          "port",
          "security"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ClearPersonalLabel": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_CompleteClassicalServiceConnectionRequest": {
        "additionalProperties": false,
        "properties": {
          "authorization_input_id": {
            "type": "string"
          },
          "connection_id": {
            "type": "string"
          },
          "endpoint": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ClassicalEndpoint"
          },
          "imap_tunnel_service_id": {
            "type": "string"
          },
          "smtp_endpoint": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ClassicalSmtpCoordinates"
          },
          "smtp_tunnel_service_id": {
            "type": "string"
          }
        },
        "required": [
          "connection_id",
          "authorization_input_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_CompleteClassicalServiceConnectionRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT",
          "ERROR_CODE_GATEWAY_ERROR_FAILED_PRECONDITION",
          "ERROR_CODE_GATEWAY_ERROR_RESOURCE_EXHAUSTED",
          "ERROR_CODE_SYNC_ERROR_SERVICE_RESOURCE_CONFLICT",
          "ERROR_CODE_SYNC_ERROR_AUTH_EXPIRED",
          "ERROR_CODE_SYNC_ERROR_CREDENTIALS_REJECTED",
          "ERROR_CODE_SYNC_ERROR_AUTHENTICATION_UNSUPPORTED",
          "ERROR_CODE_SYNC_ERROR_CREDENTIAL_UNREADABLE",
          "ERROR_CODE_SYNC_ERROR_PROVIDER_UNAVAILABLE",
          "ERROR_CODE_SYNC_ERROR_PROVIDER_TIMEOUT",
          "ERROR_CODE_SYNC_ERROR_NOT_SUPPORTED"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_ConnectionCandidate": {
        "additionalProperties": false,
        "properties": {
          "available": {
            "type": "boolean"
          },
          "confidence": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DiscoveryConfidence",
            "x-traummail-catalog": "strict"
          },
          "documentation": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_DocumentationLink"
            },
            "type": "array"
          },
          "google_gmail": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DiscoveredGoogleGmail"
          },
          "imap": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DiscoveredImap"
          },
          "jmap": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DiscoveredJmap"
          },
          "microsoft_graph": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DiscoveredMicrosoftGraph"
          },
          "proton_bridge": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DiscoveredProtonBridge"
          },
          "provider_id": {
            "type": "string"
          },
          "provider_name": {
            "type": "string"
          },
          "smtp": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DiscoveredSmtp"
          },
          "sources": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_DiscoverySource"
            },
            "type": "array",
            "x-traummail-catalog": "strict"
          },
          "unavailable_reason": {
            "type": "string"
          },
          "verification": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DiscoveryVerification",
            "x-traummail-catalog": "strict"
          }
        },
        "required": [
          "confidence",
          "verification",
          "sources",
          "available"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ConsentRequest": {
        "additionalProperties": false,
        "properties": {
          "all_accounts_only": {
            "type": "boolean"
          },
          "app_description": {
            "type": "string"
          },
          "app_id": {
            "type": "string"
          },
          "app_name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "redirect_uri": {
            "type": "string"
          },
          "requested_scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "required_scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "app_id",
          "app_name",
          "requested_scopes",
          "redirect_uri",
          "required_scopes",
          "all_accounts_only"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ContentChunk": {
        "additionalProperties": false,
        "properties": {
          "data": {
            "contentEncoding": "base64",
            "type": "string"
          }
        },
        "required": [
          "data"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ContentEnd": {
        "additionalProperties": false,
        "properties": {
          "bytes": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "checksum_sha256": {
            "type": "string"
          }
        },
        "required": [
          "bytes",
          "checksum_sha256"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ContentFrame": {
        "additionalProperties": false,
        "properties": {
          "chunk": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ContentChunk"
          },
          "end": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ContentEnd"
          },
          "start": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ContentStart"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ContentStart": {
        "additionalProperties": false,
        "properties": {
          "checksum_sha256": {
            "type": "string"
          },
          "content_type": {
            "type": "string"
          },
          "expected_bytes": {
            "pattern": "^[0-9]+$",
            "type": "string"
          }
        },
        "required": [
          "content_type"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_CreateAppRequest": {
        "additionalProperties": false,
        "properties": {
          "client_jwks": {
            "type": "string"
          },
          "confidential": {
            "type": "boolean"
          },
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "redirect_uris": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "required_scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "name",
          "redirect_uris",
          "scopes",
          "confidential",
          "required_scopes"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_CreateAppResponse": {
        "additionalProperties": false,
        "properties": {
          "app": {
            "$ref": "#/components/schemas/traummail_gateway_v1_OidcApp"
          },
          "client_secret": {
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_CreateDelegatedLinkTicketRequest": {
        "additionalProperties": false,
        "properties": {
          "external_subject": {
            "type": "string"
          },
          "return_to": {
            "type": "string"
          }
        },
        "required": [
          "external_subject",
          "return_to"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_CreateDelegatedLinkTicketResponse": {
        "additionalProperties": false,
        "properties": {
          "expires": {
            "format": "date-time",
            "type": "string"
          },
          "link_url": {
            "type": "string"
          }
        },
        "required": [
          "link_url"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_CreateDelegatedLoginTicketRequest": {
        "additionalProperties": false,
        "properties": {
          "external_subject": {
            "type": "string"
          },
          "return_to": {
            "type": "string"
          }
        },
        "required": [
          "external_subject",
          "return_to"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_CreateDelegatedLoginTicketResponse": {
        "additionalProperties": false,
        "properties": {
          "expires": {
            "format": "date-time",
            "type": "string"
          },
          "login_url": {
            "type": "string"
          }
        },
        "required": [
          "login_url"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_CreateDraftMessageSubmissionRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "draft_id": {
            "type": "string"
          },
          "expected_revision": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          }
        },
        "required": [
          "account_id",
          "draft_id",
          "expected_revision",
          "idempotency_key"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_CreateEventConsumerRequest": {
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "owner": {
            "$ref": "#/components/schemas/traummail_gateway_v1_EventConsumerOwner"
          },
          "push_endpoint": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "push_endpoint"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_CreateEventConsumerResponse": {
        "additionalProperties": false,
        "properties": {
          "consumer": {
            "$ref": "#/components/schemas/traummail_gateway_v1_EventConsumer"
          },
          "verification_jwks_url": {
            "type": "string"
          }
        },
        "required": [
          "verification_jwks_url"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_CreateMessageSubmissionRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "upload_ref": {
            "type": "string"
          }
        },
        "required": [
          "account_id",
          "upload_ref",
          "idempotency_key"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_CreateTunnelApiKeyRequest": {
        "additionalProperties": false,
        "properties": {
          "tunnel_id": {
            "type": "string"
          }
        },
        "required": [
          "tunnel_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_CreateTunnelApiKeyRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_NOT_FOUND",
          "ERROR_CODE_GATEWAY_ERROR_FAILED_PRECONDITION",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_CreateTunnelRequest": {
        "additionalProperties": false,
        "properties": {
          "display_name": {
            "type": "string"
          },
          "ownership": {
            "$ref": "#/components/schemas/traummail_gateway_v1_TunnelOwnership",
            "x-traummail-catalog": "strict"
          },
          "retained_tunnel_id": {
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          }
        },
        "required": [
          "display_name",
          "ownership"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_CreateTunnelRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT",
          "ERROR_CODE_GATEWAY_ERROR_ALREADY_EXISTS"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_DelegatedAppLoginMethod": {
        "additionalProperties": false,
        "properties": {
          "app_id": {
            "type": "string"
          },
          "display_name": {
            "type": "string"
          }
        },
        "required": [
          "app_id",
          "display_name"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_DelegatedLoginGrant": {
        "additionalProperties": false,
        "properties": {
          "app_id": {
            "type": "string"
          },
          "created": {
            "format": "date-time",
            "type": "string"
          },
          "external_subject": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "origin": {
            "type": "string"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "user_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "app_id",
          "user_id",
          "external_subject",
          "origin",
          "scopes"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_DeleteAppRequest": {
        "additionalProperties": false,
        "properties": {
          "acknowledge_delegated_login_cascade": {
            "type": "boolean"
          },
          "acknowledge_grant_cascade": {
            "type": "boolean"
          },
          "app_id": {
            "type": "string"
          }
        },
        "required": [
          "app_id",
          "acknowledge_grant_cascade",
          "acknowledge_delegated_login_cascade"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_DeleteAppResponse": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_DeleteDraftRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "draft_id": {
            "type": "string"
          },
          "expected_revision": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          }
        },
        "required": [
          "account_id",
          "draft_id",
          "expected_revision"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_DeleteEventConsumerRequest": {
        "additionalProperties": false,
        "properties": {
          "consumer_id": {
            "type": "string"
          }
        },
        "required": [
          "consumer_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_DeleteEventConsumerResponse": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_DeleteSelfRequest": {
        "additionalProperties": false,
        "properties": {
          "account_dispositions": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_AccountDisposition"
            },
            "type": "array"
          },
          "acknowledge_app_deletion": {
            "type": "boolean"
          },
          "password": {
            "type": "string"
          }
        },
        "required": [
          "password",
          "acknowledge_app_deletion"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_DeleteSelfResponse": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_DeleteTunnelRequest": {
        "additionalProperties": false,
        "properties": {
          "expected_generation": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "tunnel_id": {
            "type": "string"
          }
        },
        "required": [
          "tunnel_id",
          "expected_generation"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_DeleteTunnelRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_NOT_FOUND",
          "ERROR_CODE_GATEWAY_ERROR_FAILED_PRECONDITION",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_DeleteTunnelServiceRequest": {
        "additionalProperties": false,
        "properties": {
          "tunnel_service_id": {
            "type": "string"
          }
        },
        "required": [
          "tunnel_service_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_DeleteTunnelServiceRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_NOT_FOUND",
          "ERROR_CODE_GATEWAY_ERROR_FAILED_PRECONDITION",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_DenyConsentRequest": {
        "additionalProperties": false,
        "properties": {
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "request_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_DenyConsentResponse": {
        "additionalProperties": false,
        "properties": {
          "redirect_url": {
            "type": "string"
          }
        },
        "required": [
          "redirect_url"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_DisconnectAccountRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          }
        },
        "required": [
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_DiscoverMailRequest": {
        "additionalProperties": false,
        "properties": {
          "email": {
            "type": "string"
          }
        },
        "required": [
          "email"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_DiscoverMailResponse": {
        "additionalProperties": false,
        "properties": {
          "candidates": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_ConnectionCandidate"
            },
            "type": "array"
          },
          "recommendation": {
            "format": "int32",
            "type": "integer"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_DiscoveredGoogleGmail": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_DiscoveredImap": {
        "additionalProperties": false,
        "properties": {
          "host": {
            "type": "string"
          },
          "port": {
            "format": "int32",
            "type": "integer"
          },
          "security": {
            "$ref": "#/components/schemas/traummail_gateway_v1_TransportSecurity",
            "x-traummail-catalog": "strict"
          },
          "username_hint": {
            "type": "string"
          }
        },
        "required": [
          "host",
          "port",
          "security"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_DiscoveredJmap": {
        "additionalProperties": false,
        "properties": {
          "session_url": {
            "type": "string"
          }
        },
        "required": [
          "session_url"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_DiscoveredMicrosoftGraph": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_DiscoveredProtonBridge": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_DiscoveredSmtp": {
        "additionalProperties": false,
        "properties": {
          "host": {
            "type": "string"
          },
          "port": {
            "format": "int32",
            "type": "integer"
          },
          "security": {
            "$ref": "#/components/schemas/traummail_gateway_v1_TransportSecurity",
            "x-traummail-catalog": "strict"
          },
          "username_hint": {
            "type": "string"
          }
        },
        "required": [
          "host",
          "port",
          "security"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_DiscoveryConfidence": {
        "enum": [
          "DISCOVERY_CONFIDENCE_UNSPECIFIED",
          "DISCOVERY_CONFIDENCE_LOW",
          "DISCOVERY_CONFIDENCE_MEDIUM",
          "DISCOVERY_CONFIDENCE_HIGH"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_DiscoverySource": {
        "enum": [
          "DISCOVERY_SOURCE_UNSPECIFIED",
          "DISCOVERY_SOURCE_KNOWN_PROVIDER",
          "DISCOVERY_SOURCE_PROVIDER_MX",
          "DISCOVERY_SOURCE_PACC",
          "DISCOVERY_SOURCE_MOZILLA_AUTOCONFIG",
          "DISCOVERY_SOURCE_THUNDERBIRD_ISPDB",
          "DISCOVERY_SOURCE_DNS_SRV",
          "DISCOVERY_SOURCE_JMAP_WELL_KNOWN"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_DiscoveryVerification": {
        "enum": [
          "DISCOVERY_VERIFICATION_UNSPECIFIED",
          "DISCOVERY_VERIFICATION_NOT_CHECKED",
          "DISCOVERY_VERIFICATION_REACHABLE",
          "DISCOVERY_VERIFICATION_UNREACHABLE"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_DocumentationKind": {
        "enum": [
          "DOCUMENTATION_KIND_UNSPECIFIED",
          "DOCUMENTATION_KIND_SETUP",
          "DOCUMENTATION_KIND_APP_PASSWORD",
          "DOCUMENTATION_KIND_OAUTH",
          "DOCUMENTATION_KIND_TROUBLESHOOTING"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_DocumentationLink": {
        "additionalProperties": false,
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DocumentationKind",
            "x-traummail-catalog": "strict"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "kind",
          "url"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_Draft": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "content_ref": {
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "revision": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "account_id",
          "revision",
          "content_ref"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_DraftChanged": {
        "additionalProperties": false,
        "oneOf": [
          {
            "properties": {
              "kind": {
                "const": "CHANGE_KIND_STORED",
                "x-traummail-catalog": "strict"
              }
            },
            "required": [
              "current"
            ]
          },
          {
            "not": {
              "required": [
                "current"
              ]
            },
            "properties": {
              "kind": {
                "enum": [
                  "CHANGE_KIND_REMOVED",
                  "CHANGE_KIND_SENT"
                ],
                "x-traummail-catalog": "strict"
              }
            }
          }
        ],
        "properties": {
          "current": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DraftState"
          },
          "draft_id": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DraftChanged_ChangeKind",
            "x-traummail-catalog": "strict"
          },
          "revision": {
            "pattern": "^[0-9]+$",
            "type": "string"
          }
        },
        "required": [
          "draft_id",
          "revision",
          "kind"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_DraftChanged_ChangeKind": {
        "enum": [
          "CHANGE_KIND_UNSPECIFIED",
          "CHANGE_KIND_STORED",
          "CHANGE_KIND_REMOVED",
          "CHANGE_KIND_SENT"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_DraftState": {
        "additionalProperties": false,
        "properties": {
          "content_ref": {
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "provider_id": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ProviderId"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "provider_id",
          "content_ref",
          "created_at",
          "updated_at"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_EmailDeleted": {
        "additionalProperties": false,
        "properties": {
          "placements": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_MailboxOccurrence"
            },
            "type": "array"
          },
          "provider_id": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ProviderId"
          }
        },
        "required": [
          "placements"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_EmailPlacementRemoved": {
        "additionalProperties": false,
        "properties": {
          "mailbox_id": {
            "type": "string"
          },
          "occurrence_id": {
            "type": "string"
          },
          "provider_id": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ProviderId"
          }
        },
        "required": [
          "mailbox_id",
          "occurrence_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_EmailPlacementUpserted": {
        "additionalProperties": false,
        "properties": {
          "mailbox_id": {
            "type": "string"
          },
          "occurrence_id": {
            "type": "string"
          },
          "provider_id": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ProviderId"
          }
        },
        "required": [
          "mailbox_id",
          "occurrence_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_EmailReceived": {
        "additionalProperties": false,
        "properties": {
          "placements": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_MailboxOccurrence"
            },
            "type": "array"
          },
          "provider_id": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ProviderId"
          },
          "thread_id": {
            "description": "The provider's own conversation identity (Gmail threadId, Outlook conversationId): opaque, scoped to the account and fixed for the message's lifetime. Absent when the provider has none (IMAP).",
            "type": "string"
          }
        },
        "required": [
          "placements"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_EmailSendFailed": {
        "additionalProperties": false,
        "properties": {
          "failure": {
            "$ref": "#/components/schemas/traummail_gateway_v1_Failure"
          },
          "operation_id": {
            "type": "string"
          },
          "submission_id": {
            "type": "string"
          }
        },
        "required": [
          "submission_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_EmailSent": {
        "additionalProperties": false,
        "properties": {
          "message_id": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "submission_id": {
            "type": "string"
          }
        },
        "required": [
          "submission_id",
          "message_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_EmailUpdated": {
        "additionalProperties": false,
        "properties": {
          "changes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "placements": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_MailboxOccurrence"
            },
            "type": "array"
          },
          "provider_id": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ProviderId"
          }
        },
        "required": [
          "placements",
          "changes"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_EmptyTunnelResponse": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_Event": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "created": {
            "format": "date-time",
            "type": "string"
          },
          "draft_changed": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DraftChanged"
          },
          "email_deleted": {
            "$ref": "#/components/schemas/traummail_gateway_v1_EmailDeleted"
          },
          "email_placement_removed": {
            "$ref": "#/components/schemas/traummail_gateway_v1_EmailPlacementRemoved"
          },
          "email_placement_upserted": {
            "$ref": "#/components/schemas/traummail_gateway_v1_EmailPlacementUpserted"
          },
          "email_received": {
            "$ref": "#/components/schemas/traummail_gateway_v1_EmailReceived"
          },
          "email_send_failed": {
            "$ref": "#/components/schemas/traummail_gateway_v1_EmailSendFailed"
          },
          "email_sent": {
            "$ref": "#/components/schemas/traummail_gateway_v1_EmailSent"
          },
          "email_updated": {
            "$ref": "#/components/schemas/traummail_gateway_v1_EmailUpdated"
          },
          "id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "label_changed": {
            "$ref": "#/components/schemas/traummail_gateway_v1_LabelChanged"
          },
          "mailbox_changed": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MailboxChanged"
          },
          "message_submission_changed": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MessageSubmissionChanged"
          },
          "operation_failed": {
            "$ref": "#/components/schemas/traummail_gateway_v1_OperationFailed"
          },
          "operation_succeeded": {
            "$ref": "#/components/schemas/traummail_gateway_v1_OperationSucceeded"
          },
          "provenance": {
            "$ref": "#/components/schemas/traummail_gateway_v1_Provenance"
          },
          "seq": {
            "pattern": "^-?[0-9]+$",
            "type": "string"
          },
          "sync_completed": {
            "$ref": "#/components/schemas/traummail_gateway_v1_SyncCompleted"
          },
          "sync_failed": {
            "$ref": "#/components/schemas/traummail_gateway_v1_SyncFailed"
          },
          "sync_progress": {
            "$ref": "#/components/schemas/traummail_gateway_v1_SyncProgress"
          },
          "sync_started": {
            "$ref": "#/components/schemas/traummail_gateway_v1_SyncStarted"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "seq",
          "type",
          "account_id",
          "idempotency_key"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_EventConsumer": {
        "additionalProperties": false,
        "properties": {
          "created": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "owner": {
            "$ref": "#/components/schemas/traummail_gateway_v1_EventConsumerOwner"
          },
          "push_endpoint": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/traummail_gateway_v1_EventConsumerStatus",
            "x-traummail-catalog": "strict"
          },
          "updated": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "status",
          "push_endpoint"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_EventConsumerOwner": {
        "additionalProperties": false,
        "properties": {
          "app_id": {
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/traummail_gateway_v1_UserEventBuffer"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_EventConsumerStatus": {
        "enum": [
          "EVENT_CONSUMER_STATUS_ACTIVE",
          "EVENT_CONSUMER_STATUS_PAUSED"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_Failure": {
        "additionalProperties": false,
        "properties": {
          "action": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/traummail_gateway_v1_FailureAction"
              },
              {
                "type": "string",
                "pattern": "^FAILURE_ACTION_[A-Z][A-Z0-9_]*$",
                "not": {
                  "enum": [
                    "FAILURE_ACTION_UNSPECIFIED",
                    "FAILURE_ACTION_FIX_REQUEST",
                    "FAILURE_ACTION_RETRY",
                    "FAILURE_ACTION_RETRY_LATER",
                    "FAILURE_ACTION_REAUTHENTICATE",
                    "FAILURE_ACTION_RECONCILE",
                    "FAILURE_ACTION_RECONNECT_ACCOUNT",
                    "FAILURE_ACTION_DECIDE",
                    "FAILURE_ACTION_REPAIR_ACCOUNT",
                    "FAILURE_ACTION_CONTACT_SUPPORT"
                  ]
                },
                "description": "A value registered after this reader was built (open catalog): not retryable, no authority, no action."
              }
            ],
            "x-traummail-catalog": "open"
          },
          "code": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "retry_after": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "message",
          "id",
          "action"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_FailureAction": {
        "enum": [
          "FAILURE_ACTION_UNSPECIFIED",
          "FAILURE_ACTION_FIX_REQUEST",
          "FAILURE_ACTION_RETRY",
          "FAILURE_ACTION_RETRY_LATER",
          "FAILURE_ACTION_REAUTHENTICATE",
          "FAILURE_ACTION_RECONCILE",
          "FAILURE_ACTION_RECONNECT_ACCOUNT",
          "FAILURE_ACTION_DECIDE",
          "FAILURE_ACTION_REPAIR_ACCOUNT"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_FetchContentRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "content_ref": {
            "type": "string"
          }
        },
        "required": [
          "account_id",
          "content_ref"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_Folder": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "description": "The display name below the parent: the folder's own name, not a path."
          },
          "role": {
            "$ref": "#/components/schemas/traummail_gateway_v1_FolderRole",
            "x-traummail-catalog": "strict"
          },
          "parent_id": {
            "type": "string",
            "description": "The listed parent folder; absent for a top-level folder."
          }
        },
        "required": [
          "id",
          "name",
          "role"
        ],
        "type": "object",
        "description": "A provider place that holds messages: a Gmail system place, an Outlook folder or an IMAP mailbox. Gmail user labels are labels, never folders."
      },
      "traummail_gateway_v1_FolderRole": {
        "enum": [
          "FOLDER_ROLE_UNSPECIFIED",
          "FOLDER_ROLE_INBOX",
          "FOLDER_ROLE_SENT",
          "FOLDER_ROLE_DRAFTS",
          "FOLDER_ROLE_TRASH",
          "FOLDER_ROLE_JUNK",
          "FOLDER_ROLE_ARCHIVE",
          "FOLDER_ROLE_CUSTOM"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_FreshnessPolicy": {
        "enum": [
          "FRESHNESS_POLICY_UNSPECIFIED",
          "FRESHNESS_POLICY_MANAGED",
          "FRESHNESS_POLICY_SELF_MANAGED"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_GetAccountPresentationRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          }
        },
        "required": [
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_GetAccountPresentationRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT",
          "ERROR_CODE_GATEWAY_ERROR_FAILED_PRECONDITION"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_GetAccountPresentationResponse": {
        "additionalProperties": false,
        "properties": {
          "presentation": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountPresentation"
          }
        },
        "required": [
          "presentation"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_GetAccountRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          }
        },
        "required": [
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_GetAccountRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT",
          "ERROR_CODE_GATEWAY_ERROR_FAILED_PRECONDITION",
          "ERROR_CODE_SYNC_ERROR_DEPENDENCY_UNAVAILABLE"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_GetAppRequest": {
        "additionalProperties": false,
        "properties": {
          "app_id": {
            "type": "string"
          }
        },
        "required": [
          "app_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_GetConsentRequest": {
        "additionalProperties": false,
        "properties": {
          "request_id": {
            "type": "string"
          }
        },
        "required": [
          "request_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_GetDraftRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "draft_id": {
            "type": "string"
          }
        },
        "required": [
          "account_id",
          "draft_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_GetEventConsumerRequest": {
        "additionalProperties": false,
        "properties": {
          "consumer_id": {
            "type": "string"
          }
        },
        "required": [
          "consumer_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_GetEventRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "event_id": {
            "type": "string"
          }
        },
        "required": [
          "event_id",
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_GetMessageSubmissionRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "submission_id": {
            "type": "string"
          }
        },
        "required": [
          "submission_id",
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_GetOperationRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          }
        },
        "required": [
          "operation_id",
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_GetServiceBindingRouteRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "service_binding_id": {
            "type": "string"
          }
        },
        "required": [
          "account_id",
          "service_binding_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_GetServiceBindingRouteRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_NOT_FOUND",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_GetServiceConnectionRequest": {
        "additionalProperties": false,
        "properties": {
          "connection_id": {
            "type": "string"
          }
        },
        "required": [
          "connection_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_GetServiceConnectionRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT",
          "ERROR_CODE_GATEWAY_ERROR_FAILED_PRECONDITION"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_GetSynchronizationCoverageRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          }
        },
        "required": [
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_GetSynchronizationCoverageResponse": {
        "additionalProperties": false,
        "properties": {
          "coverage": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_SynchronizationCoverage"
            },
            "type": "array"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_GetSynchronizationRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "synchronization_id": {
            "type": "string"
          }
        },
        "required": [
          "account_id",
          "synchronization_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_GetTunnelRequest": {
        "additionalProperties": false,
        "properties": {
          "tunnel_id": {
            "type": "string"
          }
        },
        "required": [
          "tunnel_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_GetTunnelRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_NOT_FOUND",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_GetTunnelServiceRequest": {
        "additionalProperties": false,
        "properties": {
          "tunnel_service_id": {
            "type": "string"
          }
        },
        "required": [
          "tunnel_service_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_GetTunnelServiceRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_NOT_FOUND",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_GetTunnelStatusRequest": {
        "additionalProperties": false,
        "properties": {
          "tunnel_id": {
            "type": "string"
          }
        },
        "required": [
          "tunnel_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_GetTunnelStatusRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_NOT_FOUND",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_Grant": {
        "additionalProperties": false,
        "properties": {
          "all_accounts": {
            "type": "boolean"
          },
          "app_host": {
            "type": "string"
          },
          "app_id": {
            "type": "string"
          },
          "app_name": {
            "type": "string"
          },
          "created": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "last_used": {
            "format": "date-time",
            "type": "string"
          },
          "paired_inbox": {
            "type": "boolean"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "single_account_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "app_id",
          "app_name",
          "scopes"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_GrantAccount": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ImapEndpoint": {
        "additionalProperties": false,
        "properties": {
          "port": {
            "format": "int32",
            "type": "integer"
          },
          "security": {
            "$ref": "#/components/schemas/traummail_gateway_v1_TransportSecurity",
            "x-traummail-catalog": "strict"
          }
        },
        "required": [
          "port",
          "security"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ListAccountTimelineRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageRequest"
          }
        },
        "required": [
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ListAccountTimelineResponse": {
        "additionalProperties": false,
        "properties": {
          "entries": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_TimelineEntry"
            },
            "type": "array"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageInfo"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListAccountsRequest": {
        "additionalProperties": false,
        "properties": {
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageRequest"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListAccountsRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT",
          "ERROR_CODE_GATEWAY_ERROR_FAILED_PRECONDITION",
          "ERROR_CODE_SYNC_ERROR_DEPENDENCY_UNAVAILABLE"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_ListAccountsResponse": {
        "additionalProperties": false,
        "properties": {
          "accounts": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_Account"
            },
            "type": "array"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageInfo"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListAdminAccountsRequest": {
        "additionalProperties": false,
        "properties": {
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageRequest"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListAdminAccountsResponse": {
        "additionalProperties": false,
        "properties": {
          "accounts": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_AdminAccount"
            },
            "type": "array"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageInfo"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListAdminAppsRequest": {
        "additionalProperties": false,
        "properties": {
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageRequest"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListAdminAppsResponse": {
        "additionalProperties": false,
        "properties": {
          "apps": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_AdminApp"
            },
            "type": "array"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageInfo"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListAdminUsersRequest": {
        "additionalProperties": false,
        "properties": {
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageRequest"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListAdminUsersResponse": {
        "additionalProperties": false,
        "properties": {
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageInfo"
          },
          "users": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_AdminUser"
            },
            "type": "array"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListAppGrantsRequest": {
        "additionalProperties": false,
        "properties": {
          "app_id": {
            "type": "string"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageRequest"
          }
        },
        "required": [
          "app_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ListAppGrantsResponse": {
        "additionalProperties": false,
        "properties": {
          "grants": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_AppGrant"
            },
            "type": "array"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageInfo"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListAppsRequest": {
        "additionalProperties": false,
        "properties": {
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageRequest"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListAppsResponse": {
        "additionalProperties": false,
        "properties": {
          "apps": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_OidcApp"
            },
            "type": "array"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageInfo"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListDraftsRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageRequest"
          }
        },
        "required": [
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ListDraftsResponse": {
        "additionalProperties": false,
        "properties": {
          "drafts": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_Draft"
            },
            "type": "array"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageInfo"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListEventConsumersRequest": {
        "additionalProperties": false,
        "properties": {
          "owner": {
            "$ref": "#/components/schemas/traummail_gateway_v1_EventConsumerOwner"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageRequest"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListEventConsumersResponse": {
        "additionalProperties": false,
        "properties": {
          "consumers": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_EventConsumer"
            },
            "type": "array"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageInfo"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListEventsRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageRequest"
          },
          "types": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "window": {
            "$ref": "#/components/schemas/traummail_gateway_v1_TimeWindow"
          }
        },
        "required": [
          "account_id",
          "types"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ListEventsResponse": {
        "additionalProperties": false,
        "properties": {
          "events": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_Event"
            },
            "type": "array"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageInfo"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListGrantsRequest": {
        "additionalProperties": false,
        "properties": {
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageRequest"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListGrantsResponse": {
        "additionalProperties": false,
        "properties": {
          "grants": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_Grant"
            },
            "type": "array"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageInfo"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListLoginMethodsForUsernameRequest": {
        "additionalProperties": false,
        "properties": {
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageRequest"
          },
          "username": {
            "type": "string"
          }
        },
        "required": [
          "username"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ListLoginMethodsForUsernameResponse": {
        "additionalProperties": false,
        "properties": {
          "kinds": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_LoginMethodKind"
            },
            "type": "array",
            "x-traummail-catalog": "strict"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageInfo"
          }
        },
        "required": [
          "kinds"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ListLoginMethodsRequest": {
        "additionalProperties": false,
        "properties": {
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageRequest"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListLoginMethodsResponse": {
        "additionalProperties": false,
        "properties": {
          "methods": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_LoginMethod"
            },
            "type": "array"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageInfo"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListMailProvidersRequest": {
        "additionalProperties": false,
        "properties": {
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageRequest"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListMailProvidersResponse": {
        "additionalProperties": false,
        "properties": {
          "oauth_availability": {
            "$ref": "#/components/schemas/traummail_gateway_v1_OauthProviderAvailability"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageInfo"
          },
          "plaintext_mail_authentication": {
            "type": "boolean"
          },
          "providers": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_MailProvider"
            },
            "type": "array"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListMessageSubmissionsRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageRequest"
          },
          "statuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_MessageSubmissionStatus"
            },
            "description": "Statuses to include; absent or empty lists every status.",
            "x-traummail-catalog": "strict"
          }
        },
        "required": [
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ListMessageSubmissionsResponse": {
        "additionalProperties": false,
        "properties": {
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageInfo"
          },
          "submissions": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_MessageSubmission"
            },
            "type": "array"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListOperationsRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageRequest"
          },
          "statuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_OperationStatus"
            },
            "description": "Statuses to include; absent or empty lists every status.",
            "x-traummail-catalog": "strict"
          }
        },
        "required": [
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ListOperationsResponse": {
        "additionalProperties": false,
        "properties": {
          "operations": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
            },
            "type": "array"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageInfo"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListProviderFromAddressSuggestionsRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          }
        },
        "required": [
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ListProviderFromAddressSuggestionsResponse": {
        "additionalProperties": false,
        "properties": {
          "availability": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ProviderFromAddressAvailability",
            "x-traummail-catalog": "strict"
          },
          "completeness": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ProviderFromAddressCompleteness",
            "x-traummail-catalog": "strict"
          },
          "observed_at": {
            "format": "date-time",
            "type": "string"
          },
          "suggestions": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_ProviderFromAddressSuggestion"
            },
            "type": "array"
          },
          "truncated": {
            "type": "boolean"
          }
        },
        "required": [
          "availability",
          "completeness",
          "truncated"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ListSessionsRequest": {
        "additionalProperties": false,
        "properties": {
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageRequest"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListSessionsResponse": {
        "additionalProperties": false,
        "properties": {
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageInfo"
          },
          "sessions": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_UserSession"
            },
            "type": "array"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListSynchronizationsRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageRequest"
          }
        },
        "required": [
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ListSynchronizationsResponse": {
        "additionalProperties": false,
        "properties": {
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageInfo"
          },
          "synchronizations": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_Synchronization"
            },
            "type": "array"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListTunnelDependentsRequest": {
        "additionalProperties": false,
        "properties": {
          "tunnel_id": {
            "type": "string"
          }
        },
        "required": [
          "tunnel_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ListTunnelDependentsRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_NOT_FOUND",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_ListTunnelDependentsResponse": {
        "additionalProperties": false,
        "properties": {
          "dependents": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_TunnelDependent"
            },
            "type": "array"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListTunnelServicesRequest": {
        "additionalProperties": false,
        "properties": {
          "tunnel_id": {
            "type": "string"
          }
        },
        "required": [
          "tunnel_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ListTunnelServicesRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_NOT_FOUND",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_ListTunnelServicesResponse": {
        "additionalProperties": false,
        "properties": {
          "services": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_TunnelServiceResource"
            },
            "type": "array"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListTunnelsRequest": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListTunnelsRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_ListTunnelsResponse": {
        "additionalProperties": false,
        "properties": {
          "tunnels": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_Tunnel"
            },
            "type": "array"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_LoginMethod": {
        "additionalProperties": false,
        "properties": {
          "created": {
            "format": "date-time",
            "type": "string"
          },
          "delegated_app": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DelegatedAppLoginMethod"
          },
          "id": {
            "type": "string"
          },
          "password": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PasswordLoginMethod"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_LoginMethodKind": {
        "enum": [
          "LOGIN_METHOD_KIND_UNSPECIFIED",
          "LOGIN_METHOD_KIND_PASSWORD",
          "LOGIN_METHOD_KIND_DELEGATED_APP"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_LoginRequest": {
        "additionalProperties": false,
        "properties": {
          "password": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PasswordCredential"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_LoginResponse": {
        "additionalProperties": false,
        "properties": {
          "user": {
            "$ref": "#/components/schemas/traummail_gateway_v1_User"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_LogoutRequest": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_LogoutResponse": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_MailMutationSourceScope": {
        "additionalProperties": false,
        "properties": {
          "lineage_id": {
            "type": "string"
          },
          "stream_id": {
            "type": "string"
          }
        },
        "required": [
          "stream_id",
          "lineage_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_MailProvider": {
        "additionalProperties": false,
        "properties": {
          "display_name": {
            "type": "string"
          },
          "endpoints": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_ImapEndpoint"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "imap_host": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "display_name",
          "imap_host"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_MailboxChanged": {
        "additionalProperties": false,
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MailboxChanged_ChangeKind",
            "x-traummail-catalog": "strict"
          },
          "mailbox_id": {
            "type": "string"
          },
          "previous_mailbox_id": {
            "type": "string"
          }
        },
        "required": [
          "mailbox_id",
          "kind"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_MailboxChanged_ChangeKind": {
        "enum": [
          "CHANGE_KIND_UNSPECIFIED",
          "CHANGE_KIND_CREATED",
          "CHANGE_KIND_REMOVED",
          "CHANGE_KIND_RENAMED",
          "CHANGE_KIND_UPDATED"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_MailboxOccurrence": {
        "additionalProperties": false,
        "properties": {
          "mailbox_id": {
            "type": "string"
          },
          "occurrence_id": {
            "type": "string"
          }
        },
        "required": [
          "mailbox_id",
          "occurrence_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_MailboxScope": {
        "additionalProperties": false,
        "properties": {
          "mailbox_ids": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "mailbox_ids"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_MessageSubmission": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "failure": {
            "$ref": "#/components/schemas/traummail_gateway_v1_Failure"
          },
          "id": {
            "type": "string"
          },
          "message_id": {
            "type": "string"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/traummail_gateway_v1_MessageSubmissionStatus"
              },
              {
                "type": "string",
                "pattern": "^MESSAGE_SUBMISSION_STATUS_[A-Z][A-Z0-9_]*$",
                "not": {
                  "enum": [
                    "MESSAGE_SUBMISSION_STATUS_UNSPECIFIED",
                    "MESSAGE_SUBMISSION_STATUS_ACCEPTED",
                    "MESSAGE_SUBMISSION_STATUS_TRANSMITTING",
                    "MESSAGE_SUBMISSION_STATUS_PROVIDER_ACCEPTED",
                    "MESSAGE_SUBMISSION_STATUS_FAILED",
                    "MESSAGE_SUBMISSION_STATUS_CANCELED",
                    "MESSAGE_SUBMISSION_STATUS_RETRYING",
                    "MESSAGE_SUBMISSION_STATUS_UNCERTAIN",
                    "MESSAGE_SUBMISSION_STATUS_AWAITING_SENDER_DECISION",
                    "MESSAGE_SUBMISSION_STATUS_RESENT"
                  ]
                },
                "description": "A value registered after this reader was built (open catalog): not retryable, no authority, no action."
              }
            ],
            "x-traummail-catalog": "open"
          },
          "terminal_at": {
            "format": "date-time",
            "type": "string"
          },
          "version": {
            "type": "string",
            "pattern": "^[1-9][0-9]*$"
          },
          "operation_id": {
            "type": "string",
            "minLength": 1
          },
          "filing": {
            "$ref": "#/components/schemas/traummail_gateway_v1_SentFiling"
          },
          "delivery_evidence": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DeliveryEvidence"
          },
          "retransmission_of": {
            "type": "string",
            "minLength": 1
          },
          "superseded_by": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "id",
          "account_id",
          "version",
          "status",
          "message_id",
          "operation_id",
          "filing"
        ],
        "type": "object",
        "description": "delivery_evidence is required while the status is MESSAGE_SUBMISSION_STATUS_AWAITING_SENDER_DECISION and optional (retained) afterwards; superseded_by is present exactly when the status is MESSAGE_SUBMISSION_STATUS_RESENT."
      },
      "traummail_gateway_v1_MessageSubmissionChanged": {
        "additionalProperties": false,
        "oneOf": [
          {
            "not": {
              "anyOf": [
                {
                  "required": [
                    "terminal_at"
                  ]
                },
                {
                  "required": [
                    "failure"
                  ]
                }
              ]
            },
            "properties": {
              "status": {
                "const": "MESSAGE_SUBMISSION_STATUS_ACCEPTED",
                "x-traummail-catalog": "open"
              }
            }
          },
          {
            "not": {
              "anyOf": [
                {
                  "required": [
                    "terminal_at"
                  ]
                },
                {
                  "required": [
                    "failure"
                  ]
                }
              ]
            },
            "properties": {
              "status": {
                "const": "MESSAGE_SUBMISSION_STATUS_TRANSMITTING",
                "x-traummail-catalog": "open"
              }
            }
          },
          {
            "not": {
              "required": [
                "failure"
              ]
            },
            "properties": {
              "status": {
                "const": "MESSAGE_SUBMISSION_STATUS_PROVIDER_ACCEPTED",
                "x-traummail-catalog": "open"
              }
            },
            "required": [
              "terminal_at"
            ]
          },
          {
            "properties": {
              "status": {
                "const": "MESSAGE_SUBMISSION_STATUS_FAILED",
                "x-traummail-catalog": "open"
              }
            },
            "required": [
              "terminal_at",
              "failure"
            ]
          },
          {
            "not": {
              "required": [
                "failure"
              ]
            },
            "properties": {
              "status": {
                "const": "MESSAGE_SUBMISSION_STATUS_CANCELED",
                "x-traummail-catalog": "open"
              }
            },
            "required": [
              "terminal_at"
            ]
          },
          {
            "properties": {
              "status": {
                "const": "MESSAGE_SUBMISSION_STATUS_RETRYING",
                "x-traummail-catalog": "open"
              }
            },
            "required": [
              "failure"
            ],
            "not": {
              "required": [
                "terminal_at"
              ]
            }
          },
          {
            "properties": {
              "status": {
                "const": "MESSAGE_SUBMISSION_STATUS_UNCERTAIN",
                "x-traummail-catalog": "open"
              }
            },
            "required": [
              "failure"
            ],
            "not": {
              "required": [
                "terminal_at"
              ]
            }
          },
          {
            "properties": {
              "status": {
                "const": "MESSAGE_SUBMISSION_STATUS_AWAITING_SENDER_DECISION",
                "x-traummail-catalog": "open"
              }
            },
            "required": [
              "failure"
            ],
            "not": {
              "required": [
                "terminal_at"
              ]
            }
          },
          {
            "not": {
              "required": [
                "failure"
              ]
            },
            "properties": {
              "status": {
                "const": "MESSAGE_SUBMISSION_STATUS_RESENT",
                "x-traummail-catalog": "open"
              }
            },
            "required": [
              "terminal_at"
            ]
          },
          {
            "properties": {
              "status": {
                "type": "string",
                "pattern": "^MESSAGE_SUBMISSION_STATUS_[A-Z][A-Z0-9_]*$",
                "not": {
                  "enum": [
                    "MESSAGE_SUBMISSION_STATUS_ACCEPTED",
                    "MESSAGE_SUBMISSION_STATUS_TRANSMITTING",
                    "MESSAGE_SUBMISSION_STATUS_PROVIDER_ACCEPTED",
                    "MESSAGE_SUBMISSION_STATUS_FAILED",
                    "MESSAGE_SUBMISSION_STATUS_CANCELED",
                    "MESSAGE_SUBMISSION_STATUS_RETRYING",
                    "MESSAGE_SUBMISSION_STATUS_UNCERTAIN",
                    "MESSAGE_SUBMISSION_STATUS_AWAITING_SENDER_DECISION",
                    "MESSAGE_SUBMISSION_STATUS_RESENT",
                    "MESSAGE_SUBMISSION_STATUS_UNSPECIFIED"
                  ]
                },
                "description": "A status registered after this reader was built (open catalog): it names no status-specific facts.",
                "x-traummail-catalog": "open"
              }
            }
          }
        ],
        "properties": {
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "failure": {
            "$ref": "#/components/schemas/traummail_gateway_v1_Failure"
          },
          "message_id": {
            "type": "string"
          },
          "status": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/traummail_gateway_v1_MessageSubmissionStatus"
              },
              {
                "type": "string",
                "pattern": "^MESSAGE_SUBMISSION_STATUS_[A-Z][A-Z0-9_]*$",
                "not": {
                  "enum": [
                    "MESSAGE_SUBMISSION_STATUS_UNSPECIFIED",
                    "MESSAGE_SUBMISSION_STATUS_ACCEPTED",
                    "MESSAGE_SUBMISSION_STATUS_TRANSMITTING",
                    "MESSAGE_SUBMISSION_STATUS_PROVIDER_ACCEPTED",
                    "MESSAGE_SUBMISSION_STATUS_FAILED",
                    "MESSAGE_SUBMISSION_STATUS_CANCELED",
                    "MESSAGE_SUBMISSION_STATUS_RETRYING",
                    "MESSAGE_SUBMISSION_STATUS_UNCERTAIN",
                    "MESSAGE_SUBMISSION_STATUS_AWAITING_SENDER_DECISION",
                    "MESSAGE_SUBMISSION_STATUS_RESENT"
                  ]
                },
                "description": "A value registered after this reader was built (open catalog): not retryable, no authority, no action."
              }
            ],
            "x-traummail-catalog": "open"
          },
          "submission_id": {
            "type": "string"
          },
          "terminal_at": {
            "format": "date-time",
            "type": "string"
          },
          "version": {
            "type": "string",
            "pattern": "^[1-9][0-9]*$"
          },
          "operation_id": {
            "type": "string",
            "minLength": 1
          },
          "filing": {
            "$ref": "#/components/schemas/traummail_gateway_v1_SentFiling"
          }
        },
        "required": [
          "submission_id",
          "version",
          "status",
          "message_id",
          "created_at",
          "operation_id",
          "filing"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_MessageSubmissionStatus": {
        "enum": [
          "MESSAGE_SUBMISSION_STATUS_UNSPECIFIED",
          "MESSAGE_SUBMISSION_STATUS_ACCEPTED",
          "MESSAGE_SUBMISSION_STATUS_TRANSMITTING",
          "MESSAGE_SUBMISSION_STATUS_PROVIDER_ACCEPTED",
          "MESSAGE_SUBMISSION_STATUS_FAILED",
          "MESSAGE_SUBMISSION_STATUS_CANCELED",
          "MESSAGE_SUBMISSION_STATUS_RETRYING",
          "MESSAGE_SUBMISSION_STATUS_UNCERTAIN",
          "MESSAGE_SUBMISSION_STATUS_AWAITING_SENDER_DECISION",
          "MESSAGE_SUBMISSION_STATUS_RESENT"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_MessageTargetRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "provider_id": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ProviderId"
          },
          "source_scope": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MailMutationSourceScope"
          }
        },
        "required": [
          "account_id",
          "idempotency_key"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_MessageTargetRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_NOT_FOUND",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT",
          "ERROR_CODE_GATEWAY_ERROR_FAILED_PRECONDITION",
          "ERROR_CODE_SYNC_ERROR_ACCOUNT_NOT_FOUND",
          "ERROR_CODE_SYNC_ERROR_AUTH_EXPIRED",
          "ERROR_CODE_SYNC_ERROR_CREDENTIALS_REJECTED",
          "ERROR_CODE_SYNC_ERROR_AUTHENTICATION_UNSUPPORTED",
          "ERROR_CODE_SYNC_ERROR_CREDENTIAL_UNREADABLE",
          "ERROR_CODE_SYNC_ERROR_CREDENTIALS_NOT_FOUND",
          "ERROR_CODE_SYNC_ERROR_PROVIDER_UNAVAILABLE",
          "ERROR_CODE_SYNC_ERROR_PROVIDER_TIMEOUT",
          "ERROR_CODE_SYNC_ERROR_PROVIDER_RATE_LIMITED",
          "ERROR_CODE_SYNC_ERROR_STATE_MISMATCH",
          "ERROR_CODE_SYNC_ERROR_NOT_SUPPORTED"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_MoveMessageRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "folder_id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "provider_id": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ProviderId"
          },
          "source_scope": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MailMutationSourceScope"
          }
        },
        "required": [
          "account_id",
          "folder_id",
          "idempotency_key"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_MoveMessageRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_NOT_FOUND",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT",
          "ERROR_CODE_GATEWAY_ERROR_FAILED_PRECONDITION",
          "ERROR_CODE_SYNC_ERROR_ACCOUNT_NOT_FOUND",
          "ERROR_CODE_SYNC_ERROR_AUTH_EXPIRED",
          "ERROR_CODE_SYNC_ERROR_CREDENTIALS_REJECTED",
          "ERROR_CODE_SYNC_ERROR_AUTHENTICATION_UNSUPPORTED",
          "ERROR_CODE_SYNC_ERROR_CREDENTIAL_UNREADABLE",
          "ERROR_CODE_SYNC_ERROR_CREDENTIALS_NOT_FOUND",
          "ERROR_CODE_SYNC_ERROR_PROVIDER_UNAVAILABLE",
          "ERROR_CODE_SYNC_ERROR_PROVIDER_TIMEOUT",
          "ERROR_CODE_SYNC_ERROR_PROVIDER_RATE_LIMITED",
          "ERROR_CODE_SYNC_ERROR_STATE_MISMATCH",
          "ERROR_CODE_SYNC_ERROR_NOT_SUPPORTED"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_NewAuthorizationSource": {
        "additionalProperties": false,
        "properties": {
          "provider_or_realm": {
            "type": "string"
          }
        },
        "required": [
          "provider_or_realm"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_OauthProviderAvailability": {
        "additionalProperties": false,
        "properties": {
          "gmail": {
            "type": "boolean"
          },
          "microsoft_graph": {
            "type": "boolean"
          }
        },
        "required": [
          "gmail",
          "microsoft_graph"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_OidcApp": {
        "additionalProperties": false,
        "properties": {
          "confidential": {
            "type": "boolean"
          },
          "created": {
            "format": "date-time",
            "type": "string"
          },
          "delegated_login_enabled": {
            "type": "boolean"
          },
          "delegated_login_grant_count": {
            "pattern": "^-?[0-9]+$",
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "grant_count": {
            "pattern": "^-?[0-9]+$",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "owner_user_id": {
            "type": "string"
          },
          "redirect_uris": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "required_scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "id",
          "name",
          "redirect_uris",
          "scopes",
          "confidential",
          "owner_user_id",
          "grant_count",
          "required_scopes",
          "delegated_login_enabled",
          "delegated_login_grant_count"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_Operation": {
        "additionalProperties": false,
        "properties": {
          "accepted_at": {
            "format": "date-time",
            "type": "string"
          },
          "account_id": {
            "type": "string"
          },
          "completed_at": {
            "format": "date-time",
            "type": "string"
          },
          "consistency_cursor": {
            "pattern": "^-?[0-9]+$",
            "type": "string"
          },
          "failure": {
            "$ref": "#/components/schemas/traummail_gateway_v1_Failure"
          },
          "id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "result_resources": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_ResourceReference"
            },
            "type": "array"
          },
          "status": {
            "$ref": "#/components/schemas/traummail_gateway_v1_OperationStatus",
            "x-traummail-catalog": "strict"
          },
          "actor": {
            "$ref": "#/components/schemas/traummail_gateway_v1_InvocationActor",
            "x-traummail-catalog": "strict"
          },
          "target": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ResourceReference"
          },
          "owner_decision": {
            "$ref": "#/components/schemas/traummail_gateway_v1_OwnerDecision"
          },
          "version": {
            "type": "string",
            "pattern": "^[1-9][0-9]*$"
          }
        },
        "required": [
          "id",
          "account_id",
          "kind",
          "status",
          "actor",
          "version"
        ],
        "type": "object",
        "description": "owner_decision is present exactly when status is OPERATION_STATUS_AWAITING_OWNER."
      },
      "traummail_gateway_v1_OperationFailed": {
        "additionalProperties": false,
        "properties": {
          "failure": {
            "$ref": "#/components/schemas/traummail_gateway_v1_Failure"
          },
          "operation_id": {
            "type": "string"
          }
        },
        "required": [
          "operation_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_OperationStatus": {
        "enum": [
          "OPERATION_STATUS_UNSPECIFIED",
          "OPERATION_STATUS_QUEUED",
          "OPERATION_STATUS_RUNNING",
          "OPERATION_STATUS_RECONCILING",
          "OPERATION_STATUS_SUCCEEDED",
          "OPERATION_STATUS_FAILED",
          "OPERATION_STATUS_CANCELED",
          "OPERATION_STATUS_UNCERTAIN",
          "OPERATION_STATUS_RETRYING",
          "OPERATION_STATUS_AWAITING_OWNER"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_OperationSucceeded": {
        "additionalProperties": false,
        "properties": {
          "operation_id": {
            "type": "string"
          }
        },
        "required": [
          "operation_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_PageInfo": {
        "additionalProperties": false,
        "properties": {
          "next_token": {
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_PageRequest": {
        "additionalProperties": false,
        "properties": {
          "size": {
            "format": "int32",
            "type": "integer"
          },
          "token": {
            "type": "string"
          }
        },
        "required": [
          "size"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_PairInboxClientRequest": {
        "additionalProperties": false,
        "properties": {
          "inbox_app_id": {
            "type": "string"
          }
        },
        "required": [
          "inbox_app_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_PairInboxClientResponse": {
        "additionalProperties": false,
        "properties": {
          "inbox_app_id": {
            "type": "string"
          }
        },
        "required": [
          "inbox_app_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_PasswordCredential": {
        "additionalProperties": false,
        "properties": {
          "password": {
            "type": "string"
          },
          "username": {
            "type": "string"
          }
        },
        "required": [
          "username",
          "password"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_PasswordLoginMethod": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_PatchMessageLabelsRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "add": {
            "items": {
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 100,
            "type": "array"
          },
          "idempotency_key": {
            "type": "string"
          },
          "provider_id": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ProviderId"
          },
          "remove": {
            "items": {
              "minLength": 1,
              "type": "string"
            },
            "maxItems": 100,
            "type": "array"
          },
          "source_scope": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MailMutationSourceScope"
          }
        },
        "required": [
          "account_id",
          "idempotency_key",
          "provider_id",
          "add",
          "remove"
        ],
        "type": "object",
        "description": "Independent membership changes to the message's user labels (Label.id). Valid for every account whose LabelSupport.apply holds."
      },
      "traummail_gateway_v1_PauseEventConsumerRequest": {
        "additionalProperties": false,
        "properties": {
          "consumer_id": {
            "type": "string"
          }
        },
        "required": [
          "consumer_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_PrepareAttachToAccountTarget": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          }
        },
        "required": [
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_PrepareCreateAccountTarget": {
        "additionalProperties": false,
        "properties": {
          "personal_label": {
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_PrepareServiceConnectionRequest": {
        "additionalProperties": false,
        "oneOf": [
          {
            "not": {
              "required": [
                "attach_to_account"
              ]
            },
            "required": [
              "create_account"
            ]
          },
          {
            "not": {
              "required": [
                "create_account"
              ]
            },
            "required": [
              "attach_to_account"
            ]
          }
        ],
        "properties": {
          "attach_to_account": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PrepareAttachToAccountTarget"
          },
          "create_account": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PrepareCreateAccountTarget"
          },
          "idempotency_key": {
            "type": "string"
          },
          "inbox_continuation": {
            "type": "string"
          }
        },
        "required": [
          "idempotency_key"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_PrepareServiceConnectionRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT",
          "ERROR_CODE_GATEWAY_ERROR_FAILED_PRECONDITION",
          "ERROR_CODE_GATEWAY_ERROR_ALREADY_EXISTS",
          "ERROR_CODE_GATEWAY_ERROR_RESOURCE_EXHAUSTED"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_PrepareServiceConnectionResponse": {
        "additionalProperties": false,
        "properties": {
          "connection_id": {
            "type": "string"
          },
          "target": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PreparedServiceConnectionTarget"
          }
        },
        "required": [
          "connection_id",
          "target"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_PreparedServiceConnectionTarget": {
        "additionalProperties": false,
        "oneOf": [
          {
            "not": {
              "required": [
                "attach_account_id"
              ]
            },
            "required": [
              "create_account_id"
            ]
          },
          {
            "not": {
              "required": [
                "create_account_id"
              ]
            },
            "required": [
              "attach_account_id"
            ]
          }
        ],
        "properties": {
          "attach_account_id": {
            "type": "string"
          },
          "create_account_id": {
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_Provenance": {
        "additionalProperties": false,
        "properties": {
          "cause": {
            "type": "string"
          },
          "channel_id": {
            "type": "string"
          },
          "provider": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ProviderCoordinates"
          },
          "reconciliation": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ReconciliationProvenance"
          }
        },
        "required": [
          "channel_id",
          "cause"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ProviderCoordinates": {
        "additionalProperties": false,
        "properties": {
          "gm_msgid": {
            "type": "string"
          },
          "mailbox": {
            "type": "string"
          },
          "uid": {
            "type": "string"
          },
          "uidvalidity": {
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ProviderFromAddressAvailability": {
        "enum": [
          "PROVIDER_FROM_ADDRESS_AVAILABILITY_UNSPECIFIED",
          "PROVIDER_FROM_ADDRESS_AVAILABILITY_AVAILABLE",
          "PROVIDER_FROM_ADDRESS_AVAILABILITY_UNSUPPORTED",
          "PROVIDER_FROM_ADDRESS_AVAILABILITY_REAUTHORIZATION_REQUIRED"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_ProviderFromAddressCompleteness": {
        "enum": [
          "PROVIDER_FROM_ADDRESS_COMPLETENESS_UNSPECIFIED",
          "PROVIDER_FROM_ADDRESS_COMPLETENESS_COMPLETE",
          "PROVIDER_FROM_ADDRESS_COMPLETENESS_PARTIAL"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_ProviderFromAddressStatus": {
        "enum": [
          "PROVIDER_FROM_ADDRESS_STATUS_UNSPECIFIED",
          "PROVIDER_FROM_ADDRESS_STATUS_AVAILABLE",
          "PROVIDER_FROM_ADDRESS_STATUS_PENDING",
          "PROVIDER_FROM_ADDRESS_STATUS_UNKNOWN"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_ProviderFromAddressSuggestion": {
        "additionalProperties": false,
        "properties": {
          "address": {
            "type": "string"
          },
          "display_name": {
            "type": "string"
          },
          "provider_default": {
            "type": "boolean"
          },
          "status": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ProviderFromAddressStatus",
            "x-traummail-catalog": "strict"
          }
        },
        "required": [
          "address",
          "provider_default",
          "status"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ProviderId": {
        "additionalProperties": false,
        "properties": {
          "object_id": {
            "type": "string"
          },
          "rfc_message_id": {
            "type": "string"
          }
        },
        "required": [
          "object_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ProvisionDelegatedUserRequest": {
        "additionalProperties": false,
        "properties": {
          "external_subject": {
            "type": "string"
          },
          "username": {
            "type": "string"
          }
        },
        "required": [
          "external_subject",
          "username"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ProvisionDelegatedUserResponse": {
        "additionalProperties": false,
        "properties": {
          "created": {
            "type": "boolean"
          },
          "grant": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DelegatedLoginGrant"
          },
          "user": {
            "$ref": "#/components/schemas/traummail_gateway_v1_User"
          }
        },
        "required": [
          "created"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_PurgeAccountRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          }
        },
        "required": [
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_PurgeAccountResponse": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_PutDraftRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "draft_id": {
            "type": "string"
          },
          "expected_revision": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "upload_ref": {
            "type": "string"
          }
        },
        "required": [
          "account_id",
          "upload_ref"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ReconciliationProvenance": {
        "additionalProperties": false,
        "properties": {
          "observation_id": {
            "type": "string"
          },
          "synchronization_id": {
            "type": "string"
          }
        },
        "required": [
          "synchronization_id",
          "observation_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_RegisterRequest": {
        "additionalProperties": false,
        "properties": {
          "password": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PasswordCredential"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_RejectTunnelManifestRequest": {
        "additionalProperties": false,
        "properties": {
          "generation": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "tunnel_id": {
            "type": "string"
          }
        },
        "required": [
          "tunnel_id",
          "generation"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_RemoveLoginMethodRequest": {
        "additionalProperties": false,
        "properties": {
          "login_method_id": {
            "type": "string"
          }
        },
        "required": [
          "login_method_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_RemoveLoginMethodResponse": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ResourceReference": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "version": {
            "pattern": "^[0-9]+$",
            "type": "string"
          }
        },
        "required": [
          "type",
          "id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ResumeEventConsumerRequest": {
        "additionalProperties": false,
        "properties": {
          "consumer_id": {
            "type": "string"
          }
        },
        "required": [
          "consumer_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_RevokeGrantRequest": {
        "additionalProperties": false,
        "properties": {
          "grant_id": {
            "type": "string"
          }
        },
        "required": [
          "grant_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_RevokeGrantResponse": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_RevokeSessionRequest": {
        "additionalProperties": false,
        "properties": {
          "session_id": {
            "type": "string"
          }
        },
        "required": [
          "session_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_RevokeSessionResponse": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_RevokeTunnelApiKeyRequest": {
        "additionalProperties": false,
        "properties": {
          "credential_id": {
            "type": "string"
          }
        },
        "required": [
          "credential_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_RevokeTunnelApiKeyRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_NOT_FOUND",
          "ERROR_CODE_GATEWAY_ERROR_FAILED_PRECONDITION",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_RevokeTunnelRequest": {
        "additionalProperties": false,
        "properties": {
          "expected_generation": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "tunnel_id": {
            "type": "string"
          }
        },
        "required": [
          "tunnel_id",
          "expected_generation"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_RevokeTunnelRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_NOT_FOUND",
          "ERROR_CODE_GATEWAY_ERROR_FAILED_PRECONDITION",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_RevokeTunnelServiceRequest": {
        "additionalProperties": false,
        "properties": {
          "tunnel_service_id": {
            "type": "string"
          }
        },
        "required": [
          "tunnel_service_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_RevokeTunnelServiceRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_NOT_FOUND",
          "ERROR_CODE_GATEWAY_ERROR_FAILED_PRECONDITION",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_RotateSecretRequest": {
        "additionalProperties": false,
        "properties": {
          "app_id": {
            "type": "string"
          }
        },
        "required": [
          "app_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_RotateSecretResponse": {
        "additionalProperties": false,
        "properties": {
          "client_secret": {
            "type": "string"
          },
          "old_secret_expires": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "client_secret"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_RotateTunnelApiKeyRequest": {
        "additionalProperties": false,
        "properties": {
          "tunnel_id": {
            "type": "string"
          }
        },
        "required": [
          "tunnel_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_RotateTunnelApiKeyRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_NOT_FOUND",
          "ERROR_CODE_GATEWAY_ERROR_FAILED_PRECONDITION",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_ServiceBinding": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "adapter": {
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "freshness_policy": {
            "$ref": "#/components/schemas/traummail_gateway_v1_FreshnessPolicy",
            "x-traummail-catalog": "strict"
          },
          "generation": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "intended_capabilities": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_Capability"
            },
            "type": "array",
            "x-traummail-catalog": "strict"
          },
          "issues": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_ServiceBindingIssue"
            },
            "type": "array"
          },
          "lifecycle": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ServiceBindingLifecycle",
            "x-traummail-catalog": "strict"
          },
          "mail_actions": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "provider": {
            "type": "string"
          },
          "public_display_hint": {
            "type": "string"
          },
          "read_epoch": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "role": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ServiceRole",
            "x-traummail-catalog": "strict"
          },
          "updated_at": {
            "format": "date-time",
            "type": "string"
          },
          "working_capabilities": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_Capability"
            },
            "type": "array",
            "x-traummail-catalog": "strict"
          }
        },
        "required": [
          "id",
          "account_id",
          "role",
          "provider",
          "adapter",
          "lifecycle",
          "generation",
          "read_epoch",
          "intended_capabilities",
          "working_capabilities",
          "mail_actions"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ServiceBindingIssue": {
        "additionalProperties": false,
        "properties": {
          "affected_capabilities": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_Capability"
            },
            "type": "array",
            "x-traummail-catalog": "strict"
          },
          "failure": {
            "$ref": "#/components/schemas/traummail_gateway_v1_Failure"
          },
          "next_retry_at": {
            "format": "date-time",
            "type": "string"
          },
          "observed_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "affected_capabilities"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ServiceBindingLifecycle": {
        "enum": [
          "SERVICE_BINDING_LIFECYCLE_UNSPECIFIED",
          "SERVICE_BINDING_LIFECYCLE_PROVISIONING",
          "SERVICE_BINDING_LIFECYCLE_ACTIVE",
          "SERVICE_BINDING_LIFECYCLE_DRAINING",
          "SERVICE_BINDING_LIFECYCLE_DISCONNECTED",
          "SERVICE_BINDING_LIFECYCLE_PURGING"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_ServiceBindingRoute": {
        "additionalProperties": false,
        "properties": {
          "binding_generation": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "direct": {
            "type": "boolean"
          },
          "route_generation": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "service_binding_id": {
            "type": "string"
          },
          "tunnel_id": {
            "type": "string"
          },
          "tunnel_service_id": {
            "type": "string"
          }
        },
        "required": [
          "service_binding_id",
          "binding_generation",
          "route_generation"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ServiceConnectionResult": {
        "additionalProperties": false,
        "properties": {
          "binding_generation": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "binding_id": {
            "type": "string"
          },
          "failure": {
            "$ref": "#/components/schemas/traummail_gateway_v1_Failure"
          },
          "role": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ServiceRole",
            "x-traummail-catalog": "strict"
          },
          "state": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ServiceConnectionResult_State",
            "x-traummail-catalog": "strict"
          }
        },
        "required": [
          "role",
          "state"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ServiceConnectionResult_State": {
        "enum": [
          "STATE_UNSPECIFIED",
          "STATE_PENDING",
          "STATE_CONNECTED",
          "STATE_FAILED",
          "STATE_REAUTHORIZATION_REQUIRED",
          "STATE_UNSUPPORTED"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_ServiceConnectionSelection": {
        "additionalProperties": false,
        "properties": {
          "adapter": {
            "type": "string"
          },
          "authorization_input_id": {
            "type": "string"
          },
          "requested_capabilities": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_Capability"
            },
            "type": "array",
            "x-traummail-catalog": "strict"
          },
          "role": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ServiceRole",
            "x-traummail-catalog": "strict"
          }
        },
        "required": [
          "authorization_input_id",
          "role",
          "adapter",
          "requested_capabilities"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ServiceRole": {
        "enum": [
          "SERVICE_ROLE_UNSPECIFIED",
          "SERVICE_ROLE_MAIL_READ",
          "SERVICE_ROLE_MAIL_SEND",
          "SERVICE_ROLE_CONTACTS",
          "SERVICE_ROLE_CALENDAR"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_SetDelegatedLoginRequest": {
        "additionalProperties": false,
        "properties": {
          "app_id": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "app_id",
          "enabled"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_SetDelegatedLoginResponse": {
        "additionalProperties": false,
        "properties": {
          "app": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AdminApp"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_SetMessageFlagsRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "flagged": {
            "type": "boolean"
          },
          "idempotency_key": {
            "type": "string"
          },
          "provider_id": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ProviderId"
          },
          "seen": {
            "type": "boolean"
          },
          "source_scope": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MailMutationSourceScope"
          }
        },
        "required": [
          "account_id",
          "idempotency_key",
          "provider_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_SnapshotResourceKind": {
        "enum": [
          "SNAPSHOT_RESOURCE_KIND_UNSPECIFIED",
          "SNAPSHOT_RESOURCE_KIND_FOLDERS",
          "SNAPSHOT_RESOURCE_KIND_DRAFTS",
          "SNAPSHOT_RESOURCE_KIND_MESSAGE_SUBMISSIONS"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_DescribeInboxMailboxConnectRequest": {
        "additionalProperties": false,
        "properties": {
          "inbox_continuation": {
            "type": "string"
          }
        },
        "required": [
          "inbox_continuation"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_DescribeInboxMailboxConnectResponse": {
        "additionalProperties": false,
        "properties": {
          "inbox_home_url": {
            "type": "string"
          },
          "intent": {
            "$ref": "#/components/schemas/traummail_gateway_v1_InboxMailboxConnectIntent"
          }
        },
        "required": [
          "inbox_home_url",
          "intent"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_StartInboxMailboxConnectRequest": {
        "additionalProperties": false,
        "properties": {
          "intent": {
            "$ref": "#/components/schemas/traummail_gateway_v1_InboxMailboxConnectIntent"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_StartInboxMailboxConnectResponse": {
        "additionalProperties": false,
        "properties": {
          "connect_url": {
            "type": "string"
          },
          "expires_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "connect_url"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_StartProviderAgentOptinRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          }
        },
        "required": [
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_StartProviderAgentOptinResponse": {
        "additionalProperties": false,
        "properties": {
          "authorize_url": {
            "type": "string"
          },
          "expires_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "authorize_url",
          "expires_at"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_RemoveProviderAgentOptinRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          }
        },
        "required": [
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_RemoveProviderAgentOptinResponse": {
        "additionalProperties": false,
        "properties": {
          "provider_agent_optin": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ProviderAgentOptin",
            "x-traummail-catalog": "strict"
          }
        },
        "required": [
          "provider_agent_optin"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ProviderIntegrationClient": {
        "type": "string",
        "enum": [
          "standard",
          "agent"
        ],
        "description": "Which of a provider's OAuth clients an integration is: the owner's own connection, or the separate client for AI-agent work."
      },
      "traummail_gateway_v1_ProviderIntegrationStatus": {
        "type": "string",
        "enum": [
          "not_configured",
          "unchecked",
          "ok",
          "rejected",
          "unreachable"
        ],
        "description": "The last check of one provider OAuth client."
      },
      "traummail_gateway_v1_ProviderIntegrationCapability": {
        "type": "string",
        "enum": [
          "mail_connect",
          "agent_actions"
        ],
        "description": "What a provider integration enables while usable."
      },
      "traummail_gateway_v1_ProviderIntegration": {
        "additionalProperties": false,
        "properties": {
          "provider": {
            "type": "string"
          },
          "client": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ProviderIntegrationClient",
            "x-traummail-catalog": "strict"
          },
          "status": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ProviderIntegrationStatus",
            "x-traummail-catalog": "strict"
          },
          "capability": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ProviderIntegrationCapability",
            "x-traummail-catalog": "strict"
          },
          "error": {
            "type": "string"
          },
          "checked_at": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "provider",
          "client",
          "status",
          "capability"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ListProviderIntegrationsRequest": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_RecheckProviderIntegrationsRequest": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListProviderIntegrationsResponse": {
        "additionalProperties": false,
        "properties": {
          "integrations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_ProviderIntegration"
            }
          }
        },
        "required": [
          "integrations"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_StartServiceConnectionRequest": {
        "additionalProperties": false,
        "properties": {
          "authorization_inputs": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_AuthorizationInput"
            },
            "type": "array"
          },
          "connection_id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "login_hint": {
            "type": "string"
          },
          "services": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_ServiceConnectionSelection"
            },
            "type": "array"
          },
          "target": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PreparedServiceConnectionTarget"
          }
        },
        "required": [
          "connection_id",
          "idempotency_key"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_StartServiceConnectionRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT",
          "ERROR_CODE_GATEWAY_ERROR_FAILED_PRECONDITION",
          "ERROR_CODE_GATEWAY_ERROR_RESOURCE_EXHAUSTED",
          "ERROR_CODE_SYNC_ERROR_PROVIDER_UNAVAILABLE",
          "ERROR_CODE_SYNC_ERROR_PROVIDER_TIMEOUT",
          "ERROR_CODE_SYNC_ERROR_NOT_SUPPORTED"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_StartServiceConnectionResponse": {
        "additionalProperties": false,
        "properties": {
          "authorize_url": {
            "type": "string"
          },
          "connection_id": {
            "type": "string"
          }
        },
        "required": [
          "connection_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_StartSynchronizationRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "selection": {
            "$ref": "#/components/schemas/traummail_gateway_v1_SyncSelection"
          }
        },
        "required": [
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_SyncChanges": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_SyncCompleted": {
        "additionalProperties": false,
        "properties": {
          "count": {
            "pattern": "^-?[0-9]+$",
            "type": "string"
          },
          "job_id": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          }
        },
        "required": [
          "count",
          "job_id",
          "operation_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_SyncFailed": {
        "additionalProperties": false,
        "properties": {
          "failure": {
            "$ref": "#/components/schemas/traummail_gateway_v1_Failure"
          },
          "job_id": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          }
        },
        "required": [
          "job_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_SyncHistory": {
        "additionalProperties": false,
        "properties": {
          "account": {
            "type": "boolean"
          },
          "after": {
            "format": "date-time",
            "type": "string"
          },
          "before": {
            "format": "date-time",
            "type": "string"
          },
          "beginning": {
            "type": "boolean"
          },
          "mailboxes": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MailboxScope"
          },
          "snapshot_now": {
            "type": "boolean"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_SyncMode": {
        "enum": [
          "SYNC_MODE_UNSPECIFIED",
          "SYNC_MODE_INCREMENTAL",
          "SYNC_MODE_FULL"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_SyncParams": {
        "additionalProperties": false,
        "properties": {
          "mailboxes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "mode": {
            "$ref": "#/components/schemas/traummail_gateway_v1_SyncMode",
            "x-traummail-catalog": "strict"
          },
          "window": {
            "$ref": "#/components/schemas/traummail_gateway_v1_TimeWindow"
          }
        },
        "required": [
          "mode",
          "mailboxes"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_SyncProgress": {
        "additionalProperties": false,
        "properties": {
          "chunk": {
            "pattern": "^-?[0-9]+$",
            "type": "string"
          },
          "done": {
            "pattern": "^-?[0-9]+$",
            "type": "string"
          },
          "job_id": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "total": {
            "pattern": "^-?[0-9]+$",
            "type": "string"
          }
        },
        "required": [
          "done",
          "chunk",
          "job_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_SyncSelection": {
        "additionalProperties": false,
        "properties": {
          "changes": {
            "$ref": "#/components/schemas/traummail_gateway_v1_SyncChanges"
          },
          "history": {
            "$ref": "#/components/schemas/traummail_gateway_v1_SyncHistory"
          },
          "snapshot": {
            "$ref": "#/components/schemas/traummail_gateway_v1_SyncSnapshot"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_SyncSnapshot": {
        "additionalProperties": false,
        "properties": {
          "resource": {
            "$ref": "#/components/schemas/traummail_gateway_v1_SnapshotResourceKind",
            "x-traummail-catalog": "strict"
          },
          "terminal_since": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "resource"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_SyncStarted": {
        "additionalProperties": false,
        "properties": {
          "job_id": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "selection": {
            "$ref": "#/components/schemas/traummail_gateway_v1_SyncSelection"
          }
        },
        "required": [
          "job_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_Synchronization": {
        "additionalProperties": false,
        "properties": {
          "accepted_at": {
            "format": "date-time",
            "type": "string"
          },
          "account_id": {
            "type": "string"
          },
          "completed_at": {
            "format": "date-time",
            "type": "string"
          },
          "completed_items": {
            "pattern": "^-?[0-9]+$",
            "type": "string"
          },
          "failure": {
            "$ref": "#/components/schemas/traummail_gateway_v1_Failure"
          },
          "id": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "proof": {
            "$ref": "#/components/schemas/traummail_gateway_v1_SynchronizationProof"
          },
          "selection": {
            "$ref": "#/components/schemas/traummail_gateway_v1_SyncSelection"
          },
          "started_at": {
            "format": "date-time",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/traummail_gateway_v1_SynchronizationStatus",
            "x-traummail-catalog": "strict"
          },
          "total_items": {
            "pattern": "^-?[0-9]+$",
            "type": "string"
          }
        },
        "required": [
          "id",
          "account_id",
          "status",
          "completed_items"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_SynchronizationCoverage": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "completed_at": {
            "format": "date-time",
            "type": "string"
          },
          "from": {
            "format": "date-time",
            "type": "string"
          },
          "mailbox_id": {
            "type": "string"
          },
          "proof": {
            "$ref": "#/components/schemas/traummail_gateway_v1_SynchronizationCoverageProof"
          },
          "synchronization_id": {
            "type": "string"
          },
          "to": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "account_id",
          "mailbox_id",
          "synchronization_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_SynchronizationCoverageProof": {
        "additionalProperties": false,
        "properties": {
          "limitations": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_SynchronizationLimitation"
            },
            "type": "array"
          },
          "outcome": {
            "$ref": "#/components/schemas/traummail_gateway_v1_SynchronizationScopeOutcomeStatus",
            "x-traummail-catalog": "strict"
          },
          "scope_generation": {
            "type": "string"
          },
          "valid": {
            "type": "boolean"
          }
        },
        "required": [
          "outcome",
          "valid"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_SynchronizationLimitation": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "detail"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_SynchronizationProof": {
        "additionalProperties": false,
        "properties": {
          "completed_coverage": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_SynchronizationCoverage"
            },
            "type": "array"
          },
          "observed_items": {
            "pattern": "^-?[0-9]+$",
            "type": "string"
          },
          "scope_outcomes": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_SynchronizationScopeOutcome"
            },
            "type": "array"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_SynchronizationScopeOutcome": {
        "additionalProperties": false,
        "properties": {
          "limitations": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_SynchronizationLimitation"
            },
            "type": "array"
          },
          "mailbox_id": {
            "type": "string"
          },
          "scope_generation": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/traummail_gateway_v1_SynchronizationScopeOutcomeStatus",
            "x-traummail-catalog": "strict"
          }
        },
        "required": [
          "mailbox_id",
          "status"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_SynchronizationScopeOutcomeStatus": {
        "enum": [
          "SYNCHRONIZATION_SCOPE_OUTCOME_STATUS_UNSPECIFIED",
          "SYNCHRONIZATION_SCOPE_OUTCOME_STATUS_COMPLETE",
          "SYNCHRONIZATION_SCOPE_OUTCOME_STATUS_INCOMPLETE",
          "SYNCHRONIZATION_SCOPE_OUTCOME_STATUS_ABORTED_GENERATION_CHANGE",
          "SYNCHRONIZATION_SCOPE_OUTCOME_STATUS_UNSUPPORTED",
          "SYNCHRONIZATION_SCOPE_OUTCOME_STATUS_UNAVAILABLE"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_SynchronizationStatus": {
        "enum": [
          "SYNCHRONIZATION_STATUS_UNSPECIFIED",
          "SYNCHRONIZATION_STATUS_QUEUED",
          "SYNCHRONIZATION_STATUS_RUNNING",
          "SYNCHRONIZATION_STATUS_SUCCEEDED",
          "SYNCHRONIZATION_STATUS_FAILED",
          "SYNCHRONIZATION_STATUS_CANCELED"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_TimeWindow": {
        "additionalProperties": false,
        "properties": {
          "after": {
            "format": "date-time",
            "type": "string"
          },
          "before": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_TimelineEntry": {
        "additionalProperties": false,
        "properties": {
          "created": {
            "format": "date-time",
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "type",
          "detail"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_TransportSecurity": {
        "enum": [
          "TRANSPORT_SECURITY_UNSPECIFIED",
          "TRANSPORT_SECURITY_TLS",
          "TRANSPORT_SECURITY_STARTTLS",
          "TRANSPORT_SECURITY_PLAINTEXT"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_Tunnel": {
        "additionalProperties": false,
        "properties": {
          "approved_manifest_generation": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "approved_manifest_hash": {
            "contentEncoding": "base64",
            "type": "string"
          },
          "contract_identity": {
            "contentEncoding": "base64",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "display_name": {
            "type": "string"
          },
          "generation": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "lifecycle": {
            "$ref": "#/components/schemas/traummail_gateway_v1_TunnelLifecycle",
            "x-traummail-catalog": "strict"
          },
          "owner_id": {
            "type": "string"
          },
          "ownership": {
            "$ref": "#/components/schemas/traummail_gateway_v1_TunnelOwnership",
            "x-traummail-catalog": "strict"
          },
          "revoked_at": {
            "format": "date-time",
            "type": "string"
          },
          "tenant_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tenant_id",
          "ownership",
          "owner_id",
          "display_name",
          "lifecycle",
          "contract_identity",
          "generation"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_TunnelApiKeyResponse": {
        "additionalProperties": false,
        "properties": {
          "api_key": {
            "type": "string"
          },
          "credential_id": {
            "type": "string"
          },
          "visible_prefix": {
            "type": "string"
          }
        },
        "required": [
          "credential_id",
          "api_key",
          "visible_prefix"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_TunnelDependent": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "binding_generation": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "service_binding_id": {
            "type": "string"
          },
          "tunnel_service_id": {
            "type": "string"
          }
        },
        "required": [
          "account_id",
          "service_binding_id",
          "binding_generation",
          "tunnel_service_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_TunnelHostPolicy": {
        "enum": [
          "TUNNEL_HOST_POLICY_UNSPECIFIED",
          "TUNNEL_HOST_POLICY_LOOPBACK_V4",
          "TUNNEL_HOST_POLICY_LOOPBACK_V6",
          "TUNNEL_HOST_POLICY_PUBLIC_DNS_NAME"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_TunnelLifecycle": {
        "enum": [
          "TUNNEL_LIFECYCLE_UNSPECIFIED",
          "TUNNEL_LIFECYCLE_ENROLLING",
          "TUNNEL_LIFECYCLE_ACTIVE",
          "TUNNEL_LIFECYCLE_REVOKED",
          "TUNNEL_LIFECYCLE_DELETING"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_TunnelManifestProposal": {
        "additionalProperties": false,
        "properties": {
          "generation": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "services": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_TunnelServiceResource"
            },
            "type": "array"
          },
          "tunnel_id": {
            "type": "string"
          }
        },
        "required": [
          "tunnel_id",
          "generation"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_TunnelOwnership": {
        "enum": [
          "TUNNEL_OWNERSHIP_UNSPECIFIED",
          "TUNNEL_OWNERSHIP_PERSONAL",
          "TUNNEL_OWNERSHIP_SHARED"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_TunnelServiceProtocol": {
        "enum": [
          "TUNNEL_SERVICE_PROTOCOL_UNSPECIFIED",
          "TUNNEL_SERVICE_PROTOCOL_IMAP",
          "TUNNEL_SERVICE_PROTOCOL_SMTP"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_TunnelServiceResource": {
        "additionalProperties": false,
        "properties": {
          "display_name": {
            "type": "string"
          },
          "host_policy": {
            "$ref": "#/components/schemas/traummail_gateway_v1_TunnelHostPolicy",
            "x-traummail-catalog": "strict"
          },
          "id": {
            "type": "string"
          },
          "idle_timeout_ms": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "max_connections": {
            "minimum": 0,
            "type": "integer"
          },
          "max_stream_bytes": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "operation_timeout_ms": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "protocol": {
            "$ref": "#/components/schemas/traummail_gateway_v1_TunnelServiceProtocol",
            "x-traummail-catalog": "strict"
          },
          "public_dns_name": {
            "type": "string"
          },
          "revoked": {
            "type": "boolean"
          },
          "target_port": {
            "minimum": 0,
            "type": "integer"
          },
          "target_tls_policy": {
            "$ref": "#/components/schemas/traummail_gateway_v1_TunnelTargetTlsPolicy",
            "x-traummail-catalog": "strict"
          },
          "tls_certificate_sha256": {
            "contentEncoding": "base64",
            "type": "string"
          },
          "tls_server_name": {
            "type": "string"
          },
          "tunnel_id": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "tunnel_id",
          "protocol",
          "host_policy",
          "target_port",
          "target_tls_policy",
          "max_connections",
          "max_stream_bytes",
          "idle_timeout_ms",
          "operation_timeout_ms",
          "revoked",
          "display_name"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_TunnelStatus": {
        "additionalProperties": false,
        "properties": {
          "active_streams": {
            "minimum": 0,
            "type": "integer"
          },
          "bytes_relayed": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "connected_at": {
            "format": "date-time",
            "type": "string"
          },
          "online": {
            "type": "boolean"
          },
          "proposed_manifest": {
            "$ref": "#/components/schemas/traummail_gateway_v1_TunnelManifestProposal"
          },
          "reconnect_count": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "safe_error_code": {
            "type": "string"
          },
          "tunnel_id": {
            "type": "string"
          }
        },
        "required": [
          "tunnel_id",
          "online",
          "active_streams",
          "bytes_relayed",
          "reconnect_count"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_TunnelTargetTlsPolicy": {
        "enum": [
          "TUNNEL_TARGET_TLS_POLICY_UNSPECIFIED",
          "TUNNEL_TARGET_TLS_POLICY_WEBPKI",
          "TUNNEL_TARGET_TLS_POLICY_PINNED_CERTIFICATE_SHA256"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_UpdateAccountRequest": {
        "additionalProperties": false,
        "oneOf": [
          {
            "not": {
              "required": [
                "clear_personal_label"
              ]
            },
            "required": [
              "set_personal_label"
            ]
          },
          {
            "not": {
              "required": [
                "set_personal_label"
              ]
            },
            "required": [
              "clear_personal_label"
            ]
          }
        ],
        "properties": {
          "account_id": {
            "type": "string"
          },
          "clear_personal_label": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ClearPersonalLabel"
          },
          "default_display_name": {
            "description": "Owner-authored default sender name. For updates, absence keeps the value and an empty string clears it.",
            "type": "string"
          },
          "expected_presentation_revision": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "set_personal_label": {
            "type": "string"
          }
        },
        "required": [
          "account_id",
          "expected_presentation_revision"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_UpdateAccountRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT",
          "ERROR_CODE_GATEWAY_ERROR_FAILED_PRECONDITION",
          "ERROR_CODE_GATEWAY_ERROR_RESOURCE_EXHAUSTED",
          "ERROR_CODE_GATEWAY_ERROR_CONCURRENT_MODIFICATION"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_UpdateAccountResponse": {
        "additionalProperties": false,
        "properties": {
          "presentation": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountPresentation"
          }
        },
        "required": [
          "presentation"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_UpdateAppRequest": {
        "additionalProperties": false,
        "properties": {
          "app_id": {
            "type": "string"
          },
          "client_jwks": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "redirect_uris": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "required_scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "app_id",
          "name",
          "redirect_uris",
          "scopes",
          "required_scopes"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_UpdateEventConsumerRequest": {
        "additionalProperties": false,
        "properties": {
          "consumer_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "push_endpoint": {
            "type": "string"
          }
        },
        "required": [
          "consumer_id",
          "name",
          "push_endpoint"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_UpdateTunnelRequest": {
        "additionalProperties": false,
        "properties": {
          "display_name": {
            "type": "string"
          },
          "expected_generation": {
            "pattern": "^[0-9]+$",
            "type": "string"
          },
          "tunnel_id": {
            "type": "string"
          }
        },
        "required": [
          "tunnel_id",
          "expected_generation",
          "display_name"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_UpdateTunnelRequest_ErrorCode": {
        "enum": [
          "ERROR_CODE_UNSPECIFIED",
          "ERROR_CODE_GATEWAY_ERROR_UNAUTHENTICATED",
          "ERROR_CODE_GATEWAY_ERROR_PERMISSION_DENIED",
          "ERROR_CODE_GATEWAY_ERROR_NOT_FOUND",
          "ERROR_CODE_GATEWAY_ERROR_INVALID_ARGUMENT",
          "ERROR_CODE_GATEWAY_ERROR_FAILED_PRECONDITION"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_User": {
        "additionalProperties": false,
        "properties": {
          "allow_app_create": {
            "type": "boolean"
          },
          "created": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "username": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "username",
          "allow_app_create"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_UserEventBuffer": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_UserSession": {
        "additionalProperties": false,
        "properties": {
          "created": {
            "format": "date-time",
            "type": "string"
          },
          "current": {
            "type": "boolean"
          },
          "expires": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "last_accessed": {
            "format": "date-time",
            "type": "string"
          },
          "user_agent": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "user_agent",
          "current"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_WhoamiRequest": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_WhoamiResponse": {
        "additionalProperties": false,
        "properties": {
          "requires_login_setup": {
            "type": "boolean"
          },
          "user": {
            "$ref": "#/components/schemas/traummail_gateway_v1_User"
          }
        },
        "required": [
          "requires_login_setup"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_SentFiling": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "status": {
                "const": "not_required",
                "x-traummail-catalog": "open"
              }
            },
            "required": [
              "status"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "status": {
                "const": "provider_managed",
                "x-traummail-catalog": "open"
              }
            },
            "required": [
              "status"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "status": {
                "const": "awaiting_delivery",
                "x-traummail-catalog": "open"
              }
            },
            "required": [
              "status"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "status": {
                "const": "pending",
                "x-traummail-catalog": "open"
              }
            },
            "required": [
              "status"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "status": {
                "const": "attempted",
                "x-traummail-catalog": "open"
              }
            },
            "required": [
              "status"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "status": {
                "const": "retrying",
                "x-traummail-catalog": "open"
              },
              "failure": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Failure"
              }
            },
            "required": [
              "status",
              "failure"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "status": {
                "const": "uncertain",
                "x-traummail-catalog": "open"
              },
              "failure": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Failure"
              }
            },
            "required": [
              "status",
              "failure"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "status": {
                "const": "refused",
                "x-traummail-catalog": "open"
              },
              "failure": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Failure"
              }
            },
            "required": [
              "status",
              "failure"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "status": {
                "const": "acknowledged",
                "x-traummail-catalog": "open"
              },
              "uid": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 4294967295
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "failure": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/traummail_gateway_v1_Failure"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "status",
              "uid",
              "failure"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "status": {
                "const": "confirmed",
                "x-traummail-catalog": "open"
              },
              "uid": {
                "type": "integer",
                "minimum": 1,
                "maximum": 4294967295
              },
              "confirmed_at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "status",
              "uid",
              "confirmed_at"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "status": {
                "const": "abandoned",
                "x-traummail-catalog": "open"
              },
              "at": {
                "type": "string",
                "format": "date-time"
              }
            },
            "required": [
              "status",
              "at"
            ]
          },
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "pattern": "^[a-z][a-z0-9_]*$",
                "not": {
                  "enum": [
                    "not_required",
                    "provider_managed",
                    "awaiting_delivery",
                    "pending",
                    "attempted",
                    "retrying",
                    "uncertain",
                    "refused",
                    "acknowledged",
                    "confirmed",
                    "abandoned"
                  ]
                },
                "description": "A Sent filing state registered after this reader was built (open catalog): its other fields are unknown.",
                "x-traummail-catalog": "open"
              }
            },
            "required": [
              "status"
            ]
          }
        ]
      },
      "traummail_gateway_v1_ResolveSentFilingRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "account_id",
          "submission_id",
          "idempotency_key",
          "expected_version",
          "resolution"
        ],
        "properties": {
          "account_id": {
            "type": "string"
          },
          "submission_id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "expected_version": {
            "type": "string",
            "pattern": "^[1-9][0-9]*$"
          },
          "resolution": {
            "type": "string",
            "enum": [
              "retry",
              "abandon"
            ],
            "x-traummail-catalog": "strict"
          }
        }
      },
      "JsonRpcMessageSubmissionsResolveFilingRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "MessageSubmissions/resolve_filing"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ResolveSentFilingRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcMessageSubmissionsResolveFilingResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_MessageSubmission"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "traummail_gateway_v1_MailAuthProtocol": {
        "type": "string",
        "enum": [
          "imap",
          "smtp"
        ]
      },
      "traummail_gateway_v1_AuthenticationUnsupportedReason": {
        "type": "string",
        "enum": [
          "mechanism_refused",
          "encryption_required",
          "no_common_mechanism"
        ]
      },
      "traummail_gateway_v1_AccountReconnectCause": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "const": "authorization_expired",
                "x-traummail-catalog": "strict"
              }
            },
            "required": [
              "kind"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "const": "credential_unreadable",
                "x-traummail-catalog": "strict"
              }
            },
            "required": [
              "kind"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "const": "credentials_rejected",
                "x-traummail-catalog": "strict"
              },
              "protocol": {
                "$ref": "#/components/schemas/traummail_gateway_v1_MailAuthProtocol",
                "x-traummail-catalog": "strict"
              }
            },
            "required": [
              "kind",
              "protocol"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "const": "authentication_unsupported",
                "x-traummail-catalog": "strict"
              },
              "protocol": {
                "$ref": "#/components/schemas/traummail_gateway_v1_MailAuthProtocol",
                "x-traummail-catalog": "strict"
              },
              "reason": {
                "$ref": "#/components/schemas/traummail_gateway_v1_AuthenticationUnsupportedReason",
                "x-traummail-catalog": "strict"
              }
            },
            "required": [
              "kind",
              "protocol",
              "reason"
            ]
          }
        ]
      },
      "traummail_gateway_v1_AccountReconnect": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "cause": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountReconnectCause"
          }
        },
        "required": [
          "account_id",
          "cause"
        ]
      },
      "traummail_gateway_v1_Error": {
        "type": "object",
        "description": "JSON-RPC error data. account_reconnect is present exactly when action is ERROR_ACTION_RECONNECT_ACCOUNT.",
        "properties": {
          "code": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "retry_after": {
            "type": "string"
          },
          "account_reconnect": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountReconnect"
          }
        },
        "required": [
          "code",
          "description",
          "id",
          "action"
        ]
      },
      "traummail_gateway_v1_OwnerDecision": {
        "description": "A decision only the mailbox owner can make; each kind names its deciding method (confirm_delivery: MessageSubmissions/decide_delivery, review_change: Operations/decide, resolve_sent_copy: MessageSubmissions/resolve_filing, repair_account: Accounts/repair).",
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "const": "confirm_delivery",
                "x-traummail-catalog": "strict"
              },
              "submission_id": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "kind",
              "submission_id"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "const": "review_change",
                "x-traummail-catalog": "strict"
              },
              "evidence": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ChangeEvidence"
              },
              "retry_available": {
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "evidence",
              "retry_available"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "const": "resolve_sent_copy",
                "x-traummail-catalog": "strict"
              },
              "submission_id": {
                "type": "string",
                "minLength": 1
              },
              "cause": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Failure"
              }
            },
            "required": [
              "kind",
              "submission_id",
              "cause"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "const": "repair_account",
                "x-traummail-catalog": "strict"
              },
              "cause": {
                "$ref": "#/components/schemas/traummail_gateway_v1_AccountRepairCause"
              }
            },
            "required": [
              "kind",
              "cause"
            ]
          }
        ]
      },
      "traummail_gateway_v1_DeliveryEvidence": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "attempted_at": {
            "format": "date-time",
            "type": "string"
          },
          "cause": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DeliveryUncertainty",
            "x-traummail-catalog": "strict"
          },
          "searches": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_DeliverySearch"
            }
          }
        },
        "required": [
          "attempted_at",
          "cause",
          "searches"
        ]
      },
      "traummail_gateway_v1_DeliveryUncertainty": {
        "type": "string",
        "enum": [
          "response_lost",
          "attempt_interrupted"
        ]
      },
      "traummail_gateway_v1_DeliverySearch": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "searched_at": {
            "format": "date-time",
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DeliverySearchResult"
          }
        },
        "required": [
          "searched_at",
          "result"
        ]
      },
      "traummail_gateway_v1_DeliverySearchResult": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "const": "absent",
                "x-traummail-catalog": "strict"
              }
            },
            "required": [
              "kind"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "const": "unattributable",
                "x-traummail-catalog": "strict"
              }
            },
            "required": [
              "kind"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "const": "shared_message_id",
                "x-traummail-catalog": "strict"
              }
            },
            "required": [
              "kind"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "const": "search_failed",
                "x-traummail-catalog": "strict"
              },
              "code": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "kind",
              "code"
            ]
          }
        ]
      },
      "traummail_gateway_v1_ChangeEvidence": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "attempted_at": {
            "format": "date-time",
            "type": "string"
          },
          "checks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_ChangeCheck"
            }
          }
        },
        "required": [
          "attempted_at",
          "checks"
        ]
      },
      "traummail_gateway_v1_ChangeCheck": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "checked_at": {
            "format": "date-time",
            "type": "string"
          },
          "result": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ChangeCheckResult"
          }
        },
        "required": [
          "checked_at",
          "result"
        ]
      },
      "traummail_gateway_v1_ChangeCheckResult": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "const": "target_not_found",
                "x-traummail-catalog": "strict"
              }
            },
            "required": [
              "kind"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "const": "state_diverged",
                "x-traummail-catalog": "strict"
              }
            },
            "required": [
              "kind"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "const": "check_failed",
                "x-traummail-catalog": "strict"
              },
              "code": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "kind",
              "code"
            ]
          }
        ]
      },
      "traummail_gateway_v1_AccountRepairCause": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "const": "replica_inconsistent",
                "x-traummail-catalog": "strict"
              },
              "failure": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Failure"
              },
              "detected_at": {
                "format": "date-time",
                "type": "string"
              },
              "automatic_resyncs": {
                "type": "integer",
                "minimum": 0,
                "maximum": 4294967295
              }
            },
            "required": [
              "kind",
              "failure",
              "detected_at",
              "automatic_resyncs"
            ]
          }
        ]
      },
      "traummail_gateway_v1_DeliveryDecision": {
        "type": "string",
        "enum": [
          "send_again",
          "already_sent",
          "discard"
        ]
      },
      "traummail_gateway_v1_ChangeDecision": {
        "type": "string",
        "enum": [
          "retry",
          "dismiss"
        ]
      },
      "traummail_gateway_v1_InvocationActor": {
        "type": "string",
        "enum": [
          "user",
          "agent"
        ],
        "description": "Who initiated a Gateway request: the human user, or an AI agent acting for them. Declared by the mandatory `x-traummail-actor` request header."
      },
      "traummail_gateway_v1_DecideDeliveryRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "submission_id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "expected_version": {
            "type": "string",
            "pattern": "^[1-9][0-9]*$"
          },
          "decision": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DeliveryDecision",
            "x-traummail-catalog": "strict"
          }
        },
        "required": [
          "account_id",
          "submission_id",
          "idempotency_key",
          "expected_version",
          "decision"
        ]
      },
      "traummail_gateway_v1_DecideDeliveryResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "submission": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MessageSubmission"
          },
          "successor": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MessageSubmission"
          }
        },
        "required": [
          "submission"
        ],
        "description": "successor is present exactly for send_again."
      },
      "traummail_gateway_v1_DecideOperationRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "expected_version": {
            "type": "string",
            "pattern": "^[1-9][0-9]*$"
          },
          "decision": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ChangeDecision",
            "x-traummail-catalog": "strict"
          }
        },
        "required": [
          "account_id",
          "operation_id",
          "idempotency_key",
          "expected_version",
          "decision"
        ]
      },
      "traummail_gateway_v1_RepairAccountRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "operation_id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "expected_version": {
            "type": "string",
            "pattern": "^[1-9][0-9]*$"
          }
        },
        "required": [
          "account_id",
          "operation_id",
          "idempotency_key",
          "expected_version"
        ]
      },
      "JsonRpcMessageSubmissionsDecideDeliveryRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "MessageSubmissions/decide_delivery"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DecideDeliveryRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcMessageSubmissionsDecideDeliveryResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_DecideDeliveryResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcOperationsDecideRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Operations/decide"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DecideOperationRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcOperationsDecideResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAccountsRepairRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Accounts/repair"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_RepairAccountRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcAccountsStartProviderAgentOptinRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Accounts/start_provider_agent_optin"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_StartProviderAgentOptinRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition",
          "GatewayError.ResourceExhausted",
          "SyncError.AccountNotFound",
          "SyncError.ResourceExhausted",
          "SyncError.DependencyUnavailable"
        ]
      },
      "JsonRpcAccountsRepairResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAccountsStartProviderAgentOptinResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_StartProviderAgentOptinResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAccountInvitationsAnswerError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.InvalidArgument",
                              "GatewayError.NotFound",
                              "GatewayError.ResourceExhausted"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcAccountInvitationsAnswerRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AccountInvitations/answer"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AnswerAccountInvitationRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.InvalidArgument",
          "GatewayError.NotFound",
          "GatewayError.ResourceExhausted"
        ]
      },
      "JsonRpcAccountInvitationsAnswerResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_AnswerAccountInvitationResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcAccountInvitationsAnswerError"
          }
        ]
      },
      "JsonRpcAccountInvitationsListError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcAccountInvitationsListRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AccountInvitations/list"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListAccountInvitationsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": [
          "GatewayError.Unauthenticated"
        ]
      },
      "JsonRpcAccountInvitationsListResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListAccountInvitationsResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcAccountInvitationsListError"
          }
        ]
      },
      "JsonRpcAccountSharingGetError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.InvalidArgument"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcAccountSharingGetRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AccountSharing/get"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_GetAccountSharingRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.InvalidArgument"
        ]
      },
      "JsonRpcAccountSharingGetResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_AccountSharing"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcAccountSharingGetError"
          }
        ]
      },
      "JsonRpcAccountSharingInviteError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.InvalidArgument",
                              "GatewayError.NotFound",
                              "GatewayError.AlreadyExists",
                              "GatewayError.ResourceExhausted"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcAccountSharingInviteRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AccountSharing/invite"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_InviteAccountMemberRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.InvalidArgument",
          "GatewayError.NotFound",
          "GatewayError.AlreadyExists",
          "GatewayError.ResourceExhausted"
        ]
      },
      "JsonRpcAccountSharingInviteResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_AccountInvitation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcAccountSharingInviteError"
          }
        ]
      },
      "JsonRpcAccountSharingRemoveMemberError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.InvalidArgument"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcAccountSharingRemoveMemberRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AccountSharing/remove_member"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_RemoveAccountMemberRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.InvalidArgument"
        ]
      },
      "JsonRpcAccountSharingRemoveMemberResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_RemoveAccountMemberResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcAccountSharingRemoveMemberError"
          }
        ]
      },
      "JsonRpcAccountSharingSetMemberRightsError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.InvalidArgument"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcAccountSharingSetMemberRightsRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AccountSharing/set_member_rights"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_SetAccountMemberRightsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.InvalidArgument"
        ]
      },
      "JsonRpcAccountSharingSetMemberRightsResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_SetAccountMemberRightsResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcAccountSharingSetMemberRightsError"
          }
        ]
      },
      "JsonRpcAccountSharingWithdrawInvitationError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.InvalidArgument"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcAccountSharingWithdrawInvitationRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "AccountSharing/withdraw_invitation"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_WithdrawAccountInvitationRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.InvalidArgument"
        ]
      },
      "JsonRpcAccountSharingWithdrawInvitationResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_WithdrawAccountInvitationResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcAccountSharingWithdrawInvitationError"
          }
        ]
      },
      "traummail_gateway_v1_AccountAccess": {
        "additionalProperties": false,
        "properties": {
          "owner_username": {
            "type": "string",
            "description": "The owner's username, present exactly for a member."
          },
          "rights": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountRights"
          },
          "role": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountRole",
            "x-traummail-catalog": "strict"
          }
        },
        "required": [
          "role",
          "rights"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_AccountInvitation": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "type": "string"
          },
          "expires_at": {
            "format": "date-time",
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "invitee_username": {
            "type": "string"
          },
          "mailbox_hint": {
            "type": "string",
            "description": "The shared mailbox's provider display hint (its address), when available."
          },
          "owner_username": {
            "type": "string"
          },
          "rights": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountRights"
          }
        },
        "required": [
          "id",
          "account_id",
          "owner_username",
          "invitee_username",
          "rights",
          "created_at",
          "expires_at"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_AccountMember": {
        "additionalProperties": false,
        "properties": {
          "rights": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountRights"
          },
          "since": {
            "format": "date-time",
            "type": "string"
          },
          "user_id": {
            "type": "string"
          },
          "username": {
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "username",
          "rights",
          "since"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_AccountRights": {
        "additionalProperties": false,
        "properties": {
          "mail_modify": {
            "type": "boolean"
          },
          "mail_read": {
            "type": "boolean"
          },
          "mail_send": {
            "type": "boolean"
          }
        },
        "required": [
          "mail_read",
          "mail_modify",
          "mail_send"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_AccountRole": {
        "enum": [
          "owner",
          "member"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_AccountSharing": {
        "additionalProperties": false,
        "properties": {
          "invitations": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_AccountInvitation"
            },
            "type": "array"
          },
          "members": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_AccountMember"
            },
            "type": "array"
          }
        },
        "required": [
          "members",
          "invitations"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_AnswerAccountInvitationRequest": {
        "additionalProperties": false,
        "properties": {
          "accept": {
            "type": "boolean"
          },
          "invitation_id": {
            "type": "string"
          }
        },
        "required": [
          "invitation_id",
          "accept"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_AnswerAccountInvitationResponse": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_GetAccountSharingRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          }
        },
        "required": [
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_InviteAccountMemberRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "rights": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountRights"
          },
          "username": {
            "type": "string"
          }
        },
        "required": [
          "account_id",
          "username",
          "rights"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ListAccountInvitationsRequest": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_ListAccountInvitationsResponse": {
        "additionalProperties": false,
        "properties": {
          "invitations": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_AccountInvitation"
            },
            "type": "array"
          }
        },
        "required": [
          "invitations"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_RemoveAccountMemberRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "user_id": {
            "type": "string"
          }
        },
        "required": [
          "account_id",
          "user_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_RemoveAccountMemberResponse": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_SetAccountMemberRightsRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "rights": {
            "$ref": "#/components/schemas/traummail_gateway_v1_AccountRights"
          },
          "user_id": {
            "type": "string"
          }
        },
        "required": [
          "account_id",
          "user_id",
          "rights"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_SetAccountMemberRightsResponse": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_WithdrawAccountInvitationRequest": {
        "additionalProperties": false,
        "properties": {
          "invitation_id": {
            "type": "string"
          }
        },
        "required": [
          "invitation_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_WithdrawAccountInvitationResponse": {
        "additionalProperties": false,
        "properties": {},
        "required": [],
        "type": "object"
      },
      "JsonRpcFoldersCreateRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Folders/create"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_CreateFolderRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcFoldersCreateResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcFoldersDeleteRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Folders/delete"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DeleteFolderRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcFoldersDeleteResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcFoldersListRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Folders/list"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListFoldersRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": []
      },
      "JsonRpcFoldersListResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListFoldersResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcFoldersMoveRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Folders/move"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MoveFolderRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcFoldersMoveResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcFoldersRenameRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Folders/rename"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_RenameFolderRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcFoldersRenameResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "traummail_gateway_v1_CreateFolderRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "parent_id": {
            "type": "string",
            "description": "The folder to create the new folder in; absent for a top-level folder."
          },
          "source_scope": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MailMutationSourceScope"
          }
        },
        "required": [
          "account_id",
          "name",
          "idempotency_key"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_DeleteFolderRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "folder_id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "source_scope": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MailMutationSourceScope"
          }
        },
        "required": [
          "account_id",
          "folder_id",
          "idempotency_key"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ListFoldersRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageRequest"
          }
        },
        "required": [
          "account_id"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_ListFoldersResponse": {
        "additionalProperties": false,
        "properties": {
          "folders": {
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_Folder"
            },
            "type": "array"
          },
          "page": {
            "$ref": "#/components/schemas/traummail_gateway_v1_PageInfo"
          }
        },
        "required": [],
        "type": "object"
      },
      "traummail_gateway_v1_LabelChanged": {
        "additionalProperties": false,
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/traummail_gateway_v1_LabelChanged_ChangeKind",
            "x-traummail-catalog": "strict"
          },
          "label_id": {
            "type": "string"
          }
        },
        "required": [
          "label_id",
          "kind"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_LabelChanged_ChangeKind": {
        "enum": [
          "CHANGE_KIND_UNSPECIFIED",
          "CHANGE_KIND_CREATED",
          "CHANGE_KIND_UPDATED",
          "CHANGE_KIND_REMOVED"
        ],
        "type": "string"
      },
      "traummail_gateway_v1_MoveFolderRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "folder_id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "parent_id": {
            "type": "string",
            "description": "The folder to move the folder into; absent to move it to the top level."
          },
          "source_scope": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MailMutationSourceScope"
          }
        },
        "required": [
          "account_id",
          "folder_id",
          "idempotency_key"
        ],
        "type": "object",
        "description": "Moves a folder (with its subfolders) below `parent_id`, or to the top level when absent. The folder keeps its name."
      },
      "traummail_gateway_v1_RenameFolderRequest": {
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "folder_id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "source_scope": {
            "$ref": "#/components/schemas/traummail_gateway_v1_MailMutationSourceScope"
          }
        },
        "required": [
          "account_id",
          "folder_id",
          "name",
          "idempotency_key"
        ],
        "type": "object"
      },
      "traummail_gateway_v1_Label": {
        "type": "object",
        "additionalProperties": false,
        "description": "A provider label: a non-exclusive tag that never moves a message. Gmail labels, Outlook categories and IMAP keywords.",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "description": "The provider-native identity: a Gmail label id, an Outlook category name or a lower-case IMAP keyword."
          },
          "name": {
            "type": "string",
            "minLength": 1
          },
          "role": {
            "$ref": "#/components/schemas/traummail_gateway_v1_LabelRole",
            "x-traummail-catalog": "strict"
          },
          "color": {
            "$ref": "#/components/schemas/traummail_gateway_v1_LabelColor"
          }
        },
        "required": [
          "id",
          "name",
          "role"
        ]
      },
      "traummail_gateway_v1_LabelRole": {
        "type": "string",
        "enum": [
          "user",
          "important",
          "category_personal",
          "category_social",
          "category_promotions",
          "category_updates",
          "category_forums"
        ],
        "description": "user labels are authored by the mailbox owner; the other roles are the provider's own read-only classifications."
      },
      "traummail_gateway_v1_LabelColor": {
        "description": "A label's native color. Each provider accepts only its own scheme (LabelSupport.colors).",
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "const": "gmail_pair",
                "x-traummail-catalog": "strict"
              },
              "background": {
                "type": "string",
                "pattern": "^#[0-9a-f]{6}$"
              },
              "text": {
                "type": "string",
                "pattern": "^#[0-9a-f]{6}$"
              }
            },
            "required": [
              "kind",
              "background",
              "text"
            ]
          },
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "kind": {
                "const": "outlook_preset",
                "x-traummail-catalog": "strict"
              },
              "preset": {
                "type": "integer",
                "minimum": 0,
                "maximum": 24
              }
            },
            "required": [
              "kind",
              "preset"
            ]
          }
        ]
      },
      "traummail_gateway_v1_LabelColorScheme": {
        "type": "string",
        "enum": [
          "none",
          "gmail_palette",
          "outlook_presets"
        ]
      },
      "traummail_gateway_v1_LabelCreation": {
        "type": "string",
        "enum": [
          "catalogue",
          "on_apply",
          "unsupported"
        ],
        "description": "catalogue: Labels/create creates a label before use; on_apply: applying a new name with Messages/patch_labels creates it; unsupported: the account cannot store new labels."
      },
      "traummail_gateway_v1_LabelSupport": {
        "type": "object",
        "additionalProperties": false,
        "description": "What a caller can do with an account's labels.",
        "properties": {
          "apply": {
            "type": "boolean",
            "description": "User labels can be added to and removed from messages."
          },
          "creation": {
            "$ref": "#/components/schemas/traummail_gateway_v1_LabelCreation",
            "x-traummail-catalog": "strict"
          },
          "rename": {
            "type": "boolean"
          },
          "recolor": {
            "type": "boolean"
          },
          "delete": {
            "type": "boolean"
          },
          "colors": {
            "$ref": "#/components/schemas/traummail_gateway_v1_LabelColorScheme",
            "x-traummail-catalog": "strict"
          }
        },
        "required": [
          "apply",
          "creation",
          "rename",
          "recolor",
          "delete",
          "colors"
        ]
      },
      "traummail_gateway_v1_ListLabelsRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          }
        },
        "required": [
          "account_id"
        ]
      },
      "traummail_gateway_v1_ListLabelsResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "labels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/traummail_gateway_v1_Label"
            }
          },
          "support": {
            "$ref": "#/components/schemas/traummail_gateway_v1_LabelSupport"
          }
        },
        "required": [
          "labels",
          "support"
        ]
      },
      "traummail_gateway_v1_CreateLabelRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "color": {
            "$ref": "#/components/schemas/traummail_gateway_v1_LabelColor"
          },
          "idempotency_key": {
            "type": "string"
          }
        },
        "required": [
          "account_id",
          "name",
          "idempotency_key"
        ]
      },
      "traummail_gateway_v1_UpdateLabelRequest": {
        "type": "object",
        "additionalProperties": false,
        "description": "A new name, a new color, or both.",
        "properties": {
          "account_id": {
            "type": "string"
          },
          "label_id": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "color": {
            "$ref": "#/components/schemas/traummail_gateway_v1_LabelColor"
          },
          "idempotency_key": {
            "type": "string"
          }
        },
        "required": [
          "account_id",
          "label_id",
          "idempotency_key"
        ]
      },
      "traummail_gateway_v1_DeleteLabelRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "account_id": {
            "type": "string"
          },
          "label_id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          }
        },
        "required": [
          "account_id",
          "label_id",
          "idempotency_key"
        ]
      },
      "JsonRpcLabelsCreateRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Labels/create"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_CreateLabelRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcLabelsCreateResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcLabelsDeleteRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Labels/delete"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_DeleteLabelRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcLabelsDeleteResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcLabelsListRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Labels/list"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_ListLabelsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "authenticated",
        "x-errors": []
      },
      "JsonRpcLabelsListResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_ListLabelsResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcLabelsUpdateRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Labels/update"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_UpdateLabelRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "bearer",
        "x-errors": []
      },
      "JsonRpcLabelsUpdateResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_Operation"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcError"
          }
        ]
      },
      "JsonRpcAccountsGetConnectionSettingsError": {
        "additionalProperties": false,
        "properties": {
          "error": {
            "additionalProperties": false,
            "properties": {
              "code": {
                "type": "integer"
              },
              "data": {
                "properties": {
                  "error": {
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/traummail_gateway_v1_Error"
                      },
                      {
                        "properties": {
                          "code": {
                            "enum": [
                              "GatewayError.Unauthenticated",
                              "GatewayError.PermissionDenied",
                              "GatewayError.InvalidArgument",
                              "GatewayError.FailedPrecondition"
                            ]
                          }
                        },
                        "required": [
                          "code"
                        ],
                        "type": "object"
                      }
                    ]
                  }
                },
                "required": [
                  "error"
                ],
                "type": "object"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "type": "object"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "error"
        ],
        "type": "object"
      },
      "JsonRpcAccountsGetConnectionSettingsRequest": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "jsonrpc": {
            "const": "2.0"
          },
          "method": {
            "const": "Accounts/get_connection_settings"
          },
          "params": {
            "$ref": "#/components/schemas/traummail_gateway_v1_GetAccountConnectionSettingsRequest"
          }
        },
        "required": [
          "jsonrpc",
          "id",
          "method",
          "params"
        ],
        "type": "object",
        "x-auth": "session",
        "x-errors": [
          "GatewayError.Unauthenticated",
          "GatewayError.PermissionDenied",
          "GatewayError.InvalidArgument",
          "GatewayError.FailedPrecondition"
        ]
      },
      "JsonRpcAccountsGetConnectionSettingsResponse": {
        "oneOf": [
          {
            "additionalProperties": false,
            "properties": {
              "id": {
                "oneOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "jsonrpc": {
                "const": "2.0"
              },
              "result": {
                "$ref": "#/components/schemas/traummail_gateway_v1_GetAccountConnectionSettingsResponse"
              }
            },
            "required": [
              "jsonrpc",
              "id",
              "result"
            ],
            "type": "object"
          },
          {
            "$ref": "#/components/schemas/JsonRpcAccountsGetConnectionSettingsError"
          }
        ]
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "bearerFormat": "JWT",
        "scheme": "bearer",
        "type": "http"
      },
      "clientBasic": {
        "description": "Confidential OIDC client_id and client_secret",
        "scheme": "basic",
        "type": "http"
      },
      "gatewaySession": {
        "in": "cookie",
        "name": "gateway_session",
        "type": "apiKey"
      }
    }
  },
  "info": {
    "description": "Projected from the native Rust Gateway DTO contract. Field names use the pinned native snake_case JSON projection.",
    "title": "traummail Gateway JSON-RPC API",
    "version": "1.0.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/rpc": {
      "post": {
        "operationId": "jsonRpc",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountConnectionsCompleteClassicalRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountConnectionsGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountConnectionsPrepareRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountConnectionsStartRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountInvitationsAnswerRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountInvitationsListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountSharingGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountSharingInviteRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountSharingRemoveMemberRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountSharingSetMemberRightsRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountSharingWithdrawInvitationRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsGetCoverageRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsStartRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountsDisconnectRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountsGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountsGetConnectionSettingsRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountsGetPresentationRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountsListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountsListTimelineRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountsPurgeRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountsRemoveProviderAgentOptinRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountsRepairRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountsStartProviderAgentOptinRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountsUpdateRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAdminAccountListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAdminAppListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAdminAppPairInboxClientRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAdminAppSetDelegatedLoginRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAdminProviderIntegrationListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAdminProviderIntegrationRecheckRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAdminUserListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAdminUserWhoamiRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppCreateRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppDeleteRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppListGrantsRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppRotateSecretRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppUpdateRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginCreateLinkTicketRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginCreateTicketRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginProvisionRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppGrantApproveRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppGrantDenyRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppGrantGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAuthListLoginMethodsForUsernameRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAuthListSessionsRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAuthLoginRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAuthLogoutRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAuthRevokeSessionRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAuthWhoamiRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcDraftsDeleteRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcDraftsGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcDraftsListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcDraftsPutRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcEventConsumerConfigCreateRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcEventConsumerConfigDeleteRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcEventConsumerConfigGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcEventConsumerConfigListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcEventConsumerConfigPauseRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcEventConsumerConfigResumeRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcEventConsumerConfigUpdateRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcEventsGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcEventsListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcFromAddressSuggestionsListProviderFromAddressSuggestionsRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcGrantListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcGrantRevokeRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcInboxMailboxConnectDescribeRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcInboxMailboxConnectStartRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMailDiscoveryDiscoverRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMailProviderListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMailboxesCreateRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMailboxesDeleteRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMailboxesListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMailboxesRenameRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCancelRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessageSubmissionsResolveFilingRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessageSubmissionsDecideDeliveryRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCreateRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCreateFromDraftRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessageSubmissionsGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessageSubmissionsListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessagesArchiveRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessagesDeleteRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessagesSetFlagsRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessagesPatchLabelsRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessagesMarkSpamRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessagesMoveRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessagesRestoreRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessagesTrashRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessagesUnarchiveRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessagesUnmarkSpamRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcOperationsCancelRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcOperationsDecideRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcOperationsGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcOperationsListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcServiceBindingChangeRouteRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcServiceBindingGetRouteRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelApproveManifestRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelRejectManifestRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelGetSetupInfoRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelCreateRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelDeleteRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelGetStatusRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelListDependentsRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelRevokeRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelUpdateRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialCreateApiKeyRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialRevokeRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialRotateRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelServiceDeleteRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelServiceGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelServiceListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelServiceRevokeRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcUserAddLoginMethodRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcUserChangePasswordRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcUserDeleteSelfRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcUserListLoginMethodsRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcUserRegisterRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcUserRemoveLoginMethodRequest"
                      }
                    ]
                  },
                  {
                    "items": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountConnectionsCompleteClassicalRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountConnectionsGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountConnectionsPrepareRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountConnectionsStartRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountInvitationsAnswerRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountInvitationsListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSharingGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSharingInviteRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSharingRemoveMemberRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSharingSetMemberRightsRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSharingWithdrawInvitationRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsGetCoverageRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsStartRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsDisconnectRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsGetConnectionSettingsRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsGetPresentationRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsListTimelineRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsPurgeRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsRemoveProviderAgentOptinRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsRepairRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsStartProviderAgentOptinRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsUpdateRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminAccountListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminAppListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminAppPairInboxClientRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminAppSetDelegatedLoginRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminProviderIntegrationListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminProviderIntegrationRecheckRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminUserListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminUserWhoamiRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppCreateRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppDeleteRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppListGrantsRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppRotateSecretRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppUpdateRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginCreateLinkTicketRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginCreateTicketRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginProvisionRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppGrantApproveRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppGrantDenyRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppGrantGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthListLoginMethodsForUsernameRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthListSessionsRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthLoginRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthLogoutRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthRevokeSessionRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthWhoamiRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcDraftsDeleteRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcDraftsGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcDraftsListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcDraftsPutRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigCreateRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigDeleteRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigPauseRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigResumeRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigUpdateRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventsGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventsListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcFromAddressSuggestionsListProviderFromAddressSuggestionsRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcGrantListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcGrantRevokeRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcInboxMailboxConnectDescribeRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcInboxMailboxConnectStartRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMailDiscoveryDiscoverRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMailProviderListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMailboxesCreateRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMailboxesDeleteRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMailboxesListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMailboxesRenameRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCancelRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsResolveFilingRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsDecideDeliveryRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCreateRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCreateFromDraftRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesArchiveRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesDeleteRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesSetFlagsRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesPatchLabelsRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesMarkSpamRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesMoveRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesRestoreRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesTrashRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesUnarchiveRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesUnmarkSpamRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcOperationsCancelRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcOperationsDecideRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcOperationsGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcOperationsListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcServiceBindingChangeRouteRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcServiceBindingGetRouteRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelApproveManifestRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelRejectManifestRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelGetSetupInfoRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelCreateRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelDeleteRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelGetStatusRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelListDependentsRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelRevokeRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelUpdateRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialCreateApiKeyRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialRevokeRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialRotateRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelServiceDeleteRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelServiceGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelServiceListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelServiceRevokeRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserAddLoginMethodRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserChangePasswordRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserDeleteSelfRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserListLoginMethodsRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserRegisterRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserRemoveLoginMethodRequest"
                        }
                      ]
                    },
                    "maxItems": 20,
                    "minItems": 1,
                    "type": "array"
                  },
                  {
                    "oneOf": [
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountConnectionsCompleteClassicalRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountConnectionsGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountConnectionsPrepareRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountConnectionsStartRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsGetCoverageRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsStartRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountsDisconnectRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountsGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountsGetConnectionSettingsRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountsGetPresentationRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountsListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountsListTimelineRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountsPurgeRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountsRepairRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAccountsUpdateRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAdminAccountListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAdminAppListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAdminAppPairInboxClientRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAdminAppSetDelegatedLoginRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAdminUserListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAdminUserWhoamiRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppCreateRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppDeleteRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppListGrantsRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppRotateSecretRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppUpdateRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginCreateLinkTicketRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginCreateTicketRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginProvisionRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppGrantApproveRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppGrantDenyRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAppGrantGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAuthListLoginMethodsForUsernameRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAuthListSessionsRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAuthLoginRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAuthLogoutRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAuthRevokeSessionRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcAuthWhoamiRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcDraftsDeleteRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcDraftsGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcDraftsListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcDraftsPutRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcEventConsumerConfigCreateRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcEventConsumerConfigDeleteRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcEventConsumerConfigGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcEventConsumerConfigListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcEventConsumerConfigPauseRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcEventConsumerConfigResumeRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcEventConsumerConfigUpdateRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcEventsGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcEventsListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcFromAddressSuggestionsListProviderFromAddressSuggestionsRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcGrantListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcGrantRevokeRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcInboxMailboxConnectDescribeRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcInboxMailboxConnectStartRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMailDiscoveryDiscoverRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMailProviderListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcFoldersCreateRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcFoldersDeleteRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcFoldersListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcFoldersMoveRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcFoldersRenameRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcLabelsCreateRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcLabelsDeleteRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcLabelsListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcLabelsUpdateRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCancelRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessageSubmissionsResolveFilingRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessageSubmissionsDecideDeliveryRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCreateRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCreateFromDraftRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessageSubmissionsGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessageSubmissionsListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessagesArchiveRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessagesDeleteRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessagesSetFlagsRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessagesPatchLabelsRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessagesMarkSpamRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessagesMoveRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessagesRestoreRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessagesTrashRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessagesUnarchiveRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcMessagesUnmarkSpamRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcOperationsCancelRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcOperationsDecideRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcOperationsGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcOperationsListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcServiceBindingChangeRouteRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcServiceBindingGetRouteRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelApproveManifestRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelRejectManifestRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelGetSetupInfoRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelCreateRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelDeleteRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelGetStatusRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelListDependentsRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelRevokeRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelUpdateRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialCreateApiKeyRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialRevokeRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialRotateRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelServiceDeleteRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelServiceGetRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelServiceListRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcTunnelServiceRevokeRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcUserAddLoginMethodRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcUserChangePasswordRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcUserDeleteSelfRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcUserListLoginMethodsRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcUserRegisterRequest"
                      },
                      {
                        "$ref": "#/components/schemas/JsonRpcUserRemoveLoginMethodRequest"
                      }
                    ]
                  },
                  {
                    "items": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountConnectionsCompleteClassicalRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountConnectionsGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountConnectionsPrepareRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountConnectionsStartRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsGetCoverageRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsStartRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsDisconnectRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsGetConnectionSettingsRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsGetPresentationRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsListTimelineRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsPurgeRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsRepairRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsUpdateRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminAccountListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminAppListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminAppPairInboxClientRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminAppSetDelegatedLoginRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminUserListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminUserWhoamiRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppCreateRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppDeleteRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppListGrantsRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppRotateSecretRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppUpdateRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginCreateLinkTicketRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginCreateTicketRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginProvisionRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppGrantApproveRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppGrantDenyRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppGrantGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthListLoginMethodsForUsernameRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthListSessionsRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthLoginRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthLogoutRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthRevokeSessionRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthWhoamiRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcDraftsDeleteRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcDraftsGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcDraftsListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcDraftsPutRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigCreateRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigDeleteRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigPauseRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigResumeRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigUpdateRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventsGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventsListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcFromAddressSuggestionsListProviderFromAddressSuggestionsRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcGrantListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcGrantRevokeRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcInboxMailboxConnectDescribeRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcInboxMailboxConnectStartRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMailDiscoveryDiscoverRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMailProviderListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcFoldersCreateRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcFoldersDeleteRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcFoldersListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcFoldersMoveRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcFoldersRenameRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcLabelsCreateRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcLabelsDeleteRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcLabelsListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcLabelsUpdateRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCancelRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsResolveFilingRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsDecideDeliveryRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCreateRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCreateFromDraftRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesArchiveRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesDeleteRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesSetFlagsRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesPatchLabelsRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesMarkSpamRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesMoveRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesRestoreRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesTrashRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesUnarchiveRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesUnmarkSpamRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcOperationsCancelRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcOperationsDecideRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcOperationsGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcOperationsListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcServiceBindingChangeRouteRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcServiceBindingGetRouteRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelApproveManifestRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelRejectManifestRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelGetSetupInfoRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelCreateRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelDeleteRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelGetStatusRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelListDependentsRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelRevokeRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelUpdateRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialCreateApiKeyRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialRevokeRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialRotateRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelServiceDeleteRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelServiceGetRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelServiceListRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelServiceRevokeRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserAddLoginMethodRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserChangePasswordRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserDeleteSelfRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserListLoginMethodsRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserRegisterRequest"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserRemoveLoginMethodRequest"
                        }
                      ]
                    },
                    "maxItems": 20,
                    "minItems": 1,
                    "type": "array"
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountConnectionsCompleteClassicalResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountConnectionsGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountConnectionsPrepareResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountConnectionsStartResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountInvitationsAnswerResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountInvitationsListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSharingGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSharingInviteResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSharingRemoveMemberResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSharingSetMemberRightsResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSharingWithdrawInvitationResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsGetCoverageResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsStartResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsDisconnectResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsGetConnectionSettingsResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsGetPresentationResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsListTimelineResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsPurgeResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsRemoveProviderAgentOptinResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsRepairResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsStartProviderAgentOptinResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsUpdateResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminAccountListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminAppListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminAppPairInboxClientResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminAppSetDelegatedLoginResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminProviderIntegrationListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminProviderIntegrationRecheckResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminUserListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminUserWhoamiResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppCreateResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppDeleteResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppListGrantsResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppRotateSecretResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppUpdateResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginCreateLinkTicketResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginCreateTicketResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginProvisionResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppGrantApproveResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppGrantDenyResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppGrantGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthListLoginMethodsForUsernameResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthListSessionsResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthLoginResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthLogoutResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthRevokeSessionResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthWhoamiResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcDraftsDeleteResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcDraftsGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcDraftsListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcDraftsPutResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigCreateResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigDeleteResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigPauseResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigResumeResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigUpdateResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventsGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventsListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcFromAddressSuggestionsListProviderFromAddressSuggestionsResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcGrantListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcGrantRevokeResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcInboxMailboxConnectDescribeResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcInboxMailboxConnectStartResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMailDiscoveryDiscoverResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMailProviderListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMailboxesCreateResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMailboxesDeleteResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMailboxesListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMailboxesRenameResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCancelResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsResolveFilingResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsDecideDeliveryResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCreateResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCreateFromDraftResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesArchiveResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesDeleteResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesSetFlagsResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesPatchLabelsResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesMarkSpamResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesMoveResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesRestoreResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesTrashResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesUnarchiveResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesUnmarkSpamResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcOperationsCancelResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcOperationsDecideResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcOperationsGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcOperationsListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcServiceBindingChangeRouteResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcServiceBindingGetRouteResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelApproveManifestResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelRejectManifestResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelGetSetupInfoResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelCreateResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelDeleteResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelGetStatusResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelListDependentsResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelRevokeResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelUpdateResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialCreateApiKeyResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialRevokeResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialRotateResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelServiceDeleteResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelServiceGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelServiceListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelServiceRevokeResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserAddLoginMethodResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserChangePasswordResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserDeleteSelfResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserListLoginMethodsResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserRegisterResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserRemoveLoginMethodResponse"
                        }
                      ]
                    },
                    {
                      "items": {
                        "oneOf": [
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountConnectionsCompleteClassicalResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountConnectionsGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountConnectionsPrepareResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountConnectionsStartResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountInvitationsAnswerResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountInvitationsListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountSharingGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountSharingInviteResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountSharingRemoveMemberResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountSharingSetMemberRightsResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountSharingWithdrawInvitationResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsGetCoverageResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsStartResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountsDisconnectResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountsGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountsGetConnectionSettingsResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountsGetPresentationResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountsListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountsListTimelineResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountsPurgeResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountsRemoveProviderAgentOptinResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountsRepairResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountsStartProviderAgentOptinResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountsUpdateResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAdminAccountListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAdminAppListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAdminAppPairInboxClientResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAdminAppSetDelegatedLoginResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAdminProviderIntegrationListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAdminProviderIntegrationRecheckResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAdminUserListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAdminUserWhoamiResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppCreateResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppDeleteResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppListGrantsResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppRotateSecretResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppUpdateResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginCreateLinkTicketResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginCreateTicketResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginProvisionResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppGrantApproveResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppGrantDenyResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppGrantGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAuthListLoginMethodsForUsernameResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAuthListSessionsResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAuthLoginResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAuthLogoutResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAuthRevokeSessionResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAuthWhoamiResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcDraftsDeleteResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcDraftsGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcDraftsListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcDraftsPutResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcEventConsumerConfigCreateResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcEventConsumerConfigDeleteResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcEventConsumerConfigGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcEventConsumerConfigListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcEventConsumerConfigPauseResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcEventConsumerConfigResumeResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcEventConsumerConfigUpdateResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcEventsGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcEventsListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcFromAddressSuggestionsListProviderFromAddressSuggestionsResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcGrantListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcGrantRevokeResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcInboxMailboxConnectDescribeResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcInboxMailboxConnectStartResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMailDiscoveryDiscoverResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMailProviderListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMailboxesCreateResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMailboxesDeleteResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMailboxesListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMailboxesRenameResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCancelResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessageSubmissionsResolveFilingResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessageSubmissionsDecideDeliveryResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCreateResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCreateFromDraftResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessageSubmissionsGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessageSubmissionsListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessagesArchiveResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessagesDeleteResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessagesSetFlagsResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessagesPatchLabelsResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessagesMarkSpamResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessagesMoveResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessagesRestoreResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessagesTrashResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessagesUnarchiveResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessagesUnmarkSpamResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcOperationsCancelResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcOperationsDecideResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcOperationsGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcOperationsListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcServiceBindingChangeRouteResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcServiceBindingGetRouteResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelApproveManifestResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelRejectManifestResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelGetSetupInfoResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelCreateResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelDeleteResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelGetStatusResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelListDependentsResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelRevokeResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelUpdateResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialCreateApiKeyResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialRevokeResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialRotateResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelServiceDeleteResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelServiceGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelServiceListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelServiceRevokeResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcUserAddLoginMethodResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcUserChangePasswordResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcUserDeleteSelfResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcUserListLoginMethodsResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcUserRegisterResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcUserRemoveLoginMethodResponse"
                          }
                        ]
                      },
                      "maxItems": 20,
                      "minItems": 1,
                      "type": "array"
                    },
                    {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountConnectionsCompleteClassicalResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountConnectionsGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountConnectionsPrepareResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountConnectionsStartResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsGetCoverageResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsStartResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsDisconnectResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsGetConnectionSettingsResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsGetPresentationResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsListTimelineResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsPurgeResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsRepairResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAccountsUpdateResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminAccountListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminAppListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminAppPairInboxClientResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminAppSetDelegatedLoginResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminUserListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAdminUserWhoamiResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppCreateResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppDeleteResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppListGrantsResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppRotateSecretResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppUpdateResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginCreateLinkTicketResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginCreateTicketResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginProvisionResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppGrantApproveResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppGrantDenyResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAppGrantGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthListLoginMethodsForUsernameResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthListSessionsResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthLoginResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthLogoutResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthRevokeSessionResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcAuthWhoamiResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcDraftsDeleteResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcDraftsGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcDraftsListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcDraftsPutResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigCreateResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigDeleteResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigPauseResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigResumeResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventConsumerConfigUpdateResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventsGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcEventsListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcFromAddressSuggestionsListProviderFromAddressSuggestionsResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcGrantListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcGrantRevokeResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcInboxMailboxConnectDescribeResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcInboxMailboxConnectStartResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMailDiscoveryDiscoverResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMailProviderListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcFoldersCreateResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcFoldersDeleteResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcFoldersListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcFoldersMoveResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcFoldersRenameResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcLabelsCreateResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcLabelsDeleteResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcLabelsListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcLabelsUpdateResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCancelResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsResolveFilingResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsDecideDeliveryResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCreateResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCreateFromDraftResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessageSubmissionsListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesArchiveResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesDeleteResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesSetFlagsResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesPatchLabelsResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesMarkSpamResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesMoveResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesRestoreResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesTrashResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesUnarchiveResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcMessagesUnmarkSpamResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcOperationsCancelResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcOperationsDecideResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcOperationsGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcOperationsListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcServiceBindingChangeRouteResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcServiceBindingGetRouteResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelApproveManifestResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelRejectManifestResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelGetSetupInfoResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelCreateResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelDeleteResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelGetStatusResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelListDependentsResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelRevokeResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelUpdateResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialCreateApiKeyResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialRevokeResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialRotateResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelServiceDeleteResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelServiceGetResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelServiceListResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcTunnelServiceRevokeResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserAddLoginMethodResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserChangePasswordResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserDeleteSelfResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserListLoginMethodsResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserRegisterResponse"
                        },
                        {
                          "$ref": "#/components/schemas/JsonRpcUserRemoveLoginMethodResponse"
                        }
                      ]
                    },
                    {
                      "items": {
                        "oneOf": [
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountConnectionsCompleteClassicalResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountConnectionsGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountConnectionsPrepareResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountConnectionsStartResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsGetCoverageResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountSynchronizationsStartResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountsDisconnectResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountsGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountsGetConnectionSettingsResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountsGetPresentationResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountsListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountsListTimelineResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountsPurgeResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountsRepairResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAccountsUpdateResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAdminAccountListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAdminAppListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAdminAppPairInboxClientResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAdminAppSetDelegatedLoginResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAdminUserListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAdminUserWhoamiResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppCreateResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppDeleteResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppListGrantsResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppRotateSecretResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppUpdateResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginCreateLinkTicketResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginCreateTicketResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppDelegatedLoginProvisionResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppGrantApproveResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppGrantDenyResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAppGrantGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAuthListLoginMethodsForUsernameResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAuthListSessionsResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAuthLoginResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAuthLogoutResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAuthRevokeSessionResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcAuthWhoamiResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcDraftsDeleteResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcDraftsGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcDraftsListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcDraftsPutResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcEventConsumerConfigCreateResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcEventConsumerConfigDeleteResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcEventConsumerConfigGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcEventConsumerConfigListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcEventConsumerConfigPauseResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcEventConsumerConfigResumeResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcEventConsumerConfigUpdateResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcEventsGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcEventsListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcFromAddressSuggestionsListProviderFromAddressSuggestionsResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcGrantListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcGrantRevokeResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcInboxMailboxConnectDescribeResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcInboxMailboxConnectStartResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMailDiscoveryDiscoverResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMailProviderListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcFoldersCreateResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcFoldersDeleteResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcFoldersListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcFoldersMoveResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcFoldersRenameResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcLabelsCreateResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcLabelsDeleteResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcLabelsListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcLabelsUpdateResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCancelResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessageSubmissionsResolveFilingResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessageSubmissionsDecideDeliveryResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCreateResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessageSubmissionsCreateFromDraftResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessageSubmissionsGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessageSubmissionsListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessagesArchiveResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessagesDeleteResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessagesSetFlagsResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessagesPatchLabelsResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessagesMarkSpamResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessagesMoveResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessagesRestoreResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessagesTrashResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessagesUnarchiveResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcMessagesUnmarkSpamResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcOperationsCancelResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcOperationsDecideResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcOperationsGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcOperationsListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcServiceBindingChangeRouteResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcServiceBindingGetRouteResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelApproveManifestResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelRejectManifestResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelGetSetupInfoResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelCreateResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelDeleteResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelGetStatusResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelListDependentsResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelRevokeResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelUpdateResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialCreateApiKeyResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialRevokeResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelRuntimeCredentialRotateResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelServiceDeleteResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelServiceGetResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelServiceListResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcTunnelServiceRevokeResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcUserAddLoginMethodResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcUserChangePasswordResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcUserDeleteSelfResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcUserListLoginMethodsResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcUserRegisterResponse"
                          },
                          {
                            "$ref": "#/components/schemas/JsonRpcUserRemoveLoginMethodResponse"
                          }
                        ]
                      },
                      "maxItems": 20,
                      "minItems": 1,
                      "type": "array"
                    }
                  ]
                }
              }
            },
            "description": "JSON-RPC success or error envelope; batch responses preserve request order."
          },
          "403": {
            "description": "Cross-origin browser request refused."
          },
          "415": {
            "description": "Content-Type is not application/json."
          }
        },
        "security": [
          {},
          {
            "gatewaySession": []
          },
          {
            "bearerAuth": []
          },
          {
            "clientBasic": []
          }
        ],
        "summary": "Call one or more generated JSON-RPC methods"
      }
    }
  },
  "x-jsonrpc-method-registry": "./jsonrpc-methods.json",
  "x-traummail-enum-field-registry": "./enum-fields.json"
}
