@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
@@ -0,0 +1,116 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { RequestOptions } from "../internal/request-options.mjs";
4
+ /**
5
+ * Let an agent pay on a customer's behalf with a single-use virtual card.
6
+ * Connect a customer once, then create a payment — a virtual card is minted
7
+ * scoped to that purchase and the card details are handed back for checkout.
8
+ */
9
+ export declare class Payments extends APIResource {
10
+ /**
11
+ * Advances the pay flow for a connected customer handle and returns a `status`
12
+ * describing where it is (`needs_connection`, `awaiting_user_action`, `ready`,
13
+ * ...). A payment `id` appears once a card is minted. Idempotent on the
14
+ * `Idempotency-Key` header.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const payment = await client.payments.create({
19
+ * amount_cents: 2500,
20
+ * currency: 'usd',
21
+ * handle: '+14155550123',
22
+ * });
23
+ * ```
24
+ */
25
+ create(body: PaymentCreateParams, options?: RequestOptions): APIPromise<Payment>;
26
+ /**
27
+ * Get a payment
28
+ *
29
+ * @example
30
+ * ```ts
31
+ * const payment = await client.payments.retrieve('paymentId');
32
+ * ```
33
+ */
34
+ retrieve(paymentID: string, options?: RequestOptions): APIPromise<Payment>;
35
+ /**
36
+ * Closes the virtual card and cancels the payment.
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * const payment = await client.payments.cancel('paymentId');
41
+ * ```
42
+ */
43
+ cancel(paymentID: string, options?: RequestOptions): APIPromise<Payment>;
44
+ /**
45
+ * Returns a short-lived handoff for a `ready` payment. Fetch the card credentials
46
+ * **directly from the provider** with the returned `user_token` at `fetch_url` —
47
+ * the card number never passes through Linq. Do not persist PAN/CVC.
48
+ *
49
+ * @example
50
+ * ```ts
51
+ * const response = await client.payments.credentials(
52
+ * 'paymentId',
53
+ * );
54
+ * ```
55
+ */
56
+ credentials(paymentID: string, options?: RequestOptions): APIPromise<PaymentCredentialsResponse>;
57
+ }
58
+ export interface Payment {
59
+ id?: string;
60
+ amount_cents?: number;
61
+ /**
62
+ * Present when the customer must approve with a passkey.
63
+ */
64
+ approval_url?: string;
65
+ /**
66
+ * Present when the customer must attach a card.
67
+ */
68
+ attach_url?: string;
69
+ currency?: string;
70
+ description?: string;
71
+ handle?: string;
72
+ status?: 'needs_connection' | 'connecting' | 'awaiting_user_action' | 'ready' | 'authorized' | 'succeeded' | 'declined' | 'canceled' | 'expired';
73
+ }
74
+ export interface PaymentCredentialsResponse {
75
+ /**
76
+ * Fetch the card directly from the provider with these — never through Linq.
77
+ */
78
+ handoff?: PaymentCredentialsResponse.Handoff;
79
+ }
80
+ export declare namespace PaymentCredentialsResponse {
81
+ /**
82
+ * Fetch the card directly from the provider with these — never through Linq.
83
+ */
84
+ interface Handoff {
85
+ card_ref?: string;
86
+ fetch_url?: string;
87
+ provider?: string;
88
+ /**
89
+ * Short-lived bearer to fetch the card from the provider.
90
+ */
91
+ user_token?: string;
92
+ }
93
+ }
94
+ export interface PaymentCreateParams {
95
+ amount_cents: number;
96
+ currency: string;
97
+ /**
98
+ * Customer phone (E.164) or email.
99
+ */
100
+ handle: string;
101
+ description?: string;
102
+ merchant?: PaymentCreateParams.Merchant;
103
+ metadata?: {
104
+ [key: string]: string;
105
+ };
106
+ }
107
+ export declare namespace PaymentCreateParams {
108
+ interface Merchant {
109
+ name?: string;
110
+ url?: string;
111
+ }
112
+ }
113
+ export declare namespace Payments {
114
+ export { type Payment as Payment, type PaymentCredentialsResponse as PaymentCredentialsResponse, type PaymentCreateParams as PaymentCreateParams, };
115
+ }
116
+ //# sourceMappingURL=payments.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payments.d.mts","sourceRoot":"","sources":["../src/resources/payments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;;;GAIG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIhF;;;;;;;OAOG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAI1E;;;;;;;OAOG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIxE;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;CAGjG;AAED,MAAM,WAAW,OAAO;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,YAAY,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0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -0,0 +1,116 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { RequestOptions } from "../internal/request-options.js";
4
+ /**
5
+ * Let an agent pay on a customer's behalf with a single-use virtual card.
6
+ * Connect a customer once, then create a payment — a virtual card is minted
7
+ * scoped to that purchase and the card details are handed back for checkout.
8
+ */
9
+ export declare class Payments extends APIResource {
10
+ /**
11
+ * Advances the pay flow for a connected customer handle and returns a `status`
12
+ * describing where it is (`needs_connection`, `awaiting_user_action`, `ready`,
13
+ * ...). A payment `id` appears once a card is minted. Idempotent on the
14
+ * `Idempotency-Key` header.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const payment = await client.payments.create({
19
+ * amount_cents: 2500,
20
+ * currency: 'usd',
21
+ * handle: '+14155550123',
22
+ * });
23
+ * ```
24
+ */
25
+ create(body: PaymentCreateParams, options?: RequestOptions): APIPromise<Payment>;
26
+ /**
27
+ * Get a payment
28
+ *
29
+ * @example
30
+ * ```ts
31
+ * const payment = await client.payments.retrieve('paymentId');
32
+ * ```
33
+ */
34
+ retrieve(paymentID: string, options?: RequestOptions): APIPromise<Payment>;
35
+ /**
36
+ * Closes the virtual card and cancels the payment.
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * const payment = await client.payments.cancel('paymentId');
41
+ * ```
42
+ */
43
+ cancel(paymentID: string, options?: RequestOptions): APIPromise<Payment>;
44
+ /**
45
+ * Returns a short-lived handoff for a `ready` payment. Fetch the card credentials
46
+ * **directly from the provider** with the returned `user_token` at `fetch_url` —
47
+ * the card number never passes through Linq. Do not persist PAN/CVC.
48
+ *
49
+ * @example
50
+ * ```ts
51
+ * const response = await client.payments.credentials(
52
+ * 'paymentId',
53
+ * );
54
+ * ```
55
+ */
56
+ credentials(paymentID: string, options?: RequestOptions): APIPromise<PaymentCredentialsResponse>;
57
+ }
58
+ export interface Payment {
59
+ id?: string;
60
+ amount_cents?: number;
61
+ /**
62
+ * Present when the customer must approve with a passkey.
63
+ */
64
+ approval_url?: string;
65
+ /**
66
+ * Present when the customer must attach a card.
67
+ */
68
+ attach_url?: string;
69
+ currency?: string;
70
+ description?: string;
71
+ handle?: string;
72
+ status?: 'needs_connection' | 'connecting' | 'awaiting_user_action' | 'ready' | 'authorized' | 'succeeded' | 'declined' | 'canceled' | 'expired';
73
+ }
74
+ export interface PaymentCredentialsResponse {
75
+ /**
76
+ * Fetch the card directly from the provider with these — never through Linq.
77
+ */
78
+ handoff?: PaymentCredentialsResponse.Handoff;
79
+ }
80
+ export declare namespace PaymentCredentialsResponse {
81
+ /**
82
+ * Fetch the card directly from the provider with these — never through Linq.
83
+ */
84
+ interface Handoff {
85
+ card_ref?: string;
86
+ fetch_url?: string;
87
+ provider?: string;
88
+ /**
89
+ * Short-lived bearer to fetch the card from the provider.
90
+ */
91
+ user_token?: string;
92
+ }
93
+ }
94
+ export interface PaymentCreateParams {
95
+ amount_cents: number;
96
+ currency: string;
97
+ /**
98
+ * Customer phone (E.164) or email.
99
+ */
100
+ handle: string;
101
+ description?: string;
102
+ merchant?: PaymentCreateParams.Merchant;
103
+ metadata?: {
104
+ [key: string]: string;
105
+ };
106
+ }
107
+ export declare namespace PaymentCreateParams {
108
+ interface Merchant {
109
+ name?: string;
110
+ url?: string;
111
+ }
112
+ }
113
+ export declare namespace Payments {
114
+ export { type Payment as Payment, type PaymentCredentialsResponse as PaymentCredentialsResponse, type PaymentCreateParams as PaymentCreateParams, };
115
+ }
116
+ //# sourceMappingURL=payments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../src/resources/payments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;;;GAIG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ElB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,MAAM,CAAC;IAErB,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,mBAAmB,CAAC,QAAQ,CAAC;IAExC,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACtC;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,QAAQ;QACvB,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd,GAAG,CAAC,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Payments = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const path_1 = require("../internal/utils/path.js");
7
+ /**
8
+ * Let an agent pay on a customer's behalf with a single-use virtual card.
9
+ * Connect a customer once, then create a payment — a virtual card is minted
10
+ * scoped to that purchase and the card details are handed back for checkout.
11
+ */
12
+ class Payments extends resource_1.APIResource {
13
+ /**
14
+ * Advances the pay flow for a connected customer handle and returns a `status`
15
+ * describing where it is (`needs_connection`, `awaiting_user_action`, `ready`,
16
+ * ...). A payment `id` appears once a card is minted. Idempotent on the
17
+ * `Idempotency-Key` header.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const payment = await client.payments.create({
22
+ * amount_cents: 2500,
23
+ * currency: 'usd',
24
+ * handle: '+14155550123',
25
+ * });
26
+ * ```
27
+ */
28
+ create(body, options) {
29
+ return this._client.post('/v3/payments', { body, ...options });
30
+ }
31
+ /**
32
+ * Get a payment
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * const payment = await client.payments.retrieve('paymentId');
37
+ * ```
38
+ */
39
+ retrieve(paymentID, options) {
40
+ return this._client.get((0, path_1.path) `/v3/payments/${paymentID}`, options);
41
+ }
42
+ /**
43
+ * Closes the virtual card and cancels the payment.
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * const payment = await client.payments.cancel('paymentId');
48
+ * ```
49
+ */
50
+ cancel(paymentID, options) {
51
+ return this._client.post((0, path_1.path) `/v3/payments/${paymentID}/cancel`, options);
52
+ }
53
+ /**
54
+ * Returns a short-lived handoff for a `ready` payment. Fetch the card credentials
55
+ * **directly from the provider** with the returned `user_token` at `fetch_url` —
56
+ * the card number never passes through Linq. Do not persist PAN/CVC.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * const response = await client.payments.credentials(
61
+ * 'paymentId',
62
+ * );
63
+ * ```
64
+ */
65
+ credentials(paymentID, options) {
66
+ return this._client.get((0, path_1.path) `/v3/payments/${paymentID}/credentials`, options);
67
+ }
68
+ }
69
+ exports.Payments = Payments;
70
+ //# sourceMappingURL=payments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payments.js","sourceRoot":"","sources":["../src/resources/payments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C;;;;GAIG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,gBAAgB,SAAS,SAAS,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,SAAiB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,SAAS,cAAc,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;CACF;AA3DD,4BA2DC"}
@@ -0,0 +1,66 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { path } from "../internal/utils/path.mjs";
4
+ /**
5
+ * Let an agent pay on a customer's behalf with a single-use virtual card.
6
+ * Connect a customer once, then create a payment — a virtual card is minted
7
+ * scoped to that purchase and the card details are handed back for checkout.
8
+ */
9
+ export class Payments extends APIResource {
10
+ /**
11
+ * Advances the pay flow for a connected customer handle and returns a `status`
12
+ * describing where it is (`needs_connection`, `awaiting_user_action`, `ready`,
13
+ * ...). A payment `id` appears once a card is minted. Idempotent on the
14
+ * `Idempotency-Key` header.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const payment = await client.payments.create({
19
+ * amount_cents: 2500,
20
+ * currency: 'usd',
21
+ * handle: '+14155550123',
22
+ * });
23
+ * ```
24
+ */
25
+ create(body, options) {
26
+ return this._client.post('/v3/payments', { body, ...options });
27
+ }
28
+ /**
29
+ * Get a payment
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * const payment = await client.payments.retrieve('paymentId');
34
+ * ```
35
+ */
36
+ retrieve(paymentID, options) {
37
+ return this._client.get(path `/v3/payments/${paymentID}`, options);
38
+ }
39
+ /**
40
+ * Closes the virtual card and cancels the payment.
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * const payment = await client.payments.cancel('paymentId');
45
+ * ```
46
+ */
47
+ cancel(paymentID, options) {
48
+ return this._client.post(path `/v3/payments/${paymentID}/cancel`, options);
49
+ }
50
+ /**
51
+ * Returns a short-lived handoff for a `ready` payment. Fetch the card credentials
52
+ * **directly from the provider** with the returned `user_token` at `fetch_url` —
53
+ * the card number never passes through Linq. Do not persist PAN/CVC.
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * const response = await client.payments.credentials(
58
+ * 'paymentId',
59
+ * );
60
+ * ```
61
+ */
62
+ credentials(paymentID, options) {
63
+ return this._client.get(path `/v3/payments/${paymentID}/credentials`, options);
64
+ }
65
+ }
66
+ //# sourceMappingURL=payments.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payments.mjs","sourceRoot":"","sources":["../src/resources/payments.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;;;GAIG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,gBAAgB,SAAS,SAAS,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,SAAiB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,SAAS,cAAc,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;CACF"}
@@ -11,17 +11,6 @@ import { RequestOptions } from "../internal/request-options.mjs";
11
11
  * in the `from` field.
