|
| 1 | +import "Timestamp.proto"; |
| 2 | +import "Documents/Document.proto"; |
| 3 | +import "Documents/DocumentParticipantV2.proto"; |
| 4 | +import "Docflow/AttachmentV3.proto"; |
| 5 | +import "Docflow/DocflowV4.proto"; |
| 6 | +import "Docflow/DocflowV3.proto"; |
| 7 | +import "Docflow/DocumentInfoV5.proto"; |
| 8 | +import "Docflow/DeliveryDocflowV5.proto"; |
| 9 | +import "Docflow/OuterDocflowV5.proto"; |
| 10 | +import "Docflow/OutOfWorkflowUniversalMessageDocflow.proto"; |
| 11 | +import "Docflow/RoamingNotification.proto"; |
| 12 | +import "Docflow/RevocationDocflowV5.proto"; |
| 13 | +import "Docflow/ResolutionDocflowV5.proto"; |
| 14 | +import "Docflow/UniversalMessageAttachmentDocflow.proto"; |
| 15 | +import "DocflowStatusV3.proto"; |
| 16 | + |
| 17 | +package Diadoc.Api.Proto.Docflow; |
| 18 | + |
| 19 | +message TitleDocflow |
| 20 | +{ |
| 21 | + required int32 TitleIndex = 1; |
| 22 | + optional TitleVersionV5 Version = 2; |
| 23 | + required Documents.DocumentParticipantV2 Author = 3; |
| 24 | + required TitleAuthorDocflow AuthorSigning = 4; |
| 25 | + repeated TitleParticipantDocflow ParticipantDocflows = 5; |
| 26 | + optional OutOfWorkflowUniversalMessageDocflow OutOfWorkflowUniversalMessageDocflow = 6; |
| 27 | +} |
| 28 | + |
| 29 | +message TitleVersionV5 |
| 30 | +{ |
| 31 | + required string EntityId = 1; |
| 32 | + required int32 Revision = 2; |
| 33 | + required TitleVersionStatusV5 Status = 3; |
| 34 | + optional string PreviousVersionEntityId = 4; |
| 35 | +} |
| 36 | + |
| 37 | +enum TitleVersionStatusV5 |
| 38 | +{ |
| 39 | + TitleVersionStatusUnknown = 0; |
| 40 | + TitleVersionStatusCurrent = 1; |
| 41 | + TitleVersionStatusPending = 2; |
| 42 | + TitleVersionStatusHistorical = 3; |
| 43 | +} |
| 44 | + |
| 45 | +message TitleAuthorDocflow |
| 46 | +{ |
| 47 | + required bool IsFinished = 1; |
| 48 | + required TitleAuthorStatusV5 Status = 2; |
| 49 | + optional SignedAttachmentV3 Title = 3; |
| 50 | + optional TitleOperationResultV5 OperationResult = 4; |
| 51 | +} |
| 52 | + |
| 53 | +enum TitleAuthorStatusV5 |
| 54 | +{ |
| 55 | + TitleAuthorStatusUnknown = 0; |
| 56 | + TitleAuthorStatusWaiting = 1; |
| 57 | + TitleAuthorStatusNotReadyToSign = 2; |
| 58 | + TitleAuthorStatusVerifying = 3; |
| 59 | + TitleAuthorStatusSigned = 4; |
| 60 | + TitleAuthorStatusInvalidSignature = 5; |
| 61 | +} |
| 62 | + |
| 63 | +message TitleOperationResultV5 |
| 64 | +{ |
| 65 | + optional WellKnownTitleOperationResult WellKnown = 1; |
| 66 | +} |
| 67 | + |
| 68 | +enum WellKnownTitleOperationResult |
| 69 | +{ |
| 70 | + WellKnownTitleOperationResultUnknown = 0; |
| 71 | + WellKnownTitleOperationResultSigned = 1; |
| 72 | + WellKnownTitleOperationResultPartiallySigned = 2; |
| 73 | + WellKnownTitleOperationResultRejected = 3; |
| 74 | +} |
| 75 | + |
| 76 | +message TitleParticipantDocflow |
| 77 | +{ |
| 78 | + required Documents.DocumentParticipantV2 Participant = 1; |
| 79 | + optional TitleDeliveryDocflowV5 TitleDelivery = 2; |
| 80 | + optional TitleParticipantResponseDocflow Response = 3; |
| 81 | + optional ReceiptDocflowV5 Receipt = 4; |
| 82 | +} |
| 83 | + |
| 84 | +message TitleDeliveryDocflowV5 |
| 85 | +{ |
| 86 | + optional DeliveryDocflowV5 Delivery = 1; |
| 87 | + optional ConfirmationDocflowV5 Confirmation = 2; |
| 88 | + optional RoamingNotification RoamingNotification = 3; |
| 89 | +} |
| 90 | + |
| 91 | +message TitleParticipantResponseDocflow |
| 92 | +{ |
| 93 | + required bool IsFinished = 1; |
| 94 | + required TitleParticipantResponseStatusV5 Status = 2; |
| 95 | + optional SignatureV3 Signature = 3; |
| 96 | + optional SignatureRejectionDocflowV4 Rejection = 4; |
| 97 | + optional ConfirmationDocflowV5 Confirmation = 5; |
| 98 | + optional DeliveryDocflowV5 Delivery = 6; |
| 99 | +} |
| 100 | + |
| 101 | +enum TitleParticipantResponseStatusV5 |
| 102 | +{ |
| 103 | + TitleParticipantResponseStatusUnknown = 0; |
| 104 | + TitleParticipantResponseStatusNotAcceptable = 1; |
| 105 | + TitleParticipantResponseStatusWaiting = 2; |
| 106 | + TitleParticipantResponseStatusVerifying = 3; |
| 107 | + TitleParticipantResponseStatusSigned = 4; |
| 108 | + TitleParticipantResponseStatusSignatureRejected = 5; |
| 109 | + TitleParticipantResponseStatusInvalidSignature = 6; |
| 110 | +} |
| 111 | + |
| 112 | +message ReceiptDocflowV5 |
| 113 | +{ |
| 114 | + required bool IsFinished = 1; |
| 115 | + optional SignedAttachmentV3 ReceiptAttachment = 2; |
| 116 | + optional Timestamp SentAt = 3; |
| 117 | + optional Timestamp DeliveredAt = 4; |
| 118 | + required Documents.GeneralReceiptStatus Status = 5; |
| 119 | + optional ConfirmationDocflowV5 Confirmation = 6; |
| 120 | + optional UniversalMessageAttachmentDocflow UniversalMessage = 7; |
| 121 | +} |
| 122 | + |
| 123 | +message ConfirmationDocflowV5 |
| 124 | +{ |
| 125 | + required bool IsFinished = 1; |
| 126 | + optional SignedAttachmentV3 ConfirmationAttachment = 2; |
| 127 | + optional Timestamp ConfirmedAt = 3; |
| 128 | + optional ReceiptDocflowV5 Receipt = 4; |
| 129 | + optional OperatorConfirmationDocflow RoamingConfirmation = 5; |
| 130 | +} |
| 131 | + |
| 132 | +message AmendmentRequestRecipientDocflow |
| 133 | +{ |
| 134 | + required Documents.DocumentParticipantV2 Recipient = 1; |
| 135 | + optional ReceiptDocflowV5 Receipt = 2; |
| 136 | + optional DeliveryDocflowV5 Delivery = 3; |
| 137 | + optional ConfirmationDocflowV5 Confirmation = 4; |
| 138 | +} |
| 139 | + |
| 140 | +message AmendmentRequestDocflowV5 |
| 141 | +{ |
| 142 | + required Documents.DocumentParticipantV2 Requester = 1; |
| 143 | + repeated AmendmentRequestRecipientDocflow RecipientDocflows = 2; |
| 144 | + required bool IsFinished = 3; |
| 145 | + optional SignedAttachmentV3 AmendmentRequest = 4; |
| 146 | + required int32 AmendmentFlags = 5; |
| 147 | + optional string PlainText = 6; |
| 148 | + optional UniversalMessageAttachmentDocflow UniversalMessage = 7; |
| 149 | + optional string TargetEntityId = 8; |
| 150 | +} |
| 151 | + |
| 152 | +message DocflowV5 |
| 153 | +{ |
| 154 | + repeated TitleDocflow Titles = 1; |
| 155 | + repeated AmendmentRequestDocflowV5 AmendmentRequests = 2; |
| 156 | + optional RevocationDocflowV5 Revocation = 3; |
| 157 | + repeated OuterDocflowV5 OuterDocflows = 4; |
| 158 | + required DocflowStatusV3 DocflowStatus = 5; |
| 159 | + optional TtGisFixationDocflow TtGisFixation = 6; |
| 160 | + optional ResolutionDocflowV5 Resolution = 7; |
| 161 | +} |
0 commit comments