|
132 | 132 | * } |
133 | 133 | * @psalm-type LibresignIdentifyAccountsResponse = list<LibresignIdentifyAccount> |
134 | 134 | * @psalm-type LibresignNotify = array{ |
135 | | - * date: string, |
| 135 | + * date: non-negative-int, |
136 | 136 | * method: "activity"|"notify"|"mail", |
| 137 | + * description?: string, |
137 | 138 | * } |
138 | 139 | * @psalm-type LibresignRequestedBy = array{ |
139 | 140 | * userId: string, |
140 | 141 | * displayName: ?string, |
141 | 142 | * } |
| 143 | + * @psalm-type LibresignDynamicMetadataScalar = string|int|float|bool|null |
| 144 | + * @psalm-type LibresignDynamicMetadataRecord = array<string, LibresignDynamicMetadataScalar> |
| 145 | + * @psalm-type LibresignDynamicMetadataValue = LibresignDynamicMetadataScalar|list<LibresignDynamicMetadataScalar>|LibresignDynamicMetadataRecord|list<LibresignDynamicMetadataRecord> |
| 146 | + * @psalm-type LibresignSignerCertificateInfo = array{ |
| 147 | + * serialNumber?: string, |
| 148 | + * serialNumberHex?: string, |
| 149 | + * hash?: string, |
| 150 | + * subject?: LibresignDynamicMetadataValue, |
| 151 | + * } |
| 152 | + * @psalm-type LibresignSignerMetadata = array{ |
| 153 | + * remote-address?: string, |
| 154 | + * user-agent?: string, |
| 155 | + * notify?: LibresignNotify[], |
| 156 | + * certificate_info?: LibresignSignerCertificateInfo, |
| 157 | + * } |
142 | 158 | * @psalm-type LibresignSignerSummary = array{ |
143 | 159 | * signRequestId: int, |
144 | 160 | * displayName: string, |
|
167 | 183 | * visibleElements: LibresignVisibleElement[], |
168 | 184 | * signatureMethods?: LibresignSignatureMethods, |
169 | 185 | * uid?: string, |
170 | | - * metadata?: mixed, |
| 186 | + * metadata?: LibresignSignerMetadata, |
171 | 187 | * } |
172 | 188 | * |
173 | 189 | * Shared feedback and action contracts |
|
363 | 379 | * pdfVersion?: string, |
364 | 380 | * status_changed_at?: string, |
365 | 381 | * } |
366 | | - * @psalm-type LibresignFileRuntimeMetadata = LibresignValidateMetadata|array<string, mixed> |
| 382 | + * @psalm-type LibresignFileRuntimeMetadata = LibresignValidateMetadata|array<string, LibresignDynamicMetadataValue> |
367 | 383 | * @psalm-type LibresignValidationPageResolution = array{ |
368 | 384 | * w: float, |
369 | 385 | * h: float, |
|
0 commit comments