{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/maevesocial-com/json-schema/maevesocial-com-public-calendar-feed-dto-schema.json",
  "title": "PublicCalendarFeedDto",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/maevesocial-com-openapi.yml#/components/schemas/PublicCalendarFeedDto",
  "type": "object",
  "properties": {
    "items": {
      "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)$"
          },
          "itemKind": {
            "type": "string",
            "enum": [
              "content",
              "plannedDraft"
            ]
          },
          "postId": {
            "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)$"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "captionSummary": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "pending_approval",
              "rejected",
              "scheduled",
              "sent",
              "failed",
              "cancelled"
            ]
          },
          "workflowStatus": {
            "type": "string",
            "enum": [
              "drafting",
              "review",
              "approved",
              "scheduled",
              "published"
            ]
          },
          "plannedAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "scheduledAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "calendarAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "sentAt": {
            "format": "date-time",
            "type": [
              "string",
              "null"
            ]
          },
          "integrationId": {
            "type": [
              "string",
              "null"
            ],
            "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)$"
          },
          "platform": {
            "type": [
              "string",
              "null"
            ]
          },
          "accountLabel": {
            "type": [
              "string",
              "null"
            ]
          },
          "postType": {
            "type": [
              "string",
              "null"
            ]
          },
          "contentMedia": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/PublicContentMediaAttachmentDto"
            }
          },
          "labels": {
            "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)$"
                },
                "name": {
                  "type": "string"
                },
                "color": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "name",
                "color"
              ],
              "additionalProperties": false
            }
          },
          "pillars": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/PublicContentPillarDto"
            }
          },
          "formats": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/PublicContentFormatDto"
            }
          },
          "campaignId": {
            "type": [
              "string",
              "null"
            ],
            "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)$"
          },
          "priority": {
            "type": [
              "string",
              "null"
            ]
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "itemKind",
          "postId",
          "title",
          "captionSummary",
          "status",
          "workflowStatus",
          "plannedAt",
          "scheduledAt",
          "calendarAt",
          "sentAt",
          "integrationId",
          "platform",
          "accountLabel",
          "postType",
          "contentMedia",
          "labels",
          "pillars",
          "formats",
          "campaignId",
          "priority",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false
      }
    },
    "tasks": {
      "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)$"
          },
          "title": {
            "type": "string"
          },
          "dueDate": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "enum": [
              "open",
              "overdue",
              "completed"
            ]
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "urgent",
              "high",
              "medium",
              "low"
            ]
          },
          "column": {
            "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)$"
              },
              "name": {
                "type": "string"
              },
              "systemKey": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "backlog",
                  "in_progress",
                  "review",
                  "done"
                ]
              }
            },
            "required": [
              "id",
              "name",
              "systemKey"
            ],
            "additionalProperties": false
          },
          "labels": {
            "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)$"
                },
                "name": {
                  "type": "string"
                },
                "color": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "groupId": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "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)$"
                }
              },
              "required": [
                "id",
                "name",
                "color",
                "groupId"
              ],
              "additionalProperties": false
            }
          },
          "checklist": {
            "type": "object",
            "properties": {
              "completed": {
                "type": "number"
              },
              "total": {
                "type": "number"
              }
            },
            "required": [
              "completed",
              "total"
            ],
            "additionalProperties": false
          },
          "linkedContent": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "postId": {
                "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)$"
              },
              "title": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "snippet": {
                "type": "string"
              },
              "stage": {
                "type": "string",
                "enum": [
                  "idea",
                  "drafting"
                ]
              },
              "effectiveStage": {
                "type": "string",
                "enum": [
                  "idea",
                  "drafting",
                  "review",
                  "scheduled",
                  "published"
                ]
              },
              "boardAddedAt": {
                "format": "date-time",
                "type": [
                  "string",
                  "null"
                ]
              },
              "updatedAt": {
                "format": "date-time",
                "type": "string"
              }
            },
            "required": [
              "postId",
              "title",
              "snippet",
              "stage",
              "effectiveStage",
              "boardAddedAt",
              "updatedAt"
            ],
            "additionalProperties": false
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "title",
          "dueDate",
          "state",
          "priority",
          "column",
          "labels",
          "checklist",
          "linkedContent",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false
      }
    },
    "pagination": {
      "type": "object",
      "properties": {
        "total": {
          "type": "number"
        },
        "limit": {
          "type": "number"
        },
        "offset": {
          "type": "number"
        },
        "hasMore": {
          "type": "boolean"
        },
        "taskTotal": {
          "type": "number"
        },
        "tasksTruncated": {
          "type": "boolean"
        }
      },
      "required": [
        "total",
        "limit",
        "offset",
        "hasMore"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "items",
    "tasks",
    "pagination"
  ],
  "additionalProperties": false,
  "$defs": {
    "PublicContentFormatDto": {
      "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)$"
        },
        "name": {
          "type": "string"
        },
        "color": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "sortOrder": {
          "type": "number"
        },
        "isSeeded": {
          "type": "boolean"
        },
        "archivedAt": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "name",
        "color",
        "sortOrder"
      ],
      "additionalProperties": false
    },
    "PublicContentMediaAttachmentDto": {
      "type": "object",
      "properties": {
        "mediaId": {
          "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)$"
        },
        "order": {
          "type": "number"
        },
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": [
            "string",
            "null"
          ]
        },
        "thumbnailUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "filename": {
          "type": [
            "string",
            "null"
          ]
        },
        "crops": {
          "type": "object",
          "additionalProperties": {}
        },
        "userTags": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": {}
          }
        },
        "productTags": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": {}
          }
        },
        "cover": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": {}
        }
      },
      "required": [
        "mediaId",
        "order",
        "type",
        "url",
        "thumbnailUrl",
        "filename",
        "crops",
        "userTags",
        "productTags",
        "cover"
      ],
      "additionalProperties": false
    },
    "PublicContentPillarDto": {
      "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)$"
        },
        "name": {
          "type": "string"
        },
        "color": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "sortOrder": {
          "type": "number"
        },
        "archivedAt": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "name",
        "color",
        "sortOrder"
      ],
      "additionalProperties": false
    }
  }
}