{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "chain": {
                "type": "string",
                "enum": ["solana", "eip155", "cosmos"]
              },
              "address": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "kind": {
                "type": "string",
                "const": "wallet"
              },
              "scope": {
                "type": "string",
                "const": "project"
              },
              "revision": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "linked": {
                "type": "boolean"
              },
              "linkedAt": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unlinkedAt": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unlinkedBy": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "canUnlink": {
                "type": "boolean"
              },
              "canRelink": {
                "type": "boolean"
              },
              "signIn": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source": {
                "type": "string"
              },
              "import": {
                "type": "string"
              }
            },
            "required": [
              "chain",
              "address",
              "kind",
              "scope",
              "revision",
              "linked",
              "linkedAt",
              "unlinkedAt",
              "unlinkedBy",
              "canUnlink",
              "canRelink",
              "signIn"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "oauth"
              },
              "provider": {
                "type": "string",
                "enum": ["x", "discord"]
              },
              "issuer": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "subject": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "scope": {
                "type": "string",
                "const": "project"
              },
              "revision": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "linked": {
                "type": "boolean"
              },
              "linkedAt": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unlinkedAt": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unlinkedBy": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "canUnlink": {
                "type": "boolean"
              },
              "canRelink": {
                "type": "boolean"
              },
              "signIn": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "imported": {
                "type": "boolean"
              },
              "vouchedBy": {
                "type": "object",
                "properties": {
                  "integration": {
                    "type": "string"
                  },
                  "integrationName": {
                    "type": "string"
                  }
                },
                "required": ["integration", "integrationName"]
              },
              "source": {
                "type": "string"
              },
              "import": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "provider",
              "issuer",
              "subject",
              "scope",
              "revision",
              "linked",
              "linkedAt",
              "unlinkedAt",
              "unlinkedBy",
              "canUnlink",
              "canRelink",
              "signIn"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "telegram"
              },
              "subject": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "scope": {
                "type": "string",
                "const": "project"
              },
              "revision": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "linked": {
                "type": "boolean"
              },
              "linkedAt": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unlinkedAt": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unlinkedBy": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "canUnlink": {
                "type": "boolean"
              },
              "canRelink": {
                "type": "boolean"
              },
              "signIn": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "imported": {
                "type": "boolean"
              },
              "vouchedBy": {
                "type": "object",
                "properties": {
                  "integration": {
                    "type": "string"
                  },
                  "integrationName": {
                    "type": "string"
                  }
                },
                "required": ["integration", "integrationName"]
              },
              "source": {
                "type": "string"
              },
              "import": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "subject",
              "scope",
              "revision",
              "linked",
              "linkedAt",
              "unlinkedAt",
              "unlinkedBy",
              "canUnlink",
              "canRelink",
              "signIn"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "app"
              },
              "appKind": {
                "type": "string",
                "pattern": "^app:[a-z0-9][a-z0-9_-]{0,39}$"
              },
              "subject": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "scope": {
                "type": "string",
                "const": "project"
              },
              "revision": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "linked": {
                "type": "boolean"
              },
              "linkedAt": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unlinkedAt": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unlinkedBy": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "canUnlink": {
                "type": "boolean"
              },
              "canRelink": {
                "type": "boolean"
              },
              "signIn": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "source": {
                "type": "string"
              },
              "import": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "appKind",
              "subject",
              "scope",
              "revision",
              "linked",
              "linkedAt",
              "unlinkedAt",
              "unlinkedBy",
              "canUnlink",
              "canRelink",
              "signIn"
            ],
            "additionalProperties": false
          }
        ]
      }
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 4096
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": ["items", "nextCursor"]
}
