@postpeer/node 0.7.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (468) hide show
  1. package/CHANGELOG.md +7 -128
  2. package/LICENSE +1 -1
  3. package/README.md +92 -314
  4. package/dist/index.cjs +1709 -0
  5. package/dist/index.cjs.map +1 -0
  6. package/dist/index.d.cts +3484 -0
  7. package/dist/index.d.ts +3484 -0
  8. package/dist/index.js +1690 -0
  9. package/dist/index.js.map +1 -0
  10. package/package.json +58 -131
  11. package/api-promise.d.mts +0 -3
  12. package/api-promise.d.mts.map +0 -1
  13. package/api-promise.d.ts +0 -3
  14. package/api-promise.d.ts.map +0 -1
  15. package/api-promise.js +0 -6
  16. package/api-promise.js.map +0 -1
  17. package/api-promise.mjs +0 -3
  18. package/api-promise.mjs.map +0 -1
  19. package/client.d.mts +0 -190
  20. package/client.d.mts.map +0 -1
  21. package/client.d.ts +0 -190
  22. package/client.d.ts.map +0 -1
  23. package/client.js +0 -485
  24. package/client.js.map +0 -1
  25. package/client.mjs +0 -481
  26. package/client.mjs.map +0 -1
  27. package/core/api-promise.d.mts +0 -46
  28. package/core/api-promise.d.mts.map +0 -1
  29. package/core/api-promise.d.ts +0 -46
  30. package/core/api-promise.d.ts.map +0 -1
  31. package/core/api-promise.js +0 -74
  32. package/core/api-promise.js.map +0 -1
  33. package/core/api-promise.mjs +0 -70
  34. package/core/api-promise.mjs.map +0 -1
  35. package/core/error.d.mts +0 -46
  36. package/core/error.d.mts.map +0 -1
  37. package/core/error.d.ts +0 -46
  38. package/core/error.d.ts.map +0 -1
  39. package/core/error.js +0 -113
  40. package/core/error.js.map +0 -1
  41. package/core/error.mjs +0 -97
  42. package/core/error.mjs.map +0 -1
  43. package/core/resource.d.mts +0 -6
  44. package/core/resource.d.mts.map +0 -1
  45. package/core/resource.d.ts +0 -6
  46. package/core/resource.d.ts.map +0 -1
  47. package/core/resource.js +0 -11
  48. package/core/resource.js.map +0 -1
  49. package/core/resource.mjs +0 -7
  50. package/core/resource.mjs.map +0 -1
  51. package/core/uploads.d.mts +0 -3
  52. package/core/uploads.d.mts.map +0 -1
  53. package/core/uploads.d.ts +0 -3
  54. package/core/uploads.d.ts.map +0 -1
  55. package/core/uploads.js +0 -6
  56. package/core/uploads.js.map +0 -1
  57. package/core/uploads.mjs +0 -2
  58. package/core/uploads.mjs.map +0 -1
  59. package/error.d.mts +0 -3
  60. package/error.d.mts.map +0 -1
  61. package/error.d.ts +0 -3
  62. package/error.d.ts.map +0 -1
  63. package/error.js +0 -6
  64. package/error.js.map +0 -1
  65. package/error.mjs +0 -3
  66. package/error.mjs.map +0 -1
  67. package/index.d.mts +0 -6
  68. package/index.d.mts.map +0 -1
  69. package/index.d.ts +0 -6
  70. package/index.d.ts.map +0 -1
  71. package/index.js +0 -30
  72. package/index.js.map +0 -1
  73. package/index.mjs +0 -7
  74. package/index.mjs.map +0 -1
  75. package/internal/builtin-types.d.mts +0 -73
  76. package/internal/builtin-types.d.mts.map +0 -1
  77. package/internal/builtin-types.d.ts +0 -73
  78. package/internal/builtin-types.d.ts.map +0 -1
  79. package/internal/builtin-types.js +0 -4
  80. package/internal/builtin-types.js.map +0 -1
  81. package/internal/builtin-types.mjs +0 -3
  82. package/internal/builtin-types.mjs.map +0 -1
  83. package/internal/detect-platform.d.mts +0 -15
  84. package/internal/detect-platform.d.mts.map +0 -1
  85. package/internal/detect-platform.d.ts +0 -15
  86. package/internal/detect-platform.d.ts.map +0 -1
  87. package/internal/detect-platform.js +0 -162
  88. package/internal/detect-platform.js.map +0 -1
  89. package/internal/detect-platform.mjs +0 -157
  90. package/internal/detect-platform.mjs.map +0 -1
  91. package/internal/errors.d.mts +0 -3
  92. package/internal/errors.d.mts.map +0 -1
  93. package/internal/errors.d.ts +0 -3
  94. package/internal/errors.d.ts.map +0 -1
  95. package/internal/errors.js +0 -41
  96. package/internal/errors.js.map +0 -1
  97. package/internal/errors.mjs +0 -36
  98. package/internal/errors.mjs.map +0 -1
  99. package/internal/headers.d.mts +0 -20
  100. package/internal/headers.d.mts.map +0 -1
  101. package/internal/headers.d.ts +0 -20
  102. package/internal/headers.d.ts.map +0 -1
  103. package/internal/headers.js +0 -79
  104. package/internal/headers.js.map +0 -1
  105. package/internal/headers.mjs +0 -74
  106. package/internal/headers.mjs.map +0 -1
  107. package/internal/parse.d.mts +0 -12
  108. package/internal/parse.d.mts.map +0 -1
  109. package/internal/parse.d.ts +0 -12
  110. package/internal/parse.d.ts.map +0 -1
  111. package/internal/parse.js +0 -40
  112. package/internal/parse.js.map +0 -1
  113. package/internal/parse.mjs +0 -37
  114. package/internal/parse.mjs.map +0 -1
  115. package/internal/qs/formats.d.mts +0 -7
  116. package/internal/qs/formats.d.mts.map +0 -1
  117. package/internal/qs/formats.d.ts +0 -7
  118. package/internal/qs/formats.d.ts.map +0 -1
  119. package/internal/qs/formats.js +0 -13
  120. package/internal/qs/formats.js.map +0 -1
  121. package/internal/qs/formats.mjs +0 -9
  122. package/internal/qs/formats.mjs.map +0 -1
  123. package/internal/qs/index.d.mts +0 -10
  124. package/internal/qs/index.d.mts.map +0 -1
  125. package/internal/qs/index.d.ts +0 -10
  126. package/internal/qs/index.d.ts.map +0 -1
  127. package/internal/qs/index.js +0 -14
  128. package/internal/qs/index.js.map +0 -1
  129. package/internal/qs/index.mjs +0 -10
  130. package/internal/qs/index.mjs.map +0 -1
  131. package/internal/qs/stringify.d.mts +0 -3
  132. package/internal/qs/stringify.d.mts.map +0 -1
  133. package/internal/qs/stringify.d.ts +0 -3
  134. package/internal/qs/stringify.d.ts.map +0 -1
  135. package/internal/qs/stringify.js +0 -277
  136. package/internal/qs/stringify.js.map +0 -1
  137. package/internal/qs/stringify.mjs +0 -274
  138. package/internal/qs/stringify.mjs.map +0 -1
  139. package/internal/qs/types.d.mts +0 -57
  140. package/internal/qs/types.d.mts.map +0 -1
  141. package/internal/qs/types.d.ts +0 -57
  142. package/internal/qs/types.d.ts.map +0 -1
  143. package/internal/qs/types.js +0 -3
  144. package/internal/qs/types.js.map +0 -1
  145. package/internal/qs/types.mjs +0 -2
  146. package/internal/qs/types.mjs.map +0 -1
  147. package/internal/qs/utils.d.mts +0 -15
  148. package/internal/qs/utils.d.mts.map +0 -1
  149. package/internal/qs/utils.d.ts +0 -15
  150. package/internal/qs/utils.d.ts.map +0 -1
  151. package/internal/qs/utils.js +0 -230
  152. package/internal/qs/utils.js.map +0 -1
  153. package/internal/qs/utils.mjs +0 -217
  154. package/internal/qs/utils.mjs.map +0 -1
  155. package/internal/request-options.d.mts +0 -75
  156. package/internal/request-options.d.mts.map +0 -1
  157. package/internal/request-options.d.ts +0 -75
  158. package/internal/request-options.d.ts.map +0 -1
  159. package/internal/request-options.js +0 -14
  160. package/internal/request-options.js.map +0 -1
  161. package/internal/request-options.mjs +0 -10
  162. package/internal/request-options.mjs.map +0 -1
  163. package/internal/shim-types.d.mts +0 -17
  164. package/internal/shim-types.d.mts.map +0 -1
  165. package/internal/shim-types.d.ts +0 -17
  166. package/internal/shim-types.d.ts.map +0 -1
  167. package/internal/shim-types.js +0 -4
  168. package/internal/shim-types.js.map +0 -1
  169. package/internal/shim-types.mjs +0 -3
  170. package/internal/shim-types.mjs.map +0 -1
  171. package/internal/shims.d.mts +0 -26
  172. package/internal/shims.d.mts.map +0 -1
  173. package/internal/shims.d.ts +0 -26
  174. package/internal/shims.d.ts.map +0 -1
  175. package/internal/shims.js +0 -92
  176. package/internal/shims.js.map +0 -1
  177. package/internal/shims.mjs +0 -85
  178. package/internal/shims.mjs.map +0 -1
  179. package/internal/to-file.d.mts +0 -45
  180. package/internal/to-file.d.mts.map +0 -1
  181. package/internal/to-file.d.ts +0 -45
  182. package/internal/to-file.d.ts.map +0 -1
  183. package/internal/to-file.js +0 -91
  184. package/internal/to-file.js.map +0 -1
  185. package/internal/to-file.mjs +0 -88
  186. package/internal/to-file.mjs.map +0 -1
  187. package/internal/tslib.js +0 -81
  188. package/internal/tslib.mjs +0 -17
  189. package/internal/types.d.mts +0 -69
  190. package/internal/types.d.mts.map +0 -1
  191. package/internal/types.d.ts +0 -69
  192. package/internal/types.d.ts.map +0 -1
  193. package/internal/types.js +0 -4
  194. package/internal/types.js.map +0 -1
  195. package/internal/types.mjs +0 -3
  196. package/internal/types.mjs.map +0 -1
  197. package/internal/uploads.d.mts +0 -42
  198. package/internal/uploads.d.mts.map +0 -1
  199. package/internal/uploads.d.ts +0 -42
  200. package/internal/uploads.d.ts.map +0 -1
  201. package/internal/uploads.js +0 -141
  202. package/internal/uploads.js.map +0 -1
  203. package/internal/uploads.mjs +0 -131
  204. package/internal/uploads.mjs.map +0 -1
  205. package/internal/utils/base64.d.mts +0 -3
  206. package/internal/utils/base64.d.mts.map +0 -1
  207. package/internal/utils/base64.d.ts +0 -3
  208. package/internal/utils/base64.d.ts.map +0 -1
  209. package/internal/utils/base64.js +0 -38
  210. package/internal/utils/base64.js.map +0 -1
  211. package/internal/utils/base64.mjs +0 -33
  212. package/internal/utils/base64.mjs.map +0 -1
  213. package/internal/utils/bytes.d.mts +0 -4
  214. package/internal/utils/bytes.d.mts.map +0 -1
  215. package/internal/utils/bytes.d.ts +0 -4
  216. package/internal/utils/bytes.d.ts.map +0 -1
  217. package/internal/utils/bytes.js +0 -31
  218. package/internal/utils/bytes.js.map +0 -1
  219. package/internal/utils/bytes.mjs +0 -26
  220. package/internal/utils/bytes.mjs.map +0 -1
  221. package/internal/utils/env.d.mts +0 -9
  222. package/internal/utils/env.d.mts.map +0 -1
  223. package/internal/utils/env.d.ts +0 -9
  224. package/internal/utils/env.d.ts.map +0 -1
  225. package/internal/utils/env.js +0 -22
  226. package/internal/utils/env.js.map +0 -1
  227. package/internal/utils/env.mjs +0 -18
  228. package/internal/utils/env.mjs.map +0 -1
  229. package/internal/utils/log.d.mts +0 -37
  230. package/internal/utils/log.d.mts.map +0 -1
  231. package/internal/utils/log.d.ts +0 -37
  232. package/internal/utils/log.d.ts.map +0 -1
  233. package/internal/utils/log.js +0 -88
  234. package/internal/utils/log.js.map +0 -1
  235. package/internal/utils/log.mjs +0 -82
  236. package/internal/utils/log.mjs.map +0 -1
  237. package/internal/utils/path.d.mts +0 -15
  238. package/internal/utils/path.d.mts.map +0 -1
  239. package/internal/utils/path.d.ts +0 -15
  240. package/internal/utils/path.d.ts.map +0 -1
  241. package/internal/utils/path.js +0 -79
  242. package/internal/utils/path.js.map +0 -1
  243. package/internal/utils/path.mjs +0 -74
  244. package/internal/utils/path.mjs.map +0 -1
  245. package/internal/utils/query.d.mts +0 -2
  246. package/internal/utils/query.d.mts.map +0 -1
  247. package/internal/utils/query.d.ts +0 -2
  248. package/internal/utils/query.d.ts.map +0 -1
  249. package/internal/utils/query.js +0 -10
  250. package/internal/utils/query.js.map +0 -1
  251. package/internal/utils/query.mjs +0 -6
  252. package/internal/utils/query.mjs.map +0 -1
  253. package/internal/utils/sleep.d.mts +0 -2
  254. package/internal/utils/sleep.d.mts.map +0 -1
  255. package/internal/utils/sleep.d.ts +0 -2
  256. package/internal/utils/sleep.d.ts.map +0 -1
  257. package/internal/utils/sleep.js +0 -7
  258. package/internal/utils/sleep.js.map +0 -1
  259. package/internal/utils/sleep.mjs +0 -3
  260. package/internal/utils/sleep.mjs.map +0 -1
  261. package/internal/utils/uuid.d.mts +0 -5
  262. package/internal/utils/uuid.d.mts.map +0 -1
  263. package/internal/utils/uuid.d.ts +0 -5
  264. package/internal/utils/uuid.d.ts.map +0 -1
  265. package/internal/utils/uuid.js +0 -19
  266. package/internal/utils/uuid.js.map +0 -1
  267. package/internal/utils/uuid.mjs +0 -15
  268. package/internal/utils/uuid.mjs.map +0 -1
  269. package/internal/utils/values.d.mts +0 -18
  270. package/internal/utils/values.d.mts.map +0 -1
  271. package/internal/utils/values.d.ts +0 -18
  272. package/internal/utils/values.d.ts.map +0 -1
  273. package/internal/utils/values.js +0 -112
  274. package/internal/utils/values.js.map +0 -1
  275. package/internal/utils/values.mjs +0 -94
  276. package/internal/utils/values.mjs.map +0 -1
  277. package/internal/utils.d.mts +0 -8
  278. package/internal/utils.d.mts.map +0 -1
  279. package/internal/utils.d.ts +0 -8
  280. package/internal/utils.d.ts.map +0 -1
  281. package/internal/utils.js +0 -12
  282. package/internal/utils.js.map +0 -1
  283. package/internal/utils.mjs +0 -9
  284. package/internal/utils.mjs.map +0 -1
  285. package/resource.d.mts +0 -3
  286. package/resource.d.mts.map +0 -1
  287. package/resource.d.ts +0 -3
  288. package/resource.d.ts.map +0 -1
  289. package/resource.js +0 -6
  290. package/resource.js.map +0 -1
  291. package/resource.mjs +0 -3
  292. package/resource.mjs.map +0 -1
  293. package/resources/connect/connect.d.mts +0 -31
  294. package/resources/connect/connect.d.mts.map +0 -1
  295. package/resources/connect/connect.d.ts +0 -31
  296. package/resources/connect/connect.d.ts.map +0 -1
  297. package/resources/connect/connect.js +0 -24
  298. package/resources/connect/connect.js.map +0 -1
  299. package/resources/connect/connect.mjs +0 -19
  300. package/resources/connect/connect.mjs.map +0 -1
  301. package/resources/connect/index.d.mts +0 -3
  302. package/resources/connect/index.d.mts.map +0 -1
  303. package/resources/connect/index.d.ts +0 -3
  304. package/resources/connect/index.d.ts.map +0 -1
  305. package/resources/connect/index.js +0 -9
  306. package/resources/connect/index.js.map +0 -1
  307. package/resources/connect/index.mjs +0 -4
  308. package/resources/connect/index.mjs.map +0 -1
  309. package/resources/connect/integrations.d.mts +0 -78
  310. package/resources/connect/integrations.d.mts.map +0 -1
  311. package/resources/connect/integrations.d.ts +0 -78
  312. package/resources/connect/integrations.d.ts.map +0 -1
  313. package/resources/connect/integrations.js +0 -22
  314. package/resources/connect/integrations.js.map +0 -1
  315. package/resources/connect/integrations.mjs +0 -18
  316. package/resources/connect/integrations.mjs.map +0 -1
  317. package/resources/connect.d.mts +0 -2
  318. package/resources/connect.d.mts.map +0 -1
  319. package/resources/connect.d.ts +0 -2
  320. package/resources/connect.d.ts.map +0 -1
  321. package/resources/connect.js +0 -6
  322. package/resources/connect.js.map +0 -1
  323. package/resources/connect.mjs +0 -3
  324. package/resources/connect.mjs.map +0 -1
  325. package/resources/health.d.mts +0 -23
  326. package/resources/health.d.mts.map +0 -1
  327. package/resources/health.d.ts +0 -23
  328. package/resources/health.d.ts.map +0 -1
  329. package/resources/health.js +0 -21
  330. package/resources/health.js.map +0 -1
  331. package/resources/health.mjs +0 -17
  332. package/resources/health.mjs.map +0 -1
  333. package/resources/index.d.mts +0 -6
  334. package/resources/index.d.mts.map +0 -1
  335. package/resources/index.d.ts +0 -6
  336. package/resources/index.d.ts.map +0 -1
  337. package/resources/index.js +0 -15
  338. package/resources/index.js.map +0 -1
  339. package/resources/index.mjs +0 -7
  340. package/resources/index.mjs.map +0 -1
  341. package/resources/media.d.mts +0 -27
  342. package/resources/media.d.mts.map +0 -1
  343. package/resources/media.d.ts +0 -27
  344. package/resources/media.d.ts.map +0 -1
  345. package/resources/media.js +0 -15
  346. package/resources/media.js.map +0 -1
  347. package/resources/media.mjs +0 -11
  348. package/resources/media.mjs.map +0 -1
  349. package/resources/platforms.d.mts +0 -22
  350. package/resources/platforms.d.mts.map +0 -1
  351. package/resources/platforms.d.ts +0 -22
  352. package/resources/platforms.d.ts.map +0 -1
  353. package/resources/platforms.js +0 -15
  354. package/resources/platforms.js.map +0 -1
  355. package/resources/platforms.mjs +0 -11
  356. package/resources/platforms.mjs.map +0 -1
  357. package/resources/posts/index.d.mts +0 -3
  358. package/resources/posts/index.d.mts.map +0 -1
  359. package/resources/posts/index.d.ts +0 -3
  360. package/resources/posts/index.d.ts.map +0 -1
  361. package/resources/posts/index.js +0 -9
  362. package/resources/posts/index.js.map +0 -1
  363. package/resources/posts/index.mjs +0 -4
  364. package/resources/posts/index.mjs.map +0 -1
  365. package/resources/posts/posts.d.mts +0 -300
  366. package/resources/posts/posts.d.mts.map +0 -1
  367. package/resources/posts/posts.d.ts +0 -300
  368. package/resources/posts/posts.d.ts.map +0 -1
  369. package/resources/posts/posts.js +0 -69
  370. package/resources/posts/posts.js.map +0 -1
  371. package/resources/posts/posts.mjs +0 -64
  372. package/resources/posts/posts.mjs.map +0 -1
  373. package/resources/posts/scheduled.d.mts +0 -121
  374. package/resources/posts/scheduled.d.mts.map +0 -1
  375. package/resources/posts/scheduled.d.ts +0 -121
  376. package/resources/posts/scheduled.d.ts.map +0 -1
  377. package/resources/posts/scheduled.js +0 -49
  378. package/resources/posts/scheduled.js.map +0 -1
  379. package/resources/posts/scheduled.mjs +0 -45
  380. package/resources/posts/scheduled.mjs.map +0 -1
  381. package/resources/posts.d.mts +0 -2
  382. package/resources/posts.d.mts.map +0 -1
  383. package/resources/posts.d.ts +0 -2
  384. package/resources/posts.d.ts.map +0 -1
  385. package/resources/posts.js +0 -6
  386. package/resources/posts.js.map +0 -1
  387. package/resources/posts.mjs +0 -3
  388. package/resources/posts.mjs.map +0 -1
  389. package/resources.d.mts +0 -2
  390. package/resources.d.mts.map +0 -1
  391. package/resources.d.ts +0 -2
  392. package/resources.d.ts.map +0 -1
  393. package/resources.js +0 -5
  394. package/resources.js.map +0 -1
  395. package/resources.mjs +0 -2
  396. package/resources.mjs.map +0 -1
  397. package/src/api-promise.ts +0 -2
  398. package/src/client.ts +0 -789
  399. package/src/core/README.md +0 -3
  400. package/src/core/api-promise.ts +0 -92
  401. package/src/core/error.ts +0 -130
  402. package/src/core/resource.ts +0 -11
  403. package/src/core/uploads.ts +0 -2
  404. package/src/error.ts +0 -2
  405. package/src/index.ts +0 -22
  406. package/src/internal/README.md +0 -3
  407. package/src/internal/builtin-types.ts +0 -93
  408. package/src/internal/detect-platform.ts +0 -196
  409. package/src/internal/errors.ts +0 -33
  410. package/src/internal/headers.ts +0 -97
  411. package/src/internal/parse.ts +0 -56
  412. package/src/internal/qs/LICENSE.md +0 -13
  413. package/src/internal/qs/README.md +0 -3
  414. package/src/internal/qs/formats.ts +0 -10
  415. package/src/internal/qs/index.ts +0 -13
  416. package/src/internal/qs/stringify.ts +0 -385
  417. package/src/internal/qs/types.ts +0 -71
  418. package/src/internal/qs/utils.ts +0 -265
  419. package/src/internal/request-options.ts +0 -91
  420. package/src/internal/shim-types.ts +0 -26
  421. package/src/internal/shims.ts +0 -107
  422. package/src/internal/to-file.ts +0 -154
  423. package/src/internal/types.ts +0 -93
  424. package/src/internal/uploads.ts +0 -187
  425. package/src/internal/utils/base64.ts +0 -40
  426. package/src/internal/utils/bytes.ts +0 -32
  427. package/src/internal/utils/env.ts +0 -18
  428. package/src/internal/utils/log.ts +0 -129
  429. package/src/internal/utils/path.ts +0 -88
  430. package/src/internal/utils/query.ts +0 -7
  431. package/src/internal/utils/sleep.ts +0 -3
  432. package/src/internal/utils/uuid.ts +0 -17
  433. package/src/internal/utils/values.ts +0 -105
  434. package/src/internal/utils.ts +0 -9
  435. package/src/lib/.keep +0 -4
  436. package/src/resource.ts +0 -2
  437. package/src/resources/connect/connect.ts +0 -70
  438. package/src/resources/connect/index.ts +0 -9
  439. package/src/resources/connect/integrations.ts +0 -130
  440. package/src/resources/connect.ts +0 -3
  441. package/src/resources/health.ts +0 -36
  442. package/src/resources/index.ts +0 -16
  443. package/src/resources/media.ts +0 -38
  444. package/src/resources/platforms.ts +0 -39
  445. package/src/resources/posts/index.ts +0 -20
  446. package/src/resources/posts/posts.ts +0 -472
  447. package/src/resources/posts/scheduled.ts +0 -180
  448. package/src/resources/posts.ts +0 -3
  449. package/src/resources.ts +0 -1
  450. package/src/tsconfig.json +0 -11
  451. package/src/uploads.ts +0 -2
  452. package/src/version.ts +0 -1
  453. package/uploads.d.mts +0 -3
  454. package/uploads.d.mts.map +0 -1
  455. package/uploads.d.ts +0 -3
  456. package/uploads.d.ts.map +0 -1
  457. package/uploads.js +0 -6
  458. package/uploads.js.map +0 -1
  459. package/uploads.mjs +0 -3
  460. package/uploads.mjs.map +0 -1
  461. package/version.d.mts +0 -2
  462. package/version.d.mts.map +0 -1
  463. package/version.d.ts +0 -2
  464. package/version.d.ts.map +0 -1
  465. package/version.js +0 -5
  466. package/version.js.map +0 -1
  467. package/version.mjs +0 -2
  468. package/version.mjs.map +0 -1
