{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/connections-icu/json-schema/connections-icu-my-connect-response-schema.json",
  "title": "MyConnectResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/connections-icu-my-connect-api-openapi.yml#/components/schemas/MyConnectResponse",
  "type": "object",
  "required": [
    "profile"
  ],
  "properties": {
    "profile": {
      "$ref": "#/$defs/MyConnectProfile"
    }
  },
  "$defs": {
    "MyConnectProfile": {
      "type": "object",
      "description": "MyConnect profile for the current credential. The cards (share_cards, active_share_card_id) are read from the MyConnect plane.",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "handle": {
          "type": [
            "string",
            "null"
          ]
        },
        "bio": {
          "type": [
            "string",
            "null"
          ]
        },
        "image_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "background_image_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "share_cards": {
          "type": "array",
          "items": {
            "type": "object"
          }
        },
        "active_share_card_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "cards_version": {
          "type": "integer",
          "description": "Pass back as expected_cards_version to save the cards only if unchanged."
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}