← All procedures
iosBackup.messages
Read the messages (iMessage and SMS) of an iPhone backup, in time order
CLI- Package
- @procedures/ios-backup · README
- Path
["iosBackup","messages"]- CLI
mark iosBackup messages- As data
{"$proc":["iosBackup","messages"],"input":{}}
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/ios-backup/register"; // registers its procedures
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["iosBackup","messages"], {});
console.log(JSON.stringify(result));From the command line
$ mark iosBackup messages
As data, in a program
{ "$proc": ["iosBackup", "messages"], "input": {} }Input
Output
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"backup": {
"description": "The backup folder (default: the newest backup in the roots)",
"type": "string",
"minLength": 1
},
"roots": {
"description": "The folders that hold the backup folders (default: the MobileSync folders of Windows and macOS)",
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"since": {
"description": "Only the messages at this time or after it (ISO 8601)",
"type": "string"
},
"until": {
"description": "Only the messages before this time (ISO 8601)",
"type": "string"
},
"limit": {
"description": "Only the newest messages, at most this number",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
}
},
"output": {
"type": "object",
"properties": {
"backup": {
"type": "string"
},
"messages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"guid": {
"type": "string"
},
"date": {
"type": "string"
},
"text": {
"type": "string"
},
"is_from_me": {
"type": "boolean"
},
"handle": {
"type": "string"
},
"service": {
"type": "string"
},
"chat_id": {
"type": "string"
},
"chat_name": {
"type": "string"
},
"from_attributed_body": {
"type": "boolean"
}
},
"required": [
"guid",
"date",
"text",
"is_from_me"
],
"additionalProperties": false
}
}
},
"required": [
"backup",
"messages"
],
"additionalProperties": false
}
}