@linqapp/sdk 0.1.0-alpha.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 (433) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/LICENSE +7 -0
  3. package/README.md +393 -0
  4. package/api-promise.d.mts +2 -0
  5. package/api-promise.d.mts.map +1 -0
  6. package/api-promise.d.ts +2 -0
  7. package/api-promise.d.ts.map +1 -0
  8. package/api-promise.js +6 -0
  9. package/api-promise.js.map +1 -0
  10. package/api-promise.mjs +2 -0
  11. package/api-promise.mjs.map +1 -0
  12. package/client.d.mts +193 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +193 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +479 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +475 -0
  19. package/client.mjs.map +1 -0
  20. package/core/api-promise.d.mts +46 -0
  21. package/core/api-promise.d.mts.map +1 -0
  22. package/core/api-promise.d.ts +46 -0
  23. package/core/api-promise.d.ts.map +1 -0
  24. package/core/api-promise.js +74 -0
  25. package/core/api-promise.js.map +1 -0
  26. package/core/api-promise.mjs +70 -0
  27. package/core/api-promise.mjs.map +1 -0
  28. package/core/error.d.mts +46 -0
  29. package/core/error.d.mts.map +1 -0
  30. package/core/error.d.ts +46 -0
  31. package/core/error.d.ts.map +1 -0
  32. package/core/error.js +113 -0
  33. package/core/error.js.map +1 -0
  34. package/core/error.mjs +97 -0
  35. package/core/error.mjs.map +1 -0
  36. package/core/resource.d.mts +6 -0
  37. package/core/resource.d.mts.map +1 -0
  38. package/core/resource.d.ts +6 -0
  39. package/core/resource.d.ts.map +1 -0
  40. package/core/resource.js +11 -0
  41. package/core/resource.js.map +1 -0
  42. package/core/resource.mjs +7 -0
  43. package/core/resource.mjs.map +1 -0
  44. package/core/uploads.d.mts +3 -0
  45. package/core/uploads.d.mts.map +1 -0
  46. package/core/uploads.d.ts +3 -0
  47. package/core/uploads.d.ts.map +1 -0
  48. package/core/uploads.js +6 -0
  49. package/core/uploads.js.map +1 -0
  50. package/core/uploads.mjs +2 -0
  51. package/core/uploads.mjs.map +1 -0
  52. package/error.d.mts +2 -0
  53. package/error.d.mts.map +1 -0
  54. package/error.d.ts +2 -0
  55. package/error.d.ts.map +1 -0
  56. package/error.js +6 -0
  57. package/error.js.map +1 -0
  58. package/error.mjs +2 -0
  59. package/error.mjs.map +1 -0
  60. package/index.d.mts +6 -0
  61. package/index.d.mts.map +1 -0
  62. package/index.d.ts +6 -0
  63. package/index.d.ts.map +1 -0
  64. package/index.js +30 -0
  65. package/index.js.map +1 -0
  66. package/index.mjs +7 -0
  67. package/index.mjs.map +1 -0
  68. package/internal/builtin-types.d.mts +73 -0
  69. package/internal/builtin-types.d.mts.map +1 -0
  70. package/internal/builtin-types.d.ts +73 -0
  71. package/internal/builtin-types.d.ts.map +1 -0
  72. package/internal/builtin-types.js +4 -0
  73. package/internal/builtin-types.js.map +1 -0
  74. package/internal/builtin-types.mjs +3 -0
  75. package/internal/builtin-types.mjs.map +1 -0
  76. package/internal/detect-platform.d.mts +15 -0
  77. package/internal/detect-platform.d.mts.map +1 -0
  78. package/internal/detect-platform.d.ts +15 -0
  79. package/internal/detect-platform.d.ts.map +1 -0
  80. package/internal/detect-platform.js +162 -0
  81. package/internal/detect-platform.js.map +1 -0
  82. package/internal/detect-platform.mjs +157 -0
  83. package/internal/detect-platform.mjs.map +1 -0
  84. package/internal/errors.d.mts +3 -0
  85. package/internal/errors.d.mts.map +1 -0
  86. package/internal/errors.d.ts +3 -0
  87. package/internal/errors.d.ts.map +1 -0
  88. package/internal/errors.js +41 -0
  89. package/internal/errors.js.map +1 -0
  90. package/internal/errors.mjs +36 -0
  91. package/internal/errors.mjs.map +1 -0
  92. package/internal/headers.d.mts +20 -0
  93. package/internal/headers.d.mts.map +1 -0
  94. package/internal/headers.d.ts +20 -0
  95. package/internal/headers.d.ts.map +1 -0
  96. package/internal/headers.js +79 -0
  97. package/internal/headers.js.map +1 -0
  98. package/internal/headers.mjs +74 -0
  99. package/internal/headers.mjs.map +1 -0
  100. package/internal/parse.d.mts +12 -0
  101. package/internal/parse.d.mts.map +1 -0
  102. package/internal/parse.d.ts +12 -0
  103. package/internal/parse.d.ts.map +1 -0
  104. package/internal/parse.js +40 -0
  105. package/internal/parse.js.map +1 -0
  106. package/internal/parse.mjs +37 -0
  107. package/internal/parse.mjs.map +1 -0
  108. package/internal/request-options.d.mts +75 -0
  109. package/internal/request-options.d.mts.map +1 -0
  110. package/internal/request-options.d.ts +75 -0
  111. package/internal/request-options.d.ts.map +1 -0
  112. package/internal/request-options.js +14 -0
  113. package/internal/request-options.js.map +1 -0
  114. package/internal/request-options.mjs +10 -0
  115. package/internal/request-options.mjs.map +1 -0
  116. package/internal/shim-types.d.mts +17 -0
  117. package/internal/shim-types.d.mts.map +1 -0
  118. package/internal/shim-types.d.ts +17 -0
  119. package/internal/shim-types.d.ts.map +1 -0
  120. package/internal/shim-types.js +4 -0
  121. package/internal/shim-types.js.map +1 -0
  122. package/internal/shim-types.mjs +3 -0
  123. package/internal/shim-types.mjs.map +1 -0
  124. package/internal/shims.d.mts +20 -0
  125. package/internal/shims.d.mts.map +1 -0
  126. package/internal/shims.d.ts +20 -0
  127. package/internal/shims.d.ts.map +1 -0
  128. package/internal/shims.js +92 -0
  129. package/internal/shims.js.map +1 -0
  130. package/internal/shims.mjs +85 -0
  131. package/internal/shims.mjs.map +1 -0
  132. package/internal/to-file.d.mts +45 -0
  133. package/internal/to-file.d.mts.map +1 -0
  134. package/internal/to-file.d.ts +45 -0
  135. package/internal/to-file.d.ts.map +1 -0
  136. package/internal/to-file.js +91 -0
  137. package/internal/to-file.js.map +1 -0
  138. package/internal/to-file.mjs +88 -0
  139. package/internal/to-file.mjs.map +1 -0
  140. package/internal/tslib.js +81 -0
  141. package/internal/tslib.mjs +17 -0
  142. package/internal/types.d.mts +69 -0
  143. package/internal/types.d.mts.map +1 -0
  144. package/internal/types.d.ts +69 -0
  145. package/internal/types.d.ts.map +1 -0
  146. package/internal/types.js +4 -0
  147. package/internal/types.js.map +1 -0
  148. package/internal/types.mjs +3 -0
  149. package/internal/types.mjs.map +1 -0
  150. package/internal/uploads.d.mts +42 -0
  151. package/internal/uploads.d.mts.map +1 -0
  152. package/internal/uploads.d.ts +42 -0
  153. package/internal/uploads.d.ts.map +1 -0
  154. package/internal/uploads.js +141 -0
  155. package/internal/uploads.js.map +1 -0
  156. package/internal/uploads.mjs +131 -0
  157. package/internal/uploads.mjs.map +1 -0
  158. package/internal/utils/base64.d.mts +3 -0
  159. package/internal/utils/base64.d.mts.map +1 -0
  160. package/internal/utils/base64.d.ts +3 -0
  161. package/internal/utils/base64.d.ts.map +1 -0
  162. package/internal/utils/base64.js +38 -0
  163. package/internal/utils/base64.js.map +1 -0
  164. package/internal/utils/base64.mjs +33 -0
  165. package/internal/utils/base64.mjs.map +1 -0
  166. package/internal/utils/bytes.d.mts +4 -0
  167. package/internal/utils/bytes.d.mts.map +1 -0
  168. package/internal/utils/bytes.d.ts +4 -0
  169. package/internal/utils/bytes.d.ts.map +1 -0
  170. package/internal/utils/bytes.js +31 -0
  171. package/internal/utils/bytes.js.map +1 -0
  172. package/internal/utils/bytes.mjs +26 -0
  173. package/internal/utils/bytes.mjs.map +1 -0
  174. package/internal/utils/env.d.mts +9 -0
  175. package/internal/utils/env.d.mts.map +1 -0
  176. package/internal/utils/env.d.ts +9 -0
  177. package/internal/utils/env.d.ts.map +1 -0
  178. package/internal/utils/env.js +22 -0
  179. package/internal/utils/env.js.map +1 -0
  180. package/internal/utils/env.mjs +18 -0
  181. package/internal/utils/env.mjs.map +1 -0
  182. package/internal/utils/log.d.mts +37 -0
  183. package/internal/utils/log.d.mts.map +1 -0
  184. package/internal/utils/log.d.ts +37 -0
  185. package/internal/utils/log.d.ts.map +1 -0
  186. package/internal/utils/log.js +85 -0
  187. package/internal/utils/log.js.map +1 -0
  188. package/internal/utils/log.mjs +79 -0
  189. package/internal/utils/log.mjs.map +1 -0
  190. package/internal/utils/path.d.mts +15 -0
  191. package/internal/utils/path.d.mts.map +1 -0
  192. package/internal/utils/path.d.ts +15 -0
  193. package/internal/utils/path.d.ts.map +1 -0
  194. package/internal/utils/path.js +79 -0
  195. package/internal/utils/path.js.map +1 -0
  196. package/internal/utils/path.mjs +74 -0
  197. package/internal/utils/path.mjs.map +1 -0
  198. package/internal/utils/sleep.d.mts +2 -0
  199. package/internal/utils/sleep.d.mts.map +1 -0
  200. package/internal/utils/sleep.d.ts +2 -0
  201. package/internal/utils/sleep.d.ts.map +1 -0
  202. package/internal/utils/sleep.js +7 -0
  203. package/internal/utils/sleep.js.map +1 -0
  204. package/internal/utils/sleep.mjs +3 -0
  205. package/internal/utils/sleep.mjs.map +1 -0
  206. package/internal/utils/uuid.d.mts +5 -0
  207. package/internal/utils/uuid.d.mts.map +1 -0
  208. package/internal/utils/uuid.d.ts +5 -0
  209. package/internal/utils/uuid.d.ts.map +1 -0
  210. package/internal/utils/uuid.js +19 -0
  211. package/internal/utils/uuid.js.map +1 -0
  212. package/internal/utils/uuid.mjs +15 -0
  213. package/internal/utils/uuid.mjs.map +1 -0
  214. package/internal/utils/values.d.mts +18 -0
  215. package/internal/utils/values.d.mts.map +1 -0
  216. package/internal/utils/values.d.ts +18 -0
  217. package/internal/utils/values.d.ts.map +1 -0
  218. package/internal/utils/values.js +112 -0
  219. package/internal/utils/values.js.map +1 -0
  220. package/internal/utils/values.mjs +94 -0
  221. package/internal/utils/values.mjs.map +1 -0
  222. package/internal/utils.d.mts +7 -0
  223. package/internal/utils.d.mts.map +1 -0
  224. package/internal/utils.d.ts +7 -0
  225. package/internal/utils.d.ts.map +1 -0
  226. package/internal/utils.js +11 -0
  227. package/internal/utils.js.map +1 -0
  228. package/internal/utils.mjs +8 -0
  229. package/internal/utils.mjs.map +1 -0
  230. package/package.json +137 -0
  231. package/resource.d.mts +2 -0
  232. package/resource.d.mts.map +1 -0
  233. package/resource.d.ts +2 -0
  234. package/resource.d.ts.map +1 -0
  235. package/resource.js +6 -0
  236. package/resource.js.map +1 -0
  237. package/resource.mjs +2 -0
  238. package/resource.mjs.map +1 -0
  239. package/resources/attachments.d.mts +215 -0
  240. package/resources/attachments.d.mts.map +1 -0
  241. package/resources/attachments.d.ts +215 -0
  242. package/resources/attachments.d.ts.map +1 -0
  243. package/resources/attachments.js +102 -0
  244. package/resources/attachments.js.map +1 -0
  245. package/resources/attachments.mjs +98 -0
  246. package/resources/attachments.mjs.map +1 -0
  247. package/resources/chats/chats.d.mts +1040 -0
  248. package/resources/chats/chats.d.mts.map +1 -0
  249. package/resources/chats/chats.d.ts +1040 -0
  250. package/resources/chats/chats.d.ts.map +1 -0
  251. package/resources/chats/chats.js +182 -0
  252. package/resources/chats/chats.js.map +1 -0
  253. package/resources/chats/chats.mjs +177 -0
  254. package/resources/chats/chats.mjs.map +1 -0
  255. package/resources/chats/index.d.mts +5 -0
  256. package/resources/chats/index.d.mts.map +1 -0
  257. package/resources/chats/index.d.ts +5 -0
  258. package/resources/chats/index.d.ts.map +1 -0
  259. package/resources/chats/index.js +13 -0
  260. package/resources/chats/index.js.map +1 -0
  261. package/resources/chats/index.mjs +6 -0
  262. package/resources/chats/index.mjs.map +1 -0
  263. package/resources/chats/messages.d.mts +813 -0
  264. package/resources/chats/messages.d.mts.map +1 -0
  265. package/resources/chats/messages.d.ts +813 -0
  266. package/resources/chats/messages.d.ts.map +1 -0
  267. package/resources/chats/messages.js +56 -0
  268. package/resources/chats/messages.js.map +1 -0
  269. package/resources/chats/messages.mjs +52 -0
  270. package/resources/chats/messages.mjs.map +1 -0
  271. package/resources/chats/participants.d.mts +68 -0
  272. package/resources/chats/participants.d.mts.map +1 -0
  273. package/resources/chats/participants.d.ts +68 -0
  274. package/resources/chats/participants.d.ts.map +1 -0
  275. package/resources/chats/participants.js +51 -0
  276. package/resources/chats/participants.js.map +1 -0
  277. package/resources/chats/participants.mjs +47 -0
  278. package/resources/chats/participants.mjs.map +1 -0
  279. package/resources/chats/typing.d.mts +35 -0
  280. package/resources/chats/typing.d.mts.map +1 -0
  281. package/resources/chats/typing.d.ts +35 -0
  282. package/resources/chats/typing.d.ts.map +1 -0
  283. package/resources/chats/typing.js +50 -0
  284. package/resources/chats/typing.js.map +1 -0
  285. package/resources/chats/typing.mjs +46 -0
  286. package/resources/chats/typing.mjs.map +1 -0
  287. package/resources/chats.d.mts +2 -0
  288. package/resources/chats.d.mts.map +1 -0
  289. package/resources/chats.d.ts +2 -0
  290. package/resources/chats.d.ts.map +1 -0
  291. package/resources/chats.js +6 -0
  292. package/resources/chats.js.map +1 -0
  293. package/resources/chats.mjs +3 -0
  294. package/resources/chats.mjs.map +1 -0
  295. package/resources/index.d.mts +6 -0
  296. package/resources/index.d.mts.map +1 -0
  297. package/resources/index.d.ts +6 -0
  298. package/resources/index.d.ts.map +1 -0
  299. package/resources/index.js +15 -0
  300. package/resources/index.js.map +1 -0
  301. package/resources/index.mjs +7 -0
  302. package/resources/index.mjs.map +1 -0
  303. package/resources/messages.d.mts +761 -0
  304. package/resources/messages.d.mts.map +1 -0
  305. package/resources/messages.d.ts +761 -0
  306. package/resources/messages.d.ts.map +1 -0
  307. package/resources/messages.js +90 -0
  308. package/resources/messages.js.map +1 -0
  309. package/resources/messages.mjs +86 -0
  310. package/resources/messages.mjs.map +1 -0
  311. package/resources/phone-numbers.d.mts +58 -0
  312. package/resources/phone-numbers.d.mts.map +1 -0
  313. package/resources/phone-numbers.d.ts +58 -0
  314. package/resources/phone-numbers.d.ts.map +1 -0
  315. package/resources/phone-numbers.js +17 -0
  316. package/resources/phone-numbers.js.map +1 -0
  317. package/resources/phone-numbers.mjs +13 -0
  318. package/resources/phone-numbers.mjs.map +1 -0
  319. package/resources/webhooks/events.d.mts +30 -0
  320. package/resources/webhooks/events.d.mts.map +1 -0
  321. package/resources/webhooks/events.d.ts +30 -0
  322. package/resources/webhooks/events.d.ts.map +1 -0
  323. package/resources/webhooks/events.js +22 -0
  324. package/resources/webhooks/events.js.map +1 -0
  325. package/resources/webhooks/events.mjs +18 -0
  326. package/resources/webhooks/events.mjs.map +1 -0
  327. package/resources/webhooks/index.d.mts +4 -0
  328. package/resources/webhooks/index.d.mts.map +1 -0
  329. package/resources/webhooks/index.d.ts +4 -0
  330. package/resources/webhooks/index.d.ts.map +1 -0
  331. package/resources/webhooks/index.js +11 -0
  332. package/resources/webhooks/index.js.map +1 -0
  333. package/resources/webhooks/index.mjs +5 -0
  334. package/resources/webhooks/index.mjs.map +1 -0
  335. package/resources/webhooks/subscriptions.d.mts +237 -0
  336. package/resources/webhooks/subscriptions.d.mts.map +1 -0
  337. package/resources/webhooks/subscriptions.d.ts +237 -0
  338. package/resources/webhooks/subscriptions.d.ts.map +1 -0
  339. package/resources/webhooks/subscriptions.js +107 -0
  340. package/resources/webhooks/subscriptions.js.map +1 -0
  341. package/resources/webhooks/subscriptions.mjs +103 -0
  342. package/resources/webhooks/subscriptions.mjs.map +1 -0
  343. package/resources/webhooks/webhooks.d.mts +14 -0
  344. package/resources/webhooks/webhooks.d.mts.map +1 -0
  345. package/resources/webhooks/webhooks.d.ts +14 -0
  346. package/resources/webhooks/webhooks.d.ts.map +1 -0
  347. package/resources/webhooks/webhooks.js +21 -0
  348. package/resources/webhooks/webhooks.js.map +1 -0
  349. package/resources/webhooks/webhooks.mjs +16 -0
  350. package/resources/webhooks/webhooks.mjs.map +1 -0
  351. package/resources/webhooks.d.mts +2 -0
  352. package/resources/webhooks.d.mts.map +1 -0
  353. package/resources/webhooks.d.ts +2 -0
  354. package/resources/webhooks.d.ts.map +1 -0
  355. package/resources/webhooks.js +6 -0
  356. package/resources/webhooks.js.map +1 -0
  357. package/resources/webhooks.mjs +3 -0
  358. package/resources/webhooks.mjs.map +1 -0
  359. package/resources.d.mts +2 -0
  360. package/resources.d.mts.map +1 -0
  361. package/resources.d.ts +2 -0
  362. package/resources.d.ts.map +1 -0
  363. package/resources.js +5 -0
  364. package/resources.js.map +1 -0
  365. package/resources.mjs +2 -0
  366. package/resources.mjs.map +1 -0
  367. package/src/api-promise.ts +2 -0
  368. package/src/client.ts +801 -0
  369. package/src/core/README.md +3 -0
  370. package/src/core/api-promise.ts +92 -0
  371. package/src/core/error.ts +130 -0
  372. package/src/core/resource.ts +11 -0
  373. package/src/core/uploads.ts +2 -0
  374. package/src/error.ts +2 -0
  375. package/src/index.ts +22 -0
  376. package/src/internal/README.md +3 -0
  377. package/src/internal/builtin-types.ts +93 -0
  378. package/src/internal/detect-platform.ts +196 -0
  379. package/src/internal/errors.ts +33 -0
  380. package/src/internal/headers.ts +97 -0
  381. package/src/internal/parse.ts +56 -0
  382. package/src/internal/request-options.ts +91 -0
  383. package/src/internal/shim-types.ts +26 -0
  384. package/src/internal/shims.ts +107 -0
  385. package/src/internal/to-file.ts +154 -0
  386. package/src/internal/types.ts +95 -0
  387. package/src/internal/uploads.ts +187 -0
  388. package/src/internal/utils/base64.ts +40 -0
  389. package/src/internal/utils/bytes.ts +32 -0
  390. package/src/internal/utils/env.ts +18 -0
  391. package/src/internal/utils/log.ts +126 -0
  392. package/src/internal/utils/path.ts +88 -0
  393. package/src/internal/utils/sleep.ts +3 -0
  394. package/src/internal/utils/uuid.ts +17 -0
  395. package/src/internal/utils/values.ts +105 -0
  396. package/src/internal/utils.ts +8 -0
  397. package/src/lib/.keep +4 -0
  398. package/src/resource.ts +2 -0
  399. package/src/resources/attachments.ts +344 -0
  400. package/src/resources/chats/chats.ts +1285 -0
  401. package/src/resources/chats/index.ts +29 -0
  402. package/src/resources/chats/messages.ts +968 -0
  403. package/src/resources/chats/participants.ts +98 -0
  404. package/src/resources/chats/typing.ts +50 -0
  405. package/src/resources/chats.ts +3 -0
  406. package/src/resources/index.ts +31 -0
  407. package/src/resources/messages.ts +937 -0
  408. package/src/resources/phone-numbers.ts +72 -0
  409. package/src/resources/webhooks/events.ts +55 -0
  410. package/src/resources/webhooks/index.ts +13 -0
  411. package/src/resources/webhooks/subscriptions.ts +409 -0
  412. package/src/resources/webhooks/webhooks.ts +37 -0
  413. package/src/resources/webhooks.ts +3 -0
  414. package/src/resources.ts +1 -0
  415. package/src/tsconfig.json +11 -0
  416. package/src/uploads.ts +2 -0
  417. package/src/version.ts +1 -0
  418. package/uploads.d.mts +2 -0
  419. package/uploads.d.mts.map +1 -0
  420. package/uploads.d.ts +2 -0
  421. package/uploads.d.ts.map +1 -0
  422. package/uploads.js +6 -0
  423. package/uploads.js.map +1 -0
  424. package/uploads.mjs +2 -0
  425. package/uploads.mjs.map +1 -0
  426. package/version.d.mts +2 -0
  427. package/version.d.mts.map +1 -0
  428. package/version.d.ts +2 -0
  429. package/version.d.ts.map +1 -0
  430. package/version.js +5 -0
  431. package/version.js.map +1 -0
  432. package/version.mjs +2 -0
  433. package/version.mjs.map +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/resources/chats/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;OASG;IACH,IAAI,CACF,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGzG;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAE7C;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,OAAO;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C;QAE/C;;WAEG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC;KAC5B;IAED,UAAiB,OAAO,CAAC;QACvB,UAAiB,QAAQ;YACvB;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;YAEb;;eAEG;YACH,KAAK,EAAE,MAAM,CAAC;YAEd;;;eAGG;YACH,eAAe,CAAC,EAAE,MAAM,CAAC;SAC1B;QAED,UAAiB,SAAS;YACxB;;eAEG;YACH,IAAI,EAAE,OAAO,CAAC;YAEd;;;;;;eAMG;YACH,aAAa,CAAC,EAAE,MAAM,CAAC;YAEvB;;;eAGG;YACH,eAAe,CAAC,EAAE,MAAM,CAAC;YAEzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA6BG;YACH,GAAG,CAAC,EAAE,MAAM,CAAC;SACd;QAED;;WAEG;QACH,UAAiB,MAAM;YACrB;;;;;;eAMG;YACH,IAAI,CAAC,EAAE,MAAM,CAAC;YAEd;;eAEG;YACH,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;SAC5B;QAED;;WAEG;QACH,UAAiB,OAAO;YACtB;;eAEG;YACH,UAAU,EAAE,MAAM,CAAC;YAEnB;;;;eAIG;YACH,UAAU,CAAC,EAAE,MAAM,CAAC;SACrB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -0,0 +1,56 @@
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.Messages = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const path_1 = require("../../internal/utils/path.js");
7
+ class Messages extends resource_1.APIResource {
8
+ /**
9
+ * Retrieve messages from a specific chat with pagination support.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const messages = await client.chats.messages.list(
14
+ * '550e8400-e29b-41d4-a716-446655440000',
15
+ * );
16
+ * ```
17
+ */
18
+ list(chatID, query = {}, options) {
19
+ return this._client.get((0, path_1.path) `/v3/chats/${chatID}/messages`, { query, ...options });
20
+ }
21
+ /**
22
+ * Send a message to an existing chat. Use this endpoint when you already have a
23
+ * chat ID and want to send additional messages to it.
24
+ *
25
+ * ## Message Effects
26
+ *
27
+ * You can add iMessage effects to make your messages more expressive. Effects are
28
+ * optional and can be either screen effects (full-screen animations) or bubble
29
+ * effects (message bubble animations).
30
+ *
31
+ * **Screen Effects:** `confetti`, `fireworks`, `lasers`, `sparkles`,
32
+ * `celebration`, `hearts`, `love`, `balloons`, `happy_birthday`, `echo`,
33
+ * `spotlight`
34
+ *
35
+ * **Bubble Effects:** `slam`, `loud`, `gentle`, `invisible`
36
+ *
37
+ * Only one effect type can be applied per message.
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * const response = await client.chats.messages.send(
42
+ * '550e8400-e29b-41d4-a716-446655440000',
43
+ * {
44
+ * message: {
45
+ * parts: [{ type: 'text', value: 'Hello, world!' }],
46
+ * },
47
+ * },
48
+ * );
49
+ * ```
50
+ */
51
+ send(chatID, body, options) {
52
+ return this._client.post((0, path_1.path) `/v3/chats/${chatID}/messages`, { body, ...options });
53
+ }
54
+ }
55
+ exports.Messages = Messages;
56
+ //# sourceMappingURL=messages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/resources/chats/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;OASG;IACH,IAAI,CACF,MAAc,EACd,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,IAAI,CAAC,MAAc,EAAE,IAAuB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF;AApDD,4BAoDC"}
@@ -0,0 +1,52 @@
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
+ export class Messages extends APIResource {
5
+ /**
6
+ * Retrieve messages from a specific chat with pagination support.
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const messages = await client.chats.messages.list(
11
+ * '550e8400-e29b-41d4-a716-446655440000',
12
+ * );
13
+ * ```
14
+ */
15
+ list(chatID, query = {}, options) {
16
+ return this._client.get(path `/v3/chats/${chatID}/messages`, { query, ...options });
17
+ }
18
+ /**
19
+ * Send a message to an existing chat. Use this endpoint when you already have a
20
+ * chat ID and want to send additional messages to it.
21
+ *
22
+ * ## Message Effects
23
+ *
24
+ * You can add iMessage effects to make your messages more expressive. Effects are
25
+ * optional and can be either screen effects (full-screen animations) or bubble
26
+ * effects (message bubble animations).
27
+ *
28
+ * **Screen Effects:** `confetti`, `fireworks`, `lasers`, `sparkles`,
29
+ * `celebration`, `hearts`, `love`, `balloons`, `happy_birthday`, `echo`,
30
+ * `spotlight`
31
+ *
32
+ * **Bubble Effects:** `slam`, `loud`, `gentle`, `invisible`
33
+ *
34
+ * Only one effect type can be applied per message.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const response = await client.chats.messages.send(
39
+ * '550e8400-e29b-41d4-a716-446655440000',
40
+ * {
41
+ * message: {
42
+ * parts: [{ type: 'text', value: 'Hello, world!' }],
43
+ * },
44
+ * },
45
+ * );
46
+ * ```
47
+ */
48
+ send(chatID, body, options) {
49
+ return this._client.post(path `/v3/chats/${chatID}/messages`, { body, ...options });
50
+ }
51
+ }
52
+ //# sourceMappingURL=messages.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../../src/resources/chats/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;OASG;IACH,IAAI,CACF,MAAc,EACd,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,MAAM,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,IAAI,CAAC,MAAc,EAAE,IAAuB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,MAAM,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF"}
@@ -0,0 +1,68 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ export declare class Participants extends APIResource {
5
+ /**
6
+ * Add a new participant to an existing group chat.
7
+ *
8
+ * **Requirements:**
9
+ *
10
+ * - Group chats only (3+ existing participants)
11
+ * - New participant must support the same messaging service as the group
12
+ * - Cross-service additions not allowed (e.g., can't add RCS-only user to iMessage
13
+ * group)
14
+ * - For cross-service scenarios, create a new chat instead
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const response = await client.chats.participants.add(
19
+ * '550e8400-e29b-41d4-a716-446655440000',
20
+ * { handle: '+12052499136' },
21
+ * );
22
+ * ```
23
+ */
24
+ add(chatID: string, body: ParticipantAddParams, options?: RequestOptions): APIPromise<ParticipantAddResponse>;
25
+ /**
26
+ * Remove a participant from an existing group chat.
27
+ *
28
+ * **Requirements:**
29
+ *
30
+ * - Group chats only
31
+ * - Must have 3+ participants after removal
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const participant = await client.chats.participants.remove(
36
+ * '550e8400-e29b-41d4-a716-446655440000',
37
+ * { handle: '+12052499136' },
38
+ * );
39
+ * ```
40
+ */
41
+ remove(chatID: string, body: ParticipantRemoveParams, options?: RequestOptions): APIPromise<ParticipantRemoveResponse>;
42
+ }
43
+ export interface ParticipantAddResponse {
44
+ message?: string;
45
+ status?: string;
46
+ trace_id?: string;
47
+ }
48
+ export interface ParticipantRemoveResponse {
49
+ message?: string;
50
+ status?: string;
51
+ trace_id?: string;
52
+ }
53
+ export interface ParticipantAddParams {
54
+ /**
55
+ * Phone number (E.164 format) or email address of the participant to add
56
+ */
57
+ handle: string;
58
+ }
59
+ export interface ParticipantRemoveParams {
60
+ /**
61
+ * Phone number (E.164 format) or email address of the participant to remove
62
+ */
63
+ handle: string;
64
+ }
65
+ export declare namespace Participants {
66
+ export { type ParticipantAddResponse as ParticipantAddResponse, type ParticipantRemoveResponse as ParticipantRemoveResponse, type ParticipantAddParams as ParticipantAddParams, type ParticipantRemoveParams as ParticipantRemoveParams, };
67
+ }
68
+ //# sourceMappingURL=participants.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"participants.d.mts","sourceRoot":"","sources":["../../src/resources/chats/participants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;;;;OAkBG;IACH,GAAG,CACD,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;CAGzC;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -0,0 +1,68 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ export declare class Participants extends APIResource {
5
+ /**
6
+ * Add a new participant to an existing group chat.
7
+ *
8
+ * **Requirements:**
9
+ *
10
+ * - Group chats only (3+ existing participants)
11
+ * - New participant must support the same messaging service as the group
12
+ * - Cross-service additions not allowed (e.g., can't add RCS-only user to iMessage
13
+ * group)
14
+ * - For cross-service scenarios, create a new chat instead
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const response = await client.chats.participants.add(
19
+ * '550e8400-e29b-41d4-a716-446655440000',
20
+ * { handle: '+12052499136' },
21
+ * );
22
+ * ```
23
+ */
24
+ add(chatID: string, body: ParticipantAddParams, options?: RequestOptions): APIPromise<ParticipantAddResponse>;
25
+ /**
26
+ * Remove a participant from an existing group chat.
27
+ *
28
+ * **Requirements:**
29
+ *
30
+ * - Group chats only
31
+ * - Must have 3+ participants after removal
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const participant = await client.chats.participants.remove(
36
+ * '550e8400-e29b-41d4-a716-446655440000',
37
+ * { handle: '+12052499136' },
38
+ * );
39
+ * ```
40
+ */
41
+ remove(chatID: string, body: ParticipantRemoveParams, options?: RequestOptions): APIPromise<ParticipantRemoveResponse>;
42
+ }
43
+ export interface ParticipantAddResponse {
44
+ message?: string;
45
+ status?: string;
46
+ trace_id?: string;
47
+ }
48
+ export interface ParticipantRemoveResponse {
49
+ message?: string;
50
+ status?: string;
51
+ trace_id?: string;
52
+ }
53
+ export interface ParticipantAddParams {
54
+ /**
55
+ * Phone number (E.164 format) or email address of the participant to add
56
+ */
57
+ handle: string;
58
+ }
59
+ export interface ParticipantRemoveParams {
60
+ /**
61
+ * Phone number (E.164 format) or email address of the participant to remove
62
+ */
63
+ handle: string;
64
+ }
65
+ export declare namespace Participants {
66
+ export { type ParticipantAddResponse as ParticipantAddResponse, type ParticipantRemoveResponse as ParticipantRemoveResponse, type ParticipantAddParams as ParticipantAddParams, type ParticipantRemoveParams as ParticipantRemoveParams, };
67
+ }
68
+ //# sourceMappingURL=participants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"participants.d.ts","sourceRoot":"","sources":["../../src/resources/chats/participants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;;;;OAkBG;IACH,GAAG,CACD,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;CAGzC;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -0,0 +1,51 @@
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.Participants = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const path_1 = require("../../internal/utils/path.js");
7
+ class Participants extends resource_1.APIResource {
8
+ /**
9
+ * Add a new participant to an existing group chat.
10
+ *
11
+ * **Requirements:**
12
+ *
13
+ * - Group chats only (3+ existing participants)
14
+ * - New participant must support the same messaging service as the group
15
+ * - Cross-service additions not allowed (e.g., can't add RCS-only user to iMessage
16
+ * group)
17
+ * - For cross-service scenarios, create a new chat instead
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * const response = await client.chats.participants.add(
22
+ * '550e8400-e29b-41d4-a716-446655440000',
23
+ * { handle: '+12052499136' },
24
+ * );
25
+ * ```
26
+ */
27
+ add(chatID, body, options) {
28
+ return this._client.post((0, path_1.path) `/v3/chats/${chatID}/participants`, { body, ...options });
29
+ }
30
+ /**
31
+ * Remove a participant from an existing group chat.
32
+ *
33
+ * **Requirements:**
34
+ *
35
+ * - Group chats only
36
+ * - Must have 3+ participants after removal
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * const participant = await client.chats.participants.remove(
41
+ * '550e8400-e29b-41d4-a716-446655440000',
42
+ * { handle: '+12052499136' },
43
+ * );
44
+ * ```
45
+ */
46
+ remove(chatID, body, options) {
47
+ return this._client.delete((0, path_1.path) `/v3/chats/${chatID}/participants`, { body, ...options });
48
+ }
49
+ }
50
+ exports.Participants = Participants;
51
+ //# sourceMappingURL=participants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"participants.js","sourceRoot":"","sources":["../../src/resources/chats/participants.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;;;;;;;;OAkBG;IACH,GAAG,CACD,MAAc,EACd,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,MAAc,EACd,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF;AAnDD,oCAmDC"}
@@ -0,0 +1,47 @@
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
+ export class Participants extends APIResource {
5
+ /**
6
+ * Add a new participant to an existing group chat.
7
+ *
8
+ * **Requirements:**
9
+ *
10
+ * - Group chats only (3+ existing participants)
11
+ * - New participant must support the same messaging service as the group
12
+ * - Cross-service additions not allowed (e.g., can't add RCS-only user to iMessage
13
+ * group)
14
+ * - For cross-service scenarios, create a new chat instead
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const response = await client.chats.participants.add(
19
+ * '550e8400-e29b-41d4-a716-446655440000',
20
+ * { handle: '+12052499136' },
21
+ * );
22
+ * ```
23
+ */
24
+ add(chatID, body, options) {
25
+ return this._client.post(path `/v3/chats/${chatID}/participants`, { body, ...options });
26
+ }
27
+ /**
28
+ * Remove a participant from an existing group chat.
29
+ *
30
+ * **Requirements:**
31
+ *
32
+ * - Group chats only
33
+ * - Must have 3+ participants after removal
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * const participant = await client.chats.participants.remove(
38
+ * '550e8400-e29b-41d4-a716-446655440000',
39
+ * { handle: '+12052499136' },
40
+ * );
41
+ * ```
42
+ */
43
+ remove(chatID, body, options) {
44
+ return this._client.delete(path `/v3/chats/${chatID}/participants`, { body, ...options });
45
+ }
46
+ }
47
+ //# sourceMappingURL=participants.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"participants.mjs","sourceRoot":"","sources":["../../src/resources/chats/participants.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;;;;OAkBG;IACH,GAAG,CACD,MAAc,EACd,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,MAAM,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,MAAc,EACd,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,MAAM,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF"}
@@ -0,0 +1,35 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ export declare class Typing extends APIResource {
5
+ /**
6
+ * Send a typing indicator to show that someone is typing in the chat.
7
+ *
8
+ * **Note:** Group chat typing indicators are not currently supported.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * await client.chats.typing.start(
13
+ * '550e8400-e29b-41d4-a716-446655440000',
14
+ * );
15
+ * ```
16
+ */
17
+ start(chatID: string, options?: RequestOptions): APIPromise<void>;
18
+ /**
19
+ * Stop the typing indicator for the chat.
20
+ *
21
+ * **Note:** Typing indicators are automatically stopped when a message is sent, so
22
+ * calling this endpoint after sending a message is unnecessary.
23
+ *
24
+ * **Note:** Group chat typing indicators are not currently supported.
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * await client.chats.typing.stop(
29
+ * '550e8400-e29b-41d4-a716-446655440000',
30
+ * );
31
+ * ```
32
+ */
33
+ stop(chatID: string, options?: RequestOptions): APIPromise<void>;
34
+ }
35
+ //# sourceMappingURL=typing.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typing.d.mts","sourceRoot":"","sources":["../../src/resources/chats/typing.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOjE;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMjE"}
@@ -0,0 +1,35 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ export declare class Typing extends APIResource {
5
+ /**
6
+ * Send a typing indicator to show that someone is typing in the chat.
7
+ *
8
+ * **Note:** Group chat typing indicators are not currently supported.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * await client.chats.typing.start(
13
+ * '550e8400-e29b-41d4-a716-446655440000',
14
+ * );
15
+ * ```
16
+ */
17
+ start(chatID: string, options?: RequestOptions): APIPromise<void>;
18
+ /**
19
+ * Stop the typing indicator for the chat.
20
+ *
21
+ * **Note:** Typing indicators are automatically stopped when a message is sent, so
22
+ * calling this endpoint after sending a message is unnecessary.
23
+ *
24
+ * **Note:** Group chat typing indicators are not currently supported.
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * await client.chats.typing.stop(
29
+ * '550e8400-e29b-41d4-a716-446655440000',
30
+ * );
31
+ * ```
32
+ */
33
+ stop(chatID: string, options?: RequestOptions): APIPromise<void>;
34
+ }
35
+ //# sourceMappingURL=typing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typing.d.ts","sourceRoot":"","sources":["../../src/resources/chats/typing.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOjE;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMjE"}
@@ -0,0 +1,50 @@
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.Typing = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const headers_1 = require("../../internal/headers.js");
7
+ const path_1 = require("../../internal/utils/path.js");
8
+ class Typing extends resource_1.APIResource {
9
+ /**
10
+ * Send a typing indicator to show that someone is typing in the chat.
11
+ *
12
+ * **Note:** Group chat typing indicators are not currently supported.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * await client.chats.typing.start(
17
+ * '550e8400-e29b-41d4-a716-446655440000',
18
+ * );
19
+ * ```
20
+ */
21
+ start(chatID, options) {
22
+ return this._client.post((0, path_1.path) `/v3/chats/${chatID}/typing`, {
23
+ ...options,
24
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
25
+ });
26
+ }
27
+ /**
28
+ * Stop the typing indicator for the chat.
29
+ *
30
+ * **Note:** Typing indicators are automatically stopped when a message is sent, so
31
+ * calling this endpoint after sending a message is unnecessary.
32
+ *
33
+ * **Note:** Group chat typing indicators are not currently supported.
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * await client.chats.typing.stop(
38
+ * '550e8400-e29b-41d4-a716-446655440000',
39
+ * );
40
+ * ```
41
+ */
42
+ stop(chatID, options) {
43
+ return this._client.delete((0, path_1.path) `/v3/chats/${chatID}/typing`, {
44
+ ...options,
45
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
46
+ });
47
+ }
48
+ }
49
+ exports.Typing = Typing;
50
+ //# sourceMappingURL=typing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typing.js","sourceRoot":"","sources":["../../src/resources/chats/typing.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,MAAc,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,SAAS,EAAE;YACzD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,MAAc,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,SAAS,EAAE;YAC3D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAzCD,wBAyCC"}
@@ -0,0 +1,46 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { buildHeaders } from "../../internal/headers.mjs";
4
+ import { path } from "../../internal/utils/path.mjs";
5
+ export class Typing extends APIResource {
6
+ /**
7
+ * Send a typing indicator to show that someone is typing in the chat.
8
+ *
9
+ * **Note:** Group chat typing indicators are not currently supported.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * await client.chats.typing.start(
14
+ * '550e8400-e29b-41d4-a716-446655440000',
15
+ * );
16
+ * ```
17
+ */
18
+ start(chatID, options) {
19
+ return this._client.post(path `/v3/chats/${chatID}/typing`, {
20
+ ...options,
21
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
22
+ });
23
+ }
24
+ /**
25
+ * Stop the typing indicator for the chat.
26
+ *
27
+ * **Note:** Typing indicators are automatically stopped when a message is sent, so
28
+ * calling this endpoint after sending a message is unnecessary.
29
+ *
30
+ * **Note:** Group chat typing indicators are not currently supported.
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * await client.chats.typing.stop(
35
+ * '550e8400-e29b-41d4-a716-446655440000',
36
+ * );
37
+ * ```
38
+ */
39
+ stop(chatID, options) {
40
+ return this._client.delete(path `/v3/chats/${chatID}/typing`, {
41
+ ...options,
42
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
43
+ });
44
+ }
45
+ }
46
+ //# sourceMappingURL=typing.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typing.mjs","sourceRoot":"","sources":["../../src/resources/chats/typing.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,MAAc,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,MAAM,SAAS,EAAE;YACzD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,MAAc,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,MAAM,SAAS,EAAE;YAC3D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from "./chats/index.mjs";
2
+ //# sourceMappingURL=chats.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chats.d.mts","sourceRoot":"","sources":["../src/resources/chats.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./chats/index.js";
2
+ //# sourceMappingURL=chats.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chats.d.ts","sourceRoot":"","sources":["../src/resources/chats.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
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
+ const tslib_1 = require("../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./chats/index.js"), exports);
6
+ //# sourceMappingURL=chats.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chats.js","sourceRoot":"","sources":["../src/resources/chats.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA8B"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./chats/index.mjs";
3
+ //# sourceMappingURL=chats.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chats.mjs","sourceRoot":"","sources":["../src/resources/chats.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -0,0 +1,6 @@
1
+ export { Attachments, type AttachmentCreateResponse, type AttachmentRetrieveResponse, type AttachmentCreateParams, } from "./attachments.mjs";
2
+ export { Chats, type ChatCreateResponse, type ChatRetrieveResponse, type ChatUpdateResponse, type ChatListResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatUpdateParams, type ChatListParams, type ChatSendVoicememoParams, } from "./chats/chats.mjs";
3
+ export { Messages, type MessageRetrieveResponse, type MessageAddReactionResponse, type MessageRetrieveThreadResponse, type MessageDeleteParams, type MessageAddReactionParams, type MessageRetrieveThreadParams, } from "./messages.mjs";
4
+ export { PhoneNumbers, type PhoneNumberListResponse } from "./phone-numbers.mjs";
5
+ export { Webhooks } from "./webhooks/webhooks.mjs";
6
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,GAC5B;OACM,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,uBAAuB,GAC7B;OACM,EACL,QAAQ,EACR,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,GACjC;OACM,EAAE,YAAY,EAAE,KAAK,uBAAuB,EAAE;OAC9C,EAAE,QAAQ,EAAE"}
@@ -0,0 +1,6 @@
1
+ export { Attachments, type AttachmentCreateResponse, type AttachmentRetrieveResponse, type AttachmentCreateParams, } from "./attachments.js";
2
+ export { Chats, type ChatCreateResponse, type ChatRetrieveResponse, type ChatUpdateResponse, type ChatListResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatUpdateParams, type ChatListParams, type ChatSendVoicememoParams, } from "./chats/chats.js";
3
+ export { Messages, type MessageRetrieveResponse, type MessageAddReactionResponse, type MessageRetrieveThreadResponse, type MessageDeleteParams, type MessageAddReactionParams, type MessageRetrieveThreadParams, } from "./messages.js";
4
+ export { PhoneNumbers, type PhoneNumberListResponse } from "./phone-numbers.js";
5
+ export { Webhooks } from "./webhooks/webhooks.js";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,GAC5B;OACM,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,uBAAuB,GAC7B;OACM,EACL,QAAQ,EACR,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,GACjC;OACM,EAAE,YAAY,EAAE,KAAK,uBAAuB,EAAE;OAC9C,EAAE,QAAQ,EAAE"}