Cotton code
2537 lines · 58.4 KB · JSONRaw
{  "text": [    {      "input": "",      "stripBidi": "",      "normalizeSpaces": "",      "stripBom": "",      "normalizeExportText": "",      "collapseWhitespace": "",      "nameKey": ""    },    {      "input": "  hello \n  world  ",      "stripBidi": "  hello \n  world  ",      "normalizeSpaces": "  hello \n  world  ",      "stripBom": "  hello \n  world  ",      "normalizeExportText": "  hello \n  world  ",      "collapseWhitespace": "hello world",      "nameKey": "hello world"    },    {      "input": "👍 thanks",      "stripBidi": "👍 thanks",      "normalizeSpaces": "👍 thanks",      "stripBom": "👍 thanks",      "normalizeExportText": "👍 thanks",      "collapseWhitespace": "👍 thanks",      "nameKey": "👍 thanks"    },    {      "input": "👩‍💻",      "stripBidi": "👩‍💻",      "normalizeSpaces": "👩‍💻",      "stripBom": "👩‍💻",      "normalizeExportText": "👩‍💻",      "collapseWhitespace": "👩‍💻",      "nameKey": "👩‍💻"    },    {      "input": "hello",      "stripBidi": "hello",      "normalizeSpaces": "hello",      "stripBom": "hello",      "normalizeExportText": "hello",      "collapseWhitespace": "hello",      "nameKey": "hello"    },    {      "input": "ab",      "stripBidi": "ab",      "normalizeSpaces": "ab",      "stripBom": "ab",      "normalizeExportText": "ab",      "collapseWhitespace": "a b",      "nameKey": "a b"    },    {      "input": "a…b",      "stripBidi": "a…b",      "normalizeSpaces": "a…b",      "stripBom": "a…b",      "normalizeExportText": "a…b",      "collapseWhitespace": "a…b",      "nameKey": "a…b"    },    {      "input": "你好世界",      "stripBidi": "你好世界",      "normalizeSpaces": "你好世界",      "stripBom": "你好世界",      "normalizeExportText": "你好世界",      "collapseWhitespace": "你好世界",      "nameKey": "你好世界"    },    {      "input": "école",      "stripBidi": "école",      "normalizeSpaces": "école",      "stripBom": "école",      "normalizeExportText": "école",      "collapseWhitespace": "école",      "nameKey": "école"    },    {      "input": "⁧shukriya⁩",      "stripBidi": "shukriya",      "normalizeSpaces": "⁧shukriya⁩",      "stripBom": "⁧shukriya⁩",      "normalizeExportText": "shukriya",      "collapseWhitespace": "⁧shukriya⁩",      "nameKey": "⁧shukriya⁩"    },    {      "input": "‎[26/07/2025, 10:15:00 AM] name",      "stripBidi": "[26/07/2025, 10:15:00 AM] name",      "normalizeSpaces": "‎[26/07/2025, 10:15:00 AM] name",      "stripBom": "‎[26/07/2025, 10:15:00 AM] name",      "normalizeExportText": "[26/07/2025, 10:15:00 AM] name",      "collapseWhitespace": "‎[26/07/2025, 10:15:00 AM] name",      "nameKey": "‎[26/07/2025, 10:15:00 am] name"    },    {      "input": "a\r\nb\rc\nd",      "stripBidi": "a\r\nb\rc\nd",      "normalizeSpaces": "a\r\nb\rc\nd",      "stripBom": "a\r\nb\rc\nd",      "normalizeExportText": "a\nb\nc\nd",      "collapseWhitespace": "a b c d",      "nameKey": "a b c d"    },    {      "input": "‎10:15 AM\r\n‏next",      "stripBidi": "10:15 AM\r\nnext",      "normalizeSpaces": "‎10:15 AM\r\n‏next",      "stripBom": "‎10:15 AM\r\n‏next",      "normalizeExportText": "10:15 AM\nnext",      "collapseWhitespace": "‎10:15 AM ‏next",      "nameKey": "‎10:15 am ‏next"    },    {      "input": "     ",      "stripBidi": "     ",      "normalizeSpaces": "     ",      "stripBom": "     ",      "normalizeExportText": "     ",      "collapseWhitespace": "",      "nameKey": ""    },    {      "input": "᠎ a ᠎",      "stripBidi": "᠎ a ᠎",      "normalizeSpaces": "᠎ a ᠎",      "stripBom": "᠎ a ᠎",      "normalizeExportText": "᠎ a ᠎",      "collapseWhitespace": "᠎ a ᠎",      "nameKey": "᠎ a ᠎"    },    {      "input": "tabs\there\tand\u000bvertical",      "stripBidi": "tabs\there\tand\u000bvertical",      "normalizeSpaces": "tabs\there\tand\u000bvertical",      "stripBom": "tabs\there\tand\u000bvertical",      "normalizeExportText": "tabs\there\tand\u000bvertical",      "collapseWhitespace": "tabs here and vertical",      "nameKey": "tabs here and vertical"    },    {      "input": "👍   👍",      "stripBidi": "👍   👍",      "normalizeSpaces": "👍   👍",      "stripBom": "👍   👍",      "normalizeExportText": "👍   👍",      "collapseWhitespace": "👍 👍",      "nameKey": "👍 👍"    }  ],  "textLong": {    "inputLength": 80001,    "collapsed": 80001,    "collapsedMiddle": "xxxxx xxxx",    "normalized": 80001,    "bidiStripped": 80001  },  "phone": [    {      "input": "+919876543210",      "normalizePhone": "919876543210",      "senderLooksLikePhone": true,      "looksNationalOnly": false,      "promote": [        {          "cc": null,          "promoted": "+919876543210",          "canonical": "919876543210"        },        {          "cc": "91",          "promoted": "+919876543210",          "canonical": "919876543210"        },        {          "cc": "+91",          "promoted": "+919876543210",          "canonical": "919876543210"        },        {          "cc": "1",          "promoted": "+919876543210",          "canonical": "919876543210"        },        {          "cc": "",          "promoted": "+919876543210",          "canonical": "919876543210"        }      ]    },    {      "input": "+91 98765 43210",      "normalizePhone": "919876543210",      "senderLooksLikePhone": true,      "looksNationalOnly": false,      "promote": [        {          "cc": null,          "promoted": "+91 98765 43210",          "canonical": "919876543210"        },        {          "cc": "91",          "promoted": "+91 98765 43210",          "canonical": "919876543210"        },        {          "cc": "+91",          "promoted": "+91 98765 43210",          "canonical": "919876543210"        },        {          "cc": "1",          "promoted": "+91 98765 43210",          "canonical": "919876543210"        },        {          "cc": "",          "promoted": "+91 98765 43210",          "canonical": "919876543210"        }      ]    },    {      "input": "+91-98765-43210",      "normalizePhone": "919876543210",      "senderLooksLikePhone": true,      "looksNationalOnly": false,      "promote": [        {          "cc": null,          "promoted": "+91-98765-43210",          "canonical": "919876543210"        },        {          "cc": "91",          "promoted": "+91-98765-43210",          "canonical": "919876543210"        },        {          "cc": "+91",          "promoted": "+91-98765-43210",          "canonical": "919876543210"        },        {          "cc": "1",          "promoted": "+91-98765-43210",          "canonical": "919876543210"        },        {          "cc": "",          "promoted": "+91-98765-43210",          "canonical": "919876543210"        }      ]    },    {      "input": "+91 (98765) 43210",      "normalizePhone": "919876543210",      "senderLooksLikePhone": true,      "looksNationalOnly": false,      "promote": [        {          "cc": null,          "promoted": "+91 (98765) 43210",          "canonical": "919876543210"        },        {          "cc": "91",          "promoted": "+91 (98765) 43210",          "canonical": "919876543210"        },        {          "cc": "+91",          "promoted": "+91 (98765) 43210",          "canonical": "919876543210"        },        {          "cc": "1",          "promoted": "+91 (98765) 43210",          "canonical": "919876543210"        },        {          "cc": "",          "promoted": "+91 (98765) 43210",          "canonical": "919876543210"        }      ]    },    {      "input": "919876543210",      "normalizePhone": "919876543210",      "senderLooksLikePhone": true,      "looksNationalOnly": false,      "promote": [        {          "cc": null,          "promoted": "919876543210",          "canonical": "919876543210"        },        {          "cc": "91",          "promoted": "919876543210",          "canonical": "919876543210"        },        {          "cc": "+91",          "promoted": "919876543210",          "canonical": "919876543210"        },        {          "cc": "1",          "promoted": "919876543210",          "canonical": "919876543210"        },        {          "cc": "",          "promoted": "919876543210",          "canonical": "919876543210"        }      ]    },    {      "input": "09876543210",      "normalizePhone": "09876543210",      "senderLooksLikePhone": true,      "looksNationalOnly": true,      "promote": [        {          "cc": null,          "promoted": "09876543210",          "canonical": "09876543210"        },        {          "cc": "91",          "promoted": "919876543210",          "canonical": "919876543210"        },        {          "cc": "+91",          "promoted": "919876543210",          "canonical": "919876543210"        },        {          "cc": "1",          "promoted": "19876543210",          "canonical": "19876543210"        },        {          "cc": "",          "promoted": "09876543210",          "canonical": "09876543210"        }      ]    },    {      "input": "098765 43210",      "normalizePhone": "09876543210",      "senderLooksLikePhone": true,      "looksNationalOnly": true,      "promote": [        {          "cc": null,          "promoted": "098765 43210",          "canonical": "09876543210"        },        {          "cc": "91",          "promoted": "919876543210",          "canonical": "919876543210"        },        {          "cc": "+91",          "promoted": "919876543210",          "canonical": "919876543210"        },        {          "cc": "1",          "promoted": "19876543210",          "canonical": "19876543210"        },        {          "cc": "",          "promoted": "098765 43210",          "canonical": "09876543210"        }      ]    },    {      "input": "9876543210",      "normalizePhone": "9876543210",      "senderLooksLikePhone": true,      "looksNationalOnly": true,      "promote": [        {          "cc": null,          "promoted": "9876543210",          "canonical": "9876543210"        },        {          "cc": "91",          "promoted": "919876543210",          "canonical": "919876543210"        },        {          "cc": "+91",          "promoted": "919876543210",          "canonical": "919876543210"        },        {          "cc": "1",          "promoted": "19876543210",          "canonical": "19876543210"        },        {          "cc": "",          "promoted": "9876543210",          "canonical": "9876543210"        }      ]    },    {      "input": "12345",      "normalizePhone": null,      "senderLooksLikePhone": false,      "looksNationalOnly": true,      "promote": [        {          "cc": null,          "promoted": "12345",          "canonical": null        },        {          "cc": "91",          "promoted": "9112345",          "canonical": null        },        {          "cc": "+91",          "promoted": "9112345",          "canonical": null        },        {          "cc": "1",          "promoted": "112345",          "canonical": null        },        {          "cc": "",          "promoted": "12345",          "canonical": null        }      ]    },    {      "input": "1234567890123456",      "normalizePhone": null,      "senderLooksLikePhone": false,      "looksNationalOnly": false,      "promote": [        {          "cc": null,          "promoted": "1234567890123456",          "canonical": null        },        {          "cc": "91",          "promoted": "1234567890123456",          "canonical": null        },        {          "cc": "+91",          "promoted": "1234567890123456",          "canonical": null        },        {          "cc": "1",          "promoted": "1234567890123456",          "canonical": null        },        {          "cc": "",          "promoted": "1234567890123456",          "canonical": null        }      ]    },    {      "input": "not a phone",      "normalizePhone": null,      "senderLooksLikePhone": false,      "looksNationalOnly": false,      "promote": [        {          "cc": null,          "promoted": "not a phone",          "canonical": null        },        {          "cc": "91",          "promoted": "not a phone",          "canonical": null        },        {          "cc": "+91",          "promoted": "not a phone",          "canonical": null        },        {          "cc": "1",          "promoted": "not a phone",          "canonical": null        },        {          "cc": "",          "promoted": "not a phone",          "canonical": null        }      ]    },    {      "input": "",      "normalizePhone": null,      "senderLooksLikePhone": false,      "looksNationalOnly": true,      "promote": [        {          "cc": null,          "promoted": "",          "canonical": null        },        {          "cc": "91",          "promoted": "",          "canonical": null        },        {          "cc": "+91",          "promoted": "",          "canonical": null        },        {          "cc": "1",          "promoted": "",          "canonical": null        },        {          "cc": "",          "promoted": "",          "canonical": null        }      ]    },    {      "input": "  919876543210  ",      "normalizePhone": "919876543210",      "senderLooksLikePhone": true,      "looksNationalOnly": false,      "promote": [        {          "cc": null,          "promoted": "  919876543210  ",          "canonical": "919876543210"        },        {          "cc": "91",          "promoted": "919876543210",          "canonical": "919876543210"        },        {          "cc": "+91",          "promoted": "919876543210",          "canonical": "919876543210"        },        {          "cc": "1",          "promoted": "919876543210",          "canonical": "919876543210"        },        {          "cc": "",          "promoted": "  919876543210  ",          "canonical": "919876543210"        }      ]    },    {      "input": "Anita Rao",      "normalizePhone": null,      "senderLooksLikePhone": false,      "looksNationalOnly": true,      "promote": [        {          "cc": null,          "promoted": "Anita Rao",          "canonical": null        },        {          "cc": "91",          "promoted": "Anita Rao",          "canonical": null        },        {          "cc": "+91",          "promoted": "Anita Rao",          "canonical": null        },        {          "cc": "1",          "promoted": "Anita Rao",          "canonical": null        },        {          "cc": "",          "promoted": "Anita Rao",          "canonical": null        }      ]    },    {      "input": "Mum",      "normalizePhone": null,      "senderLooksLikePhone": false,      "looksNationalOnly": true,      "promote": [        {          "cc": null,          "promoted": "Mum",          "canonical": null        },        {          "cc": "91",          "promoted": "Mum",          "canonical": null        },        {          "cc": "+91",          "promoted": "Mum",          "canonical": null        },        {          "cc": "1",          "promoted": "Mum",          "canonical": null        },        {          "cc": "",          "promoted": "Mum",          "canonical": null        }      ]    },    {      "input": "12",      "normalizePhone": null,      "senderLooksLikePhone": false,      "looksNationalOnly": true,      "promote": [        {          "cc": null,          "promoted": "12",          "canonical": null        },        {          "cc": "91",          "promoted": "9112",          "canonical": null        },        {          "cc": "+91",          "promoted": "9112",          "canonical": null        },        {          "cc": "1",          "promoted": "112",          "canonical": null        },        {          "cc": "",          "promoted": "12",          "canonical": null        }      ]    },    {      "input": "٩٨٧٦٥٤٣٢",      "normalizePhone": null,      "senderLooksLikePhone": false,      "looksNationalOnly": true,      "promote": [        {          "cc": null,          "promoted": "٩٨٧٦٥٤٣٢",          "canonical": null        },        {          "cc": "91",          "promoted": "٩٨٧٦٥٤٣٢",          "canonical": null        },        {          "cc": "+91",          "promoted": "٩٨٧٦٥٤٣٢",          "canonical": null        },        {          "cc": "1",          "promoted": "٩٨٧٦٥٤٣٢",          "canonical": null        },        {          "cc": "",          "promoted": "٩٨٧٦٥٤٣٢",          "canonical": null        }      ]    },    {      "input": "+1 (415) 555-0123",      "normalizePhone": "14155550123",      "senderLooksLikePhone": true,      "looksNationalOnly": false,      "promote": [        {          "cc": null,          "promoted": "+1 (415) 555-0123",          "canonical": "14155550123"        },        {          "cc": "91",          "promoted": "+1 (415) 555-0123",          "canonical": "14155550123"        },        {          "cc": "+91",          "promoted": "+1 (415) 555-0123",          "canonical": "14155550123"        },        {          "cc": "1",          "promoted": "+1 (415) 555-0123",          "canonical": "14155550123"        },        {          "cc": "",          "promoted": "+1 (415) 555-0123",          "canonical": "14155550123"        }      ]    },    {      "input": "0091 98765 43210",      "normalizePhone": "919876543210",      "senderLooksLikePhone": true,      "looksNationalOnly": true,      "promote": [        {          "cc": null,          "promoted": "0091 98765 43210",          "canonical": "919876543210"        },        {          "cc": "91",          "promoted": "91919876543210",          "canonical": "91919876543210"        },        {          "cc": "+91",          "promoted": "91919876543210",          "canonical": "91919876543210"        },        {          "cc": "1",          "promoted": "1919876543210",          "canonical": "1919876543210"        },        {          "cc": "",          "promoted": "0091 98765 43210",          "canonical": "919876543210"        }      ]    }  ],  "slug": [    {      "title": "AQ <> TinFactory",      "slug": "aq-tinfactory",      "key": "wa:group:aq-tinfactory"    },    {      "title": "Fixture Crew",      "slug": "fixture-crew",      "key": "wa:group:fixture-crew"    },    {      "title": "   ",      "slug": "untitled",      "key": "wa:group:untitled"    },    {      "title": "",      "slug": "untitled",      "key": "wa:group:untitled"    },    {      "title": "Trip Planning",      "slug": "trip-planning",      "key": "wa:group:trip-planning"    },    {      "title": "👍 Crew 👍",      "slug": "crew",      "key": "wa:group:crew"    },    {      "title": "你好世界",      "slug": "untitled",      "key": "wa:group:untitled"    },    {      "title": "école",      "slug": "e-cole",      "key": "wa:group:e-cole"    },    {      "title": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",      "slug": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",      "key": "wa:group:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"    },    {      "title": "----leading and trailing----",      "slug": "leading-and-trailing",      "key": "wa:group:leading-and-trailing"    },    {      "title": "Two Of Us",      "slug": "two-of-us",      "key": "wa:group:two-of-us"    },    {      "title": "Weekend  Plans",      "slug": "weekend-plans",      "key": "wa:group:weekend-plans"    },    {      "title": "Spaced",      "slug": "spaced",      "key": "wa:group:spaced"    }  ],  "groupEvents": [    {      "sender": "Anita Rao",      "body": "Anita Rao turned off disappearing messages. Change timer",      "isGroupEventBody": true,      "isEncryptionBoilerplate": false    },    {      "sender": "Anita Rao",      "body": "Anita Rao created group “Trip”",      "isGroupEventBody": true,      "isEncryptionBoilerplate": false    },    {      "sender": "Fixture Crew",      "body": "You added Ravi Kumar and Priya From Stores",      "isGroupEventBody": true,      "isEncryptionBoilerplate": false    },    {      "sender": "Fixture Crew",      "body": "You're now an admin",      "isGroupEventBody": true,      "isEncryptionBoilerplate": false    },    {      "sender": "Fixture Crew",      "body": "Disappearing messages were turned on. Change timer",      "isGroupEventBody": true,      "isEncryptionBoilerplate": false    },    {      "sender": "Anita Rao",      "body": "I added the new SKUs to the sheet",      "isGroupEventBody": false,      "isEncryptionBoilerplate": false    },    {      "sender": "Anita Rao",      "body": "he left already, start without him",      "isGroupEventBody": false,      "isEncryptionBoilerplate": false    },    {      "sender": "Anita Rao",      "body": "the security code on the lock is 4411",      "isGroupEventBody": false,      "isEncryptionBoilerplate": false    },    {      "sender": "Anita Rao",      "body": "",      "isGroupEventBody": false,      "isEncryptionBoilerplate": false    },    {      "sender": "Anita Rao",      "body": "Anita Rao left",      "isGroupEventBody": true,      "isEncryptionBoilerplate": false    },    {      "sender": "Anita Rao",      "body": "Anita Rao added xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",      "isGroupEventBody": false,      "isEncryptionBoilerplate": false    },    {      "sender": "École",      "body": "École added Ravi",      "isGroupEventBody": true,      "isEncryptionBoilerplate": false    },    {      "sender": "Anita Rao",      "body": "Messages and calls are end-to-end encrypted. Learn more",      "isGroupEventBody": true,      "isEncryptionBoilerplate": true    },    {      "sender": "Anita Rao",      "body": "You changed the group description",      "isGroupEventBody": true,      "isEncryptionBoilerplate": false    }  ],  "titleEvents": {    "input": [      {        "text": "Anita created group “First Name”",        "sentAt": "2026-07-01T00:00:00.000Z"      },      {        "text": "You changed the group name to \"Second Name\"",        "sentAt": "2026-07-02T00:00:00.000Z"      },      {        "text": "R changed the subject from “Second Name” to “Third Name”",        "sentAt": "2026-07-03T00:00:00.000Z"      },      {        "text": "hello",        "sentAt": "2026-07-04T00:00:00.000Z"      },      {        "text": "A created the group 'Straight Quotes'",        "sentAt": "2026-06-30T00:00:00.000Z"      },      {        "text": "X changed the subject to “  Padded  Name  ”",        "sentAt": "2026-07-05T00:00:00.000Z"      }    ],    "titles": [      {        "title": "Straight Quotes",        "sentAt": "2026-06-30T00:00:00.000Z"      },      {        "title": "First Name",        "sentAt": "2026-07-01T00:00:00.000Z"      },      {        "title": "Second Name",        "sentAt": "2026-07-02T00:00:00.000Z"      },      {        "title": "Third Name",        "sentAt": "2026-07-03T00:00:00.000Z"      },      {        "title": "Padded Name",        "sentAt": "2026-07-05T00:00:00.000Z"      }    ],    "latest": "Padded Name"  },  "pseudoSender": [    {      "sender": "Fixture Crew",      "is": true    },    {      "sender": "Anita Rao",      "is": false    }  ],  "poll": [    {      "body": "POLL:\nWhich day works for the site visit?\nOPTION: Thursday (3 votes)\nOPTION: Friday (1 vote)",      "poll": {        "question": "Which day works for the site visit?",        "options": [          {            "text": "Thursday",            "votes": 3          },          {            "text": "Friday",            "votes": 1          }        ]      }    },    {      "body": "POLL:\nTea or coffee?\nOPTION: Tea (0 votes)\nOPTION: Coffee (2 votes)",      "poll": {        "question": "Tea or coffee?",        "options": [          {            "text": "Tea",            "votes": 0          },          {            "text": "Coffee",            "votes": 2          }        ]      }    },    {      "body": "POLL:\nHey everyone!\n\nWhich size do you want for the crew shirts?\nOPTION: Medium (4 votes)\nOPTION: Large (7 votes)",      "poll": {        "question": "Hey everyone!\n\nWhich size do you want for the crew shirts?",        "options": [          {            "text": "Medium",            "votes": 4          },          {            "text": "Large",            "votes": 7          }        ]      }    },    {      "body": "POLL:\nWhere to?\nOPTION: Out (the far gate) (5 votes)\nOPTION: In (0 votes)",      "poll": {        "question": "Where to?",        "options": [          {            "text": "Out (the far gate)",            "votes": 5          },          {            "text": "In",            "votes": 0          }        ]      }    },    {      "body": "POLL:\nWhich slot?\nOPTION: Morning: 9 to 11 (2 votes)\nOPTION: Evening (1 vote)",      "poll": {        "question": "Which slot?",        "options": [          {            "text": "Morning: 9 to 11",            "votes": 2          },          {            "text": "Evening",            "votes": 1          }        ]      }    },    {      "body": "UMFRAGE:\nWelcher Tag?\nOPTION: Donnerstag (1 Stimme)\nOPTION: Freitag (2 Stimmen)",      "poll": {        "question": "Welcher Tag?",        "options": [          {            "text": "Donnerstag",            "votes": 1          },          {            "text": "Freitag",            "votes": 2          }        ]      }    },    {      "body": "ENCUESTA:\nWelcher Tag?\nOPCIÓN: Jueves (1 voto)\nOPCIÓN: Viernes (4 votos)",      "poll": {        "question": "Welcher Tag?",        "options": [          {            "text": "Jueves",            "votes": 1          },          {            "text": "Viernes",            "votes": 4          }        ]      }    },    {      "body": "ENQUETE:\nWelcher Tag?\nOPÇÃO: Quinta (0 voto)\nOPÇÃO: Sexta (3 votos)",      "poll": {        "question": "Welcher Tag?",        "options": [          {            "text": "Quinta",            "votes": 0          },          {            "text": "Sexta",            "votes": 3          }        ]      }    },    {      "body": "SONDAGGIO:\nWelcher Tag?\nOPZIONE: Giovedì (1 voto)\nOPZIONE: Venerdì (2 voti)",      "poll": {        "question": "Welcher Tag?",        "options": [          {            "text": "Giovedì",            "votes": 1          },          {            "text": "Venerdì",            "votes": 2          }        ]      }    },    {      "body": "TOMORROW:\nbring the drawings\nand the tape",      "poll": null    },    {      "body": "POLL:\nComing?\nOPTION: Yes (3 votes)",      "poll": null    },    {      "body": "POLL:\nOPTION: Yes (3 votes)\nOPTION: No (1 vote)",      "poll": null    },    {      "body": "POLL:\nComing?\nOPTION: Yes (3 votes)\nCHOICE: No (1 vote)",      "poll": null    },    {      "body": "are we still on for tomorrow?",      "poll": null    },    {      "body": "",      "poll": null    },    {      "body": "POLL:\n👍?\nOPTION: 👍 (11 votes)\nOPTION: 👩‍💻 (0 votes)",      "poll": {        "question": "👍?",        "options": [          {            "text": "👍",            "votes": 11          },          {            "text": "👩‍💻",            "votes": 0          }        ]      }    }  ],  "fileNames": [    {      "name": "WhatsApp Chat - Asha Rao.zip",      "title": "Asha Rao"    },    {      "name": "file:///cache/1724569200000-WhatsApp%20Chat%20-%20Asha%20Rao.zip",      "title": "Asha Rao"    },    {      "name": "WhatsApp Chat with Asha Rao.txt",      "title": "Asha Rao"    },    {      "name": "random.zip",      "title": null    },    {      "name": "",      "title": null    },    {      "name": "WhatsApp Chat - Asha Rao",      "title": "Asha Rao"    },    {      "name": "/tmp/1724569200000-WhatsApp Chat with École.txt",      "title": "École"    },    {      "name": "WhatsApp%20Chat%20-%20100%25%20Club.zip",      "title": "100% Club"    },    {      "name": "WhatsApp Chat - 100% Club.zip",      "title": "100% Club"    },    {      "name": "whatsapp chat - lower case.TXT",      "title": "lower case"    },    {      "name": "WhatsApp Chat -  Padded  Name .zip",      "title": "Padded Name"    },    {      "name": "WhatsApp Chat - 你好世界.zip",      "title": "你好世界"    },    {      "name": "123456789-WhatsApp Chat - Short Prefix.zip",      "title": null    },    {      "name": "WhatsApp Chat - Trailing.zip/",      "title": null    }  ],  "identityPlans": [    {      "name": "all_routes",      "labels": [        "+91 98765 43210",        "Vikram",        "priya from stores",        "Asha",        "Ajay",        "Nobody",        "Old Ajay",        "No Number"      ],      "sources": {        "threadMembers": [          {            "label": "Vikram",            "phone": "918123456780"          }        ],        "contacts": [          {            "name": "Priya From Stores",            "phone": "919000000001"          }        ]      },      "countryCode": "91",      "plan": {        "hints": {          "+91 98765 43210": {            "phone": "919876543210"          },          "Vikram": {            "phone": "918123456780"          },          "priya from stores": {            "phone": "919000000001"          }        },        "matched": [          "+91 98765 43210",          "Vikram",          "priya from stores"        ],        "unidentified": [          "Asha",          "Ajay",          "Nobody",          "Old Ajay",          "No Number"        ]      }    },    {      "name": "a_name_alone_names_nobody",      "labels": [        "Ajay"      ],      "sources": {        "threadMembers": [          {            "label": "Vikram",            "phone": "918123456780"          }        ],        "contacts": [          {            "name": "Priya From Stores",            "phone": "919000000001"          }        ]      },      "countryCode": "91",      "plan": {        "hints": {},        "matched": [],        "unidentified": [          "Ajay"        ]      }    },    {      "name": "seated_beats_contact",      "labels": [        "Vikram"      ],      "sources": {        "threadMembers": [          {            "label": "Vikram",            "phone": "918123456780"          }        ],        "contacts": [          {            "name": "Vikram",            "phone": "910000000000"          }        ]      },      "countryCode": null,      "plan": {        "hints": {          "Vikram": {            "phone": "918123456780"          }        },        "matched": [          "Vikram"        ],        "unidentified": []      }    }  ],  "owners": [    {      "name": "dm",      "source": "identity_dm",      "hints": {},      "owner": {        "name": "Rohan",        "how": "dm-title",        "maySilent": false      }    },    {      "name": "dm_unattributed",      "source": "identity_dm_unattributed",      "hints": {},      "owner": null    },    {      "name": "dm_unattributed_title",      "source": "identity_dm_unattributed",      "hints": {        "chatTitle": "asha"      },      "owner": {        "name": "Rohan",        "how": "dm-title",        "maySilent": false      }    },    {      "name": "group_remembered",      "source": "identity_group",      "hints": {        "rememberedNames": [          "rohan"        ]      },      "owner": {        "name": "Rohan",        "how": "remembered",        "maySilent": false      }    },    {      "name": "group_remembered_silent",      "source": "identity_group",      "hints": {        "rememberedNames": [          "Someone Quiet"        ]      },      "owner": {        "name": "Someone Quiet",        "how": "remembered",        "maySilent": true      }    },    {      "name": "dm_remembered_never_silent",      "source": "identity_dm_unattributed",      "hints": {        "rememberedNames": [          "Someone Quiet"        ]      },      "owner": null    },    {      "name": "group_you",      "source": "identity_group_you",      "hints": {},      "owner": {        "name": "You",        "how": "literal-you",        "maySilent": false      }    },    {      "name": "group_display_name",      "source": "identity_group",      "hints": {        "ownerDisplayName": "rohan"      },      "owner": {        "name": "Rohan",        "how": "display-name",        "maySilent": false      }    },    {      "name": "group_gives_up",      "source": "identity_group",      "hints": {},      "owner": null    }  ],  "notices": [    {      "name": "android",      "title": null,      "humans": [        "Milo Example",        "Anita Rao"      ]    },    {      "name": "android_unsaved",      "title": null,      "humans": [        "Milo Example",        "+91 98765 43210"      ]    },    {      "name": "android_group",      "title": null,      "humans": [        "Milo Example",        "Anita Rao",        "Ravi Kumar"      ]    },    {      "name": "ios",      "title": null,      "humans": [        "Milo Example",        "Anita Rao"      ]    },    {      "name": "ios_album",      "title": null,      "humans": [        "Anita Rao",        "Milo Example"      ]    },    {      "name": "ios_group_album",      "title": null,      "humans": [        "Anita Rao",        "Ravi Kumar",        "Milo Example"      ]    },    {      "name": "android_captioned",      "title": null,      "humans": [        "Anita Rao",        "Milo Example"      ]    },    {      "name": "ios_poll",      "title": null,      "humans": [        "Anita Rao",        "Milo Example"      ]    },    {      "name": "attributed_notice",      "title": "Anita Rao",      "humans": [        "Anita Rao",        "Milo Example"      ]    },    {      "name": "named_two",      "title": null,      "humans": [        "Milo Example",        "Anita Rao"      ]    },    {      "name": "identity_dm",      "title": "Asha",      "humans": [        "Asha",        "Rohan"      ]    },    {      "name": "identity_dm_unattributed",      "title": null,      "humans": [        "Asha",        "Rohan"      ]    },    {      "name": "identity_group",      "title": "Weekend Plans",      "humans": [        "Asha",        "Vikram",        "Rohan",        "+91 98765 43210"      ]    },    {      "name": "identity_group_you",      "title": "Weekend Plans",      "humans": [        "Asha",        "Vikram",        "You",        "+91 98765 43210"      ]    }  ],  "placeholders": [    {      "attachment": {        "omitted": true,        "filename": null,        "mime": null,        "label": "image omitted"      },      "body": "[image omitted]",      "meta": {        "omitted": true      }    },    {      "attachment": {        "omitted": true,        "filename": null,        "mime": null      },      "body": "[media omitted]",      "meta": {        "omitted": true      }    },    {      "attachment": {        "omitted": false,        "filename": "00000042-PHOTO.jpg",        "mime": null      },      "body": "[attachment: PHOTO.jpg]",      "meta": {        "omitted": false,        "name": "00000042-PHOTO.jpg"      }    },    {      "attachment": {        "omitted": false,        "filename": "IMG-20250726-WA0001.jpg",        "mime": "image/jpeg"      },      "body": "[attachment: IMG-20250726-WA0001.jpg]",      "meta": {        "omitted": false,        "name": "IMG-20250726-WA0001.jpg",        "mime": "image/jpeg"      }    },    {      "attachment": {        "omitted": false,        "filename": null,        "mime": null      },      "body": "[attachment]",      "meta": {        "omitted": false      }    },    {      "attachment": {        "omitted": false,        "filename": "12-34-56-file.pdf",        "mime": "application/pdf"      },      "body": "[attachment: 34-56-file.pdf]",      "meta": {        "omitted": false,        "name": "12-34-56-file.pdf",        "mime": "application/pdf"      }    },    {      "attachment": {        "omitted": false,        "filename": "👍.jpg",        "mime": null      },      "body": "[attachment: 👍.jpg]",      "meta": {        "omitted": false,        "name": "👍.jpg"      }    },    {      "attachment": {        "omitted": true,        "filename": "x.jpg",        "mime": "image/jpeg",        "label": "video omitted"      },      "body": "[video omitted]",      "meta": {        "omitted": true,        "name": "x.jpg",        "mime": "image/jpeg"      }    }  ],  "envelopeMessages": [    {      "name": "minimal",      "value": {        "phone": "919876543210",        "direction": "in",        "body": "hello",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718"      },      "issues": []    },    {      "name": "every_optional",      "value": {        "phone": "919876543210",        "direction": "in",        "body": "hello",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718",        "displayName": "Anita Rao",        "replyToExternalId": "3EB0000000000000AAAA",        "reactions": [          {            "emoji": "x",            "actor": "owner",            "at": "2025-07-26T10:13:00.000Z"          }        ],        "meta": {          "edited": true        }      },      "issues": []    },    {      "name": "plus_phone",      "value": {        "phone": "+919876543210",        "direction": "in",        "body": "hello",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718"      },      "issues": [        "message.phone: expected 8–15 digits with no leading \"+\", got \"+919876543210\""      ]    },    {      "name": "bad_direction",      "value": {        "phone": "919876543210",        "direction": "outgoing",        "body": "hello",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718"      },      "issues": [        "message.direction: expected \"in\" | \"out\", got \"outgoing\""      ]    },    {      "name": "bad_sent_at",      "value": {        "phone": "919876543210",        "direction": "in",        "body": "hello",        "sentAt": "26/07/2025",        "externalId": "3EB0A1B2C3D4E5F60718"      },      "issues": [        "message.sentAt: expected an ISO-8601 instant, got \"26/07/2025\""      ]    },    {      "name": "empty_external_id",      "value": {        "phone": "919876543210",        "direction": "in",        "body": "hello",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": ""      },      "issues": [        "message.externalId: expected a non-empty string"      ]    },    {      "name": "numeric_body",      "value": {        "phone": "919876543210",        "direction": "in",        "body": 42,        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718"      },      "issues": [        "message.body: expected a string"      ]    },    {      "name": "reaction_without_actor",      "value": {        "phone": "919876543210",        "direction": "in",        "body": "hello",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718",        "reactions": [          {            "emoji": "x"          }        ]      },      "issues": [        "message.reactions[0].actor: expected \"owner\" or a canonical phone"      ]    },    {      "name": "path_is_reported",      "value": {        "phone": "919876543210",        "direction": "sideways",        "body": "hello",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718"      },      "at": "messages[7]",      "issues": [        "messages[7].direction: expected \"in\" | \"out\", got \"sideways\""      ]    },    {      "name": "not_an_object",      "value": 7,      "issues": [        "message: expected an object"      ]    },    {      "name": "null_phone",      "value": {        "phone": null,        "direction": "in",        "body": "hello",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718"      },      "issues": [        "message.phone: expected 8–15 digits with no leading \"+\", got null"      ]    },    {      "name": "empty_body_no_media",      "value": {        "phone": "919876543210",        "direction": "in",        "body": "   ",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718"      },      "issues": [        "message.body: empty with no media and no mediaOnly mark — a message says something"      ]    },    {      "name": "empty_body_media_only_left_behind",      "value": {        "phone": "919876543210",        "direction": "in",        "body": "",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718",        "meta": {          "mediaOnly": "image"        }      },      "issues": []    },    {      "name": "empty_body_blank_mark",      "value": {        "phone": "919876543210",        "direction": "in",        "body": "",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718",        "meta": {          "mediaOnly": ""        }      },      "issues": [        "message.body: empty with no media and no mediaOnly mark — a message says something"      ]    },    {      "name": "empty_body_with_media",      "value": {        "phone": "919876543210",        "direction": "in",        "body": "",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718",        "media": [          {            "key": "k",            "contentType": "image/jpeg"          }        ]      },      "issues": []    },    {      "name": "media_without_bytes",      "value": {        "phone": "919876543210",        "direction": "in",        "body": "hello",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718",        "media": [          {            "contentType": "image/jpeg"          }        ]      },      "issues": [        "message.media[0]: expected a non-empty \"key\""      ]    },    {      "name": "media_http_url",      "value": {        "phone": "919876543210",        "direction": "in",        "body": "hello",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718",        "media": [          {            "url": "http://x/y",            "contentType": "image/jpeg"          }        ]      },      "issues": [        "message.media[0]: expected a non-empty \"key\""      ]    },    {      "name": "media_bad_fields",      "value": {        "phone": "919876543210",        "direction": "in",        "body": "hello",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718",        "media": [          {            "url": "https://x/y",            "contentType": "",            "sizeBytes": "big",            "name": 3          }        ]      },      "issues": [        "message.media[0]: expected a non-empty \"key\"",        "message.media[0].contentType: expected a non-empty string",        "message.media[0].sizeBytes: expected a number when present",        "message.media[0].name: expected a string when present"      ]    },    {      "name": "media_not_an_array",      "value": {        "phone": "919876543210",        "direction": "in",        "body": "hello",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718",        "media": {}      },      "issues": [        "message.media: expected an array when present"      ]    },    {      "name": "reactions_not_an_array",      "value": {        "phone": "919876543210",        "direction": "in",        "body": "hello",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718",        "reactions": {}      },      "issues": [        "message.reactions: expected an array when present"      ]    },    {      "name": "meta_not_an_object",      "value": {        "phone": "919876543210",        "direction": "in",        "body": "hello",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718",        "meta": []      },      "issues": [        "message.meta: expected an object when present"      ]    },    {      "name": "reaction_bad_at",      "value": {        "phone": "919876543210",        "direction": "in",        "body": "hello",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718",        "reactions": [          {            "emoji": "x",            "actor": "owner",            "at": "nope"          }        ]      },      "issues": [        "message.reactions[0].at: expected an ISO-8601 instant when present"      ]    },    {      "name": "sender_label_in_dm",      "value": {        "phone": "919876543210",        "direction": "in",        "body": "hello",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718",        "senderLabel": "Asha"      },      "issues": [        "message.senderLabel: only group batches carry senders"      ]    },    {      "name": "group_ok",      "value": {        "direction": "in",        "body": "hello",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718",        "senderLabel": "Asha"      },      "at": "m",      "kind": "group",      "issues": []    },    {      "name": "group_no_label",      "value": {        "direction": "in",        "body": "hello",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718"      },      "at": "m",      "kind": "group",      "issues": [        "m.senderLabel: inbound group messages need the sender's label, got undefined"      ]    },    {      "name": "group_with_phone",      "value": {        "phone": "919876543210",        "direction": "in",        "body": "hello",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718",        "senderLabel": "Asha"      },      "at": "m",      "kind": "group",      "issues": [        "m.phone: group batches identify people via senderLabel, not phone"      ]    },    {      "name": "group_outbound_label",      "value": {        "direction": "out",        "body": "hello",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718",        "senderLabel": "Asha"      },      "at": "m",      "kind": "group",      "issues": [        "m.senderLabel: only inbound non-system messages carry a sender"      ]    },    {      "name": "group_system",      "value": {        "direction": "in",        "body": "hello",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718",        "meta": {          "system": true        }      },      "at": "m",      "kind": "group",      "issues": []    },    {      "name": "group_blank_label",      "value": {        "direction": "in",        "body": "hello",        "sentAt": "2025-07-26T10:12:45.000Z",        "externalId": "3EB0A1B2C3D4E5F60718",        "senderLabel": "  "      },      "at": "m",      "kind": "group",      "issues": [        "m.senderLabel: inbound group messages need the sender's label, got \"  \""      ]    }  ],  "batches": [    {      "name": "well_formed",      "value": {        "workspaceId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",        "channel": "whatsapp",        "messages": [          {            "phone": "919876543210",            "direction": "in",            "body": "hello",            "sentAt": "2025-07-26T10:12:45.000Z",            "externalId": "3EB0A1B2C3D4E5F60718"          }        ]      },      "issues": []    },    {      "name": "bad_workspace",      "value": {        "workspaceId": "mine",        "channel": "whatsapp",        "messages": [          {            "phone": "919876543210",            "direction": "in",            "body": "hello",            "sentAt": "2025-07-26T10:12:45.000Z",            "externalId": "3EB0A1B2C3D4E5F60718"          }        ]      },      "issues": [        "batch.workspaceId: expected a uuid, got \"mine\""      ]    },    {      "name": "no_channel",      "value": {        "workspaceId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",        "messages": [          {            "phone": "919876543210",            "direction": "in",            "body": "hello",            "sentAt": "2025-07-26T10:12:45.000Z",            "externalId": "3EB0A1B2C3D4E5F60718"          }        ]      },      "issues": [        "batch.channel: expected \"whatsapp\" or \"instagram\", got undefined"      ]    },    {      "name": "no_messages",      "value": {        "workspaceId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",        "channel": "whatsapp",        "messages": []      },      "issues": [        "batch.messages: expected at least one message"      ]    },    {      "name": "messages_not_an_array",      "value": {        "workspaceId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",        "channel": "whatsapp",        "messages": {}      },      "issues": [        "batch.messages: expected an array"      ]    },    {      "name": "not_an_object",      "value": [],      "issues": [        "batch: expected an object"      ]    },    {      "name": "dm_block",      "value": {        "workspaceId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",        "channel": "whatsapp",        "dm": {          "label": "Asha"        },        "messages": [          {            "direction": "in",            "body": "hello",            "sentAt": "2025-07-26T10:12:45.000Z",            "externalId": "3EB0A1B2C3D4E5F60718"          }        ]      },      "issues": []    },    {      "name": "group_block",      "value": {        "workspaceId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",        "channel": "whatsapp",        "thread": {          "kind": "group",          "title": "T",          "externalKey": "wa:group:t",          "participants": [            {              "label": "Asha"            },            {              "label": "Vik",              "phone": "918123456780",              "personId": "p1"            }          ]        },        "messages": [          {            "direction": "in",            "body": "hello",            "sentAt": "2025-07-26T10:12:45.000Z",            "externalId": "3EB0A1B2C3D4E5F60718",            "senderLabel": "Asha"          }        ]      },      "issues": []    },    {      "name": "group_blank_participant",      "value": {        "workspaceId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",        "channel": "whatsapp",        "thread": {          "kind": "group",          "title": "T",          "externalKey": "wa:group:t",          "participants": [            {              "label": " "            }          ]        },        "messages": [          {            "direction": "in",            "body": "hello",            "sentAt": "2025-07-26T10:12:45.000Z",            "externalId": "3EB0A1B2C3D4E5F60718",            "senderLabel": "Asha"          }        ]      },      "issues": [        "batch.thread.participants[0].label: expected a non-empty string"      ]    },    {      "name": "group_bad_participant_phone",      "value": {        "workspaceId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",        "channel": "whatsapp",        "thread": {          "kind": "group",          "title": "T",          "externalKey": "wa:group:t",          "participants": [            {              "label": "Asha",              "phone": "+91"            }          ]        },        "messages": [          {            "direction": "in",            "body": "hello",            "sentAt": "2025-07-26T10:12:45.000Z",            "externalId": "3EB0A1B2C3D4E5F60718",            "senderLabel": "Asha"          }        ]      },      "issues": [        "batch.thread.participants[0].phone: expected 8–15 digits with no leading \"+\" when present"      ]    },    {      "name": "both_dm_and_group",      "value": {        "workspaceId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",        "channel": "whatsapp",        "thread": {          "kind": "group",          "title": "T",          "externalKey": "wa:group:t",          "participants": [            {              "label": "Asha"            },            {              "label": "Vik",              "phone": "918123456780",              "personId": "p1"            }          ]        },        "dm": {          "label": "Asha"        },        "messages": [          {            "direction": "in",            "body": "hello",            "sentAt": "2025-07-26T10:12:45.000Z",            "externalId": "3EB0A1B2C3D4E5F60718",            "senderLabel": "Asha"          }        ]      },      "issues": [        "batch.dm: a batch is a dm or a group, not both"      ]    },    {      "name": "thread_not_an_object",      "value": {        "workspaceId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",        "channel": "whatsapp",        "thread": 5,        "messages": [          {            "phone": "919876543210",            "direction": "in",            "body": "hello",            "sentAt": "2025-07-26T10:12:45.000Z",            "externalId": "3EB0A1B2C3D4E5F60718"          }        ]      },      "issues": [        "batch.thread: expected an object when present"      ]    },    {      "name": "thread_bad_everything",      "value": {        "workspaceId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",        "channel": "whatsapp",        "thread": {          "kind": "dm",          "title": " ",          "externalKey": "",          "participants": []        },        "messages": [          {            "direction": "in",            "body": "hello",            "sentAt": "2025-07-26T10:12:45.000Z",            "externalId": "3EB0A1B2C3D4E5F60718",            "senderLabel": "Asha"          }        ]      },      "issues": [        "batch.thread.kind: expected \"group\", got \"dm\"",        "batch.thread.title: expected a non-empty string",        "batch.thread.externalKey: expected a non-empty string"      ]    },    {      "name": "group_page_of_the_owners_own_messages",      "value": {        "workspaceId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",        "channel": "whatsapp",        "thread": {          "kind": "group",          "title": "Trek planning",          "externalKey": "group:120363000000000001@g.us",          "participants": []        },        "messages": [          {            "direction": "out",            "body": "see you at six",            "sentAt": "2025-07-26T10:12:45.000Z",            "externalId": "3EB0A1B2C3D4E5F60719"          }        ]      },      "issues": []    },    {      "name": "thread_participants_not_a_list",      "value": {        "workspaceId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",        "channel": "whatsapp",        "thread": {          "kind": "group",          "title": "Trek planning",          "externalKey": "group:120363000000000001@g.us"        },        "messages": [          {            "direction": "out",            "body": "see you at six",            "sentAt": "2025-07-26T10:12:45.000Z",            "externalId": "3EB0A1B2C3D4E5F60719"          }        ]      },      "issues": [        "batch.thread.participants: expected an array"      ]    },    {      "name": "participant_not_an_object",      "value": {        "workspaceId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",        "channel": "whatsapp",        "thread": {          "kind": "group",          "title": "T",          "externalKey": "wa:group:t",          "participants": [            1          ]        },        "messages": [          {            "direction": "in",            "body": "hello",            "sentAt": "2025-07-26T10:12:45.000Z",            "externalId": "3EB0A1B2C3D4E5F60718",            "senderLabel": "Asha"          }        ]      },      "issues": [        "batch.thread.participants[0]: expected an object"      ]    },    {      "name": "participant_empty_person_id",      "value": {        "workspaceId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",        "channel": "whatsapp",        "thread": {          "kind": "group",          "title": "T",          "externalKey": "wa:group:t",          "participants": [            {              "label": "Asha",              "personId": ""            }          ]        },        "messages": [          {            "direction": "in",            "body": "hello",            "sentAt": "2025-07-26T10:12:45.000Z",            "externalId": "3EB0A1B2C3D4E5F60718",            "senderLabel": "Asha"          }        ]      },      "issues": [        "batch.thread.participants[0].personId: expected a non-empty string when present"      ]    },    {      "name": "dm_not_an_object",      "value": {        "workspaceId": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",        "channel": "whatsapp",        "dm": 3,        "messages": [          {            "phone": "919876543210",            "direction": "in",            "body": "hello",            "sentAt": "2025-07-26T10:12:45.000Z",            "externalId": "3EB0A1B2C3D4E5F60718"          }        ]      },      "issues": [        "batch.dm: expected an object when present"      ]    }  ],  "caps": [    {      "count": 501,      "issues": [        "batch.messages: 501 exceeds the 500-message cap"      ]    },    {      "count": 500,      "issues": []    },    {      "count": 499,      "issues": []    }  ]}