eat518 1.0.0

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 (469) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/LICENSE +201 -0
  3. package/README.md +391 -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 +180 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +180 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +461 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +457 -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 +35 -0
  105. package/internal/parse.js.map +1 -0
  106. package/internal/parse.mjs +32 -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 +138 -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/customer/businesses.d.mts +260 -0
  240. package/resources/customer/businesses.d.mts.map +1 -0
  241. package/resources/customer/businesses.d.ts +260 -0
  242. package/resources/customer/businesses.d.ts.map +1 -0
  243. package/resources/customer/businesses.js +77 -0
  244. package/resources/customer/businesses.js.map +1 -0
  245. package/resources/customer/businesses.mjs +73 -0
  246. package/resources/customer/businesses.mjs.map +1 -0
  247. package/resources/customer/channels.d.mts +34 -0
  248. package/resources/customer/channels.d.mts.map +1 -0
  249. package/resources/customer/channels.d.ts +34 -0
  250. package/resources/customer/channels.d.ts.map +1 -0
  251. package/resources/customer/channels.js +25 -0
  252. package/resources/customer/channels.js.map +1 -0
  253. package/resources/customer/channels.mjs +21 -0
  254. package/resources/customer/channels.mjs.map +1 -0
  255. package/resources/customer/customer.d.mts +151 -0
  256. package/resources/customer/customer.d.mts.map +1 -0
  257. package/resources/customer/customer.d.ts +151 -0
  258. package/resources/customer/customer.d.ts.map +1 -0
  259. package/resources/customer/customer.js +104 -0
  260. package/resources/customer/customer.js.map +1 -0
  261. package/resources/customer/customer.mjs +99 -0
  262. package/resources/customer/customer.mjs.map +1 -0
  263. package/resources/customer/discovery/category.d.mts +84 -0
  264. package/resources/customer/discovery/category.d.mts.map +1 -0
  265. package/resources/customer/discovery/category.d.ts +84 -0
  266. package/resources/customer/discovery/category.d.ts.map +1 -0
  267. package/resources/customer/discovery/category.js +25 -0
  268. package/resources/customer/discovery/category.js.map +1 -0
  269. package/resources/customer/discovery/category.mjs +21 -0
  270. package/resources/customer/discovery/category.mjs.map +1 -0
  271. package/resources/customer/discovery/discovery.d.mts +34 -0
  272. package/resources/customer/discovery/discovery.d.mts.map +1 -0
  273. package/resources/customer/discovery/discovery.d.ts +34 -0
  274. package/resources/customer/discovery/discovery.d.ts.map +1 -0
  275. package/resources/customer/discovery/discovery.js +30 -0
  276. package/resources/customer/discovery/discovery.js.map +1 -0
  277. package/resources/customer/discovery/discovery.mjs +25 -0
  278. package/resources/customer/discovery/discovery.mjs.map +1 -0
  279. package/resources/customer/discovery/index.d.mts +3 -0
  280. package/resources/customer/discovery/index.d.mts.map +1 -0
  281. package/resources/customer/discovery/index.d.ts +3 -0
  282. package/resources/customer/discovery/index.d.ts.map +1 -0
  283. package/resources/customer/discovery/index.js +9 -0
  284. package/resources/customer/discovery/index.js.map +1 -0
  285. package/resources/customer/discovery/index.mjs +4 -0
  286. package/resources/customer/discovery/index.mjs.map +1 -0
  287. package/resources/customer/discovery.d.mts +2 -0
  288. package/resources/customer/discovery.d.mts.map +1 -0
  289. package/resources/customer/discovery.d.ts +2 -0
  290. package/resources/customer/discovery.d.ts.map +1 -0
  291. package/resources/customer/discovery.js +6 -0
  292. package/resources/customer/discovery.js.map +1 -0
  293. package/resources/customer/discovery.mjs +3 -0
  294. package/resources/customer/discovery.mjs.map +1 -0
  295. package/resources/customer/explore.d.mts +59 -0
  296. package/resources/customer/explore.d.mts.map +1 -0
  297. package/resources/customer/explore.d.ts +59 -0
  298. package/resources/customer/explore.d.ts.map +1 -0
  299. package/resources/customer/explore.js +24 -0
  300. package/resources/customer/explore.js.map +1 -0
  301. package/resources/customer/explore.mjs +20 -0
  302. package/resources/customer/explore.mjs.map +1 -0
  303. package/resources/customer/index.d.mts +8 -0
  304. package/resources/customer/index.d.mts.map +1 -0
  305. package/resources/customer/index.d.ts +8 -0
  306. package/resources/customer/index.d.ts.map +1 -0
  307. package/resources/customer/index.js +19 -0
  308. package/resources/customer/index.js.map +1 -0
  309. package/resources/customer/index.mjs +9 -0
  310. package/resources/customer/index.mjs.map +1 -0
  311. package/resources/customer/messaging/conversations/conversations.d.mts +106 -0
  312. package/resources/customer/messaging/conversations/conversations.d.mts.map +1 -0
  313. package/resources/customer/messaging/conversations/conversations.d.ts +106 -0
  314. package/resources/customer/messaging/conversations/conversations.d.ts.map +1 -0
  315. package/resources/customer/messaging/conversations/conversations.js +77 -0
  316. package/resources/customer/messaging/conversations/conversations.js.map +1 -0
  317. package/resources/customer/messaging/conversations/conversations.mjs +72 -0
  318. package/resources/customer/messaging/conversations/conversations.mjs.map +1 -0
  319. package/resources/customer/messaging/conversations/index.d.mts +3 -0
  320. package/resources/customer/messaging/conversations/index.d.mts.map +1 -0
  321. package/resources/customer/messaging/conversations/index.d.ts +3 -0
  322. package/resources/customer/messaging/conversations/index.d.ts.map +1 -0
  323. package/resources/customer/messaging/conversations/index.js +9 -0
  324. package/resources/customer/messaging/conversations/index.js.map +1 -0
  325. package/resources/customer/messaging/conversations/index.mjs +4 -0
  326. package/resources/customer/messaging/conversations/index.mjs.map +1 -0
  327. package/resources/customer/messaging/conversations/messages.d.mts +117 -0
  328. package/resources/customer/messaging/conversations/messages.d.mts.map +1 -0
  329. package/resources/customer/messaging/conversations/messages.d.ts +117 -0
  330. package/resources/customer/messaging/conversations/messages.d.ts.map +1 -0
  331. package/resources/customer/messaging/conversations/messages.js +79 -0
  332. package/resources/customer/messaging/conversations/messages.js.map +1 -0
  333. package/resources/customer/messaging/conversations/messages.mjs +75 -0
  334. package/resources/customer/messaging/conversations/messages.mjs.map +1 -0
  335. package/resources/customer/messaging/conversations.d.mts +2 -0
  336. package/resources/customer/messaging/conversations.d.mts.map +1 -0
  337. package/resources/customer/messaging/conversations.d.ts +2 -0
  338. package/resources/customer/messaging/conversations.d.ts.map +1 -0
  339. package/resources/customer/messaging/conversations.js +6 -0
  340. package/resources/customer/messaging/conversations.js.map +1 -0
  341. package/resources/customer/messaging/conversations.mjs +3 -0
  342. package/resources/customer/messaging/conversations.mjs.map +1 -0
  343. package/resources/customer/messaging/index.d.mts +3 -0
  344. package/resources/customer/messaging/index.d.mts.map +1 -0
  345. package/resources/customer/messaging/index.d.ts +3 -0
  346. package/resources/customer/messaging/index.d.ts.map +1 -0
  347. package/resources/customer/messaging/index.js +9 -0
  348. package/resources/customer/messaging/index.js.map +1 -0
  349. package/resources/customer/messaging/index.mjs +4 -0
  350. package/resources/customer/messaging/index.mjs.map +1 -0
  351. package/resources/customer/messaging/messaging.d.mts +10 -0
  352. package/resources/customer/messaging/messaging.d.mts.map +1 -0
  353. package/resources/customer/messaging/messaging.d.ts +10 -0
  354. package/resources/customer/messaging/messaging.d.ts.map +1 -0
  355. package/resources/customer/messaging/messaging.js +17 -0
  356. package/resources/customer/messaging/messaging.js.map +1 -0
  357. package/resources/customer/messaging/messaging.mjs +12 -0
  358. package/resources/customer/messaging/messaging.mjs.map +1 -0
  359. package/resources/customer/messaging.d.mts +2 -0
  360. package/resources/customer/messaging.d.mts.map +1 -0
  361. package/resources/customer/messaging.d.ts +2 -0
  362. package/resources/customer/messaging.d.ts.map +1 -0
  363. package/resources/customer/messaging.js +6 -0
  364. package/resources/customer/messaging.js.map +1 -0
  365. package/resources/customer/messaging.mjs +3 -0
  366. package/resources/customer/messaging.mjs.map +1 -0
  367. package/resources/customer/tokens.d.mts +43 -0
  368. package/resources/customer/tokens.d.mts.map +1 -0
  369. package/resources/customer/tokens.d.ts +43 -0
  370. package/resources/customer/tokens.d.ts.map +1 -0
  371. package/resources/customer/tokens.js +34 -0
  372. package/resources/customer/tokens.js.map +1 -0
  373. package/resources/customer/tokens.mjs +30 -0
  374. package/resources/customer/tokens.mjs.map +1 -0
  375. package/resources/customer.d.mts +2 -0
  376. package/resources/customer.d.mts.map +1 -0
  377. package/resources/customer.d.ts +2 -0
  378. package/resources/customer.d.ts.map +1 -0
  379. package/resources/customer.js +6 -0
  380. package/resources/customer.js.map +1 -0
  381. package/resources/customer.mjs +3 -0
  382. package/resources/customer.mjs.map +1 -0
  383. package/resources/index.d.mts +2 -0
  384. package/resources/index.d.mts.map +1 -0
  385. package/resources/index.d.ts +2 -0
  386. package/resources/index.d.ts.map +1 -0
  387. package/resources/index.js +7 -0
  388. package/resources/index.js.map +1 -0
  389. package/resources/index.mjs +3 -0
  390. package/resources/index.mjs.map +1 -0
  391. package/resources.d.mts +2 -0
  392. package/resources.d.mts.map +1 -0
  393. package/resources.d.ts +2 -0
  394. package/resources.d.ts.map +1 -0
  395. package/resources.js +5 -0
  396. package/resources.js.map +1 -0
  397. package/resources.mjs +2 -0
  398. package/resources.mjs.map +1 -0
  399. package/src/api-promise.ts +2 -0
  400. package/src/client.ts +748 -0
  401. package/src/core/README.md +3 -0
  402. package/src/core/api-promise.ts +92 -0
  403. package/src/core/error.ts +130 -0
  404. package/src/core/resource.ts +11 -0
  405. package/src/core/uploads.ts +2 -0
  406. package/src/error.ts +2 -0
  407. package/src/index.ts +22 -0
  408. package/src/internal/README.md +3 -0
  409. package/src/internal/builtin-types.ts +93 -0
  410. package/src/internal/detect-platform.ts +196 -0
  411. package/src/internal/errors.ts +33 -0
  412. package/src/internal/headers.ts +97 -0
  413. package/src/internal/parse.ts +50 -0
  414. package/src/internal/request-options.ts +91 -0
  415. package/src/internal/shim-types.ts +26 -0
  416. package/src/internal/shims.ts +107 -0
  417. package/src/internal/to-file.ts +154 -0
  418. package/src/internal/types.ts +95 -0
  419. package/src/internal/uploads.ts +187 -0
  420. package/src/internal/utils/base64.ts +40 -0
  421. package/src/internal/utils/bytes.ts +32 -0
  422. package/src/internal/utils/env.ts +18 -0
  423. package/src/internal/utils/log.ts +126 -0
  424. package/src/internal/utils/path.ts +88 -0
  425. package/src/internal/utils/sleep.ts +3 -0
  426. package/src/internal/utils/uuid.ts +17 -0
  427. package/src/internal/utils/values.ts +105 -0
  428. package/src/internal/utils.ts +8 -0
  429. package/src/lib/.keep +4 -0
  430. package/src/resource.ts +2 -0
  431. package/src/resources/customer/businesses.ts +397 -0
  432. package/src/resources/customer/channels.ts +45 -0
  433. package/src/resources/customer/customer.ts +249 -0
  434. package/src/resources/customer/discovery/category.ts +127 -0
  435. package/src/resources/customer/discovery/discovery.ts +51 -0
  436. package/src/resources/customer/discovery/index.ts +4 -0
  437. package/src/resources/customer/discovery.ts +3 -0
  438. package/src/resources/customer/explore.ts +87 -0
  439. package/src/resources/customer/index.ts +33 -0
  440. package/src/resources/customer/messaging/conversations/conversations.ts +173 -0
  441. package/src/resources/customer/messaging/conversations/index.ts +21 -0
  442. package/src/resources/customer/messaging/conversations/messages.ts +184 -0
  443. package/src/resources/customer/messaging/conversations.ts +3 -0
  444. package/src/resources/customer/messaging/index.ts +12 -0
  445. package/src/resources/customer/messaging/messaging.ts +31 -0
  446. package/src/resources/customer/messaging.ts +3 -0
  447. package/src/resources/customer/tokens.ts +58 -0
  448. package/src/resources/customer.ts +3 -0
  449. package/src/resources/index.ts +14 -0
  450. package/src/resources.ts +1 -0
  451. package/src/tsconfig.json +11 -0
  452. package/src/uploads.ts +2 -0
  453. package/src/version.ts +1 -0
  454. package/uploads.d.mts +2 -0
  455. package/uploads.d.mts.map +1 -0
  456. package/uploads.d.ts +2 -0
  457. package/uploads.d.ts.map +1 -0
  458. package/uploads.js +6 -0
  459. package/uploads.js.map +1 -0
  460. package/uploads.mjs +2 -0
  461. package/uploads.mjs.map +1 -0
  462. package/version.d.mts +2 -0
  463. package/version.d.mts.map +1 -0
  464. package/version.d.ts +2 -0
  465. package/version.d.ts.map +1 -0
  466. package/version.js +5 -0
  467. package/version.js.map +1 -0
  468. package/version.mjs +2 -0
  469. package/version.mjs.map +1 -0
