{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/collate/json-schema/collate-create-app-market-place-definition-req-schema.json",
  "title": "CreateAppMarketPlaceDefinitionReq",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/collate-apps-api-openapi.yml#/components/schemas/CreateAppMarketPlaceDefinitionReq",
  "required": [
    "appType",
    "className",
    "name",
    "permission",
    "scheduleType"
  ],
  "type": "object",
  "properties": {
    "name": {
      "maxLength": 256,
      "minLength": 1,
      "pattern": "^((?!::)[^>\"\\x00-\\x1f])*$",
      "type": "string"
    },
    "displayName": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "features": {
      "type": "string"
    },
    "owners": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EntityReference"
      }
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TagLabel"
      }
    },
    "developer": {
      "type": "string"
    },
    "developerUrl": {
      "type": "string"
    },
    "privacyPolicyUrl": {
      "type": "string"
    },
    "supportEmail": {
      "type": "string"
    },
    "className": {
      "type": "string"
    },
    "sourcePythonClass": {
      "type": "string"
    },
    "appType": {
      "type": "string",
      "enum": [
        "internal",
        "external"
      ]
    },
    "agentType": {
      "type": "string",
      "enum": [
        "Metadata"
      ]
    },
    "scheduleType": {
      "type": "string",
      "enum": [
        "Live",
        "Scheduled",
        "ScheduledOrManual",
        "NoSchedule",
        "OnlyManual"
      ]
    },
    "permission": {
      "type": "string",
      "enum": [
        "All"
      ]
    },
    "runtime": {
      "type": "object"
    },
    "allowConfiguration": {
      "type": "boolean"
    },
    "appConfiguration": {
      "type": "object"
    },
    "appLogoUrl": {
      "type": "string",
      "format": "uri"
    },
    "appScreenshots": {
      "uniqueItems": true,
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "system": {
      "type": "boolean"
    },
    "domains": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "supportsInterrupt": {
      "type": "boolean"
    },
    "eventSubscriptions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CreateEventSubscription"
      }
    },
    "enabled": {
      "type": "boolean"
    },
    "supportsIngestionRunner": {
      "type": "boolean"
    },
    "allowConcurrentExecution": {
      "type": "boolean"
    },
    "allowBotImpersonation": {
      "type": "boolean"
    },
    "reviewers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EntityReference"
      }
    },
    "dataProducts": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "lifeCycle": {
      "$ref": "#/$defs/LifeCycle"
    },
    "extension": {
      "type": "object"
    }
  },
  "$defs": {
    "AccessDetails": {
      "required": [
        "timestamp"
      ],
      "type": "object",
      "properties": {
        "timestamp": {
          "type": "integer",
          "format": "int64"
        },
        "accessedBy": {
          "$ref": "#/$defs/EntityReference"
        },
        "accessedByAProcess": {
          "type": "string"
        }
      }
    },
    "AlertFilteringInput": {
      "type": "object",
      "properties": {
        "filters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ArgumentsInput"
          }
        },
        "actions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ArgumentsInput"
          }
        }
      }
    },
    "Argument": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "input": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "ArgumentsInput": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "effect": {
          "type": "string",
          "enum": [
            "include",
            "exclude"
          ]
        },
        "prefixCondition": {
          "type": "string",
          "enum": [
            "AND",
            "OR"
          ]
        },
        "arguments": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Argument"
          }
        }
      }
    },
    "CoverImage": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string"
        },
        "position": {
          "type": "string"
        }
      }
    },
    "CreateEventSubscription": {
      "required": [
        "alertType",
        "name"
      ],
      "type": "object",
      "properties": {
        "name": {
          "maxLength": 256,
          "minLength": 1,
          "pattern": "^((?!::)[^>\"\\x00-\\x1f])*$",
          "type": "string"
        },
        "className": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "owners": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EntityReference"
          }
        },
        "enabled": {
          "type": "boolean"
        },
        "batchSize": {
          "type": "integer",
          "format": "int32"
        },
        "alertType": {
          "type": "string",
          "enum": [
            "Notification",
            "Observability",
            "ActivityFeed",
            "GovernanceWorkflowChangeEvent",
            "Custom"
          ]
        },
        "trigger": {
          "$ref": "#/$defs/TriggerConfig"
        },
        "resources": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "destinations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SubscriptionDestination"
          }
        },
        "provider": {
          "type": "string",
          "enum": [
            "system",
            "user",
            "automation"
          ]
        },
        "retries": {
          "type": "integer",
          "format": "int32"
        },
        "pollInterval": {
          "type": "integer",
          "format": "int32"
        },
        "input": {
          "$ref": "#/$defs/AlertFilteringInput"
        },
        "notificationTemplate": {
          "$ref": "#/$defs/EntityReference"
        },
        "domains": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "config": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        },
        "reviewers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EntityReference"
          }
        },
        "dataProducts": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "lifeCycle": {
          "$ref": "#/$defs/LifeCycle"
        },
        "extension": {
          "type": "object"
        },
        "tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TagLabel"
          }
        }
      }
    },
    "EntityReference": {
      "required": [
        "id",
        "type"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "type": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "fullyQualifiedName": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "deleted": {
          "type": "boolean"
        },
        "inherited": {
          "type": "boolean"
        },
        "href": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "LifeCycle": {
      "type": "object",
      "properties": {
        "created": {
          "$ref": "#/$defs/AccessDetails"
        },
        "updated": {
          "$ref": "#/$defs/AccessDetails"
        },
        "accessed": {
          "$ref": "#/$defs/AccessDetails"
        }
      }
    },
    "PatternMatch": {
      "required": [
        "name",
        "score"
      ],
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "regex": {
          "type": "string"
        },
        "score": {
          "type": "number",
          "format": "double"
        }
      }
    },
    "Style": {
      "type": "object",
      "properties": {
        "color": {
          "type": "string"
        },
        "iconURL": {
          "type": "string"
        },
        "coverImage": {
          "$ref": "#/$defs/CoverImage"
        }
      }
    },
    "SubscriptionDestination": {
      "required": [
        "category",
        "type"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "category": {
          "type": "string",
          "enum": [
            "Users",
            "Teams",
            "Admins",
            "Assignees",
            "Owners",
            "Mentions",
            "Followers",
            "External"
          ]
        },
        "type": {
          "type": "string",
          "enum": [
            "Webhook",
            "Slack",
            "MsTeams",
            "GChat",
            "Email",
            "ActivityFeed",
            "GovernanceWorkflowChangeEvent"
          ]
        },
        "statusDetails": {
          "type": "object"
        },
        "timeout": {
          "type": "integer",
          "format": "int32"
        },
        "readTimeout": {
          "type": "integer",
          "format": "int32"
        },
        "enabled": {
          "type": "boolean"
        },
        "config": {
          "type": "object"
        },
        "notifyDownstream": {
          "type": "boolean"
        },
        "downstreamDepth": {
          "minimum": 1,
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "TagLabel": {
      "required": [
        "labelType",
        "source",
        "state",
        "tagFQN"
      ],
      "type": "object",
      "properties": {
        "tagFQN": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "displayName": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "style": {
          "$ref": "#/$defs/Style"
        },
        "source": {
          "type": "string",
          "enum": [
            "Classification",
            "Glossary"
          ]
        },
        "labelType": {
          "type": "string",
          "enum": [
            "Manual",
            "Propagated",
            "Automated",
            "Derived",
            "Generated"
          ]
        },
        "state": {
          "type": "string",
          "enum": [
            "Suggested",
            "Confirmed"
          ]
        },
        "href": {
          "type": "string",
          "format": "uri"
        },
        "reason": {
          "type": "string"
        },
        "appliedAt": {
          "type": "string",
          "format": "date-time"
        },
        "appliedBy": {
          "type": "string"
        },
        "metadata": {
          "$ref": "#/$defs/TagLabelMetadata"
        }
      }
    },
    "TagLabelMetadata": {
      "type": "object",
      "properties": {
        "recognizer": {
          "$ref": "#/$defs/TagLabelRecognizerMetadata"
        },
        "expiryDate": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "TagLabelRecognizerMetadata": {
      "required": [
        "recognizerId",
        "recognizerName",
        "score"
      ],
      "type": "object",
      "properties": {
        "recognizerId": {
          "type": "string",
          "format": "uuid"
        },
        "recognizerName": {
          "type": "string"
        },
        "score": {
          "type": "number",
          "format": "double"
        },
        "target": {
          "type": "string",
          "enum": [
            "content",
            "column_name"
          ]
        },
        "patterns": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PatternMatch"
          }
        }
      }
    },
    "TriggerConfig": {
      "required": [
        "triggerType"
      ],
      "type": "object",
      "properties": {
        "triggerType": {
          "type": "string",
          "enum": [
            "RealTime",
            "Scheduled"
          ]
        },
        "scheduleInfo": {
          "type": "string",
          "enum": [
            "Daily",
            "Weekly",
            "Monthly",
            "Custom"
          ]
        },
        "cronExpression": {
          "type": "string"
        }
      }
    }
  }
}