addedOutput schema / properties / accounts / items / anyOf
Added value: +[
+ {
+ "additionalProperties": true,
+ "properties": {
+ "account": {
+ "description": "Connected account label; pass it as linkedin_person.account to read only this account.",
+ "type": "string"
+ },
+ "connected": {
+ "description": "True when LinkedIn reports a first-degree connection to this person.",
+ "type": "boolean"
+ },
+ "connectedAs": {
+ "description": "Connected LinkedIn identity label, or null when unknown.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "invite": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "properties": {
+ "at": {
+ "description": "Invitation creation time as Unix epoch milliseconds, or null when unavailable.",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "direction": {
+ "anyOf": [
+ {
+ "enum": [
+ "sent",
+ "received"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Who initiated the invitation, or null when LinkedIn does not identify a direction."
+ },
+ "status": {
+ "anyOf": [
+ {
+ "enum": [
+ "pending",
+ "ignored",
+ "withdrawn"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Invitation state reported by the relationship lookup."
+ }
+ },
+ "required": [
+ "direction",
+ "status",
+ "at"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "LinkedIn's invitation state; null for an existing connection or no visible invitation."
+ },
+ "lastReplyAt": {
+ "description": "Time of the newest incoming entry in the returned history, as Unix epoch milliseconds; null if none is present.",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "messages": {
+ "description": "Newest conversation entries, merged across inboxes and returned oldest first. An empty array means no visible messages.",
+ "items": {
+ "additionalProperties": true,
+ "properties": {
+ "at": {
+ "description": "Message time as Unix epoch milliseconds.",
+ "type": "number"
+ },
+ "from": {
+ "description": "Whether the connected account or the looked-up person sent this entry.",
+ "enum": [
+ "you",
+ "them"
+ ],
+ "type": "string"
+ },
+ "kind": {
+ "description": "Conversation entry type; events and invitations may have no text.",
+ "enum": [
+ "message",
+ "event",
+ "inmail",
+ "invitation"
+ ],
+ "type": "string"
+ },
+ "sentBy": {
+ "anyOf": [
+ {
+ "enum": [
+ "agent",
+ "person"
+ ],
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "For outgoing messages: agent means Revnu, person means a human in Revnu's inbox, and null means native LinkedIn or unknown. Incoming entries are null."
+ },
+ "text": {
+ "description": "Message or event text, or null when unavailable.",
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "at",
+ "from",
+ "sentBy",
+ "kind",
+ "text"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "messagesTruncated": {
+ "description": "True when older messages or additional inboxes were omitted; history is limited to 50 entries from up to three chats.",
+ "type": "boolean"
+ },
+ "revnuInvite": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "properties": {
+ "acceptedAt": {
+ "description": "When Revnu observed acceptance, or null when not recorded.",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "sentAt": {
+ "description": "When Revnu sent its most recent invitation from this account, as Unix epoch milliseconds.",
+ "type": "number"
+ },
+ "withdrawnAt": {
+ "description": "When the invitation was withdrawn, or null when not recorded.",
+ "type": [
+ "number",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "sentAt",
+ "acceptedAt",
+ "withdrawnAt"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Revnu's own invitation history, independent of LinkedIn's current invite state; null if Revnu has no record."
+ },
+ "state": {
+ "const": "ok",
+ "description": "The profile and conversation lookup succeeded for this account.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "account",
+ "connectedAs",
+ "state",
+ "connected",
+ "invite",
+ "revnuInvite",
+ "messages",
+ "messagesTruncated",
+ "lastReplyAt"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": true,
+ "properties": {
+ "account": {
+ "description": "Connected account label; pass it as linkedin_person.account to read only this account.",
+ "type": "string"
+ },
+ "connectedAs": {
+ "description": "Connected LinkedIn identity label, or null when unknown.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "state": {
+ "const": "not_connected",
+ "description": "This account has no usable LinkedIn connection; relationship and conversation fields are unavailable.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "account",
+ "connectedAs",
+ "state"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": true,
+ "properties": {
+ "account": {
+ "description": "Connected account label; pass it as linkedin_person.account to read only this account.",
+ "type": "string"
+ },
+ "connectedAs": {
+ "description": "Connected LinkedIn identity label, or null when unknown.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "state": {
+ "const": "needs_reauth",
+ "description": "This account must reconnect LinkedIn before the lookup can proceed.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "account",
+ "connectedAs",
+ "state"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": true,
+ "properties": {
+ "account": {
+ "description": "Connected account label; pass it as linkedin_person.account to read only this account.",
+ "type": "string"
+ },
+ "connectedAs": {
+ "description": "Connected LinkedIn identity label, or null when unknown.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "message": {
+ "description": "Why the lookup is paced.",
+ "type": "string"
+ },
+ "retryAt": {
+ "description": "Earliest retry time as Unix epoch milliseconds; wait until then before retrying this account.",
+ "type": "number"
+ },
+ "state": {
+ "const": "paced",
+ "description": "The profile read was deferred by account pacing, not a missing relationship.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "account",
+ "connectedAs",
+ "state",
+ "message",
+ "retryAt"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": true,
+ "properties": {
+ "account": {
+ "description": "Connected account label; pass it as linkedin_person.account to read only this account.",
+ "type": "string"
+ },
+ "connectedAs": {
+ "description": "Connected LinkedIn identity label, or null when unknown.",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "message": {
+ "description": "Lookup failure detail, such as an unresolved profile or unavailable conversation.",
+ "type": "string"
+ },
+ "state": {
+ "const": "error",
+ "description": "This account's lookup failed; do not interpret absent relationship data as disconnected.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "account",
+ "connectedAs",
+ "state",
+ "message"
+ ],
+ "type": "object"
+ }
+]