12
12
  */
13
13
  export declare class PhoneNumbers extends APIResource {
14
- /**
15
- * Returns all phone numbers assigned to the authenticated partner. Use this
16
- * endpoint to discover which phone numbers are available for use as the `from`
17
- * field when creating a chat, listing chats, or sending a voice memo.
18
- *
19
- * @example
20
- * ```ts
21
- * const phoneNumbers = await client.phoneNumbers.list();
22
- * ```
23
- */
24
- list(options?: RequestOptions): APIPromise<PhoneNumberListResponse>;
25
14
  /**
26
15
  * Updates the forwarding number for a phone number. The forwarding number is where
27
16
  * inbound calls will be forwarded to.
@@ -37,6 +26,17 @@ export declare class PhoneNumbers extends APIResource {
37
26
  * ```
38
27
  */
39
28
  update(phoneNumberID: string, body: PhoneNumberUpdateParams, options?: RequestOptions): APIPromise<PhoneNumberUpdateResponse>;
29
+ /**
30
+ * Returns all phone numbers assigned to the authenticated partner. Use this
31
+ * endpoint to discover which phone numbers are available for use as the `from`
32
+ * field when creating a chat, listing chats, or sending a voice memo.
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * const phoneNumbers = await client.phoneNumbers.list();
37
+ * ```
38
+ */
39
+ list(options?: RequestOptions): APIPromise<PhoneNumberListResponse>;
40
40
  }
