@lorikeetai/node-sdk 1.8.1 → 2.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 (572) hide show
  1. package/CHANGELOG.md +38 -787
  2. package/README.md +114 -44
  3. package/api-promise.d.mts +2 -0
  4. package/api-promise.d.mts.map +1 -0
  5. package/api-promise.d.ts +2 -0
  6. package/api-promise.d.ts.map +1 -0
  7. package/api-promise.js +6 -0
  8. package/api-promise.js.map +1 -0
  9. package/api-promise.mjs +2 -0
  10. package/api-promise.mjs.map +1 -0
  11. package/bin/cli +53 -0
  12. package/bin/migration-config.json +50 -0
  13. package/client.d.mts +197 -0
  14. package/client.d.mts.map +1 -0
  15. package/client.d.ts +197 -0
  16. package/client.d.ts.map +1 -0
  17. package/client.js +504 -0
  18. package/client.js.map +1 -0
  19. package/client.mjs +500 -0
  20. package/client.mjs.map +1 -0
  21. package/core/api-promise.d.mts +46 -0
  22. package/core/api-promise.d.mts.map +1 -0
  23. package/core/api-promise.d.ts +46 -0
  24. package/core/api-promise.d.ts.map +1 -0
  25. package/core/api-promise.js +74 -0
  26. package/core/api-promise.js.map +1 -0
  27. package/core/api-promise.mjs +70 -0
  28. package/core/api-promise.mjs.map +1 -0
  29. package/core/error.d.mts +46 -0
  30. package/core/error.d.mts.map +1 -0
  31. package/core/error.d.ts +46 -0
  32. package/core/error.d.ts.map +1 -0
  33. package/core/error.js +113 -0
  34. package/core/error.js.map +1 -0
  35. package/core/error.mjs +97 -0
  36. package/core/error.mjs.map +1 -0
  37. package/core/resource.d.mts +6 -0
  38. package/core/resource.d.mts.map +1 -0
  39. package/core/resource.d.ts +6 -0
  40. package/core/resource.d.ts.map +1 -0
  41. package/core/resource.js +11 -0
  42. package/core/resource.js.map +1 -0
  43. package/core/resource.mjs +7 -0
  44. package/core/resource.mjs.map +1 -0
  45. package/core/uploads.d.mts +3 -0
  46. package/core/uploads.d.mts.map +1 -0
  47. package/core/uploads.d.ts +3 -0
  48. package/core/uploads.d.ts.map +1 -0
  49. package/core/uploads.js +6 -0
  50. package/core/uploads.js.map +1 -0
  51. package/core/uploads.mjs +2 -0
  52. package/core/uploads.mjs.map +1 -0
  53. package/error.d.mts +2 -0
  54. package/error.d.mts.map +1 -0
  55. package/error.d.ts +1 -46
  56. package/error.d.ts.map +1 -1
  57. package/error.js +3 -110
  58. package/error.js.map +1 -1
  59. package/error.mjs +1 -96
  60. package/error.mjs.map +1 -1
  61. package/index.d.mts +7 -131
  62. package/index.d.mts.map +1 -0
  63. package/index.d.ts +6 -130
  64. package/index.d.ts.map +1 -1
  65. package/index.js +14 -142
  66. package/index.js.map +1 -1
  67. package/index.mjs +6 -114
  68. package/index.mjs.map +1 -1
  69. package/internal/builtin-types.d.mts +73 -0
  70. package/internal/builtin-types.d.mts.map +1 -0
  71. package/internal/builtin-types.d.ts +73 -0
  72. package/internal/builtin-types.d.ts.map +1 -0
  73. package/internal/builtin-types.js +4 -0
  74. package/internal/builtin-types.js.map +1 -0
  75. package/internal/builtin-types.mjs +3 -0
  76. package/internal/builtin-types.mjs.map +1 -0
  77. package/internal/detect-platform.d.mts +15 -0
  78. package/internal/detect-platform.d.mts.map +1 -0
  79. package/internal/detect-platform.d.ts +15 -0
  80. package/internal/detect-platform.d.ts.map +1 -0
  81. package/internal/detect-platform.js +162 -0
  82. package/internal/detect-platform.js.map +1 -0
  83. package/internal/detect-platform.mjs +157 -0
  84. package/internal/detect-platform.mjs.map +1 -0
  85. package/internal/errors.d.mts +3 -0
  86. package/internal/errors.d.mts.map +1 -0
  87. package/internal/errors.d.ts +3 -0
  88. package/internal/errors.d.ts.map +1 -0
  89. package/internal/errors.js +41 -0
  90. package/internal/errors.js.map +1 -0
  91. package/internal/errors.mjs +36 -0
  92. package/internal/errors.mjs.map +1 -0
  93. package/internal/headers.d.mts +20 -0
  94. package/internal/headers.d.mts.map +1 -0
  95. package/internal/headers.d.ts +20 -0
  96. package/internal/headers.d.ts.map +1 -0
  97. package/internal/headers.js +79 -0
  98. package/internal/headers.js.map +1 -0
  99. package/internal/headers.mjs +74 -0
  100. package/internal/headers.mjs.map +1 -0
  101. package/internal/parse.d.mts +12 -0
  102. package/internal/parse.d.mts.map +1 -0
  103. package/internal/parse.d.ts +12 -0
  104. package/internal/parse.d.ts.map +1 -0
  105. package/internal/parse.js +40 -0
  106. package/internal/parse.js.map +1 -0
  107. package/internal/parse.mjs +37 -0
  108. package/internal/parse.mjs.map +1 -0
  109. package/internal/request-options.d.mts +75 -0
  110. package/internal/request-options.d.mts.map +1 -0
  111. package/internal/request-options.d.ts +75 -0
  112. package/internal/request-options.d.ts.map +1 -0
  113. package/internal/request-options.js +14 -0
  114. package/internal/request-options.js.map +1 -0
  115. package/internal/request-options.mjs +10 -0
  116. package/internal/request-options.mjs.map +1 -0
  117. package/internal/shim-types.d.mts +17 -0
  118. package/internal/shim-types.d.mts.map +1 -0
  119. package/internal/shim-types.d.ts +17 -0
  120. package/internal/shim-types.d.ts.map +1 -0
  121. package/internal/shim-types.js +4 -0
  122. package/internal/shim-types.js.map +1 -0
  123. package/internal/shim-types.mjs +3 -0
  124. package/internal/shim-types.mjs.map +1 -0
  125. package/internal/shims.d.mts +20 -0
  126. package/internal/shims.d.mts.map +1 -0
  127. package/internal/shims.d.ts +20 -0
  128. package/internal/shims.d.ts.map +1 -0
  129. package/internal/shims.js +92 -0
  130. package/internal/shims.js.map +1 -0
  131. package/internal/shims.mjs +85 -0
  132. package/internal/shims.mjs.map +1 -0
  133. package/internal/to-file.d.mts +45 -0
  134. package/internal/to-file.d.mts.map +1 -0
  135. package/internal/to-file.d.ts +45 -0
  136. package/internal/to-file.d.ts.map +1 -0
  137. package/internal/to-file.js +92 -0
  138. package/internal/to-file.js.map +1 -0
  139. package/internal/to-file.mjs +89 -0
  140. package/internal/to-file.mjs.map +1 -0
  141. package/internal/tslib.js +81 -0
  142. package/internal/tslib.mjs +17 -0
  143. package/internal/types.d.mts +69 -0
  144. package/internal/types.d.mts.map +1 -0
  145. package/internal/types.d.ts +69 -0
  146. package/internal/types.d.ts.map +1 -0
  147. package/internal/types.js +4 -0
  148. package/internal/types.js.map +1 -0
  149. package/internal/types.mjs +3 -0
  150. package/internal/types.mjs.map +1 -0
  151. package/internal/uploads.d.mts +42 -0
  152. package/internal/uploads.d.mts.map +1 -0
  153. package/internal/uploads.d.ts +42 -0
  154. package/internal/uploads.d.ts.map +1 -0
  155. package/internal/uploads.js +141 -0
  156. package/internal/uploads.js.map +1 -0
  157. package/internal/uploads.mjs +131 -0
  158. package/internal/uploads.mjs.map +1 -0
  159. package/internal/utils/base64.d.mts +3 -0
  160. package/internal/utils/base64.d.mts.map +1 -0
  161. package/internal/utils/base64.d.ts +3 -0
  162. package/internal/utils/base64.d.ts.map +1 -0
  163. package/internal/utils/base64.js +38 -0
  164. package/internal/utils/base64.js.map +1 -0
  165. package/internal/utils/base64.mjs +33 -0
  166. package/internal/utils/base64.mjs.map +1 -0
  167. package/internal/utils/bytes.d.mts +4 -0
  168. package/internal/utils/bytes.d.mts.map +1 -0
  169. package/internal/utils/bytes.d.ts +4 -0
  170. package/internal/utils/bytes.d.ts.map +1 -0
  171. package/internal/utils/bytes.js +31 -0
  172. package/internal/utils/bytes.js.map +1 -0
  173. package/internal/utils/bytes.mjs +26 -0
  174. package/internal/utils/bytes.mjs.map +1 -0
  175. package/internal/utils/env.d.mts +9 -0
  176. package/internal/utils/env.d.mts.map +1 -0
  177. package/internal/utils/env.d.ts +9 -0
  178. package/internal/utils/env.d.ts.map +1 -0
  179. package/internal/utils/env.js +22 -0
  180. package/internal/utils/env.js.map +1 -0
  181. package/internal/utils/env.mjs +18 -0
  182. package/internal/utils/env.mjs.map +1 -0
  183. package/internal/utils/log.d.mts +37 -0
  184. package/internal/utils/log.d.mts.map +1 -0
  185. package/internal/utils/log.d.ts +37 -0
  186. package/internal/utils/log.d.ts.map +1 -0
  187. package/internal/utils/log.js +86 -0
  188. package/internal/utils/log.js.map +1 -0
  189. package/internal/utils/log.mjs +80 -0
  190. package/internal/utils/log.mjs.map +1 -0
  191. package/internal/utils/path.d.mts +15 -0
  192. package/internal/utils/path.d.mts.map +1 -0
  193. package/internal/utils/path.d.ts +15 -0
  194. package/internal/utils/path.d.ts.map +1 -0
  195. package/internal/utils/path.js +79 -0
  196. package/internal/utils/path.js.map +1 -0
  197. package/internal/utils/path.mjs +74 -0
  198. package/internal/utils/path.mjs.map +1 -0
  199. package/internal/utils/sleep.d.mts +2 -0
  200. package/internal/utils/sleep.d.mts.map +1 -0
  201. package/internal/utils/sleep.d.ts +2 -0
  202. package/internal/utils/sleep.d.ts.map +1 -0
  203. package/internal/utils/sleep.js +7 -0
  204. package/internal/utils/sleep.js.map +1 -0
  205. package/internal/utils/sleep.mjs +3 -0
  206. package/internal/utils/sleep.mjs.map +1 -0
  207. package/internal/utils/uuid.d.mts +5 -0
  208. package/internal/utils/uuid.d.mts.map +1 -0
  209. package/internal/utils/uuid.d.ts +5 -0
  210. package/internal/utils/uuid.d.ts.map +1 -0
  211. package/internal/utils/uuid.js +19 -0
  212. package/internal/utils/uuid.js.map +1 -0
  213. package/internal/utils/uuid.mjs +15 -0
  214. package/internal/utils/uuid.mjs.map +1 -0
  215. package/internal/utils/values.d.mts +18 -0
  216. package/internal/utils/values.d.mts.map +1 -0
  217. package/internal/utils/values.d.ts +18 -0
  218. package/internal/utils/values.d.ts.map +1 -0
  219. package/internal/utils/values.js +112 -0
  220. package/internal/utils/values.js.map +1 -0
  221. package/internal/utils/values.mjs +94 -0
  222. package/internal/utils/values.mjs.map +1 -0
  223. package/internal/utils.d.mts +7 -0
  224. package/internal/utils.d.mts.map +1 -0
  225. package/internal/utils.d.ts +7 -0
  226. package/internal/utils.d.ts.map +1 -0
  227. package/internal/utils.js +11 -0
  228. package/internal/utils.js.map +1 -0
  229. package/internal/utils.mjs +8 -0
  230. package/internal/utils.mjs.map +1 -0
  231. package/lib/generate-signature.d.mts +7 -0
  232. package/lib/generate-signature.d.mts.map +1 -0
  233. package/lib/generate-signature.d.ts +1 -1
  234. package/lib/generate-signature.d.ts.map +1 -1
  235. package/lib/generate-signature.js +3 -3
  236. package/lib/generate-signature.js.map +1 -1
  237. package/lib/generate-signature.mjs +1 -1
  238. package/lib/generate-signature.mjs.map +1 -1
  239. package/lib/poll-until.d.mts +20 -0
  240. package/lib/poll-until.d.mts.map +1 -0
  241. package/lib/poll-until.d.ts.map +1 -1
  242. package/lib/promise.d.mts +55 -0
  243. package/lib/promise.d.mts.map +1 -0
  244. package/package.json +125 -74
  245. package/resource.d.mts +2 -0
  246. package/resource.d.mts.map +1 -0
  247. package/resource.d.ts +1 -5
  248. package/resource.d.ts.map +1 -1
  249. package/resource.js +3 -8
  250. package/resource.js.map +1 -1
  251. package/resource.mjs +1 -6
  252. package/resource.mjs.map +1 -1
  253. package/resources/api-keys.d.mts +130 -0
  254. package/resources/api-keys.d.mts.map +1 -0
  255. package/resources/api-keys.d.ts +7 -6
  256. package/resources/api-keys.d.ts.map +1 -1
  257. package/resources/api-keys.js +6 -4
  258. package/resources/api-keys.js.map +1 -1
  259. package/resources/api-keys.mjs +6 -4
  260. package/resources/api-keys.mjs.map +1 -1
  261. package/resources/conversation/chat.d.mts +312 -0
  262. package/resources/conversation/chat.d.mts.map +1 -0
  263. package/resources/conversation/chat.d.ts +45 -77
  264. package/resources/conversation/chat.d.ts.map +1 -1
  265. package/resources/conversation/chat.js +14 -48
  266. package/resources/conversation/chat.js.map +1 -1
  267. package/resources/conversation/chat.mjs +14 -48
  268. package/resources/conversation/chat.mjs.map +1 -1
  269. package/resources/conversation/conversation.d.mts +77 -0
  270. package/resources/conversation/conversation.d.mts.map +1 -0
  271. package/resources/conversation/conversation.d.ts +1 -1
  272. package/resources/conversation/conversation.d.ts.map +1 -1
  273. package/resources/conversation/conversation.js +5 -27
  274. package/resources/conversation/conversation.js.map +1 -1
  275. package/resources/conversation/conversation.mjs +1 -1
  276. package/resources/conversation/email.d.mts +257 -0
  277. package/resources/conversation/email.d.mts.map +1 -0
  278. package/resources/conversation/email.d.ts +10 -8
  279. package/resources/conversation/email.d.ts.map +1 -1
  280. package/resources/conversation/email.js +6 -6
  281. package/resources/conversation/email.js.map +1 -1
  282. package/resources/conversation/email.mjs +6 -6
  283. package/resources/conversation/email.mjs.map +1 -1
  284. package/resources/conversation/index.d.mts +5 -0
  285. package/resources/conversation/index.d.mts.map +1 -0
  286. package/resources/conversation/index.d.ts +1 -1
  287. package/resources/conversation/index.d.ts.map +1 -1
  288. package/resources/conversation/index.js.map +1 -1
  289. package/resources/conversation/index.mjs.map +1 -1
  290. package/resources/conversation/voice.d.mts +45 -0
  291. package/resources/conversation/voice.d.mts.map +1 -0
  292. package/resources/conversation/voice.d.ts +4 -3
  293. package/resources/conversation/voice.d.ts.map +1 -1
  294. package/resources/conversation/voice.js +3 -2
  295. package/resources/conversation/voice.js.map +1 -1
  296. package/resources/conversation/voice.mjs +3 -2
  297. package/resources/conversation/voice.mjs.map +1 -1
  298. package/resources/conversation.d.mts +2 -0
  299. package/resources/conversation.d.mts.map +1 -0
  300. package/resources/conversation.d.ts.map +1 -1
  301. package/resources/conversation.js +2 -15
  302. package/resources/conversation.js.map +1 -1
  303. package/resources/customer/customer.d.mts +333 -0
  304. package/resources/customer/customer.d.mts.map +1 -0
  305. package/resources/customer/customer.d.ts +7 -7
  306. package/resources/customer/customer.d.ts.map +1 -1
  307. package/resources/customer/customer.js +12 -31
  308. package/resources/customer/customer.js.map +1 -1
  309. package/resources/customer/customer.mjs +9 -6
  310. package/resources/customer/customer.mjs.map +1 -1
  311. package/resources/customer/index.d.mts +4 -0
  312. package/resources/customer/index.d.mts.map +1 -0
  313. package/resources/customer/index.d.ts.map +1 -1
  314. package/resources/customer/profile.d.mts +30 -0
  315. package/resources/customer/profile.d.mts.map +1 -0
  316. package/resources/customer/profile.d.ts +4 -3
  317. package/resources/customer/profile.d.ts.map +1 -1
  318. package/resources/customer/profile.js +3 -2
  319. package/resources/customer/profile.js.map +1 -1
  320. package/resources/customer/profile.mjs +3 -2
  321. package/resources/customer/profile.mjs.map +1 -1
  322. package/resources/customer/remote.d.mts +164 -0
  323. package/resources/customer/remote.d.mts.map +1 -0
  324. package/resources/customer/remote.d.ts +5 -4
  325. package/resources/customer/remote.d.ts.map +1 -1
  326. package/resources/customer/remote.js +6 -5
  327. package/resources/customer/remote.js.map +1 -1
  328. package/resources/customer/remote.mjs +6 -5
  329. package/resources/customer/remote.mjs.map +1 -1
  330. package/resources/customer.d.mts +2 -0
  331. package/resources/customer.d.mts.map +1 -0
  332. package/resources/customer.d.ts.map +1 -1
  333. package/resources/customer.js +2 -15
  334. package/resources/customer.js.map +1 -1
  335. package/resources/index.d.mts +5 -0
  336. package/resources/index.d.mts.map +1 -0
  337. package/resources/index.d.ts +1 -1
  338. package/resources/index.d.ts.map +1 -1
  339. package/resources/index.js.map +1 -1
  340. package/resources/index.mjs.map +1 -1
  341. package/resources/ingest.d.mts +27 -0
  342. package/resources/ingest.d.mts.map +1 -0
  343. package/resources/ingest.d.ts +12 -6
  344. package/resources/ingest.d.ts.map +1 -1
  345. package/resources/ingest.js +11 -8
  346. package/resources/ingest.js.map +1 -1
  347. package/resources/ingest.mjs +11 -8
  348. package/resources/ingest.mjs.map +1 -1
  349. package/resources.d.mts +2 -0
  350. package/resources.d.mts.map +1 -0
  351. package/resources.d.ts.map +1 -1
  352. package/resources.js +2 -15
  353. package/resources.js.map +1 -1
  354. package/src/api-promise.ts +2 -0
  355. package/src/client.ts +835 -0
  356. package/src/core/README.md +3 -0
  357. package/src/core/api-promise.ts +92 -0
  358. package/src/core/error.ts +130 -0
  359. package/src/core/resource.ts +11 -0
  360. package/src/core/uploads.ts +2 -0
  361. package/src/error.ts +2 -130
  362. package/src/index.ts +6 -275
  363. package/src/internal/README.md +3 -0
  364. package/src/internal/builtin-types.ts +93 -0
  365. package/src/internal/detect-platform.ts +196 -0
  366. package/src/internal/errors.ts +33 -0
  367. package/src/internal/headers.ts +97 -0
  368. package/src/internal/parse.ts +56 -0
  369. package/src/internal/request-options.ts +91 -0
  370. package/src/internal/shim-types.ts +26 -0
  371. package/src/internal/shims.ts +107 -0
  372. package/src/internal/to-file.ts +156 -0
  373. package/src/internal/types.ts +95 -0
  374. package/src/internal/uploads.ts +187 -0
  375. package/src/internal/utils/base64.ts +40 -0
  376. package/src/internal/utils/bytes.ts +32 -0
  377. package/src/internal/utils/env.ts +18 -0
  378. package/src/internal/utils/log.ts +127 -0
  379. package/src/internal/utils/path.ts +88 -0
  380. package/src/internal/utils/sleep.ts +3 -0
  381. package/src/internal/utils/uuid.ts +17 -0
  382. package/src/internal/utils/values.ts +105 -0
  383. package/src/internal/utils.ts +8 -0
  384. package/src/lib/generate-signature.ts +2 -2
  385. package/src/resource.ts +2 -11
  386. package/src/resources/api-keys.ts +12 -9
  387. package/src/resources/conversation/chat.ts +60 -95
  388. package/src/resources/conversation/conversation.ts +1 -1
  389. package/src/resources/conversation/email.ts +13 -12
  390. package/src/resources/conversation/index.ts +5 -0
  391. package/src/resources/conversation/voice.ts +6 -4
  392. package/src/resources/customer/customer.ts +12 -16
  393. package/src/resources/customer/profile.ts +6 -8
  394. package/src/resources/customer/remote.ts +10 -8
  395. package/src/resources/index.ts +1 -1
  396. package/src/resources/ingest.ts +23 -17
  397. package/src/tsconfig.json +2 -2
  398. package/src/uploads.ts +2 -256
  399. package/src/version.ts +1 -1
  400. package/uploads.d.mts +2 -0
  401. package/uploads.d.mts.map +1 -0
  402. package/uploads.d.ts +1 -74
  403. package/uploads.d.ts.map +1 -1
  404. package/uploads.js +3 -167
  405. package/uploads.js.map +1 -1
  406. package/uploads.mjs +1 -156
  407. package/uploads.mjs.map +1 -1
  408. package/version.d.mts +2 -0
  409. package/version.d.mts.map +1 -0
  410. package/version.d.ts +1 -1
  411. package/version.js +1 -1
  412. package/version.mjs +1 -1
  413. package/_shims/MultipartBody.d.ts +0 -9
  414. package/_shims/MultipartBody.d.ts.map +0 -1
  415. package/_shims/MultipartBody.js +0 -16
  416. package/_shims/MultipartBody.js.map +0 -1
  417. package/_shims/MultipartBody.mjs +0 -12
  418. package/_shims/MultipartBody.mjs.map +0 -1
  419. package/_shims/README.md +0 -46
  420. package/_shims/auto/runtime-bun.d.ts +0 -5
  421. package/_shims/auto/runtime-bun.d.ts.map +0 -1
  422. package/_shims/auto/runtime-bun.js +0 -21
  423. package/_shims/auto/runtime-bun.js.map +0 -1
  424. package/_shims/auto/runtime-bun.mjs +0 -2
  425. package/_shims/auto/runtime-bun.mjs.map +0 -1
  426. package/_shims/auto/runtime-node.d.ts +0 -5
  427. package/_shims/auto/runtime-node.d.ts.map +0 -1
  428. package/_shims/auto/runtime-node.js +0 -21
  429. package/_shims/auto/runtime-node.js.map +0 -1
  430. package/_shims/auto/runtime-node.mjs +0 -2
  431. package/_shims/auto/runtime-node.mjs.map +0 -1
  432. package/_shims/auto/runtime.d.ts +0 -5
  433. package/_shims/auto/runtime.d.ts.map +0 -1
  434. package/_shims/auto/runtime.js +0 -21
  435. package/_shims/auto/runtime.js.map +0 -1
  436. package/_shims/auto/runtime.mjs +0 -2
  437. package/_shims/auto/runtime.mjs.map +0 -1
  438. package/_shims/auto/types-node.d.ts +0 -5
  439. package/_shims/auto/types-node.d.ts.map +0 -1
  440. package/_shims/auto/types-node.js +0 -21
  441. package/_shims/auto/types-node.js.map +0 -1
  442. package/_shims/auto/types-node.mjs +0 -2
  443. package/_shims/auto/types-node.mjs.map +0 -1
  444. package/_shims/auto/types.d.ts +0 -101
  445. package/_shims/auto/types.js +0 -3
  446. package/_shims/auto/types.mjs +0 -3
  447. package/_shims/bun-runtime.d.ts +0 -6
  448. package/_shims/bun-runtime.d.ts.map +0 -1
  449. package/_shims/bun-runtime.js +0 -13
  450. package/_shims/bun-runtime.js.map +0 -1
  451. package/_shims/bun-runtime.mjs +0 -10
  452. package/_shims/bun-runtime.mjs.map +0 -1
  453. package/_shims/index.d.ts +0 -83
  454. package/_shims/index.js +0 -17
  455. package/_shims/index.mjs +0 -11
  456. package/_shims/manual-types.d.ts +0 -12
  457. package/_shims/manual-types.js +0 -3
  458. package/_shims/manual-types.mjs +0 -3
  459. package/_shims/node-runtime.d.ts +0 -3
  460. package/_shims/node-runtime.d.ts.map +0 -1
  461. package/_shims/node-runtime.js +0 -88
  462. package/_shims/node-runtime.js.map +0 -1
  463. package/_shims/node-runtime.mjs +0 -56
  464. package/_shims/node-runtime.mjs.map +0 -1
  465. package/_shims/node-types.d.ts +0 -42
  466. package/_shims/node-types.js +0 -3
  467. package/_shims/node-types.mjs +0 -3
  468. package/_shims/registry.d.ts +0 -37
  469. package/_shims/registry.d.ts.map +0 -1
  470. package/_shims/registry.js +0 -41
  471. package/_shims/registry.js.map +0 -1
  472. package/_shims/registry.mjs +0 -37
  473. package/_shims/registry.mjs.map +0 -1
  474. package/_shims/web-runtime.d.ts +0 -5
  475. package/_shims/web-runtime.d.ts.map +0 -1
  476. package/_shims/web-runtime.js +0 -77
  477. package/_shims/web-runtime.js.map +0 -1
  478. package/_shims/web-runtime.mjs +0 -71
  479. package/_shims/web-runtime.mjs.map +0 -1
  480. package/_shims/web-types.d.ts +0 -83
  481. package/_shims/web-types.js +0 -3
  482. package/_shims/web-types.mjs +0 -3
  483. package/core.d.ts +0 -253
  484. package/core.d.ts.map +0 -1
  485. package/core.js +0 -929
  486. package/core.js.map +0 -1
  487. package/core.mjs +0 -897
  488. package/core.mjs.map +0 -1
  489. package/internal/qs/formats.d.ts +0 -6
  490. package/internal/qs/formats.d.ts.map +0 -1
  491. package/internal/qs/formats.js +0 -11
  492. package/internal/qs/formats.js.map +0 -1
  493. package/internal/qs/formats.mjs +0 -8
  494. package/internal/qs/formats.mjs.map +0 -1
  495. package/internal/qs/index.d.ts +0 -10
  496. package/internal/qs/index.d.ts.map +0 -1
  497. package/internal/qs/index.js +0 -14
  498. package/internal/qs/index.js.map +0 -1
  499. package/internal/qs/index.mjs +0 -10
  500. package/internal/qs/index.mjs.map +0 -1
  501. package/internal/qs/stringify.d.ts +0 -3
  502. package/internal/qs/stringify.d.ts.map +0 -1
  503. package/internal/qs/stringify.js +0 -279
  504. package/internal/qs/stringify.js.map +0 -1
  505. package/internal/qs/stringify.mjs +0 -276
  506. package/internal/qs/stringify.mjs.map +0 -1
  507. package/internal/qs/types.d.ts +0 -57
  508. package/internal/qs/types.d.ts.map +0 -1
  509. package/internal/qs/types.js +0 -3
  510. package/internal/qs/types.js.map +0 -1
  511. package/internal/qs/types.mjs +0 -2
  512. package/internal/qs/types.mjs.map +0 -1
  513. package/internal/qs/utils.d.ts +0 -14
  514. package/internal/qs/utils.d.ts.map +0 -1
  515. package/internal/qs/utils.js +0 -229
  516. package/internal/qs/utils.js.map +0 -1
  517. package/internal/qs/utils.mjs +0 -217
  518. package/internal/qs/utils.mjs.map +0 -1
  519. package/resources/ticket.d.ts +0 -14
  520. package/resources/ticket.d.ts.map +0 -1
  521. package/resources/ticket.js +0 -16
  522. package/resources/ticket.js.map +0 -1
  523. package/resources/ticket.mjs +0 -12
  524. package/resources/ticket.mjs.map +0 -1
  525. package/shims/node.d.ts +0 -26
  526. package/shims/node.d.ts.map +0 -1
  527. package/shims/node.js +0 -6
  528. package/shims/node.js.map +0 -1
  529. package/shims/node.mjs +0 -4
  530. package/shims/node.mjs.map +0 -1
  531. package/shims/web.d.ts +0 -26
  532. package/shims/web.d.ts.map +0 -1
  533. package/shims/web.js +0 -6
  534. package/shims/web.js.map +0 -1
  535. package/shims/web.mjs +0 -4
  536. package/shims/web.mjs.map +0 -1
  537. package/src/_shims/MultipartBody.ts +0 -9
  538. package/src/_shims/README.md +0 -46
  539. package/src/_shims/auto/runtime-bun.ts +0 -4
  540. package/src/_shims/auto/runtime-node.ts +0 -4
  541. package/src/_shims/auto/runtime.ts +0 -4
  542. package/src/_shims/auto/types-node.ts +0 -4
  543. package/src/_shims/auto/types.d.ts +0 -101
  544. package/src/_shims/auto/types.js +0 -3
  545. package/src/_shims/auto/types.mjs +0 -3
  546. package/src/_shims/bun-runtime.ts +0 -14
  547. package/src/_shims/index.d.ts +0 -83
  548. package/src/_shims/index.js +0 -17
  549. package/src/_shims/index.mjs +0 -11
  550. package/src/_shims/manual-types.d.ts +0 -12
  551. package/src/_shims/manual-types.js +0 -3
  552. package/src/_shims/manual-types.mjs +0 -3
  553. package/src/_shims/node-runtime.ts +0 -81
  554. package/src/_shims/node-types.d.ts +0 -42
  555. package/src/_shims/node-types.js +0 -3
  556. package/src/_shims/node-types.mjs +0 -3
  557. package/src/_shims/registry.ts +0 -67
  558. package/src/_shims/web-runtime.ts +0 -103
  559. package/src/_shims/web-types.d.ts +0 -83
  560. package/src/_shims/web-types.js +0 -3
  561. package/src/_shims/web-types.mjs +0 -3
  562. package/src/core.ts +0 -1242
  563. package/src/internal/qs/LICENSE.md +0 -13
  564. package/src/internal/qs/README.md +0 -3
  565. package/src/internal/qs/formats.ts +0 -9
  566. package/src/internal/qs/index.ts +0 -13
  567. package/src/internal/qs/stringify.ts +0 -388
  568. package/src/internal/qs/types.ts +0 -71
  569. package/src/internal/qs/utils.ts +0 -265
  570. package/src/resources/ticket.ts +0 -30
  571. package/src/shims/node.ts +0 -50
  572. package/src/shims/web.ts +0 -50
