changedInput schema / properties / fields / description
Previous value: -"Applicant answers keyed by the field names in ``get_verification_requirements``. Choice fields take comma-separated option keys."New value: +"Applicant answers as text, keyed by the field names in ``get_verification_requirements``. Choice fields take comma-separated option keys."
changedInput schema / properties / files / items / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "slot": {
- "description": "The document slot this file fills: a key in ``documents``.",
- "pattern": "^[A-Za-z0-9_-]{1,64}$",
- "type": "string"
- },
- "upload_id": {
- "description": "The ``id`` from ``create_file_upload`` with purpose ``verification_document``.",
- "format": "uuid",
- "type": "string"
- }
- },
- "required": [
- "slot",
- "upload_id"
- ],
- "type": "object"
- },
- {
- "properties": {
- "content_base64": {
- "contentEncoding": "base64",
- "description": "The whole file, base64-encoded.",
- "type": "string"
- },
- "content_type": {
- "description": "The file's format.",
- "enum": [
- "image/jpeg",
- "image/png",
- "application/pdf"
- ],
- "type": "string"
- },
- "slot": {
- "description": "The document slot this file fills: a key in ``documents``.",
- "pattern": "^[A-Za-z0-9_-]{1,64}$",
- "type": "string"
- }
- },
- "required": [
- "slot",
- "content_type",
- "content_base64"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "slot": {
+ "description": "The key in ``documents`` that identifies what this file proves.",
+ "pattern": "^[A-Za-z0-9_-]{1,64}$",
+ "type": "string"
+ },
+ "upload_id": {
+ "description": "The ``id`` from ``create_file_upload`` with purpose ``verification_document``.",
+ "format": "uuid",
+ "type": "string"
+ }
+ },
+ "required": [
+ "slot",
+ "upload_id"
+ ],
+ "type": "object"
+ },
+ {
+ "properties": {
+ "content_base64": {
+ "contentEncoding": "base64",
+ "description": "The complete file for this document slot when supplied inline instead of by upload ID.",
+ "type": "string"
+ },
+ "content_type": {
+ "description": "File format used to read the document.",
+ "enum": [
+ "image/jpeg",
+ "image/png",
+ "application/pdf"
+ ],
+ "type": "string"
+ },
+ "slot": {
+ "description": "The key in ``documents`` that identifies what this file proves.",
+ "pattern": "^[A-Za-z0-9_-]{1,64}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "slot",
+ "content_type",
+ "content_base64"
+ ],
+ "type": "object"
+ }
+]
changedInput schema / properties / quote_id / description
Previous value: -"The number offer this registration lets the user buy: the offer's ``quote_id`` from ``quote_numbers``, the same one used for the requirements. Give it when ``purpose`` is ``number``; leave it out for ``sms``."New value: +"Required for reading documents. This is the ``quote_id`` from ``quote_numbers`` for the offer used to get the form requirements."
addedOutput schema / $defs
Added value: +{
+ "VerificationDocumentRead": {
+ "description": "What was read from one slot's file.",
+ "properties": {
+ "expiry_date": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The expiry date printed on the file (YYYY-MM-DD), or null.",
+ "title": "Expiry Date"
+ },
+ "fields": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Values for the fields of the slot's document types, by field name, as printed on the file.",
+ "title": "Fields",
+ "type": "object"
+ },
+ "file_slot": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The slot whose file this was read from: this slot, or the slot whose file covers it. Slots with the same `file_slot` share one file. Null when not read.",
+ "title": "File Slot"
+ },
+ "none_of_types": {
+ "default": false,
+ "description": "True when the file was read and looks like none of the slot's document types (`option` is then null).",
+ "title": "None Of Types",
+ "type": "boolean"
+ },
+ "option": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The slot's document type the file looks like, as an option key, or null when none fits or it was not read.",
+ "title": "Option"
+ },
+ "printed_name": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/VerificationPrintedName"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The name printed on the file, or null when not read."
+ },
+ "read": {
+ "description": "False when nothing was read from the file: the reader is off, the file type is not supported, the read failed or took too long (no warning), or the file is unreadable (an 'unreadable' warning). The other values are then empty.",
+ "title": "Read",
+ "type": "boolean"
+ },
+ "skipped": {
+ "anyOf": [
+ {
+ "const": "daily_limit",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Why the file was not read, when Hail chose not to: 'daily_limit' when the workspace has used today's document reads. Null otherwise.",
+ "title": "Skipped"
+ }
+ },
+ "required": [
+ "read",
+ "option",
+ "fields",
+ "expiry_date",
+ "printed_name",
+ "skipped",
+ "none_of_types",
+ "file_slot"
+ ],
+ "title": "VerificationDocumentRead",
+ "type": "object"
+ },
+ "VerificationDocumentWarning": {
+ "description": "Something on an uploaded document the carrier may refuse. A warning\nonly: you can still submit.",
+ "properties": {
+ "field": {
+ "description": "Where to show it: a slot name for the document itself, or the path of a typed value (`first_name`, `<slot>.<field>`, `address.customer_name`).",
+ "title": "Field",
+ "type": "string"
+ },
+ "kind": {
+ "description": "'unreadable', 'rotated' (upside down or on its side), 'expired', 'document_type' (the file does not match the chosen type), or 'name' (the typed name differs from the printed one).",
+ "enum": [
+ "unreadable",
+ "rotated",
+ "expired",
+ "document_type",
+ "name"
+ ],
+ "title": "Kind",
+ "type": "string"
+ },
+ "message": {
+ "description": "What is wrong and how to fix it.",
+ "title": "Message",
+ "type": "string"
+ }
+ },
+ "required": [
+ "field",
+ "kind",
+ "message"
+ ],
+ "title": "VerificationDocumentWarning",
+ "type": "object"
+ },
+ "VerificationPrintedName": {
+ "description": "The name printed on a document, as read. Empty strings when not printed.",
+ "properties": {
+ "business_name": {
+ "description": "The name of the company the document is about or addressed to, never the company that issued it.",
+ "title": "Business Name",
+ "type": "string"
+ },
+ "given_names": {
+ "description": "The given names of the person the document is about or addressed to, never a person who signs for the issuer.",
+ "title": "Given Names",
+ "type": "string"
+ },
+ "latin_given_names": {
+ "default": "",
+ "description": "The given names in Latin letters as the document prints them (its machine-readable zone or a transliteration), or empty.",
+ "title": "Latin Given Names",
+ "type": "string"
+ },
+ "latin_surnames": {
+ "default": "",
+ "description": "The surnames in Latin letters, the same way.",
+ "title": "Latin Surnames",
+ "type": "string"
+ },
+ "surnames": {
+ "description": "That person's surnames.",
+ "title": "Surnames",
+ "type": "string"
+ }
+ },
+ "required": [
+ "given_names",
+ "surnames",
+ "latin_given_names",
+ "latin_surnames",
+ "business_name"
+ ],
+ "title": "VerificationPrintedName",
+ "type": "object"
+ }
+}
removedOutput schema / additionalProperties
Removed value: -true
addedOutput schema / anyOf
Added value: +[
+ {
+ "description": "Returned by ``POST /verifications/document-check``.",
+ "properties": {
+ "address": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Address parts read from the files (`customer_name`, `street`, `city`, `region`, `postal_code`, `country_code`). Only the parts found.",
+ "title": "Address",
+ "type": "object"
+ },
+ "documents": {
+ "additionalProperties": {
+ "$ref": "#/$defs/VerificationDocumentRead"
+ },
+ "description": "What was read from each slot that had a file, by slot name.",
+ "title": "Documents",
+ "type": "object"
+ },
+ "fields": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Values for the form's own `fields`, by field name, read from the files.",
+ "title": "Fields",
+ "type": "object"
+ },
+ "note": {
+ "description": "What the check does not cover.",
+ "title": "Note",
+ "type": "string"
+ },
+ "warnings": {
+ "description": "Things the carrier may refuse. Empty when nothing was found.",
+ "items": {
+ "$ref": "#/$defs/VerificationDocumentWarning"
+ },
+ "title": "Warnings",
+ "type": "array"
+ }
+ },
+ "required": [
+ "fields",
+ "address",
+ "documents",
+ "warnings",
+ "note"
+ ],
+ "title": "VerificationDocumentCheckResponse",
+ "type": "object"
+ },
+ {
+ "properties": {
+ "error": {
+ "type": "string"
+ },
+ "problems": {
+ "description": "Validation issues with an input path and a message.",
+ "items": {
+ "properties": {
+ "loc": {
+ "items": {
+ "type": [
+ "string",
+ "integer"
+ ]
+ },
+ "type": "array"
+ },
+ "msg": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "loc",
+ "msg"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+]
removedOutput schema / title
Removed value: -"check_verification_documents_toolDictOutput"