@linqapp/sdk 0.32.1 → 0.33.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 (203) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +82 -112
  3. package/client.d.mts +42 -6
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +42 -6
  6. package/client.d.ts.map +1 -1
  7. package/client.js +39 -3
  8. package/client.js.map +1 -1
  9. package/client.mjs +39 -3
  10. package/client.mjs.map +1 -1
  11. package/core/error.d.mts +13 -0
  12. package/core/error.d.mts.map +1 -1
  13. package/core/error.d.ts +13 -0
  14. package/core/error.d.ts.map +1 -1
  15. package/core/error.js +5 -1
  16. package/core/error.js.map +1 -1
  17. package/core/error.mjs +5 -1
  18. package/core/error.mjs.map +1 -1
  19. package/package.json +1 -1
  20. package/resources/available-number.d.mts +13 -1
  21. package/resources/available-number.d.mts.map +1 -1
  22. package/resources/available-number.d.ts +13 -1
  23. package/resources/available-number.d.ts.map +1 -1
  24. package/resources/available-number.js +2 -1
  25. package/resources/available-number.js.map +1 -1
  26. package/resources/available-number.mjs +2 -1
  27. package/resources/available-number.mjs.map +1 -1
  28. package/resources/chats/chats.d.mts +175 -70
  29. package/resources/chats/chats.d.mts.map +1 -1
  30. package/resources/chats/chats.d.ts +175 -70
  31. package/resources/chats/chats.d.ts.map +1 -1
  32. package/resources/chats/chats.js +65 -61
  33. package/resources/chats/chats.js.map +1 -1
  34. package/resources/chats/chats.mjs +65 -61
  35. package/resources/chats/chats.mjs.map +1 -1
  36. package/resources/chats/index.d.mts +3 -2
  37. package/resources/chats/index.d.mts.map +1 -1
  38. package/resources/chats/index.d.ts +3 -2
  39. package/resources/chats/index.d.ts.map +1 -1
  40. package/resources/chats/index.js +3 -1
  41. package/resources/chats/index.js.map +1 -1
  42. package/resources/chats/index.mjs +1 -0
  43. package/resources/chats/index.mjs.map +1 -1
  44. package/resources/chats/location.d.mts +25 -25
  45. package/resources/chats/location.d.mts.map +1 -1
  46. package/resources/chats/location.d.ts +25 -25
  47. package/resources/chats/location.d.ts.map +1 -1
  48. package/resources/chats/location.js +27 -27
  49. package/resources/chats/location.js.map +1 -1
  50. package/resources/chats/location.mjs +27 -27
  51. package/resources/chats/location.mjs.map +1 -1
  52. package/resources/chats/messages.d.mts +28 -21
  53. package/resources/chats/messages.d.mts.map +1 -1
  54. package/resources/chats/messages.d.ts +28 -21
  55. package/resources/chats/messages.d.ts.map +1 -1
  56. package/resources/chats/messages.js +16 -16
  57. package/resources/chats/messages.js.map +1 -1
  58. package/resources/chats/messages.mjs +16 -16
  59. package/resources/chats/messages.mjs.map +1 -1
  60. package/resources/chats/polls.d.mts +171 -0
  61. package/resources/chats/polls.d.mts.map +1 -0
  62. package/resources/chats/polls.d.ts +171 -0
  63. package/resources/chats/polls.d.ts.map +1 -0
  64. package/resources/chats/polls.js +95 -0
  65. package/resources/chats/polls.js.map +1 -0
  66. package/resources/chats/polls.mjs +91 -0
  67. package/resources/chats/polls.mjs.map +1 -0
  68. package/resources/contact-card.d.mts +29 -28
  69. package/resources/contact-card.d.mts.map +1 -1
  70. package/resources/contact-card.d.ts +29 -28
  71. package/resources/contact-card.d.ts.map +1 -1
  72. package/resources/contact-card.js +23 -22
  73. package/resources/contact-card.js.map +1 -1
  74. package/resources/contact-card.mjs +23 -22
  75. package/resources/contact-card.mjs.map +1 -1
  76. package/resources/experiences.d.mts +91 -0
  77. package/resources/experiences.d.mts.map +1 -0
  78. package/resources/experiences.d.ts +91 -0
  79. package/resources/experiences.d.ts.map +1 -0
  80. package/resources/experiences.js +29 -0
  81. package/resources/experiences.js.map +1 -0
  82. package/resources/experiences.mjs +25 -0
  83. package/resources/experiences.mjs.map +1 -0
  84. package/resources/index.d.mts +7 -3
  85. package/resources/index.d.mts.map +1 -1
  86. package/resources/index.d.ts +7 -3
  87. package/resources/index.d.ts.map +1 -1
  88. package/resources/index.js +10 -2
  89. package/resources/index.js.map +1 -1
  90. package/resources/index.mjs +5 -1
  91. package/resources/index.mjs.map +1 -1
  92. package/resources/messages/index.d.mts +3 -0
  93. package/resources/messages/index.d.mts.map +1 -0
  94. package/resources/messages/index.d.ts +3 -0
  95. package/resources/messages/index.d.ts.map +1 -0
  96. package/resources/messages/index.js +9 -0
  97. package/resources/messages/index.js.map +1 -0
  98. package/resources/messages/index.mjs +4 -0
  99. package/resources/messages/index.mjs.map +1 -0
  100. package/resources/messages/messages.d.mts +795 -0
  101. package/resources/messages/messages.d.mts.map +1 -0
  102. package/resources/messages/messages.d.ts +795 -0
  103. package/resources/messages/messages.d.ts.map +1 -0
  104. package/resources/messages/messages.js +298 -0
  105. package/resources/messages/messages.js.map +1 -0
  106. package/resources/messages/messages.mjs +293 -0
  107. package/resources/messages/messages.mjs.map +1 -0
  108. package/resources/messages/poll.d.mts +131 -0
  109. package/resources/messages/poll.d.mts.map +1 -0
  110. package/resources/messages/poll.d.ts +131 -0
  111. package/resources/messages/poll.d.ts.map +1 -0
  112. package/resources/messages/poll.js +119 -0
  113. package/resources/messages/poll.js.map +1 -0
  114. package/resources/messages/poll.mjs +115 -0
  115. package/resources/messages/poll.mjs.map +1 -0
  116. package/resources/messages.d.mts +1 -747
  117. package/resources/messages.d.mts.map +1 -1
  118. package/resources/messages.d.ts +1 -747
  119. package/resources/messages.d.ts.map +1 -1
  120. package/resources/messages.js +2 -275
  121. package/resources/messages.js.map +1 -1
  122. package/resources/messages.mjs +1 -273
  123. package/resources/messages.mjs.map +1 -1
  124. package/resources/payment-handles.d.mts +87 -0
  125. package/resources/payment-handles.d.mts.map +1 -0
  126. package/resources/payment-handles.d.ts +87 -0
  127. package/resources/payment-handles.d.ts.map +1 -0
  128. package/resources/payment-handles.js +76 -0
  129. package/resources/payment-handles.js.map +1 -0
  130. package/resources/payment-handles.mjs +72 -0
  131. package/resources/payment-handles.mjs.map +1 -0
  132. package/resources/payment-providers.d.mts +58 -0
  133. package/resources/payment-providers.d.mts.map +1 -0
  134. package/resources/payment-providers.d.ts +58 -0
  135. package/resources/payment-providers.d.ts.map +1 -0
  136. package/resources/payment-providers.js +45 -0
  137. package/resources/payment-providers.js.map +1 -0
  138. package/resources/payment-providers.mjs +41 -0
  139. package/resources/payment-providers.mjs.map +1 -0
  140. package/resources/payment-requests.d.mts +2 -2
  141. package/resources/payment-requests.d.ts +2 -2
  142. package/resources/payment-requests.js +2 -2
  143. package/resources/payment-requests.mjs +2 -2
  144. package/resources/payments.d.mts +116 -0
  145. package/resources/payments.d.mts.map +1 -0
  146. package/resources/payments.d.ts +116 -0
  147. package/resources/payments.d.ts.map +1 -0
  148. package/resources/payments.js +70 -0
  149. package/resources/payments.js.map +1 -0
  150. package/resources/payments.mjs +66 -0
  151. package/resources/payments.mjs.map +1 -0
  152. package/resources/phone-numbers.d.mts +11 -11
  153. package/resources/phone-numbers.d.mts.map +1 -1
  154. package/resources/phone-numbers.d.ts +11 -11
  155. package/resources/phone-numbers.d.ts.map +1 -1
  156. package/resources/phone-numbers.js +13 -13
  157. package/resources/phone-numbers.js.map +1 -1
  158. package/resources/phone-numbers.mjs +13 -13
  159. package/resources/phone-numbers.mjs.map +1 -1
  160. package/resources/webhook-events.d.mts +1 -1
  161. package/resources/webhook-events.d.mts.map +1 -1
  162. package/resources/webhook-events.d.ts +1 -1
  163. package/resources/webhook-events.d.ts.map +1 -1
  164. package/resources/webhook-subscriptions.d.mts +11 -11
  165. package/resources/webhook-subscriptions.d.mts.map +1 -1
  166. package/resources/webhook-subscriptions.d.ts +11 -11
  167. package/resources/webhook-subscriptions.d.ts.map +1 -1
  168. package/resources/webhook-subscriptions.js +13 -13
  169. package/resources/webhook-subscriptions.js.map +1 -1
  170. package/resources/webhook-subscriptions.mjs +13 -13
  171. package/resources/webhook-subscriptions.mjs.map +1 -1
  172. package/resources/webhooks.d.mts +72 -1
  173. package/resources/webhooks.d.mts.map +1 -1
  174. package/resources/webhooks.d.ts +72 -1
  175. package/resources/webhooks.d.ts.map +1 -1
  176. package/src/client.ts +91 -20
  177. package/src/core/error.ts +20 -1
  178. package/src/resources/available-number.ts +14 -1
  179. package/src/resources/chats/chats.ts +203 -85
  180. package/src/resources/chats/index.ts +3 -2
  181. package/src/resources/chats/location.ts +28 -28
  182. package/src/resources/chats/messages.ts +40 -32
  183. package/src/resources/chats/polls.ts +196 -0
  184. package/src/resources/contact-card.ts +36 -35
  185. package/src/resources/experiences.ts +118 -0
  186. package/src/resources/index.ts +23 -5
  187. package/src/resources/messages/index.ts +18 -0
  188. package/src/resources/messages/messages.ts +958 -0
  189. package/src/resources/messages/poll.ts +151 -0
  190. package/src/resources/messages.ts +1 -894
  191. package/src/resources/payment-handles.ts +114 -0
  192. package/src/resources/payment-providers.ts +81 -0
  193. package/src/resources/payment-requests.ts +2 -2
  194. package/src/resources/payments.ts +163 -0
  195. package/src/resources/phone-numbers.ts +14 -14
  196. package/src/resources/webhook-events.ts +9 -0
  197. package/src/resources/webhook-subscriptions.ts +14 -14
  198. package/src/resources/webhooks.ts +82 -0
  199. package/src/version.ts +1 -1
  200. package/version.d.mts +1 -1
  201. package/version.d.ts +1 -1
  202. package/version.js +1 -1
  203. package/version.mjs +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.33.1](https://github.com/linq-team/linq-node/compare/v0.33.0...v0.33.1) (2026-08-04)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * flatten poll subresources to avoid go compile errors ([bbc72a4](https://github.com/linq-team/linq-node/commit/bbc72a41cc22a04ce5af33c9378c03394a547382))
9
+
10
+ ## [0.33.0](https://github.com/linq-team/linq-node/compare/v0.32.1...v0.33.0) (2026-08-04)
11
+
12
+
13
+ ### Features
14
+
15
+ * add action field to message content for in-app experiences ([3d72197](https://github.com/linq-team/linq-node/commit/3d72197fd2e95680341decbba72a40ecd17daa5c))
16
+ * add agentcard payment provider api ([3d72197](https://github.com/linq-team/linq-node/commit/3d72197fd2e95680341decbba72a40ecd17daa5c))
17
+ * add exclude_from parameter to control line selection ([3d72197](https://github.com/linq-team/linq-node/commit/3d72197fd2e95680341decbba72a40ecd17daa5c))
18
+ * add reconciled_at field to message objects ([3d72197](https://github.com/linq-team/linq-node/commit/3d72197fd2e95680341decbba72a40ecd17daa5c))
19
+ * support url-type fields in message action parameters ([3d72197](https://github.com/linq-team/linq-node/commit/3d72197fd2e95680341decbba72a40ecd17daa5c))
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * clarify contact card creation and update behavior ([3d72197](https://github.com/linq-team/linq-node/commit/3d72197fd2e95680341decbba72a40ecd17daa5c))
25
+ * clarify idempotency key behavior with deleted messages ([3d72197](https://github.com/linq-team/linq-node/commit/3d72197fd2e95680341decbba72a40ecd17daa5c))
26
+ * clarify message.failed webhook delivery behavior ([3d72197](https://github.com/linq-team/linq-node/commit/3d72197fd2e95680341decbba72a40ecd17daa5c))
27
+ * clarify opt-out keyword matching requirements for chat health ([3d72197](https://github.com/linq-team/linq-node/commit/3d72197fd2e95680341decbba72a40ecd17daa5c))
28
+
3
29
  ## [0.32.1](https://github.com/linq-team/linq-node/compare/v0.32.0...v0.32.1) (2026-07-27)
4
30
 
5
31
 
package/README.md CHANGED
@@ -1,92 +1,50 @@
1
- <div align="center">
2
- <h1>Linq</h1>
3
- <p><strong>iMessage, RCS, and SMS from your backend.</strong></p>
1
+ # Linq API V3 TypeScript API Library
4
2
 
5
- The official TypeScript SDK for the Linq Partner API — typed access to chats, messages, attachments, phone numbers, payment requests, and webhooks.
3
+ [![NPM version](<https://img.shields.io/npm/v/@linqapp/sdk.svg?label=npm%20(stable)>)](https://npmjs.org/package/@linqapp/sdk) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/@linqapp/sdk)
6
4
 
7
- <p>
8
- <a href="https://www.npmjs.com/package/@linqapp/sdk"><img src="https://img.shields.io/npm/v/@linqapp/sdk.svg?style=flat&colorA=1a1a1a&colorB=3178c6" alt="npm version" /></a>
9
- <a href="https://www.npmjs.com/package/@linqapp/sdk"><img src="https://img.shields.io/npm/dm/@linqapp/sdk.svg?style=flat&colorA=1a1a1a&colorB=3178c6" alt="npm downloads" /></a>
10
- <a href="https://github.com/linq-team/linq-node/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/@linqapp/sdk.svg?style=flat&colorA=1a1a1a&colorB=3178c6" alt="license" /></a>
11
- <a href="https://www.typescriptlang.org/"><img src="https://img.shields.io/badge/TypeScript-4.9+-3178c6?style=flat&colorA=1a1a1a&colorB=3178c6" alt="TypeScript" /></a>
12
- </p>
13
- </div>
5
+ This library provides convenient access to the Linq API V3 REST API from server-side TypeScript or JavaScript.
14
6
 
15
- ## About Linq
7
+ The REST API documentation can be found on [docs.linqapp.com](https://docs.linqapp.com). The full API of this library can be found in [api.md](api.md).
16
8
 
17
- **[Linq](https://linqapp.com)** is messaging infrastructure for businesses that want to talk to customers on the channels they already use. You get real phone numbers that send and receive native **iMessage** — with typing indicators, reactions, effects, and read receipts — and fall back to **RCS** and **SMS** when iMessage isn't available.
9
+ It is generated with [Stainless](https://www.stainless.com/).
18
10
 
19
- Learn more at **https://linqapp.com**.
20
-
21
- ## Getting Started
22
-
23
- 1. Generate an API token at **[dashboard.linqapp.com/api-tooling](https://dashboard.linqapp.com/api-tooling)** (API → Overview → Generate new token).
24
-
25
- 2. Install the SDK:
26
-
27
- ```sh
28
- npm install @linqapp/sdk
29
- ```
30
-
31
- 3. Send your first message:
32
-
33
- ```ts
34
- import LinqAPIV3 from '@linqapp/sdk';
35
-
36
- const client = new LinqAPIV3({
37
- apiKey: process.env['LINQ_API_V3_API_KEY'], // This is the default and can be omitted
38
- });
39
-
40
- const { message } = await client.messages.create({
41
- to: ['+14155559876'],
42
- message: {
43
- parts: [{ type: 'text', value: 'Hi! Thanks for reaching out — how can we help?' }],
44
- },
45
- });
11
+ ## MCP Server
46
12
 
47
- console.log(message);
48
- ```
13
+ Use the Linq API V3 MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
49
14
 
50
- Sending to a handle you haven't messaged before creates the chat for you; `client.chats.create` gives you explicit control over group chats and the sending number.
15
+ [![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=%40linqapp%2Fsdk-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBsaW5xYXBwL3Nkay1tY3AiXSwiZW52Ijp7IkxJTlFfQVBJX1YzX0FQSV9LRVkiOiJNeSBBUEkgS2V5IiwiTElOUV9XRUJIT09LX1NFQ1JFVCI6Ik15IFdlYmhvb2sgU2VjcmV0In19)
16
+ [![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22%40linqapp%2Fsdk-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40linqapp%2Fsdk-mcp%22%5D%2C%22env%22%3A%7B%22LINQ_API_V3_API_KEY%22%3A%22My%20API%20Key%22%2C%22LINQ_WEBHOOK_SECRET%22%3A%22My%20Webhook%20Secret%22%7D%7D)
51
17
 
52
- ## Documentation
18
+ > Note: You may need to set environment variables in your MCP client.
53
19
 
54
- Visit **[docs.linqapp.com](https://docs.linqapp.com)** for guides and the REST API reference. Every method, request param, and response field in this library is listed in **[api.md](api.md)** and documented in docstrings that appear on hover in most editors.
20
+ ## Installation
55
21
 
56
- ## Resources
22
+ ```sh
23
+ npm install @linqapp/sdk
24
+ ```
57
25
 
58
- | Resource | What it does |
59
- | ----------------------------- | --------------------------------------------------------------- |
60
- | `client.messages` | Send, edit, retrieve, delete messages; add reactions |
61
- | `client.chats` | Create and update chats, participants, typing indicators, reads |
62
- | `client.attachments` | Upload media to send as message parts |
63
- | `client.phoneNumbers` | List and configure your sending numbers |
64
- | `client.availableNumber` | Search numbers available to provision |
65
- | `client.capability` | Check whether a handle can receive iMessage or RCS |
66
- | `client.contactCard` | Read the contact card recipients see |
67
- | `client.paymentRequests` | Request and collect payments in a chat |
68
- | `client.webhookSubscriptions` | Manage webhook endpoints and subscribed events |
69
- | `client.webhooks` | Verify and parse incoming webhook payloads |
26
+ ## Usage
70
27
 
71
- ## Webhooks
28
+ The full API of this library can be found in [api.md](api.md).
72
29
 
73
- Inbound messages, reactions, and delivery updates arrive as webhooks. `client.webhooks.unwrap` verifies the signature and returns a typed, discriminated event:
30
+ <!-- prettier-ignore -->
31
+ ```js
32
+ import LinqAPIV3 from '@linqapp/sdk';
74
33
 
75
- ```ts
76
34
  const client = new LinqAPIV3({
77
- webhookSecret: process.env['LINQ_WEBHOOK_SECRET'], // This is the default and can be omitted
35
+ apiKey: process.env['LINQ_API_V3_API_KEY'], // This is the default and can be omitted
78
36
  });
79
37
 
80
- const event = client.webhooks.unwrap(rawRequestBody, { headers: requestHeaders });
38
+ const chat = await client.chats.create({
39
+ from: '+12052535597',
40
+ message: {},
41
+ to: ['+12052532136'],
42
+ });
81
43
 
82
- if (event.event_type === 'message.received') {
83
- console.log(event.data);
84
- }
44
+ console.log(chat.chat);
85
45
  ```
86
46
 
87
- Pass the **raw** request body — parsing it first breaks signature verification.
88
-
89
- ## Request & Response types
47
+ ### Request & Response types
90
48
 
91
49
  This library includes TypeScript definitions for all request params and response fields. You may import and use them like so:
92
50
 
@@ -94,15 +52,20 @@ This library includes TypeScript definitions for all request params and response
94
52
  ```ts
95
53
  import LinqAPIV3 from '@linqapp/sdk';
96
54
 
97
- const client = new LinqAPIV3();
55
+ const client = new LinqAPIV3({
56
+ apiKey: process.env['LINQ_API_V3_API_KEY'], // This is the default and can be omitted
57
+ });
98
58
 
99
- const params: LinqAPIV3.MessageCreateParams = {
100
- to: ['+14155559876'],
101
- message: { parts: [{ type: 'text', value: 'Hello!' }] },
59
+ const params: LinqAPIV3.ChatCreateParams = {
60
+ from: '+12052535597',
61
+ message: {},
62
+ to: ['+12052532136'],
102
63
  };
103
- const response: LinqAPIV3.MessageCreateResponse = await client.messages.create(params);
64
+ const chat: LinqAPIV3.ChatCreateResponse = await client.chats.create(params);
104
65
  ```
105
66
 
67
+ Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.
68
+
106
69
  ## Handling errors
107
70
 
108
71
  When the library is unable to connect to the API,
@@ -111,8 +74,12 @@ a subclass of `APIError` will be thrown:
111
74
 
112
75
  <!-- prettier-ignore -->
113
76
  ```ts
114
- const message = await client.messages
115
- .create({ to: ['+14155559876'], message: {} })
77
+ const chat = await client.chats
78
+ .create({
79
+ from: '+12052535597',
80
+ message: {},
81
+ to: ['+12052532136'],
82
+ })
116
83
  .catch(async (err) => {
117
84
  if (err instanceof LinqAPIV3.APIError) {
118
85
  console.log(err.status); // 400
@@ -153,7 +120,11 @@ const client = new LinqAPIV3({
153
120
  });
154
121
 
155
122
  // Or, configure per-request:
156
- await client.messages.create({ to: ['+14155559876'], message: {} }, {
123
+ await client.chats.create({
124
+ from: '+12052535597',
125
+ message: {},
126
+ to: ['+12052532136'],
127
+ }, {
157
128
  maxRetries: 5,
158
129
  });
159
130
  ```
@@ -170,7 +141,11 @@ const client = new LinqAPIV3({
170
141
  });
171
142
 
172
143
  // Override per-request:
173
- await client.messages.create({ to: ['+14155559876'], message: {} }, {
144
+ await client.chats.create({
145
+ from: '+12052535597',
146
+ message: {},
147
+ to: ['+12052532136'],
148
+ }, {
174
149
  timeout: 5 * 1000,
175
150
  });
176
151
  ```
@@ -210,15 +185,6 @@ while (page.hasNextPage()) {
210
185
  }
211
186
  ```
212
187
 
213
- ## MCP Server
214
-
215
- Use the Linq MCP Server to let AI assistants explore endpoints, make test requests, and use the documentation while integrating this SDK.
216
-
217
- [![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=%40linqapp%2Fsdk-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBsaW5xYXBwL3Nkay1tY3AiXSwiZW52Ijp7IkxJTlFfQVBJX1YzX0FQSV9LRVkiOiJNeSBBUEkgS2V5IiwiTElOUV9XRUJIT09LX1NFQ1JFVCI6Ik15IFdlYmhvb2sgU2VjcmV0In19)
218
- [![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL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Secret%22%7D%7D)
219
-
220
- > Note: You may need to set environment variables in your MCP client.
221
-
222
188
  ## Advanced Usage
223
189
 
224
190
  ### Accessing raw Response data (e.g., headers)
@@ -233,17 +199,25 @@ Unlike `.asResponse()` this method consumes the body, returning once it is parse
233
199
  ```ts
234
200
  const client = new LinqAPIV3();
235
201
 
236
- const response = await client.messages
237
- .create({ to: ['+14155559876'], message: {} })
202
+ const response = await client.chats
203
+ .create({
204
+ from: '+12052535597',
205
+ message: {},
206
+ to: ['+12052532136'],
207
+ })
238
208
  .asResponse();
239
209
  console.log(response.headers.get('X-My-Header'));
240
210
  console.log(response.statusText); // access the underlying Response object
241
211
 
242
- const { data: message, response: raw } = await client.messages
243
- .create({ to: ['+14155559876'], message: {} })
212
+ const { data: chat, response: raw } = await client.chats
213
+ .create({
214
+ from: '+12052535597',
215
+ message: {},
216
+ to: ['+12052532136'],
217
+ })
244
218
  .withResponse();
245
219
  console.log(raw.headers.get('X-My-Header'));
246
- console.log(message);
220
+ console.log(chat.chat);
247
221
  ```
248
222
 
249
223
  ### Logging
@@ -323,7 +297,7 @@ parameter. This library doesn't validate at runtime that the request matches the
323
297
  send will be sent as-is.
324
298
 
325
299
  ```ts
326
- client.messages.create({
300
+ client.chats.create({
327
301
  // ...
328
302
  // @ts-expect-error baz is not yet public
329
303
  baz: 'undocumented option',
@@ -421,6 +395,20 @@ const client = new LinqAPIV3({
421
395
  });
422
396
  ```
423
397
 
398
+ ## Frequently Asked Questions
399
+
400
+ ## Semantic versioning
401
+
402
+ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
403
+
404
+ 1. Changes that only affect static types, without breaking runtime behavior.
405
+ 2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals.)_
406
+ 3. Changes that we do not expect to impact the vast majority of users in practice.
407
+
408
+ We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
409
+
410
+ We are keen for your feedback; please open an [issue](https://www.github.com/linq-team/linq-node/issues) with questions, bugs, or suggestions.
411
+
424
412
  ## Requirements
425
413
 
426
414
  TypeScript >= 4.9 is supported.
@@ -440,24 +428,6 @@ Note that React Native is not supported at this time.
440
428
 
441
429
  If you are interested in other runtime environments, please open or upvote an issue on GitHub.
442
430
 
443
- ## Semantic versioning
444
-
445
- This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
446
-
447
- 1. Changes that only affect static types, without breaking runtime behavior.
448
- 2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals.)_
449
- 3. Changes that we do not expect to impact the vast majority of users in practice.
450
-
451
- We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
452
-
453
- ## Issues
454
-
455
- Found a bug or have a feature request? Please [open an issue](https://github.com/linq-team/linq-node/issues) on GitHub. Searching existing issues first helps avoid duplicates.
456
-
457
431
  ## Contributing
458
432
 
459
- This library is generated with [Stainless](https://www.stainless.com/) from Linq's OpenAPI spec. See [the contributing documentation](./CONTRIBUTING.md) before opening a pull request.
460
-
461
- ## License
462
-
463
- [Apache-2.0](./LICENSE) © [Linq](https://linqapp.com)
433
+ See [the contributing documentation](./CONTRIBUTING.md).
package/client.d.mts CHANGED
@@ -12,14 +12,18 @@ import { AttachmentCreateParams, AttachmentCreateResponse, AttachmentRetrieveRes
12
12
  import { AvailableNumber, AvailableNumberRetrieveParams, AvailableNumberRetrieveResponse } from "./resources/available-number.mjs";
13
13
  import { Capability, CapabilityCheckIMessageParams, CapabilityCheckRCSParams, HandleCheck, HandleCheckResponse } from "./resources/capability.mjs";
14
14
  import { ContactCard, ContactCardCreateParams, ContactCardRetrieveParams, ContactCardRetrieveResponse, ContactCardUpdateParams, SetContactCard } from "./resources/contact-card.mjs";
15
- import { Message, MessageAddReactionParams, MessageAddReactionResponse, MessageCreateParams, MessageCreateResponse, MessageEffect, MessageListMessagesThreadParams, MessageUpdateAppCardParams, MessageUpdateAppCardResponse, MessageUpdateParams, Messages, MessagesListMessagesPagination, ReplyTo } from "./resources/messages.mjs";
15
+ import { ExperienceListResponse, ExperienceRetrieveResponse, Experiences } from "./resources/experiences.mjs";
16
+ import { PaymentHandleConnection, PaymentHandleVerifyParams, PaymentHandles } from "./resources/payment-handles.mjs";
17
+ import { PaymentProvider, PaymentProviderConnectParams, PaymentProviderConnectResponse, PaymentProviders } from "./resources/payment-providers.mjs";
16
18
  import { PaymentRequest, PaymentRequestCreateParams, PaymentRequestListParams, PaymentRequestListResponse, PaymentRequests } from "./resources/payment-requests.mjs";
19
+ import { Payment, PaymentCreateParams, PaymentCredentialsResponse, Payments } from "./resources/payments.mjs";
17
20
  import { PhoneNumberListResponse, PhoneNumberUpdateParams, PhoneNumberUpdateResponse, PhoneNumbers } from "./resources/phone-numbers.mjs";
18
21
  import { PhonenumberListResponse, Phonenumbers } from "./resources/phonenumbers.mjs";
19
22
  import { WebhookEventListResponse, WebhookEventType, WebhookEvents } from "./resources/webhook-events.mjs";
20
23
  import { WebhookSubscription, WebhookSubscriptionCreateParams, WebhookSubscriptionCreateResponse, WebhookSubscriptionListResponse, WebhookSubscriptionUpdateParams, WebhookSubscriptions } from "./resources/webhook-subscriptions.mjs";
21
24
  import { ChatCreatedWebhookEvent, ChatGroupIconUpdateFailedWebhookEvent, ChatGroupIconUpdatedWebhookEvent, ChatGroupNameUpdateFailedWebhookEvent, ChatGroupNameUpdatedWebhookEvent, ChatTypingIndicatorStartedWebhookEvent, ChatTypingIndicatorStoppedWebhookEvent, MessageDeliveredWebhookEvent, MessageEditedWebhookEvent, MessageEventV2, MessageFailedWebhookEvent, MessagePayload, MessageReadWebhookEvent, MessageReceivedWebhookEvent, MessageSentWebhookEvent, ParticipantAddedWebhookEvent, ParticipantRemovedWebhookEvent, PhoneNumberStatusUpdatedWebhookEvent, ReactionAddedWebhookEvent, ReactionEventBase, ReactionRemovedWebhookEvent, SchemasMediaPartResponse, SchemasMessageEffect, SchemasTextPartResponse, UnwrapWebhookEvent, Webhooks } from "./resources/webhooks.mjs";
22
25
  import { Chat, ChatCreateParams, ChatCreateResponse, ChatLeaveChatResponse, ChatListChatsParams, ChatSendVoicememoParams, ChatSendVoicememoResponse, ChatUpdateParams, ChatUpdateResponse, Chats, ChatsListChatsPagination, LinkPart, MediaPart, MessageContent, TextPart } from "./resources/chats/chats.mjs";
26
+ import { Message, MessageAddReactionParams, MessageAddReactionResponse, MessageCreateParams, MessageCreateResponse, MessageEffect, MessageListMessagesThreadParams, MessageUpdateAppCardParams, MessageUpdateAppCardResponse, MessageUpdateParams, Messages, MessagesListMessagesPagination, ReplyTo } from "./resources/messages/messages.mjs";
23
27
  import { type Fetch } from "./internal/builtin-types.mjs";
24
28
  import { HeadersLike, NullableHeaders } from "./internal/headers.mjs";
25
29
  import { FinalRequestOptions, RequestOptions } from "./internal/request-options.mjs";
@@ -495,7 +499,7 @@ export declare class LinqAPIV3 {
495
499
  *
496
500
  * ## Connected accounts (Stripe Standard, direct charges)
497
501
  *
498
- * Agent Pay runs on **Stripe Connect Standard accounts** using **direct
502
+ * Payments run on **Stripe Connect Standard accounts** using **direct
499
503
  * charges**: the charge is created on *your* connected account and **you are
500
504
  * the merchant of record**. That means the money, the payout schedule, the
501
505
  * customer relationship, and the compliance surface are all yours — Linq
@@ -578,7 +582,7 @@ export declare class LinqAPIV3 {
578
582
  * no-install checkout sheet. Everywhere else (Android, desktop, iPhones
579
583
  * without the App Clip yet) the same URL opens the web checkout, so the link
580
584
  * always works. The App Clip experience for your payment links is registered
581
- * automatically by Linq and refreshed whenever you update your Agent Pay
585
+ * automatically by Linq and refreshed whenever you update your payments
582
586
  * branding; a newly registered experience can take up to ~24 hours to
583
587
  * activate on Apple's side, during which links open the web checkout.
584
588
  *
@@ -591,6 +595,34 @@ export declare class LinqAPIV3 {
591
595
  *
592
596
  */
593
597
  paymentRequests: API.PaymentRequests;
598
+ /**
599
+ * Let an agent pay on a customer's behalf with a single-use virtual card.
600
+ * Connect a customer once, then create a payment — a virtual card is minted
601
+ * scoped to that purchase and the card details are handed back for checkout.
602
+ *
603
+ */
604
+ paymentProviders: API.PaymentProviders;
605
+ /**
606
+ * Let an agent pay on a customer's behalf with a single-use virtual card.
607
+ * Connect a customer once, then create a payment — a virtual card is minted
608
+ * scoped to that purchase and the card details are handed back for checkout.
609
+ *
610
+ */
611
+ paymentHandles: API.PaymentHandles;
612
+ /**
613
+ * Let an agent pay on a customer's behalf with a single-use virtual card.
614
+ * Connect a customer once, then create a payment — a virtual card is minted
615
+ * scoped to that purchase and the card details are handed back for checkout.
616
+ *
617
+ */
618
+ payments: API.Payments;
619
+ /**
620
+ * Let an agent pay on a customer's behalf with a single-use virtual card.
621
+ * Connect a customer once, then create a payment — a virtual card is minted
622
+ * scoped to that purchase and the card details are handed back for checkout.
623
+ *
624
+ */
625
+ experiences: API.Experiences;
594
626
  /**
595
627
  * Webhook Subscriptions allow you to receive real-time notifications when events
596
628
  * occur on your account.
@@ -875,18 +907,22 @@ export declare namespace LinqAPIV3 {
875
907
  export { type ListChatsPaginationParams as ListChatsPaginationParams, type ListChatsPaginationResponse as ListChatsPaginationResponse, };
876
908
  export import ListMessagesPagination = Pagination.ListMessagesPagination;
877
909
  export { type ListMessagesPaginationParams as ListMessagesPaginationParams, type ListMessagesPaginationResponse as ListMessagesPaginationResponse, };
878
- export { Chats as Chats, type Chat as Chat, type LinkPart as LinkPart, type MediaPart as MediaPart, type MessageContent as MessageContent, type TextPart as TextPart, type ChatCreateResponse as ChatCreateResponse, type ChatUpdateResponse as ChatUpdateResponse, type ChatLeaveChatResponse as ChatLeaveChatResponse, type ChatSendVoicememoResponse as ChatSendVoicememoResponse, type ChatsListChatsPagination as ChatsListChatsPagination, type ChatCreateParams as ChatCreateParams, type ChatListChatsParams as ChatListChatsParams, type ChatUpdateParams as ChatUpdateParams, type ChatSendVoicememoParams as ChatSendVoicememoParams, };
879
- export { Messages as Messages, type Message as Message, type MessageEffect as MessageEffect, type ReplyTo as ReplyTo, type MessageCreateResponse as MessageCreateResponse, type MessageAddReactionResponse as MessageAddReactionResponse, type MessageUpdateAppCardResponse as MessageUpdateAppCardResponse, type MessagesListMessagesPagination as MessagesListMessagesPagination, type MessageCreateParams as MessageCreateParams, type MessageListMessagesThreadParams as MessageListMessagesThreadParams, type MessageAddReactionParams as MessageAddReactionParams, type MessageUpdateParams as MessageUpdateParams, type MessageUpdateAppCardParams as MessageUpdateAppCardParams, };
910
+ export { Chats as Chats, type Chat as Chat, type LinkPart as LinkPart, type MediaPart as MediaPart, type MessageContent as MessageContent, type TextPart as TextPart, type ChatCreateResponse as ChatCreateResponse, type ChatUpdateResponse as ChatUpdateResponse, type ChatLeaveChatResponse as ChatLeaveChatResponse, type ChatSendVoicememoResponse as ChatSendVoicememoResponse, type ChatsListChatsPagination as ChatsListChatsPagination, type ChatCreateParams as ChatCreateParams, type ChatUpdateParams as ChatUpdateParams, type ChatListChatsParams as ChatListChatsParams, type ChatSendVoicememoParams as ChatSendVoicememoParams, };
911
+ export { Messages as Messages, type Message as Message, type MessageEffect as MessageEffect, type ReplyTo as ReplyTo, type MessageCreateResponse as MessageCreateResponse, type MessageAddReactionResponse as MessageAddReactionResponse, type MessageUpdateAppCardResponse as MessageUpdateAppCardResponse, type MessagesListMessagesPagination as MessagesListMessagesPagination, type MessageCreateParams as MessageCreateParams, type MessageUpdateParams as MessageUpdateParams, type MessageAddReactionParams as MessageAddReactionParams, type MessageListMessagesThreadParams as MessageListMessagesThreadParams, type MessageUpdateAppCardParams as MessageUpdateAppCardParams, };
880
912
  export { Attachments as Attachments, type SupportedContentType as SupportedContentType, type AttachmentCreateResponse as AttachmentCreateResponse, type AttachmentRetrieveResponse as AttachmentRetrieveResponse, type AttachmentCreateParams as AttachmentCreateParams, };
881
913
  export { Phonenumbers as Phonenumbers, type PhonenumberListResponse as PhonenumberListResponse };
882
914
  export { PhoneNumbers as PhoneNumbers, type PhoneNumberUpdateResponse as PhoneNumberUpdateResponse, type PhoneNumberListResponse as PhoneNumberListResponse, type PhoneNumberUpdateParams as PhoneNumberUpdateParams, };
883
915
  export { AvailableNumber as AvailableNumber, type AvailableNumberRetrieveResponse as AvailableNumberRetrieveResponse, type AvailableNumberRetrieveParams as AvailableNumberRetrieveParams, };
884
916
  export { PaymentRequests as PaymentRequests, type PaymentRequest as PaymentRequest, type PaymentRequestListResponse as PaymentRequestListResponse, type PaymentRequestCreateParams as PaymentRequestCreateParams, type PaymentRequestListParams as PaymentRequestListParams, };
917
+ export { PaymentProviders as PaymentProviders, type PaymentProvider as PaymentProvider, type PaymentProviderConnectResponse as PaymentProviderConnectResponse, type PaymentProviderConnectParams as PaymentProviderConnectParams, };
918
+ export { PaymentHandles as PaymentHandles, type PaymentHandleConnection as PaymentHandleConnection, type PaymentHandleVerifyParams as PaymentHandleVerifyParams, };
919
+ export { Payments as Payments, type Payment as Payment, type PaymentCredentialsResponse as PaymentCredentialsResponse, type PaymentCreateParams as PaymentCreateParams, };
920
+ export { Experiences as Experiences, type ExperienceRetrieveResponse as ExperienceRetrieveResponse, type ExperienceListResponse as ExperienceListResponse, };
885
921
  export { WebhookEvents as WebhookEvents, type WebhookEventType as WebhookEventType, type WebhookEventListResponse as WebhookEventListResponse, };
886
922
  export { WebhookSubscriptions as WebhookSubscriptions, type WebhookSubscription as WebhookSubscription, type WebhookSubscriptionCreateResponse as WebhookSubscriptionCreateResponse, type WebhookSubscriptionListResponse as WebhookSubscriptionListResponse, type WebhookSubscriptionCreateParams as WebhookSubscriptionCreateParams, type WebhookSubscriptionUpdateParams as WebhookSubscriptionUpdateParams, };
887
923
  export { Capability as Capability, type HandleCheck as HandleCheck, type HandleCheckResponse as HandleCheckResponse, type CapabilityCheckIMessageParams as CapabilityCheckIMessageParams, type CapabilityCheckRCSParams as CapabilityCheckRCSParams, };
888
924
  export { Webhooks as Webhooks, type MessageEventV2 as MessageEventV2, type MessagePayload as MessagePayload, type ReactionEventBase as ReactionEventBase, type SchemasMediaPartResponse as SchemasMediaPartResponse, type SchemasMessageEffect as SchemasMessageEffect, type SchemasTextPartResponse as SchemasTextPartResponse, type MessageSentWebhookEvent as MessageSentWebhookEvent, type MessageReceivedWebhookEvent as MessageReceivedWebhookEvent, type MessageReadWebhookEvent as MessageReadWebhookEvent, type MessageDeliveredWebhookEvent as MessageDeliveredWebhookEvent, type MessageFailedWebhookEvent as MessageFailedWebhookEvent, type MessageEditedWebhookEvent as MessageEditedWebhookEvent, type ReactionAddedWebhookEvent as ReactionAddedWebhookEvent, type ReactionRemovedWebhookEvent as ReactionRemovedWebhookEvent, type ParticipantAddedWebhookEvent as ParticipantAddedWebhookEvent, type ParticipantRemovedWebhookEvent as ParticipantRemovedWebhookEvent, type ChatCreatedWebhookEvent as ChatCreatedWebhookEvent, type ChatGroupNameUpdatedWebhookEvent as ChatGroupNameUpdatedWebhookEvent, type ChatGroupIconUpdatedWebhookEvent as ChatGroupIconUpdatedWebhookEvent, type ChatGroupNameUpdateFailedWebhookEvent as ChatGroupNameUpdateFailedWebhookEvent, type ChatGroupIconUpdateFailedWebhookEvent as ChatGroupIconUpdateFailedWebhookEvent, type ChatTypingIndicatorStartedWebhookEvent as ChatTypingIndicatorStartedWebhookEvent, type ChatTypingIndicatorStoppedWebhookEvent as ChatTypingIndicatorStoppedWebhookEvent, type PhoneNumberStatusUpdatedWebhookEvent as PhoneNumberStatusUpdatedWebhookEvent, type UnwrapWebhookEvent as UnwrapWebhookEvent, };
889
- export { ContactCard as ContactCard, type SetContactCard as SetContactCard, type ContactCardRetrieveResponse as ContactCardRetrieveResponse, type ContactCardRetrieveParams as ContactCardRetrieveParams, type ContactCardCreateParams as ContactCardCreateParams, type ContactCardUpdateParams as ContactCardUpdateParams, };
925
+ export { ContactCard as ContactCard, type SetContactCard as SetContactCard, type ContactCardRetrieveResponse as ContactCardRetrieveResponse, type ContactCardCreateParams as ContactCardCreateParams, type ContactCardRetrieveParams as ContactCardRetrieveParams, type ContactCardUpdateParams as ContactCardUpdateParams, };
890
926
  export type ChatHandle = API.ChatHandle;
891
927
  export type LinkPartResponse = API.LinkPartResponse;
892
928
  export type MediaPartResponse = API.MediaPartResponse;
package/client.d.mts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.mts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY,qCAAiC;AACnF,OAAO,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,6BAAyB;AAI5G,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,iCAA6B;AAK7D,OAAO,KAAK,IAAI,uCAAmC;AAGnD,OAAO,KAAK,MAAM,yBAAqB;AACvC,OAAO,KAAK,UAAU,8BAA0B;AAChD,OAAO,EAEL,KAAK,yBAAyB,EAC9B,2BAA2B,EAC3B,KAAK,4BAA4B,EACjC,8BAA8B,EAC/B,8BAA0B;AAC3B,OAAO,KAAK,OAAO,2BAAuB;AAC1C,OAAO,KAAK,GAAG,8BAA0B;AACzC,OAAO,EAAE,UAAU,EAAE,+BAA2B;AAChD,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC1B,WAAW,EACX,oBAAoB,EACrB,oCAAgC;AACjC,OAAO,EACL,eAAe,EACf,6BAA6B,EAC7B,+BAA+B,EAChC,yCAAqC;AACtC,OAAO,EACL,UAAU,EACV,6BAA6B,EAC7B,wBAAwB,EACxB,WAAW,EACX,mBAAmB,EACpB,mCAA+B;AAChC,OAAO,EACL,WAAW,EACX,uBAAuB,EACvB,yBAAyB,EACzB,2BAA2B,EAC3B,uBAAuB,EACvB,cAAc,EACf,qCAAiC;AAClC,OAAO,EACL,OAAO,EACP,wBAAwB,EACxB,0BAA0B,EAC1B,mBAAmB,EACnB,qBAAqB,EACrB,aAAa,EACb,+BAA+B,EAC/B,0BAA0B,EAC1B,4BAA4B,EAC5B,mBAAmB,EACnB,QAAQ,EACR,8BAA8B,E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IAC1C,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC,cAAc,CAAC;IAChD,MAAM,MAAM,gBAAgB,GAAG,GAAG,CAAC,gBAAgB,CAAC;CACrD"}
package/client.d.ts CHANGED
@@ -12,14 +12,18 @@ import { AttachmentCreateParams, AttachmentCreateResponse, AttachmentRetrieveRes
12
12
  import { AvailableNumber, AvailableNumberRetrieveParams, AvailableNumberRetrieveResponse } from "./resources/available-number.js";
13
13
  import { Capability, CapabilityCheckIMessageParams, CapabilityCheckRCSParams, HandleCheck, HandleCheckResponse } from "./resources/capability.js";
14
14
  import { ContactCard, ContactCardCreateParams, ContactCardRetrieveParams, ContactCardRetrieveResponse, ContactCardUpdateParams, SetContactCard } from "./resources/contact-card.js";
15
- import { Message, MessageAddReactionParams, MessageAddReactionResponse, MessageCreateParams, MessageCreateResponse, MessageEffect, MessageListMessagesThreadParams, MessageUpdateAppCardParams, MessageUpdateAppCardResponse, MessageUpdateParams, Messages, MessagesListMessagesPagination, ReplyTo } from "./resources/messages.js";
15
+ import { ExperienceListResponse, ExperienceRetrieveResponse, Experiences } from "./resources/experiences.js";
16
+ import { PaymentHandleConnection, PaymentHandleVerifyParams, PaymentHandles } from "./resources/payment-handles.js";
17
+ import { PaymentProvider, PaymentProviderConnectParams, PaymentProviderConnectResponse, PaymentProviders } from "./resources/payment-providers.js";
16
18
  import { PaymentRequest, PaymentRequestCreateParams, PaymentRequestListParams, PaymentRequestListResponse, PaymentRequests } from "./resources/payment-requests.js";
19
+ import { Payment, PaymentCreateParams, PaymentCredentialsResponse, Payments } from "./resources/payments.js";
17
20
  import { PhoneNumberListResponse, PhoneNumberUpdateParams, PhoneNumberUpdateResponse, PhoneNumbers } from "./resources/phone-numbers.js";
18
21
  import { PhonenumberListResponse, Phonenumbers } from "./resources/phonenumbers.js";
19
22
  import { WebhookEventListResponse, WebhookEventType, WebhookEvents } from "./resources/webhook-events.js";
20
23
  import { WebhookSubscription, WebhookSubscriptionCreateParams, WebhookSubscriptionCreateResponse, WebhookSubscriptionListResponse, WebhookSubscriptionUpdateParams, WebhookSubscriptions } from "./resources/webhook-subscriptions.js";
21
24
  import { ChatCreatedWebhookEvent, ChatGroupIconUpdateFailedWebhookEvent, ChatGroupIconUpdatedWebhookEvent, ChatGroupNameUpdateFailedWebhookEvent, ChatGroupNameUpdatedWebhookEvent, ChatTypingIndicatorStartedWebhookEvent, ChatTypingIndicatorStoppedWebhookEvent, MessageDeliveredWebhookEvent, MessageEditedWebhookEvent, MessageEventV2, MessageFailedWebhookEvent, MessagePayload, MessageReadWebhookEvent, MessageReceivedWebhookEvent, MessageSentWebhookEvent, ParticipantAddedWebhookEvent, ParticipantRemovedWebhookEvent, PhoneNumberStatusUpdatedWebhookEvent, ReactionAddedWebhookEvent, ReactionEventBase, ReactionRemovedWebhookEvent, SchemasMediaPartResponse, SchemasMessageEffect, SchemasTextPartResponse, UnwrapWebhookEvent, Webhooks } from "./resources/webhooks.js";
22
25
  import { Chat, ChatCreateParams, ChatCreateResponse, ChatLeaveChatResponse, ChatListChatsParams, ChatSendVoicememoParams, ChatSendVoicememoResponse, ChatUpdateParams, ChatUpdateResponse, Chats, ChatsListChatsPagination, LinkPart, MediaPart, MessageContent, TextPart } from "./resources/chats/chats.js";
26
+ import { Message, MessageAddReactionParams, MessageAddReactionResponse, MessageCreateParams, MessageCreateResponse, MessageEffect, MessageListMessagesThreadParams, MessageUpdateAppCardParams, MessageUpdateAppCardResponse, MessageUpdateParams, Messages, MessagesListMessagesPagination, ReplyTo } from "./resources/messages/messages.js";
23
27
  import { type Fetch } from "./internal/builtin-types.js";
24
28
  import { HeadersLike, NullableHeaders } from "./internal/headers.js";
25
29
  import { FinalRequestOptions, RequestOptions } from "./internal/request-options.js";
@@ -495,7 +499,7 @@ export declare class LinqAPIV3 {
495
499
  *
496
500
  * ## Connected accounts (Stripe Standard, direct charges)
497
501
  *
498
- * Agent Pay runs on **Stripe Connect Standard accounts** using **direct
502
+ * Payments run on **Stripe Connect Standard accounts** using **direct
499
503
  * charges**: the charge is created on *your* connected account and **you are
500
504
  * the merchant of record**. That means the money, the payout schedule, the
501
505
  * customer relationship, and the compliance surface are all yours — Linq
@@ -578,7 +582,7 @@ export declare class LinqAPIV3 {
578
582
  * no-install checkout sheet. Everywhere else (Android, desktop, iPhones
579
583
  * without the App Clip yet) the same URL opens the web checkout, so the link
580
584
  * always works. The App Clip experience for your payment links is registered
581
- * automatically by Linq and refreshed whenever you update your Agent Pay
585
+ * automatically by Linq and refreshed whenever you update your payments
582
586
  * branding; a newly registered experience can take up to ~24 hours to
583
587
  * activate on Apple's side, during which links open the web checkout.
584
588
  *
@@ -591,6 +595,34 @@ export declare class LinqAPIV3 {
591
595
  *
592
596
  */
593
597
  paymentRequests: API.PaymentRequests;
598
+ /**
599
+ * Let an agent pay on a customer's behalf with a single-use virtual card.
600
+ * Connect a customer once, then create a payment — a virtual card is minted
601
+ * scoped to that purchase and the card details are handed back for checkout.
602
+ *
603
+ */
604
+ paymentProviders: API.PaymentProviders;
605
+ /**
606
+ * Let an agent pay on a customer's behalf with a single-use virtual card.
607
+ * Connect a customer once, then create a payment — a virtual card is minted
608
+ * scoped to that purchase and the card details are handed back for checkout.
609
+ *
610
+ */
611
+ paymentHandles: API.PaymentHandles;
612
+ /**
613
+ * Let an agent pay on a customer's behalf with a single-use virtual card.
614
+ * Connect a customer once, then create a payment — a virtual card is minted
615
+ * scoped to that purchase and the card details are handed back for checkout.
616
+ *
617
+ */
618
+ payments: API.Payments;
619
+ /**
620
+ * Let an agent pay on a customer's behalf with a single-use virtual card.
621
+ * Connect a customer once, then create a payment — a virtual card is minted
622
+ * scoped to that purchase and the card details are handed back for checkout.
623
+ *
624
+ */
625
+ experiences: API.Experiences;
594
626
  /**
595
627
  * Webhook Subscriptions allow you to receive real-time notifications when events
596
628
  * occur on your account.
@@ -875,18 +907,22 @@ export declare namespace LinqAPIV3 {
875
907
  export { type ListChatsPaginationParams as ListChatsPaginationParams, type ListChatsPaginationResponse as ListChatsPaginationResponse, };
876
908
  export import ListMessagesPagination = Pagination.ListMessagesPagination;
877
909
  export { type ListMessagesPaginationParams as ListMessagesPaginationParams, type ListMessagesPaginationResponse as ListMessagesPaginationResponse, };
878
- export { Chats as Chats, type Chat as Chat, type LinkPart as LinkPart, type MediaPart as MediaPart, type MessageContent as MessageContent, type TextPart as TextPart, type ChatCreateResponse as ChatCreateResponse, type ChatUpdateResponse as ChatUpdateResponse, type ChatLeaveChatResponse as ChatLeaveChatResponse, type ChatSendVoicememoResponse as ChatSendVoicememoResponse, type ChatsListChatsPagination as ChatsListChatsPagination, type ChatCreateParams as ChatCreateParams, type ChatListChatsParams as ChatListChatsParams, type ChatUpdateParams as ChatUpdateParams, type ChatSendVoicememoParams as ChatSendVoicememoParams, };
879
- export { Messages as Messages, type Message as Message, type MessageEffect as MessageEffect, type ReplyTo as ReplyTo, type MessageCreateResponse as MessageCreateResponse, type MessageAddReactionResponse as MessageAddReactionResponse, type MessageUpdateAppCardResponse as MessageUpdateAppCardResponse, type MessagesListMessagesPagination as MessagesListMessagesPagination, type MessageCreateParams as MessageCreateParams, type MessageListMessagesThreadParams as MessageListMessagesThreadParams, type MessageAddReactionParams as MessageAddReactionParams, type MessageUpdateParams as MessageUpdateParams, type MessageUpdateAppCardParams as MessageUpdateAppCardParams, };
910
+ export { Chats as Chats, type Chat as Chat, type LinkPart as LinkPart, type MediaPart as MediaPart, type MessageContent as MessageContent, type TextPart as TextPart, type ChatCreateResponse as ChatCreateResponse, type ChatUpdateResponse as ChatUpdateResponse, type ChatLeaveChatResponse as ChatLeaveChatResponse, type ChatSendVoicememoResponse as ChatSendVoicememoResponse, type ChatsListChatsPagination as ChatsListChatsPagination, type ChatCreateParams as ChatCreateParams, type ChatUpdateParams as ChatUpdateParams, type ChatListChatsParams as ChatListChatsParams, type ChatSendVoicememoParams as ChatSendVoicememoParams, };
911
+ export { Messages as Messages, type Message as Message, type MessageEffect as MessageEffect, type ReplyTo as ReplyTo, type MessageCreateResponse as MessageCreateResponse, type MessageAddReactionResponse as MessageAddReactionResponse, type MessageUpdateAppCardResponse as MessageUpdateAppCardResponse, type MessagesListMessagesPagination as MessagesListMessagesPagination, type MessageCreateParams as MessageCreateParams, type MessageUpdateParams as MessageUpdateParams, type MessageAddReactionParams as MessageAddReactionParams, type MessageListMessagesThreadParams as MessageListMessagesThreadParams, type MessageUpdateAppCardParams as MessageUpdateAppCardParams, };
880
912
  export { Attachments as Attachments, type SupportedContentType as SupportedContentType, type AttachmentCreateResponse as AttachmentCreateResponse, type AttachmentRetrieveResponse as AttachmentRetrieveResponse, type AttachmentCreateParams as AttachmentCreateParams, };
881
913
  export { Phonenumbers as Phonenumbers, type PhonenumberListResponse as PhonenumberListResponse };
882
914
  export { PhoneNumbers as PhoneNumbers, type PhoneNumberUpdateResponse as PhoneNumberUpdateResponse, type PhoneNumberListResponse as PhoneNumberListResponse, type PhoneNumberUpdateParams as PhoneNumberUpdateParams, };
883
915
  export { AvailableNumber as AvailableNumber, type AvailableNumberRetrieveResponse as AvailableNumberRetrieveResponse, type AvailableNumberRetrieveParams as AvailableNumberRetrieveParams, };
884
916
  export { PaymentRequests as PaymentRequests, type PaymentRequest as PaymentRequest, type PaymentRequestListResponse as PaymentRequestListResponse, type PaymentRequestCreateParams as PaymentRequestCreateParams, type PaymentRequestListParams as PaymentRequestListParams, };
917
+ export { PaymentProviders as PaymentProviders, type PaymentProvider as PaymentProvider, type PaymentProviderConnectResponse as PaymentProviderConnectResponse, type PaymentProviderConnectParams as PaymentProviderConnectParams, };
918
+ export { PaymentHandles as PaymentHandles, type PaymentHandleConnection as PaymentHandleConnection, type PaymentHandleVerifyParams as PaymentHandleVerifyParams, };
919
+ export { Payments as Payments, type Payment as Payment, type PaymentCredentialsResponse as PaymentCredentialsResponse, type PaymentCreateParams as PaymentCreateParams, };
920
+ export { Experiences as Experiences, type ExperienceRetrieveResponse as ExperienceRetrieveResponse, type ExperienceListResponse as ExperienceListResponse, };
885
921
  export { WebhookEvents as WebhookEvents, type WebhookEventType as WebhookEventType, type WebhookEventListResponse as WebhookEventListResponse, };
886
922
  export { WebhookSubscriptions as WebhookSubscriptions, type WebhookSubscription as WebhookSubscription, type WebhookSubscriptionCreateResponse as WebhookSubscriptionCreateResponse, type WebhookSubscriptionListResponse as WebhookSubscriptionListResponse, type WebhookSubscriptionCreateParams as WebhookSubscriptionCreateParams, type WebhookSubscriptionUpdateParams as WebhookSubscriptionUpdateParams, };
887
923
  export { Capability as Capability, type HandleCheck as HandleCheck, type HandleCheckResponse as HandleCheckResponse, type CapabilityCheckIMessageParams as CapabilityCheckIMessageParams, type CapabilityCheckRCSParams as CapabilityCheckRCSParams, };
888
924
  export { Webhooks as Webhooks, type MessageEventV2 as MessageEventV2, type MessagePayload as MessagePayload, type ReactionEventBase as ReactionEventBase, type SchemasMediaPartResponse as SchemasMediaPartResponse, type SchemasMessageEffect as SchemasMessageEffect, type SchemasTextPartResponse as SchemasTextPartResponse, type MessageSentWebhookEvent as MessageSentWebhookEvent, type MessageReceivedWebhookEvent as MessageReceivedWebhookEvent, type MessageReadWebhookEvent as MessageReadWebhookEvent, type MessageDeliveredWebhookEvent as MessageDeliveredWebhookEvent, type MessageFailedWebhookEvent as MessageFailedWebhookEvent, type MessageEditedWebhookEvent as MessageEditedWebhookEvent, type ReactionAddedWebhookEvent as ReactionAddedWebhookEvent, type ReactionRemovedWebhookEvent as ReactionRemovedWebhookEvent, type ParticipantAddedWebhookEvent as ParticipantAddedWebhookEvent, type ParticipantRemovedWebhookEvent as ParticipantRemovedWebhookEvent, type ChatCreatedWebhookEvent as ChatCreatedWebhookEvent, type ChatGroupNameUpdatedWebhookEvent as ChatGroupNameUpdatedWebhookEvent, type ChatGroupIconUpdatedWebhookEvent as ChatGroupIconUpdatedWebhookEvent, type ChatGroupNameUpdateFailedWebhookEvent as ChatGroupNameUpdateFailedWebhookEvent, type ChatGroupIconUpdateFailedWebhookEvent as ChatGroupIconUpdateFailedWebhookEvent, type ChatTypingIndicatorStartedWebhookEvent as ChatTypingIndicatorStartedWebhookEvent, type ChatTypingIndicatorStoppedWebhookEvent as ChatTypingIndicatorStoppedWebhookEvent, type PhoneNumberStatusUpdatedWebhookEvent as PhoneNumberStatusUpdatedWebhookEvent, type UnwrapWebhookEvent as UnwrapWebhookEvent, };
889
- export { ContactCard as ContactCard, type SetContactCard as SetContactCard, type ContactCardRetrieveResponse as ContactCardRetrieveResponse, type ContactCardRetrieveParams as ContactCardRetrieveParams, type ContactCardCreateParams as ContactCardCreateParams, type ContactCardUpdateParams as ContactCardUpdateParams, };
925
+ export { ContactCard as ContactCard, type SetContactCard as SetContactCard, type ContactCardRetrieveResponse as ContactCardRetrieveResponse, type ContactCardCreateParams as ContactCardCreateParams, type ContactCardRetrieveParams as ContactCardRetrieveParams, type ContactCardUpdateParams as ContactCardUpdateParams, };
890
926
  export type ChatHandle = API.ChatHandle;
891
927
  export type LinkPartResponse = API.LinkPartResponse;
892
928
  export type MediaPartResponse = API.MediaPartResponse;