@cjavdev/believe 0.2.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 (568) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/LICENSE +7 -0
  3. package/README.md +426 -0
  4. package/api-promise.d.mts +2 -0
  5. package/api-promise.d.mts.map +1 -0
  6. package/api-promise.d.ts +2 -0
  7. package/api-promise.d.ts.map +1 -0
  8. package/api-promise.js +6 -0
  9. package/api-promise.js.map +1 -0
  10. package/api-promise.mjs +2 -0
  11. package/api-promise.mjs.map +1 -0
  12. package/client.d.mts +240 -0
  13. package/client.d.mts.map +1 -0
  14. package/client.d.ts +240 -0
  15. package/client.d.ts.map +1 -0
  16. package/client.js +524 -0
  17. package/client.js.map +1 -0
  18. package/client.mjs +520 -0
  19. package/client.mjs.map +1 -0
  20. package/core/api-promise.d.mts +46 -0
  21. package/core/api-promise.d.mts.map +1 -0
  22. package/core/api-promise.d.ts +46 -0
  23. package/core/api-promise.d.ts.map +1 -0
  24. package/core/api-promise.js +74 -0
  25. package/core/api-promise.js.map +1 -0
  26. package/core/api-promise.mjs +70 -0
  27. package/core/api-promise.mjs.map +1 -0
  28. package/core/error.d.mts +46 -0
  29. package/core/error.d.mts.map +1 -0
  30. package/core/error.d.ts +46 -0
  31. package/core/error.d.ts.map +1 -0
  32. package/core/error.js +113 -0
  33. package/core/error.js.map +1 -0
  34. package/core/error.mjs +97 -0
  35. package/core/error.mjs.map +1 -0
  36. package/core/pagination.d.mts +62 -0
  37. package/core/pagination.d.mts.map +1 -0
  38. package/core/pagination.d.ts +62 -0
  39. package/core/pagination.d.ts.map +1 -0
  40. package/core/pagination.js +108 -0
  41. package/core/pagination.js.map +1 -0
  42. package/core/pagination.mjs +102 -0
  43. package/core/pagination.mjs.map +1 -0
  44. package/core/resource.d.mts +6 -0
  45. package/core/resource.d.mts.map +1 -0
  46. package/core/resource.d.ts +6 -0
  47. package/core/resource.d.ts.map +1 -0
  48. package/core/resource.js +11 -0
  49. package/core/resource.js.map +1 -0
  50. package/core/resource.mjs +7 -0
  51. package/core/resource.mjs.map +1 -0
  52. package/core/uploads.d.mts +3 -0
  53. package/core/uploads.d.mts.map +1 -0
  54. package/core/uploads.d.ts +3 -0
  55. package/core/uploads.d.ts.map +1 -0
  56. package/core/uploads.js +6 -0
  57. package/core/uploads.js.map +1 -0
  58. package/core/uploads.mjs +2 -0
  59. package/core/uploads.mjs.map +1 -0
  60. package/error.d.mts +2 -0
  61. package/error.d.mts.map +1 -0
  62. package/error.d.ts +2 -0
  63. package/error.d.ts.map +1 -0
  64. package/error.js +6 -0
  65. package/error.js.map +1 -0
  66. package/error.mjs +2 -0
  67. package/error.mjs.map +1 -0
  68. package/index.d.mts +7 -0
  69. package/index.d.mts.map +1 -0
  70. package/index.d.ts +7 -0
  71. package/index.d.ts.map +1 -0
  72. package/index.js +32 -0
  73. package/index.js.map +1 -0
  74. package/index.mjs +8 -0
  75. package/index.mjs.map +1 -0
  76. package/internal/builtin-types.d.mts +73 -0
  77. package/internal/builtin-types.d.mts.map +1 -0
  78. package/internal/builtin-types.d.ts +73 -0
  79. package/internal/builtin-types.d.ts.map +1 -0
  80. package/internal/builtin-types.js +4 -0
  81. package/internal/builtin-types.js.map +1 -0
  82. package/internal/builtin-types.mjs +3 -0
  83. package/internal/builtin-types.mjs.map +1 -0
  84. package/internal/detect-platform.d.mts +15 -0
  85. package/internal/detect-platform.d.mts.map +1 -0
  86. package/internal/detect-platform.d.ts +15 -0
  87. package/internal/detect-platform.d.ts.map +1 -0
  88. package/internal/detect-platform.js +162 -0
  89. package/internal/detect-platform.js.map +1 -0
  90. package/internal/detect-platform.mjs +157 -0
  91. package/internal/detect-platform.mjs.map +1 -0
  92. package/internal/errors.d.mts +3 -0
  93. package/internal/errors.d.mts.map +1 -0
  94. package/internal/errors.d.ts +3 -0
  95. package/internal/errors.d.ts.map +1 -0
  96. package/internal/errors.js +41 -0
  97. package/internal/errors.js.map +1 -0
  98. package/internal/errors.mjs +36 -0
  99. package/internal/errors.mjs.map +1 -0
  100. package/internal/headers.d.mts +20 -0
  101. package/internal/headers.d.mts.map +1 -0
  102. package/internal/headers.d.ts +20 -0
  103. package/internal/headers.d.ts.map +1 -0
  104. package/internal/headers.js +79 -0
  105. package/internal/headers.js.map +1 -0
  106. package/internal/headers.mjs +74 -0
  107. package/internal/headers.mjs.map +1 -0
  108. package/internal/parse.d.mts +12 -0
  109. package/internal/parse.d.mts.map +1 -0
  110. package/internal/parse.d.ts +12 -0
  111. package/internal/parse.d.ts.map +1 -0
  112. package/internal/parse.js +40 -0
  113. package/internal/parse.js.map +1 -0
  114. package/internal/parse.mjs +37 -0
  115. package/internal/parse.mjs.map +1 -0
  116. package/internal/request-options.d.mts +75 -0
  117. package/internal/request-options.d.mts.map +1 -0
  118. package/internal/request-options.d.ts +75 -0
  119. package/internal/request-options.d.ts.map +1 -0
  120. package/internal/request-options.js +14 -0
  121. package/internal/request-options.js.map +1 -0
  122. package/internal/request-options.mjs +10 -0
  123. package/internal/request-options.mjs.map +1 -0
  124. package/internal/shim-types.d.mts +17 -0
  125. package/internal/shim-types.d.mts.map +1 -0
  126. package/internal/shim-types.d.ts +17 -0
  127. package/internal/shim-types.d.ts.map +1 -0
  128. package/internal/shim-types.js +4 -0
  129. package/internal/shim-types.js.map +1 -0
  130. package/internal/shim-types.mjs +3 -0
  131. package/internal/shim-types.mjs.map +1 -0
  132. package/internal/shims.d.mts +20 -0
  133. package/internal/shims.d.mts.map +1 -0
  134. package/internal/shims.d.ts +20 -0
  135. package/internal/shims.d.ts.map +1 -0
  136. package/internal/shims.js +92 -0
  137. package/internal/shims.js.map +1 -0
  138. package/internal/shims.mjs +85 -0
  139. package/internal/shims.mjs.map +1 -0
  140. package/internal/to-file.d.mts +45 -0
  141. package/internal/to-file.d.mts.map +1 -0
  142. package/internal/to-file.d.ts +45 -0
  143. package/internal/to-file.d.ts.map +1 -0
  144. package/internal/to-file.js +91 -0
  145. package/internal/to-file.js.map +1 -0
  146. package/internal/to-file.mjs +88 -0
  147. package/internal/to-file.mjs.map +1 -0
  148. package/internal/tslib.js +81 -0
  149. package/internal/tslib.mjs +17 -0
  150. package/internal/types.d.mts +69 -0
  151. package/internal/types.d.mts.map +1 -0
  152. package/internal/types.d.ts +69 -0
  153. package/internal/types.d.ts.map +1 -0
  154. package/internal/types.js +4 -0
  155. package/internal/types.js.map +1 -0
  156. package/internal/types.mjs +3 -0
  157. package/internal/types.mjs.map +1 -0
  158. package/internal/uploads.d.mts +42 -0
  159. package/internal/uploads.d.mts.map +1 -0
  160. package/internal/uploads.d.ts +42 -0
  161. package/internal/uploads.d.ts.map +1 -0
  162. package/internal/uploads.js +141 -0
  163. package/internal/uploads.js.map +1 -0
  164. package/internal/uploads.mjs +131 -0
  165. package/internal/uploads.mjs.map +1 -0
  166. package/internal/utils/base64.d.mts +3 -0
  167. package/internal/utils/base64.d.mts.map +1 -0
  168. package/internal/utils/base64.d.ts +3 -0
  169. package/internal/utils/base64.d.ts.map +1 -0
  170. package/internal/utils/base64.js +38 -0
  171. package/internal/utils/base64.js.map +1 -0
  172. package/internal/utils/base64.mjs +33 -0
  173. package/internal/utils/base64.mjs.map +1 -0
  174. package/internal/utils/bytes.d.mts +4 -0
  175. package/internal/utils/bytes.d.mts.map +1 -0
  176. package/internal/utils/bytes.d.ts +4 -0
  177. package/internal/utils/bytes.d.ts.map +1 -0
  178. package/internal/utils/bytes.js +31 -0
  179. package/internal/utils/bytes.js.map +1 -0
  180. package/internal/utils/bytes.mjs +26 -0
  181. package/internal/utils/bytes.mjs.map +1 -0
  182. package/internal/utils/env.d.mts +9 -0
  183. package/internal/utils/env.d.mts.map +1 -0
  184. package/internal/utils/env.d.ts +9 -0
  185. package/internal/utils/env.d.ts.map +1 -0
  186. package/internal/utils/env.js +22 -0
  187. package/internal/utils/env.js.map +1 -0
  188. package/internal/utils/env.mjs +18 -0
  189. package/internal/utils/env.mjs.map +1 -0
  190. package/internal/utils/log.d.mts +37 -0
  191. package/internal/utils/log.d.mts.map +1 -0
  192. package/internal/utils/log.d.ts +37 -0
  193. package/internal/utils/log.d.ts.map +1 -0
  194. package/internal/utils/log.js +85 -0
  195. package/internal/utils/log.js.map +1 -0
  196. package/internal/utils/log.mjs +79 -0
  197. package/internal/utils/log.mjs.map +1 -0
  198. package/internal/utils/path.d.mts +15 -0
  199. package/internal/utils/path.d.mts.map +1 -0
  200. package/internal/utils/path.d.ts +15 -0
  201. package/internal/utils/path.d.ts.map +1 -0
  202. package/internal/utils/path.js +79 -0
  203. package/internal/utils/path.js.map +1 -0
  204. package/internal/utils/path.mjs +74 -0
  205. package/internal/utils/path.mjs.map +1 -0
  206. package/internal/utils/sleep.d.mts +2 -0
  207. package/internal/utils/sleep.d.mts.map +1 -0
  208. package/internal/utils/sleep.d.ts +2 -0
  209. package/internal/utils/sleep.d.ts.map +1 -0
  210. package/internal/utils/sleep.js +7 -0
  211. package/internal/utils/sleep.js.map +1 -0
  212. package/internal/utils/sleep.mjs +3 -0
  213. package/internal/utils/sleep.mjs.map +1 -0
  214. package/internal/utils/uuid.d.mts +5 -0
  215. package/internal/utils/uuid.d.mts.map +1 -0
  216. package/internal/utils/uuid.d.ts +5 -0
  217. package/internal/utils/uuid.d.ts.map +1 -0
  218. package/internal/utils/uuid.js +19 -0
  219. package/internal/utils/uuid.js.map +1 -0
  220. package/internal/utils/uuid.mjs +15 -0
  221. package/internal/utils/uuid.mjs.map +1 -0
  222. package/internal/utils/values.d.mts +18 -0
  223. package/internal/utils/values.d.mts.map +1 -0
  224. package/internal/utils/values.d.ts +18 -0
  225. package/internal/utils/values.d.ts.map +1 -0
  226. package/internal/utils/values.js +112 -0
  227. package/internal/utils/values.js.map +1 -0
  228. package/internal/utils/values.mjs +94 -0
  229. package/internal/utils/values.mjs.map +1 -0
  230. package/internal/utils.d.mts +7 -0
  231. package/internal/utils.d.mts.map +1 -0
  232. package/internal/utils.d.ts +7 -0
  233. package/internal/utils.d.ts.map +1 -0
  234. package/internal/utils.js +11 -0
  235. package/internal/utils.js.map +1 -0
  236. package/internal/utils.mjs +8 -0
  237. package/internal/utils.mjs.map +1 -0
  238. package/package.json +147 -0
  239. package/pagination.d.mts +2 -0
  240. package/pagination.d.mts.map +1 -0
  241. package/pagination.d.ts +2 -0
  242. package/pagination.d.ts.map +1 -0
  243. package/pagination.js +6 -0
  244. package/pagination.js.map +1 -0
  245. package/pagination.mjs +2 -0
  246. package/pagination.mjs.map +1 -0
  247. package/resource.d.mts +2 -0
  248. package/resource.d.mts.map +1 -0
  249. package/resource.d.ts +2 -0
  250. package/resource.d.ts.map +1 -0
  251. package/resource.js +6 -0
  252. package/resource.js.map +1 -0
  253. package/resource.mjs +2 -0
  254. package/resource.mjs.map +1 -0
  255. package/resources/believe.d.mts +65 -0
  256. package/resources/believe.d.mts.map +1 -0
  257. package/resources/believe.d.ts +65 -0
  258. package/resources/believe.d.ts.map +1 -0
  259. package/resources/believe.js +24 -0
  260. package/resources/believe.js.map +1 -0
  261. package/resources/believe.mjs +20 -0
  262. package/resources/believe.mjs.map +1 -0
  263. package/resources/biscuits.d.mts +75 -0
  264. package/resources/biscuits.d.mts.map +1 -0
  265. package/resources/biscuits.d.ts +75 -0
  266. package/resources/biscuits.d.ts.map +1 -0
  267. package/resources/biscuits.js +50 -0
  268. package/resources/biscuits.js.map +1 -0
  269. package/resources/biscuits.mjs +46 -0
  270. package/resources/biscuits.mjs.map +1 -0
  271. package/resources/characters.d.mts +297 -0
  272. package/resources/characters.d.mts.map +1 -0
  273. package/resources/characters.d.ts +297 -0
  274. package/resources/characters.d.ts.map +1 -0
  275. package/resources/characters.js +108 -0
  276. package/resources/characters.js.map +1 -0
  277. package/resources/characters.mjs +104 -0
  278. package/resources/characters.mjs.map +1 -0
  279. package/resources/coaching/coaching.d.mts +10 -0
  280. package/resources/coaching/coaching.d.mts.map +1 -0
  281. package/resources/coaching/coaching.d.ts +10 -0
  282. package/resources/coaching/coaching.d.ts.map +1 -0
  283. package/resources/coaching/coaching.js +17 -0
  284. package/resources/coaching/coaching.js.map +1 -0
  285. package/resources/coaching/coaching.mjs +12 -0
  286. package/resources/coaching/coaching.mjs.map +1 -0
  287. package/resources/coaching/index.d.mts +3 -0
  288. package/resources/coaching/index.d.mts.map +1 -0
  289. package/resources/coaching/index.d.ts +3 -0
  290. package/resources/coaching/index.d.ts.map +1 -0
  291. package/resources/coaching/index.js +9 -0
  292. package/resources/coaching/index.js.map +1 -0
  293. package/resources/coaching/index.mjs +4 -0
  294. package/resources/coaching/index.mjs.map +1 -0
  295. package/resources/coaching/principles.d.mts +74 -0
  296. package/resources/coaching/principles.d.mts.map +1 -0
  297. package/resources/coaching/principles.d.ts +74 -0
  298. package/resources/coaching/principles.d.ts.map +1 -0
  299. package/resources/coaching/principles.js +52 -0
  300. package/resources/coaching/principles.js.map +1 -0
  301. package/resources/coaching/principles.mjs +48 -0
  302. package/resources/coaching/principles.mjs.map +1 -0
  303. package/resources/coaching.d.mts +2 -0
  304. package/resources/coaching.d.mts.map +1 -0
  305. package/resources/coaching.d.ts +2 -0
  306. package/resources/coaching.d.ts.map +1 -0
  307. package/resources/coaching.js +6 -0
  308. package/resources/coaching.js.map +1 -0
  309. package/resources/coaching.mjs +3 -0
  310. package/resources/coaching.mjs.map +1 -0
  311. package/resources/conflicts.d.mts +70 -0
  312. package/resources/conflicts.d.mts.map +1 -0
  313. package/resources/conflicts.d.ts +70 -0
  314. package/resources/conflicts.d.ts.map +1 -0
  315. package/resources/conflicts.js +25 -0
  316. package/resources/conflicts.js.map +1 -0
  317. package/resources/conflicts.mjs +21 -0
  318. package/resources/conflicts.mjs.map +1 -0
  319. package/resources/episodes.d.mts +288 -0
  320. package/resources/episodes.d.mts.map +1 -0
  321. package/resources/episodes.d.ts +288 -0
  322. package/resources/episodes.d.ts.map +1 -0
  323. package/resources/episodes.js +128 -0
  324. package/resources/episodes.js.map +1 -0
  325. package/resources/episodes.mjs +124 -0
  326. package/resources/episodes.mjs.map +1 -0
  327. package/resources/health.d.mts +14 -0
  328. package/resources/health.d.mts.map +1 -0
  329. package/resources/health.d.ts +14 -0
  330. package/resources/health.d.ts.map +1 -0
  331. package/resources/health.js +15 -0
  332. package/resources/health.js.map +1 -0
  333. package/resources/health.mjs +11 -0
  334. package/resources/health.mjs.map +1 -0
  335. package/resources/index.d.mts +19 -0
  336. package/resources/index.d.mts.map +1 -0
  337. package/resources/index.d.ts +19 -0
  338. package/resources/index.d.ts.map +1 -0
  339. package/resources/index.js +39 -0
  340. package/resources/index.js.map +1 -0
  341. package/resources/index.mjs +19 -0
  342. package/resources/index.mjs.map +1 -0
  343. package/resources/matches/commentary.d.mts +22 -0
  344. package/resources/matches/commentary.d.mts.map +1 -0
  345. package/resources/matches/commentary.d.ts +22 -0
  346. package/resources/matches/commentary.d.ts.map +1 -0
  347. package/resources/matches/commentary.js +24 -0
  348. package/resources/matches/commentary.js.map +1 -0
  349. package/resources/matches/commentary.mjs +20 -0
  350. package/resources/matches/commentary.mjs.map +1 -0
  351. package/resources/matches/index.d.mts +3 -0
  352. package/resources/matches/index.d.mts.map +1 -0
  353. package/resources/matches/index.d.ts +3 -0
  354. package/resources/matches/index.d.ts.map +1 -0
  355. package/resources/matches/index.js +9 -0
  356. package/resources/matches/index.js.map +1 -0
  357. package/resources/matches/index.mjs +4 -0
  358. package/resources/matches/index.mjs.map +1 -0
  359. package/resources/matches/matches.d.mts +291 -0
  360. package/resources/matches/matches.d.mts.map +1 -0
  361. package/resources/matches/matches.d.ts +291 -0
  362. package/resources/matches/matches.d.ts.map +1 -0
  363. package/resources/matches/matches.js +110 -0
  364. package/resources/matches/matches.js.map +1 -0
  365. package/resources/matches/matches.mjs +105 -0
  366. package/resources/matches/matches.mjs.map +1 -0
  367. package/resources/matches.d.mts +2 -0
  368. package/resources/matches.d.mts.map +1 -0
  369. package/resources/matches.d.ts +2 -0
  370. package/resources/matches.d.ts.map +1 -0
  371. package/resources/matches.js +6 -0
  372. package/resources/matches.js.map +1 -0
  373. package/resources/matches.mjs +3 -0
  374. package/resources/matches.mjs.map +1 -0
  375. package/resources/pep-talk.d.mts +62 -0
  376. package/resources/pep-talk.d.mts.map +1 -0
  377. package/resources/pep-talk.d.ts +62 -0
  378. package/resources/pep-talk.d.ts.map +1 -0
  379. package/resources/pep-talk.js +22 -0
  380. package/resources/pep-talk.js.map +1 -0
  381. package/resources/pep-talk.mjs +18 -0
  382. package/resources/pep-talk.mjs.map +1 -0
  383. package/resources/press.d.mts +60 -0
  384. package/resources/press.d.mts.map +1 -0
  385. package/resources/press.d.ts +60 -0
  386. package/resources/press.d.ts.map +1 -0
  387. package/resources/press.js +23 -0
  388. package/resources/press.js.map +1 -0
  389. package/resources/press.mjs +19 -0
  390. package/resources/press.mjs.map +1 -0
  391. package/resources/quotes.d.mts +287 -0
  392. package/resources/quotes.d.mts.map +1 -0
  393. package/resources/quotes.d.ts +287 -0
  394. package/resources/quotes.d.ts.map +1 -0
  395. package/resources/quotes.js +129 -0
  396. package/resources/quotes.js.map +1 -0
  397. package/resources/quotes.mjs +125 -0
  398. package/resources/quotes.mjs.map +1 -0
  399. package/resources/reframe.d.mts +56 -0
  400. package/resources/reframe.d.mts.map +1 -0
  401. package/resources/reframe.d.ts +56 -0
  402. package/resources/reframe.d.ts.map +1 -0
  403. package/resources/reframe.js +23 -0
  404. package/resources/reframe.js.map +1 -0
  405. package/resources/reframe.mjs +19 -0
  406. package/resources/reframe.mjs.map +1 -0
  407. package/resources/stream.d.mts +14 -0
  408. package/resources/stream.d.mts.map +1 -0
  409. package/resources/stream.d.ts +14 -0
  410. package/resources/stream.d.ts.map +1 -0
  411. package/resources/stream.js +15 -0
  412. package/resources/stream.js.map +1 -0
  413. package/resources/stream.mjs +11 -0
  414. package/resources/stream.mjs.map +1 -0
  415. package/resources/team-members.d.mts +518 -0
  416. package/resources/team-members.d.mts.map +1 -0
  417. package/resources/team-members.d.ts +518 -0
  418. package/resources/team-members.d.ts.map +1 -0
  419. package/resources/team-members.js +120 -0
  420. package/resources/team-members.js.map +1 -0
  421. package/resources/team-members.mjs +116 -0
  422. package/resources/team-members.mjs.map +1 -0
  423. package/resources/teams/index.d.mts +3 -0
  424. package/resources/teams/index.d.mts.map +1 -0
  425. package/resources/teams/index.d.ts +3 -0
  426. package/resources/teams/index.d.ts.map +1 -0
  427. package/resources/teams/index.js +9 -0
  428. package/resources/teams/index.js.map +1 -0
  429. package/resources/teams/index.mjs +4 -0
  430. package/resources/teams/index.mjs.map +1 -0
  431. package/resources/teams/logo.d.mts +70 -0
  432. package/resources/teams/logo.d.mts.map +1 -0
  433. package/resources/teams/logo.d.ts +70 -0
  434. package/resources/teams/logo.d.ts.map +1 -0
  435. package/resources/teams/logo.js +59 -0
  436. package/resources/teams/logo.js.map +1 -0
  437. package/resources/teams/logo.mjs +55 -0
  438. package/resources/teams/logo.mjs.map +1 -0
  439. package/resources/teams/teams.d.mts +326 -0
  440. package/resources/teams/teams.d.mts.map +1 -0
  441. package/resources/teams/teams.d.ts +326 -0
  442. package/resources/teams/teams.d.ts.map +1 -0
  443. package/resources/teams/teams.js +126 -0
  444. package/resources/teams/teams.js.map +1 -0
  445. package/resources/teams/teams.mjs +121 -0
  446. package/resources/teams/teams.mjs.map +1 -0
  447. package/resources/teams.d.mts +2 -0
  448. package/resources/teams.d.mts.map +1 -0
  449. package/resources/teams.d.ts +2 -0
  450. package/resources/teams.d.ts.map +1 -0
  451. package/resources/teams.js +6 -0
  452. package/resources/teams.js.map +1 -0
  453. package/resources/teams.mjs +3 -0
  454. package/resources/teams.mjs.map +1 -0
  455. package/resources/top-level.d.mts +5 -0
  456. package/resources/top-level.d.mts.map +1 -0
  457. package/resources/top-level.d.ts +5 -0
  458. package/resources/top-level.d.ts.map +1 -0
  459. package/resources/top-level.js +4 -0
  460. package/resources/top-level.js.map +1 -0
  461. package/resources/top-level.mjs +3 -0
  462. package/resources/top-level.mjs.map +1 -0
  463. package/resources/version.d.mts +14 -0
  464. package/resources/version.d.mts.map +1 -0
  465. package/resources/version.d.ts +14 -0
  466. package/resources/version.d.ts.map +1 -0
  467. package/resources/version.js +15 -0
  468. package/resources/version.js.map +1 -0
  469. package/resources/version.mjs +11 -0
  470. package/resources/version.mjs.map +1 -0
  471. package/resources/webhooks.d.mts +341 -0
  472. package/resources/webhooks.d.mts.map +1 -0
  473. package/resources/webhooks.d.ts +341 -0
  474. package/resources/webhooks.d.ts.map +1 -0
  475. package/resources/webhooks.js +88 -0
  476. package/resources/webhooks.js.map +1 -0
  477. package/resources/webhooks.mjs +84 -0
  478. package/resources/webhooks.mjs.map +1 -0
  479. package/resources.d.mts +2 -0
  480. package/resources.d.mts.map +1 -0
  481. package/resources.d.ts +2 -0
  482. package/resources.d.ts.map +1 -0
  483. package/resources.js +5 -0
  484. package/resources.js.map +1 -0
  485. package/resources.mjs +2 -0
  486. package/resources.mjs.map +1 -0
  487. package/src/api-promise.ts +2 -0
  488. package/src/client.ts +1057 -0
  489. package/src/core/README.md +3 -0
  490. package/src/core/api-promise.ts +92 -0
  491. package/src/core/error.ts +130 -0
  492. package/src/core/pagination.ts +176 -0
  493. package/src/core/resource.ts +11 -0
  494. package/src/core/uploads.ts +2 -0
  495. package/src/error.ts +2 -0
  496. package/src/index.ts +23 -0
  497. package/src/internal/README.md +3 -0
  498. package/src/internal/builtin-types.ts +93 -0
  499. package/src/internal/detect-platform.ts +196 -0
  500. package/src/internal/errors.ts +33 -0
  501. package/src/internal/headers.ts +97 -0
  502. package/src/internal/parse.ts +56 -0
  503. package/src/internal/request-options.ts +91 -0
  504. package/src/internal/shim-types.ts +26 -0
  505. package/src/internal/shims.ts +107 -0
  506. package/src/internal/to-file.ts +154 -0
  507. package/src/internal/types.ts +95 -0
  508. package/src/internal/uploads.ts +187 -0
  509. package/src/internal/utils/base64.ts +40 -0
  510. package/src/internal/utils/bytes.ts +32 -0
  511. package/src/internal/utils/env.ts +18 -0
  512. package/src/internal/utils/log.ts +126 -0
  513. package/src/internal/utils/path.ts +88 -0
  514. package/src/internal/utils/sleep.ts +3 -0
  515. package/src/internal/utils/uuid.ts +17 -0
  516. package/src/internal/utils/values.ts +105 -0
  517. package/src/internal/utils.ts +8 -0
  518. package/src/lib/.keep +4 -0
  519. package/src/pagination.ts +2 -0
  520. package/src/resource.ts +2 -0
  521. package/src/resources/believe.ts +90 -0
  522. package/src/resources/biscuits.ts +101 -0
  523. package/src/resources/characters.ts +401 -0
  524. package/src/resources/coaching/coaching.ts +25 -0
  525. package/src/resources/coaching/index.ts +9 -0
  526. package/src/resources/coaching/principles.ts +103 -0
  527. package/src/resources/coaching.ts +3 -0
  528. package/src/resources/conflicts.ts +94 -0
  529. package/src/resources/episodes.ts +390 -0
  530. package/src/resources/health.ts +20 -0
  531. package/src/resources/index.ts +116 -0
  532. package/src/resources/matches/commentary.ts +29 -0
  533. package/src/resources/matches/index.ts +16 -0
  534. package/src/resources/matches/matches.ts +391 -0
  535. package/src/resources/matches.ts +3 -0
  536. package/src/resources/pep-talk.ts +80 -0
  537. package/src/resources/press.ts +76 -0
  538. package/src/resources/quotes.ts +440 -0
  539. package/src/resources/reframe.ts +74 -0
  540. package/src/resources/stream.ts +20 -0
  541. package/src/resources/team-members.ts +718 -0
  542. package/src/resources/teams/index.ts +24 -0
  543. package/src/resources/teams/logo.ts +108 -0
  544. package/src/resources/teams/teams.ts +460 -0
  545. package/src/resources/teams.ts +3 -0
  546. package/src/resources/top-level.ts +7 -0
  547. package/src/resources/version.ts +20 -0
  548. package/src/resources/webhooks.ts +425 -0
  549. package/src/resources.ts +1 -0
  550. package/src/tsconfig.json +11 -0
  551. package/src/uploads.ts +2 -0
  552. package/src/version.ts +1 -0
  553. package/uploads.d.mts +2 -0
  554. package/uploads.d.mts.map +1 -0
  555. package/uploads.d.ts +2 -0
  556. package/uploads.d.ts.map +1 -0
  557. package/uploads.js +6 -0
  558. package/uploads.js.map +1 -0
  559. package/uploads.mjs +2 -0
  560. package/uploads.mjs.map +1 -0
  561. package/version.d.mts +2 -0
  562. package/version.d.mts.map +1 -0
  563. package/version.d.ts +2 -0
  564. package/version.d.ts.map +1 -0
  565. package/version.js +5 -0
  566. package/version.js.map +1 -0
  567. package/version.mjs +2 -0
  568. package/version.mjs.map +1 -0
