{
  "openapi": "3.0.0",
  "info": {
    "title": "n8n 公共 API",
    "version": "1.1.1"
  },
  "components": {
    "schemas": {
      "policyEffectivePublicDto.generated": {
        "type": "object",
        "properties": {
          "scopeId": {
            "type": "string",
            "nullable": true
          },
          "rules": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1
                },
                "action": {
                  "type": "string",
                  "enum": [
                    "allow",
                    "deny",
                    "delegate"
                  ]
                },
                "selector": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "name"
                          ]
                        },
                        "value": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "kind",
                        "value"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "package"
                          ]
                        },
                        "value": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "kind",
                        "value"
                      ]
                    }
                  ],
                  "type": "object"
                }
              },
              "required": [
                "id",
                "action",
                "selector"
              ]
            }
          },
          "defaultAction": {
            "type": "string",
            "enum": [
              "allow",
              "deny",
              "delegate"
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "scopeId",
          "rules",
          "defaultAction",
          "version"
        ]
      }
    }
  }
}
