@isnap/sdk 1.1.0-next.81 → 1.1.0-next.83

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.
@@ -1194,10 +1194,12 @@ export interface paths {
1194
1194
  type: "reaction_received";
1195
1195
  /** Format: date-time */
1196
1196
  occurred_at: string;
1197
- parent_message_id: string;
1197
+ parent_message_id?: string;
1198
+ parent_native_message_id?: string;
1198
1199
  from_handle: string;
1199
1200
  /** @enum {string} */
1200
- reaction_type: "love" | "like" | "dislike" | "laugh" | "emphasize" | "question";
1201
+ reaction_type: "love" | "like" | "dislike" | "laugh" | "emphasize" | "question" | "custom";
1202
+ reaction_emoji?: string;
1201
1203
  /** @enum {string} */
1202
1204
  operation: "add" | "remove";
1203
1205
  } | {
@@ -1207,7 +1209,7 @@ export interface paths {
1207
1209
  occurred_at: string;
1208
1210
  reason: string;
1209
1211
  /** @enum {string} */
1210
- detected_via: "macos_dialog" | "android_notification" | "heuristic";
1212
+ detected_via: "macos_dialog" | "android_notification" | "heuristic" | "disabled_account_dialog" | "greyed_toggle" | "waiting_for_activation" | "sms_downgrade" | "error_heuristic";
1211
1213
  error?: string;
1212
1214
  } | {
1213
1215
  /** @enum {string} */
@@ -1240,6 +1242,10 @@ export interface paths {
1240
1242
  mime_type?: string;
1241
1243
  size_bytes?: number | null;
1242
1244
  }[];
1245
+ /** @description Optional. The parent message's native Apple GUID when this inbound is a threaded reply. Un-400-able: malformed / empty / over-length / unresolvable values degrade to a null reply anchor, never a 4xx. */
1246
+ reply_to_native_message_id?: string;
1247
+ /** @description Optional iMessage expressive-send style { type: 'bubble' | 'screen', name }. Un-400-able: unknown / malformed values degrade to null server-side. */
1248
+ effect?: Record<string, never>;
1243
1249
  } | {
1244
1250
  /** @enum {string} */
1245
1251
  type: "typing_started";
@@ -7434,7 +7440,7 @@ export interface paths {
7434
7440
  };
7435
7441
  /**
7436
7442
  * List messages
7437
- * @description Cursor-paginated list of messages, newest first. Each item carries the full `MessageV1` shape — partners can write a uniform handler over both `GET /v1/messages` and `GET /v1/messages/{id}`. Filter by `line_id`, `status`, or `direction`; pass an opaque `cursor` from the previous page's `next_cursor` to advance.
7443
+ * @description Cursor-paginated list of messages, newest first. Each item carries the full `MessageV1` shape — partners can write a uniform handler over both `GET /v1/messages` and `GET /v1/messages/{id}`. Filter by `line_id`, `status`, `direction`, or `kind` (`message` drops the separate reaction/voice rows for a clean feed; `reaction`/`voice` fetch only those; omit for all kinds); pass an opaque `cursor` from the previous page's `next_cursor` to advance.
7438
7444
  */
7439
7445
  get: {
7440
7446
  parameters: {
@@ -7442,6 +7448,7 @@ export interface paths {
7442
7448
  line_id?: string;
7443
7449
  status?: "queued" | "sent" | "delivered" | "read" | "failed";
7444
7450
  direction?: "outbound" | "inbound";
7451
+ kind?: "message" | "voice" | "reaction";
7445
7452
  cursor?: string;
7446
7453
  limit?: number;
7447
7454
  };
@@ -10458,10 +10465,12 @@ export interface paths {
10458
10465
  type: "reaction_received";
10459
10466
  /** Format: date-time */
10460
10467
  occurred_at: string;
10461
- parent_message_id: string;
10468
+ parent_message_id?: string;
10469
+ parent_native_message_id?: string;
10462
10470
  from_handle: string;
10463
10471
  /** @enum {string} */
10464
- reaction_type: "love" | "like" | "dislike" | "laugh" | "emphasize" | "question";
10472
+ reaction_type: "love" | "like" | "dislike" | "laugh" | "emphasize" | "question" | "custom";
10473
+ reaction_emoji?: string;
10465
10474
  /** @enum {string} */
10466
10475
  operation: "add" | "remove";
10467
10476
  } | {
@@ -10471,7 +10480,7 @@ export interface paths {
10471
10480
  occurred_at: string;
10472
10481
  reason: string;
10473
10482
  /** @enum {string} */
10474
- detected_via: "macos_dialog" | "android_notification" | "heuristic";
10483
+ detected_via: "macos_dialog" | "android_notification" | "heuristic" | "disabled_account_dialog" | "greyed_toggle" | "waiting_for_activation" | "sms_downgrade" | "error_heuristic";
10475
10484
  error?: string;
10476
10485
  } | {
10477
10486
  /** @enum {string} */
@@ -10504,6 +10513,10 @@ export interface paths {
10504
10513
  mime_type?: string;
10505
10514
  size_bytes?: number | null;
10506
10515
  }[];
10516
+ /** @description Optional. The parent message's native Apple GUID when this inbound is a threaded reply. Un-400-able: malformed / empty / over-length / unresolvable values degrade to a null reply anchor, never a 4xx. */
10517
+ reply_to_native_message_id?: string;
10518
+ /** @description Optional iMessage expressive-send style { type: 'bubble' | 'screen', name }. Un-400-able: unknown / malformed values degrade to null server-side. */
10519
+ effect?: Record<string, never>;
10507
10520
  } | {
10508
10521
  /** @enum {string} */
10509
10522
  type: "typing_started";
@@ -10695,6 +10708,7 @@ export interface paths {
10695
10708
  line_id?: string;
10696
10709
  status?: "queued" | "sent" | "delivered" | "read" | "failed";
10697
10710
  direction?: "outbound" | "inbound";
10711
+ kind?: "message" | "voice" | "reaction";
10698
10712
  page?: number;
10699
10713
  limit?: number;
10700
10714
  };
@@ -12377,6 +12391,7 @@ export interface components {
12377
12391
  [key: string]: unknown;
12378
12392
  } | null;
12379
12393
  attachments: components["schemas"]["MessageAttachmentV1"][];
12394
+ reactions: components["schemas"]["MessageReactionV1"][];
12380
12395
  scheduled_for: string | null;
12381
12396
  schedule_reason: string | null;
12382
12397
  queue_info: {
@@ -12421,6 +12436,15 @@ export interface components {
12421
12436
  size_bytes: number;
12422
12437
  duration_ms: number | null;
12423
12438
  };
12439
+ MessageReactionV1: {
12440
+ /** @enum {string} */
12441
+ reaction_type: "love" | "like" | "dislike" | "laugh" | "emphasize" | "question" | "custom";
12442
+ reaction_emoji: string | null;
12443
+ from_handle: string;
12444
+ /** @enum {string} */
12445
+ direction: "outbound" | "inbound";
12446
+ created_at: string;
12447
+ };
12424
12448
  ReactionEnvelope: {
12425
12449
  /** @enum {boolean} */
12426
12450
  success: true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isnap/sdk",
3
- "version": "1.1.0-next.81",
3
+ "version": "1.1.0-next.83",
4
4
  "description": "Official TypeScript SDK for the iSnap P2P telephony API",
5
5
  "license": "MIT",
6
6
  "type": "module",