fix: type admin API contracts
This commit is contained in:
+260
-4
@@ -217,6 +217,187 @@
|
||||
"title": "AdminCatchReportOut",
|
||||
"type": "object"
|
||||
},
|
||||
"AdminMediaDerivativeOut": {
|
||||
"properties": {
|
||||
"format": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Format"
|
||||
},
|
||||
"height": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Height"
|
||||
},
|
||||
"role": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Role"
|
||||
},
|
||||
"width": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Width"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"role",
|
||||
"format",
|
||||
"width",
|
||||
"height"
|
||||
],
|
||||
"title": "AdminMediaDerivativeOut",
|
||||
"type": "object"
|
||||
},
|
||||
"AdminMediaReviewOut": {
|
||||
"properties": {
|
||||
"content_type": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Content Type"
|
||||
},
|
||||
"derivatives": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/AdminMediaDerivativeOut"
|
||||
},
|
||||
"title": "Derivatives",
|
||||
"type": "array"
|
||||
},
|
||||
"duplicate_of": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Duplicate Of"
|
||||
},
|
||||
"entity_key": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Entity Key"
|
||||
},
|
||||
"entity_type": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Entity Type"
|
||||
},
|
||||
"height": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Height"
|
||||
},
|
||||
"id": {
|
||||
"title": "Id",
|
||||
"type": "string"
|
||||
},
|
||||
"image_url": {
|
||||
"title": "Image Url",
|
||||
"type": "string"
|
||||
},
|
||||
"label": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Label"
|
||||
},
|
||||
"source_system": {
|
||||
"title": "Source System",
|
||||
"type": "string"
|
||||
},
|
||||
"source_url": {
|
||||
"title": "Source Url",
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"title": "Status",
|
||||
"type": "string"
|
||||
},
|
||||
"width": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Width"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"id",
|
||||
"status",
|
||||
"entity_type",
|
||||
"entity_key",
|
||||
"label",
|
||||
"width",
|
||||
"height",
|
||||
"content_type",
|
||||
"image_url",
|
||||
"source_system",
|
||||
"source_url",
|
||||
"duplicate_of",
|
||||
"derivatives"
|
||||
],
|
||||
"title": "AdminMediaReviewOut",
|
||||
"type": "object"
|
||||
},
|
||||
"AdminModerationHistoryOut": {
|
||||
"properties": {
|
||||
"action": {
|
||||
@@ -276,6 +457,83 @@
|
||||
"title": "AdminModerationHistoryOut",
|
||||
"type": "object"
|
||||
},
|
||||
"AdminSourceStatusOut": {
|
||||
"properties": {
|
||||
"backoff_recommended": {
|
||||
"title": "Backoff Recommended",
|
||||
"type": "boolean"
|
||||
},
|
||||
"cooldown_seconds": {
|
||||
"title": "Cooldown Seconds",
|
||||
"type": "integer"
|
||||
},
|
||||
"last_started_at": {
|
||||
"anyOf": [
|
||||
{
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Last Started At"
|
||||
},
|
||||
"last_success_at": {
|
||||
"anyOf": [
|
||||
{
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Last Success At"
|
||||
},
|
||||
"name": {
|
||||
"title": "Name",
|
||||
"type": "string"
|
||||
},
|
||||
"next_allowed_at": {
|
||||
"anyOf": [
|
||||
{
|
||||
"format": "date-time",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
],
|
||||
"title": "Next Allowed At"
|
||||
},
|
||||
"recent_failures_24h": {
|
||||
"title": "Recent Failures 24H",
|
||||
"type": "integer"
|
||||
},
|
||||
"source_system": {
|
||||
"title": "Source System",
|
||||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"title": "Status",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"source_system",
|
||||
"name",
|
||||
"status",
|
||||
"last_started_at",
|
||||
"last_success_at",
|
||||
"next_allowed_at",
|
||||
"cooldown_seconds",
|
||||
"recent_failures_24h",
|
||||
"backoff_recommended"
|
||||
],
|
||||
"title": "AdminSourceStatusOut",
|
||||
"type": "object"
|
||||
},
|
||||
"BaitOut": {
|
||||
"properties": {
|
||||
"id": {
|
||||
@@ -2942,8 +3200,7 @@
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"items": {
|
||||
"additionalProperties": true,
|
||||
"type": "object"
|
||||
"$ref": "#/components/schemas/AdminMediaReviewOut"
|
||||
},
|
||||
"title": "Response Admin Media Catalog Api V1 Admin Media Catalog Get",
|
||||
"type": "array"
|
||||
@@ -3124,8 +3381,7 @@
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"items": {
|
||||
"additionalProperties": true,
|
||||
"type": "object"
|
||||
"$ref": "#/components/schemas/AdminSourceStatusOut"
|
||||
},
|
||||
"title": "Response Admin Source Status Api V1 Admin Source Status Get",
|
||||
"type": "array"
|
||||
|
||||
Reference in New Issue
Block a user