{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/comp-ai/json-schema/comp-ai-create-connection-dto-schema.json",
  "title": "CreateConnectionDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/comp-ai-integrations-api-openapi.yml#/components/schemas/CreateConnectionDto",
  "type": "object",
  "properties": {
    "organizationId": {
      "type": "string",
      "description": "Auto-resolved from your API key / session. You can omit this; it is ignored by the server."
    },
    "providerSlug": {
      "type": "string",
      "description": "Provider slug for the integration. Call list-providers first to see the available slugs (e.g. 'aws', 'gcp', 'azure', 'github')."
    },
    "credentials": {
      "type": "object",
      "description": "Provider-specific credential fields. Keys differ by provider — call get-provider-details for the exact shape. For AWS (Cloud Tests) the fields are: connectionName (display name), awsType ('aws-commercial' or 'aws-govcloud'), roleArn (auditor role), externalId (typically your org id), regions (string array), and optionally remediationRoleArn and awsScanMode ('comp_scanners' or 'security_hub'). Omit credentials for OAuth providers — use POST /v1/integrations/oauth/start instead.",
      "additionalProperties": true
    }
  },
  "required": [
    "providerSlug"
  ]
}