@photon-ai/advanced-imessage-kit 1.12.4 → 1.12.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -13
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -28,6 +28,7 @@ Advanced iMessage Kit is a full-featured iMessage SDK for **reading**, **sending
28
28
  | [Edit Messages](#edit-messages) | Edit a sent message | `messages.editMessage()` | [message-edit.ts](./examples/message-edit.ts) |
29
29
  | [Send Tapbacks](#send-tapbacks) | React with ❤️ 👍 👎 😂 ‼️ ❓ | `messages.sendReaction()` | [message-reaction.ts](./examples/message-reaction.ts) |
30
30
  | [Query Messages](#query-messages) | Search and filter message history | `messages.getMessages()` | [message-search.ts](./examples/message-search.ts) |
31
+ | [Destination Caller ID](#query-messages) | See which of your addresses sent/received | `messages.getMessages()` | [message-destination-caller-id.ts](./examples/message-destination-caller-id.ts) |
31
32
  | [Message History](#get-chat-messages) | View messages, reactions, polls, stickers | `chats.getChatMessages()` | [message-history.ts](./examples/message-history.ts) |
32
33
  | [Send Attachments](#send-attachments) | Send images, files, documents | `attachments.sendAttachment()` | [message-attachment.ts](./examples/message-attachment.ts) |
33
34
  | [Send Audio Messages](#send-audio-messages) | Send voice messages | `attachments.sendAttachment()` | [message-audio.ts](./examples/message-audio.ts) |
@@ -208,11 +209,6 @@ const results = await sdk.messages.searchMessages({
208
209
  const total = await sdk.messages.getMessageCount();
209
210
  const sent = await sdk.messages.getSentMessageCount();
210
211
  const updated = await sdk.messages.getUpdatedMessageCount();
211
-
212
- const message = await sdk.messages.getMessage("message-guid");
213
- if (message.destinationCallerId) {
214
- console.log(`Sent from: ${message.destinationCallerId}`);
215
- }
216
212
  ```
217
213
 
218
214
  ### Unsend Messages
@@ -333,7 +329,7 @@ const updated = await sdk.scheduledMessages.updateScheduledMessage(
333
329
  },
334
330
  scheduledFor: Date.now() + 10 * 60 * 1000,
335
331
  schedule: { type: "once" },
336
- }
332
+ },
337
333
  );
338
334
 
339
335
  await sdk.scheduledMessages.deleteScheduledMessage("scheduled-id");
@@ -584,9 +580,8 @@ const buffer = await sdk.attachments.downloadAttachment("attachment-guid", {
584
580
  });
585
581
 
586
582
  // Download Live Photo video
587
- const liveBuffer = await sdk.attachments.downloadAttachmentLive(
588
- "attachment-guid"
589
- );
583
+ const liveBuffer =
584
+ await sdk.attachments.downloadAttachmentLive("attachment-guid");
590
585
 
591
586
  // Get blurhash (for placeholders)
592
587
  const blurhash = await sdk.attachments.getAttachmentBlurhash("attachment-guid");
@@ -675,11 +670,11 @@ Check if a phone/email supports iMessage or FaceTime:
675
670
  // First parameter is the address (phone or email), not handle guid
676
671
  const hasIMessage = await sdk.handles.getHandleAvailability(
677
672
  "+1234567890",
678
- "imessage"
673
+ "imessage",
679
674
  );
680
675
  const hasFaceTime = await sdk.handles.getHandleAvailability(
681
676
  "+1234567890",
682
- "facetime"
677
+ "facetime",
683
678
  );
684
679
 
685
680
  // Choose service based on availability
@@ -859,10 +854,10 @@ const locations = await sdk.icloud.refreshFindMyFriends();
859
854
  const friend = locations.find((loc) => loc.handle === "+1234567890");
860
855
  if (friend) {
861
856
  console.log(
862
- `Coordinates: ${friend.coordinates[0]}, ${friend.coordinates[1]}`
857
+ `Coordinates: ${friend.coordinates[0]}, ${friend.coordinates[1]}`,
863
858
  );
864
859
  console.log(
865
- `Maps: https://maps.google.com/?q=${friend.coordinates[0]},${friend.coordinates[1]}`
860
+ `Maps: https://maps.google.com/?q=${friend.coordinates[0]},${friend.coordinates[1]}`,
866
861
  );
867
862
  if (friend.long_address) console.log(`Address: ${friend.long_address}`);
868
863
  }
@@ -1075,6 +1070,7 @@ bun run examples/<filename>.ts
1075
1070
  | [message-effects.ts](./examples/message-effects.ts) | Message effects |
1076
1071
  | [message-search.ts](./examples/message-search.ts) | Search messages |
1077
1072
  | [message-history.ts](./examples/message-history.ts) | Message history |
1073
+ | [message-destination-caller-id.ts](./examples/message-destination-caller-id.ts) | Destination caller ID |
1078
1074
 
1079
1075
  ### Chats & Groups
1080
1076
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photon-ai/advanced-imessage-kit",
3
- "version": "1.12.4",
3
+ "version": "1.12.5",
4
4
  "description": "Powerful TypeScript iMessage SDK with real-time message processing",
5
5
  "keywords": [
6
6
  "imessage",