@isnap/sdk 2.3.0 → 2.3.1-next.43615425532.1

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 (94) hide show
  1. package/CHANGELOG.md +65 -40
  2. package/README.md +361 -167
  3. package/dist/client.d.ts +37 -49
  4. package/dist/client.d.ts.map +1 -1
  5. package/dist/client.js +47 -58
  6. package/dist/client.js.map +1 -1
  7. package/dist/config.d.ts +6 -6
  8. package/dist/config.js +6 -6
  9. package/dist/generated/openapi.d.ts +910 -91
  10. package/dist/index.d.ts +3 -1
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +1 -0
  13. package/dist/index.js.map +1 -1
  14. package/dist/internal/sleep.d.ts +2 -2
  15. package/dist/internal/sleep.js +5 -5
  16. package/dist/internal/sleep.js.map +1 -1
  17. package/dist/resources/apps.d.ts +11 -18
  18. package/dist/resources/apps.d.ts.map +1 -1
  19. package/dist/resources/apps.js +11 -18
  20. package/dist/resources/apps.js.map +1 -1
  21. package/dist/resources/area-codes.d.ts +5 -6
  22. package/dist/resources/area-codes.d.ts.map +1 -1
  23. package/dist/resources/area-codes.js +5 -6
  24. package/dist/resources/area-codes.js.map +1 -1
  25. package/dist/resources/attachments.d.ts +51 -17
  26. package/dist/resources/attachments.d.ts.map +1 -1
  27. package/dist/resources/attachments.js +42 -22
  28. package/dist/resources/attachments.js.map +1 -1
  29. package/dist/resources/byod.d.ts +14 -4
  30. package/dist/resources/byod.d.ts.map +1 -1
  31. package/dist/resources/byod.js +14 -4
  32. package/dist/resources/byod.js.map +1 -1
  33. package/dist/resources/chats.d.ts +32 -22
  34. package/dist/resources/chats.d.ts.map +1 -1
  35. package/dist/resources/chats.js +31 -21
  36. package/dist/resources/chats.js.map +1 -1
  37. package/dist/resources/fleet.d.ts +23 -0
  38. package/dist/resources/fleet.d.ts.map +1 -0
  39. package/dist/resources/fleet.js +20 -0
  40. package/dist/resources/fleet.js.map +1 -0
  41. package/dist/resources/lines.d.ts +258 -268
  42. package/dist/resources/lines.d.ts.map +1 -1
  43. package/dist/resources/lines.js +251 -266
  44. package/dist/resources/lines.js.map +1 -1
  45. package/dist/resources/lookup.d.ts +10 -13
  46. package/dist/resources/lookup.d.ts.map +1 -1
  47. package/dist/resources/lookup.js +10 -13
  48. package/dist/resources/lookup.js.map +1 -1
  49. package/dist/resources/macos-sessions.d.ts +42 -36
  50. package/dist/resources/macos-sessions.d.ts.map +1 -1
  51. package/dist/resources/macos-sessions.js +24 -22
  52. package/dist/resources/macos-sessions.js.map +1 -1
  53. package/dist/resources/messages.d.ts +35 -25
  54. package/dist/resources/messages.d.ts.map +1 -1
  55. package/dist/resources/messages.js +30 -19
  56. package/dist/resources/messages.js.map +1 -1
  57. package/dist/resources/preorders.d.ts +42 -47
  58. package/dist/resources/preorders.d.ts.map +1 -1
  59. package/dist/resources/preorders.js +42 -47
  60. package/dist/resources/preorders.js.map +1 -1
  61. package/dist/resources/trial.d.ts +30 -21
  62. package/dist/resources/trial.d.ts.map +1 -1
  63. package/dist/resources/trial.js +30 -21
  64. package/dist/resources/trial.js.map +1 -1
  65. package/dist/resources/webhooks.d.ts +39 -22
  66. package/dist/resources/webhooks.d.ts.map +1 -1
  67. package/dist/resources/webhooks.js +39 -22
  68. package/dist/resources/webhooks.js.map +1 -1
  69. package/dist/retry.d.ts +9 -10
  70. package/dist/retry.d.ts.map +1 -1
  71. package/dist/retry.js +11 -12
  72. package/dist/retry.js.map +1 -1
  73. package/dist/types.d.ts +10 -0
  74. package/dist/types.d.ts.map +1 -1
  75. package/dist/version.d.ts +1 -1
  76. package/dist/version.d.ts.map +1 -1
  77. package/dist/version.js +13 -37
  78. package/dist/version.js.map +1 -1
  79. package/dist/webhooks/parse.d.ts +10 -9
  80. package/dist/webhooks/parse.d.ts.map +1 -1
  81. package/dist/webhooks/parse.js +14 -13
  82. package/dist/webhooks/parse.js.map +1 -1
  83. package/dist/webhooks/types.d.ts +75 -111
  84. package/dist/webhooks/types.d.ts.map +1 -1
  85. package/dist/webhooks/types.js.map +1 -1
  86. package/dist/webhooks/verify.d.ts +27 -29
  87. package/dist/webhooks/verify.d.ts.map +1 -1
  88. package/dist/webhooks/verify.js +29 -35
  89. package/dist/webhooks/verify.js.map +1 -1
  90. package/examples/handle-webhook.ts +146 -0
  91. package/examples/paginate-messages.ts +54 -0
  92. package/examples/send-message.ts +37 -0
  93. package/examples/upload-attachment.ts +91 -0
  94. package/package.json +4 -8