package/index.js DELETED
@@ -1,30 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- exports = module.exports = function (...args) {
4
- return new exports.default(...args)
5
- }
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.UnprocessableEntityError = exports.PermissionDeniedError = exports.InternalServerError = exports.AuthenticationError = exports.BadRequestError = exports.RateLimitError = exports.ConflictError = exports.NotFoundError = exports.APIUserAbortError = exports.APIConnectionTimeoutError = exports.APIConnectionError = exports.APIError = exports.PostpeerError = exports.Postpeer = exports.APIPromise = exports.toFile = exports.default = void 0;
8
- var client_1 = require("./client.js");
9
- Object.defineProperty(exports, "default", { enumerable: true, get: function () { return client_1.Postpeer; } });
10
- var uploads_1 = require("./core/uploads.js");
11
- Object.defineProperty(exports, "toFile", { enumerable: true, get: function () { return uploads_1.toFile; } });
12
- var api_promise_1 = require("./core/api-promise.js");
13
- Object.defineProperty(exports, "APIPromise", { enumerable: true, get: function () { return api_promise_1.APIPromise; } });
14
- var client_2 = require("./client.js");
15
- Object.defineProperty(exports, "Postpeer", { enumerable: true, get: function () { return client_2.Postpeer; } });
16
- var error_1 = require("./core/error.js");
17
- Object.defineProperty(exports, "PostpeerError", { enumerable: true, get: function () { return error_1.PostpeerError; } });
18
- Object.defineProperty(exports, "APIError", { enumerable: true, get: function () { return error_1.APIError; } });
19
- Object.defineProperty(exports, "APIConnectionError", { enumerable: true, get: function () { return error_1.APIConnectionError; } });
20
- Object.defineProperty(exports, "APIConnectionTimeoutError", { enumerable: true, get: function () { return error_1.APIConnectionTimeoutError; } });
21
- Object.defineProperty(exports, "APIUserAbortError", { enumerable: true, get: function () { return error_1.APIUserAbortError; } });
22
- Object.defineProperty(exports, "NotFoundError", { enumerable: true, get: function () { return error_1.NotFoundError; } });
23
- Object.defineProperty(exports, "ConflictError", { enumerable: true, get: function () { return error_1.ConflictError; } });
24
- Object.defineProperty(exports, "RateLimitError", { enumerable: true, get: function () { return error_1.RateLimitError; } });
25
- Object.defineProperty(exports, "BadRequestError", { enumerable: true, get: function () { return error_1.BadRequestError; } });
26
- Object.defineProperty(exports, "AuthenticationError", { enumerable: true, get: function () { return error_1.AuthenticationError; } });
27
- Object.defineProperty(exports, "InternalServerError", { enumerable: true, get: function () { return error_1.InternalServerError; } });
28
- Object.defineProperty(exports, "PermissionDeniedError", { enumerable: true, get: function () { return error_1.PermissionDeniedError; } });
29
- Object.defineProperty(exports, "UnprocessableEntityError", { enumerable: true, get: function () { return error_1.UnprocessableEntityError; } });
30
- //# sourceMappingURL=index.js.map
package/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAA+C;AAAtC,iGAAA,QAAQ,OAAW;AAE5B,6CAAyD;AAA/B,iGAAA,MAAM,OAAA;AAChC,qDAAgD;AAAvC,yGAAA,UAAU,OAAA;AACnB,sCAAwD;AAA/C,kGAAA,QAAQ,OAAA;AACjB,yCAcsB;AAbpB,sGAAA,aAAa,OAAA;AACb,iGAAA,QAAQ,OAAA;AACR,2GAAA,kBAAkB,OAAA;AAClB,kHAAA,yBAAyB,OAAA;AACzB,0GAAA,iBAAiB,OAAA;AACjB,sGAAA,aAAa,OAAA;AACb,sGAAA,aAAa,OAAA;AACb,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,4GAAA,mBAAmB,OAAA;AACnB,4GAAA,mBAAmB,OAAA;AACnB,8GAAA,qBAAqB,OAAA;AACrB,iHAAA,wBAAwB,OAAA"}
package/index.mjs DELETED
@@ -1,7 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { Postpeer as default } from "./client.mjs";
3
- export { toFile } from "./core/uploads.mjs";
4
- export { APIPromise } from "./core/api-promise.mjs";
5
- export { Postpeer } from "./client.mjs";
6
- export { PostpeerError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./core/error.mjs";
7
- //# sourceMappingURL=index.mjs.map
package/index.mjs.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,QAAQ,IAAI,OAAO,EAAE,qBAAiB;AAE/C,OAAO,EAAmB,MAAM,EAAE,2BAAuB;AACzD,OAAO,EAAE,UAAU,EAAE,+BAA2B;AAChD,OAAO,EAAE,QAAQ,EAAsB,qBAAiB;AACxD,OAAO,EACL,aAAa,EACb,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB,yBAAqB"}
@@ -1,73 +0,0 @@
1
- export type Fetch = (input: string | URL | Request, init?: RequestInit) => Promise<Response>;
2
- /**
3
- * An alias to the builtin `RequestInit` type so we can
4
- * easily alias it in import statements if there are name clashes.
5
- *
6
- * https://developer.mozilla.org/docs/Web/API/RequestInit
7
- */
8
- type _RequestInit = RequestInit;
9
- /**
10
- * An alias to the builtin `Response` type so we can
11
- * easily alias it in import statements if there are name clashes.
12
- *
13
- * https://developer.mozilla.org/docs/Web/API/Response
14
- */
15
- type _Response = Response;
16
- /**
17
- * The type for the first argument to `fetch`.
18
- *
19
- * https://developer.mozilla.org/docs/Web/API/Window/fetch#resource
20
- */
21
- type _RequestInfo = Request | URL | string;
22
- /**
23
- * The type for constructing `RequestInit` Headers.
24
- *
25
- * https://developer.mozilla.org/docs/Web/API/RequestInit#setting_headers
26
- */
27
- type _HeadersInit = RequestInit['headers'];
28
- /**
29
- * The type for constructing `RequestInit` body.
30
- *
31
- * https://developer.mozilla.org/docs/Web/API/RequestInit#body
32
- */
33
- type _BodyInit = RequestInit['body'];
34
- /**
35
- * An alias to the builtin `Array<T>` type so we can
36
- * easily alias it in import statements if there are name clashes.
37
- */
38
- type _Array<T> = Array<T>;
39
- /**
40
- * An alias to the builtin `Record<K, T>` type so we can
41
- * easily alias it in import statements if there are name clashes.
42
- */
43
- type _Record<K extends keyof any, T> = Record<K, T>;
44
- export type { _Array as Array, _BodyInit as BodyInit, _HeadersInit as HeadersInit, _Record as Record, _RequestInfo as RequestInfo, _RequestInit as RequestInit, _Response as Response, };
45
- /**
46
- * A copy of the builtin `EndingType` type as it isn't fully supported in certain
47
- * environments and attempting to reference the global version will error.
48
- *
49
- * https://github.com/microsoft/TypeScript/blob/49ad1a3917a0ea57f5ff248159256e12bb1cb705/src/lib/dom.generated.d.ts#L27941
50
- */
51
- type EndingType = 'native' | 'transparent';
52
- /**
53
- * A copy of the builtin `BlobPropertyBag` type as it isn't fully supported in certain
54
- * environments and attempting to reference the global version will error.
55
- *
56
- * https://github.com/microsoft/TypeScript/blob/49ad1a3917a0ea57f5ff248159256e12bb1cb705/src/lib/dom.generated.d.ts#L154
57
- * https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob#options
58
- */
59
- export interface BlobPropertyBag {
60
- endings?: EndingType;
61
- type?: string;
62
- }
63
- /**
64
- * A copy of the builtin `FilePropertyBag` type as it isn't fully supported in certain
65
- * environments and attempting to reference the global version will error.
66
- *
67
- * https://github.com/microsoft/TypeScript/blob/49ad1a3917a0ea57f5ff248159256e12bb1cb705/src/lib/dom.generated.d.ts#L503
68
- * https://developer.mozilla.org/en-US/docs/Web/API/File/File#options
69
- */
70
- export interface FilePropertyBag extends BlobPropertyBag {
71
- lastModified?: number;
72
- }
73
- //# sourceMappingURL=builtin-types.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"builtin-types.d.mts","sourceRoot":"","sources":["../src/internal/builtin-types.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,KAAK,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,OAAO,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;AAE7F;;;;;GAKG;AACH,KAAK,YAAY,GAAG,WAAW,CAAC;AAEhC;;;;;GAKG;AACH,KAAK,SAAS,GAAG,QAAQ,CAAC;AAE1B;;;;GAIG;AACH,KAAK,YAAY,GAAG,OAAO,GAAG,GAAG,GAAG,MAAM,CAAC;AAE3C;;;;GAIG;AACH,KAAK,YAAY,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAE3C;;;;GAIG;AACH,KAAK,SAAS,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;AAErC;;;GAGG;AACH,KAAK,MAAM,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;AAE1B;;;GAGG;AACH,KAAK,OAAO,CAAC,CAAC,SAAS,MAAM,GAAG,EAAE,CAAC,IAAI,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAEpD,YAAY,EACV,MAAM,IAAI,KAAK,EACf,SAAS,IAAI,QAAQ,EACrB,YAAY,IAAI,WAAW,EAC3B,OAAO,IAAI,MAAM,EACjB,YAAY,IAAI,WAAW,EAC3B,YAAY,IAAI,WAAW,EAC3B,SAAS,IAAI,QAAQ,GACtB,CAAC;AAEF;;;;;GAKG;AACH,KAAK,UAAU,GAAG,QAAQ,GAAG,aAAa,CAAC;AAE3C;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
@@ -1,73 +0,0 @@
1
- export type Fetch = (input: string | URL | Request, init?: RequestInit) => Promise<Response>;
2
- /**
3
- * An alias to the builtin `RequestInit` type so we can
4
- * easily alias it in import statements if there are name clashes.
5
- *
6
- * https://developer.mozilla.org/docs/Web/API/RequestInit
7
- */
8
- type _RequestInit = RequestInit;
9
- /**
10
- * An alias to the builtin `Response` type so we can
11
- * easily alias it in import statements if there are name clashes.
12
- *
13
- * https://developer.mozilla.org/docs/Web/API/Response
14
- */
15
- type _Response = Response;
16
- /**
17
- * The type for the first argument to `fetch`.
18
- *
19
- * https://developer.mozilla.org/docs/Web/API/Window/fetch#resource
20
- */
21
- type _RequestInfo = Request | URL | string;
22
- /**
23
- * The type for constructing `RequestInit` Headers.
24
- *
25
- * https://developer.mozilla.org/docs/Web/API/RequestInit#setting_headers
26
- */
27
- type _HeadersInit = RequestInit['headers'];
28
- /**
29
- * The type for constructing `RequestInit` body.
30
- *
31
- * https://developer.mozilla.org/docs/Web/API/RequestInit#body
32
- */
33
- type _BodyInit = RequestInit['body'];
34
- /**
35
- * An alias to the builtin `Array<T>` type so we can
36
- * easily alias it in import statements if there are name clashes.
37
- */
38
- type _Array<T> = Array<T>;
39
- /**
40
- * An alias to the builtin `Record<K, T>` type so we can
41
- * easily alias it in import statements if there are name clashes.
42
- */
43
- type _Record<K extends keyof any, T> = Record<K, T>;
44
- export type { _Array as Array, _BodyInit as BodyInit, _HeadersInit as HeadersInit, _Record as Record, _RequestInfo as RequestInfo, _RequestInit as RequestInit, _Response as Response, };
45
- /**
46
- * A copy of the builtin `EndingType` type as it isn't fully supported in certain
47
- * environments and attempting to reference the global version will error.
48
- *
49
- * https://github.com/microsoft/TypeScript/blob/49ad1a3917a0ea57f5ff248159256e12bb1cb705/src/lib/dom.generated.d.ts#L27941
50
- */
51
- type EndingType = 'native' | 'transparent';
52
- /**
53
- * A copy of the builtin `BlobPropertyBag` type as it isn't fully supported in certain
54
- * environments and attempting to reference the global version will error.
55
- *
56
- * https://github.com/microsoft/TypeScript/blob/49ad1a3917a0ea57f5ff248159256e12bb1cb705/src/lib/dom.generated.d.ts#L154
57
- * https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob#options
58
- */
59
- export interface BlobPropertyBag {
60
- endings?: EndingType;
61
- type?: string;
62
- }
63
- /**
64
- * A copy of the builtin `FilePropertyBag` type as it isn't fully supported in certain
65
- * environments and attempting to reference the global version will error.
66
- *
67
- * https://github.com/microsoft/TypeScript/blob/49ad1a3917a0ea57f5ff248159256e12bb1cb705/src/lib/dom.generated.d.ts#L503
68
- * https://developer.mozilla.org/en-US/docs/Web/API/File/File#options
69
- */
70
- export interface FilePropertyBag extends BlobPropertyBag {
71
- lastModified?: number;
72
- }
73
- //# sourceMappingURL=builtin-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"builtin-types.d.ts","sourceRoot":"","sources":["../src/internal/builtin-types.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,KAAK,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,OAAO,EAAE,IAAI,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;AAE7F;;;;;GAKG;AACH,KAAK,YAAY,GAAG,WAAW,CAAC;AAEhC;;;;;GAKG;AACH,KAAK,SAAS,GAAG,QAAQ,CAAC;AAE1B;;;;GAIG;AACH,KAAK,YAAY,GAAG,OAAO,GAAG,GAAG,GAAG,MAAM,CAAC;AAE3C;;;;GAIG;AACH,KAAK,YAAY,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;AAE3C;;;;GAIG;AACH,KAAK,SAAS,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;AAErC;;;GAGG;AACH,KAAK,MAAM,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC;AAE1B;;;GAGG;AACH,KAAK,OAAO,CAAC,CAAC,SAAS,MAAM,GAAG,EAAE,CAAC,IAAI,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAEpD,YAAY,EACV,MAAM,IAAI,KAAK,EACf,SAAS,IAAI,QAAQ,EACrB,YAAY,IAAI,WAAW,EAC3B,OAAO,IAAI,MAAM,EACjB,YAAY,IAAI,WAAW,EAC3B,YAAY,IAAI,WAAW,EAC3B,SAAS,IAAI,QAAQ,GACtB,CAAC;AAEF;;;;;GAKG;AACH,KAAK,UAAU,GAAG,QAAQ,GAAG,aAAa,CAAC;AAE3C;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
@@ -1,4 +0,0 @@
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
- //# sourceMappingURL=builtin-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"builtin-types.js","sourceRoot":"","sources":["../src/internal/builtin-types.ts"],"names":[],"mappings":";AAAA,sFAAsF"}
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export {};
3
- //# sourceMappingURL=builtin-types.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"builtin-types.mjs","sourceRoot":"","sources":["../src/internal/builtin-types.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,15 +0,0 @@
1
- export declare const isRunningInBrowser: () => boolean;
2
- type Arch = 'x32' | 'x64' | 'arm' | 'arm64' | `other:${string}` | 'unknown';
3
- type PlatformName = 'MacOS' | 'Linux' | 'Windows' | 'FreeBSD' | 'OpenBSD' | 'iOS' | 'Android' | `Other:${string}` | 'Unknown';
4
- type Browser = 'ie' | 'edge' | 'chrome' | 'firefox' | 'safari';
5
- type PlatformProperties = {
6
- 'X-Stainless-Lang': 'js';
7
- 'X-Stainless-Package-Version': string;
8
- 'X-Stainless-OS': PlatformName;
9
- 'X-Stainless-Arch': Arch;
10
- 'X-Stainless-Runtime': 'node' | 'deno' | 'edge' | `browser:${Browser}` | 'unknown';
11
- 'X-Stainless-Runtime-Version': string;
12
- };
13
- export declare const getPlatformHeaders: () => PlatformProperties;
14
- export {};
15
- //# sourceMappingURL=detect-platform.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"detect-platform.d.mts","sourceRoot":"","sources":["../src/internal/detect-platform.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,eAS9B,CAAC;AA0BF,KAAK,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;AAC5E,KAAK,YAAY,GACb,OAAO,GACP,OAAO,GACP,SAAS,GACT,SAAS,GACT,SAAS,GACT,KAAK,GACL,SAAS,GACT,SAAS,MAAM,EAAE,GACjB,SAAS,CAAC;AACd,KAAK,OAAO,GAAG,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC/D,KAAK,kBAAkB,GAAG;IACxB,kBAAkB,EAAE,IAAI,CAAC;IACzB,6BAA6B,EAAE,MAAM,CAAC;IACtC,gBAAgB,EAAE,YAAY,CAAC;IAC/B,kBAAkB,EAAE,IAAI,CAAC;IACzB,qBAAqB,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,OAAO,EAAE,GAAG,SAAS,CAAC;IACnF,6BAA6B,EAAE,MAAM,CAAC;CACvC,CAAC;AAuIF,eAAO,MAAM,kBAAkB,0BAE9B,CAAC"}
@@ -1,15 +0,0 @@
1
- export declare const isRunningInBrowser: () => boolean;
2
- type Arch = 'x32' | 'x64' | 'arm' | 'arm64' | `other:${string}` | 'unknown';
3
- type PlatformName = 'MacOS' | 'Linux' | 'Windows' | 'FreeBSD' | 'OpenBSD' | 'iOS' | 'Android' | `Other:${string}` | 'Unknown';
4
- type Browser = 'ie' | 'edge' | 'chrome' | 'firefox' | 'safari';
5
- type PlatformProperties = {
6
- 'X-Stainless-Lang': 'js';
7
- 'X-Stainless-Package-Version': string;
8
- 'X-Stainless-OS': PlatformName;
9
- 'X-Stainless-Arch': Arch;
10
- 'X-Stainless-Runtime': 'node' | 'deno' | 'edge' | `browser:${Browser}` | 'unknown';
11
- 'X-Stainless-Runtime-Version': string;
12
- };
13
- export declare const getPlatformHeaders: () => PlatformProperties;
14
- export {};
15
- //# sourceMappingURL=detect-platform.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"detect-platform.d.ts","sourceRoot":"","sources":["../src/internal/detect-platform.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB,eAS9B,CAAC;AA0BF,KAAK,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;AAC5E,KAAK,YAAY,GACb,OAAO,GACP,OAAO,GACP,SAAS,GACT,SAAS,GACT,SAAS,GACT,KAAK,GACL,SAAS,GACT,SAAS,MAAM,EAAE,GACjB,SAAS,CAAC;AACd,KAAK,OAAO,GAAG,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC/D,KAAK,kBAAkB,GAAG;IACxB,kBAAkB,EAAE,IAAI,CAAC;IACzB,6BAA6B,EAAE,MAAM,CAAC;IACtC,gBAAgB,EAAE,YAAY,CAAC;IAC/B,kBAAkB,EAAE,IAAI,CAAC;IACzB,qBAAqB,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,WAAW,OAAO,EAAE,GAAG,SAAS,CAAC;IACnF,6BAA6B,EAAE,MAAM,CAAC;CACvC,CAAC;AAuIF,eAAO,MAAM,kBAAkB,0BAE9B,CAAC"}
@@ -1,162 +0,0 @@
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.getPlatformHeaders = exports.isRunningInBrowser = void 0;
5
- const version_1 = require("../version.js");
6
- const isRunningInBrowser = () => {
7
- return (
8
- // @ts-ignore
9
- typeof window !== 'undefined' &&
10
- // @ts-ignore
11
- typeof window.document !== 'undefined' &&
12
- // @ts-ignore
13
- typeof navigator !== 'undefined');
14
- };
15
- exports.isRunningInBrowser = isRunningInBrowser;
16
- /**
17
- * Note this does not detect 'browser'; for that, use getBrowserInfo().
18
- */
19
- function getDetectedPlatform() {
20
- if (typeof Deno !== 'undefined' && Deno.build != null) {
21
- return 'deno';
22
- }
23
- if (typeof EdgeRuntime !== 'undefined') {
24
- return 'edge';
25
- }
26
- if (Object.prototype.toString.call(typeof globalThis.process !== 'undefined' ? globalThis.process : 0) === '[object process]') {
27
- return 'node';
28
- }
29
- return 'unknown';
30
- }
31
- const getPlatformProperties = () => {
32
- const detectedPlatform = getDetectedPlatform();
33
- if (detectedPlatform === 'deno') {
34
- return {
35
- 'X-Stainless-Lang': 'js',
36
- 'X-Stainless-Package-Version': version_1.VERSION,
37
- 'X-Stainless-OS': normalizePlatform(Deno.build.os),
38
- 'X-Stainless-Arch': normalizeArch(Deno.build.arch),
39
- 'X-Stainless-Runtime': 'deno',
40
- 'X-Stainless-Runtime-Version': typeof Deno.version === 'string' ? Deno.version : Deno.version?.deno ?? 'unknown',
41
- };
42
- }
43
- if (typeof EdgeRuntime !== 'undefined') {
44
- return {
45
- 'X-Stainless-Lang': 'js',
46
- 'X-Stainless-Package-Version': version_1.VERSION,
47
- 'X-Stainless-OS': 'Unknown',
48
- 'X-Stainless-Arch': `other:${EdgeRuntime}`,
49
- 'X-Stainless-Runtime': 'edge',
50
- 'X-Stainless-Runtime-Version': globalThis.process.version,
51
- };
52
- }
53
- // Check if Node.js
54
- if (detectedPlatform === 'node') {
55
- return {
56
- 'X-Stainless-Lang': 'js',
57
- 'X-Stainless-Package-Version': version_1.VERSION,
58
- 'X-Stainless-OS': normalizePlatform(globalThis.process.platform ?? 'unknown'),
59
- 'X-Stainless-Arch': normalizeArch(globalThis.process.arch ?? 'unknown'),
60
- 'X-Stainless-Runtime': 'node',
61
- 'X-Stainless-Runtime-Version': globalThis.process.version ?? 'unknown',
62
- };
63
- }
64
- const browserInfo = getBrowserInfo();
65
- if (browserInfo) {
66
- return {
67
- 'X-Stainless-Lang': 'js',
68
- 'X-Stainless-Package-Version': version_1.VERSION,
69
- 'X-Stainless-OS': 'Unknown',
70
- 'X-Stainless-Arch': 'unknown',
71
- 'X-Stainless-Runtime': `browser:${browserInfo.browser}`,
72
- 'X-Stainless-Runtime-Version': browserInfo.version,
73
- };
74
- }
75
- // TODO add support for Cloudflare workers, etc.
76
- return {
77
- 'X-Stainless-Lang': 'js',
78
- 'X-Stainless-Package-Version': version_1.VERSION,
79
- 'X-Stainless-OS': 'Unknown',
80
- 'X-Stainless-Arch': 'unknown',
81
- 'X-Stainless-Runtime': 'unknown',
82
- 'X-Stainless-Runtime-Version': 'unknown',
83
- };
84
- };
85
- // Note: modified from https://github.com/JS-DevTools/host-environment/blob/b1ab79ecde37db5d6e163c050e54fe7d287d7c92/src/isomorphic.browser.ts
86
- function getBrowserInfo() {
87
- if (typeof navigator === 'undefined' || !navigator) {
88
- return null;
89
- }
90
- // NOTE: The order matters here!
91
- const browserPatterns = [
92
- { key: 'edge', pattern: /Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ },
93
- { key: 'ie', pattern: /MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ },
94
- { key: 'ie', pattern: /Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/ },
95
- { key: 'chrome', pattern: /Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ },
96
- { key: 'firefox', pattern: /Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ },
97
- { key: 'safari', pattern: /(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/ },
98
- ];
99
- // Find the FIRST matching browser
100
- for (const { key, pattern } of browserPatterns) {
101
- const match = pattern.exec(navigator.userAgent);
102
- if (match) {
103
- const major = match[1] || 0;
104
- const minor = match[2] || 0;
105
- const patch = match[3] || 0;
106
- return { browser: key, version: `${major}.${minor}.${patch}` };
107
- }
108
- }
109
- return null;
110
- }
111
- const normalizeArch = (arch) => {
112
- // Node docs:
113
- // - https://nodejs.org/api/process.html#processarch
114
- // Deno docs:
115
- // - https://doc.deno.land/deno/stable/~/Deno.build
116
- if (arch === 'x32')
117
- return 'x32';
118
- if (arch === 'x86_64' || arch === 'x64')
119
- return 'x64';
120
- if (arch === 'arm')
121
- return 'arm';
122
- if (arch === 'aarch64' || arch === 'arm64')
123
- return 'arm64';
124
- if (arch)
125
- return `other:${arch}`;
126
- return 'unknown';
127
- };
128
- const normalizePlatform = (platform) => {
129
- // Node platforms:
130
- // - https://nodejs.org/api/process.html#processplatform
131
- // Deno platforms:
132
- // - https://doc.deno.land/deno/stable/~/Deno.build
133
- // - https://github.com/denoland/deno/issues/14799
134
- platform = platform.toLowerCase();
135
- // NOTE: this iOS check is untested and may not work
136
- // Node does not work natively on IOS, there is a fork at
137
- // https://github.com/nodejs-mobile/nodejs-mobile
138
- // however it is unknown at the time of writing how to detect if it is running
139
- if (platform.includes('ios'))
140
- return 'iOS';
141
- if (platform === 'android')
142
- return 'Android';
143
- if (platform === 'darwin')
144
- return 'MacOS';
145
- if (platform === 'win32')
146
- return 'Windows';
147
- if (platform === 'freebsd')
148
- return 'FreeBSD';
149
- if (platform === 'openbsd')
150
- return 'OpenBSD';
151
- if (platform === 'linux')
152
- return 'Linux';
153
- if (platform)
154
- return `Other:${platform}`;
155
- return 'Unknown';
156
- };
157
- let _platformHeaders;
158
- const getPlatformHeaders = () => {
159
- return (_platformHeaders ?? (_platformHeaders = getPlatformProperties()));
160
- };
161
- exports.getPlatformHeaders = getPlatformHeaders;
162
- //# sourceMappingURL=detect-platform.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"detect-platform.js","sourceRoot":"","sources":["../src/internal/detect-platform.ts"],"names":[],"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G,GAAG,EAAE;IACrC,OAAO,CAAC,gBAAgB,KAAhB,gBAAgB,GAAK,qBAAqB,EAAE,EAAC,CAAC;AACxD,CAAC,CAAC;AAFW,QAAA,kBAAkB,sBAE7B"}
@@ -1,157 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { VERSION } from "../version.mjs";
3
- export const isRunningInBrowser = () => {
4
- return (
5
- // @ts-ignore
6
- typeof window !== 'undefined' &&
7
- // @ts-ignore
8
- typeof window.document !== 'undefined' &&
9
- // @ts-ignore
10
- typeof navigator !== 'undefined');
11
- };
12
- /**
13
- * Note this does not detect 'browser'; for that, use getBrowserInfo().
14
- */
15
- function getDetectedPlatform() {
16
- if (typeof Deno !== 'undefined' && Deno.build != null) {
17
- return 'deno';
18
- }
19
- if (typeof EdgeRuntime !== 'undefined') {
20
- return 'edge';
21
- }
22
- if (Object.prototype.toString.call(typeof globalThis.process !== 'undefined' ? globalThis.process : 0) === '[object process]') {
23
- return 'node';
24
- }
25
- return 'unknown';
26
- }
27
- const getPlatformProperties = () => {
28
- const detectedPlatform = getDetectedPlatform();
29
- if (detectedPlatform === 'deno') {
30
- return {
31
- 'X-Stainless-Lang': 'js',
32
- 'X-Stainless-Package-Version': VERSION,
33
- 'X-Stainless-OS': normalizePlatform(Deno.build.os),
34
- 'X-Stainless-Arch': normalizeArch(Deno.build.arch),
35
- 'X-Stainless-Runtime': 'deno',
36
- 'X-Stainless-Runtime-Version': typeof Deno.version === 'string' ? Deno.version : Deno.version?.deno ?? 'unknown',
37
- };
38
- }
39
- if (typeof EdgeRuntime !== 'undefined') {
40
- return {
41
- 'X-Stainless-Lang': 'js',
42
- 'X-Stainless-Package-Version': VERSION,
43
- 'X-Stainless-OS': 'Unknown',
44
- 'X-Stainless-Arch': `other:${EdgeRuntime}`,
45
- 'X-Stainless-Runtime': 'edge',
46
- 'X-Stainless-Runtime-Version': globalThis.process.version,
47
- };
48
- }
49
- // Check if Node.js
50
- if (detectedPlatform === 'node') {
51
- return {
52
- 'X-Stainless-Lang': 'js',
53
- 'X-Stainless-Package-Version': VERSION,
54
- 'X-Stainless-OS': normalizePlatform(globalThis.process.platform ?? 'unknown'),
55
- 'X-Stainless-Arch': normalizeArch(globalThis.process.arch ?? 'unknown'),
56
- 'X-Stainless-Runtime': 'node',
57
- 'X-Stainless-Runtime-Version': globalThis.process.version ?? 'unknown',
58
- };
59
- }
60
- const browserInfo = getBrowserInfo();
61
- if (browserInfo) {
62
- return {
63
- 'X-Stainless-Lang': 'js',
64
- 'X-Stainless-Package-Version': VERSION,
65
- 'X-Stainless-OS': 'Unknown',
66
- 'X-Stainless-Arch': 'unknown',
67
- 'X-Stainless-Runtime': `browser:${browserInfo.browser}`,
68
- 'X-Stainless-Runtime-Version': browserInfo.version,
69
- };
70
- }
71
- // TODO add support for Cloudflare workers, etc.
72
- return {
73
- 'X-Stainless-Lang': 'js',
74
- 'X-Stainless-Package-Version': VERSION,
75
- 'X-Stainless-OS': 'Unknown',
76
- 'X-Stainless-Arch': 'unknown',
77
- 'X-Stainless-Runtime': 'unknown',
78
- 'X-Stainless-Runtime-Version': 'unknown',
79
- };
80
- };
81
- // Note: modified from https://github.com/JS-DevTools/host-environment/blob/b1ab79ecde37db5d6e163c050e54fe7d287d7c92/src/isomorphic.browser.ts
82
- function getBrowserInfo() {
83
- if (typeof navigator === 'undefined' || !navigator) {
84
- return null;
85
- }
86
- // NOTE: The order matters here!
87
- const browserPatterns = [
88
- { key: 'edge', pattern: /Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ },
89
- { key: 'ie', pattern: /MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ },
90
- { key: 'ie', pattern: /Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/ },
91
- { key: 'chrome', pattern: /Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ },
92
- { key: 'firefox', pattern: /Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/ },
93
- { key: 'safari', pattern: /(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/ },
94
- ];
95
- // Find the FIRST matching browser
96
- for (const { key, pattern } of browserPatterns) {
97
- const match = pattern.exec(navigator.userAgent);
98
- if (match) {
99
- const major = match[1] || 0;
100
- const minor = match[2] || 0;
101
- const patch = match[3] || 0;
102
- return { browser: key, version: `${major}.${minor}.${patch}` };
103
- }
104
- }
105
- return null;
106
- }
107
- const normalizeArch = (arch) => {
108
- // Node docs:
109
- // - https://nodejs.org/api/process.html#processarch
110
- // Deno docs:
111
- // - https://doc.deno.land/deno/stable/~/Deno.build
112
- if (arch === 'x32')
113
- return 'x32';
114
- if (arch === 'x86_64' || arch === 'x64')
115
- return 'x64';
116
- if (arch === 'arm')
117
- return 'arm';
118
- if (arch === 'aarch64' || arch === 'arm64')
119
- return 'arm64';
120
- if (arch)
121
- return `other:${arch}`;
122
- return 'unknown';
123
- };
124
- const normalizePlatform = (platform) => {
125
- // Node platforms:
126
- // - https://nodejs.org/api/process.html#processplatform
127
- // Deno platforms:
128
- // - https://doc.deno.land/deno/stable/~/Deno.build
129
- // - https://github.com/denoland/deno/issues/14799
130
- platform = platform.toLowerCase();
131
- // NOTE: this iOS check is untested and may not work
132
- // Node does not work natively on IOS, there is a fork at
133
- // https://github.com/nodejs-mobile/nodejs-mobile
134
- // however it is unknown at the time of writing how to detect if it is running
135
- if (platform.includes('ios'))
136
- return 'iOS';
137
- if (platform === 'android')
138
- return 'Android';
139
- if (platform === 'darwin')
140
- return 'MacOS';
141
- if (platform === 'win32')
142
- return 'Windows';
143
- if (platform === 'freebsd')
144
- return 'FreeBSD';
145
- if (platform === 'openbsd')
146
- return 'OpenBSD';
147
- if (platform === 'linux')
148
- return 'Linux';
149
- if (platform)
150
- return `Other:${platform}`;
151
- return 'Unknown';
152
- };
153
- let _platformHeaders;
154
- export const getPlatformHeaders = () => {
155
- return (_platformHeaders ?? (_platformHeaders = getPlatformProperties()));
156
- };
157
- //# sourceMappingURL=detect-platform.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"detect-platform.mjs","sourceRoot":"","sources":["../src/internal/detect-platform.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,OAAO,EAAE,uBAAmB;AAErC,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,OAAO;IACL,aAAa;IACb,OAAO,MAAM,KAAK,WAAW;QAC7B,aAAa;QACb,OAAO,MAAM,CAAC,QAAQ,KAAK,WAAW;QACtC,aAAa;QACb,OAAO,SAAS,KAAK,WAAW,CACjC,CAAC;AACJ,CAAC,CAAC;AAIF;;GAEG;AACH,SAAS,mBAAmB;IAC1B,IAAI,OAAO,IAAI,KAAK,WAAW,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE,CAAC;QACtD,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,IAAI,OAAO,WAAW,KAAK,WAAW,EAAE,CAAC;QACvC,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,IACE,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAC5B,OAAQ,UAAkB,CAAC,OAAO,KAAK,WAAW,CAAC,CAAC,CAAE,UAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CACrF,KAAK,kBAAkB,EACxB,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAwBD,MAAM,qBAAqB,GAAG,GAAuB,EAAE;IACrD,MAAM,gBAAgB,GAAG,mBAAmB,EAAE,CAAC;IAC/C,IAAI,gBAAgB,KAAK,MAAM,EAAE,CAAC;QAChC,OAAO;YACL,kBAAkB,EAAE,IAAI;YACxB,6BAA6B,EAAE,OAAO;YACtC,gBAAgB,EAAE,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAClD,kBAAkB,EAAE,aAAa,C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zC,IAAI,QAAQ;QAAE,OAAO,SAAS,QAAQ,EAAE,CAAC;IACzC,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,IAAI,gBAAoC,CAAC;AACzC,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,OAAO,CAAC,gBAAgB,KAAhB,gBAAgB,GAAK,qBAAqB,EAAE,EAAC,CAAC;AACxD,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- export declare function isAbortError(err: unknown): boolean;
2
- export declare const castToError: (err: any) => Error;
3
- //# sourceMappingURL=errors.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.d.mts","sourceRoot":"","sources":["../src/internal/errors.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,WASxC;AAED,eAAO,MAAM,WAAW,GAAI,KAAK,GAAG,KAAG,KAmBtC,CAAC"}
@@ -1,3 +0,0 @@
1
- export declare function isAbortError(err: unknown): boolean;
2
- export declare const castToError: (err: any) => Error;
3
- //# sourceMappingURL=errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/internal/errors.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,WASxC;AAED,eAAO,MAAM,WAAW,GAAI,KAAK,GAAG,KAAG,KAmBtC,CAAC"}