Complete response schemaSchema completă a răspunsului
{
"allOf": [
{
"$ref": "#/components/schemas/SubmissionMutation",
"type": "object",
"additionalProperties": false,
"required": [
"submission",
"correlation_id",
"result_url",
"idempotent_replay"
],
"properties": {
"submission": {
"$ref": "#/components/schemas/SubmissionRecord",
"type": "object",
"additionalProperties": false,
"required": [
"id",
"ingestion_id",
"submitted_by",
"correlation_id",
"metadata",
"original_payload_hash",
"canonical_payload_hash",
"request_hash",
"ingestion_status",
"processing_triggered",
"received_at",
"plan"
],
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"ingestion_id": {
"type": "string",
"format": "uuid"
},
"submitted_by": {
"type": "string",
"format": "uuid"
},
"correlation_id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"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}$"
}
}
},
"original_payload_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"canonical_payload_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"request_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"ingestion_status": {
"type": "string",
"enum": [
"received",
"accepted",
"rejected"
]
},
"processing_triggered": {
"type": "boolean"
},
"reason_code": {
"type": "string",
"maxLength": 128,
"pattern": "^[a-z0-9]+(?:_[a-z0-9]+)*$"
},
"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"
}
}
},
"received_at": {
"type": "string",
"format": "date-time"
},
"ingestion_completed_at": {
"type": "string",
"format": "date-time"
},
"plan": {
"type": "array",
"maxItems": 100,
"items": {
"$ref": "#/components/schemas/SubmissionPlanNode",
"type": "object",
"additionalProperties": false,
"required": [
"id",
"submission_id",
"kind",
"name",
"slug",
"address",
"position",
"transform",
"release"
],
"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"
}
}
}
]
}
},
"allOf": [
{
"if": {
"properties": {
"kind": {
"const": "document_generation"
}
},
"required": [
"kind"
]
},
"then": {
"required": [
"template"
]
}
},
{
"if": {
"properties": {
"kind": {
"const": "transformation"
}
},
"required": [
"kind"
]
},
"then": {
"not": {
"required": [
"template"
]
}
}
}
]
}
},
"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"
}
}
}
]
}
}
}
}
}
},
"correlation_id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"result_url": {
"type": "string",
"pattern": "^/api/v1/submissions/[0-9a-f-]{36}$"
},
"idempotent_replay": {
"type": "boolean"
}
}
},
{
"type": "object",
"properties": {
"idempotent_replay": {
"const": true
}
}
}
]
}