{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flowra-dev/json-schema/flowra-dev-toolkit-with-tools-item-dto-paginated-response-schema.json",
  "title": "ToolkitWithToolsItemDtoPaginatedResponse",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/flowra-dev-openapi.json#/components/schemas/ToolkitWithToolsItemDtoPaginatedResponse",
  "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",
            "description": "Toolkit id identifier"
          },
          "slug": {
            "type": "string",
            "description": "Toolkit slug identifier"
          },
          "name": {
            "type": "string",
            "description": "Toolkit display name"
          },
          "authSchemes": {
            "description": "Available authentication schemes",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "providerManagedAuthSchemes": {
            "description": "Provider-managed authentication schemes (e.g. Local or Composio)",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "isDisabled": {
            "type": "boolean",
            "description": "Whether toolkit is enabled"
          },
          "noAuth": {
            "type": "boolean",
            "description": "Whether this toolkit requires no authentication"
          },
          "createdAt": {
            "type": "string",
            "description": "Creation timestamp"
          },
          "updatedAt": {
            "type": "string",
            "description": "Last update timestamp"
          },
          "description": {
            "type": "string",
            "description": "Toolkit description"
          },
          "logo": {
            "type": "string",
            "description": "Toolkit logo URL"
          },
          "appUrl": {
            "type": [
              "string",
              "null"
            ],
            "description": "Application URL"
          },
          "triggersCount": {
            "type": "number",
            "description": "Number of trigger tools (webhook/poll) available"
          },
          "toolsCount": {
            "type": "number",
            "description": "Number of action tools available (excludes triggers)"
          },
          "version": {
            "type": "string",
            "description": "Toolkit version"
          },
          "availableVersions": {
            "description": "Available versions",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "authConfigDetails": {
            "description": "Authentication configuration details",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Auth provider name"
                },
                "mode": {
                  "enum": [
                    "OAUTH1",
                    "OAUTH2",
                    "S2S_OAUTH2",
                    "API_KEY",
                    "BASIC",
                    "BEARER_TOKEN",
                    "BILLCOM_AUTH",
                    "GOOGLE_SERVICE_ACCOUNT",
                    "NO_AUTH",
                    "BASIC_WITH_JWT",
                    "CALCOM_AUTH",
                    "SERVICE_ACCOUNT",
                    "SAML",
                    "DCR_OAUTH",
                    "COOKIE",
                    "WHATSAPP_QR"
                  ],
                  "type": "string",
                  "description": "Authentication mode"
                },
                "fields": {
                  "type": "object",
                  "properties": {
                    "authConfigCreation": {
                      "$ref": "#/$defs/AuthConfigCreationFieldsDto"
                    },
                    "connectedAccountInitiation": {
                      "$ref": "#/$defs/AuthConfigCreationFieldsDto"
                    }
                  },
                  "required": [
                    "authConfigCreation",
                    "connectedAccountInitiation"
                  ]
                },
                "proxy": {
                  "type": "object",
                  "properties": {
                    "baseUrl": {
                      "type": "string"
                    }
                  },
                  "description": "Proxy configuration"
                },
                "deprecatedAuthProviderDetails": {
                  "type": "object",
                  "properties": {
                    "authorization_url": {
                      "type": "string"
                    },
                    "token_url": {
                      "type": "string"
                    }
                  },
                  "description": "Deprecated auth provider details"
                }
              },
              "required": [
                "name",
                "mode",
                "fields"
              ]
            }
          },
          "getCurrentUserEndpoint": {
            "type": "string",
            "description": "Get current user endpoint"
          },
          "baseUrl": {
            "type": "string",
            "description": "Base URL for the toolkit"
          },
          "provider": {
            "enum": [
              "COMPOSIO",
              "LOCAL"
            ],
            "type": "string",
            "description": "Toolkit provider"
          },
          "owner": {
            "type": "boolean",
            "description": "Toolkit owner"
          },
          "popularityScore": {
            "type": "number",
            "description": "Popularity score for ordering / ranking"
          },
          "regions": {
            "description": "ISO 3166-1 alpha-2 region codes this toolkit is available in. null/empty = global.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "description": "Curated toolkit category ids. null/empty = uncategorized.",
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": "string"
            }
          },
          "seatBilled": {
            "type": "boolean",
            "description": "When true, each ACTIVE connected account is billed a daily credit seat; tools in this toolkit do not charge per call."
          },
          "tools": {
            "description": "Tools in this toolkit",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "slug": {
                  "type": "string"
                },
                "toolkitSlug": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "inputParameters": {
                  "type": "object",
                  "description": "JSON Schema for tool inputs. Empty object on list endpoints (e.g. with-tools); hydrate via GET /tools/byId/:id when needed."
                },
                "outputParameters": {
                  "type": "object",
                  "description": "JSON Schema for tool outputs. Empty object on list endpoints; hydrate via GET /tools/byId/:id when needed."
                },
                "type": {
                  "type": "string",
                  "description": "Tool type: action, webhook, poll"
                },
                "popularityScore": {
                  "type": "number"
                },
                "isDisabled": {
                  "type": "boolean"
                },
                "isDeprecated": {
                  "type": "boolean",
                  "description": "Whether the tool is deprecated and cannot be executed"
                },
                "isProjectTool": {
                  "type": "boolean",
                  "description": "True when tool belongs to current project"
                },
                "noAuth": {
                  "type": "boolean",
                  "description": "True when tool does not require authentication"
                }
              },
              "required": [
                "id",
                "slug",
                "toolkitSlug",
                "description",
                "inputParameters",
                "outputParameters",
                "type",
                "popularityScore",
                "isDisabled",
                "isDeprecated"
              ]
            }
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "authSchemes",
          "providerManagedAuthSchemes",
          "isDisabled",
          "noAuth",
          "createdAt",
          "updatedAt",
          "description",
          "logo",
          "appUrl",
          "triggersCount",
          "toolsCount",
          "version",
          "availableVersions",
          "authConfigDetails",
          "getCurrentUserEndpoint",
          "baseUrl",
          "provider",
          "tools"
        ]
      }
    },
    "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": {
    "AuthConfigCreationFieldsDto": {
      "type": "object",
      "properties": {
        "required": {
          "description": "Required fields for auth config creation",
          "type": "array",
          "items": {
            "$ref": "#/$defs/AuthConfigFieldDto"
          }
        },
        "optional": {
          "description": "Optional fields for auth config creation",
          "type": "array",
          "items": {
            "$ref": "#/$defs/AuthConfigFieldDto"
          }
        }
      },
      "required": [
        "required",
        "optional"
      ]
    },
    "AuthConfigFieldDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "pattern": "^[A-Za-z][A-Za-z0-9_.-]{0,63}$",
          "description": "Field name: starts with a letter, then letters, digits, underscore, dot or hyphen (max 64)"
        },
        "displayName": {
          "type": "string",
          "description": "Field display name"
        },
        "default": {
          "type": [
            "string",
            "null"
          ],
          "description": "Default value"
        },
        "type": {
          "type": "string",
          "description": "Field type"
        },
        "description": {
          "type": "string",
          "description": "Field description"
        },
        "required": {
          "type": "boolean",
          "description": "Whether field is required"
        },
        "legacyTemplateName": {
          "type": "string",
          "description": "Legacy template name"
        }
      },
      "required": [
        "name",
        "displayName",
        "default",
        "type",
        "description",
        "required",
        "legacyTemplateName"
      ]
    }
  }
}