@@ -0,0 +1,291 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as CommentaryAPI from "./commentary.js";
3
+ import { Commentary, CommentaryStreamResponse } from "./commentary.js";
4
+ import { APIPromise } from "../../core/api-promise.js";
5
+ import { PagePromise, SkipLimitPage, type SkipLimitPageParams } from "../../core/pagination.js";
6
+ import { RequestOptions } from "../../internal/request-options.js";
7
+ export declare class Matches extends APIResource {
8
+ commentary: CommentaryAPI.Commentary;
9
+ /**
10
+ * Schedule a new match.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const match = await client.matches.create({
15
+ * away_team_id: 'tottenham',
16
+ * date: '2024-02-20T19:45:00Z',
17
+ * home_team_id: 'afc-richmond',
18
+ * match_type: 'cup',
19
+ * });
20
+ * ```
21
+ */
22
+ create(body: MatchCreateParams, options?: RequestOptions): APIPromise<Match>;
23
+ /**
24
+ * Retrieve detailed information about a specific match.
25
+ *
26
+ * @example
27
+ * ```ts
28
+ * const match = await client.matches.retrieve('match_id');
29
+ * ```
30
+ */
31
+ retrieve(matchID: string, options?: RequestOptions): APIPromise<Match>;
32
+ /**
33
+ * Update specific fields of an existing match (e.g., update score).
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * const match = await client.matches.update('match_id');
38
+ * ```
39
+ */
40
+ update(matchID: string, body: MatchUpdateParams, options?: RequestOptions): APIPromise<Match>;
41
+ /**
42
+ * Get a paginated list of all matches with optional filtering.
43
+ *
44
+ * @example
45
+ * ```ts
46
+ * // Automatically fetches more pages as needed.
47
+ * for await (const match of client.matches.list()) {
48
+ * // ...
49
+ * }
50
+ * ```
51
+ */
52
+ list(query?: MatchListParams | null | undefined, options?: RequestOptions): PagePromise<MatchesSkipLimitPage, Match>;
53
+ /**
54
+ * Remove a match from the database.
55
+ *
56
+ * @example
57
+ * ```ts
58
+ * await client.matches.delete('match_id');
59
+ * ```
60
+ */
61
+ delete(matchID: string, options?: RequestOptions): APIPromise<void>;
62
+ /**
63
+ * Get the life lesson learned from a specific match.
64
+ *
65
+ * @example
66
+ * ```ts
67
+ * const response = await client.matches.getLesson('match_id');
68
+ * ```
69
+ */
70
+ getLesson(matchID: string, options?: RequestOptions): APIPromise<MatchGetLessonResponse>;
71
+ /**
72
+ * Get all turning points from a specific match.
73
+ *
74
+ * @example
75
+ * ```ts
76
+ * const response = await client.matches.getTurningPoints(
77
+ * 'match_id',
78
+ * );
79
+ * ```
80
+ */
81
+ getTurningPoints(matchID: string, options?: RequestOptions): APIPromise<MatchGetTurningPointsResponse>;
82
+ }
83
+ export type MatchesSkipLimitPage = SkipLimitPage<Match>;
84
+ /**
85
+ * Full match model with ID.
86
+ */
87
+ export interface Match {
88
+ /**
89
+ * Unique identifier
90
+ */
91
+ id: string;
92
+ /**
93
+ * Away team ID
94
+ */
95
+ away_team_id: string;
96
+ /**
97
+ * Match date and time
98
+ */
99
+ date: string;
100
+ /**
101
+ * Home team ID
102
+ */
103
+ home_team_id: string;
104
+ /**
105
+ * Type of match
106
+ */
107
+ match_type: MatchType;
108
+ /**
109
+ * Match attendance
110
+ */
111
+ attendance?: number | null;
112
+ /**
113
+ * Away team score
114
+ */
115
+ away_score?: number;
116
+ /**
117
+ * Episode ID where this match is featured
118
+ */
119
+ episode_id?: string | null;
120
+ /**
121
+ * Home team score
122
+ */
123
+ home_score?: number;
124
+ /**
125
+ * The life lesson learned from this match
126
+ */
127
+ lesson_learned?: string | null;
128
+ /**
129
+ * Home team possession percentage
130
+ */
131
+ possession_percentage?: number | null;
132
+ /**
133
+ * Match result from home team perspective
134
+ */
135
+ result?: MatchResult;
136
+ /**
137
+ * Ted's inspirational halftime speech
138
+ */
139
+ ted_halftime_speech?: string | null;
140
+ /**
141
+ * Total ticket revenue in GBP
142
+ */
143
+ ticket_revenue_gbp?: string | null;
144
+ /**
145
+ * Key moments that changed the match
146
+ */
147
+ turning_points?: Array<TurningPoint>;
148
+ /**
149
+ * Temperature at kickoff in Celsius
150
+ */
151
+ weather_temp_celsius?: number | null;
152
+ }
153
+ /**
154
+ * Match result types.
155
+ */
156
+ export type MatchResult = 'win' | 'loss' | 'draw' | 'pending';
157
+ /**
158
+ * Types of matches.
159
+ */
160
+ export type MatchType = 'league' | 'cup' | 'friendly' | 'playoff' | 'final';
161
+ /**
162
+ * A pivotal moment in a match.
163
+ */
164
+ export interface TurningPoint {
165
+ /**
166
+ * What happened
167
+ */
168
+ description: string;
169
+ /**
170
+ * How this affected the team emotionally
171
+ */
172
+ emotional_impact: string;
173
+ /**
174
+ * Minute of the match
175
+ */
176
+ minute: number;
177
+ /**
178
+ * Character ID who was central to this moment
179
+ */
180
+ character_involved?: string | null;
181
+ }
182
+ export type MatchGetLessonResponse = {
183
+ [key: string]: unknown;
184
+ };
185
+ export type MatchGetTurningPointsResponse = Array<{
186
+ [key: string]: unknown;
187
+ }>;
188
+ export interface MatchCreateParams {
189
+ /**
190
+ * Away team ID
191
+ */
192
+ away_team_id: string;
193
+ /**
194
+ * Match date and time
195
+ */
196
+ date: string;
197
+ /**
198
+ * Home team ID
199
+ */
200
+ home_team_id: string;
201
+ /**
202
+ * Type of match
203
+ */
204
+ match_type: MatchType;
205
+ /**
206
+ * Match attendance
207
+ */
208
+ attendance?: number | null;
209
+ /**
210
+ * Away team score
211
+ */
212
+ away_score?: number;
213
+ /**
214
+ * Episode ID where this match is featured
215
+ */
216
+ episode_id?: string | null;
217
+ /**
218
+ * Home team score
219
+ */
220
+ home_score?: number;
221
+ /**
222
+ * The life lesson learned from this match
223
+ */
224
+ lesson_learned?: string | null;
225
+ /**
226
+ * Home team possession percentage
227
+ */
228
+ possession_percentage?: number | null;
229
+ /**
230
+ * Match result from home team perspective
231
+ */
232
+ result?: MatchResult;
233
+ /**
234
+ * Ted's inspirational halftime speech
235
+ */
236
+ ted_halftime_speech?: string | null;
237
+ /**
238
+ * Total ticket revenue in GBP
239
+ */
240
+ ticket_revenue_gbp?: number | string | null;
241
+ /**
242
+ * Key moments that changed the match
243
+ */
244
+ turning_points?: Array<TurningPoint>;
245
+ /**
246
+ * Temperature at kickoff in Celsius
247
+ */
248
+ weather_temp_celsius?: number | null;
249
+ }
250
+ export interface MatchUpdateParams {
251
+ attendance?: number | null;
252
+ away_score?: number | null;
253
+ away_team_id?: string | null;
254
+ date?: string | null;
255
+ episode_id?: string | null;
256
+ home_score?: number | null;
257
+ home_team_id?: string | null;
258
+ lesson_learned?: string | null;
259
+ /**
260
+ * Types of matches.
261
+ */
262
+ match_type?: MatchType | null;
263
+ possession_percentage?: number | null;
264
+ /**
265
+ * Match result types.
266
+ */
267
+ result?: MatchResult | null;
268
+ ted_halftime_speech?: string | null;
269
+ ticket_revenue_gbp?: number | string | null;
270
+ turning_points?: Array<TurningPoint> | null;
271
+ weather_temp_celsius?: number | null;
272
+ }
273
+ export interface MatchListParams extends SkipLimitPageParams {
274
+ /**
275
+ * Types of matches.
276
+ */
277
+ match_type?: MatchType | null;
278
+ /**
279
+ * Match result types.
280
+ */
281
+ result?: MatchResult | null;
282
+ /**
283
+ * Filter by team (home or away)
284
+ */
285
+ team_id?: string | null;
286
+ }
287
+ export declare namespace Matches {
288
+ export { type Match as Match, type MatchResult as MatchResult, type MatchType as MatchType, type TurningPoint as TurningPoint, type MatchGetLessonResponse as MatchGetLessonResponse, type MatchGetTurningPointsResponse as MatchGetTurningPointsResponse, type MatchesSkipLimitPage as MatchesSkipLimitPage, type MatchCreateParams as MatchCreateParams, type MatchUpdateParams as MatchUpdateParams, type MatchListParams as MatchListParams, };
289
+ export { Commentary as Commentary, type CommentaryStreamResponse as CommentaryStreamResponse };
290
+ }
291
+ //# sourceMappingURL=matches.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matches.d.ts","sourceRoot":"","sources":["../../src/resources/matches/matches.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAA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I,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,KAAK,wBAAwB,IAAI,wBAAwB,EAAE,CAAC;CAChG"}
@@ -0,0 +1,110 @@
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.Matches = void 0;
5
+ const tslib_1 = require("../../internal/tslib.js");
6
+ const resource_1 = require("../../core/resource.js");
7
+ const CommentaryAPI = tslib_1.__importStar(require("./commentary.js"));
8
+ const commentary_1 = require("./commentary.js");
9
+ const pagination_1 = require("../../core/pagination.js");
10
+ const headers_1 = require("../../internal/headers.js");
11
+ const path_1 = require("../../internal/utils/path.js");
12
+ class Matches extends resource_1.APIResource {
13
+ constructor() {
14
+ super(...arguments);
15
+ this.commentary = new CommentaryAPI.Commentary(this._client);
16
+ }
17
+ /**
18
+ * Schedule a new match.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const match = await client.matches.create({
23
+ * away_team_id: 'tottenham',
24
+ * date: '2024-02-20T19:45:00Z',
25
+ * home_team_id: 'afc-richmond',
26
+ * match_type: 'cup',
27
+ * });
28
+ * ```
29
+ */
30
+ create(body, options) {
31
+ return this._client.post('/matches', { body, ...options });
32
+ }
33
+ /**
34
+ * Retrieve detailed information about a specific match.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const match = await client.matches.retrieve('match_id');
39
+ * ```
40
+ */
41
+ retrieve(matchID, options) {
42
+ return this._client.get((0, path_1.path) `/matches/${matchID}`, options);
43
+ }
44
+ /**
45
+ * Update specific fields of an existing match (e.g., update score).
46
+ *
47
+ * @example
48
+ * ```ts
49
+ * const match = await client.matches.update('match_id');
50
+ * ```
51
+ */
52
+ update(matchID, body, options) {
53
+ return this._client.patch((0, path_1.path) `/matches/${matchID}`, { body, ...options });
54
+ }
55
+ /**
56
+ * Get a paginated list of all matches with optional filtering.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * // Automatically fetches more pages as needed.
61
+ * for await (const match of client.matches.list()) {
62
+ * // ...
63
+ * }
64
+ * ```
65
+ */
66
+ list(query = {}, options) {
67
+ return this._client.getAPIList('/matches', (pagination_1.SkipLimitPage), { query, ...options });
68
+ }
69
+ /**
70
+ * Remove a match from the database.
71
+ *
72
+ * @example
73
+ * ```ts
74
+ * await client.matches.delete('match_id');
75
+ * ```
76
+ */
77
+ delete(matchID, options) {
78
+ return this._client.delete((0, path_1.path) `/matches/${matchID}`, {
79
+ ...options,
80
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
81
+ });
82
+ }
83
+ /**
84
+ * Get the life lesson learned from a specific match.
85
+ *
86
+ * @example
87
+ * ```ts
88
+ * const response = await client.matches.getLesson('match_id');
89
+ * ```
90
+ */
91
+ getLesson(matchID, options) {
92
+ return this._client.get((0, path_1.path) `/matches/${matchID}/lesson`, options);
93
+ }
94
+ /**
95
+ * Get all turning points from a specific match.
96
+ *
97
+ * @example
98
+ * ```ts
99
+ * const response = await client.matches.getTurningPoints(
100
+ * 'match_id',
101
+ * );
102
+ * ```
103
+ */
104
+ getTurningPoints(matchID, options) {
105
+ return this._client.get((0, path_1.path) `/matches/${matchID}/turning-points`, options);
106
+ }
107
+ }
108
+ exports.Matches = Matches;
109
+ Matches.Commentary = commentary_1.Commentary;
110
+ //# sourceMappingURL=matches.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matches.js","sourceRoot":"","sources":["../../src/resources/matches/matches.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,uEAA8C;AAC9C,gDAAoE;AAEpE,yDAA6F;AAC7F,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,eAAU,GAA6B,IAAI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IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,OAAO,SAAS,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;OASG;IACH,gBAAgB,CAAC,OAAe,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,OAAO,iBAAiB,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF;AAtGD,0BAsGC;AAoQD,OAAO,CAAC,UAAU,GAAG,uBAAU,CAAC"}
@@ -0,0 +1,105 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import * as CommentaryAPI from "./commentary.mjs";
4
+ import { Commentary } from "./commentary.mjs";
5
+ import { SkipLimitPage } from "../../core/pagination.mjs";
6
+ import { buildHeaders } from "../../internal/headers.mjs";
7
+ import { path } from "../../internal/utils/path.mjs";
8
+ export class Matches extends APIResource {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.commentary = new CommentaryAPI.Commentary(this._client);
12
+ }
13
+ /**
14
+ * Schedule a new match.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const match = await client.matches.create({
19
+ * away_team_id: 'tottenham',
20
+ * date: '2024-02-20T19:45:00Z',
21
+ * home_team_id: 'afc-richmond',
22
+ * match_type: 'cup',
23
+ * });
24
+ * ```
25
+ */
26
+ create(body, options) {
27
+ return this._client.post('/matches', { body, ...options });
28
+ }
29
+ /**
30
+ * Retrieve detailed information about a specific match.
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * const match = await client.matches.retrieve('match_id');
35
+ * ```
36
+ */
37
+ retrieve(matchID, options) {
38
+ return this._client.get(path `/matches/${matchID}`, options);
39
+ }
40
+ /**
41
+ * Update specific fields of an existing match (e.g., update score).
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * const match = await client.matches.update('match_id');
46
+ * ```
47
+ */
48
+ update(matchID, body, options) {
49
+ return this._client.patch(path `/matches/${matchID}`, { body, ...options });
50
+ }
51
+ /**
52
+ * Get a paginated list of all matches with optional filtering.
53
+ *
54
+ * @example
55
+ * ```ts
56
+ * // Automatically fetches more pages as needed.
57
+ * for await (const match of client.matches.list()) {
58
+ * // ...
59
+ * }
60
+ * ```
61
+ */
62
+ list(query = {}, options) {
63
+ return this._client.getAPIList('/matches', (SkipLimitPage), { query, ...options });
64
+ }
65
+ /**
66
+ * Remove a match from the database.
67
+ *
68
+ * @example
69
+ * ```ts
70
+ * await client.matches.delete('match_id');
71
+ * ```
72
+ */
73
+ delete(matchID, options) {
74
+ return this._client.delete(path `/matches/${matchID}`, {
75
+ ...options,
76
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
77
+ });
78
+ }
79
+ /**
80
+ * Get the life lesson learned from a specific match.
81
+ *
82
+ * @example
83
+ * ```ts
84
+ * const response = await client.matches.getLesson('match_id');
85
+ * ```
86
+ */
87
+ getLesson(matchID, options) {
88
+ return this._client.get(path `/matches/${matchID}/lesson`, options);
89
+ }
90
+ /**
91
+ * Get all turning points from a specific match.
92
+ *
93
+ * @example
94
+ * ```ts
95
+ * const response = await client.matches.getTurningPoints(
96
+ * 'match_id',
97
+ * );
98
+ * ```
99
+ */
100
+ getTurningPoints(matchID, options) {
101
+ return this._client.get(path `/matches/${matchID}/turning-points`, options);
102
+ }
103
+ }
104
+ Matches.Commentary = Commentary;
105
+ //# sourceMappingURL=matches.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matches.mjs","sourceRoot":"","sources":["../../src/resources/matches/matches.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAAE,UAAU,EAA4B;OAExC,EAAe,aAAa,EAA4B;OACxD,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,eAAU,G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O,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,OAAO,SAAS,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;OASG;IACH,gBAAgB,CAAC,OAAe,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,YAAY,OAAO,iBAAiB,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF;AAoQD,OAAO,CAAC,UAAU,GAAG,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./matches/index.mjs";
2
+ //# sourceMappingURL=matches.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matches.d.mts","sourceRoot":"","sources":["../src/resources/matches.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./matches/index.js";
2
+ //# sourceMappingURL=matches.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matches.d.ts","sourceRoot":"","sources":["../src/resources/matches.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const tslib_1 = require("../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./matches/index.js"), exports);
6
+ //# sourceMappingURL=matches.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matches.js","sourceRoot":"","sources":["../src/resources/matches.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6DAAgC"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./matches/index.mjs";
3
+ //# sourceMappingURL=matches.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matches.mjs","sourceRoot":"","sources":["../src/resources/matches.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -0,0 +1,62 @@
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 PepTalk extends APIResource {
5
+ /**
6
+ * Get a motivational pep talk from Ted Lasso himself. By default returns the
7
+ * complete pep talk. Add `?stream=true` to get Server-Sent Events (SSE) streaming
8
+ * the pep talk chunk by chunk.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const pepTalk = await client.pepTalk.retrieve();
13
+ * ```
14
+ */
15
+ retrieve(query?: PepTalkRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<PepTalkRetrieveResponse>;
16
+ }
17
+ /**
18
+ * A complete pep talk response.
19
+ */
20
+ export interface PepTalkRetrieveResponse {
21
+ /**
22
+ * Individual chunks of the pep talk
23
+ */
24
+ chunks: Array<PepTalkRetrieveResponse.Chunk>;
25
+ /**
26
+ * The full pep talk text
27
+ */
28
+ text: string;
29
+ }
30
+ export declare namespace PepTalkRetrieveResponse {
31
+ /**
32
+ * A chunk of a streaming pep talk.
33
+ */
34
+ interface Chunk {
35
+ /**
36
+ * Chunk sequence number
37
+ */
38
+ chunk_id: number;
39
+ /**
40
+ * The text of this chunk
41
+ */
42
+ text: string;
43
+ /**
44
+ * The emotional purpose of this chunk
45
+ */
46
+ emotional_beat?: string | null;
47
+ /**
48
+ * Is this the final chunk
49
+ */
50
+ is_final?: boolean;
51
+ }
52
+ }
53
+ export interface PepTalkRetrieveParams {
54
+ /**
55
+ * If true, returns SSE stream instead of full response
56
+ */
57
+ stream?: boolean;
58
+ }
59
+ export declare namespace PepTalk {
60
+ export { type PepTalkRetrieveResponse as PepTalkRetrieveResponse, type PepTalkRetrieveParams as PepTalkRetrieveParams, };
61
+ }
62
+ //# sourceMappingURL=pep-talk.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pep-talk.d.mts","sourceRoot":"","sources":["../src/resources/pep-talk.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;OASG;IACH,QAAQ,CACN,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;CAGvC;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC;IAE7C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,yBAAiB,uBAAuB,CAAC;IACvC;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE/B;;WAEG;QACH,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB;CACF;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}