@@ -1,9 +1,10 @@
1
- import { APIResource } from "../../resource.js";
2
- import * as Core from "../../core.js";
1
+ import { APIResource } from "../../core/resource.js";
3
2
  import * as ProfileAPI from "./profile.js";
4
3
  import { Profile, ProfileSyncParams, ProfileSyncResponse } from "./profile.js";
5
4
  import * as RemoteAPI from "./remote.js";
6
5
  import { Remote, RemoteGetResponse, RemoteUpdateParams, RemoteUpdateResponse } from "./remote.js";
6
+ import { APIPromise } from "../../core/api-promise.js";
7
+ import { RequestOptions } from "../../internal/request-options.js";
7
8
  export declare class Customer extends APIResource {
8
9
  remote: RemoteAPI.Remote;
9
10
  profile: ProfileAPI.Profile;
@@ -13,7 +14,7 @@ export declare class Customer extends APIResource {
13
14
  * const customer = await client.customer.create();
14
15
  * ```
15
16
  */
16
- create(body: CustomerCreateParams, options?: Core.RequestOptions): Core.APIPromise<CustomerCreateResponse>;
17
+ create(body: CustomerCreateParams, options?: RequestOptions): APIPromise<CustomerCreateResponse>;
17
18
  /**
18
19
  * @example
19
20
  * ```ts
@@ -22,22 +23,21 @@ export declare class Customer extends APIResource {
22
23
  * );
23
24
  * ```
24
25
  */
25
- update(id: string, body: CustomerUpdateParams, options?: Core.RequestOptions): Core.APIPromise<CustomerUpdateResponse>;
26
+ update(id: string, body: CustomerUpdateParams, options?: RequestOptions): APIPromise<CustomerUpdateResponse>;
26
27
  /**
27
28
  * @example
28
29
  * ```ts
29
30
  * const customer = await client.customer.get();
30
31
  * ```
31
32
  */
32
- get(query?: CustomerGetParams, options?: Core.RequestOptions): Core.APIPromise<CustomerGetResponse>;
33
- get(options?: Core.RequestOptions): Core.APIPromise<CustomerGetResponse>;
33
+ get(query?: CustomerGetParams | null | undefined, options?: RequestOptions): APIPromise<CustomerGetResponse>;
34
34
  /**
35
35
  * @example
36
36
  * ```ts
37
37
  * const response = await client.customer.token();
38
38
  * ```
39
39
  */
40
- token(body: CustomerTokenParams, options?: Core.RequestOptions): Core.APIPromise<string>;
40
+ token(body: CustomerTokenParams, options?: RequestOptions): APIPromise<string>;
41
41
  }
42
42
  export interface CustomerCreateResponse {
43
43
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../../src/resources/customer/customer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,UAAU,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAC5E,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAE/F,qBAAa,QAAS,SAAQ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ACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAKD,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -1,36 +1,14 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
18
- });
19
- var __importStar = (this && this.__importStar) || function (mod) {
20
- if (mod && mod.__esModule) return mod;
21
- var result = {};
22
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
- __setModuleDefault(result, mod);
24
- return result;
25
- };
26
3
  Object.defineProperty(exports, "__esModule", { value: true });
27
4
  exports.Customer = void 0;
28
- const resource_1 = require("../../resource.js");
29
- const core_1 = require("../../core.js");
30
- const ProfileAPI = __importStar(require("./profile.js"));
5
+ const tslib_1 = require("../../internal/tslib.js");
6
+ const resource_1 = require("../../core/resource.js");
7
+ const ProfileAPI = tslib_1.__importStar(require("./profile.js"));
31
8
  const profile_1 = require("./profile.js");
32
- const RemoteAPI = __importStar(require("./remote.js"));
9
+ const RemoteAPI = tslib_1.__importStar(require("./remote.js"));
33
10
  const remote_1 = require("./remote.js");
11
+ const path_1 = require("../../internal/utils/path.js");
34
12
  class Customer extends resource_1.APIResource {
35
13
  constructor() {
36
14
  super(...arguments);
@@ -55,12 +33,15 @@ class Customer extends resource_1.APIResource {
55
33
  * ```
56
34
  */
57
35
  update(id, body, options) {
58
- return this._client.put(`/v1/customer/${id}`, { body, ...options });
36
+ return this._client.put((0, path_1.path) `/v1/customer/${id}`, { body, ...options });
59
37
  }
38
+ /**
39
+ * @example
40
+ * ```ts
41
+ * const customer = await client.customer.get();
42
+ * ```
43
+ */
60
44
  get(query = {}, options) {
61
- if ((0, core_1.isRequestOptions)(query)) {
62
- return this.get({}, query);
63
- }
64
45
  return this._client.get('/v1/customer', { query, ...options });
65
46
  }
66
47
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"customer.js","sourceRoot":"","sources":["../../src/resources/customer/customer.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAE9C,yDAAwC;AACxC,0CAA4E;AAC5E,uDAAsC;AACtC,wCAA+F;AAE/F,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAuDrE,CAAC;IArDC;;;;;OAKG;IACH,MAAM,CAAC,IAA0B,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,EAAU,EACV,IAA0B,EAC1B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAUD,GAAG,CACD,QAAiD,EAAE,EACnD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE,CAAC;YAC5B,OAAO,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;QAC7B,CAAC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;OAKG;IAC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jE,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAyB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AApDD,4BAoDC;AAgWD,QAAQ,CAAC,MAAM,GAAG,eAAM,CAAC;AACzB,QAAQ,CAAC,OAAO,GAAG,iBAAO,CAAC"}
@@ -1,10 +1,10 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../resource.mjs";
3
- import { isRequestOptions } from "../../core.mjs";
2
+ import { APIResource } from "../../core/resource.mjs";
4
3
  import * as ProfileAPI from "./profile.mjs";
5
4
  import { Profile } from "./profile.mjs";
6
5
  import * as RemoteAPI from "./remote.mjs";
7
6
  import { Remote } from "./remote.mjs";
7
+ import { path } from "../../internal/utils/path.mjs";
8
8
  export class Customer extends APIResource {
9
9
  constructor() {
10
10
  super(...arguments);
@@ -29,12 +29,15 @@ export class Customer extends APIResource {
29
29
  * ```
30
30
  */
31
31
  update(id, body, options) {
32
- return this._client.put(`/v1/customer/${id}`, { body, ...options });
32
+ return this._client.put(path `/v1/customer/${id}`, { body, ...options });
33
33
  }
34
+ /**
35
+ * @example
36
+ * ```ts
37
+ * const customer = await client.customer.get();
38
+ * ```
39
+ */
34
40
  get(query = {}, options) {
35
- if (isRequestOptions(query)) {
36
- return this.get({}, query);
37
- }
38
41
  return this._client.get('/v1/customer', { query, ...options });
39
42
  }
40
43
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"customer.mjs","sourceRoot":"","sources":["../../src/resources/customer/customer.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,KAAK,UAAU;OACf,EAAE,OAAO,EAA0C;OACnD,KAAK,SAAS;OACd,EAAE,MAAM,EAA+D;AAE9E,M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{ Customer, type CustomerCreateResponse, type CustomerUpdateResponse, type CustomerGetResponse, type CustomerTokenResponse, type CustomerCreateParams, type CustomerUpdateParams, type CustomerGetParams, type CustomerTokenParams, } from "./customer.mjs";
2
+ export { Profile, type ProfileSyncResponse, type ProfileSyncParams } from "./profile.mjs";
3
+ export { Remote, type RemoteUpdateResponse, type RemoteGetResponse, type RemoteUpdateParams } from "./remote.mjs";
4
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/customer/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GACzB;OACM,EAAE,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE;OAC7D,EAAE,MAAM,EAAE,KAAK,oBAAoB,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/customer/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GACzB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACtF,OAAO,EAAE,MAAM,EAAE,KAAK,oBAAoB,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/customer/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GACzB;OACM,EAAE,OAAO,EAAE,KAAK,mBAAmB,EAAE,KAAK,iBAAiB,EAAE;OAC7D,EAAE,MAAM,EAAE,KAAK,oBAAoB,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE"}
@@ -0,0 +1,30 @@
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 Profile extends APIResource {
5
+ /**
6
+ * @example
7
+ * ```ts
8
+ * const response = await client.customer.profile.sync(
9
+ * '123e4567-e89b-12d3-a456-426614174000',
10
+ * { data: { foo: 'string' } },
11
+ * );
12
+ * ```
13
+ */
14
+ sync(id: string, body: ProfileSyncParams, options?: RequestOptions): APIPromise<ProfileSyncResponse>;
15
+ }
16
+ export type ProfileSyncResponse = {
17
+ [key: string]: string | boolean | number | unknown | Array<unknown> | null;
18
+ };
19
+ export interface ProfileSyncParams {
20
+ /**
21
+ * The profile data to update - should be provided as key value object
22
+ */
23
+ data: {
24
+ [key: string]: string | boolean | number | unknown | Array<unknown>;
25
+ };
26
+ }
27
+ export declare namespace Profile {
28
+ export { type ProfileSyncResponse as ProfileSyncResponse, type ProfileSyncParams as ProfileSyncParams };
29
+ }
30
+ //# sourceMappingURL=profile.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.d.mts","sourceRoot":"","sources":["../../src/resources/customer/profile.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGrG;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;CAC5E,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,CAAA;KAAE,CAAC;CAC/E;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
@@ -1,5 +1,6 @@
1
- import { APIResource } from "../../resource.js";
2
- import * as Core from "../../core.js";
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
3
4
  export declare class Profile extends APIResource {
4
5
  /**
5
6
  * @example
@@ -10,7 +11,7 @@ export declare class Profile extends APIResource {
10
11
  * );
11
12
  * ```
12
13
  */
13
- sync(id: string, body: ProfileSyncParams, options?: Core.RequestOptions): Core.APIPromise<ProfileSyncResponse>;
14
+ sync(id: string, body: ProfileSyncParams, options?: RequestOptions): APIPromise<ProfileSyncResponse>;
14
15
  }
15
16
  export type ProfileSyncResponse = {
16
17
  [key: string]: string | boolean | number | unknown | Array<unknown> | null;
@@ -1 +1 @@
1
- {"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../src/resources/customer/profile.ts"],"names":[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O,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;CAC5E,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,CAAA;KAAE,CAAC;CAC/E;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
@@ -2,7 +2,8 @@
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Profile = void 0;
5
- const resource_1 = require("../../resource.js");
5
+ const resource_1 = require("../../core/resource.js");
6
+ const path_1 = require("../../internal/utils/path.js");
6
7
  class Profile extends resource_1.APIResource {
7
8
  /**
8
9
  * @example
@@ -14,7 +15,7 @@ class Profile extends resource_1.APIResource {
14
15
  * ```
15
16
  */
16
17
  sync(id, body, options) {
17
- return this._client.put(`/v1/customer/profile/${id}`, { body, ...options });
18
+ return this._client.put((0, path_1.path) `/v1/customer/profile/${id}`, { body, ...options });
18
19
  }
19
20
  }
20
21
  exports.Profile = Profile;
@@ -1 +1 @@
1
- {"version":3,"file":"profile.js","sourceRoot":"","sources":["../../src/resources/customer/profile.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;OAQG;IACH,IAAI,CACF,EAAU,EACV,IAAuB,EACvB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;CACF;AAjBD,0BAiBC"}
1
+ {"version":3,"file":"profile.js","sourceRoot":"","sources":["../../src/resources/customer/profile.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAU,EAAE,IAAuB,EAAE,OAAwB;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF;AAbD,0BAaC"}
@@ -1,5 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../resource.mjs";
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { path } from "../../internal/utils/path.mjs";
3
4
  export class Profile extends APIResource {
4
5
  /**
5
6
  * @example
@@ -11,7 +12,7 @@ export class Profile extends APIResource {
11
12
  * ```
12
13
  */
13
14
  sync(id, body, options) {
14
- return this._client.put(`/v1/customer/profile/${id}`, { body, ...options });
15
+ return this._client.put(path `/v1/customer/profile/${id}`, { body, ...options });
15
16
  }
16
17
  }
17
18
  //# sourceMappingURL=profile.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"profile.mjs","sourceRoot":"","sources":["../../src/resources/customer/profile.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;OAQG;IACH,IAAI,CACF,EAAU,EACV,IAAuB,EACvB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;CACF"}
1
+ {"version":3,"file":"profile.mjs","sourceRoot":"","sources":["../../src/resources/customer/profile.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAU,EAAE,IAAuB,EAAE,OAAwB;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF"}
@@ -0,0 +1,164 @@
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 Remote extends APIResource {
5
+ /**
6
+ * @example
7
+ * ```ts
8
+ * const remote = await client.customer.remote.update(
9
+ * 'remoteId',
10
+ * );
11
+ * ```
12
+ */
13
+ update(remoteID: string, body: RemoteUpdateParams, options?: RequestOptions): APIPromise<RemoteUpdateResponse>;
14
+ /**
15
+ * @example
16
+ * ```ts
17
+ * const remote = await client.customer.remote.get('remoteId');
18
+ * ```
19
+ */
20
+ get(remoteID: string, options?: RequestOptions): APIPromise<RemoteGetResponse>;
21
+ }
22
+ export interface RemoteUpdateResponse {
23
+ /**
24
+ * The id of the customer in the subscriber system
25
+ */
26
+ id: string;
27
+ /**
28
+ * The timestamp of the when the customer was created in our system
29
+ */
30
+ createdAt: string;
31
+ /**
32
+ * The URL of the customer avatar
33
+ */
34
+ avatarUrl?: string;
35
+ /**
36
+ * The display name of the customer
37
+ */
38
+ displayName?: string;
39
+ /**
40
+ * The email of the customer
41
+ */
42
+ email?: string;
43
+ /**
44
+ * The first name of the customer
45
+ */
46
+ firstName?: string;
47
+ /**
48
+ * The last name of the customer
49
+ */
50
+ lastName?: string;
51
+ /**
52
+ * The phone number of the customer (in international / E.164 format)
53
+ */
54
+ phoneNumber?: string;
55
+ /**
56
+ * The id of the customer in the ticketing system. For the SDK this needs to be
57
+ * stable and unique
58
+ */
59
+ remoteId?: string;
60
+ /**
61
+ * The id of the customer in your own primary database or a unique identifier, for
62
+ * example a cookie
63
+ */
64
+ subscriberCustomerId?: string;
65
+ /**
66
+ * A token that can be used to authenticate the customer in the your system, like a
67
+ * JWT
68
+ */
69
+ subscriberToken?: string;
70
+ }
71
+ export interface RemoteGetResponse {
72
+ /**
73
+ * The id of the customer in the subscriber system
74
+ */
75
+ id: string;
76
+ /**
77
+ * The timestamp of the when the customer was created in our system
78
+ */
79
+ createdAt: string;
80
+ /**
81
+ * The URL of the customer avatar
82
+ */
83
+ avatarUrl?: string;
84
+ /**
85
+ * The display name of the customer
86
+ */
87
+ displayName?: string;
88
+ /**
89
+ * The email of the customer
90
+ */
91
+ email?: string;
92
+ /**
93
+ * The first name of the customer
94
+ */
95
+ firstName?: string;
96
+ /**
97
+ * The last name of the customer
98
+ */
99
+ lastName?: string;
100
+ /**
101
+ * The phone number of the customer (in international / E.164 format)
102
+ */
103
+ phoneNumber?: string;
104
+ /**
105
+ * The id of the customer in the ticketing system. For the SDK this needs to be
106
+ * stable and unique
107
+ */
108
+ remoteId?: string;
109
+ /**
110
+ * The id of the customer in your own primary database or a unique identifier, for
111
+ * example a cookie
112
+ */
113
+ subscriberCustomerId?: string;
114
+ /**
115
+ * A token that can be used to authenticate the customer in the your system, like a
116
+ * JWT
117
+ */
118
+ subscriberToken?: string;
119
+ }
120
+ export interface RemoteUpdateParams {
121
+ /**
122
+ * The URL of the customer avatar
123
+ */
124
+ avatarUrl?: string;
125
+ /**
126
+ * The display name of the customer
127
+ */
128
+ displayName?: string;
129
+ /**
130
+ * The email of the customer
131
+ */
132
+ email?: string;
133
+ /**
134
+ * The first name of the customer
135
+ */
136
+ firstName?: string;
137
+ /**
138
+ * The last name of the customer
139
+ */
140
+ lastName?: string;
141
+ /**
142
+ * The phone number of the customer (in international / E.164 format)
143
+ */
144
+ phoneNumber?: string;
145
+ /**
146
+ * The id of the customer in the ticketing system. For the SDK this needs to be
147
+ * stable and unique
148
+ */
149
+ body_remoteId?: string;
150
+ /**
151
+ * The id of the customer in your own primary database or a unique identifier, for
152
+ * example a cookie
153
+ */
154
+ subscriberCustomerId?: string;
155
+ /**
156
+ * A token that can be used to authenticate the customer in the your system, like a
157
+ * JWT
158
+ */
159
+ subscriberToken?: string;
160
+ }
161
+ export declare namespace Remote {
162
+ export { type RemoteUpdateResponse as RemoteUpdateResponse, type RemoteGetResponse as RemoteGetResponse, type RemoteUpdateParams as RemoteUpdateParams, };
163
+ }
164
+ //# sourceMappingURL=remote.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote.d.mts","sourceRoot":"","sources":["../../src/resources/customer/remote.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,kBAAkB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;;;;OAKG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;CAG/E;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IA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CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -1,5 +1,6 @@
1
- import { APIResource } from "../../resource.js";
2
- import * as Core from "../../core.js";
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
3
4
  export declare class Remote extends APIResource {
4
5
  /**
5
6
  * @example
@@ -9,14 +10,14 @@ export declare class Remote extends APIResource {
9
10
  * );
10
11
  * ```
11
12
  */
12
- update(pathRemoteId: string, body: RemoteUpdateParams, options?: Core.RequestOptions): Core.APIPromise<RemoteUpdateResponse>;
13
+ update(remoteID: string, body: RemoteUpdateParams, options?: RequestOptions): APIPromise<RemoteUpdateResponse>;
13
14
  /**
14
15
  * @example
15
16
  * ```ts
16
17
  * const remote = await client.customer.remote.get('remoteId');
17
18
  * ```
18
19
  */
19
- get(remoteId: string, options?: Core.RequestOptions): Core.APIPromise<RemoteGetResponse>;
20
+ get(remoteID: string, options?: RequestOptions): APIPromise<RemoteGetResponse>;
20
21
  }
21
22
  export interface RemoteUpdateResponse {
22
23
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"remote.d.ts","sourceRoot":"","sources":["../../src/resources/customer/remote.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,kBAAkB,EACxB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAIxC;;;;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AAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -2,7 +2,8 @@
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Remote = void 0;
5
- const resource_1 = require("../../resource.js");
5
+ const resource_1 = require("../../core/resource.js");
6
+ const path_1 = require("../../internal/utils/path.js");
6
7
  class Remote extends resource_1.APIResource {
7
8
  /**
8
9
  * @example
@@ -12,8 +13,8 @@ class Remote extends resource_1.APIResource {
12
13
  * );
13
14
  * ```
14
15
  */
15
- update(pathRemoteId, body, options) {
16
- return this._client.patch(`/v1/customer/remote/${pathRemoteId}`, { body, ...options });
16
+ update(remoteID, body, options) {
17
+ return this._client.patch((0, path_1.path) `/v1/customer/remote/${remoteID}`, { body, ...options });
17
18
  }
18
19
  /**
19
20
  * @example
@@ -21,8 +22,8 @@ class Remote extends resource_1.APIResource {
21
22
  * const remote = await client.customer.remote.get('remoteId');
22
23
  * ```
23
24
  */
24
- get(remoteId, options) {
25
- return this._client.get(`/v1/customer/remote/${remoteId}`, options);
25
+ get(remoteID, options) {
26
+ return this._client.get((0, path_1.path) `/v1/customer/remote/${remoteID}`, options);
26
27
  }
27
28
  }
28
29
  exports.Remote = Remote;
@@ -1 +1 @@
1
- {"version":3,"file":"remote.js","sourceRoot":"","sources":["../../src/resources/customer/remote.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;OAOG;IACH,MAAM,CACJ,YAAoB,EACpB,IAAwB,EACxB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,uBAAuB,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;OAKG;IACH,GAAG,CAAC,QAAgB,EAAE,OAA6B;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CACF;AA1BD,wBA0BC"}
1
+ {"version":3,"file":"remote.js","sourceRoot":"","sources":["../../src/resources/customer/remote.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;OAOG;IACH,MAAM,CACJ,QAAgB,EAChB,IAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,uBAAuB,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;OAKG;IACH,GAAG,CAAC,QAAgB,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uBAAuB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF;AA1BD,wBA0BC"}
@@ -1,5 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../resource.mjs";
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { path } from "../../internal/utils/path.mjs";
3
4
  export class Remote extends APIResource {
4
5
  /**
5
6
  * @example
@@ -9,8 +10,8 @@ export class Remote extends APIResource {
9
10
  * );
10
11
  * ```
11
12
  */
12
- update(pathRemoteId, body, options) {
13
- return this._client.patch(`/v1/customer/remote/${pathRemoteId}`, { body, ...options });
13
+ update(remoteID, body, options) {
14
+ return this._client.patch(path `/v1/customer/remote/${remoteID}`, { body, ...options });
14
15
  }
15
16
  /**
16
17
  * @example
@@ -18,8 +19,8 @@ export class Remote extends APIResource {
18
19
  * const remote = await client.customer.remote.get('remoteId');
19
20
  * ```
20
21
  */
21
- get(remoteId, options) {
22
- return this._client.get(`/v1/customer/remote/${remoteId}`, options);
22
+ get(remoteID, options) {
23
+ return this._client.get(path `/v1/customer/remote/${remoteID}`, options);
23
24
  }
24
25
  }
25
26
  //# sourceMappingURL=remote.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"remote.mjs","sourceRoot":"","sources":["../../src/resources/customer/remote.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,MAAM,CACJ,YAAoB,EACpB,IAAwB,EACxB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,uBAAuB,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;OAKG;IACH,GAAG,CAAC,QAAgB,EAAE,OAA6B;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CACF"}
1
+ {"version":3,"file":"remote.mjs","sourceRoot":"","sources":["../../src/resources/customer/remote.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,MAAM,CACJ,QAAgB,EAChB,IAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,uBAAuB,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;OAKG;IACH,GAAG,CAAC,QAAgB,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uBAAuB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from "./customer/index.mjs";
2
+ //# sourceMappingURL=customer.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customer.d.mts","sourceRoot":"","sources":["../src/resources/customer.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../src/resources/customer.ts"],"names":[],"mappings":"AAEA,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"customer.d.ts","sourceRoot":"","sources":["../src/resources/customer.ts"],"names":[],"mappings":""}
@@ -1,19 +1,6 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
- };
17
3
  Object.defineProperty(exports, "__esModule", { value: true });
18
- __exportStar(require("./customer/index.js"), exports);
4
+ const tslib_1 = require("../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./customer/index.js"), exports);
19
6
  //# sourceMappingURL=customer.js.map