Structured response bodyBody structurat al răspunsului
application/json
Structured response bodyBody structurat al răspunsului
Complete response schemaSchema completă a răspunsului
{
"$ref": "#/components/schemas/SubmissionElement",
"type": "object",
"additionalProperties": false,
"required": [
"id",
"kind",
"content"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"kind": {
"type": "string",
"enum": [
"submission",
"ingestion",
"transformation",
"document_generation",
"storage"
]
},
"submission": {
"$ref": "#/components/schemas/SubmissionView",
"type": "object",
"additionalProperties": false,
"required": [
"id",
"metadata",
"received_at",
"submitted_by",
"correlation_id",
"original_evidence"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"metadata": {
"$ref": "#/components/schemas/SubmissionMetadata",
"type": "object",
"additionalProperties": false,
"required": [
"model_slug",
"object_reference",
"object_effective_at",
"source_system",
"source_actor"
],
"properties": {
"model_slug": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"object_reference": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+-]{0,127}$"
},
"object_effective_at": {
"type": "string",
"format": "date-time"
},
"source_system": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+-]{0,127}$"
},
"source_actor": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:@+-]{0,127}$"
}
}
},
"received_at": {
"type": "string",
"format": "date-time"
},
"submitted_by": {
"type": "string",
"format": "uuid"
},
"correlation_id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"original_evidence": {
"$ref": "#/components/schemas/ContentDescriptor",
"type": "object",
"additionalProperties": false,
"required": [
"available"
],
"properties": {
"available": {
"type": "boolean"
},
"media_type": {
"type": "string",
"enum": [
"application/json",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/pdf"
]
},
"byte_size": {
"type": "integer",
"minimum": 1,
"maximum": 26214400
},
"hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"href": {
"type": "string",
"oneOf": [
{
"pattern": "^/api/v1/submissions/[0-9a-f-]{36}/elements/[0-9a-f-]{36}/content$"
},
{
"pattern": "^/api/v1/executions/[0-9a-f-]{36}/artifacts/[0-9a-f-]{36}/download$"
}
]
}
}
}
}
},
"ingestion": {
"$ref": "#/components/schemas/IngestionView",
"type": "object",
"additionalProperties": false,
"required": [
"id",
"outcome",
"processing_triggered",
"selection_snapshot"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"outcome": {
"type": "string",
"enum": [
"received",
"accepted",
"rejected"
]
},
"processing_triggered": {
"type": "boolean"
},
"reason_code": {
"type": "string",
"maxLength": 128
},
"decision_as_of": {
"type": "string",
"format": "date-time"
},
"completed_at": {
"type": "string",
"format": "date-time"
},
"model": {
"$ref": "#/components/schemas/DefinitionSelection",
"type": "object",
"additionalProperties": false,
"required": [
"family_id",
"activation_id",
"version_id",
"version",
"slug",
"content_hash",
"effective_from"
],
"properties": {
"family_id": {
"type": "string",
"format": "uuid"
},
"activation_id": {
"type": "string",
"format": "uuid"
},
"version_id": {
"type": "string",
"format": "uuid"
},
"version": {
"type": "integer",
"minimum": 1
},
"slug": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"content_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"effective_from": {
"type": "string",
"format": "date-time"
}
}
},
"selection_snapshot": {
"type": "array",
"maxItems": 100,
"items": {
"$ref": "#/components/schemas/IngestionSelectionNode",
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"name",
"slug",
"address",
"position"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"transformation",
"document_generation"
]
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"slug": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"address": {
"type": "string",
"minLength": 3,
"maxLength": 1024
},
"parent_address": {
"type": "string",
"minLength": 3,
"maxLength": 1024
},
"position": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"transform": {
"$ref": "#/components/schemas/DefinitionSelection",
"type": "object",
"additionalProperties": false,
"required": [
"family_id",
"activation_id",
"version_id",
"version",
"slug",
"content_hash",
"effective_from"
],
"properties": {
"family_id": {
"type": "string",
"format": "uuid"
},
"activation_id": {
"type": "string",
"format": "uuid"
},
"version_id": {
"type": "string",
"format": "uuid"
},
"version": {
"type": "integer",
"minimum": 1
},
"slug": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"content_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"effective_from": {
"type": "string",
"format": "date-time"
}
}
},
"template": {
"$ref": "#/components/schemas/DefinitionSelection",
"type": "object",
"additionalProperties": false,
"required": [
"family_id",
"activation_id",
"version_id",
"version",
"slug",
"content_hash",
"effective_from"
],
"properties": {
"family_id": {
"type": "string",
"format": "uuid"
},
"activation_id": {
"type": "string",
"format": "uuid"
},
"version_id": {
"type": "string",
"format": "uuid"
},
"version": {
"type": "integer",
"minimum": 1
},
"slug": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"content_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"effective_from": {
"type": "string",
"format": "date-time"
}
}
},
"release": {
"$ref": "#/components/schemas/ReleaseSelection",
"type": "object",
"additionalProperties": false,
"required": [
"id",
"content_hash"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"content_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"node_address": {
"type": "string",
"minLength": 3,
"maxLength": 1024,
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*(?::[a-z0-9]+(?:-[a-z0-9]+)*){1,15}$"
},
"input_mode": {
"type": "string",
"enum": [
"submission",
"parent_output"
]
},
"producer_node_address": {
"type": "string",
"minLength": 3,
"maxLength": 1024,
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*(?::[a-z0-9]+(?:-[a-z0-9]+)*){1,15}$"
},
"producer_release_id": {
"type": "string",
"format": "uuid"
},
"producer_release_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"validation_input_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
}
},
"oneOf": [
{
"not": {
"anyOf": [
{
"required": [
"node_address"
]
},
{
"required": [
"input_mode"
]
},
{
"required": [
"producer_node_address"
]
},
{
"required": [
"producer_release_id"
]
},
{
"required": [
"producer_release_hash"
]
},
{
"required": [
"validation_input_hash"
]
}
]
}
},
{
"required": [
"node_address",
"input_mode",
"validation_input_hash"
],
"properties": {
"input_mode": {
"const": "submission"
}
},
"not": {
"anyOf": [
{
"required": [
"producer_node_address"
]
},
{
"required": [
"producer_release_id"
]
},
{
"required": [
"producer_release_hash"
]
}
]
}
},
{
"required": [
"node_address",
"input_mode",
"producer_node_address",
"producer_release_id",
"producer_release_hash",
"validation_input_hash"
],
"properties": {
"input_mode": {
"const": "parent_output"
}
}
}
]
}
}
}
}
}
},
"processing": {
"$ref": "#/components/schemas/ProcessingElement",
"type": "object",
"additionalProperties": false,
"required": [
"id",
"submission_id",
"kind",
"name",
"slug",
"address",
"position",
"transform",
"release",
"status",
"attempt_count",
"peak_rss_bytes",
"peak_rss_availability",
"content"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"submission_id": {
"type": "string",
"format": "uuid"
},
"parent_node_id": {
"type": "string",
"format": "uuid"
},
"kind": {
"type": "string",
"enum": [
"transformation",
"document_generation"
]
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"slug": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"address": {
"type": "string",
"minLength": 3,
"maxLength": 1024
},
"position": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"transform": {
"$ref": "#/components/schemas/DefinitionSelection",
"type": "object",
"additionalProperties": false,
"required": [
"family_id",
"activation_id",
"version_id",
"version",
"slug",
"content_hash",
"effective_from"
],
"properties": {
"family_id": {
"type": "string",
"format": "uuid"
},
"activation_id": {
"type": "string",
"format": "uuid"
},
"version_id": {
"type": "string",
"format": "uuid"
},
"version": {
"type": "integer",
"minimum": 1
},
"slug": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"content_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"effective_from": {
"type": "string",
"format": "date-time"
}
}
},
"template": {
"$ref": "#/components/schemas/DefinitionSelection",
"type": "object",
"additionalProperties": false,
"required": [
"family_id",
"activation_id",
"version_id",
"version",
"slug",
"content_hash",
"effective_from"
],
"properties": {
"family_id": {
"type": "string",
"format": "uuid"
},
"activation_id": {
"type": "string",
"format": "uuid"
},
"version_id": {
"type": "string",
"format": "uuid"
},
"version": {
"type": "integer",
"minimum": 1
},
"slug": {
"type": "string",
"minLength": 1,
"maxLength": 64,
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"content_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"effective_from": {
"type": "string",
"format": "date-time"
}
}
},
"release": {
"$ref": "#/components/schemas/ReleaseSelection",
"type": "object",
"additionalProperties": false,
"required": [
"id",
"content_hash"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"content_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"node_address": {
"type": "string",
"minLength": 3,
"maxLength": 1024,
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*(?::[a-z0-9]+(?:-[a-z0-9]+)*){1,15}$"
},
"input_mode": {
"type": "string",
"enum": [
"submission",
"parent_output"
]
},
"producer_node_address": {
"type": "string",
"minLength": 3,
"maxLength": 1024,
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*(?::[a-z0-9]+(?:-[a-z0-9]+)*){1,15}$"
},
"producer_release_id": {
"type": "string",
"format": "uuid"
},
"producer_release_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"validation_input_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
}
},
"oneOf": [
{
"not": {
"anyOf": [
{
"required": [
"node_address"
]
},
{
"required": [
"input_mode"
]
},
{
"required": [
"producer_node_address"
]
},
{
"required": [
"producer_release_id"
]
},
{
"required": [
"producer_release_hash"
]
},
{
"required": [
"validation_input_hash"
]
}
]
}
},
{
"required": [
"node_address",
"input_mode",
"validation_input_hash"
],
"properties": {
"input_mode": {
"const": "submission"
}
},
"not": {
"anyOf": [
{
"required": [
"producer_node_address"
]
},
{
"required": [
"producer_release_id"
]
},
{
"required": [
"producer_release_hash"
]
}
]
}
},
{
"required": [
"node_address",
"input_mode",
"producer_node_address",
"producer_release_id",
"producer_release_hash",
"validation_input_hash"
],
"properties": {
"input_mode": {
"const": "parent_output"
}
}
}
]
},
"status": {
"$ref": "#/components/schemas/ProcessingNodeStatus",
"type": "string",
"enum": [
"pending",
"queued",
"processing",
"awaiting_compose",
"completed",
"failed",
"blocked"
]
},
"execution_id": {
"type": "string",
"format": "uuid"
},
"attempt_count": {
"type": "integer",
"minimum": 0,
"maximum": 5
},
"submitted_at": {
"type": "string",
"format": "date-time"
},
"updated_at": {
"type": "string",
"format": "date-time"
},
"completed_at": {
"type": "string",
"format": "date-time"
},
"duration_ms": {
"type": "integer",
"minimum": 0,
"description": "Elapsed time from the canonical execution timestamps; present only for completed or failed executions."
},
"peak_rss_bytes": {
"type": [
"integer",
"null"
],
"minimum": 0,
"description": "Maximum honestly attributable peak RSS across all execution step attempts; null when any required measurement is unavailable."
},
"peak_rss_availability": {
"type": "string",
"enum": [
"measured",
"unavailable"
]
},
"failure": {
"$ref": "#/components/schemas/SubmissionFailure",
"type": "object",
"additionalProperties": false,
"required": [
"code"
],
"properties": {
"code": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.-]{0,63}$"
},
"detail": {
"type": "string",
"minLength": 1,
"maxLength": 240
},
"blocked_by": {
"type": "string",
"format": "uuid"
},
"root_cause_code": {
"type": "string",
"pattern": "^[a-z][a-z0-9_.-]{0,63}$"
}
}
},
"content": {
"$ref": "#/components/schemas/ContentDescriptor",
"type": "object",
"additionalProperties": false,
"required": [
"available"
],
"properties": {
"available": {
"type": "boolean"
},
"media_type": {
"type": "string",
"enum": [
"application/json",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/pdf"
]
},
"byte_size": {
"type": "integer",
"minimum": 1,
"maximum": 26214400
},
"hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"href": {
"type": "string",
"oneOf": [
{
"pattern": "^/api/v1/submissions/[0-9a-f-]{36}/elements/[0-9a-f-]{36}/content$"
},
{
"pattern": "^/api/v1/executions/[0-9a-f-]{36}/artifacts/[0-9a-f-]{36}/download$"
}
]
}
}
}
},
"allOf": [
{
"if": {
"properties": {
"kind": {
"const": "document_generation"
}
},
"required": [
"kind"
]
},
"then": {
"required": [
"template"
]
}
},
{
"if": {
"properties": {
"kind": {
"const": "transformation"
}
},
"required": [
"kind"
]
},
"then": {
"not": {
"required": [
"template"
]
}
}
},
{
"if": {
"properties": {
"status": {
"enum": [
"completed",
"failed"
]
}
},
"required": [
"status"
]
},
"then": {
"required": [
"duration_ms"
]
}
}
]
},
"storage": {
"$ref": "#/components/schemas/StorageElement",
"type": "object",
"additionalProperties": false,
"required": [
"id",
"producing_node_id",
"execution_id",
"format",
"media_type",
"byte_size",
"content_hash",
"created_at",
"download_path"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"producing_node_id": {
"type": "string",
"format": "uuid"
},
"execution_id": {
"type": "string",
"format": "uuid"
},
"format": {
"type": "string",
"enum": [
"docx",
"pdf"
]
},
"media_type": {
"type": "string",
"enum": [
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/pdf"
]
},
"byte_size": {
"type": "integer",
"minimum": 1,
"maximum": 26214400
},
"content_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"created_at": {
"type": "string",
"format": "date-time"
},
"download_path": {
"type": "string",
"pattern": "^/api/v1/executions/[0-9a-f-]{36}/artifacts/[0-9a-f-]{36}/download$"
}
}
},
"content": {
"$ref": "#/components/schemas/ContentDescriptor",
"type": "object",
"additionalProperties": false,
"required": [
"available"
],
"properties": {
"available": {
"type": "boolean"
},
"media_type": {
"type": "string",
"enum": [
"application/json",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/pdf"
]
},
"byte_size": {
"type": "integer",
"minimum": 1,
"maximum": 26214400
},
"hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"href": {
"type": "string",
"oneOf": [
{
"pattern": "^/api/v1/submissions/[0-9a-f-]{36}/elements/[0-9a-f-]{36}/content$"
},
{
"pattern": "^/api/v1/executions/[0-9a-f-]{36}/artifacts/[0-9a-f-]{36}/download$"
}
]
}
}
}
}
}{
"id": "11111111-1111-4111-8111-000000000001",
"kind": "submission",
"content": {
"available": false
}
}