{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flowra-dev/json-schema/flowra-dev-create-auth-config-response-dto-success-response-schema.json",
  "title": "CreateAuthConfigResponseDtoSuccessResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/flowra-dev-auth-configs-api-openapi.yml#/components/schemas/CreateAuthConfigResponseDtoSuccessResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "description": "Success status"
    },
    "message": {
      "type": "string",
      "description": "Success message"
    },
    "data": {
      "type": "object",
      "properties": {
        "toolkit": {
          "type": "object",
          "properties": {
            "slug": {
              "type": "string",
              "description": "Toolkit slug"
            }
          },
          "required": [
            "slug"
          ]
        },
        "authConfig": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "description": "Auth config ID"
            },
            "authScheme": {
              "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 scheme"
            },
            "provider": {
              "enum": [
                "COMPOSIO",
                "LOCAL"
              ],
              "type": "string",
              "description": "Provider (COMPOSIO or LOCAL)"
            },
            "externalId": {
              "type": "string",
              "description": "External ID from the provider"
            },
            "isProviderManaged": {
              "type": "boolean",
              "description": "Whether this auth is provider-managed (by Local or Composio)"
            },
            "restrictToFollowingTools": {
              "description": "Restricted tools",
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "required": [
            "id",
            "authScheme",
            "provider",
            "isProviderManaged",
            "restrictToFollowingTools"
          ]
        }
      },
      "required": [
        "toolkit",
        "authConfig"
      ]
    }
  },
  "required": [
    "success",
    "message",
    "data"
  ]
}