{
  "openapi": "3.0.0",
  "info": {
    "title": "n8n 公共 API",
    "version": "1.1.1"
  },
  "components": {
    "schemas": {
      "promotionProviderPublicDto.generated": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 36
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "git",
              "gitlab"
            ]
          },
          "authType": {
            "type": "string",
            "enum": [
              "ssh-key",
              "token"
            ]
          },
          "config": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "schemaVersion": {
                    "type": "number",
                    "enum": [
                      1
                    ]
                  },
                  "publicKey": {
                    "type": "string",
                    "minLength": 1
                  },
                  "keyType": {
                    "type": "string",
                    "enum": [
                      "ed25519",
                      "rsa"
                    ]
                  }
                },
                "required": [
                  "schemaVersion",
                  "publicKey",
                  "keyType"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "schemaVersion": {
                    "type": "number",
                    "enum": [
                      1
                    ]
                  }
                },
                "required": [
                  "schemaVersion"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "schemaVersion": {
                    "type": "number",
                    "enum": [
                      1
                    ]
                  },
                  "baseUrl": {
                    "type": "string"
                  }
                },
                "required": [
                  "schemaVersion",
                  "baseUrl"
                ],
                "additionalProperties": false
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "name",
          "type",
          "authType",
          "config",
          "createdAt",
          "updatedAt"
        ]
      }
    }
  }
}
