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

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.
@@ -1234,7 +1234,12 @@ export interface paths {
1234
1234
  direction?: "inbound" | "outbound_from_me";
1235
1235
  body?: string;
1236
1236
  contact_name?: string;
1237
- attachments?: string[];
1237
+ attachments?: {
1238
+ attachment_id: string;
1239
+ filename?: string;
1240
+ mime_type?: string;
1241
+ size_bytes?: number | null;
1242
+ }[];
1238
1243
  } | {
1239
1244
  /** @enum {string} */
1240
1245
  type: "typing_started";
@@ -10235,6 +10240,15 @@ export interface paths {
10235
10240
  "application/json": components["schemas"]["ErrorEnvelope"];
10236
10241
  };
10237
10242
  };
10243
+ /** @description Not found */
10244
+ 404: {
10245
+ headers: {
10246
+ [name: string]: unknown;
10247
+ };
10248
+ content: {
10249
+ "application/json": components["schemas"]["ErrorEnvelope"];
10250
+ };
10251
+ };
10238
10252
  /** @description Too many requests — rate limit exceeded */
10239
10253
  429: {
10240
10254
  headers: {
@@ -10484,7 +10498,12 @@ export interface paths {
10484
10498
  direction?: "inbound" | "outbound_from_me";
10485
10499
  body?: string;
10486
10500
  contact_name?: string;
10487
- attachments?: string[];
10501
+ attachments?: {
10502
+ attachment_id: string;
10503
+ filename?: string;
10504
+ mime_type?: string;
10505
+ size_bytes?: number | null;
10506
+ }[];
10488
10507
  } | {
10489
10508
  /** @enum {string} */
10490
10509
  type: "typing_started";
@@ -12334,6 +12353,7 @@ export interface components {
12334
12353
  id: string;
12335
12354
  line_id: string;
12336
12355
  direction: components["schemas"]["MessageDirection"];
12356
+ kind: components["schemas"]["MessageKind"];
12337
12357
  to: string;
12338
12358
  from: string;
12339
12359
  body: string | null;
@@ -12356,7 +12376,7 @@ export interface components {
12356
12376
  metadata: {
12357
12377
  [key: string]: unknown;
12358
12378
  } | null;
12359
- attachments: string[];
12379
+ attachments: components["schemas"]["MessageAttachmentV1"][];
12360
12380
  scheduled_for: string | null;
12361
12381
  schedule_reason: string | null;
12362
12382
  queue_info: {
@@ -12387,11 +12407,20 @@ export interface components {
12387
12407
  /** @enum {string} */
12388
12408
  MessageDirection: "outbound" | "inbound";
12389
12409
  /** @enum {string} */
12410
+ MessageKind: "message" | "voice" | "reaction";
12411
+ /** @enum {string} */
12390
12412
  MessageChannel: "auto" | "iMessage" | "SMS" | "RCS";
12391
12413
  /** @enum {string|null} */
12392
12414
  MessageService: "iMessage" | "SMS" | "RCS" | null;
12393
12415
  /** @enum {string} */
12394
12416
  MessageStatus: "queued" | "scheduled" | "sent" | "delivered" | "read" | "failed" | "cancelled";
12417
+ MessageAttachmentV1: {
12418
+ id: string;
12419
+ content_type: string;
12420
+ filename: string;
12421
+ size_bytes: number;
12422
+ duration_ms: number | null;
12423
+ };
12395
12424
  ReactionEnvelope: {
12396
12425
  /** @enum {boolean} */
12397
12426
  success: true;
@@ -12860,31 +12889,55 @@ export interface components {
12860
12889
  };
12861
12890
  DeviceHeartbeatV1: {
12862
12891
  /** @enum {boolean} */
12863
- ok: true;
12892
+ success: true;
12893
+ data: components["schemas"]["DeviceHeartbeatV1Data"];
12894
+ trace_id: string;
12895
+ request_id: string;
12896
+ };
12897
+ DeviceHeartbeatV1Data: {
12898
+ device_session_id: string;
12899
+ acknowledged_at: string;
12900
+ phone_number_updated: boolean;
12901
+ line_public_id: string | null;
12902
+ phone_number: string | null;
12903
+ device_name: string | null;
12864
12904
  polling_interval_ms: number;
12865
12905
  heartbeat_interval_ms: number;
12866
12906
  device_flags: string[];
12867
12907
  };
12868
12908
  DeviceOutboundPoll: {
12869
- messages: {
12870
- /** Format: uuid */
12871
- id: string;
12872
- /** Format: uuid */
12873
- message_id: string | null;
12874
- kind: string;
12875
- parent_native_message_id: string | null;
12876
- recipient: string;
12877
- body: string | null;
12878
- channel: string | null;
12879
- effect?: unknown;
12880
- reply_to_message_id: string | null;
12881
- attachments?: unknown;
12882
- created_at: string;
12883
- }[];
12909
+ /** @enum {boolean} */
12910
+ success: true;
12911
+ data: {
12912
+ messages: {
12913
+ /** Format: uuid */
12914
+ id: string;
12915
+ /** Format: uuid */
12916
+ message_id: string | null;
12917
+ kind: string;
12918
+ parent_native_message_id: string | null;
12919
+ recipient: string;
12920
+ body: string | null;
12921
+ channel: string | null;
12922
+ effect?: unknown;
12923
+ reply_to_message_id: string | null;
12924
+ attachments?: unknown;
12925
+ use_typing_indicator: boolean;
12926
+ created_at: string;
12927
+ }[];
12928
+ };
12929
+ trace_id: string;
12930
+ request_id: string;
12884
12931
  };
12885
12932
  DeviceOutboundAck: {
12886
12933
  /** @enum {boolean} */
12887
- ok: true;
12934
+ success: true;
12935
+ data: {
12936
+ /** @enum {boolean} */
12937
+ ok: true;
12938
+ };
12939
+ trace_id: string;
12940
+ request_id: string;
12888
12941
  };
12889
12942
  MessageList: {
12890
12943
  messages: components["schemas"]["Message"][];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isnap/sdk",
3
- "version": "1.1.0-next.79",
3
+ "version": "1.1.0-next.81",
4
4
  "description": "Official TypeScript SDK for the iSnap P2P telephony API",
5
5
  "license": "MIT",
6
6
  "type": "module",