{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blendduck-com/json-schema/blendduck-com-channels-response-schema.json",
  "title": "ChannelsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blendduck-com-channels-api-openapi.yml#/components/schemas/ChannelsResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "provider": {
            "type": "string",
            "minLength": 1
          },
          "displayName": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "type": "string",
            "enum": [
              "connected",
              "paused",
              "reconnect_required"
            ]
          },
          "profile": {
            "type": "object",
            "properties": {
              "handle": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "avatarUrl": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "handle",
              "avatarUrl"
            ],
            "additionalProperties": false
          },
          "connection": {
            "type": "object",
            "properties": {
              "tokenStatus": {
                "type": "string",
                "enum": [
                  "healthy",
                  "expiring",
                  "refresh_due",
                  "reconnect_required"
                ]
              },
              "tokenExpiresAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reconnectRequired": {
                "type": "boolean"
              }
            },
            "required": [
              "tokenStatus",
              "tokenExpiresAt",
              "reconnectRequired"
            ],
            "additionalProperties": false
          },
          "readiness": {
            "type": "object",
            "properties": {
              "publishing": {
                "type": "object",
                "properties": {
                  "state": {
                    "type": "string",
                    "enum": [
                      "unsupported",
                      "needs_setup",
                      "needs_reconnect",
                      "ready",
                      "verified"
                    ]
                  },
                  "configured": {
                    "type": "boolean"
                  },
                  "requiredScopes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "missingScopes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "access": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "public",
                          "review",
                          "partner"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "verifiedAt": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "state",
                  "configured",
                  "requiredScopes",
                  "missingScopes",
                  "access",
                  "verifiedAt"
                ],
                "additionalProperties": false
              },
              "analytics": {
                "type": "object",
                "properties": {
                  "state": {
                    "type": "string",
                    "enum": [
                      "unsupported",
                      "needs_setup",
                      "needs_reconnect",
                      "ready",
                      "verified"
                    ]
                  },
                  "configured": {
                    "type": "boolean"
                  },
                  "requiredScopes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "missingScopes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "access": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "public",
                          "review",
                          "partner"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "verifiedAt": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "state",
                  "configured",
                  "requiredScopes",
                  "missingScopes",
                  "access",
                  "verifiedAt"
                ],
                "additionalProperties": false
              },
              "inbox": {
                "type": "object",
                "properties": {
                  "state": {
                    "type": "string",
                    "enum": [
                      "unsupported",
                      "needs_setup",
                      "needs_reconnect",
                      "ready",
                      "verified"
                    ]
                  },
                  "configured": {
                    "type": "boolean"
                  },
                  "requiredScopes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "missingScopes": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "access": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "public",
                          "review",
                          "partner"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "verifiedAt": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "state",
                  "configured",
                  "requiredScopes",
                  "missingScopes",
                  "access",
                  "verifiedAt"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "publishing",
              "analytics",
              "inbox"
            ],
            "additionalProperties": false
          },
          "publishing": {
            "type": "object",
            "properties": {
              "supported": {
                "type": "boolean"
              },
              "timezone": {
                "type": "string",
                "minLength": 1
              },
              "weeklyGoal": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "postingTimes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "day": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    },
                    "minuteOfDay": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 1439
                    }
                  },
                  "required": [
                    "minuteOfDay"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "supported",
              "timezone",
              "weeklyGoal",
              "postingTimes"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "provider",
          "displayName",
          "status",
          "profile",
          "connection",
          "publishing"
        ],
        "additionalProperties": false
      }
    },
    "meta": {
      "type": "object",
      "properties": {
        "requestId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "pagination": {
          "type": "object",
          "properties": {
            "limit": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "hasMore": {
              "type": "boolean"
            },
            "nextCursor": {
              "anyOf": [
                {
                  "type": "string",
                  "minLength": 1
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "limit",
            "hasMore",
            "nextCursor"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "requestId",
        "pagination"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "data",
    "meta"
  ],
  "additionalProperties": false
}