{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/swift/json-schema/swift-file-act-archive-download-response-schema.json",
  "title": "FileActArchiveDownloadResponse",
  "description": "The response content for a FileAct archive download initiation request.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/swift-messaging-api-openapi.yml#/components/schemas/FileActArchiveDownloadResponse",
  "required": [
    "archive",
    "distribution",
    "file_transfer_response"
  ],
  "type": "object",
  "properties": {
    "distribution": {
      "$ref": "#/$defs/Distribution"
    },
    "file_transfer_response": {
      "$ref": "#/$defs/FileTransferResponse"
    },
    "archive": {
      "$ref": "#/$defs/FileActArchiveReception"
    }
  },
  "additionalProperties": true,
  "$defs": {
    "Distribution": {
      "title": "Distribution",
      "description": "An Alliance Cloud distribution",
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "id": {
          "description": "The unique distribution identifier",
          "type": "integer",
          "format": "int64"
        },
        "service": {
          "description": "The service / protocol for the distribution",
          "type": "string",
          "enum": [
            "fin",
            "interAct",
            "fileAct"
          ]
        },
        "type": {
          "description": "The distribution type",
          "type": "string",
          "enum": [
            "message",
            "deliveryReport",
            "deliveryNotification",
            "transmissionReport",
            "archive",
            "export"
          ]
        },
        "distribution_tag": {
          "description": "The tag associated to the distribution",
          "type": "string",
          "maxLength": 256
        },
        "transmission_possible_duplicate": {
          "description": "Whether the distribution has already been tentatively downloaded at least once",
          "type": "boolean",
          "default": false
        },
        "copy": {
          "description": "Whether the distribution is about a copy or an original message",
          "type": "boolean"
        },
        "message_cloud_reference": {
          "description": "The unique identifier of the message linked to the distribution. For deliveryReport and transmissionReport types, it will be the one of the sent message",
          "type": "string",
          "format": "uuid"
        },
        "export_content": {
          "description": "Identifies the contents of the export. Currently only 'message' exports are supported by Alliance Cloud",
          "type": "string",
          "maxLength": 50
        },
        "export_format": {
          "description": "Identifies the format of the export. Currently only 'pdf' format is supported by Alliance Cloud",
          "type": "string",
          "maxLength": 50
        },
        "links": {
          "$ref": "#/$defs/Links"
        }
      }
    },
    "DistributionHistoryLog": {
      "title": "DistributionHistoryLog",
      "required": [
        "code",
        "label",
        "time",
        "user",
        "parameters"
      ],
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "maxLength": 80,
          "description": "The code for this event."
        },
        "label": {
          "type": "string",
          "description": "The label for this event."
        },
        "time": {
          "type": "string",
          "format": "date-time",
          "description": "The time when this event was created."
        },
        "user": {
          "type": "string",
          "maxLength": 100,
          "description": "The user that initiated the event."
        },
        "description": {
          "type": "string",
          "description": "The description of the event."
        },
        "parameters": {
          "type": "array",
          "description": "The list of parameters included in this event.",
          "items": {
            "$ref": "#/$defs/HistoryReportLogParameter"
          }
        }
      },
      "additionalProperties": true,
      "description": "Historical log event for a distribution"
    },
    "DistributionInfo": {
      "description": "Additional distribution information.",
      "title": "DistributionInfo",
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "recipient_dn_list": {
          "description": "The list of recipients to which the message/file is distributed.",
          "type": "array",
          "items": {
            "description": "A single recipient DN",
            "maxLength": 100,
            "type": "string"
          }
        },
        "original_snf_reference": {
          "description": "Indicates the original SnF reference of the message in a delivery notifiication related to SWIFTNet copy.",
          "maxLength": 50,
          "type": "string"
        }
      }
    },
    "DuplicateHistorySwiftNet": {
      "title": "DuplicateHistorySwiftNet",
      "type": "array",
      "items": {
        "$ref": "#/$defs/PdePdmSwiftNet"
      },
      "description": "History list of all possible duplicate flags set on the message (PDE, PDM)."
    },
    "FileActArchiveReception": {
      "title": "FileActArchiveReception",
      "type": "object",
      "required": [
        "companion_info",
        "history_report",
        "delivery_reports",
        "transmission_reports"
      ],
      "properties": {
        "companion_info": {
          "$ref": "#/$defs/FileActCompanionInfoReception"
        },
        "history_report": {
          "$ref": "#/$defs/FileActHistoryReportReception"
        },
        "delivery_reports": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FileActDeliveryReportReception"
          }
        },
        "transmission_reports": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FileActTransmissionReportReception"
          }
        }
      },
      "additionalProperties": true,
      "description": "The elements for a FileAct archive received from Alliance Cloud"
    },
    "FileActCompanionInfoReception": {
      "description": "Companion data for a received FileAct message.",
      "title": "FileActCompanionInfoReception",
      "type": "object",
      "additionalProperties": true,
      "required": [
        "sender_reference",
        "service_code",
        "message_type",
        "direction",
        "requestor",
        "responder",
        "file_logical_name",
        "version"
      ],
      "properties": {
        "sender_reference": {
          "description": "For emission and STP: represents the reference from the back office.\nFor reception or GUI: contains the Message Cloud Reference.",
          "type": "string",
          "maxLength": 70
        },
        "service_code": {
          "description": "The SWIFTNet service code.",
          "type": "string",
          "maxLength": 30
        },
        "message_type": {
          "description": "The type of the message. For an MX message, the format is: <bus. area>.<msg type>.<variant>.<version>. For example, ifds.001.001.01",
          "type": "string",
          "maxLength": 30
        },
        "direction": {
          "description": "Direction of the message. Possible values are:\n - Incoming: message received from the network\n - Outgoing: message sent to the network",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "Incoming",
            "Outgoing"
          ]
        },
        "requestor": {
          "description": "The distinguished name of the sender of the message.",
          "type": "string",
          "maxLength": 100
        },
        "responder": {
          "description": "The distinguished name of the receiver of the message.",
          "type": "string",
          "maxLength": 100
        },
        "version": {
          "description": "Identifies the version for this received message. Messages that are modified in Alliance Cloud have their version incremented. The initial version of a message is 0",
          "type": "integer"
        },
        "file_logical_name": {
          "description": "The logical name of file.",
          "type": "string",
          "maxLength": 254
        },
        "interface_info": {
          "$ref": "#/$defs/FileActCompanionInterfaceInfoReception"
        },
        "network_info": {
          "$ref": "#/$defs/FileActCompanionNetworkInfoReception"
        },
        "security_info": {
          "$ref": "#/$defs/FileActCompanionSecurityInfoReception"
        }
      }
    },
    "FileActCompanionInterfaceInfoReception": {
      "description": "Interface information for this FileAct.",
      "title": "FileActCompanionInterfaceInfoReception",
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "product_info": {
          "$ref": "#/$defs/ProductInfoReception"
        }
      }
    },
    "FileActCompanionNetworkInfoReception": {
      "description": "Swift Network information for this FileAct.",
      "title": "FileActCompanionNetworkInfoReception",
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "user_reference": {
          "description": "The Message User Reference set by the BO for messages received by the BO or by the user for messages manually created or by the sender for received messages.",
          "type": "string",
          "maxLength": 30
        },
        "network_priority": {
          "description": "The Network priority.",
          "type": [
            "string",
            "null"
          ],
          "default": "Normal",
          "enum": [
            "Normal",
            "Urgent"
          ]
        },
        "possible_duplicate": {
          "description": "For messages originated from the BO: if set to true, the BO indicated that the message is a PDE (Possible Duplicate Emission).\nFor messages sent to the BO: if set to true, Alliance Cloud indicates that the message is a PDE. The reason can either be duplicate detected by Cloud or set by the sender, or by the Network, or by the BO in case it is related to the copy of a message.",
          "type": "boolean"
        },
        "duplicate_history": {
          "$ref": "#/$defs/DuplicateHistorySwiftNet"
        },
        "delivery_notification_requested": {
          "description": "Indicates whether a non-delivery warning and/or a positive delivery notification is requested.",
          "type": "boolean"
        },
        "delivery_notification_responder_dn": {
          "description": "Delivery notification receiver DN (for Real-time FileAct).",
          "type": "string",
          "maxLength": 100
        },
        "delivery_notification_request_type": {
          "description": "Delivery notification request type (for Real-time FileAct).",
          "type": "string",
          "maxLength": 30
        },
        "non_delivery_warning_requested": {
          "description": "Indicates whether non-delivery warning time or non-delivery warning delay is set up.",
          "type": "boolean"
        },
        "non_delivery_warning_time": {
          "description": "Time and date in UTC after which the SWIFT central system has to generate an overdue warning if the message/file remains undelivered.\nIf present, non_delivery_warning_delay cannot be specified.",
          "type": "string",
          "format": "date-time"
        },
        "non_delivery_warning_delay": {
          "description": "Number of minutes after which SWIFT central system has to generate an overdue warning if the message/file remains undelivered.\nIf present, non_delivery_warning_time cannot be specified.",
          "type": "integer",
          "format": "int32",
          "minimum": 5,
          "maximum": 1440
        },
        "session_number": {
          "description": "The network session number.",
          "type": "integer"
        },
        "sequence_number": {
          "description": "The network sequence number.",
          "type": "integer"
        },
        "reference": {
          "description": "The reference generated by the correspondent application (for messages received).",
          "type": "string",
          "maxLength": 40
        },
        "validation_descriptor": {
          "description": "MVal processing result.",
          "type": "string",
          "format": "byte"
        },
        "response_responder_dn": {
          "description": "The responder DN of the business response. Real-time messages only.",
          "type": "string",
          "maxLength": 100
        },
        "response_reference": {
          "description": "The reference generated by the responding application.",
          "type": "string",
          "maxLength": 40
        },
        "response_possible_duplicate": {
          "description": "Indicates whether the response is a possible duplicate.",
          "type": "boolean"
        },
        "response_validation_descriptor": {
          "description": "MVal processing result of the response.",
          "type": "string",
          "format": "byte"
        },
        "payload_attributes": {
          "description": "Attributes associated to the payload for this SWIFTNet request.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/PayloadAttribute"
          }
        },
        "response_payload_attributes": {
          "description": "Attributes associated to the payload for this SWIFTNet request.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/PayloadAttribute"
          }
        },
        "copy_requested": {
          "description": "True when the SWIFTNet copy feature is optional for that service and a copy must be made. \nWhen absent, a copy is only made when the copy feature is defined as mandatory for the service.\nIf the copy service is defined as mandatory, then this value cannot be false.",
          "type": "boolean"
        },
        "copy_destinations": {
          "description": "The list of third party recipients to which the message or file must be copied in case of dynamic T- or Y-Copy.",
          "maxItems": 10,
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 100
          }
        },
        "copy_authorisation_notification_requested": {
          "description": "Request a positive Authorisation Notification for Y-Copy service.",
          "type": "boolean"
        },
        "copy_info": {
          "description": "Provides SWIFTNet copy-processing related information.",
          "type": "string",
          "format": "byte"
        },
        "copy_original_snf_reference": {
          "description": "Indicates the original SnF reference of the message in a delivery notification related to SWIFTNet copy.",
          "type": "string",
          "maxLength": 50
        },
        "transfer_reference": {
          "description": "The unique reference for the file transfer.",
          "type": "string",
          "maxLength": 50
        },
        "stored_transfer_reference": {
          "description": "The unique reference for the file transfer notification.",
          "type": "string",
          "maxLength": 50
        },
        "transfer_description": {
          "description": "Information about the file transfer.",
          "type": "string",
          "maxLength": 256
        },
        "transfer_info": {
          "description": "Structured data that the receiver can use for automatic processing of the file transfer.",
          "type": "string",
          "maxLength": 256
        },
        "file_description": {
          "description": "Information about the file.",
          "type": "string",
          "maxLength": 256
        },
        "file_info": {
          "description": "Structured data that the receiver can use for automatic processing of the file.",
          "type": "string",
          "maxLength": 256
        },
        "header_info": {
          "description": "Sw:HeaderInfo in end-to-end control data.",
          "type": "string",
          "maxLength": 14000,
          "format": "byte"
        },
        "file_start_time": {
          "description": "The time when the file transfer was started.",
          "type": "string",
          "format": "date-time"
        },
        "file_end_time": {
          "description": "The time when the file transfer ended.",
          "type": "string",
          "format": "date-time"
        },
        "recipients": {
          "description": "The list of recipients to whom the message must be distributed.",
          "type": "array",
          "maxItems": 1000,
          "items": {
            "type": "string",
            "maxLength": 100
          }
        },
        "recipients_public": {
          "description": "This element, when absent or true, indicates that the RecipientList is public and has to be forwarded to all Recipients.",
          "type": "boolean"
        },
        "distribution_info": {
          "$ref": "#/$defs/DistributionInfo"
        },
        "screening_info_for_receiver": {
          "description": "Contains information from the Transaction Screening service to the receiver about the message screening result.",
          "type": "string",
          "maxLength": 25
        },
        "request_type": {
          "description": "Contains the request type of the message. If the request type is not present, then for AnyXML messages, the request type is assumed to be the same as the message identifier. \nFor MX messages, it corresponds to the namespace URI of the XML document in the body of the message.",
          "maxLength": 30,
          "type": "string"
        },
        "end_to_end_sender_info": {
          "description": "This field provides additional information regarding the exchanged messages between the Requestor and the Responder.",
          "maxLength": 256,
          "type": "string"
        }
      }
    },
    "FileActCompanionSecurityInfoReception": {
      "description": "Security information for this FileAct.",
      "title": "FileActCompanionSecurityInfoReception",
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "non_repudiation_requested": {
          "description": "Indicates whether non-repudiation is requested.",
          "type": "boolean"
        },
        "non_repudiation_type": {
          "description": "Non-repudiation processing information (Type) for the response.",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "Optional",
            "Mandatory"
          ]
        },
        "response_non_repudiation_type": {
          "description": "Non-repudiation processing information (Type) for the response.",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "Optional",
            "Mandatory"
          ]
        },
        "signing_requested": {
          "description": "Indicates whether signing of the message is requested upon emission.",
          "type": "boolean"
        },
        "signer_dn": {
          "description": "The Distinguished Name of the owner of a Public Key Infrastructure certificate that signs a message.",
          "type": "string",
          "maxLength": 100
        },
        "signature_result": {
          "description": "The signature result.",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "Success",
            "Bypassed",
            "Failed"
          ]
        },
        "signature_value": {
          "description": "The signature value.",
          "type": "string",
          "format": "byte"
        },
        "response_signature_result": {
          "description": "The signature result of the response.",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "Success",
            "Bypassed",
            "Failed"
          ]
        },
        "response_signature_value": {
          "description": "The signature value of the response.",
          "type": "string",
          "format": "byte"
        },
        "file_digest_algorithm": {
          "description": "The name of the file digest algorithm.",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "SHA-256"
          ]
        },
        "file_digest_value": {
          "description": "The value of the file digest.",
          "type": "string",
          "maxLength": 50
        },
        "digest_list": {
          "description": "A list of digest information.",
          "type": "array",
          "maxItems": 8,
          "items": {
            "$ref": "#/$defs/SwiftNetSecurityDigestReception"
          }
        },
        "copy_third_party_signer_dn": {
          "description": "The Third Party Signer DN if the digest on 'Sw:ThirdPartyToSenderInfo' is received in a second signature.",
          "type": "string",
          "maxLength": 100
        },
        "rma_result": {
          "description": "The result of the RMA check.",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "Success",
            "Bypassed",
            "NoRecord",
            "NotEnabled",
            "InvalidPeriod",
            "Unauthorised"
          ]
        }
      }
    },
    "FileActDeliveryReportNetworkInfoReception": {
      "description": "Swift Network information for this FileAct delivery report.",
      "title": "FileActDeliveryReportNetworkInfoReception",
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "message_network_priority": {
          "description": "The Network priority of the sent message.",
          "type": [
            "string",
            "null"
          ],
          "default": "Normal",
          "enum": [
            "Normal",
            "Urgent"
          ]
        },
        "message_possible_duplicate": {
          "description": "The sent message 'possible_duplicate' value",
          "type": "boolean"
        },
        "message_session_number": {
          "description": "The value of the sent message 'session_number' property.",
          "type": "integer"
        },
        "message_sequence_number": {
          "description": "The value of the sent message 'sequence_number' property.",
          "type": "integer"
        },
        "message_request_type": {
          "description": "The value of the sent message 'request_type' property.",
          "maxLength": 30,
          "type": "string"
        },
        "message_delivery_notification_responder_dn": {
          "description": "The value of the sent message 'delivery_notification_responder_dn' property.",
          "type": "string",
          "maxLength": 100
        },
        "message_delivery_notification_request_type": {
          "description": "The value of the sent message 'delivery_notification_request_type' property.",
          "type": "string",
          "maxLength": 30
        },
        "message_validation_descriptor": {
          "description": "The value of the sent message 'validation_descriptor' property.",
          "type": "string",
          "format": "byte"
        },
        "message_response_responder_dn": {
          "description": "The value of the sent message 'response_responder_dn' property.",
          "type": "string",
          "maxLength": 100
        },
        "message_response_swift_reference": {
          "description": "The value of the sent message 'response_swift_reference' property.",
          "type": "string",
          "maxLength": 50
        },
        "message_response_reference": {
          "description": "The value of the sent message 'response_reference' property.",
          "type": "string",
          "maxLength": 40
        },
        "message_response_validation_descriptor": {
          "description": "The value of the sent message 'response_validation_descriptor' property.",
          "type": "string",
          "format": "byte"
        },
        "message_copy_requested": {
          "description": "The value of the sent message 'copy_requested' property.",
          "type": "boolean"
        },
        "message_copy_authorisation_notification_requested": {
          "description": "The value of the sent message 'copy_authorisation_notification_requested' property.",
          "type": "boolean"
        },
        "message_copy_info": {
          "description": "The value of the sent message 'copy_info' property.",
          "type": "string",
          "format": "byte"
        },
        "message_transfer_reference": {
          "description": "The value of the sent message 'transfer_reference' property.",
          "type": "string",
          "maxLength": 50
        },
        "file_start_time": {
          "description": "The time when the file transfer was started.",
          "type": "string",
          "format": "date-time"
        },
        "file_end_time": {
          "description": "The time when the file transfer ended.",
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "FileActDeliveryReportReception": {
      "description": "A FileAct delivery report.",
      "title": "FileActDeliveryReportReception",
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "sender_reference": {
          "description": "For emission and STP: represents the reference from the back office.\nFor reception or GUI: contains the Message Cloud Reference.",
          "type": "string",
          "maxLength": 70
        },
        "service_code": {
          "description": "The SWIFTNet service code.",
          "type": "string",
          "maxLength": 30
        },
        "response_date": {
          "description": "The intervention creation date and time.",
          "type": "string",
          "format": "date-time"
        },
        "delivery_status": {
          "description": "The network delivery status.",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "Delivered",
            "Aborted",
            "DelayedNak",
            "SwiftnetCopyReleased",
            "NotDelivered",
            "Unknown"
          ]
        },
        "responder": {
          "description": "The distinguished name (DN) of the receiver of the message.",
          "type": "string",
          "maxLength": 100
        },
        "delivery_notification_payload": {
          "description": "The content of the delivery notification system message.",
          "type": "string",
          "format": "byte",
          "maxLength": 14000
        },
        "companion_info": {
          "$ref": "#/$defs/FileActCompanionInfoReception"
        },
        "network_info": {
          "$ref": "#/$defs/FileActDeliveryReportNetworkInfoReception"
        }
      },
      "required": [
        "sender_reference",
        "service_code",
        "response_date",
        "delivery_status",
        "responder",
        "delivery_notification_payload"
      ]
    },
    "FileActHistoryReportReception": {
      "title": "FileActHistoryReportReception",
      "required": [
        "history_logs",
        "message_modified",
        "responder",
        "sender_reference"
      ],
      "type": "object",
      "properties": {
        "sender_reference": {
          "maxLength": 70,
          "type": "string",
          "description": "For emission and STP: represents the reference from the back office.\nFor reception or GUI: contains the Message Cloud Reference."
        },
        "responder": {
          "maxLength": 100,
          "type": "string",
          "description": "The distinguished name of the receiver of the message."
        },
        "history_logs": {
          "type": "array",
          "description": "A list of history logs.",
          "items": {
            "$ref": "#/$defs/HistoryReportLog"
          }
        },
        "message_modified": {
          "type": "boolean",
          "description": "A flag indicating whether the message has been modified or not."
        },
        "companion_info": {
          "$ref": "#/$defs/FileActCompanionInfoReception"
        }
      },
      "additionalProperties": true,
      "description": "Representation of an FileAct history report for reception"
    },
    "FileActTransmissionReportNetworkInfoReception": {
      "description": "Swift Network information for this FileAct transmission report.",
      "title": "FileActTransmissionReportNetworkInfoReception",
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "message_network_priority": {
          "description": "The Network priority of the sent message.",
          "type": [
            "string",
            "null"
          ],
          "default": "Normal",
          "enum": [
            "Normal",
            "Urgent"
          ]
        },
        "message_possible_duplicate": {
          "description": "The sent message 'possible_duplicate' value",
          "type": "boolean"
        },
        "message_request_type": {
          "description": "The value of the sent message 'request_type' property.",
          "maxLength": 30,
          "type": "string"
        },
        "session_number": {
          "description": "The network session number of the received transmission report.",
          "type": "integer"
        },
        "sequence_number": {
          "description": "The network sequence number of the received the transmission report.",
          "type": "integer"
        },
        "validation_descriptor": {
          "description": "MVal processing result.",
          "type": "string",
          "format": "byte"
        },
        "response_responder_dn": {
          "description": "The responder DN of the business response. Real-time messages only.",
          "type": "string",
          "maxLength": 100
        },
        "response_swift_reference": {
          "description": "The reference generated by the SWIFT central system for the response.",
          "type": "string",
          "maxLength": 50
        },
        "response_reference": {
          "description": "The reference generated by the responding application.",
          "type": "string",
          "maxLength": 40
        },
        "response_validation_descriptor": {
          "description": "MVal processing result of the response.",
          "type": "string",
          "format": "byte"
        },
        "file_start_time": {
          "description": "The time when the file transfer was started.",
          "type": "string",
          "format": "date-time"
        },
        "file_end_time": {
          "description": "The time when the file transfer ended.",
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "FileActTransmissionReportReception": {
      "description": "A FileAct transmission report.",
      "title": "FileActTransmissionReportReception",
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "sender_reference": {
          "description": "For emission and STP: represents the reference from the back office.\nFor reception or GUI: contains the Message Cloud Reference.",
          "type": "string",
          "maxLength": 70
        },
        "service_code": {
          "description": "The SWIFTNet service code.",
          "type": "string",
          "maxLength": 30
        },
        "transfer_reference": {
          "description": "The unique reference for the file transfer.",
          "type": "string",
          "maxLength": 50
        },
        "response_date": {
          "description": "The intervention creation date and time.",
          "type": "string",
          "format": "date-time"
        },
        "delivery_status": {
          "description": "The network delivery status. 'Rejected' is for messages that have been rejected by Alliance Cloud before sending it to the network.",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "Acked",
            "Nacked",
            "Rejected"
          ]
        },
        "rejection_code": {
          "description": "The Nack code of the rejection.",
          "type": "string"
        },
        "rejection_reason": {
          "description": "The Nack reason of the rejection.",
          "type": "string"
        },
        "responder": {
          "description": "The distinguished name (DN) of the receiver of the message.",
          "type": "string",
          "maxLength": 100
        },
        "transmission_report_payload": {
          "description": "The content of the tranmission report. It contains the ACK/NACK/failure notification.",
          "type": "string",
          "format": "byte",
          "maxLength": 14000
        },
        "companion_info": {
          "$ref": "#/$defs/FileActCompanionInfoReception"
        },
        "network_info": {
          "$ref": "#/$defs/FileActTransmissionReportNetworkInfoReception"
        }
      },
      "required": [
        "sender_reference",
        "service_code",
        "response_date",
        "delivery_status",
        "responder"
      ]
    },
    "FileTransferResponse": {
      "description": "The file transfer response information.",
      "title": "FileTransferResponse",
      "type": "object",
      "additionalProperties": true,
      "required": [
        "signed_urls"
      ],
      "properties": {
        "signed_urls": {
          "description": "Signed URL(s) created following as a result of the file transfer request.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/SignedUrl"
          }
        },
        "file_operation": {
          "$ref": "#/$defs/FileTransferResponseOperation"
        },
        "file_attributes": {
          "$ref": "#/$defs/FileTransferResponseFileAttributes"
        }
      }
    },
    "FileTransferResponseFileAttributes": {
      "description": "The file transfer attributes. Only specified for download.",
      "title": "FileTransferResponseFileAttributes",
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "file_name": {
          "description": "Logical name of the file being transferred, excluding path, including file extension.",
          "type": "string",
          "maxLength": 254
        },
        "file_digest_alg": {
          "description": "The algorithm used to compute the file digest.",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "MD5"
          ]
        },
        "file_digest": {
          "description": "The Base64 encoded value of the file digest, computed using the specified algorithm.",
          "maxLength": 24,
          "type": "string"
        },
        "file_size": {
          "description": "The size of the files, in bytes.",
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "FileTransferResponseOperation": {
      "description": "File transfer operation direction for a response (only specified for download).",
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "type": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "download"
          ]
        }
      }
    },
    "HistoryReportLog": {
      "title": "HistoryReportLog",
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "maxLength": 80,
          "description": "The code for this event."
        },
        "label": {
          "type": "string",
          "description": "The label for this event."
        },
        "time": {
          "type": "string",
          "format": "date-time",
          "description": "The time when this event was created."
        },
        "user": {
          "type": "string",
          "maxLength": 100,
          "description": "The user that initiated the event."
        },
        "description": {
          "type": "string",
          "description": "The description of the event."
        },
        "parameters": {
          "type": "array",
          "description": "The list of parameters included in this event.",
          "items": {
            "$ref": "#/$defs/HistoryReportLogParameter"
          }
        },
        "distribution_history_logs": {
          "type": "array",
          "description": "A list of distribution history logs.",
          "items": {
            "$ref": "#/$defs/DistributionHistoryLog"
          }
        }
      },
      "additionalProperties": true,
      "description": "Historical log event for a message"
    },
    "HistoryReportLogParameter": {
      "required": [
        "code",
        "value"
      ],
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "maxLength": 80,
          "description": "The code of the parameter."
        },
        "value": {
          "type": "string",
          "description": "The value of the parameter."
        }
      },
      "additionalProperties": true,
      "description": "Specific parameter data included in a message history log event"
    },
    "Links": {
      "type": "array",
      "items": {
        "description": "A single link describing a possible API action",
        "type": "object",
        "additionalProperties": true,
        "required": [
          "href",
          "rel",
          "type"
        ],
        "properties": {
          "href": {
            "type": "string",
            "maxLength": 256,
            "format": "uri",
            "description": "The URI of the target resource"
          },
          "rel": {
            "type": "string",
            "maxLength": 30,
            "description": "How the current resource is linked to the target resource"
          },
          "type": {
            "type": "string",
            "enum": [
              "POST",
              "GET",
              "PUT",
              "PATCH",
              "HEAD",
              "DELETE"
            ],
            "description": "The HTTP verb to perform the action on the target resource"
          }
        }
      },
      "description": "An array of links describing the possible API actions that can be done for the distribution"
    },
    "PayloadAttribute": {
      "title": "PayloadAttribute",
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "name": {
          "description": "Name of the attribute associated to the payload of the SWIFTNet request.",
          "type": "string"
        },
        "value": {
          "description": "Value of the attribute associated to the payload of the SWIFTNet request.",
          "maxLength": 256,
          "type": "string"
        }
      },
      "description": "Attribute associated to the payload of the SWIFTNet request"
    },
    "PdePdmSwiftNet": {
      "title": "PDE / PDM item for SWIFTNet",
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "name": {
          "description": "Type of possible duplicate:\n- pde: for Possible Duplicate Emission\n- pdm: for Possible Duplicate Message",
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "pde",
            "pdm"
          ]
        },
        "value": {
          "description": "Value of possible duplicate flag",
          "type": "string",
          "format": "byte"
        }
      },
      "description": "Possible Duplicate (Emission or Message) item"
    },
    "ProductInfoReception": {
      "title": "ProductInfoReception",
      "maxItems": 3,
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProductReception"
      },
      "description": "Information about products (back-office, interface...) that processed the received message."
    },
    "ProductReception": {
      "title": "ProductReception",
      "required": [
        "product_name",
        "vendor_name",
        "version"
      ],
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "vendor_name": {
          "description": "Name of the vendor of the product application.",
          "maxLength": 8,
          "type": "string"
        },
        "product_name": {
          "description": "Name of the product application.",
          "maxLength": 8,
          "type": "string"
        },
        "version": {
          "description": "Version of the product application.",
          "maxLength": 8,
          "type": "string"
        }
      },
      "description": "Single information about a product that processed the received message."
    },
    "SignedUrl": {
      "description": "A signed URL information.",
      "title": "SignedUrl",
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "part": {
          "description": "The part for which this signed URL relates to. For a single part transfer, the value is always 1.",
          "type": "integer"
        },
        "url": {
          "description": "The signed URL as generated bhy the service. ",
          "type": "string"
        }
      }
    },
    "SwiftNetSecurityDigestReception": {
      "description": "Combination of a reference to data subject to a digest and the digest value for that data",
      "title": "SwiftNetSecurityDigestReception",
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "digest_reference": {
          "description": "Reference identifying the data subject to a digest. Used for MX and File messages.",
          "maxLength": 128,
          "type": "string"
        },
        "digest_value": {
          "description": "Value of the digest for the data identified by the reference.",
          "maxLength": 50,
          "type": "string"
        }
      }
    }
  }
}