{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ping-identity/main/json-schema/ping-identity-com-pingidentity-pingone-davinci-flowpolicies-response-flow-policies-response-schema.json",
  "title": "DaVinci Flow Policy Collection",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ping-identity-davinci-admin-application-flow-policies-api-openapi.yml#/components/schemas/com.pingidentity.pingone.davinci.flowpolicies.response.FlowPoliciesResponse",
  "type": "object",
  "properties": {
    "_links": {
      "type": "object",
      "properties": {
        "self": {
          "$ref": "#/$defs/com.pingidentity.api.response.Link"
        },
        "environment": {
          "$ref": "#/$defs/com.pingidentity.api.response.Link"
        },
        "davinciApplication": {
          "$ref": "#/$defs/com.pingidentity.api.response.Link"
        }
      },
      "required": [
        "self",
        "environment",
        "davinciApplication"
      ],
      "additionalProperties": {
        "$ref": "#/$defs/com.pingidentity.api.response.Link"
      },
      "title": "DaVinci Flow Policy Collection _links"
    },
    "_embedded": {
      "type": "object",
      "properties": {
        "flowPolicies": {
          "type": "array",
          "items": {
            "type": "object",
            "$ref": "#/$defs/com.pingidentity.pingone.davinci.flowpolicies.response.FlowPolicyResponse"
          },
          "title": "DaVinci Flow Policy Collection _embedded Flow Policies"
        }
      },
      "required": [
        "flowPolicies"
      ],
      "title": "DaVinci Flow Policy Collection _embedded"
    }
  },
  "required": [
    "_links",
    "_embedded"
  ],
  "$defs": {
    "com.pingidentity.api.Relationship.DaVinci.RO": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^(?=\\S)[\\p{L}\\p{M}\\p{N}\\p{So}/.'_ -]*(?!.*((<)|(\\$\\{)))",
          "readOnly": true,
          "minLength": 1,
          "title": "Resource Relationship DaVinci Read-Only Id"
        }
      },
      "required": [
        "id"
      ],
      "title": "Resource Relationship DaVinci Read-Only"
    },
    "com.pingidentity.api.Relationship.PingOne.RO": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "readOnly": true,
          "minLength": 1,
          "title": "Resource Relationship Read-Only Id"
        }
      },
      "required": [
        "id"
      ],
      "title": "Resource Relationship Read-Only"
    },
    "com.pingidentity.api.response.Link": {
      "type": "object",
      "properties": {
        "href": {
          "type": "string",
          "format": "uri",
          "minLength": 1,
          "title": "JSON HAL Link Href"
        },
        "name": {
          "type": "string",
          "title": "JSON HAL Link Name"
        },
        "profile": {
          "type": "string",
          "format": "uri",
          "title": "JSON HAL Link Profile"
        },
        "title": {
          "type": "string",
          "format": "uri",
          "title": "JSON HAL Link Title"
        },
        "type": {
          "type": "string",
          "title": "JSON HAL Link Type"
        }
      },
      "required": [
        "href"
      ],
      "readOnly": true,
      "title": "JSON HAL Link"
    },
    "com.pingidentity.pingone.davinci.flowpolicies.response.FlowPolicyResponse": {
      "type": "object",
      "properties": {
        "_links": {
          "type": "object",
          "properties": {
            "self": {
              "$ref": "#/$defs/com.pingidentity.api.response.Link"
            },
            "environment": {
              "$ref": "#/$defs/com.pingidentity.api.response.Link"
            },
            "davinciApplication": {
              "$ref": "#/$defs/com.pingidentity.api.response.Link"
            },
            "flow.<index>": {
              "$ref": "#/$defs/com.pingidentity.api.response.Link"
            },
            "version.<flowId>.<index>": {
              "$ref": "#/$defs/com.pingidentity.api.response.Link"
            }
          },
          "required": [
            "self",
            "environment",
            "davinciApplication"
          ],
          "additionalProperties": {
            "$ref": "#/$defs/com.pingidentity.api.response.Link"
          },
          "title": "DaVinci Flow Policy Response _links"
        },
        "environment": {
          "$ref": "#/$defs/com.pingidentity.api.Relationship.PingOne.RO"
        },
        "flowDistributions": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "title": "DaVinci Flow Policy Response Flow Distribution Id"
              },
              "version": {
                "type": "number",
                "title": "DaVinci Flow Policy Response Flow Distribution Version"
              },
              "ip": {
                "type": "array",
                "items": {
                  "type": "string",
                  "title": "DaVinci Flow Policy Response Flow Distribution Ip Item"
                },
                "title": "DaVinci Flow Policy Response Flow Distribution Ip"
              },
              "successNodes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "title": "DaVinci Flow Policy Response Flow Distribution Success Node Id"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "title": "DaVinci Flow Policy Response Flow Distribution Success Node"
                },
                "title": "DaVinci Flow Policy Response Flow Distribution Success Nodes"
              },
              "weight": {
                "type": "number",
                "title": "DaVinci Flow Policy Response Flow Distribution Weight"
              }
            },
            "required": [
              "id",
              "version"
            ],
            "title": "DaVinci Flow Policy Response Flow Distribution"
          },
          "title": "DaVinci Flow Policy Response Flow Distributions"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "title": "DaVinci Flow Policy Response Id"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "title": "DaVinci Flow Policy Response Name"
        },
        "status": {
          "enum": [
            "disabled",
            "enabled"
          ],
          "type": "string",
          "minLength": 1,
          "title": "DaVinci Flow Policy Response Status"
        },
        "application": {
          "$ref": "#/$defs/com.pingidentity.api.Relationship.DaVinci.RO"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "title": "DaVinci Flow Policy Response Created At"
        },
        "trigger": {
          "type": "object",
          "properties": {
            "configuration": {
              "type": "object",
              "properties": {
                "mfa": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean",
                      "title": "DaVinci Flow Policy Response Trigger Configuration MFA Enabled"
                    },
                    "time": {
                      "type": "number",
                      "title": "DaVinci Flow Policy Response Trigger Configuration MFA Time"
                    },
                    "timeFormat": {
                      "type": "string",
                      "minLength": 1,
                      "title": "DaVinci Flow Policy Response Trigger Configuration MFA Time Format"
                    }
                  },
                  "required": [
                    "enabled",
                    "time",
                    "timeFormat"
                  ],
                  "title": "DaVinci Flow Policy Response Trigger Configuration MFA"
                },
                "pwd": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean",
                      "title": "DaVinci Flow Policy Response Trigger Configuration Password Enabled"
                    },
                    "time": {
                      "type": "number",
                      "title": "DaVinci Flow Policy Response Trigger Configuration Password Time"
                    },
                    "timeFormat": {
                      "type": "string",
                      "minLength": 1,
                      "title": "DaVinci Flow Policy Response Trigger Configuration Password Time Format"
                    }
                  },
                  "required": [
                    "enabled",
                    "time",
                    "timeFormat"
                  ],
                  "title": "DaVinci Flow Policy Response Trigger Configuration Password"
                }
              },
              "required": [
                "mfa",
                "pwd"
              ],
              "title": "DaVinci Flow Policy Response Trigger Configuration"
            },
            "type": {
              "type": "string",
              "title": "DaVinci Flow Policy Response Trigger Type"
            }
          },
          "title": "DaVinci Flow Policy Response Trigger"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time",
          "title": "DaVinci Flow Policy Response Updated At"
        }
      },
      "required": [
        "_links",
        "environment",
        "flowDistributions",
        "id",
        "name",
        "status"
      ],
      "title": "DaVinci Flow Policy Response"
    }
  }
}