changedOutput schema / properties / request / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "address": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "city": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "country": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "formattedAddress": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "postalCode": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "state": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "streetName": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "streetNumber": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "unit": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "verificationMethod": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "verificationStatus": {
- "enum": [
- "unknown",
- "unverified",
- "verified"
- ],
- "type": "string"
- },
- "verifiedAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "formattedAddress",
- "streetNumber",
- "streetName",
- "unit",
- "city",
- "state",
- "postalCode",
- "country",
- "verificationStatus",
- "verificationMethod",
- "verifiedAt"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "archived": {
- "type": "boolean"
- },
- "contact": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "email": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "firstName": {
- "type": "string"
- },
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "lastName": {
- "type": "string"
- },
- "phone": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "id",
- "firstName",
- "lastName",
- "email",
- "phone"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "contactName": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "createdAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
- "type": "string"
- },
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "linkedCalls": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "archived": {
- "type": "boolean"
- },
- "callerNumber": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "captureStatus": {
- "anyOf": [
- {
- "enum": [
- "tool_captured",
- "transcript_recovered",
- "partial",
- "none",
- "unknown"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "category": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "durationSeconds": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "followUpDismissedAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "intake": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "answers": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "answer": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "question": {
- "type": "string"
- },
- "questionId": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "status": {
- "enum": [
- "answered",
- "declined",
- "not_collected"
- ],
- "type": "string"
- }
- },
- "required": [
- "questionId",
- "question",
- "answer",
- "status"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "contextualDetails": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "label": {
- "type": "string"
- },
- "value": {
- "type": "string"
- }
- },
- "required": [
- "label",
- "value"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "recordedAt": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "scenario": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "name"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "scenario",
- "answers",
- "contextualDetails",
- "recordedAt"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "linkedRequestIds": {
- "items": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "type": "array"
- },
- "needsReply": {
- "type": "boolean"
- },
- "occurredAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
- "type": "string"
- },
- "primaryRequest": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "priority": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "category": {
- "enum": [
- "active_damage",
- "blocked_access",
- "safety_concern",
- "essential_service_disruption",
- "routine_timing",
- "none",
- "unknown"
- ],
- "type": "string"
- },
- "confidence": {
- "enum": [
- "high",
- "low"
- ],
- "type": "string"
- },
- "evidenceStatus": {
- "enum": [
- "caller_grounded",
- "unverified"
- ],
- "type": "string"
- },
- "followUpRequested": {
- "type": "boolean"
- },
- "level": {
- "enum": [
- "urgent",
- "routine",
- "unknown"
- ],
- "type": "string"
- },
- "reason": {
- "maxLength": 300,
- "type": "string"
- },
- "temporalStatus": {
- "enum": [
- "current",
- "past",
- "hypothetical",
- "resolved",
- "unknown"
- ],
- "type": "string"
- },
- "uncertainty": {
- "maxLength": 300,
- "type": "string"
- }
- },
- "required": [
- "level",
- "category",
- "temporalStatus",
- "followUpRequested",
- "confidence",
- "reason",
- "uncertainty",
- "evidenceStatus"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "recoverySmsStatus": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "requestCaptureStatus": {
- "anyOf": [
- {
- "enum": [
- "not_applicable",
- "pending",
- "pending_address",
- "created",
- "incomplete",
- "failed"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "summary": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "unread": {
- "type": "boolean"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "id",
- "occurredAt",
- "durationSeconds",
- "category",
- "summary",
- "primaryRequest",
- "callerNumber",
- "unread",
- "archived",
- "needsReply",
- "followUpDismissedAt",
- "recoverySmsStatus",
- "captureStatus",
- "requestCaptureStatus",
- "intake",
- "priority",
- "linkedRequestIds",
- "url"
- ],
- "type": "object"
- },
- "maxItems": 20,
- "type": "array"
- },
- "linkedCallsCoverage": {
- "additionalProperties": false,
- "properties": {
- "hasMore": {
- "type": "boolean"
- },
- "total": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "total",
- "hasMore"
- ],
- "type": "object"
- },
- "preferredTimeframe": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "previousRequests": {
- "additionalProperties": false,
- "properties": {
- "association": {
- "enum": [
- "stored_contact_link",
- "unresolved"
- ],
- "type": "string"
- },
- "coverage": {
- "const": "before_this_request_for_the_same_contact",
- "type": "string"
- },
- "hasMore": {
- "anyOf": [
- {
- "type": "boolean"
- },
- {
- "type": "null"
- }
- ]
- },
- "requests": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "archived": {
- "type": "boolean"
- },
- "contactName": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "createdAt": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
- "type": "string"
- },
- "id": {
- "format": "uuid",
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
- "type": "string"
- },
- "preferredTimeframe": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "requestedDateTime": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "services": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "description": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "description"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "source": {
- "anyOf": [
- {
- "enum": [
- "call",
- "form"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "status": {
- "enum": [
- "New",
- "Cancelled"
- ],
- "type": "string"
- },
- "timingMeaning": {
- "const": "preference_awaiting_confirmation",
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "id",
- "createdAt",
- "contactName",
- "services",
- "requestedDateTime",
- "preferredTimeframe",
- "timingMeaning",
- "source",
- "status",
- "archived",
- "url"
- ],
- "type": "object"
- },
- "maxItems": 3,
- "type": "array"
- },
- "total": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "association",
- "coverage",
- "total",
- "hasMore",
- "requests"
- ],
- "type": "object"
- },
- "requestedDateTime": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "serviceNeeds": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "services": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "description": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "name",
- "description"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "source": {
- "anyOf": [
- {
- "enum": [
- "call",
- "form"
- ],
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "status": {
- "enum": [
- "New",
- "Cancelled"
- ],
- "type": "string"
- },
- "timingMeaning": {
- "const": "preference_awaiting_confirmation",
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "id",
- "createdAt",
- "contactName",
- "services",
- "requestedDateTime",
- "preferredTimeframe",
- "timingMeaning",
- "source",
- "status",
- "archived",
- "url",
- "contact",
- "serviceNeeds",
- "address",
- "linkedCalls",
- "linkedCallsCoverage",
- "previousRequests"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "address": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "city": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "country": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "formattedAddress": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "postalCode": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "state": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "streetName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "streetNumber": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "unit": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "verificationMethod": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "verificationStatus": {
+ "enum": [
+ "unknown",
+ "unverified",
+ "verified"
+ ],
+ "type": "string"
+ },
+ "verifiedAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "formattedAddress",
+ "streetNumber",
+ "streetName",
+ "unit",
+ "city",
+ "state",
+ "postalCode",
+ "country",
+ "verificationStatus",
+ "verificationMethod",
+ "verifiedAt"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "archived": {
+ "type": "boolean"
+ },
+ "contact": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "email": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "firstName": {
+ "type": "string"
+ },
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "lastName": {
+ "type": "string"
+ },
+ "phone": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "id",
+ "firstName",
+ "lastName",
+ "email",
+ "phone"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "contactName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "createdAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ },
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "linkedCalls": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "archived": {
+ "type": "boolean"
+ },
+ "callerNumber": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "captureStatus": {
+ "anyOf": [
+ {
+ "enum": [
+ "tool_captured",
+ "transcript_recovered",
+ "partial",
+ "none",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "category": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "durationSeconds": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "followUpDismissedAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "intake": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "answers": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "answer": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "applicabilityReason": {
+ "maxLength": 240,
+ "type": "string"
+ },
+ "question": {
+ "type": "string"
+ },
+ "questionId": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "answered",
+ "declined",
+ "not_collected",
+ "not_applicable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "questionId",
+ "question",
+ "answer",
+ "status"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "contextualDetails": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "label": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "label",
+ "value"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "recordedAt": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "scenario": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "scenario",
+ "answers",
+ "contextualDetails",
+ "recordedAt"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "linkedRequestIds": {
+ "items": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "needsReply": {
+ "type": "boolean"
+ },
+ "occurredAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ },
+ "primaryRequest": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "priority": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "category": {
+ "enum": [
+ "active_damage",
+ "blocked_access",
+ "safety_concern",
+ "essential_service_disruption",
+ "routine_timing",
+ "none",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "confidence": {
+ "enum": [
+ "high",
+ "low"
+ ],
+ "type": "string"
+ },
+ "evidenceStatus": {
+ "enum": [
+ "caller_grounded",
+ "unverified"
+ ],
+ "type": "string"
+ },
+ "followUpRequested": {
+ "type": "boolean"
+ },
+ "level": {
+ "enum": [
+ "urgent",
+ "routine",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "reason": {
+ "maxLength": 300,
+ "type": "string"
+ },
+ "temporalStatus": {
+ "enum": [
+ "current",
+ "past",
+ "hypothetical",
+ "resolved",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "uncertainty": {
+ "maxLength": 300,
+ "type": "string"
+ }
+ },
+ "required": [
+ "level",
+ "category",
+ "temporalStatus",
+ "followUpRequested",
+ "confidence",
+ "reason",
+ "uncertainty",
+ "evidenceStatus"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "recoverySmsStatus": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "requestCaptureStatus": {
+ "anyOf": [
+ {
+ "enum": [
+ "not_applicable",
+ "pending",
+ "pending_address",
+ "created",
+ "incomplete",
+ "failed"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "summary": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "unread": {
+ "type": "boolean"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "occurredAt",
+ "durationSeconds",
+ "category",
+ "summary",
+ "primaryRequest",
+ "callerNumber",
+ "unread",
+ "archived",
+ "needsReply",
+ "followUpDismissedAt",
+ "recoverySmsStatus",
+ "captureStatus",
+ "requestCaptureStatus",
+ "intake",
+ "priority",
+ "linkedRequestIds",
+ "url"
+ ],
+ "type": "object"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ "linkedCallsCoverage": {
+ "additionalProperties": false,
+ "properties": {
+ "hasMore": {
+ "type": "boolean"
+ },
+ "total": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "total",
+ "hasMore"
+ ],
+ "type": "object"
+ },
+ "preferredTimeframe": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "previousRequests": {
+ "additionalProperties": false,
+ "properties": {
+ "association": {
+ "enum": [
+ "stored_contact_link",
+ "unresolved"
+ ],
+ "type": "string"
+ },
+ "coverage": {
+ "const": "before_this_request_for_the_same_contact",
+ "type": "string"
+ },
+ "hasMore": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "requests": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "archived": {
+ "type": "boolean"
+ },
+ "contactName": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "createdAt": {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ },
+ "id": {
+ "format": "uuid",
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
+ "type": "string"
+ },
+ "preferredTimeframe": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "requestedDateTime": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "services": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "description": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "description"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "source": {
+ "anyOf": [
+ {
+ "enum": [
+ "call",
+ "form"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "status": {
+ "enum": [
+ "New",
+ "Cancelled"
+ ],
+ "type": "string"
+ },
+ "timingMeaning": {
+ "const": "preference_awaiting_confirmation",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "createdAt",
+ "contactName",
+ "services",
+ "requestedDateTime",
+ "preferredTimeframe",
+ "timingMeaning",
+ "source",
+ "status",
+ "archived",
+ "url"
+ ],
+ "type": "object"
+ },
+ "maxItems": 3,
+ "type": "array"
+ },
+ "total": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "association",
+ "coverage",
+ "total",
+ "hasMore",
+ "requests"
+ ],
+ "type": "object"
+ },
+ "requestedDateTime": {
+ "anyOf": [
+ {
+ "format": "date-time",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "serviceNeeds": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "services": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "description": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "name": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "description"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "source": {
+ "anyOf": [
+ {
+ "enum": [
+ "call",
+ "form"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "status": {
+ "enum": [
+ "New",
+ "Cancelled"
+ ],
+ "type": "string"
+ },
+ "timingMeaning": {
+ "const": "preference_awaiting_confirmation",
+ "type": "string"
+ },
+ "url": {
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "createdAt",
+ "contactName",
+ "services",
+ "requestedDateTime",
+ "preferredTimeframe",
+ "timingMeaning",
+ "source",
+ "status",
+ "archived",
+ "url",
+ "contact",
+ "serviceNeeds",
+ "address",
+ "linkedCalls",
+ "linkedCallsCoverage",
+ "previousRequests"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+]