Files
mostovik-backend/tools/openapi/source-record-extensions.json
2026-10-05 16:00:54 +02:00

976 lines
20 KiB
JSON

{
"AttachmentUnavailableError": {
"type": "object",
"properties": {
"success": {
"type": "boolean",
"enum": [
false
]
},
"errors": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"enum": [
"attachment_unavailable"
]
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
]
}
}
},
"required": [
"success",
"errors"
]
},
"IntegratedStructureSummary": {
"type": "object",
"properties": {
"events_count": {
"type": "integer"
},
"document_links_count": {
"type": "integer"
},
"unique_documents_count": {
"type": "integer"
},
"first_event_date": {
"type": "string"
},
"latest_event_date": {
"type": "string"
}
},
"required": [
"events_count",
"document_links_count",
"unique_documents_count",
"first_event_date",
"latest_event_date"
]
},
"IntegratedStructureAttachment": {
"type": "object",
"properties": {
"available": {
"type": "boolean"
},
"download_allowed": {
"type": "boolean"
},
"filename": {
"type": "string",
"nullable": true
},
"mime_type": {
"type": "string",
"nullable": true
},
"sha256": {
"type": "string",
"nullable": true
},
"size": {
"type": "integer",
"nullable": true
}
},
"required": [
"available",
"download_allowed",
"filename",
"mime_type",
"sha256",
"size"
]
},
"IntegratedStructureDocument": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"number": {
"type": "string"
},
"date": {
"type": "string"
},
"dsp": {
"type": "boolean"
},
"have_text": {
"type": "boolean"
},
"consultant_web_url": {
"type": "string",
"nullable": true
},
"attachment": {
"$ref": "#/components/schemas/IntegratedStructureAttachment"
}
},
"required": [
"id",
"name",
"type",
"number",
"date",
"dsp",
"have_text",
"attachment"
]
},
"IntegratedStructureEvent": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"date": {
"type": "string"
},
"note": {
"type": "string",
"nullable": true
},
"documents_count": {
"type": "integer"
},
"documents": {
"type": "array",
"items": {
"$ref": "#/components/schemas/IntegratedStructureDocument"
}
}
},
"required": [
"id",
"date",
"note",
"documents_count",
"documents"
]
},
"IntegratedStructureListPayload": {
"type": "object",
"properties": {
"structure": {
"$ref": "#/components/schemas/IntegratedStructureSummary"
}
},
"required": [
"structure"
]
},
"IntegratedStructureDetailPayload": {
"type": "object",
"properties": {
"structure": {
"$ref": "#/components/schemas/IntegratedStructureSummary"
},
"events": {
"type": "array",
"items": {
"$ref": "#/components/schemas/IntegratedStructureEvent"
}
}
},
"required": [
"structure",
"events"
]
},
"FedresursRenderedNode": {
"type": "object",
"properties": {
"tag": {
"type": "string"
},
"attributes": {
"type": "object",
"additionalProperties": true
},
"children": {
"type": "array",
"items": {
"oneOf": [
{
"type": "string"
},
{
"$ref": "#/components/schemas/FedresursRenderedNode"
}
]
}
}
},
"required": [
"tag",
"attributes",
"children"
]
},
"FedresursRenderedPage": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"tree": {
"$ref": "#/components/schemas/FedresursRenderedNode"
},
"attributes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"value": {
"type": "string"
}
},
"required": [
"label",
"value"
]
}
},
"links": {
"type": "array",
"items": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
},
"required": [
"text",
"url"
]
}
},
"url": {
"type": "string",
"format": "uri"
},
"page_type": {
"type": "string"
},
"reported_records_count": {
"type": "integer"
},
"records": {
"type": "array",
"items": {
"$ref": "#/components/schemas/FedresursRenderedPage"
}
}
},
"required": [
"text",
"tree",
"attributes",
"links"
]
},
"FedresursStatus": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"code": {
"type": "string",
"nullable": true
},
"is_active": {
"type": "boolean"
}
},
"required": [
"name",
"code",
"is_active"
]
},
"FedresursCompanyProfileListPayload": {
"type": "object",
"properties": {
"fedresurs_guid": {
"type": "string",
"format": "uuid"
},
"short_name": {
"type": "string"
},
"kpp": {
"type": "string",
"nullable": true
},
"status": {
"$ref": "#/components/schemas/FedresursStatus"
},
"executive_body_name": {
"type": "string",
"nullable": true
},
"registration_date": {
"type": "string",
"format": "date",
"nullable": true
},
"publication_count": {
"type": "integer"
},
"reorganization_count": {
"type": "integer"
},
"has_bankruptcy_information": {
"type": "boolean"
},
"captured_at": {
"type": "string",
"format": "date-time"
},
"source_url": {
"type": "string",
"format": "uri"
},
"sections": {
"type": "object",
"additionalProperties": {
"type": "string",
"enum": [
"loaded",
"empty",
"not_available",
"blocked",
"schema_unverified"
]
}
}
},
"required": [
"fedresurs_guid",
"short_name",
"kpp",
"status",
"registration_date",
"publication_count",
"reorganization_count",
"has_bankruptcy_information",
"captured_at",
"source_url",
"sections"
]
},
"FedresursCompanyProfileDetailPayload": {
"type": "object",
"properties": {
"profile": {
"type": "object",
"properties": {
"full_name": {
"type": "string"
},
"inn": {
"type": "string"
},
"ogrn": {
"type": "string"
},
"kpp": {
"type": "string",
"nullable": true
},
"registration_date": {
"type": "string",
"format": "date",
"nullable": true
},
"status": {
"$ref": "#/components/schemas/FedresursStatus"
}
},
"required": [
"full_name",
"inn",
"ogrn",
"status"
],
"additionalProperties": true
},
"rendered_sections": {
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/FedresursRenderedPage"
}
},
"rendered_page": {
"$ref": "#/components/schemas/FedresursRenderedPage"
},
"related_pages": {
"type": "object",
"additionalProperties": {
"$ref": "#/components/schemas/FedresursRenderedPage"
}
},
"message_details": {
"type": "array",
"items": {
"$ref": "#/components/schemas/FedresursRenderedPage"
}
},
"lineage": {
"type": "object",
"additionalProperties": true
}
},
"required": [
"profile",
"rendered_page",
"rendered_sections",
"related_pages",
"message_details",
"lineage"
]
},
"FsspEnforcementProceedingListPayload": {
"type": "object",
"properties": {
"queried_inn": {
"type": "string",
"nullable": true
},
"debtor_name": {
"type": "string",
"nullable": true
},
"debtor_legal_address": {
"type": "string",
"nullable": true
},
"debtor_actual_address": {
"type": "string",
"nullable": true
},
"consolidated_proceeding_number": {
"type": "string",
"nullable": true
},
"document_raw": {
"type": "string",
"nullable": true
},
"document_type": {
"type": "string",
"nullable": true
},
"document_number": {
"type": "string",
"nullable": true
},
"document_issuer": {
"type": "string",
"nullable": true
},
"document_subject_raw": {
"type": "string",
"nullable": true
},
"creditor_inn": {
"type": "string",
"nullable": true
},
"termination_raw": {
"type": "string",
"nullable": true
},
"termination_reason": {
"type": "string",
"nullable": true
},
"termination_article": {
"type": "string",
"nullable": true
},
"termination_part": {
"type": "string",
"nullable": true
},
"termination_point": {
"type": "string",
"nullable": true
},
"service_text": {
"type": "string",
"nullable": true
},
"subject_raw": {
"type": "string",
"nullable": true
},
"subject": {
"type": "string",
"nullable": true
},
"debt_amount": {
"type": "string",
"nullable": true,
"pattern": "^-?[0-9]+\\.[0-9]{2}$"
},
"claim_amount": {
"type": "string",
"nullable": true,
"pattern": "^[0-9]+\\.[0-9]{2}$"
},
"debt_currency": {
"type": "string",
"nullable": true
},
"department_raw": {
"type": "string",
"nullable": true
},
"department_name": {
"type": "string",
"nullable": true
},
"department_address": {
"type": "string",
"nullable": true
},
"bailiff_raw": {
"type": "string",
"nullable": true
},
"bailiff_name": {
"type": "string",
"nullable": true
},
"debtor_raw": {
"type": "string"
},
"debtor_inn": {
"type": "string"
},
"proceeding_raw": {
"type": "string"
},
"proceeding_number": {
"type": "string"
},
"source_url": {
"type": "string"
},
"dataset": {
"type": "string"
},
"initiated_on": {
"type": "string",
"format": "date",
"nullable": true
},
"document_date": {
"type": "string",
"format": "date",
"nullable": true
},
"terminated_on": {
"type": "string",
"format": "date",
"nullable": true
},
"origin_kind": {
"type": "string",
"enum": [
"web_search",
"open_data_csv"
],
"nullable": true
},
"fetched_at": {
"type": "string",
"format": "date-time"
},
"service_links": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"label",
"url"
]
}
},
"bailiff_phones": {
"type": "array",
"items": {
"type": "string"
}
},
"parse_warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"raw_columns": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"source_row_number": {
"type": "integer"
},
"provenance": {
"type": "object",
"additionalProperties": true
},
"observations": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
}
},
"required": [
"queried_inn",
"debtor_name",
"debtor_legal_address",
"debtor_actual_address",
"consolidated_proceeding_number",
"document_raw",
"document_type",
"document_number",
"document_issuer",
"document_subject_raw",
"creditor_inn",
"termination_raw",
"termination_reason",
"termination_article",
"termination_part",
"termination_point",
"service_text",
"subject_raw",
"subject",
"debt_amount",
"claim_amount",
"debt_currency",
"department_raw",
"department_name",
"department_address",
"bailiff_raw",
"bailiff_name",
"debtor_raw",
"debtor_inn",
"proceeding_raw",
"proceeding_number",
"source_url",
"dataset",
"initiated_on",
"document_date",
"terminated_on",
"origin_kind",
"fetched_at",
"service_links",
"bailiff_phones",
"parse_warnings",
"raw_columns",
"source_row_number"
]
},
"FsspEnforcementProceedingDetailPayload": {
"type": "object",
"properties": {
"queried_inn": {
"type": "string",
"nullable": true
},
"debtor_name": {
"type": "string",
"nullable": true
},
"debtor_legal_address": {
"type": "string",
"nullable": true
},
"debtor_actual_address": {
"type": "string",
"nullable": true
},
"consolidated_proceeding_number": {
"type": "string",
"nullable": true
},
"document_raw": {
"type": "string",
"nullable": true
},
"document_type": {
"type": "string",
"nullable": true
},
"document_number": {
"type": "string",
"nullable": true
},
"document_issuer": {
"type": "string",
"nullable": true
},
"document_subject_raw": {
"type": "string",
"nullable": true
},
"creditor_inn": {
"type": "string",
"nullable": true
},
"termination_raw": {
"type": "string",
"nullable": true
},
"termination_reason": {
"type": "string",
"nullable": true
},
"termination_article": {
"type": "string",
"nullable": true
},
"termination_part": {
"type": "string",
"nullable": true
},
"termination_point": {
"type": "string",
"nullable": true
},
"service_text": {
"type": "string",
"nullable": true
},
"subject_raw": {
"type": "string",
"nullable": true
},
"subject": {
"type": "string",
"nullable": true
},
"debt_amount": {
"type": "string",
"nullable": true,
"pattern": "^-?[0-9]+\\.[0-9]{2}$"
},
"claim_amount": {
"type": "string",
"nullable": true,
"pattern": "^[0-9]+\\.[0-9]{2}$"
},
"debt_currency": {
"type": "string",
"nullable": true
},
"department_raw": {
"type": "string",
"nullable": true
},
"department_name": {
"type": "string",
"nullable": true
},
"department_address": {
"type": "string",
"nullable": true
},
"bailiff_raw": {
"type": "string",
"nullable": true
},
"bailiff_name": {
"type": "string",
"nullable": true
},
"debtor_raw": {
"type": "string"
},
"debtor_inn": {
"type": "string"
},
"proceeding_raw": {
"type": "string"
},
"proceeding_number": {
"type": "string"
},
"source_url": {
"type": "string"
},
"dataset": {
"type": "string"
},
"initiated_on": {
"type": "string",
"format": "date",
"nullable": true
},
"document_date": {
"type": "string",
"format": "date",
"nullable": true
},
"terminated_on": {
"type": "string",
"format": "date",
"nullable": true
},
"origin_kind": {
"type": "string",
"enum": [
"web_search",
"open_data_csv"
],
"nullable": true
},
"fetched_at": {
"type": "string",
"format": "date-time"
},
"service_links": {
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"label",
"url"
]
}
},
"bailiff_phones": {
"type": "array",
"items": {
"type": "string"
}
},
"parse_warnings": {
"type": "array",
"items": {
"type": "string"
}
},
"raw_columns": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"source_row_number": {
"type": "integer"
},
"provenance": {
"type": "object",
"additionalProperties": true
},
"observations": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
}
},
"required": [
"queried_inn",
"debtor_name",
"debtor_legal_address",
"debtor_actual_address",
"consolidated_proceeding_number",
"document_raw",
"document_type",
"document_number",
"document_issuer",
"document_subject_raw",
"creditor_inn",
"termination_raw",
"termination_reason",
"termination_article",
"termination_part",
"termination_point",
"service_text",
"subject_raw",
"subject",
"debt_amount",
"claim_amount",
"debt_currency",
"department_raw",
"department_name",
"department_address",
"bailiff_raw",
"bailiff_name",
"debtor_raw",
"debtor_inn",
"proceeding_raw",
"proceeding_number",
"source_url",
"dataset",
"initiated_on",
"document_date",
"terminated_on",
"origin_kind",
"fetched_at",
"service_links",
"bailiff_phones",
"parse_warnings",
"raw_columns",
"source_row_number"
]
}
}