41
41
  export interface PhoneNumberUpdateResponse {
42
42
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"phone-numbers.d.mts","sourceRoot":"","sources":["../src/resources/phone-numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU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;;;;;;;;WAUG;QACH,UAAiB,UAAU;YACzB;;eAEG;YACH,OAAO,EAAE,MAAM,CAAC;YAEhB;;;;;;;;;;;;;eAaG;YACH,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;SAC5C;KACF;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -11,17 +11,6 @@ import { RequestOptions } from "../internal/request-options.js";
11
11
  * in the `from` field.
12
12
  */
13
13
  export declare class PhoneNumbers extends APIResource {
14
- /**
15
- * Returns all phone numbers assigned to the authenticated partner. Use this
16
- * endpoint to discover which phone numbers are available for use as the `from`
17
- * field when creating a chat, listing chats, or sending a voice memo.
18
- *
19
- * @example
20
- * ```ts
21
- * const phoneNumbers = await client.phoneNumbers.list();
22
- * ```
23
- */
24
- list(options?: RequestOptions): APIPromise<PhoneNumberListResponse>;
25
14
  /**
26
15
  * Updates the forwarding number for a phone number. The forwarding number is where
27
16
  * inbound calls will be forwarded to.
@@ -37,6 +26,17 @@ export declare class PhoneNumbers extends APIResource {
37
26
  * ```
38
27
  */
39
28
  update(phoneNumberID: string, body: PhoneNumberUpdateParams, options?: RequestOptions): APIPromise<PhoneNumberUpdateResponse>;
29
+ /**
30
+ * Returns all phone numbers assigned to the authenticated partner. Use this
31
+ * endpoint to discover which phone numbers are available for use as the `from`
32
+ * field when creating a chat, listing chats, or sending a voice memo.
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * const phoneNumbers = await client.phoneNumbers.list();
37
+ * ```
38
+ */
39
+ list(options?: RequestOptions): APIPromise<PhoneNumberListResponse>;
40
40
  }
41
41
  export interface PhoneNumberUpdateResponse {
42
42
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"phone-numbers.d.ts","sourceRoot":"","sources":["../src/resources/phone-numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;;;;;;;GAQG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAInE;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;CAGzC;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,uBAAuB,CAAC,WAAW,CAAC,CAAC;CAC3D;AAED,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,WAAW;QAC1B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QAErB;;;;;;;;;;WAUG;QACH,UAAU,EAAE,WAAW,CAAC,UAAU,CAAC;QAEnC;;;WAGG;QACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACnC;IAED,UAAiB,WAAW,CAAC;QAC3B;;;;;;;;;;WAUG;QACH,UAAiB,UAAU;YACzB;;eAEG;YACH,OAAO,EAAE,MAAM,CAAC;YAEhB;;;;;;;;;;;;;eAaG;YACH,MAAM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AAM,CAAC;QAErB;;;;;;;;;;WAUG;QACH,UAAU,EAAE,WAAW,CAAC,UAAU,CAAC;QAEnC;;;WAGG;QACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACnC;IAED,UAAiB,WAAW,CAAC;QAC3B;;;;;;;;;;WAUG;QACH,UAAiB,UAAU;YACzB;;eAEG;YACH,OAAO,EAAE,MAAM,CAAC;YAEhB;;;;;;;;;;;;;eAaG;YACH,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;SAC5C;KACF;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -14,19 +14,6 @@ const path_1 = require("../internal/utils/path.js");
14
14
  * in the `from` field.
15
15
  */
16
16
  class PhoneNumbers extends resource_1.APIResource {
17
- /**
18
- * Returns all phone numbers assigned to the authenticated partner. Use this
19
- * endpoint to discover which phone numbers are available for use as the `from`
20
- * field when creating a chat, listing chats, or sending a voice memo.
21
- *
22
- * @example
23
- * ```ts
24
- * const phoneNumbers = await client.phoneNumbers.list();
25
- * ```
26
- */
27
- list(options) {
28
- return this._client.get('/v3/phone_numbers', options);
29
- }
30
17
  /**
31
18
  * Updates the forwarding number for a phone number. The forwarding number is where
32
19
  * inbound calls will be forwarded to.
@@ -44,6 +31,19 @@ class PhoneNumbers extends resource_1.APIResource {
44
31
  update(phoneNumberID, body, options) {
45
32
  return this._client.put((0, path_1.path) `/v3/phone_numbers/${phoneNumberID}`, { body, ...options });
46
33
  }
34
+ /**
35
+ * Returns all phone numbers assigned to the authenticated partner. Use this
36
+ * endpoint to discover which phone numbers are available for use as the `from`
37
+ * field when creating a chat, listing chats, or sending a voice memo.
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * const phoneNumbers = await client.phoneNumbers.list();
42
+ * ```
43
+ */
44
+ list(options) {
45
+ return this._client.get('/v3/phone_numbers', options);
46
+ }
47
47
  }
48
48
  exports.PhoneNumbers = PhoneNumbers;
49
49
  //# sourceMappingURL=phone-numbers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"phone-numbers.js","sourceRoot":"","sources":["../src/resources/phone-numbers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C;;;;;;;;GAQG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,aAAqB,EACrB,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,aAAa,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;CACF;AApCD,oCAoCC"}
1
+ {"version":3,"file":"phone-numbers.js","sourceRoot":"","sources":["../src/resources/phone-numbers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C;;;;;;;;GAQG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,aAAqB,EACrB,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,aAAa,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;CACF;AApCD,oCAoCC"}
@@ -11,19 +11,6 @@ import { path } from "../internal/utils/path.mjs";
11
11
  * in the `from` field.
12
12
  */
13
13
  export class PhoneNumbers extends APIResource {
14
- /**
15
- * Returns all phone numbers assigned to the authenticated partner. Use this
16
- * endpoint to discover which phone numbers are available for use as the `from`
17
- * field when creating a chat, listing chats, or sending a voice memo.
18
- *
19
- * @example
20
- * ```ts
21
- * const phoneNumbers = await client.phoneNumbers.list();
22
- * ```
23
- */
24
- list(options) {
25
- return this._client.get('/v3/phone_numbers', options);
26
- }
27
14
  /**
28
15
  * Updates the forwarding number for a phone number. The forwarding number is where
29
16
  * inbound calls will be forwarded to.
@@ -41,5 +28,18 @@ export class PhoneNumbers extends APIResource {
41
28
  update(phoneNumberID, body, options) {
42
29
  return this._client.put(path `/v3/phone_numbers/${phoneNumberID}`, { body, ...options });
43
30
  }
31
+ /**
32
+ * Returns all phone numbers assigned to the authenticated partner. Use this
33
+ * endpoint to discover which phone numbers are available for use as the `from`
34
+ * field when creating a chat, listing chats, or sending a voice memo.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const phoneNumbers = await client.phoneNumbers.list();
39
+ * ```
40
+ */
41
+ list(options) {
42
+ return this._client.get('/v3/phone_numbers', options);
43
+ }
44
44
  }
45
45
  //# sourceMappingURL=phone-numbers.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"phone-numbers.mjs","sourceRoot":"","sources":["../src/resources/phone-numbers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;;;;;;;GAQG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,aAAqB,EACrB,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,aAAa,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;CACF"}
1
+ {"version":3,"file":"phone-numbers.mjs","sourceRoot":"","sources":["../src/resources/phone-numbers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;;;;;;;GAQG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,aAAqB,EACrB,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,aAAa,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;CACF"}
@@ -144,7 +144,7 @@ export declare class WebhookEvents extends APIResource {
144
144
  * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
145
145
  * subscription will not produce any deliveries.
146
146
  */
147
- export type WebhookEventType = 'message.sent' | 'message.received' | 'message.read' | 'message.delivered' | 'message.failed' | 'message.edited' | 'reaction.added' | 'reaction.removed' | 'participant.added' | 'participant.removed' | 'chat.created' | 'chat.group_name_updated' | 'chat.group_icon_updated' | 'chat.group_name_update_failed' | 'chat.group_icon_update_failed' | 'chat.background_updated' | 'chat.typing_indicator.started' | 'chat.typing_indicator.stopped' | 'phone_number.status_updated' | 'call.initiated' | 'call.ringing' | 'call.answered' | 'call.ended' | 'call.failed' | 'call.declined' | 'call.no_answer' | 'location.sharing.started' | 'location.sharing.stopped' | 'payment.succeeded' | 'payment.canceled' | 'payment.expired' | 'payment.declined' | 'payment.authorized' | 'connection.created' | 'connection.revoked';
147
+ export type WebhookEventType = 'message.sent' | 'message.received' | 'message.read' | 'message.delivered' | 'message.failed' | 'message.edited' | 'reaction.added' | 'reaction.removed' | 'poll.received' | 'poll.failed' | 'poll.sent' | 'poll.delivered' | 'poll.read' | 'poll.updated' | 'poll.vote.added' | 'poll.vote.removed' | 'poll.reaction.added' | 'participant.added' | 'participant.removed' | 'chat.created' | 'chat.group_name_updated' | 'chat.group_icon_updated' | 'chat.group_name_update_failed' | 'chat.group_icon_update_failed' | 'chat.background_updated' | 'chat.typing_indicator.started' | 'chat.typing_indicator.stopped' | 'phone_number.status_updated' | 'call.initiated' | 'call.ringing' | 'call.answered' | 'call.ended' | 'call.failed' | 'call.declined' | 'call.no_answer' | 'location.sharing.started' | 'location.sharing.stopped' | 'payment.succeeded' | 'payment.canceled' | 'payment.expired' | 'payment.declined' | 'payment.authorized' | 'connection.created' | 'connection.revoked';
148
148
  export interface WebhookEventListResponse {
149
149
  /**
150
150
  * URL to the webhook events documentation
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-events.d.mts","sourceRoot":"","sources":["../src/resources/webhook-events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+HG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAGrE;AAED;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GACxB,cAAc,GACd,kBAAkB,GAClB,cAAc,GACd,mBAAmB,GACnB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,kBAAkB,GAClB,mBAAmB,GACnB,qBAAqB,GACrB,cAAc,GACd,yBAAyB,GACzB,yBAAyB,GACzB,+BAA+B,GAC/B,+BAA+B,GAC/B,yBAAyB,GACzB,+BAA+B,GAC/B,+BAA+B,GAC/B,6BAA6B,GAC7B,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,YAAY,GACZ,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,0BAA0B,GAC1B,0BAA0B,GAC1B,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,kBAAkB,GAClB,oBAAoB,GACpB,oBAAoB,GACpB,oBAAoB,CAAC;AAEzB,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,OAAO,EAAE,iDAAiD,CAAC;IAE3D;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
1
+ {"version":3,"file":"webhook-events.d.mts","sourceRoot":"","sources":["../src/resources/webhook-events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+HG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;OAIG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAGrE;AAED;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GACxB,cAAc,GACd,kBAAkB,GAClB,cAAc,GACd,mBAAmB,GACnB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,kBAAkB,GAClB,eAAe,GACf,aAAa,GACb,WAAW,GACX,gBAAgB,GAChB,WAAW,GACX,cAAc,GACd,iBAAiB,GACjB,mBAAmB,GACnB,qBAAqB,GACrB,mBAAmB,GACnB,qBAAqB,GACrB,cAAc,GACd,yBAAyB,GACzB,yBAAyB,GACzB,+BAA+B,GAC/B,+BAA+B,GAC/B,yBAAyB,GACzB,+BAA+B,GAC/B,+BAA+B,GAC/B,6BAA6B,GAC7B,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,YAAY,GACZ,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,0BAA0B,GAC1B,0BAA0B,GAC1B,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,kBAAkB,GAClB,oBAAoB,GACpB,oBAAoB,GACpB,oBAAoB,CAAC;AAEzB,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,OAAO,EAAE,iDAAiD,CAAC;IAE3D;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;CACjC;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -144,7 +144,7 @@ export declare class WebhookEvents extends APIResource {
144
144
  * `webhook_version: "2026-02-03"`. Subscribing to this event on a v2025
145
145
  * subscription will not produce any deliveries.
146
146
  */
147
- export type WebhookEventType = 'message.sent' | 'message.received' | 'message.read' | 'message.delivered' | 'message.failed' | 'message.edited' | 'reaction.added' | 'reaction.removed' | 'participant.added' | 'participant.removed' | 'chat.created' | 'chat.group_name_updated' | 'chat.group_icon_updated' | 'chat.group_name_update_failed' | 'chat.group_icon_update_failed' | 'chat.background_updated' | 'chat.typing_indicator.started' | 'chat.typing_indicator.stopped' | 'phone_number.status_updated' | 'call.initiated' | 'call.ringing' | 'call.answered' | 'call.ended' | 'call.failed' | 'call.declined' | 'call.no_answer' | 'location.sharing.started' | 'location.sharing.stopped' | 'payment.succeeded' | 'payment.canceled' | 'payment.expired' | 'payment.declined' | 'payment.authorized' | 'connection.created' | 'connection.revoked';
147
+ export type WebhookEventType = 'message.sent' | 'message.received' | 'message.read' | 'message.delivered' | 'message.failed' | 'message.edited' | 'reaction.added' | 'reaction.removed' | 'poll.received' | 'poll.failed' | 'poll.sent' | 'poll.delivered' | 'poll.read' | 'poll.updated' | 'poll.vote.added' | 'poll.vote.removed' | 'poll.reaction.added' | 'participant.added' | 'participant.removed' | 'chat.created' | 'chat.group_name_updated' | 'chat.group_icon_updated' | 'chat.group_name_update_failed' | 'chat.group_icon_update_failed' | 'chat.background_updated' | 'chat.typing_indicator.started' | 'chat.typing_indicator.stopped' | 'phone_number.status_updated' | 'call.initiated' | 'call.ringing' | 'call.answered' | 'call.ended' | 'call.failed' | 'call.declined' | 'call.no_answer' | 'location.sharing.started' | 'location.sharing.stopped' | 'payment.succeeded' | 'payment.canceled' | 'payment.expired' | 'payment.declined' | 'payment.authorized' | 'connection.created' | 'connection.revoked';
148
148
  export interface WebhookEventListResponse {
149
149
  /**
150
150
  * URL to the webhook events documentation
@@ -1 +1 @@
1
- {"version":3,"file":"webhook-events.d.ts","sourceRoot":"","sources":["../src/resources/webhook-events.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/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AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -176,17 +176,6 @@ export declare class WebhookSubscriptions extends APIResource {
176
176
  * ```
177
177
  */
178
178
  create(body: WebhookSubscriptionCreateParams, options?: RequestOptions): APIPromise<WebhookSubscriptionCreateResponse>;
179
- /**
180
- * Retrieve all webhook subscriptions for the authenticated partner. Returns a list
181
- * of active and inactive subscriptions with their configuration and status.
182
- *
183
- * @example
184
- * ```ts
185
- * const webhookSubscriptions =
186
- * await client.webhookSubscriptions.list();
187
- * ```
188
- */
189
- list(options?: RequestOptions): APIPromise<WebhookSubscriptionListResponse>;
190
179
  /**
191
180
  * Retrieve details for a specific webhook subscription including its target URL,
192
181
  * subscribed events, and current status.
@@ -219,6 +208,17 @@ export declare class WebhookSubscriptions extends APIResource {
219
208
  * ```
220
209
  */
221
210
  update(subscriptionID: string, body: WebhookSubscriptionUpdateParams, options?: RequestOptions): APIPromise<WebhookSubscription>;
211
+ /**
212
+ * Retrieve all webhook subscriptions for the authenticated partner. Returns a list
213
+ * of active and inactive subscriptions with their configuration and status.
214
+ *
215
+ * @example
216
+ * ```ts
217
+ * const webhookSubscriptions =
218
+ * await client.webhookSubscriptions.list();
219
+ * ```
220
+ */
221
+ list(options?: RequestOptions): APIPromise<WebhookSubscriptionListResponse>;
222
222
  /**
223
223
  * Delete a webhook subscription.
224
224
  *