@@ -1 +1 @@
1
- {"version":3,"file":"lines.js","sourceRoot":"","sources":["../../src/resources/lines.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AA0BxC,MAAM,OAAO,aAAc,SAAQ,YAAY;IAC7C;;;;;OAKG;IACH,IAAI,CAAC,QAAwB,EAAE,EAAE,IAAqB;QACpD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAW,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE;YAClE,GAAG,IAAI;YACP,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE;SACpC,CAAC,CAAA;IACJ,CAAC;IAED,uEAAuE;IACvE,QAAQ,CAAC,IAAqB;QAC5B,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAU,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,IAAI,CAAC,CAAA;IAC7E,CAAC;IAED,qFAAqF;IACrF,GAAG,CAAC,EAAU,EAAE,IAAqB;QACnC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAO,KAAK,EAAE,aAAa,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,CAAA;IACjG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAoB,EAAE,IAAqB;QAChD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAO,MAAM,EAAE,kBAAkB,EAAE,IAAI,EAAE,IAAI,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,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,YAAY,CACV,EAAU,EACV,IAAqB,EACrB,IAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,OAAO,EACP,aAAa,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAC5C,IAAI,EACJ,IAAI,CACL,CAAA;IACH,CAAC;CACF"}
@@ -5,22 +5,19 @@ export type LookupRequest = components['schemas']['LookupRequest'];
5
5
  export type LookupResult = components['schemas']['Lookup'];
6
6
  export declare class LookupResource extends BaseResource {
7
7
  /**
8
- * `POST /v1/lookup` — check whether a handle is reachable on iMessage.
8
+ * `POST /v1/lookup`: check whether a handle can receive iMessage.
9
9
  *
10
- * Two outcomes. The client returns the envelope's `data` and does not
11
- * surface the HTTP status, so branch on `pending` — the in-band signal:
10
+ * The call resolves the same way on a final answer and on a pending one,
11
+ * and the HTTP status is not available: branch on `pending`.
12
12
  *
13
- * - **Terminal (`200`)** — `imessage: true | false | null`, and `pending`
14
- * is absent. `null` means the iMessage status is unknown and the handle
15
- * should be treated as SMS-safe (degrade to SMS instead of relying on
16
- * iMessage delivery).
17
- * - **Pending (`202`)** — a device probe was dispatched but had not
18
- * answered within the wait budget. `pending: true`, `imessage: null`,
19
- * plus `probe_id` and `retry_after` (seconds).
13
+ * - Final (`200`): `imessage` is `true`, `false` or `null`, and `pending` is
14
+ * absent. `null` means the answer is unknown and no check was started.
15
+ * - Pending (`202`): a check was started and has given no answer yet.
16
+ * `pending` is `true`, `imessage` is `null`, and the result carries
17
+ * `probe_id` and `retry_after` (seconds).
20
18
  *
21
- * Completion is poll-only — there is no `lookup.completed` webhook.
22
- * Re-issue the same request after `retry_after`; the shared cache the
23
- * probe warms answers `200`.
19
+ * No event announces the result. Repeat the same call after `retry_after`
20
+ * seconds.
24
21
  *
25
22
  * ```ts
26
23
  * const result = await client.lookup.check({ handle })
@@ -1 +1 @@
1
- {"version":3,"file":"lookup.d.ts","sourceRoot":"","sources":["../../src/resources/lookup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAExC,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC,CAAA;AAClE,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAA;AAE1D,qBAAa,cAAe,SAAQ,YAAY;IAC9C;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,KAAK,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC;CAG3E"}
1
+ {"version":3,"file":"lookup.d.ts","sourceRoot":"","sources":["../../src/resources/lookup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAExC,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC,CAAA;AAClE,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAA;AAE1D,qBAAa,cAAe,SAAQ,YAAY;IAC9C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,KAAK,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC;CAG3E"}
@@ -1,22 +1,19 @@
1
1
  import { BaseResource } from './base.js';
2
2
  export class LookupResource extends BaseResource {
3
3
  /**
4
- * `POST /v1/lookup` — check whether a handle is reachable on iMessage.
4
+ * `POST /v1/lookup`: check whether a handle can receive iMessage.
5
5
  *
6
- * Two outcomes. The client returns the envelope's `data` and does not
7
- * surface the HTTP status, so branch on `pending` — the in-band signal:
6
+ * The call resolves the same way on a final answer and on a pending one,
7
+ * and the HTTP status is not available: branch on `pending`.
8
8
  *
9
- * - **Terminal (`200`)** — `imessage: true | false | null`, and `pending`
10
- * is absent. `null` means the iMessage status is unknown and the handle
11
- * should be treated as SMS-safe (degrade to SMS instead of relying on
12
- * iMessage delivery).
13
- * - **Pending (`202`)** — a device probe was dispatched but had not
14
- * answered within the wait budget. `pending: true`, `imessage: null`,
15
- * plus `probe_id` and `retry_after` (seconds).
9
+ * - Final (`200`): `imessage` is `true`, `false` or `null`, and `pending` is
10
+ * absent. `null` means the answer is unknown and no check was started.
11
+ * - Pending (`202`): a check was started and has given no answer yet.
12
+ * `pending` is `true`, `imessage` is `null`, and the result carries
13
+ * `probe_id` and `retry_after` (seconds).
16
14
  *
17
- * Completion is poll-only — there is no `lookup.completed` webhook.
18
- * Re-issue the same request after `retry_after`; the shared cache the
19
- * probe warms answers `200`.
15
+ * No event announces the result. Repeat the same call after `retry_after`
16
+ * seconds.
20
17
  *
21
18
  * ```ts
22
19
  * const result = await client.lookup.check({ handle })
@@ -1 +1 @@
1
- {"version":3,"file":"lookup.js","sourceRoot":"","sources":["../../src/resources/lookup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAKxC,MAAM,OAAO,cAAe,SAAQ,YAAY;IAC9C;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,KAAK,CAAC,MAAqB,EAAE,IAAqB;QAChD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAe,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;IAC9E,CAAC;CACF"}
1
+ {"version":3,"file":"lookup.js","sourceRoot":"","sources":["../../src/resources/lookup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAKxC,MAAM,OAAO,cAAe,SAAQ,YAAY;IAC9C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,KAAK,CAAC,MAAqB,EAAE,IAAqB;QAChD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAe,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;IAC9E,CAAC;CACF"}
@@ -5,65 +5,71 @@ export type MacosSession = components['schemas']['MacosSession'];
5
5
  export type RentMacosSessionBody = components['schemas']['RentMacosSession'];
6
6
  export type PatchMacosSessionBody = components['schemas']['PatchMacosSession'];
7
7
  /**
8
- * Hosted macOS sessions rented on a wholesale partner's account (contract §2.16).
8
+ * Hosted macOS sessions rented by a wholesale partner.
9
9
  *
10
- * A session is a macOS environment the partner runs their own iPhone's bridge
11
- * against, with their OWN Apple ID signed into it. It is NOT a line: it carries
12
- * no number and originates no messages, so nothing here has a direction, a
13
- * platform or a capability.
10
+ * A hosted macOS session is a macOS user account on an iSnap Mac, signed into
11
+ * no Apple ID when you receive it. It is not a line: it has no number and
12
+ * sends nothing.
14
13
  *
15
- * Direct customers do not use this resource — they buy sessions through
16
- * `POST /v1/billing/mac-checkout` and every method here answers `403
17
- * not_a_wholesale_partner` for them.
14
+ * Wholesale partners only. For any other account `rent` is a
15
+ * `PermissionDeniedError` (403 `not_a_wholesale_partner`), and the other
16
+ * methods return `404` for a session the caller does not rent. A direct
17
+ * account buys sessions in the iSnap dashboard.
18
18
  */
19
19
  export declare class MacosSessionsResource extends BaseResource {
20
20
  /**
21
- * `POST /v1/macos-sessions/rent` — take one session out of iSnap stock.
21
+ * `POST /v1/macos-sessions/rent`: rent one session from iSnap stock.
22
22
  *
23
- * The tenancy starts immediately and `anniversary_at` is the day it was taken:
24
- * that day of the month is what the session bills on, clamped to the last day
25
- * of shorter months. Throws `ConflictError` (`409 no_macos_session_in_stock`)
26
- * when no session is free — iSnap provisions one and attaches it, so the call
27
- * does not need to be retried on a schedule.
23
+ * The tenancy starts immediately and `anniversary_at` is set to the time of
24
+ * the call: the session bills monthly on that day, moved to the last day of
25
+ * shorter months. With no free session the call is a `ConflictError` (409
26
+ * `no_macos_session_in_stock`) and nothing is recorded. iSnap can later
27
+ * attach a session to your account and announce it with
28
+ * `macos_session.rented`; that attach is not linked to the refused call.
28
29
  *
29
- * One call rents one session; rent three by calling three times, each with
30
- * its OWN idempotency key. The key (auto-generated per call unless you pass
31
- * `opts.idempotencyKey`) is what makes a retry safe: calls that share a key
32
- * rent ONE session between them, and the later ones get the first one's
33
- * response back. Reuse a key only to retry the call it was first sent with.
30
+ * One call rents one session. The API honors the idempotency key on this
31
+ * operation: calls that share a key and a body within 24 hours rent at most
32
+ * one session between them, and once one of them has succeeded the later
33
+ * ones get its response. A call that fails records nothing, so a later call
34
+ * with the same key runs again. The SDK generates a key per call unless you
35
+ * pass `opts.idempotencyKey`. To rent three sessions, make three calls, each
36
+ * with its own key. Reuse a key only to retry the call it was first sent
37
+ * with.
34
38
  *
35
- * Pass `{ metadata }` to tag the tenancy with your own identifiers: they come
36
- * back on the session and as `data.metadata` on every `macos_session.*`
37
- * webhook. The one-argument form `rent(opts)` is unchanged.
39
+ * Pass `{ metadata }` to attach your own identifiers to the session: they
40
+ * come back on the session and as `data.metadata` on every
41
+ * `macos_session.*` event. `rent(opts)`, without a body, is accepted too.
38
42
  */
39
43
  rent(opts?: RequestOptions): Promise<MacosSession>;
40
44
  rent(body: RentMacosSessionBody, opts?: RequestOptions): Promise<MacosSession>;
41
45
  /**
42
- * `GET /v1/macos-sessions/{id}` — one session you rent, with its `metadata`.
43
- * A session rented by someone else, or already released, is `404`.
46
+ * `GET /v1/macos-sessions/{id}`: one session you rent, with its `metadata`.
47
+ * A session rented by another account, or already released, returns `404`.
44
48
  */
45
49
  get(id: string, opts?: RequestOptions): Promise<MacosSession>;
46
50
  /**
47
- * `PATCH /v1/macos-sessions/{id}` — merge `metadata` into the session's tags.
48
- * A key you send overwrites, a key sent as `null` is deleted, every other key
49
- * is kept. The tags are cleared when the session is released.
51
+ * `PATCH /v1/macos-sessions/{id}`: merge `metadata` into the session's
52
+ * metadata. A key you send overwrites, a key sent as `null` is deleted, every
53
+ * other key is kept. The metadata is cleared when the session is released.
50
54
  */
51
55
  update(id: string, body: PatchMacosSessionBody, opts?: RequestOptions): Promise<MacosSession>;
52
56
  /**
53
- * `POST /v1/macos-sessions/{id}/cancel` — end the tenancy at its next anniversary.
57
+ * `POST /v1/macos-sessions/{id}/cancel`: end the tenancy at its next
58
+ * anniversary.
54
59
  *
55
- * The session stays usable and keeps billing until `cancel_at`, the next
56
- * occurrence of `anniversary_at` strictly after the call. Idempotent: a second
57
- * call returns the `cancel_at` the first one set rather than pushing it a
58
- * month further out.
60
+ * The session works and bills until `cancel_at`, the next occurrence of
61
+ * `anniversary_at` strictly after the call. A second call returns the same
62
+ * `cancel_at`.
59
63
  */
60
64
  cancel(id: string, opts?: RequestOptions): Promise<MacosSession>;
61
65
  /**
62
- * `POST /v1/macos-sessions/{id}/uncancel` — withdraw a pending cancellation.
66
+ * `POST /v1/macos-sessions/{id}/uncancel`: withdraw a pending cancellation.
63
67
  *
64
- * Clears `cancel_at` and leaves `anniversary_at` untouched, so the billing day
65
- * does not move. Idempotent on a session that is not cancelled, and `404` once
66
- * the release has already returned the session to stock.
68
+ * Clears `cancel_at` and keeps `anniversary_at`, so the billing day does not
69
+ * move. It changes nothing on a session that is not canceled. Once
70
+ * `cancel_at` has passed the call is a `ConflictError` (409
71
+ * `macos_session_cancellation_already_due`), and once the session is released
72
+ * it returns `404`.
67
73
  */
68
74
  uncancel(id: string, opts?: RequestOptions): Promise<MacosSession>;
69
75
  }
@@ -1 +1 @@
1
- {"version":3,"file":"macos-sessions.d.ts","sourceRoot":"","sources":["../../src/resources/macos-sessions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,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aAAa,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAExC,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,cAAc,CAAC,CAAA;AAChE,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAA;AAC5E,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,mBAAmB,CAAC,CAAA;AAE9E;;;;;;;;;;;GAWG;AACH,qBAAa,qBAAsB,SAAQ,YAAY;IACrD;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,IAAI,CAAC,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC;IAClD,IAAI,CAAC,IAAI,EAAE,oBAAoB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC;IAgB9E;;;OAGG;IACH,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC;IAS7D;;;;OAIG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC;IAS7F;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC;IAShE;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC;CAQnE"}
@@ -1,15 +1,15 @@
1
1
  import { BaseResource } from './base.js';
2
2
  /**
3
- * Hosted macOS sessions rented on a wholesale partner's account (contract §2.16).
3
+ * Hosted macOS sessions rented by a wholesale partner.
4
4
  *
5
- * A session is a macOS environment the partner runs their own iPhone's bridge
6
- * against, with their OWN Apple ID signed into it. It is NOT a line: it carries
7
- * no number and originates no messages, so nothing here has a direction, a
8
- * platform or a capability.
5
+ * A hosted macOS session is a macOS user account on an iSnap Mac, signed into
6
+ * no Apple ID when you receive it. It is not a line: it has no number and
7
+ * sends nothing.
9
8
  *
10
- * Direct customers do not use this resource — they buy sessions through
11
- * `POST /v1/billing/mac-checkout` and every method here answers `403
12
- * not_a_wholesale_partner` for them.
9
+ * Wholesale partners only. For any other account `rent` is a
10
+ * `PermissionDeniedError` (403 `not_a_wholesale_partner`), and the other
11
+ * methods return `404` for a session the caller does not rent. A direct
12
+ * account buys sessions in the iSnap dashboard.
13
13
  */
14
14
  export class MacosSessionsResource extends BaseResource {
15
15
  rent(bodyOrOpts, opts) {
@@ -19,37 +19,39 @@ export class MacosSessionsResource extends BaseResource {
19
19
  return this.client.request('POST', '/v1/macos-sessions/rent', hasBody ? bodyOrOpts : undefined, hasBody ? opts : bodyOrOpts);
20
20
  }
21
21
  /**
22
- * `GET /v1/macos-sessions/{id}` — one session you rent, with its `metadata`.
23
- * A session rented by someone else, or already released, is `404`.
22
+ * `GET /v1/macos-sessions/{id}`: one session you rent, with its `metadata`.
23
+ * A session rented by another account, or already released, returns `404`.
24
24
  */
25
25
  get(id, opts) {
26
26
  return this.client.request('GET', `/v1/macos-sessions/${encodeURIComponent(id)}`, undefined, opts);
27
27
  }
28
28
  /**
29
- * `PATCH /v1/macos-sessions/{id}` — merge `metadata` into the session's tags.
30
- * A key you send overwrites, a key sent as `null` is deleted, every other key
31
- * is kept. The tags are cleared when the session is released.
29
+ * `PATCH /v1/macos-sessions/{id}`: merge `metadata` into the session's
30
+ * metadata. A key you send overwrites, a key sent as `null` is deleted, every
31
+ * other key is kept. The metadata is cleared when the session is released.
32
32
  */
33
33
  update(id, body, opts) {
34
34
  return this.client.request('PATCH', `/v1/macos-sessions/${encodeURIComponent(id)}`, body, opts);
35
35
  }
36
36
  /**
37
- * `POST /v1/macos-sessions/{id}/cancel` — end the tenancy at its next anniversary.
37
+ * `POST /v1/macos-sessions/{id}/cancel`: end the tenancy at its next
38
+ * anniversary.
38
39
  *
39
- * The session stays usable and keeps billing until `cancel_at`, the next
40
- * occurrence of `anniversary_at` strictly after the call. Idempotent: a second
41
- * call returns the `cancel_at` the first one set rather than pushing it a
42
- * month further out.
40
+ * The session works and bills until `cancel_at`, the next occurrence of
41
+ * `anniversary_at` strictly after the call. A second call returns the same
42
+ * `cancel_at`.
43
43
  */
44
44
  cancel(id, opts) {
45
45
  return this.client.request('POST', `/v1/macos-sessions/${encodeURIComponent(id)}/cancel`, undefined, opts);
46
46
  }
47
47
  /**
48
- * `POST /v1/macos-sessions/{id}/uncancel` — withdraw a pending cancellation.
48
+ * `POST /v1/macos-sessions/{id}/uncancel`: withdraw a pending cancellation.
49
49
  *
50
- * Clears `cancel_at` and leaves `anniversary_at` untouched, so the billing day
51
- * does not move. Idempotent on a session that is not cancelled, and `404` once
52
- * the release has already returned the session to stock.
50
+ * Clears `cancel_at` and keeps `anniversary_at`, so the billing day does not
51
+ * move. It changes nothing on a session that is not canceled. Once
52
+ * `cancel_at` has passed the call is a `ConflictError` (409
53
+ * `macos_session_cancellation_already_due`), and once the session is released
54
+ * it returns `404`.
53
55
  */
54
56
  uncancel(id, opts) {
55
57
  return this.client.request('POST', `/v1/macos-sessions/${encodeURIComponent(id)}/uncancel`, undefined, opts);
@@ -1 +1 @@
1
- {"version":3,"file":"macos-sessions.js","sourceRoot":"","sources":["../../src/resources/macos-sessions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAMxC;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,qBAAsB,SAAQ,YAAY;IAsBrD,IAAI,CACF,UAAkD,EAClD,IAAqB;QAErB,2EAA2E;QAC3E,2CAA2C;QAC3C,MAAM,OAAO,GAAG,UAAU,KAAK,SAAS,IAAI,UAAU,IAAI,UAAU,CAAA;QACpE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,MAAM,EACN,yBAAyB,EACzB,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,EAChC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAE,UAAyC,CAC5D,CAAA;IACH,CAAC;IAED;;;OAGG;IACH,GAAG,CAAC,EAAU,EAAE,IAAqB;QACnC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,KAAK,EACL,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC9C,SAAS,EACT,IAAI,CACL,CAAA;IACH,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,EAAU,EAAE,IAA2B,EAAE,IAAqB;QACnE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,OAAO,EACP,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC9C,IAAI,EACJ,IAAI,CACL,CAAA;IACH,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,IAAqB;QACtC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,MAAM,EACN,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,SAAS,EACrD,SAAS,EACT,IAAI,CACL,CAAA;IACH,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,EAAU,EAAE,IAAqB;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,MAAM,EACN,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,WAAW,EACvD,SAAS,EACT,IAAI,CACL,CAAA;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"macos-sessions.js","sourceRoot":"","sources":["../../src/resources/macos-sessions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAMxC;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,qBAAsB,SAAQ,YAAY;IA0BrD,IAAI,CACF,UAAkD,EAClD,IAAqB;QAErB,2EAA2E;QAC3E,2CAA2C;QAC3C,MAAM,OAAO,GAAG,UAAU,KAAK,SAAS,IAAI,UAAU,IAAI,UAAU,CAAA;QACpE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,MAAM,EACN,yBAAyB,EACzB,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,EAChC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAE,UAAyC,CAC5D,CAAA;IACH,CAAC;IAED;;;OAGG;IACH,GAAG,CAAC,EAAU,EAAE,IAAqB;QACnC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,KAAK,EACL,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC9C,SAAS,EACT,IAAI,CACL,CAAA;IACH,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,EAAU,EAAE,IAA2B,EAAE,IAAqB;QACnE,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,OAAO,EACP,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC9C,IAAI,EACJ,IAAI,CACL,CAAA;IACH,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,IAAqB;QACtC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,MAAM,EACN,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,SAAS,EACrD,SAAS,EACT,IAAI,CACL,CAAA;IACH,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAU,EAAE,IAAqB;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,MAAM,EACN,sBAAsB,kBAAkB,CAAC,EAAE,CAAC,WAAW,EACvD,SAAS,EACT,IAAI,CACL,CAAA;IACH,CAAC;CACF"}
@@ -1,7 +1,7 @@
1
1
  import type { components, paths } from '../generated/openapi.js';
2
2
  import type { RequestOptions } from '../types.js';
3
3
  import { BaseResource } from './base.js';
4
- /** Full message shape returned by send/get/list/cancel (contract §2.2 fat shape). */
4
+ /** A message, as `send`, `get`, `list` and `cancel` return it. */
5
5
  export type Message = components['schemas']['MessageV1'];
6
6
  export type SendMessageBody = NonNullable<paths['/v1/messages']['post']['requestBody']>['content']['application/json'];
7
7
  export type ListMessagesQuery = NonNullable<paths['/v1/messages']['get']['parameters']['query']>;
@@ -9,45 +9,55 @@ export type SendReactionBody = components['schemas']['SendReactionRequest'];
9
9
  export type Reaction = components['schemas']['Reaction'];
10
10
  export type ReactionRemoval = components['schemas']['ReactionRemoval'];
11
11
  /**
12
- * The tapback kind as it appears on a reaction the API *reports* — the 6
13
- * classic tapbacks plus `custom` (WHA-2102), an arbitrary counterparty emoji.
14
- * Strictly wider than `Reaction['type']` / `SendReactionBody['type']`, which
15
- * cover only what a customer may *send*. Sourced from the generated
16
- * `MessageReactionV1` so a regeneration cannot silently drop `custom`.
12
+ * The kind of a reaction as the API reports it: the six kinds you can send,
13
+ * plus `custom` for any other emoji a contact sends. It is wider than
14
+ * `Reaction['type']` and `SendReactionBody['type']`, which cover only what you
15
+ * can send.
17
16
  */
18
17
  export type ReactionType = components['schemas']['MessageReactionV1']['reaction_type'];
19
18
  export declare class MessagesResource extends BaseResource {
20
- /** `POST /v1/messages` — send a new outbound message (queued, returns `MessageV1`). */
19
+ /**
20
+ * `POST /v1/messages`: send a message. Resolves with the message, whose
21
+ * `status` is `queued` when it leaves now and `scheduled` when iSnap holds
22
+ * it.
23
+ *
24
+ * The API honors the idempotency key on this operation: a repeat with the
25
+ * same key and body resolves with the message first sent, in its current
26
+ * `status`. The key belongs to the line, and the API remembers it for as
27
+ * long as it keeps the message, at least 72 hours.
28
+ */
21
29
  send(body: SendMessageBody, opts?: RequestOptions): Promise<Message>;
22
- /** `GET /v1/messages/{id}` — fetch the full fat-shape message by ID. */
30
+ /** `GET /v1/messages/{id}`: one message. */
23
31
  get(id: string, opts?: RequestOptions): Promise<Message>;
24
32
  /**
25
- * `GET /v1/messages` — cursor-paginated list as an AsyncIterable. The
26
- * iterator threads the next_cursor across pages so the consumer can
27
- * `for await (const m of client.messages.list({...}))` and get every
28
- * matching message. Items use the fat `Message` shape — same fields as
29
- * `send()` / `get()` (contract §2.2).
33
+ * `GET /v1/messages`: your messages, as an `AsyncIterable`. A `for await`
34
+ * loop receives every matching message; the SDK fetches the next page when
35
+ * the current one is consumed. Messages come newest first unless `sort` or
36
+ * `order` says otherwise. Set the page size with `limit` (1 to 100, default
37
+ * 25).
30
38
  */
31
39
  list(filters?: Omit<ListMessagesQuery, 'cursor'>, opts?: RequestOptions): AsyncIterable<Message>;
32
40
  /**
33
- * `POST /v1/messages/{id}/reactions` — add an Apple-native tapback
34
- * (love / like / dislike / laugh / emphasize / question). Replace-on-add
35
- * semantics: posting a different `type` against the same parent updates
36
- * the existing reaction in place. Reactions require iMessage; SMS / RCS
37
- * parents are rejected with 422.
41
+ * `POST /v1/messages/{id}/reactions`: put the line's reaction (an iMessage
42
+ * tapback) on a message of the line, received or sent. `type` is `love`,
43
+ * `like`, `dislike`, `laugh`, `emphasize` or `question`. A line has at most
44
+ * one reaction per message: a call with another `type` replaces it. The
45
+ * message must be an iMessage message: an SMS or RCS message is an
46
+ * `UnprocessableEntityError` (422 `sms_reactions_not_supported`).
38
47
  */
39
48
  addReaction(messageId: string, body: SendReactionBody, opts?: RequestOptions): Promise<Reaction>;
40
49
  /**
41
- * `DELETE /v1/messages/{id}/reactions` — remove the active tapback on a
42
- * message. Idempotent: returns 200 with `removed: false` when there
43
- * was nothing to remove (no 404), so partners can fire-and-forget. The
44
- * response carries the `type` that was removed when applicable — handy
45
- * for UI feedback ("removed your 'love'").
50
+ * `DELETE /v1/messages/{id}/reactions`: remove the line's reaction from a
51
+ * message. Resolves with `{ parent_message_id, removed, type }`. When there
52
+ * was no reaction to remove, `removed` is `false` and `type` is `null`: the
53
+ * call does not return `404`.
46
54
  */
47
55
  removeReaction(messageId: string, opts?: RequestOptions): Promise<ReactionRemoval>;
48
56
  /**
49
- * `DELETE /v1/messages/{id}` — cancel a queued or scheduled message before
50
- * it dispatches. Once `status: sent` the cancel is a 409.
57
+ * `DELETE /v1/messages/{id}`: cancel a message whose `status` is `queued` or
58
+ * `scheduled` and that the line's device has not taken. Resolves with the
59
+ * message, `status: cancelled`. Any other message is a `ConflictError` (409
60
+ * `too_late_to_cancel`).
51
61
  */
52
62
  cancel(id: string, opts?: RequestOptions): Promise<Message>;
53
63
  }
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/resources/messages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAGhE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAExC,qFAAqF;AACrF,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,CAAA;AACxD,MAAM,MAAM,eAAe,GAAG,WAAW,CACvC,KAAK,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAC7C,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAA;AAChC,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,CAAA;AAChG,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC,CAAA;AAC3E,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAAA;AACxD,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,iBAAiB,CAAC,CAAA;AACtE;;;;;;GAMG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,SAAS,CAAC,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C,eAAe,CAAC;IASlF;;;;;OAKG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;CAQ5D"}
@@ -1,20 +1,29 @@
1
1
  import { paginate } from '../pagination.js';
2
2
  import { BaseResource } from './base.js';
3
3
  export class MessagesResource extends BaseResource {
4
- /** `POST /v1/messages` — send a new outbound message (queued, returns `MessageV1`). */
4
+ /**
5
+ * `POST /v1/messages`: send a message. Resolves with the message, whose
6
+ * `status` is `queued` when it leaves now and `scheduled` when iSnap holds
7
+ * it.
8
+ *
9
+ * The API honors the idempotency key on this operation: a repeat with the
10
+ * same key and body resolves with the message first sent, in its current
11
+ * `status`. The key belongs to the line, and the API remembers it for as
12
+ * long as it keeps the message, at least 72 hours.
13
+ */
5
14
  send(body, opts) {
6
15
  return this.client.request('POST', '/v1/messages', body, opts);
7
16
  }
8
- /** `GET /v1/messages/{id}` — fetch the full fat-shape message by ID. */
17
+ /** `GET /v1/messages/{id}`: one message. */
9
18
  get(id, opts) {
10
19
  return this.client.request('GET', `/v1/messages/${encodeURIComponent(id)}`, undefined, opts);
11
20
  }
12
21
  /**
13
- * `GET /v1/messages` — cursor-paginated list as an AsyncIterable. The
14
- * iterator threads the next_cursor across pages so the consumer can
15
- * `for await (const m of client.messages.list({...}))` and get every
16
- * matching message. Items use the fat `Message` shape — same fields as
17
- * `send()` / `get()` (contract §2.2).
22
+ * `GET /v1/messages`: your messages, as an `AsyncIterable`. A `for await`
23
+ * loop receives every matching message; the SDK fetches the next page when
24
+ * the current one is consumed. Messages come newest first unless `sort` or
25
+ * `order` says otherwise. Set the page size with `limit` (1 to 100, default
26
+ * 25).
18
27
  */
19
28
  list(filters = {}, opts) {
20
29
  return paginate((cursor) => this.client.request('GET', '/v1/messages', undefined, {
@@ -23,28 +32,30 @@ export class MessagesResource extends BaseResource {
23
32
  }), { signal: opts?.signal });
24
33
  }
25
34
  /**
26
- * `POST /v1/messages/{id}/reactions` — add an Apple-native tapback
27
- * (love / like / dislike / laugh / emphasize / question). Replace-on-add
28
- * semantics: posting a different `type` against the same parent updates
29
- * the existing reaction in place. Reactions require iMessage; SMS / RCS
30
- * parents are rejected with 422.
35
+ * `POST /v1/messages/{id}/reactions`: put the line's reaction (an iMessage
36
+ * tapback) on a message of the line, received or sent. `type` is `love`,
37
+ * `like`, `dislike`, `laugh`, `emphasize` or `question`. A line has at most
38
+ * one reaction per message: a call with another `type` replaces it. The
39
+ * message must be an iMessage message: an SMS or RCS message is an
40
+ * `UnprocessableEntityError` (422 `sms_reactions_not_supported`).
31
41
  */
32
42
  addReaction(messageId, body, opts) {
33
43
  return this.client.request('POST', `/v1/messages/${encodeURIComponent(messageId)}/reactions`, body, opts);
34
44
  }
35
45
  /**
36
- * `DELETE /v1/messages/{id}/reactions` — remove the active tapback on a
37
- * message. Idempotent: returns 200 with `removed: false` when there
38
- * was nothing to remove (no 404), so partners can fire-and-forget. The
39
- * response carries the `type` that was removed when applicable — handy
40
- * for UI feedback ("removed your 'love'").
46
+ * `DELETE /v1/messages/{id}/reactions`: remove the line's reaction from a
47
+ * message. Resolves with `{ parent_message_id, removed, type }`. When there
48
+ * was no reaction to remove, `removed` is `false` and `type` is `null`: the
49
+ * call does not return `404`.
41
50
  */
42
51
  removeReaction(messageId, opts) {
43
52
  return this.client.request('DELETE', `/v1/messages/${encodeURIComponent(messageId)}/reactions`, undefined, opts);
44
53
  }
45
54
  /**
46
- * `DELETE /v1/messages/{id}` — cancel a queued or scheduled message before
47
- * it dispatches. Once `status: sent` the cancel is a 409.
55
+ * `DELETE /v1/messages/{id}`: cancel a message whose `status` is `queued` or
56
+ * `scheduled` and that the line's device has not taken. Resolves with the
57
+ * message, `status: cancelled`. Any other message is a `ConflictError` (409
58
+ * `too_late_to_cancel`).
48
59
  */
49
60
  cancel(id, opts) {
50
61
  return this.client.request('DELETE', `/v1/messages/${encodeURIComponent(id)}`, undefined, opts);
@@ -1 +1 @@
1
-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