{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$ref": "#/components/schemas/PkgAutomationRootVM",
  "components": {
    "schemas": {
      "PkgAutomationRootVM": {
        "type": "object",
        "properties": {
          "$schema": {
            "type": "string",
            "nullable": true
          },
          "automations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PkgAutomationVM"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationVM": {
        "required": [
          "key",
          "name"
        ],
        "type": "object",
        "properties": {
          "actions": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/PkgAutomationActionSendNotificationVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationActionSetWorkflowStateVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationActionSetAttributeVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationActionWritebackTableauColumnVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationActionWritebackDatabricksColumnVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationActionCallDataFactoryVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationActionSyncDataVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationActionDeleteObjectVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationActionSaveStreamStateVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationActionMoveObjectVM"
                }
              ]
            },
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "sortOrder": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "state": {
            "enum": [
              "active",
              "inactive"
            ],
            "type": "string",
            "nullable": true
          },
          "stream": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/PkgAutomationStreamLogicalFormulaVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationStreamSelectParentVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationStreamSelectUserRelationVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationStreamSelectRelationVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationStreamSelectChildrenVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationStreamWhileVM"
                }
              ]
            },
            "nullable": true
          },
          "triggers": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerScheduleVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerWorkflowStateVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerAttributeChangedVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerUserRelationAddedVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerUserRelationDeletedVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerRelationDeletedVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerRelationAddedVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerObjectAddedVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerObjectRenamedVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerObjectMovedVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerObjectDeletedVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerIngestionFinishedVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerAutomationFinishedVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerCloneObjectFinishedVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerCommentAddedVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerCommentDeletedVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerCommentChangedVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerCommentReplyAddedVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerCommentReplyDeletedVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerCommentReplyChangedVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerConceptPublishedVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerAnonymousConceptPublishedVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerConceptCreatedVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerAnonymousConceptCreatedVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationTriggerObjectBulkMovedVM"
                }
              ]
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerObjectBulkMovedVM": {
        "required": [
          "key",
          "type"
        ],
        "type": "object",
        "properties": {
          "applicationKeys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "objectBulkMoved"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerAnonymousConceptCreatedVM": {
        "required": [
          "key",
          "type"
        ],
        "type": "object",
        "properties": {
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "objectTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "type": {
            "minLength": 1,
            "enum": [
              "anonymousConceptCreated"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerConceptCreatedVM": {
        "required": [
          "key",
          "type"
        ],
        "type": "object",
        "properties": {
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "objectTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "type": {
            "minLength": 1,
            "enum": [
              "conceptCreated"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerAnonymousConceptPublishedVM": {
        "required": [
          "key",
          "type"
        ],
        "type": "object",
        "properties": {
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "objectTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "type": {
            "minLength": 1,
            "enum": [
              "anonymousConceptPublished"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerConceptPublishedVM": {
        "required": [
          "key",
          "type"
        ],
        "type": "object",
        "properties": {
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "objectTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "type": {
            "minLength": 1,
            "enum": [
              "conceptPublished"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerCommentReplyChangedVM": {
        "required": [
          "commentTypeKeys",
          "key",
          "type"
        ],
        "type": "object",
        "properties": {
          "commentTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "commentReplyChanged"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerCommentReplyDeletedVM": {
        "required": [
          "commentTypeKeys",
          "key",
          "type"
        ],
        "type": "object",
        "properties": {
          "commentTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "commentReplyDeleted"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerCommentReplyAddedVM": {
        "required": [
          "commentTypeKeys",
          "key",
          "type"
        ],
        "type": "object",
        "properties": {
          "commentTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "commentReplyAdded"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerCommentChangedVM": {
        "required": [
          "commentTypeKeys",
          "key",
          "type"
        ],
        "type": "object",
        "properties": {
          "commentTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "commentChanged"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerCommentDeletedVM": {
        "required": [
          "commentTypeKeys",
          "key",
          "type"
        ],
        "type": "object",
        "properties": {
          "commentTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "commentDeleted"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerCommentAddedVM": {
        "required": [
          "commentTypeKeys",
          "key",
          "type"
        ],
        "type": "object",
        "properties": {
          "commentTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "commentAdded"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerCloneObjectFinishedVM": {
        "required": [
          "applicationKeys",
          "key",
          "type"
        ],
        "type": "object",
        "properties": {
          "applicationKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "cloneObjectFinished"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerAutomationFinishedVM": {
        "required": [
          "automationKeys",
          "key",
          "type"
        ],
        "type": "object",
        "properties": {
          "automationKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "automationFinished"
            ],
            "type": "string"
          },
          "useAutomationResultData": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerIngestionFinishedVM": {
        "required": [
          "applicationKeys",
          "key",
          "type"
        ],
        "type": "object",
        "properties": {
          "applicationKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "ingestionFinished"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerObjectDeletedVM": {
        "required": [
          "key",
          "objectTypeKeys",
          "type"
        ],
        "type": "object",
        "properties": {
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "objectTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "type": {
            "minLength": 1,
            "enum": [
              "objectDeleted"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerObjectMovedVM": {
        "required": [
          "key",
          "type"
        ],
        "type": "object",
        "properties": {
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "objectTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "type": {
            "minLength": 1,
            "enum": [
              "objectMoved"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerObjectRenamedVM": {
        "required": [
          "key",
          "objectTypeKeys",
          "type"
        ],
        "type": "object",
        "properties": {
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "objectTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "type": {
            "minLength": 1,
            "enum": [
              "objectRenamed"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerObjectAddedVM": {
        "required": [
          "key",
          "objectTypeKeys",
          "type"
        ],
        "type": "object",
        "properties": {
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "objectTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "type": {
            "minLength": 1,
            "enum": [
              "objectAdded"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerRelationAddedVM": {
        "required": [
          "key",
          "relationTypeKeys",
          "type"
        ],
        "type": "object",
        "properties": {
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "relationTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "type": {
            "minLength": 1,
            "enum": [
              "relationAdded"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerRelationDeletedVM": {
        "required": [
          "key",
          "relationTypeKeys",
          "type"
        ],
        "type": "object",
        "properties": {
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "relationTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "type": {
            "minLength": 1,
            "enum": [
              "relationDeleted"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerUserRelationDeletedVM": {
        "required": [
          "key",
          "type",
          "userRelationTypeKeys"
        ],
        "type": "object",
        "properties": {
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "userRelationDeleted"
            ],
            "type": "string"
          },
          "userRelationTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerUserRelationAddedVM": {
        "required": [
          "key",
          "type",
          "userRelationTypeKeys"
        ],
        "type": "object",
        "properties": {
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "userRelationAdded"
            ],
            "type": "string"
          },
          "userRelationTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerAttributeChangedVM": {
        "required": [
          "attributeTypeKeys",
          "key",
          "type"
        ],
        "type": "object",
        "properties": {
          "attributeTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "attributeChanged"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerWorkflowStateVM": {
        "required": [
          "key",
          "type",
          "workflowStateKeys"
        ],
        "type": "object",
        "properties": {
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "multipleUsersApproval": {
            "type": "boolean",
            "nullable": true
          },
          "type": {
            "minLength": 1,
            "enum": [
              "workflowStateChanged"
            ],
            "type": "string"
          },
          "userRelationTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "workflowStateKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationTriggerScheduleVM": {
        "required": [
          "cronPattern",
          "key",
          "type"
        ],
        "type": "object",
        "properties": {
          "cronPattern": {
            "minLength": 1,
            "type": "string"
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "schedule"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationStreamWhileVM": {
        "required": [
          "key",
          "subStream",
          "type"
        ],
        "type": "object",
        "properties": {
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "repeats": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "subStream": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/PkgAutomationStreamLogicalFormulaVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationStreamSelectParentVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationStreamSelectUserRelationVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationStreamSelectRelationVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationStreamSelectChildrenVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationStreamWhileVM"
                }
              ]
            }
          },
          "type": {
            "minLength": 1,
            "enum": [
              "while"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationStreamSelectChildrenVM": {
        "required": [
          "key",
          "type"
        ],
        "type": "object",
        "properties": {
          "keepCurrent": {
            "type": "boolean",
            "nullable": true
          },
          "keepOrigin": {
            "type": "boolean",
            "nullable": true
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "selectChildren"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationStreamSelectRelationVM": {
        "required": [
          "key",
          "relationTypeKeys",
          "type"
        ],
        "type": "object",
        "properties": {
          "keepCurrent": {
            "type": "boolean",
            "nullable": true
          },
          "keepOrigin": {
            "type": "boolean",
            "nullable": true
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "objectTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "relationTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "type": {
            "minLength": 1,
            "enum": [
              "selectByRelations"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationStreamSelectUserRelationVM": {
        "required": [
          "key",
          "type",
          "userRelationTypeKeys"
        ],
        "type": "object",
        "properties": {
          "keepCurrent": {
            "type": "boolean",
            "nullable": true
          },
          "keepOrigin": {
            "type": "boolean",
            "nullable": true
          },
          "keepUserOrigin": {
            "type": "boolean",
            "nullable": true
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "selectUserObjectRelation"
            ],
            "type": "string"
          },
          "userRelationTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationStreamSelectParentVM": {
        "required": [
          "key",
          "type"
        ],
        "type": "object",
        "properties": {
          "keepCurrent": {
            "type": "boolean",
            "nullable": true
          },
          "keepOrigin": {
            "type": "boolean",
            "nullable": true
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "selectParent"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationStreamLogicalFormulaVM": {
        "required": [
          "key",
          "operator",
          "type"
        ],
        "type": "object",
        "properties": {
          "clauses": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/PkgAutomationOperandClauseSpaceFilterVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationClauseApplicationFilterVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationClauseObjectTypeFilterVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationOperandClauseAttributeFilterVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationOperandClauseRelationFilterVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationOperandClauseUserRelationFilterVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationOperandClauseWorkflowStateFilterVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationOperandClauseWorkflowTransitionStateFilterVM"
                },
                {
                  "$ref": "#/components/schemas/PkgAutomationClauseAttributeComparatorFilterVM"
                }
              ]
            },
            "nullable": true
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "operator": {
            "minLength": 1,
            "enum": [
              "or",
              "and"
            ],
            "type": "string"
          },
          "type": {
            "enum": [
              "logicalFormula"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationClauseAttributeComparatorFilterVM": {
        "required": [
          "type",
          "value"
        ],
        "type": "object",
        "properties": {
          "type": {
            "enum": [
              "attributeComparatorFilter"
            ],
            "type": "string"
          },
          "value": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationOperandClauseWorkflowTransitionStateFilterVM": {
        "required": [
          "type",
          "workflowTransitions"
        ],
        "type": "object",
        "properties": {
          "minApprovedBy": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "minApprovedByPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "type": {
            "enum": [
              "workflowTransitionStateFilter"
            ],
            "type": "string"
          },
          "userRelationTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "workflowTransitions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowMapping"
            }
          }
        },
        "additionalProperties": false
      },
      "WorkflowMapping": {
        "type": "object",
        "properties": {
          "fromKey": {
            "type": "string",
            "nullable": true
          },
          "toKey": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationOperandClauseWorkflowStateFilterVM": {
        "required": [
          "operand",
          "type",
          "workflowStateKeys"
        ],
        "type": "object",
        "properties": {
          "operand": {
            "minLength": 1,
            "enum": [
              "notIn",
              "in"
            ],
            "type": "string"
          },
          "type": {
            "enum": [
              "workflowStateFilter"
            ],
            "type": "string"
          },
          "workflowStateKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationOperandClauseUserRelationFilterVM": {
        "required": [
          "operand",
          "type",
          "userRelationTypeKey"
        ],
        "type": "object",
        "properties": {
          "operand": {
            "minLength": 1,
            "enum": [
              "notIn",
              "in",
              "equals",
              "notEquals",
              "empty",
              "notEmpty",
              "like",
              "startWith",
              "endWith"
            ],
            "type": "string"
          },
          "type": {
            "enum": [
              "userRelationFilter"
            ],
            "type": "string"
          },
          "userRelationTypeKey": {
            "minLength": 1,
            "type": "string"
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationOperandClauseRelationFilterVM": {
        "required": [
          "operand",
          "relationTypeKey",
          "type"
        ],
        "type": "object",
        "properties": {
          "operand": {
            "minLength": 1,
            "enum": [
              "notIn",
              "in",
              "equals",
              "notEquals",
              "empty",
              "notEmpty",
              "like",
              "startWith",
              "endWith"
            ],
            "type": "string"
          },
          "relationTypeKey": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "enum": [
              "relationFilter"
            ],
            "type": "string"
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationOperandClauseAttributeFilterVM": {
        "required": [
          "attributeTypeKey",
          "operand",
          "type"
        ],
        "type": "object",
        "properties": {
          "attributeTypeKey": {
            "minLength": 1,
            "type": "string"
          },
          "operand": {
            "minLength": 1,
            "enum": [
              "notIn",
              "in",
              "equals",
              "notEquals",
              "greaterThan",
              "lowerThan",
              "greaterOrEqualsThan",
              "lowerOrEqualsThan",
              "empty",
              "notEmpty",
              "todayPlusXGreaterThan",
              "like",
              "startWith",
              "endWith"
            ],
            "type": "string"
          },
          "type": {
            "enum": [
              "attributeFilter"
            ],
            "type": "string"
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationClauseObjectTypeFilterVM": {
        "required": [
          "objectTypeKeys",
          "operand",
          "type"
        ],
        "type": "object",
        "properties": {
          "objectTypeKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operand": {
            "minLength": 1,
            "enum": [
              "notIn",
              "in"
            ],
            "type": "string"
          },
          "type": {
            "enum": [
              "objectTypeFilter"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationClauseApplicationFilterVM": {
        "required": [
          "applicationKeys",
          "operand",
          "type"
        ],
        "type": "object",
        "properties": {
          "applicationKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "operand": {
            "minLength": 1,
            "enum": [
              "notIn",
              "in"
            ],
            "type": "string"
          },
          "type": {
            "enum": [
              "applicationFilter"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationOperandClauseSpaceFilterVM": {
        "required": [
          "operand",
          "type",
          "values"
        ],
        "type": "object",
        "properties": {
          "operand": {
            "minLength": 1,
            "enum": [
              "notIn",
              "in"
            ],
            "type": "string"
          },
          "type": {
            "enum": [
              "spaceFilter"
            ],
            "type": "string"
          },
          "values": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationActionMoveObjectVM": {
        "required": [
          "key",
          "spacesMappings",
          "type"
        ],
        "type": "object",
        "properties": {
          "childrenWorkflowStateKey": {
            "type": "string",
            "nullable": true
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "parentsWorkflowStateKey": {
            "type": "string",
            "nullable": true
          },
          "shallowCopyParents": {
            "type": "boolean",
            "nullable": true
          },
          "spacesMappings": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PkgAutomationSpaceMappingVM"
            }
          },
          "targetObjectWorkflowStateKey": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "minLength": 1,
            "enum": [
              "move"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationSpaceMappingVM": {
        "required": [
          "sourceSpacePath",
          "targetSpacePath"
        ],
        "type": "object",
        "properties": {
          "sourceSpacePath": {
            "minLength": 1,
            "type": "string"
          },
          "targetSpacePath": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationActionSaveStreamStateVM": {
        "required": [
          "key",
          "type"
        ],
        "type": "object",
        "properties": {
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "saveStreamState"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationActionDeleteObjectVM": {
        "required": [
          "key",
          "type"
        ],
        "type": "object",
        "properties": {
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "deleteObject"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationActionSyncDataVM": {
        "required": [
          "key",
          "targetApplicationKey",
          "targetSpacePath",
          "type"
        ],
        "type": "object",
        "properties": {
          "attributeTypeMappings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PkgAttributeTypeMapping"
            },
            "nullable": true
          },
          "copyObjectOnly": {
            "type": "boolean",
            "nullable": true
          },
          "excludeAttachmentCategories": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "exportTemplate": {
            "$ref": "#/components/schemas/PkgSyncObjectExportMapping"
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "objectTypeMappings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PkgObjectTypeMapping"
            },
            "nullable": true
          },
          "relationTypeMappings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PkgRelationTypeMapping"
            },
            "nullable": true
          },
          "targetApplicationKey": {
            "minLength": 1,
            "type": "string"
          },
          "targetSpacePath": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "syncData"
            ],
            "type": "string"
          },
          "userRelationTypeMappings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PkgUserRelationTypeMapping"
            },
            "nullable": true
          },
          "workflowStateMappings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PkgWorkflowStateMapping"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PkgWorkflowStateMapping": {
        "required": [
          "fromKey",
          "toKey"
        ],
        "type": "object",
        "properties": {
          "fromKey": {
            "minLength": 1,
            "type": "string"
          },
          "toKey": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgUserRelationTypeMapping": {
        "required": [
          "fromKey",
          "toKey"
        ],
        "type": "object",
        "properties": {
          "fromKey": {
            "minLength": 1,
            "type": "string"
          },
          "toAttributeKey": {
            "type": "string",
            "nullable": true
          },
          "toAttributeKeyValueType": {
            "enum": [
              "id",
              "login",
              "name",
              "email"
            ],
            "type": "string",
            "nullable": true
          },
          "toKey": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgRelationTypeMapping": {
        "required": [
          "fromKey",
          "toKey"
        ],
        "type": "object",
        "properties": {
          "fromKey": {
            "minLength": 1,
            "type": "string"
          },
          "toAttributeKey": {
            "type": "string",
            "nullable": true
          },
          "toKey": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgObjectTypeMapping": {
        "required": [
          "fromKey",
          "toKey"
        ],
        "type": "object",
        "properties": {
          "fromKey": {
            "minLength": 1,
            "type": "string"
          },
          "toKey": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgSyncObjectExportMapping": {
        "required": [
          "documentTemplateKey",
          "format"
        ],
        "type": "object",
        "properties": {
          "documentTemplateKey": {
            "minLength": 1,
            "type": "string"
          },
          "dontIncludeChildren": {
            "type": "boolean",
            "nullable": true
          },
          "format": {
            "minLength": 1,
            "enum": [
              "word",
              "pdf"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAttributeTypeMapping": {
        "required": [
          "fromKey",
          "toKey"
        ],
        "type": "object",
        "properties": {
          "clearEmbeddedTexts": {
            "type": "boolean",
            "nullable": true
          },
          "fromKey": {
            "minLength": 1,
            "type": "string"
          },
          "toKey": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationActionCallDataFactoryVM": {
        "required": [
          "key",
          "pipelineKey",
          "type"
        ],
        "type": "object",
        "properties": {
          "activityKey": {
            "type": "string",
            "nullable": true
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "pipelineKey": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "callDataFactory"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationActionWritebackDatabricksColumnVM": {
        "required": [
          "assetType",
          "key",
          "siteIdAttributeTypeKey",
          "sitePropertyKey",
          "siteType",
          "type"
        ],
        "type": "object",
        "properties": {
          "assetType": {
            "minLength": 1,
            "type": "string"
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "relationTypeKey": {
            "type": "string",
            "nullable": true
          },
          "siteIdAttributeTypeKey": {
            "minLength": 1,
            "type": "string"
          },
          "sitePropertyKey": {
            "minLength": 1,
            "type": "string"
          },
          "siteType": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "writebackDatabricksColumn"
            ],
            "type": "string"
          },
          "userRelationTypeKey": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationActionWritebackTableauColumnVM": {
        "required": [
          "attributeTypeKey",
          "columnInfoAttributeTypeKey",
          "columnObjectTypeKey",
          "key",
          "siteIdAttributeTypeKey",
          "siteObjectTypeKey",
          "type"
        ],
        "type": "object",
        "properties": {
          "attributeTypeKey": {
            "minLength": 1,
            "type": "string"
          },
          "columnInfoAttributeTypeKey": {
            "minLength": 1,
            "type": "string"
          },
          "columnObjectTypeKey": {
            "minLength": 1,
            "type": "string"
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "siteIdAttributeTypeKey": {
            "minLength": 1,
            "type": "string"
          },
          "siteObjectTypeKey": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "writebackTableauColumn"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationActionSetAttributeVM": {
        "required": [
          "attributeTypeKey",
          "key",
          "type"
        ],
        "type": "object",
        "properties": {
          "attributeTypeKey": {
            "minLength": 1,
            "type": "string"
          },
          "clearValue": {
            "type": "boolean",
            "nullable": true
          },
          "expression": {
            "type": "string",
            "nullable": true
          },
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "setAttribute"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationActionSetWorkflowStateVM": {
        "required": [
          "key",
          "newWorkflowStateKey",
          "type"
        ],
        "type": "object",
        "properties": {
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "newWorkflowStateKey": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "setWorkflowState"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "PkgAutomationActionSendNotificationVM": {
        "required": [
          "key",
          "notificationTemplateKey",
          "type"
        ],
        "type": "object",
        "properties": {
          "key": {
            "minLength": 1,
            "type": "string"
          },
          "notificationTemplateKey": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "enum": [
              "sendNotification"
            ],
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    }
  }
}