{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flowra-dev/json-schema/flowra-dev-workflow-list-item-dto-paginated-response-schema.json",
  "title": "WorkflowListItemDtoPaginatedResponse",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/flowra-dev-openapi.json#/components/schemas/WorkflowListItemDtoPaginatedResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "description": "Success status"
    },
    "message": {
      "type": "string",
      "description": "Response message"
    },
    "data": {
      "description": "Array of items",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "projectId": {
            "type": "string"
          },
          "workflowType": {
            "type": "string",
            "enum": [
              "static",
              "agent"
            ]
          },
          "triggers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "manual",
                    "cron",
                    "trigger_tool"
                  ]
                },
                "expression": {
                  "type": "string"
                },
                "timezone": {
                  "type": "string"
                },
                "toolSlug": {
                  "type": "string"
                },
                "triggerToolInput": {
                  "type": "object"
                },
                "triggerId": {
                  "type": "string"
                },
                "toolkitName": {
                  "type": "string"
                },
                "toolkitLogo": {
                  "type": "string"
                }
              },
              "required": [
                "kind"
              ]
            }
          },
          "agent": {
            "type": "object",
            "properties": {
              "prompt": {
                "type": "string"
              },
              "modelSettings": {
                "type": "object"
              },
              "capabilities": {
                "type": "object"
              },
              "behavior": {
                "type": "object"
              },
              "identity": {
                "type": "object"
              },
              "skillIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "subAgentIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "knowledgeCollectionIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "databaseCollectionIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "databaseAccessPolicies": {
                "type": "object"
              },
              "starterPrompts": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "avatarUrl": {
                "type": "string"
              },
              "tools": {
                "type": "object",
                "properties": {
                  "mode": {
                    "enum": [
                      "NORMAL",
                      "META"
                    ],
                    "type": "string"
                  },
                  "discoveryWhitelist": {
                    "type": "boolean"
                  },
                  "pinnedSlugs": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "externalMcpConfigs": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "connectionCallbackUrl": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "visitorOwnerConnections": {
                    "$ref": "#/$defs/AgentVisitorOwnerConnectionsResponseDto"
                  }
                },
                "required": [
                  "mode"
                ]
              },
              "inputSchema": {
                "type": "object"
              },
              "outputSchema": {
                "type": "object"
              }
            },
            "required": [
              "prompt",
              "tools"
            ]
          },
          "graph": {
            "type": "object",
            "properties": {
              "nodes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "action",
                        "code",
                        "llm_agent",
                        "start",
                        "end",
                        "human_wait"
                      ]
                    },
                    "toolSlug": {
                      "type": "string"
                    },
                    "inputMapping": {
                      "type": "object"
                    },
                    "code": {
                      "type": "string"
                    },
                    "agent": {
                      "$ref": "#/$defs/GraphNodeAgentResponseDto"
                    },
                    "outputSchema": {
                      "type": "object"
                    }
                  },
                  "required": [
                    "id",
                    "type"
                  ]
                }
              },
              "edges": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "from": {
                      "type": "string"
                    },
                    "to": {
                      "type": "string"
                    },
                    "condition": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "from",
                    "to"
                  ]
                }
              },
              "inputSchema": {
                "type": "object"
              },
              "outputSchema": {
                "type": "object"
              }
            },
            "required": [
              "nodes",
              "edges"
            ]
          },
          "provenance": {
            "type": "object",
            "properties": {
              "createdByAgent": {
                "type": "boolean"
              },
              "productCreationDepth": {
                "type": "number"
              },
              "createdFromWorkflowId": {
                "type": "string"
              },
              "hideFromAgentPicker": {
                "type": "boolean"
              },
              "marketplaceClone": {
                "type": "object",
                "properties": {
                  "sourceWorkflowId": {
                    "type": "string"
                  },
                  "clonedAt": {
                    "type": "string"
                  },
                  "skillIdMap": {
                    "type": "object"
                  },
                  "knowledgeIdMap": {
                    "type": "object"
                  },
                  "databaseIdMap": {
                    "type": "object"
                  },
                  "subAgentIdMap": {
                    "type": "object"
                  },
                  "avatarFileIdMap": {
                    "type": "object"
                  },
                  "setupState": {
                    "type": "object",
                    "properties": {
                      "answers": {
                        "type": "object"
                      },
                      "completedStepIds": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            },
            "required": [
              "marketplaceClone"
            ]
          },
          "isActive": {
            "type": "boolean"
          },
          "lifecycle": {
            "type": "string",
            "enum": [
              "draft",
              "ready"
            ],
            "description": "Completeness lifecycle. draft = incomplete build (cannot activate); ready = may set isActive true."
          },
          "isPublic": {
            "type": "boolean",
            "description": "Whether this workflow (agent) is public for select in other projects"
          },
          "version": {
            "type": "string",
            "description": "Version in form 1.0.x; incremented on each update"
          },
          "clonedFromWorkflowId": {
            "type": [
              "string",
              "null"
            ]
          },
          "clonedFromVersion": {
            "type": [
              "string",
              "null"
            ]
          },
          "executionCount": {
            "type": "number"
          },
          "lastExecutedAt": {
            "type": "string"
          },
          "tools": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "toolSlug": {
                  "type": "string"
                },
                "toolName": {
                  "type": "string"
                },
                "toolkitName": {
                  "type": "string"
                },
                "toolkitLogo": {
                  "type": "string"
                }
              },
              "required": [
                "toolSlug",
                "toolName",
                "toolkitName"
              ]
            }
          },
          "subAgents": {
            "description": "Resolved child specialists for the parent team card (hidden from the list).",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "marketplaceCategory": {
            "type": [
              "string",
              "null"
            ],
            "description": "Marketplace listing category"
          },
          "marketplaceAudience": {
            "type": [
              "string",
              "null"
            ],
            "description": "Marketplace audience: for_you | for_your_users | both"
          },
          "marketplaceTagline": {
            "type": [
              "string",
              "null"
            ]
          },
          "marketplaceSetupGuide": {
            "type": [
              "string",
              "null"
            ]
          },
          "marketplaceSetupSpec": {
            "type": [
              "object",
              "null"
            ]
          },
          "marketplaceSetupSkillId": {
            "type": [
              "string",
              "null"
            ]
          },
          "marketplaceSetupSkillSlug": {
            "type": [
              "string",
              "null"
            ]
          },
          "marketplaceHighlights": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "marketplaceIsListed": {
            "type": "boolean",
            "description": "When false, listing is hidden from the public catalog"
          },
          "marketplaceCapabilities": {
            "type": "object",
            "properties": {
              "hasSkills": {
                "type": "boolean"
              },
              "skillCount": {
                "type": "number"
              },
              "hasKnowledge": {
                "type": "boolean"
              },
              "hasDatabase": {
                "type": "boolean"
              },
              "hasCron": {
                "type": "boolean"
              },
              "requiresAuth": {
                "type": "boolean"
              },
              "toolkitCount": {
                "type": "number"
              },
              "subAgentCount": {
                "type": "number"
              },
              "toolCount": {
                "type": "number"
              }
            }
          },
          "createdAt": {
            "format": "date-time",
            "type": "string"
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "projectId",
          "workflowType",
          "triggers",
          "isActive",
          "lifecycle",
          "isPublic",
          "version",
          "executionCount",
          "tools",
          "marketplaceCapabilities",
          "createdAt",
          "updatedAt"
        ]
      }
    },
    "total": {
      "type": "number",
      "description": "Total number of items across all pages"
    },
    "totalTools": {
      "type": "number",
      "description": "Optional secondary total (e.g. nested tools across all matching toolkits)"
    },
    "page": {
      "type": "number",
      "description": "Current page number (1-based)"
    },
    "limit": {
      "type": "number",
      "description": "Number of items per page"
    },
    "totalPages": {
      "type": "number",
      "description": "Total number of pages"
    },
    "hasNextPage": {
      "type": "boolean",
      "description": "Whether there is a next page"
    },
    "hasPreviousPage": {
      "type": "boolean",
      "description": "Whether there is a previous page"
    }
  },
  "required": [
    "success",
    "message",
    "data",
    "total"
  ],
  "$defs": {
    "AgentVisitorOwnerConnectionsResponseDto": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "toolkits": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AgentVisitorOwnerToolkitGrantResponseDto"
          }
        }
      },
      "required": [
        "enabled",
        "toolkits"
      ]
    },
    "AgentVisitorOwnerToolkitGrantResponseDto": {
      "type": "object",
      "properties": {
        "toolkitSlug": {
          "type": "string"
        },
        "toolSlugs": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "toolkitSlug"
      ]
    },
    "GraphNodeAgentResponseDto": {
      "type": "object",
      "properties": {
        "prompt": {
          "type": "string"
        },
        "modelSettings": {
          "type": "object"
        },
        "toolSlugs": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "knowledgeCollectionIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "databaseCollectionIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "databaseAccessPolicies": {
          "type": "object"
        }
      },
      "required": [
        "prompt"
      ]
    }
  }
}