@@ -0,0 +1,260 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as BusinessesAPI from "./businesses.js";
3
+ import { APIPromise } from "../../core/api-promise.js";
4
+ import { RequestOptions } from "../../internal/request-options.js";
5
+ export declare class Businesses extends APIResource {
6
+ /**
7
+ * Retrieve business announcements and updates with pagination.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const response =
12
+ * await client.customer.businesses.getBulletins(
13
+ * 'katzs-deli',
14
+ * );
15
+ * ```
16
+ */
17
+ getBulletins(handle: string, query?: BusinessGetBulletinsParams | null | undefined, options?: RequestOptions): APIPromise<BusinessGetBulletinsResponse>;
18
+ /**
19
+ * Retrieve upcoming events for the business with pagination.
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const response = await client.customer.businesses.getEvents(
24
+ * 'katzs-deli',
25
+ * );
26
+ * ```
27
+ */
28
+ getEvents(handle: string, query?: BusinessGetEventsParams | null | undefined, options?: RequestOptions): APIPromise<BusinessGetEventsResponse>;
29
+ /**
30
+ * Retrieve all menus organized by groups for the business.
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * const response = await client.customer.businesses.getMenus(
35
+ * 'katzs-deli',
36
+ * );
37
+ * ```
38
+ */
39
+ getMenus(handle: string, query?: BusinessGetMenusParams | null | undefined, options?: RequestOptions): APIPromise<BusinessGetMenusResponse>;
40
+ /**
41
+ * Retrieve photo gallery for the business with pagination.
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * const response = await client.customer.businesses.getPhotos(
46
+ * 'katzs-deli',
47
+ * );
48
+ * ```
49
+ */
50
+ getPhotos(handle: string, query?: BusinessGetPhotosParams | null | undefined, options?: RequestOptions): APIPromise<BusinessGetPhotosResponse>;
51
+ /**
52
+ * Retrieve core business information for the profile page.
53
+ *
54
+ * @example
55
+ * ```ts
56
+ * const response =
57
+ * await client.customer.businesses.retrieveProfile(
58
+ * 'katzs-deli',
59
+ * );
60
+ * ```
61
+ */
62
+ retrieveProfile(handle: string, options?: RequestOptions): APIPromise<BusinessRetrieveProfileResponse>;
63
+ }
64
+ export interface Image {
65
+ id: string;
66
+ alt_text: string | null;
67
+ created_at: string | null;
68
+ disk: string;
69
+ filename: string;
70
+ imageable_id: string;
71
+ imageable_type: string;
72
+ mime_type: string | null;
73
+ original_filename: string;
74
+ path: string;
75
+ size: number | null;
76
+ sort_order: number;
77
+ updated_at: string | null;
78
+ url: string;
79
+ }
80
+ export interface Pagination {
81
+ current_page: string;
82
+ has_more: string;
83
+ per_page: string;
84
+ total: string;
85
+ }
86
+ export interface BusinessGetBulletinsResponse {
87
+ data: BusinessGetBulletinsResponse.Data;
88
+ }
89
+ export declare namespace BusinessGetBulletinsResponse {
90
+ interface Data {
91
+ bulletins: Array<Data.Bulletin>;
92
+ pagination: BusinessesAPI.Pagination;
93
+ }
94
+ namespace Data {
95
+ interface Bulletin {
96
+ id: string;
97
+ content: string;
98
+ published_at: string | null;
99
+ title: string;
100
+ }
101
+ }
102
+ }
103
+ export interface BusinessGetEventsResponse {
104
+ data: BusinessGetEventsResponse.Data;
105
+ }
106
+ export declare namespace BusinessGetEventsResponse {
107
+ interface Data {
108
+ events: Array<Data.Event>;
109
+ pagination: BusinessesAPI.Pagination;
110
+ }
111
+ namespace Data {
112
+ interface Event {
113
+ id: string;
114
+ description: string | null;
115
+ ends_at: string;
116
+ image: BusinessesAPI.Image;
117
+ starts_at: string;
118
+ title: string;
119
+ }
120
+ }
121
+ }
122
+ export interface BusinessGetMenusResponse {
123
+ data: BusinessGetMenusResponse.Data;
124
+ }
125
+ export declare namespace BusinessGetMenusResponse {
126
+ interface Data {
127
+ menus: Array<Data.Menu>;
128
+ pagination: BusinessesAPI.Pagination;
129
+ }
130
+ namespace Data {
131
+ interface Menu {
132
+ id: string;
133
+ description: string | null;
134
+ groups: Array<Menu.Group>;
135
+ name: string;
136
+ }
137
+ namespace Menu {
138
+ interface Group {
139
+ id: string;
140
+ description: string | null;
141
+ items: Array<Group.Item>;
142
+ name: string;
143
+ }
144
+ namespace Group {
145
+ interface Item {
146
+ id: string;
147
+ allergens: Array<Item.Allergen>;
148
+ description: string | null;
149
+ image: BusinessesAPI.Image;
150
+ name: string;
151
+ price: string | null;
152
+ }
153
+ namespace Item {
154
+ interface Allergen {
155
+ id: string;
156
+ color: string;
157
+ created_at: string | null;
158
+ description: string | null;
159
+ icon: string | null;
160
+ name: string;
161
+ slug: string;
162
+ updated_at: string | null;
163
+ }
164
+ }
165
+ }
166
+ }
167
+ }
168
+ }
169
+ export interface BusinessGetPhotosResponse {
170
+ data: BusinessGetPhotosResponse.Data;
171
+ }
172
+ export declare namespace BusinessGetPhotosResponse {
173
+ interface Data {
174
+ pagination: BusinessesAPI.Pagination;
175
+ photos: Array<Data.Photo>;
176
+ }
177
+ namespace Data {
178
+ interface Photo {
179
+ id: string;
180
+ alt_text: string;
181
+ url: string;
182
+ }
183
+ }
184
+ }
185
+ export interface BusinessRetrieveProfileResponse {
186
+ data: BusinessRetrieveProfileResponse.Data;
187
+ }
188
+ export declare namespace BusinessRetrieveProfileResponse {
189
+ interface Data {
190
+ id: string;
191
+ address: string;
192
+ category: string;
193
+ city: string;
194
+ cover_photo: string;
195
+ description: string;
196
+ handle: string;
197
+ hours: {
198
+ [key: string]: Data.Hours;
199
+ };
200
+ latitude: number;
201
+ logo: string;
202
+ longitude: number;
203
+ name: string;
204
+ phone: string;
205
+ state: string;
206
+ website: string;
207
+ zip: string;
208
+ }
209
+ namespace Data {
210
+ interface Hours {
211
+ closeTime: string;
212
+ isOpen: boolean;
213
+ openTime: string;
214
+ }
215
+ }
216
+ }
217
+ export interface BusinessGetBulletinsParams {
218
+ /**
219
+ * Page number for pagination
220
+ */
221
+ page?: number;
222
+ /**
223
+ * Number of bulletins per page
224
+ */
225
+ per_page?: number;
226
+ }
227
+ export interface BusinessGetEventsParams {
228
+ /**
229
+ * Page number for pagination
230
+ */
231
+ page?: number;
232
+ /**
233
+ * Number of events per page
234
+ */
235
+ per_page?: number;
236
+ }
237
+ export interface BusinessGetMenusParams {
238
+ /**
239
+ * Page number for pagination
240
+ */
241
+ page?: number;
242
+ /**
243
+ * Number of items per page
244
+ */
245
+ per_page?: number;
246
+ }
247
+ export interface BusinessGetPhotosParams {
248
+ /**
249
+ * Page number for pagination
250
+ */
251
+ page?: number;
252
+ /**
253
+ * Number of photos per page
254
+ */
255
+ per_page?: number;
256
+ }
257
+ export declare namespace Businesses {
258
+ export { type Image as Image, type Pagination as Pagination, type BusinessGetBulletinsResponse as BusinessGetBulletinsResponse, type BusinessGetEventsResponse as BusinessGetEventsResponse, type BusinessGetMenusResponse as BusinessGetMenusResponse, type BusinessGetPhotosResponse as BusinessGetPhotosResponse, type BusinessRetrieveProfileResponse as BusinessRetrieveProfileResponse, type BusinessGetBulletinsParams as BusinessGetBulletinsParams, type BusinessGetEventsParams as BusinessGetEventsParams, type BusinessGetMenusParams as BusinessGetMenusParams, type BusinessGetPhotosParams as BusinessGetPhotosParams, };
259
+ }
260
+ //# sourceMappingURL=businesses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"businesses.d.ts","sourceRoot":"","sources":["../../src/resources/customer/businesses.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;OAUG;IACH,YAAY,CACV,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,0BAA0B,GAAG,IAAI,GAAG,SAAc,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAI3C;;;;;;;;;OASG;IACH,SAAS,CACP,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;IAIxC;;;;;;;;;OASG;IACH,QAAQ,CACN,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;;;;;;;;OASG;IACH,SAAS,CACP,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;IAIxC;;;;;;;;;;OAUG;IACH,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,+BAA+B,CAAC;CAGvG;AAED,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IAEX,QAAQ,EAAE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,IAAI,0BAA0B,EAC7D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
@@ -0,0 +1,77 @@
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.Businesses = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const path_1 = require("../../internal/utils/path.js");
7
+ class Businesses extends resource_1.APIResource {
8
+ /**
9
+ * Retrieve business announcements and updates with pagination.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const response =
14
+ * await client.customer.businesses.getBulletins(
15
+ * 'katzs-deli',
16
+ * );
17
+ * ```
18
+ */
19
+ getBulletins(handle, query = {}, options) {
20
+ return this._client.get((0, path_1.path) `/customer/businesses/${handle}/bulletins`, { query, ...options });
21
+ }
22
+ /**
23
+ * Retrieve upcoming events for the business with pagination.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const response = await client.customer.businesses.getEvents(
28
+ * 'katzs-deli',
29
+ * );
30
+ * ```
31
+ */
32
+ getEvents(handle, query = {}, options) {
33
+ return this._client.get((0, path_1.path) `/customer/businesses/${handle}/events`, { query, ...options });
34
+ }
35
+ /**
36
+ * Retrieve all menus organized by groups for the business.
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * const response = await client.customer.businesses.getMenus(
41
+ * 'katzs-deli',
42
+ * );
43
+ * ```
44
+ */
45
+ getMenus(handle, query = {}, options) {
46
+ return this._client.get((0, path_1.path) `/customer/businesses/${handle}/menus`, { query, ...options });
47
+ }
48
+ /**
49
+ * Retrieve photo gallery for the business with pagination.
50
+ *
51
+ * @example
52
+ * ```ts
53
+ * const response = await client.customer.businesses.getPhotos(
54
+ * 'katzs-deli',
55
+ * );
56
+ * ```
57
+ */
58
+ getPhotos(handle, query = {}, options) {
59
+ return this._client.get((0, path_1.path) `/customer/businesses/${handle}/photos`, { query, ...options });
60
+ }
61
+ /**
62
+ * Retrieve core business information for the profile page.
63
+ *
64
+ * @example
65
+ * ```ts
66
+ * const response =
67
+ * await client.customer.businesses.retrieveProfile(
68
+ * 'katzs-deli',
69
+ * );
70
+ * ```
71
+ */
72
+ retrieveProfile(handle, options) {
73
+ return this._client.get((0, path_1.path) `/customer/businesses/${handle}`, options);
74
+ }
75
+ }
76
+ exports.Businesses = Businesses;
77
+ //# sourceMappingURL=businesses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"businesses.js","sourceRoot":"","sources":["../../src/resources/customer/businesses.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;OAUG;IACH,YAAY,CACV,MAAc,EACd,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,MAAM,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;;;;;;;;OASG;IACH,SAAS,CACP,MAAc,EACd,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,MAAM,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CACN,MAAc,EACd,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,MAAM,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;OASG;IACH,SAAS,CACP,MAAc,EACd,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,MAAM,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;;;;;;;;;OAUG;IACH,eAAe,CAAC,MAAc,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AAxFD,gCAwFC"}
@@ -0,0 +1,73 @@
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 Businesses extends APIResource {
5
+ /**
6
+ * Retrieve business announcements and updates with pagination.
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const response =
11
+ * await client.customer.businesses.getBulletins(
12
+ * 'katzs-deli',
13
+ * );
14
+ * ```
15
+ */
16
+ getBulletins(handle, query = {}, options) {
17
+ return this._client.get(path `/customer/businesses/${handle}/bulletins`, { query, ...options });
18
+ }
19
+ /**
20
+ * Retrieve upcoming events for the business with pagination.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const response = await client.customer.businesses.getEvents(
25
+ * 'katzs-deli',
26
+ * );
27
+ * ```
28
+ */
29
+ getEvents(handle, query = {}, options) {
30
+ return this._client.get(path `/customer/businesses/${handle}/events`, { query, ...options });
31
+ }
32
+ /**
33
+ * Retrieve all menus organized by groups for the business.
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * const response = await client.customer.businesses.getMenus(
38
+ * 'katzs-deli',
39
+ * );
40
+ * ```
41
+ */
42
+ getMenus(handle, query = {}, options) {
43
+ return this._client.get(path `/customer/businesses/${handle}/menus`, { query, ...options });
44
+ }
45
+ /**
46
+ * Retrieve photo gallery for the business with pagination.
47
+ *
48
+ * @example
49
+ * ```ts
50
+ * const response = await client.customer.businesses.getPhotos(
51
+ * 'katzs-deli',
52
+ * );
53
+ * ```
54
+ */
55
+ getPhotos(handle, query = {}, options) {
56
+ return this._client.get(path `/customer/businesses/${handle}/photos`, { query, ...options });
57
+ }
58
+ /**
59
+ * Retrieve core business information for the profile page.
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * const response =
64
+ * await client.customer.businesses.retrieveProfile(
65
+ * 'katzs-deli',
66
+ * );
67
+ * ```
68
+ */
69
+ retrieveProfile(handle, options) {
70
+ return this._client.get(path `/customer/businesses/${handle}`, options);
71
+ }
72
+ }
73
+ //# sourceMappingURL=businesses.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"businesses.mjs","sourceRoot":"","sources":["../../src/resources/customer/businesses.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;OAUG;IACH,YAAY,CACV,MAAc,EACd,QAAuD,EAAE,EACzD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,MAAM,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;;;;;;;;OASG;IACH,SAAS,CACP,MAAc,EACd,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,MAAM,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CACN,MAAc,EACd,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,MAAM,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;OASG;IACH,SAAS,CACP,MAAc,EACd,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,MAAM,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;;;;;;;;;OAUG;IACH,eAAe,CAAC,MAAc,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF"}
@@ -0,0 +1,34 @@
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 Channels extends APIResource {
5
+ /**
6
+ * This endpoint is used by the mobile app to authenticate with Pusher channels. It
7
+ * validates that the user has permission to access the requested channel.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const response =
12
+ * await client.customer.channels.authenticate({
13
+ * channel_name: 'channel_name',
14
+ * socket_id: 'socket_id',
15
+ * });
16
+ * ```
17
+ */
18
+ authenticate(body: ChannelAuthenticateParams, options?: RequestOptions): APIPromise<string>;
19
+ }
20
+ export type ChannelAuthenticateResponse = string;
21
+ export interface ChannelAuthenticateParams {
22
+ /**
23
+ * string
24
+ */
25
+ channel_name: string;
26
+ /**
27
+ * string
28
+ */
29
+ socket_id: string;
30
+ }
31
+ export declare namespace Channels {
32
+ export { type ChannelAuthenticateResponse as ChannelAuthenticateResponse, type ChannelAuthenticateParams as ChannelAuthenticateParams, };
33
+ }
34
+ //# sourceMappingURL=channels.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channels.d.mts","sourceRoot":"","sources":["../../src/resources/customer/channels.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;CAG5F;AAED,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAC;AAEjD,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -0,0 +1,34 @@
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 Channels extends APIResource {
5
+ /**
6
+ * This endpoint is used by the mobile app to authenticate with Pusher channels. It
7
+ * validates that the user has permission to access the requested channel.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * const response =
12
+ * await client.customer.channels.authenticate({
13
+ * channel_name: 'channel_name',
14
+ * socket_id: 'socket_id',
15
+ * });
16
+ * ```
17
+ */
18
+ authenticate(body: ChannelAuthenticateParams, options?: RequestOptions): APIPromise<string>;
19
+ }
20
+ export type ChannelAuthenticateResponse = string;
21
+ export interface ChannelAuthenticateParams {
22
+ /**
23
+ * string
24
+ */
25
+ channel_name: string;
26
+ /**
27
+ * string
28
+ */
29
+ socket_id: string;
30
+ }
31
+ export declare namespace Channels {
32
+ export { type ChannelAuthenticateResponse as ChannelAuthenticateResponse, type ChannelAuthenticateParams as ChannelAuthenticateParams, };
33
+ }
34
+ //# sourceMappingURL=channels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../src/resources/customer/channels.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;CAG5F;AAED,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAC;AAEjD,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -0,0 +1,25 @@
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.Channels = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ class Channels extends resource_1.APIResource {
7
+ /**
8
+ * This endpoint is used by the mobile app to authenticate with Pusher channels. It
9
+ * validates that the user has permission to access the requested channel.
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const response =
14
+ * await client.customer.channels.authenticate({
15
+ * channel_name: 'channel_name',
16
+ * socket_id: 'socket_id',
17
+ * });
18
+ * ```
19
+ */
20
+ authenticate(body, options) {
21
+ return this._client.post('/customer/channels/auth', { body, ...options });
22
+ }
23
+ }
24
+ exports.Channels = Channels;
25
+ //# sourceMappingURL=channels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channels.js","sourceRoot":"","sources":["../../src/resources/customer/channels.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,IAA+B,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AAjBD,4BAiBC"}
@@ -0,0 +1,21 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ export class Channels extends APIResource {
4
+ /**
5
+ * This endpoint is used by the mobile app to authenticate with Pusher channels. It
6
+ * validates that the user has permission to access the requested channel.
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const response =
11
+ * await client.customer.channels.authenticate({
12
+ * channel_name: 'channel_name',
13
+ * socket_id: 'socket_id',
14
+ * });
15
+ * ```
16
+ */
17
+ authenticate(body, options) {
18
+ return this._client.post('/customer/channels/auth', { body, ...options });
19
+ }
20
+ }
21
+ //# sourceMappingURL=channels.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channels.mjs","sourceRoot":"","sources":["../../src/resources/customer/channels.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,IAA+B,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}